PageSourceSearch

https://researgence.ai/670.0cde720a7f6f5845.js

js researgence.ai collected 2026-10-05 12:32:42 UTC 623,277 bytes, 1 lines download raw bytes

vendor: 4,268 bytes, line 1
1(self.webpackChunkreseargence=self.webpackChunkreseargence||[]).push([[670],{33338:(Li,Pt,Be)=>{"use strict";Be.d(Pt,{a4:()=>qy});var e=Be(5e3),X=Be(69808),P=Be(41777),v=Be(22313);function te(t,i,n){t.prototype=i.prototype=n,n.constructor=t}function xe(t,i){var n=Object.create(t.prototype);for(var a in i)n[a]=i[a];return n}function w(){}var k=.7,I=1/k,b="\\s*([+-]?\\d+)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j=/^#([0-9a-f]{3,8})$/,N=new RegExp("^rgb\\("+[b,b,b]+"\\)$"),D=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),E=new RegExp("^rgba\\("+[b,b,b,C]+"\\)$"),R=new RegExp("^rgba\\("+[L,L,L,C]+"\\)$"),F=new RegExp("^hsl\\("+[C,L,L]+"\\)$"),H=new RegExp("^hsla\\("+[C,L,L,C]+"\\)$"),G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ie(){return this.rgb().formatHex()}function ce(){return this.rgb().formatRgb()}function W(t){var i,n;return t=(t+"").trim().toLowerCase(),(i=j.exec(t))?(n=i[1].length,i=parseInt(i[1],16),6===n?ae(i):3===n?new z(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):8===n?re(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):4===n?re(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=N.exec(t))?new z(i[1],i[2],i[3],1):(i=D.exec(t))?new z(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=E.exec(t))?re(i[1],i[2],i[3],i[4]):(i=R.exec(t))?re(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=F.exec(t))?Oe(i[1],i[2]/100,i[3]/100,1):(i=H.exec(t))?Oe(i[1],i[2]/100,i[3]/100,i[4]):G.hasOwnProperty(t)?ae(G[t]):"transparent"===t?new z(NaN,NaN,NaN,0):null}function ae(t){return new z(t>>16&255,t>>8&255,255&t,1)}
1function re(t,i,n,a){return a<=0&&(t=i=n=NaN),new z(t,i,n,a)}function ye(t){return t instanceof w||(t=W(t)),t?new z((t=t.rgb()).r,t.g,t.b,t.opacity):new z}function be(t,i,n,a){return 1===arguments.length?ye(t):new z(t,i,n,null==a?1:a)}function z(t,i,n,a){this.r=+t,this.g=+i,this.b=+n,this.opacity=+a}function V(){return"#"+_e(this.r)+_e(this.g)+_e(this.b)}function ue(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function _e(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Oe(t,i,n,a){return a<=0?t=i=n=NaN:n<=0||n>=1?t=i=NaN:i<=0&&(t=NaN),new Le(t,i,n,a)}function Re(t){if(t instanceof Le)return new Le(t.h,t.s,t.l,t.opacity);if(t instanceof w||(t=W(t)),!t)return new Le;if(t instanceof Le)return t;var i=(t=t.rgb()).r/255,n=t.g/255,a=t.b/255,s=Math.min(i,n,a),o=Math.max(i,n,a),r=NaN,l=o-s,c=(o+s)/2;return l?(r=i===o?(n-a)/l+6*(n<a):n===o?(a-i)/l+2:(i-n)/l+4,l/=c<.5?o+s:2-o-s,r*=60):l=c>0&&c<1?0:r,new Le(r,l,c,t.opacity)}function Le(t,i,n,a){this.h=+t,this.s=+i,this.l=+n,this.opacity=+a}function nt(t,i,n){return 255*(t<60?i+(n-i)*t/60:t<180?n:t<240?i+(n-i)*(240-t)/60:i)}te(w,W,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHsl:function Te(){return Re(this).formatHsl()},formatRgb:ce,toString:ce}),te(z,be,xe(w,{brighter:function(i){return i=null==i?I:Math.pow(I,i),new z(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=null==i?k:Math.pow(k,i),new z(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:V,formatHex:V,formatRgb:ue,toString:ue})),te(Le,function ke(t,i,n,a){return 1===arguments.length?Re(t):new Le(t,i,n,null==a?1:a)},xe(w,{brighter:function(i){return i=null==i?I:Math.pow(I,i),new Le(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=null==i?k:Math.pow(k,i),new Le(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),n=isNaN(i)||isNaN(this.s)?0:this.s,a=this.l,s=a+(a<.5?a:1-a)*n,o=2*a-s;return new z(nt(i>=240?i-240:i+120,o,s),nt(i,o,s),nt(i<120?i+240:i-120,o,s),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return(1===(i=isNaN(i)?1:Math.max(0,Math.min(1,i)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===i?")":", "+i+")")}}));var ct=Be(23753),Gt=Be(80013);function xt(t,i){return t<i?-1:t>i?1:t>=i?0:NaN}function Yt(t){return 1===t.length&&(t=function de(t){return function(i,n){return xt(t(i),n)}}(t)),{left:function(n,a,s,o){for(null==s&&(s=0),null==o&&(o=n.length);s<o;){var r=s+o>>>1;t(n[r],a)<0?s=r+1:o=r}return s},right:function(n,a,s,o){for(null==s&&(s=0),null==o&&(o=n.length);s<o;){var r=s+o>>>1;t(n[r],a)>0?o=r:s=r+1}return s}}}const Ae=Yt(xt).right;var _t=Math.sqrt(50),He=Math.sqrt(10),rt=Math.sqrt(2);function ni(t,i,n){var a=(i-t)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),o=a/Math.pow(10,s);return s>=0?(o>=_t?10:o>=He?5:o>=rt?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(o>=_t?10:o>=He?5:o>=rt?2:1)}function gi(t,i,n){var a=Math.abs(i-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),o=a/s;return o>=_t?s*=10:o>=He?s*=5:o>=rt&&(s*=2),i<t?-s:s}function Ao(t){return null===t?NaN:+t}function aa(t,i,n){if(null==n&&(n=Ao),a=t.length){if((i=+i)<=0||a<2)return+n(t[0],0,t);if(i>=1)return+n(t[a-1],a-1,t);var a,s=(a-1)*i,o=Math.floor(s),r=+n(t[o],o,t);return r+(+n(t[o+1],o+1,t)-r)*(s-o)}}function oa(t,i,n){t=+t,i=+i,n=(s=arguments.length)<2?(i=t,t=0,1):s<3?1:+n;for(var a=-1,s=0|Math.max(0,Math.ceil((i-t)/n)),o=new Array(s);++a<s;)o[a]=t+a*n;return o}var J="$";function oe(){}function T(t,i){var n=new oe;if(t instanceof oe)t.each(function(l,c){n.set(c,l)});else if(Array.isArray(t)){var o,a=-1,s=t.length;if(null==i)for(;++a<s;)n.set(a,t[a]);else for(;++a<s;)n.set(i(o=t[a],a,t),o)}else if(t)for(var r in t)n.set(r,t[r]);return n}oe.prototype=T.prototype={constructor:oe,has:function(i){return J+i in this},get:function(i){return this[J+i]},set:function(i,n){return this[J+i]=n,this},remove:function(i){var n=J+i;return n in this&&delete this[n]},clear:function(){for(var i in this)i[0]===J&&delete this[i]},keys:function(){var i=[];for(var n in this)n[0]===J&&i.push(n.slice(1));return i},values:function(){var i=[];for(var n in this)n[0]===J&&i.push(this[n]);return i},entries:function(){var i=[];for(var n in this)n[0]===J&&i.push({key:n.slice(1),value:this[n]});return i},size:function(){var i=0;for(var n in this)n[0]===J&&++i;return i},empty:function(){for(var i in this)if(i[0]===J)return!1;return!0},each:function(i){for(var n in this)n[0]===J&&i(this[n],n.slice(1),this)}};const S=T;function Ye(){}var Ve=S.prototype;Ye.prototype=function Bt(t,i){var n=new Ye;if(t instanceof Ye)t.each(function(o){n.add(o)});else if(t){var a=-1,s=t.length;if(null==i)for(;++a<s;
1)n.add(t[a]);else for(;++a<s;)n.add(i(t[a],a,t))}return n}.prototype={constructor:Ye,has:Ve.has,add:function(i){return this[J+(i+="")]=i,this},remove:Ve.remove,clear:Ve.clear,values:Ve.keys,size:Ve.size,empty:Ve.empty,each:Ve.each};var ai=Array.prototype,ra=ai.map,Qt=ai.slice,So={name:"implicit"};function sa(t){var i=S(),n=[],a=So;function s(o){var r=o+"",l=i.get(r);if(!l){if(a!==So)return a;i.set(r,l=n.push(o))}return t[(l-1)%t.length]}return t=null==t?[]:Qt.call(t),s.domain=function(o){if(!arguments.length)return n.slice();n=[],i=S();for(var c,p,r=-1,l=o.length;++r<l;)i.has(p=(c=o[r])+"")||i.set(p,n.push(c));return s},s.range=function(o){return arguments.length?(t=Qt.call(o),s):t.slice()},s.unknown=function(o){return arguments.length?(a=o,s):a},s.copy=function(){return sa().domain(n).range(t).unknown(a)},s}function ht(){var s,o,t=sa().unknown(void 0),i=t.domain,n=t.range,a=[0,1],r=!1,l=0,c=0,p=.5;function h(){var g=i().length,f=a[1]<a[0],m=a[f-0],x=a[1-f];s=(x-m)/Math.max(1,g-l+2*c),r&&(s=Math.floor(s)),m+=(x-m-s*(g-l))*p,o=s*(1-l),r&&(m=Math.round(m),o=Math.round(o));var y=oa(g).map(function(_){return m+s*_});return n(f?y.reverse():y)}return delete t.unknown,t.domain=function(g){return arguments.length?(i(g),h()):i()}
1,t.range=function(g){return arguments.length?(a=[+g[0],+g[1]],h()):a.slice()},t.rangeRound=function(g){return a=[+g[0],+g[1]],r=!0,h()},t.bandwidth=function(){return o},t.step=function(){return s},t.round=function(g){return arguments.length?(r=!!g,h()):r},t.padding=function(g){return arguments.length?(l=c=Math.max(0,Math.min(1,g)),h()):l},t.paddingInner=function(g){return arguments.length?(l=Math.max(0,Math.min(1,g)),h()):l},t.paddingOuter=function(g){return arguments.length?(c=Math.max(0,Math.min(1,g)),h()):c},t.align=function(g){return arguments.length?(p=Math.max(0,Math.min(1,g)),h()):p},t.copy=function(){return ht().domain(i()).range(a).round(r).paddingInner(l).paddingOuter(c).align(p)},h()}function Io(t){var i=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Io(i())},t}function vi(){return Io(ht().paddingInner(1))}function Et(t,i){return t=+t,i=+i,function(n){return t*(1-n)+i*n}}function Lo(t,i,n,a,s){var o=t*t,r=o*t;return((1-3*t+3*o-r)*i+(4-6*o+3*r)*n+(1+3*t+3*o-3*r)*a+r*s)/6}function _n(t){return function(){return t}}function Oo(t,i){return function(n){return t+n*i}}function Oi(t,i){var n=i-t;return n?Oo(t,n):_n(isNaN(t)?i:t)}const bn=function t(i){var n=function fl(t){return 1==(t=+t)?Oi:function(i,n){return n-i?function hl(t,i,n){return t=Math.pow(t,n),i=Math.pow(i,n)-t,n=1/n,function(a){return Math.pow(t+a*i,n)}}(i,n,t):_n(isNaN(i)?n:i)}}(i);function a(s,o){var r=n((s=be(s)).r,(o=be(o)).r),l=n(s.g,o.g),c=n(s.b,o.b),p=Oi(s.opacity,o.opacity);return function(h){return s.r=r(h),s.g=l(h),s.b=c(h),s.opacity=p(h),s+""}}return a.gamma=t,a}(1);function Do(t){return function(i){var r,l,n=i.length,a=new Array(n),s=new Array(n),o=new Array(n);for(r=0;r<n;++r)l=be(i[r]),a[r]=l.r||0,s[r]=l.g||0,o[r]=l.b||0;return a=t(a),s=t(s),o=t(o),l.opacity=1,function(c){return l.r=a(c),l.g=s(c),l.b=o(c),l+""}}}function Bo(t,i){var r,n=i?i.length:0,a=t?Math.min(n,t.length):0,s=new Array(a),o=new Array(n);for(r=0;r<a;++r)s[r]=yi(t[r],i[r]);for(;r<n;++r)o[r]=i[r];return function(l){for(r=0;r<a;++r)o[r]=s[r](l);return o}}function ml(t,i){var n=new Date;return t=+t,i=+i,function(a){return n.setTime(t*(1-a)+i*a),n}}function vl(t,i){var s,n={},a={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===i||"object"!=typeof i)&&(i={}),i)s in t?n[s]=yi(t[s],i[s]):a[s]=i[s];return function(o){for(s in n)a[s]=n[s](o);return a}}Do(function ul(t){var i=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,i-1):Math.floor(n*i),s=t[a],o=t[a+1];return Lo((n-a/i)*i,a>0?t[a-1]:2*s-o,s,o,a<i-1?t[a+2]:2*o-s)}}),Do(function pl(t){var i=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*i);return Lo((n-a/i)*i,t[(a+i-1)%i],t[a%i],t[(a+1)%i],t[(a+2)%i])}});var la=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ca=new RegExp(la.source,"g");function Mo(t,i){var a,s,o,n=la.lastIndex=ca.lastIndex=0,r=-1,l=[],c=[];for(t+="",i+="";(a=la.exec(t))&&(s=ca.exec(i));)(o=s.index)>n&&(o=i.slice(n,o),l[r]?l[r]+=o:l[++r]=o),(a=a[0])===(s=s[0])?l[r]?l[r]+=s:l[++r]=s:(l[++r]=null,c.push({i:r,x:Et(a,s)})),n=ca.lastIndex;return n<i.length&&(o=i.slice(n),l[r]?l[r]+=o:l[++r]=o),l.length<2?c[0]?function xl(t){return function(i){return t(i)+""}}(c[0].x):function yl(t){return function(){return t}}(i):(i=c.length,function(p){for(var g,h=0;h<i;++h)l[(g=c[h]).i]=g.x(p);return l.join("")})}function _l(t,i){i||(i=[]);var s,n=t?Math.min(i.length,t.length):0,a=i.slice();return function(o){for(s=0;s<n;++s)a[s]=t[s]*(1-o)+i[s]*o;return a}}function yi(t,i){var a,n=typeof i;return null==i||"boolean"===n?_n(i):("number"===n?Et:"string"===n?(a=W(i))?(i=a,bn):Mo:i instanceof W?bn:i instanceof Date?ml:function bl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(i)?_l:Array.isArray(i)?Bo:"function"!=typeof i.valueOf&&"function"!=typeof i.toString||isNaN(i)?vl:Et)(t,i)}function Tl(t,i){return t=+t,i=+i,function(n){return Math.round(t*(1-n)+i*n)}}function Cl(t){return+t}var Fo=[0,1];function da(t,i){return(i-=t=+t)?function(n){return(n-t)/i}:function wl(t){return function(){return t}}(i)}function Sl(t,i,n,a){var s=t[0],o=t[1],r=i[0],l=i[1];return o<s?(s=n(o,s),r=a(l,r)):(s=n(s,o),r=a(r,l)),function(c){return r(s(c))}}function Il(t,i,n,a){var s=Math.min(t.length,i.length)-1,o=new Array(s),r=new Array(s),l=-1;for(t[s]<t[0]&&(t=t.slice().reverse(),i=i.slice().reverse());++l<s;)o[l]=n(t[l],t[l+1]),r[l]=a(i[l],i[l+1]);return function(c){var p=Ae(t,c,1,s)-1;return r[p](o[p](c))}}function Eo(t,i){return i.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function jo(t,i){var r,l,c,n=Fo,a=Fo,s=yi,o=!1;function p(){return r=Math.min(n.length,a.length)>2?Il:Sl,l=c=null,h}function h(g){return(l||(l=r(n,a,o?function kl(t){return function(i,n){var a=t(i=+i,n=+n);return function(s){return s<=i?0:s>=n?1:a(s)}}}(t):t,s)))(+g)}return h.invert=function(g){return(c||(c=r(a,n,da,o?function Al(t){return function(i,n){var a=t(i=+i,n=+n);return function(s){return s<=0?i:s>=1?n:a(s)}}}(i):i)))(+g)},h.domain=function(g){return arguments.length?(n=ra.call(g,Cl),p()):n.slice()},h.range=function(g){return arguments.length?(a=Qt.call(g),p()):a.slice()},h.rangeRound=function(g){return a=Qt.call(g),s=Tl,p()},h.clamp=function(g){return arguments.length?(o=!!g,p()):o},h.interpolate=function(g){return arguments.length?(s=g,p()):s},p()}var No,Ll=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tn(t){if(!(i=Ll.exec(t)))throw new Error("invalid format: "+t);var i;return new ua({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5
1],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function ua(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function wn(t,i){if((n=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function Di(t){return(t=wn(Math.abs(t)))?t[1]:NaN}function Po(t,i){var n=wn(t,i);if(!n)return t+"";var a=n[0],s=n[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}Tn.prototype=ua.prototype,ua.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ho={"%":function(i,n){return(100*i).toFixed(n)},b:function(i){return Math.round(i).toString(2)},c:function(i){return i+""},d:function Ol(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(i,n){return i.toExponential(n)},f:function(i,n){return i.toFixed(n)},g:function(i,n){return i.toPrecision(n)},o:function(i){return Math.round(i).toString(8)},p:function(i,n){return Po(100*i,n)},r:Po,s:function El(t,i){var n=wn(t,i);if(!n)return t+"";var a=n[0],s=n[1],o=s-(No=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,r=a.length;return o===r?a:o>r?a+new Array(o-r+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+wn(t,Math.max(0,i+o-1))[0]},X:function(i){return Math.round(i).toString(16).toUpperCase()},x:function(i){return Math.round(i).toString(16)}};function zo(t){return t}var Cn,pa,Yo,Ro=Array.prototype.map,Go=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Rl(t){var i=t.domain;return t.ticks=function(n){var a=i();return function It(t,i,n){var a,o,r,l,s=-1;if(n=+n,(t=+t)==(i=+i)&&n>0)return[t];if((a=i<t)&&(o=t,t=i,i=o),0===(l=ni(t,i,n))||!isFinite(l))return[];if(l>0)for(t=Math.ceil(t/l),i=Math.floor(i/l),r=new Array(o=Math.ceil(i-t+1));++s<o;)r[s]=(t+s)*l;else for(t=Math.floor(t*l),i=Math.ceil(i*l),r=new Array(o=Math.ceil(t-i+1));++s<o;)r[s]=(t-s)/l;return a&&r.reverse(),r}(a[0],a[a.length-1],null==n?10:n)},t.tickFormat=function(n,a){return function zl(t,i,n){var r,a=t[0],s=t[t.length-1],o=gi(a,s,null==i?10:i);switch((n=Tn(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(a),Math.abs(s));return null==n.precision&&!isNaN(r=function Dl(t,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Di(i)/3)))-Di(Math.abs(t)))}(o,l))&&(n.precision=r),Yo(n,l);case"":case"e":case"g":case"p":case"r":null==n.precision&&!isNaN(r=function Pl(t,i){return t=Math.abs(t),i=Math.abs(i)-t,Math.max(0,Di(i)-Di(t))+1}(o,Math.max(Math.abs(a),Math.abs(s))))&&(n.precision=r-("e"===n.type));break;case"f":case"%":null==n.precision&&!isNaN(r=function Hl(t){return Math.max(0,-Di(Math.abs(t)))}(o))&&(n.precision=r-2*("%"===n.type))}return pa(n)}(i(),n,a)},t.nice=function(n){null==n&&(n=10);var c,a=i(),s=0,o=a.length-1,r=a[s],l=a[o];return l<r&&(c=r,r=l,l=c,c=s,s=o,o=c),(c=ni(r,l,n))>0?c=ni(r=Math.floor(r/c)*c,l=Math.ceil(l/c)*c,n):c<0&&(c=ni(r=Math.ceil(r*c)/c,l=Math.floor(l*c)/c,n)),c>0?(a[s]=Math.floor(r/c)*c,a[o]=Math.ceil(l/c)*c,i(a)):c<0&&(a[s]=Math.ceil(r*c)/c,a[o]=Math.floor(l*c)/c,i(a)),t},t}function Ze(){var t=jo(da,Et);return t.copy=function(){return Eo(t,Ze())},Rl(t)}function Uo(){var t=[],i=[],n=[];function a(){var o=0,r=Math.max(1,i.length);for(n=new Array(r-1);++o<r;)n[o-1]=aa(t,o/r);return s}function s(o){if(!isNaN(o=+o))return i[Ae(n,o)]}return s.invertExtent=function(o){var r=i.indexOf(o);return r<0?[NaN,NaN]:[r>0?n[r-1]:t[0],r<n.length?n[r]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(var c,r=0,l=o.length;r<l;++r)null!=(c=o[r])&&!isNaN(c=+c)&&t.push(c);return t.sort(xt),a()},s.range=function(o){return arguments.length?(i=Qt.call(o),a()):i.slice()},s.quantiles=function(){return n.slice()},s.copy=function(){return Uo().domain(t).range(i)},s}!function Nl(t){Cn=function jl(t){var i=void 0===t.grouping||void 0===t.thous
1ands?zo:function Bl(t,i){return function(n,a){for(var s=n.length,o=[],r=0,l=t[0],c=0;s>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),o.push(n.substring(s-=l,s+l)),!((c+=l+1)>a));)l=t[r=(r+1)%t.length];return o.reverse().join(i)}}(Ro.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?zo:function Ml(t){return function(i){return i.replace(/[0-9]/g,function(n){return t[+n]})}}(Ro.call(t.numerals,String)),r=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function p(g){var f=(g=Tn(g)).fill,m=g.align,x=g.sign,y=g.symbol,_=g.zero,A=g.width,B=g.comma,O=g.precision,M=g.trim,ee=g.type;"n"===ee?(B=!0,ee="g"):Ho[ee]||(void 0===O&&(O=12),M=!0,ee="g"),(_||"0"===f&&"="===m)&&(_=!0,f="0",m="=");var ne="$"===y?n:"#"===y&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",Y="$"===y?a:/[%p]/.test(ee)?r:"",pe=Ho[ee],$=/[defgprs%]/.test(ee);function he(se){var Qe,Me,Ee,Q=ne,le=Y;if("c"===ee)le=pe(se)+le,se="";else{var tt=(se=+se)<0||1/se<0;if(se=isNaN(se)?c:pe(Math.abs(se),O),M&&(se=function Fl(t){e:for(var s,i=t.length,n=1,a=-1;n<i;++n)switch(t[n]){case".":a=s=n;break;case"0":0===a&&(a=n),s=n;break;default:if(!+t[n])break e;a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(s+1):t}(se)),tt&&0==+se&&"+"!==x&&(tt=!1),Q=(tt?"("===x?x:l:"-"===x||"("===x?"":x)+Q,le=("s"===ee?Go[8+No/3]:"")+le+(tt&&"("===x?")":""),$)for(Qe=-1,Me=se.length;++Qe<Me;)if(48>(Ee=se.charCodeAt(Qe))||Ee>57){le=(46===Ee?s+se.slice(Qe+1):se.slice(Qe))+le,se=se.slice(0,Qe);break}}B&&!_&&(se=i(se,1/0));var ze=Q.length+se.length+le.length,je=ze<A?new Array(A-ze+1).join(f):"";switch(B&&_&&(se=i(je+se,je.length?A-le.length:1/0),je=""),m){case"<":se=Q+se+le+je;break;case"=":se=Q+je+se+le;break;case"^":se=je.slice(0,ze=je.length>>1)+Q+se+le+je.slice(ze);break;default:se=je+Q+se+le}return o(se)}return O=void 0===O?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O)),he.toString=function(){return g+""},he}return{format:p,formatPrefix:function h(g,f){var m=p(((g=Tn(g)).type="f",g)),x=3*Math.max(-8,Math.min(8,Math.floor(Di(f)/3))),y=Math.pow(10,-x),_=Go[8+x/3];return function(A){return m(y*A)+_}}}}(t),pa=Cn.format,Yo=Cn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ha=new Date,ga=new Date;function dt(t,i,n,a){function s(o){return t(o=new Date(+o)),o}return s.floor=s,s.ceil=function(o){return t(o=new Date(o-1)),i(o,1),t(o),o},s.round=function(o){var r=s(o),l=s.ceil(o);return o-r<l-o?r:l},s.offset=function(o,r){return i(o=new Date(+o),null==r?1:Math.floor(r)),o},s.range=function(o,r,l){var p,c=[];if(o=s.ceil(o),l=null==l?1:Math.floor(l),!(o<r&&l>0))return c;do{c.push(p=new Date(+o)),i(o,l),t(o)}while(p<o&&o<r);return c},s.filter=function(o){return dt(function(r){if(r>=r)for(;t(r),!o(r);)r.setTime(r-1)},function(r,l){if(r>=r)if(l<0)for(;++l<=0;)for(;i(r,-1),!o(r););else for(;--l>=0;)for(;i(r,1),!o(r););})},n&&(s.count=function(o,r){return ha.setTime(+o),ga.setTime(+r),t(ha),t(ga),Math.floor(n(ha,ga))},s.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?s.filter(a?function(r){return a(r)%o==0}:function(r){return s.count(0,r)%o==0}):s:null}),s}var kn=dt(function(){},function(t,i){t.setTime(+t+i)},function(t,i){return i-t});kn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?dt(function(i){i.setTime(Math.floor(i/t)*t)},function(i,n){i.setTime(+i+n*t)},function(i,n){return(n-i)/t}):kn:null};const $l=kn;var Vt=6e4,oi=36e5,Qo=6048e5;const Ql=dt(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,i){t.setTime(+t+1e3*i)},function(t,i){return(i-t)/1e3},function(t){return t.getUTCSeconds()});const Vl=dt(function(t){t.setTime(Math.floor(t/Vt)*Vt)},function(t,i){t.setTime(+t+i*Vt)},function(t,i){return(i-t)/Vt},function(t){return t.getMinutes()});const ql=dt(function(t){var i=t.getTimezoneOffset()*Vt%oi;i<0&&(i+=oi),t.setTime(Math.floor((+t-i)/oi)*oi+i)},function(t,i){t.setTime(+t+i*oi)},function(t,i){return(i-t)/oi},function(t){return t.getHours()});const fa=dt(function(t){t.setHours(0,0,0,0)},function(t,i){t.setDate(t.getDate()+i)},function(t,i){return(i-t-(i.getTimezoneOffset()-t.getTimezoneOffset())*Vt)/864e5},function(t){return t.getDate()-1});function xi(t){return dt(function(i){i.setDate(i.getDate()-(i.getDay()+7-t)%7),i.setHours(0,0,0,0)},function(i,n){i.setDate(i.getDate()+7*n)},function(i,n){return(n-i-(n.getTimezoneOffset()-i.getTimezoneOffset())*Vt)/Qo})}var ma=xi(0),Sn=xi(1),Mi=(xi(2),xi(3),xi(4));const nc=(xi(5),xi(6),dt(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,i){t.setMonth(t.getMonth()+i)},function(t,i){return i.getMonth()-t.getMonth()+12*(i.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));var va=dt(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,i){t.setFullYear(t.getFullYear()+i)},function(t,i){return i.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});va.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dt(function(i){i.setFullYear(Math.floor(i.getFullYear()/t)*t),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,n){i.setFullYear(i.getFullYear()+n*t)}):null};const Fi=va;dt(function(t){t.setUTCSeconds(0,0)},function(t,i){t.setTime(+t+i*Vt)},function(t,i){return(i-t)/Vt},function(t){return t.getUTCMinutes()}),dt(function(t){t.setUTCMinutes(0,0,0)},function(t,i){t.setTime(+t+i*oi)},function(t,i){return(i-t)/oi},function(t){return t.getUTCHours()});const nr=dt(function(t){t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCDate(t.getUTCDate()+i)},function(t,i){return(i-t)/864e5},function(t){return t.getUTCDate()-1}
1);function _i(t){return dt(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-t)%7),i.setUTCHours(0,0,0,0)},function(i,n){i.setUTCDate(i.getUTCDate()+7*n)},function(i,n){return(n-i)/Qo})}var ar=_i(0),In=_i(1),Ei=(_i(2),_i(3),_i(4));_i(5),_i(6),dt(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCMonth(t.getUTCMonth()+i)},function(t,i){return i.getUTCMonth()-t.getUTCMonth()+12*(i.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});var ya=dt(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,i){t.setUTCFullYear(t.getUTCFullYear()+i)},function(t,i){return i.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ya.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dt(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/t)*t),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,n){i.setUTCFullYear(i.getUTCFullYear()+n*t)}):null};const Wi=ya;function xa(t){if(0<=t.y&&t.y<100){var i=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return i.setFullYear(t.y),i}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function _a(t){if(0<=t.y&&t.y<100){var i=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return i.setUTCFullYear(t.y),i}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ui(t,i,n){return{y:t,m:i,d:n,H:0,M:0,S:0,L:0}}var ji,xr,or={"-":"",_:" ",0:"0"},ut=/^\s*\d+/,pc=/^%/,hc=/[\\^$*+?|[\]().{}]/g;function Pe(t,i,n){var a=t<0?"-":"",s=(a?-t:t)+"",o=s.length;return a+(o<n?new Array(n-o+1).join(i)+s:s)}function gc(t){return t.replace(hc,"\\$&")}function $i(t){return new RegExp("^(?:"+t.map(gc).join("|")+")","i")}function Qi(t){for(var i={},n=-1,a=t.length;++n<a;)i[t[n].toLowerCase()]=n;return i}function fc(t,i,n){var a=ut.exec(i.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function mc(t,i,n){var a=ut.exec(i.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function vc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function yc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function xc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function rr(t,i,n){var a=ut.exec(i.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function sr(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function _c(t,i,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function bc(t,i,n){var a=ut.exec(i.slice(n,n+1));return a?(t.q=3*a[0]-3,n+a[0].length):-1}function Tc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function lr(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function wc(t,i,n){var a=ut.exec(i.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function cr(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Cc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function kc(t,i,n){var a=ut.exec(i.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function Ac(t,i,n){var a=ut.exec(i.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Sc(t,i,n){var a=ut.exec(i.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function Ic(t,i,n){var a=pc.exec(i.slice(n,n+1));return a?n+a[0].length:-1}function Lc(t,i,n){var a=ut.exec(i.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function Oc(t,i,n){var a=ut.exec(i.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function dr(t,i){return Pe(t.getDate(),i,2)}function Dc(t,i){return Pe(t.getHours(),i,2)}function Bc(t,i){return Pe(t.getHours()%12||12,i,2)}function Mc(t,i){return Pe(1+fa.count(Fi(t),t),i,3)}function ur(t,i){return Pe(t.getMilliseconds(),i,3)}function Fc(t,i){return ur(t,i)+"000"}function Ec(t,i){return Pe(t.getMonth()+1,i,2)}function jc(t,i){return Pe(t.getMinutes(),i,2)}function Nc(t,i){return Pe(t.getSeconds(),i,2)}function Pc(t){var i=t.getDay();return 0===i?7:i}function Hc(t,i){return Pe(ma.count(Fi(t)-1,t),i,2)}function pr(t){var i=t.getDay();return i>=4||0===i?Mi(t):Mi.ceil(t)}function zc(t,i){return t=pr(t),Pe(Mi.count(Fi(t),t)+(4===Fi(t).getDay()),i,2)}function Rc(t){return t.getDay()}function Gc(t,i){return Pe(Sn.count(Fi(t)-1,t),i,2)}function Yc(t,i){return Pe(t.getFullYear()%100,i,2)}function Zc(t,i){return Pe((t=pr(t)).getFullYear()%100,i,2)}function Xc(t,i){return Pe(t.getFullYear()%1e4,i,4)}
vendor: 5,371 bytes, line 1
1function Jc(t,i){var n=t.getDay();return Pe((t=n>=4||0===n?Mi(t):Mi.ceil(t)).getFullYear()%1e4,i,4)}function Wc(t){var i=t.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+Pe(i/60|0,"0",2)+Pe(i%60,"0",2)}function hr(t,i){return Pe(t.getUTCDate(),i,2)}function Uc(t,i){return Pe(t.getUTCHours(),i,2)}function $c(t,i){return Pe(t.getUTCHours()%12||12,i,2)}function Qc(t,i){return Pe(1+nr.count(Wi(t),t),i,3)}function gr(t,i){return Pe(t.getUTCMilliseconds(),i,3)}function Vc(t,i){return gr(t,i)+"000"}function qc(t,i){return Pe(t.getUTCMonth()+1,i,2)}function Kc(t,i){return Pe(t.getUTCMinutes(),i,2)}function ed(t,i){return Pe(t.getUTCSeconds(),i,2)}function td(t){var i=t.getUTCDay();return 0===i?7:i}function id(t,i){return Pe(ar.count(Wi(t)-1,t),i,2)}function fr(t){var i=t.getUTCDay();return i>=4||0===i?Ei(t):Ei.ceil(t)}function nd(t,i){return t=fr(t),Pe(Ei.count(Wi(t),t)+(4===Wi(t).getUTCDay()),i,2)}function ad(t){return t.getUTCDay()}function od(t,i){return Pe(In.count(Wi(t)-1,t),i,2)}function rd(t,i){return Pe(t.getUTCFullYear()%100,i,2)}function sd(t,i){return Pe((t=fr(t)).getUTCFullYear()%100,i,2)}function ld(t,i){return Pe(t.getUTCFullYear()%1e4,i,4)}function cd(t,i){var n=t.getUTCDay();return Pe((t=n>=4||0===n?Ei(t):Ei.ceil(t)).getUTCFullYear()%1e4,i,4)}function dd(){return"+0000"}function mr(){return"%"}function vr(t){return+t}function yr(t){return Math.floor(+t/1e3)}!function gd(t){ji=function uc(t){var i=t.dateTime,n=t.date,a=t.time,s=t.periods,o=t.days,r=t.shortDays,l=t.months,c=t.shortMonths,p=$i(s),h=Qi(s),g=$i(o),f=Qi(o),m=$i(r),x=Qi(r),y=$i(l),_=Qi(l),A=$i(c),B=Qi(c),O={a:function tt(ge){return r[ge.getDay()]},A:function ze(ge){return o[ge.getDay()]},b:function je(ge){return c[ge.getMonth()]},B:function Ue(ge){return l[ge.getMonth()]},c:null,d:dr,e:dr,f:Fc,g:Zc,G:Jc,H:Dc,I:Bc,j:Mc,L:ur,m:Ec,M:jc,p:function $e(ge){return s[+(ge.getHours()>=12)]},q:function ti(ge){return 1+~~(ge.getMonth()/3)},Q:vr,s:yr,S:Nc,u:Pc,U:Hc,V:zc,w:Rc,W:Gc,x:null,X:null,y:Yc,Y:Xc,Z:Wc,"%":mr},M={a:function Ut(ge){return r[ge.getUTCDay()]},A:function vt(ge){return o[ge.getUTCDay()]},b:function $t(ge){return c[ge.getUTCMonth()]},B:function hi(ge){return l[ge.getUTCMonth()]},c:null,d:hr,e:hr,f:Vc,g:sd,G:cd,H:Uc,I:$c,j:Qc,L:gr,m:qc,M:Kc,p:function zt(ge){return s[+(ge.getUTCHours()>=12)]},q:function Rt(ge){return 1+~~(ge.getUTCMonth()/3)},Q:vr,s:yr,S:ed,u:td,U:id,V:nd,w:ad,W:od,x:null,X:null,y:rd,Y:ld,Z:dd,"%":mr},ee={a:function he(ge,Se,we){var K=m.exec(Se.slice(we));return K?(ge.w=x[K[0].toLowerCase()],we+K[0].length):-1},A:function se(ge,Se,we){var K=g.exec(Se.slice(we));return K?(ge.w=f[K[0].toLowerCase()],we+K[0].length):-1},b:function Q(ge,Se,we){var K=A.exec(Se.slice(we));return K?(ge.m=B[K[0].toLowerCase()],we+K[0].length):-1},B:function le(ge,Se,we){var K=y.exec(Se.slice(we));return K?(ge.m=_[K[0].toLowerCase()],we+K[0].length):-1},c:function Qe(ge,Se,we){return pe(ge,i,Se,we)},d:lr,e:lr,f:Sc,g:sr,G:rr,H:cr,I:cr,j:wc,L:Ac,m:Tc,M:Cc,p:function $(ge,Se,we){var K=p.exec(Se.slice(we));return K?(ge.p=h[K[0].toLowerCase()],we+K[0].length):-1},q:bc,Q:Lc,s:Oc,S:kc,u:mc,U:vc,V:yc,w:fc,W:xc,x:function Me(ge,Se,we){return pe(ge,n,Se,we)},X:function Ee(ge,Se,we){return pe(ge,a,Se,we)},y:sr,Y:rr,Z:_c,"%":Ic};function ne(ge,Se){return function(we){var At,ii,St,K=[],ft=-1,Ne=0,yt=ge.length;for(we instanceof Date||(we=new Date(+we));++ft<yt;)37===ge.charCodeAt(ft)&&(K.push(ge.slice(Ne,ft)),null!=(ii=or[At=ge.charAt(++ft)])?At=ge.charAt(++ft):ii="e"===At?" ":"0",(St=Se[At])&&(At=St(we,ii)),K.push(At),Ne=ft+1);return K.push(ge.slice(Ne,ft)),K.join("")}}function Y(ge,Se){return function(we){var Ne,yt,K=Ui(1900,void 0,1);if(pe(K,ge,we+="",0)!=we.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(1e3*K.s+("L"in K?K.L:0));if(Se&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+12*K.p),void 0===K.m&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(yt=(Ne=_a(Ui(K.y,0,1))).getUTCDay(),Ne=yt>4||0===yt?In.ceil(Ne):In(Ne),Ne=nr.offset(Ne,7*(K.V-1)),K.y=Ne.getUTCFullYear(),K.m=Ne.getUTCMonth(),K.d=Ne.getUTCDate()+(K.w+6)%7):(yt=(Ne=xa(Ui(K.y,0,1))).getDay(),Ne=yt>4||0===yt?Sn.ceil(Ne):Sn(Ne),Ne=fa.offset(Ne,7*(K.V-1)),K.y=Ne.getFullYear(),K.m=Ne.getMonth(),K.d=Ne.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),yt="Z"in K?_a(Ui(K.y,0,1)).getUTCDay():xa(Ui(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+7*K.W-(yt+5)%7:K.w+7*K.U-(yt+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,_a(K)):xa(K)}}function pe(ge,Se,we,K){for(var At,ii,ft=0,Ne=Se.length,yt=we.length;ft<Ne;){if(K>=yt)return-1;if(37===(At=Se.charCodeAt(ft++))){if(At=Se.charAt(ft++),!(ii=ee[At in or?Se.charAt(ft++):At])||(K=ii(ge,we,K))<0)return-1}else if(At!=we.charCodeAt(K++))return-1}return K}return O.x=ne(n,O),O.X=ne(a,O),O.c=ne(i,O),M.x=ne(n,M),M.X=ne(a,M),M.c=ne(i,M),{format:function(Se){var we=ne(Se+="",O);return we.toString=function(){return Se},we},parse:function(Se){var we=Y(Se+="",!1);return we.toString=function(){return Se},we},utcFormat:function(Se){var we=ne(Se+="",M);return we.toString=function(){return Se},we},utcParse:function(Se){var we=Y(Se+="",!0);return we.toString=function(){return Se},we}}}(t),xr=ji.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qi=6e4,Ki=60*qi,en=24*Ki,_r=30*en,ba=365*en;function vd(t){return new Date(t)}function yd(t){return t instanceof Date?+t:+new Date(+t)}function br(t,i,n,a,s,o,r,l,c){var p=jo(da,Et),h=p.invert,g=p.domain,f=c(".%L"),m=c(":%S"),x=c("%I:%M"),y=c("%I %p"),_=c("%a %d"),A=c("%b %d"),B=c("%B"),O=c("%Y"),M=[[r,1,1e3],[r,5,5e3],[r,15,15e3],[r,30,3e4],[o,1,qi],[o,5,5*qi],[o,15,15*qi],[o,30,30*qi],[s,1,Ki],[s,3,3*Ki],[s,6,6*Ki],[s,12,12*Ki],[a,1,en],[a,2,2*en],[n,1,6048e5],[i,1,_r],[i,3,3*_r],[t,1,ba]];function ee(Y){return(r(Y)<Y?f:o(Y)<Y?m:s(Y)<Y?x:a(Y)<Y?y:i(Y)<Y?n(Y)<Y?_:A:t(Y)<Y?B:O)(Y)}function ne(Y,pe,$,he){if(null==Y&&(Y=10),"number"==typeof Y){var se=Math.abs($-pe)/Y,Q=Yt(function(le){return le[2]}).right(M,se);Q===M.length?(he=gi(pe/ba,$/ba,Y),Y=t):Q?(he=(Q=M[se/M[Q-1][2]<M[Q][2]/se?Q-1:Q])[1],Y=Q[0]):(he=Math.max(gi(pe,$,Y),1),Y=l)}return null==he?Y:Y.every(he)}return p.invert=function(Y){return new Date(h(Y))},p.domain=function(Y){return arguments.length?g(ra.call(Y,yd)):g().map(vd)},p.ticks=function(Y,pe){var le,$=g(),he=$[0],se=$[$.length-1],Q=se<he;return Q&&(le=he,he=se,se=le),le=(le=ne(Y,he,se,pe))?le.range(he,se+1):[],Q?le.reverse():le},p.tickFormat=function(Y,pe){return null==pe?ee:c(pe)},p.nice=function(Y,pe){var $=g();return(Y=ne(Y,$[0],$[$.length-1],pe))?g(function fd(t,i){var r,n=0,a=(t=t.slice()).length-1,s=t[n],o=t[a];return o<s&&(r=n,n=a,a=r,r=s,s=o,o=r),t[n]=i.floor(s),t[a]=i.ceil(o),t}($,Y)):p},p.copy=function(){return Eo(p,br(t,i,n,a,s,o,r,l,c))},p}function bi(){return br(Fi,nc,ma,fa,ql,Vl,Ql,$l,xr).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function ri(t){return t.match(/.{6}/g).map(function(i){return"#"+i})}ri("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ri("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),ri("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),ri("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");var xd=Math.PI/180,_d=180/Math.PI,Ta=1.78277,wa=-.29227,Ln=-.90649,tn=1.97294,wr=tn*Ln,Cr=tn*Ta,kr=Ta*wa- -.14861*Ln;function bd(t){if(t instanceof Ti)return new Ti(t.h,t.s,t.l,t.opacity);t instanceof z||(t=ye(t));var n=t.g/255,a=t.b/255,s=(kr*a+wr*(t.r/255)-Cr*n)/(kr+wr-Cr),o=a-s,r=(tn*(n-s)-wa*o)/Ln,l=Math.sqrt(r*r+o*o)/(tn*s*(1-s)),c=l?Math.atan2(r,o)*_d-120:NaN;return new Ti(c<0?c+360:c,l,s,t.opacity)}function Zt(t,i,n,a){return 1===arguments.length?bd(t):new Ti(t,i,n,null==a?1:a)}function Ti(t,i,n,a){this.h=+t,this.s=+i,this.l=+n,this.opacity=+a}function Ar(t){return function i(n){function a(s,o){var r=t((s=Zt(s)).h,(o=Zt(o)).h),l=Oi(s.s,o.s),c=Oi(s.l,o.l),p=Oi(s.opacity,o.opacity);return function(h){return s.h=r(h),s.s=l(h),s.l=c(Math.pow(h,n)),s.opacity=p(h),s+""}}return n=+n,a.gamma=i,a}(1)}te(Ti,Zt,xe(w,{brighter:function(i){return i=null==i?I:Math.pow(I,i),new Ti(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=null==i?k:Math.pow(k,i),new Ti(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*xd,n=+this.l,a=isNaN(this.s)?0:this.s*n*(1-n),s=Math.cos(i),o=Math.sin(i);return new z(255*(n+a*(-.14861*s+Ta*o)),255*(n+a*(wa*s+Ln*o)),255*(n+a*(tn*s)),this.opacity)}})),Ar(function gl(t,i){var n=i-t;return n?Oo(t,n>180||n<-180?n-360*Math.round(n/360):n):_n(isNaN(t)?i:t)});var Ca=Ar(Oi);function Dn(t){var i=t.length;return function(n){return t[Math.max(0,Math.min(i-1,Math.floor(n*i)))]}}Ca(Zt(300,.5,0),Zt(-240,.5,1)),Ca(Zt(-100,.75,.35),Zt(80,1.5,.8)),Ca(Zt(260,.75,.35),Zt(80,1.5,.8)),Zt(),Dn(ri("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588
1c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Dn(ri("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Dn(ri("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Dn(ri("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0a
1a58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var wd={value:function(){}};function Sr(){for(var a,t=0,i=arguments.length,n={};t<i;++t){if(!(a=arguments[t]+"")||a in n)throw new Error("illegal type: "+a);n[a]=[]}return new Bn(n)}function Bn(t){this._=t}function Cd(t,i){return t.trim().split(/^|\s+/).map(function(n){var a="",s=n.indexOf(".");if(s>=0&&(a=n.slice(s+1),n=n.slice(0,s)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}function kd(t,i){for(var s,n=0,a=t.length;n<a;++n)if((s=t[n]).name===i)return s.value}function Ir(t,i,n){for(var a=0,s=t.length;a<s;++a)if(t[a].name===i){t[a]=wd,t=t.slice(0,a).concat(t.slice(a+1));break}return null!=n&&t.push({name:i,value:n}),t}Bn.prototype=Sr.prototype={constructor:Bn,on:function(i,n){var o,a=this._,s=Cd(i+"",a),r=-1,l=s.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<l;)if(o=(i=s[r]).type)a[o]=Ir(a[o],i.name,n);else if(null==n)for(o in a)a[o]=Ir(a[o],i.name,null);return this}for(;++r<l;)if((o=(i=s[r]).type)&&(o=kd(a[o],i.name)))return o},copy:function(){var i={},n=this._;for(var a in n)i[a]=n[a].slice();return new Bn(i)},call:function(i,n){if((o=arguments.length-2)>0)for(var o,r,a=new Array(o),s=0;s<o;++s)a[s]=arguments[s+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(s=0,o=(r=this._[i]).length;s<o;++s)r[s].value.apply(n,a)},apply:function(i,n,a){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var s=this._[i],o=0,r=s.length;o<r;++o)s[o].value.apply(n,a)}};const ka=Sr;function Dd(){}function Aa(t){return null==t?Dd:function(){return this.querySelector(t)}}function Md(){return[]}function Lr(t){return null==t?Md:function(){return this.querySelectorAll(t)}}function Or(t){return function(){return this.matches(t)}}function Dr(t){return new Array(t.length)}function Mn(t,i){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=i}function Pd(t,i,n,a,s,o){for(var l,r=0,c=i.length,p=o.length;r<p;++r)(l=i[r])?(l.__data__=o[r],a[r]=l):n[r]=new Mn(t,o[r]);for(;r<c;++r)(l=i[r])&&(s[r]=l)}function Hd(t,i,n,a,s,o,r){var l,c,m,p={},h=i.length,g=o.length,f=new Array(h);for(l=0;l<h;++l)(c=i[l])&&(f[l]=m="$"+r.call(c,c.__data__,l,i),m in p?s[l]=c:p[m]=c);for(l=0;l<g;++l)(c=p[m="$"+r.call(t,o[l],l,o)])?(a[l]=c,c.__data__=o[l],p[m]=null):n[l]=new Mn(t,o[l]);for(l=0;l<h;++l)(c=i[l])&&p[f[l]]===c&&(s[l]=c)}function Jd(t,i){return t<i?-1:t>i?1:t>=i?0:NaN}Mn.prototype={constructor:Mn,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,n){return this._parent.insertBefore(i,n)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var Sa="http://www.w3.org/1999/xhtml";const Mr={svg:"http://www.w3.org/2000/svg",xhtml:Sa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fn(t){var i=t+="",n=i.indexOf(":");return n>=0&&"xmlns"!==(i=t.slice(0,n))&&(t=t.slice(n+1)),Mr.hasOwnProperty(i)?{space:Mr[i],local:t}:t}function Kd(t){return function(){this.removeAttribute(t)}}function eu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tu(t,i){return function(){this.setAttribute(t,i)}}function iu(t,i){return function(){this.setAttributeNS(t.space,t.local,i)}}function nu(t,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function au(t,i){return function(){var n=i.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Fr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ru(t){return function(){this.style.removeProperty(t)}}function su(t,i,n){return function(){this.style.setProperty(t,i,n)}}function lu(t,i,n){return function(){var a=i.apply(this,arguments);null==a?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function Ni(t,i){return t.style.getPropertyValue(i)||Fr(t).getComputedStyle(t,null).getPropertyValue(i)}function du(t){return function(){delete this[t]}}function uu(t,i){return function(){this[t]=i}}function pu(t,i){return function(){var n=i.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Er(t){return t.trim().split(/^|\s+/)}function Ia(t){return t.classList||new jr(t)}function jr(t){this._node=t,this._names=Er(t.getAttribute("class")||"")}function Nr(t,i){for(var n=Ia(t),a=-1,s=i.length;++a<s;)n.add(i[a])}function Pr(t,i){for(var n=Ia(t),a=-1,s=i.length;++a<s;)n.remove(i[a])}function gu(t){return function(){Nr(this,t)}}function fu(t){return function(){Pr(this,t)}}function mu(t,i){return function(){(i.apply(this,arguments)?Nr:Pr)(this,t)}}function yu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function _u(t){return function(){var i=t.apply(this,arguments);this.textContent=null==i?"":i}}function Tu(){this.innerHTML=""}function wu(t){return function(){this.innerHTML=t}}function Cu(t){return function(){var i=t.apply(this,arguments);this.innerHTML=null==i?"":i}}function Au(){this.nextSibling&&this.parentNode.appendChild(this)}function Iu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ou(t){return function(){var i=this.ownerDocument,n=this.namespaceURI;return n===Sa&&i.documentElement.namespaceURI===Sa?i.createElement(t):i.createElementNS(n,t)}}function Du(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Hr(t){var i=Fn(t);
1return(i.local?Du:Ou)(i)}function Mu(){return null}function Eu(){var t=this.parentNode;t&&t.removeChild(this)}function Nu(){var t=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(t,this.nextSibling):t}function Pu(){var t=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(t,this.nextSibling):t}jr.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var n=this._names.indexOf(i);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var zr={},Fe=null;function Gu(t,i,n){return t=Rr(t,i,n),function(a){var s=a.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,a)}}function Rr(t,i,n){return function(a){var s=Fe;Fe=a;try{t.call(this,this.__data__,i,n)}finally{Fe=s}}}function Yu(t){return t.trim().split(/^|\s+/).map(function(i){var n="",a=i.indexOf(".");return a>=0&&(n=i.slice(a+1),i=i.slice(0,a)),{type:i,name:n}})}function Zu(t){return function(){var i=this.__on;if(i){for(var o,n=0,a=-1,s=i.length;n<s;++n)o=i[n],t.type&&o.type!==t.type||o.name!==t.name?i[++a]=o:this.removeEventListener(o.type,o.listener,o.capture);++a?i.length=a:delete this.__on}}}function Xu(t,i,n){var a=zr.hasOwnProperty(t.type)?Gu:Rr;return function(s,o,r){var c,l=this.__on,p=a(i,o,r);if(l)for(var h=0,g=l.length;h<g;++h)if((c=l[h]).type===t.type&&c.name===t.name)return this.removeEventListener(c.type,c.listener,c.capture),this.addEventListener(c.type,c.listener=p,c.capture=n),void(c.value=i);this.addEventListener(t.type,p,n),c={type:t.type,name:t.name,value:i,listener:p,capture:n},l?l.push(c):this.__on=[c]}}function Gr(t,i,n){var a=Fr(t),s=a.CustomEvent;"function"==typeof s?s=new s(i,n):(s=a.document.createEvent("Event"),n?(s.initEvent(i,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(i,!1,!1)),t.dispatchEvent(s)}function Uu(t,i){return function(){return Gr(this,t,i)}}function $u(t,i){return function(){return Gr(this,t,i.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(zr={mouseenter:"mouseover",mouseleave:"mou
1seout"}));var Yr=[null];function Mt(t,i){this._groups=t,this._parents=i}function Zr(){return new Mt([[document.documentElement]],Yr)}Mt.prototype=Zr.prototype={constructor:Mt,select:function Bd(t){"function"!=typeof t&&(t=Aa(t));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var c,p,o=i[s],r=o.length,l=a[s]=new Array(r),h=0;h<r;++h)(c=o[h])&&(p=t.call(c,c.__data__,h,o))&&("__data__"in c&&(p.__data__=c.__data__),l[h]=p);return new Mt(a,this._parents)},selectAll:function Fd(t){"function"!=typeof t&&(t=Lr(t));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o<n;++o)for(var c,r=i[o],l=r.length,p=0;p<l;++p)(c=r[p])&&(a.push(t.call(c,c.__data__,p,r)),s.push(c));return new Mt(a,s)},filter:function Ed(t){"function"!=typeof t&&(t=Or(t));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var c,o=i[s],r=o.length,l=a[s]=[],p=0;p<r;++p)(c=o[p])&&t.call(c,c.__data__,p,o)&&l.push(c);return new Mt(a,this._parents)},data:function zd(t,i){if(!t)return m=new Array(this.size()),p=-1,this.each(function(ne){m[++p]=ne}),m;var n=i?Hd:Pd,a=this._parents,s=this._groups;"function"!=typeof t&&(t=function Nd(t){return function(){return t}}(t));for(var o=s.length,r=new Array(o),l=new Array(o),c=new Array(o),p=0;p<o;++p){var h=a[p],g=s[p],f=g.length,m=t.call(h,h&&h.__data__,p,a),x=m.length,y=l[p]=new Array(x),_=r[p]=new Array(x);n(h,g,y,_,c[p]=new Array(f),m,i);for(var M,ee,B=0,O=0;B<x;++B)if(M=y[B]){for(B>=O&&(O=B+1);!(ee=_[O])&&++O<x;);M._next=ee||null}}return(r=new Mt(r,a))._enter=l,r._exit=c,r},enter:function jd(){return new Mt(this._enter||this._groups.map(Dr),this._parents)},exit:function Rd(){return new Mt(this._exit||this._groups.map(Dr),this._parents)},join:function Gd(t,i,n){var a=this.enter(),s=this,o=this.exit();return a="function"==typeof t?t(a):a.append(t+""),null!=i&&(s=i(s)),null==n?o.remove():n(o),a&&s?a.merge(s).order():s},merge:function Yd(t){for(var i=this._groups,n=t._groups,a=i.length,o=Math.min(a,n.length),r=new Array(a),l=0;l<o;++l)for(var f,c=i[l],p=n[l],h=c.length,g=r[l]=new Array(h),m=0;m<h;++m)(f=c[m]||p[m])&&(g[m]=f);for(;l<a;++l)r[l]=i[l];return new Mt(r,this._parents)},order:function Zd(){for(var t=this._groups,i=-1,n=t.length;++i<n;)for(var r,a=t[i],s=a.length-1,o=a[s];--s>=0;)(r=a[s])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function Xd(t){function i(g,f){return g&&f?t(g.__data__,f.__data__):!g-!f}t||(t=Jd);for(var n=this._groups,a=n.length,s=new Array(a),o=0;o<a;++o){for(var p,r=n[o],l=r.length,c=s[o]=new Array(l),h=0;h<l;++h)(p=r[h])&&(c[h]=p);c.sort(i)}return new Mt(s,this._parents).order()},call:function Wd(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Ud(){var t=new Array(this.size()),i=-1;return this.each(function(){t[++i]=this}),t},node:function $d(){for(var t=this._groups,i=0,n=t.length;i<n;++i)for(var a=t[i],s=0,o=a.length;s<o;++s){var r=a[s];if(r)return r}return null},size:function Qd(){var t=0;return this.each(function(){++t}),t},empty:function Vd(){return!this.node()},each:function qd(t){for(var i=this._groups,n=0,a=i.length;n<a;++n)for(var l,s=i[n],o=0,r=s.length;o<r;++o)(l=s[o])&&t.call(l,l.__data__,o,s);return this},attr:function ou(t,i){var n=Fn(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((null==i?n.local?eu:Kd:"function"==typeof i?n.local?au:nu:n.local?iu:tu)(n,i))},style:function cu(t,i,n){return arguments.length>1?this.each((null==i?ru:"function"==typeof i?lu:su)(t,i,null==n?"":n)):Ni(this.node(),t)},property:function hu(t,i){return arguments.length>1?this.each((null==i?du:"function"==typeof i?pu:uu)(t,i)):this.node()[t]},classed:function vu(t,i){var n=Er(t+"");if(arguments.length<2){for(var a=Ia(this.node()),s=-1,o=n.length;++s<o;)if(!a.contains(n[s]))return!1;return!0}return this.each(("function"==typeof i?mu:i?gu:fu)(n,i))},text:function bu(t){return arguments.length?this.each(null==t?yu:("function"==typeof t?_u:xu)(t)):this.node().textContent},html:function ku(t){return arguments.length?this.each(null==t?Tu:("function"==typeof t?Cu:wu)(t)):this.node().innerHTML},raise:function Su(){return this.each(Au)},lower:function Lu(){return this.each(Iu)},append:function Bu(t){var i="function"==typeof t?t:Hr(t);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function Fu(t,i){var n="function"==typeof t?t:Hr(t),a=null==i?Mu:"function"==typeof i?i:Aa(i);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function ju(){return this.each(Eu)},clone:function Hu(t){return this.select(t?Pu:Nu)},datum:function zu(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Ju(t,i,n){var s,r,a=Yu(t+""),o=a.length;if(!(arguments.length<2)){for(l=i?Xu:Zu,null==n&&(n=!1),s=0;s<o;
1++s)this.each(l(a[s],i,n));return this}var l=this.node().__on;if(l)for(var h,c=0,p=l.length;c<p;++c)for(s=0,h=l[c];s<o;++s)if((r=a[s]).type===h.type&&r.name===h.name)return h.value},dispatch:function Qu(t,i){return this.each(("function"==typeof i?$u:Uu)(t,i))}};const nn=Zr;function pt(t){return"string"==typeof t?new Mt([[document.querySelector(t)]],[document.documentElement]):new Mt([[t]],Yr)}function La(){Fe.preventDefault(),Fe.stopImmediatePropagation()}function Vu(t){var i=t.document.documentElement,n=pt(t).on("dragstart.drag",La,!0);"onselectstart"in i?n.on("selectstart.drag",La,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function qu(t,i){var n=t.document.documentElement,a=pt(t).on("dragstart.drag",null);i&&(a.on("click.drag",La,!0),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in n?a.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Xr(){for(var i,t=Fe;i=t.sourceEvent;)t=i;return t}function Jr(t,i){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=i.clientX,a.y=i.clientY,[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}var s=t.getBoundingClientRect();return[i.clientX-s.left-t.clientLeft,i.clientY-s.top-t.clientTop]}function ep(t){var i=Xr();return i.changedTouches&&(i=i.changedTouches[0]),Jr(t,i)}var En,rn,Pi=0,an=0,on=0,jn=0,wi=0,Nn=0,sn="object"==typeof performance&&performance.now?performance:Date,Ur="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Pn(){return wi||(Ur(tp),wi=sn.now()+Nn)}function tp(){wi=0}function Hn(){this._call=this._time=this._next=null}function Oa(t,i,n){var a=new Hn;return a.restart(t,i,n),a}function $r(){wi=(jn=sn.now())+Nn,Pi=an=0;try{!function ip(){Pn(),++Pi;for(var i,t=En;t;)(i=wi-t._time)>=0&&t._call.call(null,i),t=t._next;--Pi}()}finally{Pi=0,function ap(){for(var t,n,i=En,a=1/0;i;)i._call?(a>i._time&&(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:En=n);rn=t,Da(a)}(),wi=0}}function np(){var t=sn.now(),i=t-jn;i>1e3&&(Nn-=i,jn=t)}function Da(t){Pi||(an&&(an=clearTimeout(an)),t-wi>24?(t<1/0&&(an=setTimeout($r,t-sn.now()-Nn)),on&&(on=clearInterval(on))):(on||(jn=sn.now(),on=setInterval(np,1e3)),Pi=1,Ur($r)))}function Qr(t,i,n){var a=new Hn;return a.restart(function(s){a.stop(),t(s+i)},i=null==i?0:+i,n),a}Hn.prototype=Oa.prototype={constructor:Hn,restart:function(i,n,a){if("function"!=typeof i)throw new TypeError("callback is not a function");a=(null==a?Pn():+a)+(null==n?0:+n),!this._next&&rn!==this&&(rn?rn._next=this:En=this,rn=this),this._call=i,this._time=a,Da()},stop:function(){this._call&&(this._call=null,this._time=1/0,Da())}};var op=ka("start","end","interrupt"),rp=[];function Gn(t,i,n,a,s,o){var r=t.__transition;if(r){if(n in r)return}else t.__transition={};!function sp(t,i,n){var s,a=t.__transition;function r(p){var h,g,f,m;if(1!==n.state)return c();for(h in a)if((m=a[h]).name===n.name){if(3===m.state)return Qr(r);4===m.state?(m.state=6,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete a[h]):+h<i&&(m.state=6,m.timer.stop(),delete a[h])}if(Qr(function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(p))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,s=new Array(f=n.tween.length),h=0,g=-1;h<f;++h)(m=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(s[++g]=m);s.length=g+1}}function l(p){for(var h=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(c),n.state=5,1),g=-1,f=s.length;++g<f;)s[g].call(null,h);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var p in n.state=6,n.timer.stop(),delete a[i],a)return;delete t.__transition}a[i]=n,n.timer=Oa(function o(p){n.state=1,n.timer.restart(r,n.delay,n.time),n.delay<=p&&r(p-n.delay)},0,n.time)}(t,n,{name:i,index:a,group:s,on:op,tween:rp,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Fa(t,i){var n=Ht(t,i);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ci(t,i){var n=Ht(t,i);if(n.state>2)throw new Error("too late; already started");return n}function Ht(t,i){var n=t.__transition;if(!n||!(n=n[i]))throw new Error("transition not found");return n}function Ea(t,i){var a,s,r,n=t.__transition,o=!0;if(n){for(r in i=null==i?null:i+"",n)(a=n[r]).name===i?(s=a.state>2&&a.state<5,a.state=6,a.timer.stop(),s&&a.on.call("interrupt",t,t.__data__,a.index,a.group),delete n[r]):o=!1;o&&delete t.__transition}}var ln,Na,is,Yn,es=180/Math.PI,ja={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ts(t,i,n,a,s,o){var r,l,c;return(r=Math.sqrt(t*t+i*i))&&(t/=r,i/=r),(c=t*n+i*a)&&(n-=t*c,a-=i*c),(l=Math.sqrt(n*n+a*a))&&(n/=l,a/=l,c/=l),t*a<i*n&&(t=-t,i=-i,c=-c,r=-r),{translateX:s,translateY:o,rotate:Math.atan2(i,t)*es,skewX:Math.atan(c)*es,scaleX:r,scaleY:l}}function ns(t,i,n,a){function s(p){return p.length?p.pop()+" ":""}return function(p,h){var g=[],f=[];return p=t(p),h=t(h),function o(p,h,g,f,m,x){if(p!==g||h!==f){var y=m.push("translate(",null,i,null,n);x.push({i:y-4,x:Et(p,g)},{i:y-2,x:Et(h,f)})}else(g||f)&&m.push("translate("+g+i+f+n)}(p.translateX,p.translateY,h.translateX,h.translateY,g,f),function r(p,h,g,f){p!==h?(p-h>180?h+=360:h-p>180&&(p+=360),f.push({i:g.push(s(g)+"rotate(",null,a)-2,x:Et(p,h)})):h&&g.push(s(g)+"rotate("+h+a)}(p.rotate,h.rotate,g,f),function l(p,h,g,f){p!==h?f.push({i:g.push(s(g)+"skewX(",
1null,a)-2,x:Et(p,h)}):h&&g.push(s(g)+"skewX("+h+a)}(p.skewX,h.skewX,g,f),function c(p,h,g,f,m,x){if(p!==g||h!==f){var y=m.push(s(m)+"scale(",null,",",null,")");x.push({i:y-4,x:Et(p,g)},{i:y-2,x:Et(h,f)})}else(1!==g||1!==f)&&m.push(s(m)+"scale("+g+","+f+")")}(p.scaleX,p.scaleY,h.scaleX,h.scaleY,g,f),p=h=null,function(m){for(var _,x=-1,y=f.length;++x<y;)g[(_=f[x]).i]=_.x(m);return g.join("")}}}var up=ns(function cp(t){return"none"===t?ja:(ln||(ln=document.createElement("DIV"),Na=document.documentElement,is=document.defaultView),ln.style.transform=t,t=is.getComputedStyle(Na.appendChild(ln),null).getPropertyValue("transform"),Na.removeChild(ln),ts(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),pp=ns(function dp(t){return null!=t&&(Yn||(Yn=document.createElementNS("http://www.w3.org/2000/svg","g")),Yn.setAttribute("transform",t),t=Yn.transform.baseVal.consolidate())?ts((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ja},", ",")",")");function hp(t,i){var n,a;return function(){var s=Ci(this,t),o=s.tween;if(o!==n)for(var r=0,l=(a=n=o).length;r<l;++r)if(a[r].name===i){(a=a.slice()).splice(r,1);break}s.tween=a}}function gp(t,i,n){var a,s;if("function"!=typeof n)throw new Error;return function(){var o=Ci(this,t),r=o.tween;if(r!==a){s=(a=r).slice();for(var l={name:i,value:n},c=0,p=s.length;c<p;++c)if(s[c].name===i){s[c]=l;break}c===p&&s.push(l)}o.tween=s}}function Pa(t,i,n){var a=t._id;return t.each(function(){var s=Ci(this,a);(s.value||(s.value={}))[i]=n.apply(this,arguments)}),function(s){return Ht(s,a).value[i]}}function as(t,i){var n;return("number"==typeof i?Et:i instanceof W?bn:(n=W(i))?(i=n,bn):Mo)(t,i)}function mp(t){return function(){this.removeAttribute(t)}}function vp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yp(t,i,n){var a,s;return function(){var o=this.getAttribute(t);return o===n?null:o===a?s:s=i(a=o,n)}}function xp(t,i,n){var a,s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===a?s:s=i(a=o,n)}}function _p(t,i,n){var a,s,o;return function(){var r,l=n(this);return null==l?void this.removeAttribute(t):(r=this.getAttribute(t))===l?null:r===a&&l===s?o:o=i(a=r,s=l)}}function bp(t,i,n){var a,s,o;return function(){var r,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(r=this.getAttributeNS(t.space,t.local))===l?null:r===a&&l===s?o:o=i(a=r,s=l)}}function wp(t,i){function n(){var a=this,s=i.apply(a,arguments);return s&&function(o){a.setAttributeNS(t.space,t.local,s(o))}}return n._value=i,n}function Cp(t,i){function n(){var a=this,s=i.apply(a,arguments);return s&&function(o){a.setAttribute(t,s(o))}}return n._value=i,n}function Ap(t,i){return function(){Fa(this,t).delay=+i.apply(this,arguments)}}function Sp(t,i){return i=+i,function(){Fa(this,t).delay=i}}function Lp(t,i){return function(){Ci(this,t).duration=+i.apply(this,arguments)}}function Op(t,i){return i=+i,function(){Ci(this,t).duration=i}}function Bp(t,i){if("function"!=typeof i)throw new Error;return function(){Ci(this,t).ease=i}}function Np(t,i,n){var a,s,o=function jp(t){return(t+"").trim().split(/^|\s+/).every(function(i){var n=i.indexOf(".");return n>=0&&(i=i.slice(0,n)),!i||"start"===i})}(i)?Fa:Ci;return function(){var r=o(this,t),l=r.on;l!==a&&(s=(a=l).copy()).on(i,n),r.on=s}}var Yp=nn.prototype.constructor;function Qp(t,i,n){function a(){var s=this,o=i.apply(s,arguments);return o&&function(r){s.style.setProperty(t,o(r),n)}}return a._value=i,a}var ih=0;function qt(t,i,n,a){this._groups=t,this._parents=i,this._name=n,this._id=a}function os(){return++ih}var Hi=nn.prototype;qt.prototype=function nh(t){return nn().transition(t)}.prototype={constructor:qt,select:function Rp(t){var i=this._name,n=this._id;"function"!=typeof t&&(t=Aa(t));for(var a=this._groups,s=a.length,o=new Array(s),r=0;r<s;++r)for(var h,g,l=a[r],c=l.length,p=o[r]=new Array(c),f=0;f<c;++f)(h=l[f])&&(g=t.call(h,h.__data__,f,l))&&("__data__"in h&&(g.__data__=h.__data__),p[f]=g,Gn(p[f],i,n,f,p,Ht(h,n)));return new qt(o,this._parents,i,n)},selectAll:function Gp(t){var i=this._name,n=this._id;"function"!=typeof t&&(t=Lr(t));for(var a=this._groups,s=a.length,o=[],r=[],l=0;l<s;++l)for(var h,c=a[l],p=c.length,g=0;g<p;++g)if(h=c[g]){for(var m,f=t.call(h,h.__data__,g,c),x=Ht(h,n),y=0,_=f.length;y<_;++y)(m=f[y])&&Gn(m,i,n,y,f,x);o.push(f),r.push(h)}return new qt(o,r,i,n)},filter:function Fp(t){"function"!=typeof t&&(t=Or(t));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var c,o=i[s],r=o.length,l=a[s]=[],p=0;p<r;++p)(c=o[p])&&t.call(c,c.__data__,p,o)&&l.push(c);return new qt(a,this._parents,this._name,this._id)},merge:function Ep(t){if(t._id!==this._id)throw new Error;for(var i=this._groups,n=t._groups,a=i.length,o=Math.min(a,n.length),r=new Array(a),l=0;l<o;++l)for(var f,c=i[l],p=n[l],h=c.length,g=r[l]=new Array(h),m=0;m<h;++m)(f=c[m]||p[m])&&(g[m]=f);for(;l<a;++l)r[l]=i[l];return new qt(r,this._parents,this._name,this._id)},selection:function Zp(){return new Yp(this._groups,this._parents)},transition:function th(){for(var t=this._name,i=this._id,n=os(),a=this._groups,s=a.length,o=0;o<s;++o)for(var c,r=a[o],l=r.length,p=0;p<l;++p)if(c=r[p]){var h=Ht(c,i);Gn(c,t,n,p,r,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new qt(a,this._parents,t,n)},call:Hi.call,nodes:Hi.nodes,node:Hi.node,size:Hi.size,empty:Hi.empty,each:Hi.each,on:function Pp(t,i){var n=this._id;return arguments.length<2?Ht(this.node(),n).on.on(t):this.each(Np(n,t,i))},attr:function Tp(t,i){var n=Fn(t),a="transform"===n?pp:as;return this.attrTween(t,"function"==typeof i?(n.local?bp:_p)(n,a,Pa(this,"attr."+t,i)):null==i?(n.local?vp:mp)(n):(n.local?xp:yp)(n,a,i+""))},attrTween:function kp(t,i){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==i)return this.tween(n,null);if("function"!=typeof i)throw new Error;var a=Fn(t);return this.tween(n,(a.local?wp:Cp)(a,i))},style:function $p(t,i,n){var a="transform"==(t+="")?up:as;return null==i?this.styleTween(t,function Xp(t,i){var n,a,s;return function(){var o=Ni(this,t),r=(this.style.removeProperty(t),Ni(this,t));return o===r?null:o===n&&r===a?s:s=i(n=o,a=r)}}(t,a)).on("end.style."+t,function Jp(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof i?function Up(t,i,n){var a,s,o;return function(){var r=Ni(this,t),l=n(this);return null==l&&(this.style.removeProperty(t),l=Ni(this,t)),r===l?null:r===a&&l===s?o:o=i(a=r,s=l)}}(t,a,Pa(this,"style."+t,i)):function Wp(t,i,n){var a,s;return function(){var o=Ni(this,t);return o===n?null:o===a?s:s=i(a=o,n)}}(t,a,i+""),n)},styleTween:function Vp(t,i,n){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(null==i)return this.tween(a,null);if("function"!=typeof i)throw new Error;return this.tween(a,Qp(t,i,null==n?"":n))},text:function eh(t){return this.tween("text","function"==typeof t?function Kp(t){return function(){var i=t(this);this.textContent=null==i?"":i}}(Pa(this,"text",t)):function qp(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function zp(){return this.on("end.remove",function Hp(t){return function(){var i=this.parentNode;for(var n in this.__transition)if(+n!==t)return;i&&i.removeChild(this)}}(this._id))},tween:function fp(t,i){var n=this._id;if(t+="",arguments.length<2){for(var r,a=Ht(this.node(),n).tween,s=0,o=a.length;s<o;++s)if((r=a[s]).name===t)return r.value;return null}return this.each((null==i?hp:gp)(n,t,i))},delay:function Ip(t){var i=this._id;return arguments.length?this.each(("function"==typeof t?Ap:Sp)(i,t)):Ht(this.node(),i).delay},duration:function Dp(t){var i=this._id;return arguments.length?this.each(("function"==typeof t?Lp:Op)(i,t)):Ht(this.node(),i).duration},ease:function Mp(t){var i=this._id;return arguments.length?this.each(Bp(i,t)):Ht(this.node(),i).ease}},function t(i){function n(a){return Math.pow(a,i)}return i=+i,n.exponent=t,n}(3),function t(i){function n(a){return 1-Math.pow(1-a,i)}return i=+i,n.exponent=t,n}(3),function t(i){function n(a){return((a*=2)<=1?Math.pow(a,i):2-Math.pow(2-a,i)
1)/2}return i=+i,n.exponent=t,n}(3),Math;var Ga=1.70158,zi=(function t(i){function n(a){return a*a*((i+1)*a-i)}return i=+i,n.overshoot=t,n}(Ga),function t(i){function n(a){return--a*a*((i+1)*a+i)+1}return i=+i,n.overshoot=t,n}(Ga),function t(i){function n(a){return((a*=2)<1?a*a*((i+1)*a-i):(a-=2)*a*((i+1)*a+i)+2)/2}return i=+i,n.overshoot=t,n}(Ga),2*Math.PI),Xa=(function t(i,n){var a=Math.asin(1/(i=Math.max(1,i)))*(n/=zi);function s(o){return i*Math.pow(2,10*--o)*Math.sin((a-o)/n)}return s.amplitude=function(o){return t(o,n*zi)},s.period=function(o){return t(i,o)},s}(1,.3),function t(i,n){var a=Math.asin(1/(i=Math.max(1,i)))*(n/=zi);function s(o){return 1-i*Math.pow(2,-10*(o=+o))*Math.sin((o+a)/n)}return s.amplitude=function(o){return t(o,n*zi)},s.period=function(o){return t(i,o)},s}(1,.3),function t(i,n){var a=Math.asin(1/(i=Math.max(1,i)))*(n/=zi);function s(o){return((o=2*o-1)<0?i*Math.pow(2,10*o)*Math.sin((a-o)/n):2-i*Math.pow(2,-10*o)*Math.sin((a+o)/n))/2}return s.amplitude=function(o){return t(o,n*zi)},s.period=function(o){return t(i,o)},s}(1,.3),{time:null,delay:0,duration:250,ease:function ah(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}});function hh(t,i){for(var n;!(n=t.__transition)||!(n=n[i]);)if(!(t=t.parentNode))return Xa.time=Pn(),Xa;return n}function Ja(t){return function(){return t}}function mh(t,i,n){this.target=t,this.type=i,this.selection=n}function ls(){Fe.stopImmediatePropagation()}function Wa(){Fe.preventDefault(),Fe.stopImmediatePropagation()}nn.prototype.interrupt=function lp(t){return this.each(function(){Ea(this,t)})},nn.prototype.transition=function gh(t){var i,n;t instanceof qt?(i=t._id,t=t._name):(i=os(),(n=Xa).time=Pn(),t=null==t?null:t+"");for(var a=this._groups,s=a.length,o=0;o<s;++o)for(var c,r=a[o],l=r.length,p=0;p<l;++p)(c=r[p])&&Gn(c,t,i,p,r,n||hh(c,i));return new qt(a,this._parents,t,i)};var cs={name:"drag"},Ua={name:"space"},Ri={name:"handle"},Gi={name:"center"};function ds(t){return[+t[0],+t[1]]}function $a(t){return[ds(t[0]),ds(t[1])]}function vh(t){return function(i){return function Ku(t,i,n){arguments.length<3&&(n=i,i=Xr().changedTouches);for(var o,a=0,s=i?i.length:0;a<s;++a)if((o=i[a]).identifier===n)return Jr(t,o);return null}(i,Fe.touches,t)}}var Xn={name:"x",handles:["w","e"].map(cn),input:function(i,n){return null==i?null:[[+i[0],n[0][1]],[+i[1],n[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},Jn={name:"y",handles:["n","s"].map(cn),input:function(i,n){return null==i?null:[[n[0][0],+i[0]],[n[1][0],+i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},Kt=(["n","w","e","s","nw","ne","sw","se"].map(cn),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),us={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ps={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},xh={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},_h={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cn(t){return{type:t}}function bh(){return!Fe.ctrlKey&&!Fe.button}function Th(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Qa(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ch(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function hs(t){this._context=t}function ki(t){return new hs(t)}hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,n){switch(i=+i,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 1:this._point=2;default:this._context.lineTo(i,n)}}};var qa=Math.PI,Ka=2*qa,Ai=1e-6,Ah=Ka-Ai;function eo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gs(){return new eo}eo.prototype=gs.prototype={constructor:eo,moveTo:function(i,n){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,n){this._+="L"+(this._x1=+i)+","+(this._y1=+n)},quadraticCurveTo:function(i,n,a,s){this._+="Q"+ +i+","+ +n+","+(this._x1=+a)+","+(this._y1=+s)},bezierCurveTo:function(i,n,a,s,o,r){this._+="C"+ +i+","+ +n+","+ +a+","+ +s+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(i,n,a,s,o){var r=this._x1,l=this._y1,c=(a=+a)-(i=+i),p=(s=+s)-(n=+n),h=r-i,g=l-n,f=h*h+g*g;if((o=+o)<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=i)+","+(this._y1=n);else if(f>Ai)if(Math.abs(g*c-p*h)>Ai&&o){var m=a-r,x=s-l,y=c*c+p*p,_=m*m+x*x,A=Math.sqrt(y),B=Math.sqrt(f),O=o*Math.tan((qa-Math.acos((y+f-_)/(2*A*B)))/2),M=O/B,ee=O/A;Math.abs(M-1)>Ai&&(this._+="L"+(i+M*h)+","+(n+M*g)),this._+="A"+o+","+o+",0,0,"+ +(g*m>h*x)+","+(this._x1=i+ee*c)+","+(this._y1=n+ee*p)}else this._+="L"+(this._x1=i)+","+(this._y1=n)},arc:function(i,n,a,s,o,r){i=+i,n=+n;var l=(a=+a)*Math.cos(s),c=a*Math.sin(s),p=i+l,h=n+c,g=1^r,f=r?s-o:o-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+p+","+h:(Math.abs(this._x1-p)>Ai||Math.abs(this._y1-h)>Ai)&&(this._+="L"+p+","+h),a&&(f<0&&(f=f%Ka+Ka),f>Ah?this._+="A"+a+","+a+",0,1,"+g+","+(i-l)+","+(n-c)+"A"+a+","+a+",0,1,"+g+","+(this._x1=p)+","+(this._y1=h):f>Ai&&(this._+="A"+a+","+a+",0,"+ +(f>=qa)+","+g+","+(this._x1=i+a*Math.cos(o))+","+(this._y1=n+a*Math.sin(o))))},rect:function(i,n,a,s){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+n)+"h"+ +a+"v"+ +s+"h"+-a+"Z"},toString:function(){return this._}};const to=gs;function Ge(t){return function(){return t}}function fs(t){return t[0]}function ms(t){return t[1]}function Wn(){var t=fs,i=ms,n=Ge(!0),a=null,s=ki,o=null;function r(l){var c,h,f,p=l.length,g=!1;for(null==a&&(o=s(f=to())),c=0;c<=p;++c)!(c<p&&n(h=l[c],c,l))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+t(h,c,l),+i(h,c,l));if(f)return o=null,f+""||null}return r.x=function(l){return arguments.length?(t="function"==typeof l?l:Ge(+l),r):t},r.y=function(l){return arguments.length?(i="function"==typeof l?l:Ge(+l),r):i},r.defined=function(l){return arguments.length?(n="function"==typeof l?l:Ge(!!l),r):n},r.curve=function(l){return arguments.length?(s=l,null!=a&&(o=s(a)),r):s},r.context=function(l){return arguments.length?(null==l?a=o=null:o=s(a=l),r):a},r}function Yi(){var t=fs,i=null,n=Ge(0),a=ms,s=Ge(!0),o=null,r=ki,l=null;function c(h){var g,f,m,y,A,x=h.length,_=!1,B=new Array(x),O=new Array(x);for(null==o&&(l=r(A=to())),g=0;g<=x;++g){if(!(g<x&&s(y=h[g],g,h))===_)if(_=!_)f=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=g-1;m>=f;--m)l.point(B[m],O[m]);l.lineEnd(),l.areaEnd()}_&&(B[g]=+t(y,g,h),O[g]=+n(y,g,h),l.point(i?+i(y,g,h):B[g],a?+a(y,g,h):O[g]))}if(A)return l=null,A+""||null}function p(){return Wn().defined(s).curve(r).context(o)}return c.x=function(h){return arguments.length?(t="function"==typeof h?h:Ge(+h),i=null,c):t},c.x0=function(h){return arguments.length?(t="function"==typeof h?h:Ge(+h),c):t},c.x1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:Ge(+h),c):i},c.y=function(h){return arguments.length?(n="function"==typeof h?h:Ge(+h),a=null,c):n},c.y0=function(h){return arguments.length?(n="function"==typeof h?h:Ge(+h),c):n},c.y1=function(h){return arguments.length?(a=null==h?null:"function"==typeof h?h:Ge(+h),c):a},c.lineX0=c.lineY0=function(){return p().x(t).y(n)},c.lineY1=function(){return p().x(t).y(a)},c.lineX1=function(){return p().x(i).y(n)},c.defined=function(h){return arguments.length?(s="function"==typeof h?h:Ge(!!h),c):s},c.curve=function(h){return arguments.length?(r=h,null!=o&&(l=r(o)),c):r},c.context=function(h){return arguments.length?(null==h?o=l=null:l=r(o=h),c):o},c}function vs(){}function io(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ys(t,i){this._context=t,this._k=(1-i)/6}function xs(t,i){this._context=t,this._k=(1-i)/6}ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:io(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,n){switch(i=+i,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 1:this._point=2,this._x1=i,this._y1=n;break;case 2:this._point=3;default:io(this,i,n)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(i){function n(a){return new ys(a,i)}return n.tension=function(a){return t(+a)},n}(0),xs.prototype={areaStart:vs,areaEnd:vs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,n){switch(i=+i,n=+n,this._point){case 0:this._point=1,this._x3=i,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=n);break;case 2:this._point=3,this._x5=i,this._y5=n;break;default:io(this,i,n)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Sh=function t(i){function n(a){return new xs(a,i)}return n.tension=function(a){return t(+a)},n}(0);var Ih=bs(ki);function _s(t){this._curve=t}function bs(t){function i(n){return new _s(t(n))}return i._curve=t,i}_s.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(i,n){this._curve.point(n*Math.sin(i),n*-Math.cos(i))}};var Ts=Math.abs,mt=Math.atan2,Si=Math.cos,Dh=Math.max,no=Math.min,Xt=Math.sin,Zi=Math.sqrt,Lt=1e-12,dn=Math.PI,Un=dn/2,$n=2*dn;function Bh(t){return t>1?0:t<-1?dn:Math.acos(t)}function ws(t){return t>=1?Un:t<=-1?-Un:Math.asin(t)}function Mh(t){return t.innerRadius}function Fh(t){return t.outerRadius}function Eh(t){return t.startAngle}function jh(t){return t.endAngle}function Nh(t){return t&&t.padAngle}function Ph(t,i,n,a,s,o,r,l){var c=n-t,p=a-i,h=r-s,g=l-o,f=g*c-h*p;if(!(f*f<Lt))return[t+(f=(h*(i-o)-g*(t-s))/f)*c,i+f*p]}function Qn(t,i,n,a,s,o,r){var l=t-n,c=i-a,p=(r?o:-o)/Zi(l*l+c*c),h=p*c,g=-p*l,f=t+h,m=i+g,x=n+h,y=a+g,_=(f+x)
vendor: 5,624 bytes, line 1
1/2,A=(m+y)/2,B=x-f,O=y-m,M=B*B+O*O,ee=s-o,ne=f*y-x*m,Y=(O<0?-1:1)*Zi(Dh(0,ee*ee*M-ne*ne)),pe=(ne*O-B*Y)/M,$=(-ne*B-O*Y)/M,he=(ne*O+B*Y)/M,se=(-ne*B+O*Y)/M,Q=pe-_,le=$-A,Qe=he-_,Me=se-A;return Q*Q+le*le>Qe*Qe+Me*Me&&(pe=he,$=se),{cx:pe,cy:$,x01:-h,y01:-g,x11:pe*(s/ee-1),y11:$*(s/ee-1)}}function ao(){var t=Mh,i=Fh,n=Ge(0),a=null,s=Eh,o=jh,r=Nh,l=null;function c(){var p,h,g=+t.apply(this,arguments),f=+i.apply(this,arguments),m=s.apply(this,arguments)-Un,x=o.apply(this,arguments)-Un,y=Ts(x-m),_=x>m;if(l||(l=p=to()),f<g&&(h=f,f=g,g=h),f>Lt)if(y>$n-Lt)l.moveTo(f*Si(m),f*Xt(m)),l.arc(0,0,f,m,x,!_),g>Lt&&(l.moveTo(g*Si(x),g*Xt(x)),l.arc(0,0,g,x,m,_));else{var Q,le,A=m,B=x,O=m,M=x,ee=y,ne=y,Y=r.apply(this,arguments)/2,pe=Y>Lt&&(a?+a.apply(this,arguments):Zi(g*g+f*f)),$=no(Ts(f-g)/2,+n.apply(this,arguments)),he=$,se=$;if(pe>Lt){var Qe=ws(pe/g*Xt(Y)),Me=ws(pe/f*Xt(Y));(ee-=2*Qe)>Lt?(O+=Qe*=_?1:-1,M-=Qe):(ee=0,O=M=(m+x)/2),(ne-=2*Me)>Lt?(A+=Me*=_?1:-1,B-=Me):(ne=0,A=B=(m+x)/2)}var Ee=f*Si(A),tt=f*Xt(A),ze=g*Si(M),je=g*Xt(M);if($>Lt){var vt,Ue=f*Si(B),$e=f*Xt(B),ti=g*Si(O),Ut=g*Xt(O);if(y<dn&&(vt=Ph(Ee,tt,ti,Ut,Ue,$e,ze,je))){var $t=Ee-vt[0],hi=tt-vt[1],zt=Ue-vt[0],Rt=$e-vt[1],ge=1/Xt(Bh(($t*zt+hi*Rt)/(Zi($t*$t+hi*hi)*Zi(zt*zt+Rt*Rt)))/2),Se=Zi(vt[0]*vt[0]+vt[1]*vt[1]);he=no($,(g-Se)/(ge-1)),se=no($,(f-Se)/(ge+1))}}ne>Lt?se>Lt?(Q=Qn(ti,Ut,Ee,tt,f,se,_),le=Qn(Ue,$e,ze,je,f,se,_),l.moveTo(Q.cx+Q.x01,Q.cy+Q.y01),se<$?l.arc(Q.cx,Q.cy,se,mt(Q.y01,Q.x01),mt(le.y01,le.x01),!_):(l.arc(Q.cx,Q.cy,se,mt(Q.y01,Q.x01),mt(Q.y11,Q.x11),!_),l.arc(0,0,f,mt(Q.cy+Q.y11,Q.cx+Q.x11),mt(le.cy+le.y11,le.cx+le.x11),!_),l.arc(le.cx,le.cy,se,mt(le.y11,le.x11),mt(le.y01,le.x01),!_))):(l.moveTo(Ee,tt),l.arc(0,0,f,A,B,!_)):l.moveTo(Ee,tt),g>Lt&&ee>Lt?he>Lt?(Q=Qn(ze,je,Ue,$e,g,-he,_),le=Qn(Ee,tt,ti,Ut,g,-he,_),l.lineTo(Q.cx+Q.x01,Q.cy+Q.y01),he<$?l.arc(Q.cx,Q.cy,he,mt(Q.y01,Q.x01),mt(le.y01,le.x01),!_):(l.arc(Q.cx,Q.cy,he,mt(Q.y01,Q.x01),mt(Q.y11,Q.x11),!_),l.arc(0,0,g,mt(Q.cy+Q.y11,Q.cx+Q.x11),mt(le.cy+le.y11,le.cx+le.x11),_),l.arc(le.cx,le.cy,he,mt(le.y11,le.x11),mt(le.y01,le.x01),!_))):l.arc(0,0,g,M,O,_):l.lineTo(ze,je)}else l.moveTo(0,0);if(l.closePath(),p)return l=null,p+""||null}return c.centroid=function(){var p=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,h=(+s.apply(this,arguments)+ +o.apply(this,arguments))/2-dn/2;return[Si(h)*p,Xt(h)*p]},c.innerRadius=function(p){return arguments.length?(t="function"==typeof p?p:Ge(+p),c):t},c.outerRadius=function(p){return arguments.length?(i="function"==typeof p?p:Ge(+p),c):i},c.cornerRadius=function(p){return arguments.length?(n="function"==typeof p?p:Ge(+p),c):n},c.padRadius=function(p){return arguments.length?(a=null==p?null:"function"==typeof p?p:Ge(+p),c):a},c.startAngle=function(p){return arguments.length?(s="function"==typeof p?p:Ge(+p),c):s},c.endAngle=function(p){return arguments.length?(o="function"==typeof p?p:Ge(+p),c):o},c.padAngle=function(p){return arguments.length?(r="function"==typeof p?p:Ge(+p),c):r},c.context=function(p){return arguments.length?(l=null==p?null:p,c):l},c}function Hh(t,i){return i<t?-1:i>t?1:i>=t?0:NaN}function zh(t){return t}function Cs(){var t=zh,i=Hh,n=null,a=Ge(0),s=Ge($n),o=Ge(0);function r(l){var c,h,g,A,M,p=l.length,f=0,m=new Array(p),x=new Array(p),y=+a.apply(this,arguments),_=Math.min($n,Math.max(-$n,s.apply(this,arguments)-y)),B=Math.min(Math.abs(_)/p,o.apply(this,arguments)),O=B*(_<0?-1:1);for(c=0;c<p;++c)(M=x[m[c]=c]=+t(l[c],c,l))>0&&(f+=M);for(null!=i?m.sort(function(ee,ne){return i(x[ee],x[ne])}):null!=n&&m.sort(function(ee,ne){return n(l[ee],l[ne])}),c=0,g=f?(_-p*O)/f:0;c<p;++c,y=A)x[h=m[c]]={data:l[h],index:c,value:M=x[h],startAngle:y,endAngle:A=y+(M>0?M*g:0)+O,padAngle:B};return x}return r.value=function(l){return arguments.length?(t="function"==typeof l?l:Ge(+l),r):t},r.sortValues=function(l){return arguments.length?(i=l,n=null,r):i},r.sort=function(l){return arguments.length?(n=l,i=null,r):n},r.startAngle=function(l){return arguments.length?(a="function"==typeof l?l:Ge(+l),r):a},r.endAngle=function(l){return arguments.length?(s="function"==typeof l?l:Ge(+l),r):s},r.padAngle=function(l){return arguments.length?(o="function"==typeof l?l:Ge(+l),r):o},r}function bt(t){return function(){return t}}function si(){return 1e-6*(Math.random()-.5)}function ks(t,i,n,a){if(isNaN(i)||isNaN(n))return t;var s,g,f,m,x,y,_,A,B,o=t._root,r={data:a},l=t._x0,c=t._y0,p=t._x1,h=t._y1;if(!o)return t._root=r,t;for(;o.length;)if((y=i>=(g=(l+p)/2))?l=g:p=g,(_=n>=(f=(c+h)/2))?c=f:h=f,s=o,!(o=o[A=_<<1|y]))return s[A]=r,t;if(m=+t._x.call(null,o.data),x=+t._y.call(null,o.data),i===m&&n===x)return r.next=o,s?s[A]=r:t._root=r,t;do{s=s?s[A]=new Array(4):t._root=new Array(4),(y=i>=(g=(l+p)/2))?l=g:p=g,(_=n>=(f=(c+h)/2))?c=f:h=f}while((A=_<<1|y)==(B=(x>=f)<<1|m>=g));return s[B]=o,s[A]=r,t}function Tt(t,i,n,a,s){this.node=t,this.x0=i,this.y0=n,this.x1=a,this.y1=s}function Kh(t){return t[0]}function tg(t){return t[1]}function oo(t,i,n){var a=new ro(null==i?Kh:i,null==n?tg:n,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function ro(t,i,n,a,s,o){this._x=t,this._y=i,this._x0=n,this._y0=a,this._x1=s,this._y1=o,this._root=void 0}function As(t){for(var i={data:t.data},n=i;t=t.next;)n=n.next={data:t.data};return i}var wt=oo.prototype=ro.prototype;function ng(t){return t.x+t.vx}function ag(t){return t.y+t.vy}function og(t){var i,n,a=1,s=1;function o(){for(var c,h,g,f,m,x,y,p=i.length,_=0;_<s;++_)for(h=oo(i,ng,ag).visitAfter(r),c=0;c<p;++c)y=(x=n[(g=i[c]).index])*x,f=g.x+g.vx,m=g.y+g.vy,h.visit(A);function A(B,O,M,ee,ne){var Y=B.data,pe=B.r,$=x+pe;if(!Y)return O>f+$||ee<f-$||M>m+$||ne<m-$;if(Y.index>
1g.index){var he=f-Y.x-Y.vx,se=m-Y.y-Y.vy,Q=he*he+se*se;Q<$*$&&(0===he&&(Q+=(he=si())*he),0===se&&(Q+=(se=si())*se),Q=($-(Q=Math.sqrt(Q)))/Q*a,g.vx+=(he*=Q)*($=(pe*=pe)/(y+pe)),g.vy+=(se*=Q)*$,Y.vx-=he*($=1-$),Y.vy-=se*$)}}}function r(c){if(c.data)return c.r=n[c.data.index];for(var p=c.r=0;p<4;++p)c[p]&&c[p].r>c.r&&(c.r=c[p].r)}function l(){if(i){var c,h,p=i.length;for(n=new Array(p),c=0;c<p;++c)n[(h=i[c]).index]=+t(h,c,i)}}return"function"!=typeof t&&(t=bt(null==t?1:+t)),o.initialize=function(c){i=c,l()},o.iterations=function(c){return arguments.length?(s=+c,o):s},o.strength=function(c){return arguments.length?(a=+c,o):a},o.radius=function(c){return arguments.length?(t="function"==typeof c?c:bt(+c),l(),o):t},o}function rg(t){return t.index}function Ss(t,i){var n=t.get(i);if(!n)throw new Error("missing: "+i);return n}function sg(t){var a,o,r,l,c,i=rg,n=function h(y){return 1/Math.min(l[y.source.index],l[y.target.index])},s=bt(30),p=1;function g(y){for(var _=0,A=t.length;_<p;++_)for(var O,M,ee,ne,Y,pe,$,B=0;B<A;++B)ne=(ee=(O=t[B]).target).x+ee.vx-(M=O.source).x-M.vx||si(),Y=ee.y+ee.vy-M.y-M.vy||si(),Y*=pe=((pe=Math.sqrt(ne*ne+Y*Y))-o[B])/pe*y*a[B],ee.vx-=(ne*=pe)*($=c[B]),ee.vy-=Y*$,M.vx+=ne*($=1-$),M.vy+=Y*$}function f(){if(r){var y,O,_=r.length,A=t.length,B=S(r,i);for(y=0,l=new Array(_);y<A;++y)(O=t[y]).index=y,"object"!=typeof O.source&&(O.source=Ss(B,O.source)),"object"!=typeof O.target&&(O.target=Ss(B,O.target)),l[O.source.index]=(l[O.source.index]||0)+1,l[O.target.index]=(l[O.target.index]||0)+1;for(y=0,c=new Array(A);y<A;++y)c[y]=l[(O=t[y]).source.index]/(l[O.source.index]+l[O.target.index]);a=new Array(A),m(),o=new Array(A),x()}}function m(){if(r)for(var y=0,_=t.length;y<_;++y)a[y]=+n(t[y],y,t)}function x(){if(r)for(var y=0,_=t.length;y<_;++y)o[y]=+s(t[y],y,t)}return null==t&&(t=[]),g.initialize=function(y){r=y,f()},g.links=function(y){return arguments.length?(t=y,f(),g):t},g.id=function(y){return arguments.length?(i=y,g):i},g.iterations=function(y){return arguments.length?(p=+y,g):p},g.strength=function(y){return arguments.length?(n="function"==typeof y?y:bt(+y),m(),g):n},g.distance=function(y){return arguments.length?(s="function"==typeof y?y:bt(+y),x(),g):s},g}function lg(t){return t.x}function cg(t){return t.y}wt.copy=function(){var n,a,t=new ro(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return t;if(!i.length)return t._root=As(i),t;for(n=[{source:i,target:t._root=new Array(4)}];i=n.pop();)for(var s=0;s<4;++s)(a=i.source[s])&&(a.length?n.push({source:a,target:i.target[s]=new Array(4)}):i.target[s]=As(a));return t},wt.add=function Rh(t){var i=+this._x.call(null,t),n=+this._y.call(null,t);return ks(this.cover(i,n),i,n,t)},wt.addAll=function Gh(t){var i,n,s,o,a=t.length,r=new Array(a),l=new Array(a),c=1/0,p=1/0,h=-1/0,g=-1/0;for(n=0;n<a;++n)isNaN(s=+this._x.call(null,i=t[n]))||isNaN(o=+this._y.call(null,i))||(r[n]=s,l[n]=o,s<c&&(c=s),s>h&&(h=s),o<p&&(p=o),o>g&&(g=o));for(h<c&&(c=this._x0,h=this._x1),g<p&&(p=this._y0,g=this._y1),this.cover(c,p).cover(h,g),n=0;n<a;++n)ks(this,r[n],l[n],t[n]);return this},wt.cover=function Yh(t,i){if(isNaN(t=+t)||isNaN(i=+i))return this;var n=this._x0,a=this._y0,s=this._x1,o=this._y1;if(isNaN(n))s=(n=Math.floor(t))+1,o=(a=Math.floor(i))+1;else{if(!(n>t||t>s||a>i||i>o))return this;var c,p,r=s-n,l=this._root;switch(p=(i<(a+o)/2)<<1|t<(n+s)/2){case 0:do{(c=new Array(4))[p]=l,l=c}while(o=a+(r*=2),t>(s=n+r)||i>o);break;case 1:do{(c=new Array(4))[p]=l,l=c}while(o=a+(r*=2),(n=s-r)>t||i>o);break;case 2:do{(c=new Array(4))[p]=l,l=c}while(a=o-(r*=2),t>(s=n+r)||a>i);break;case 3:do{(c=new Array(4))[p]=l,l=c}while(a=o-(r*=2),(n=s-r)>t||a>i)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=a,this._x1=s,this._y1=o,this},wt.data=function Zh(){var t=[];return this.visit(function(i){if(!i.length)do{t.push(i.data)}while(i=i.next)}),t},wt.extent=function Xh(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},wt.find=function Jh(t,i,n){var a,r,l,c,p,x,y,s=this._x0,o=this._y0,h=this._x1,g=this._y1,f=[],m=this._root;for(m&&f.push(new Tt(m,s,o,h,g)),null==n?n=1/0:(s=t-n,o=i-n,h=t+n,g=i+n,n*=n);x=f.pop();)if(!(!(m=x.node)||(r=x.x0)>h||(l=x.y0)>g||(c=x.x1)<s||(p=x.y1)<o))if(m.length){var _=(r+c)/2,A=(l+p)/2;
vendor: 5,968 bytes, line 1
1f.push(new Tt(m[3],_,A,c,p),new Tt(m[2],r,A,_,p),new Tt(m[1],_,l,c,A),new Tt(m[0],r,l,_,A)),(y=(i>=A)<<1|t>=_)&&(x=f[f.length-1],f[f.length-1]=f[f.length-1-y],f[f.length-1-y]=x)}else{var B=t-+this._x.call(null,m.data),O=i-+this._y.call(null,m.data),M=B*B+O*O;if(M<n){var ee=Math.sqrt(n=M);s=t-ee,o=i-ee,h=t+ee,g=i+ee,a=m.data}}return a},wt.remove=function Wh(t){if(isNaN(h=+this._x.call(null,t))||isNaN(g=+this._y.call(null,t)))return this;var i,a,s,o,h,g,f,m,x,y,_,A,n=this._root,r=this._x0,l=this._y0,c=this._x1,p=this._y1;if(!n)return this;if(n.length)for(;;){if((x=h>=(f=(r+c)/2))?r=f:c=f,(y=g>=(m=(l+p)/2))?l=m:p=m,i=n,!(n=n[_=y<<1|x]))return this;if(!n.length)break;(i[_+1&3]||i[_+2&3]||i[_+3&3])&&(a=i,A=_)}for(;n.data!==t;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):i?(o?i[_]=o:delete i[_],(n=i[0]||i[1]||i[2]||i[3])&&n===(i[3]||i[2]||i[1]||i[0])&&!n.length&&(a?a[A]=n:this._root=n),this):(this._root=o,this)},wt.removeAll=function Uh(t){for(var i=0,n=t.length;i<n;++i)this.remove(t[i]);return this},wt.root=function $h(){return this._root},wt.size=function Qh(){var t=0;return this.visit(function(i){if(!i.length)do{++t}while(i=i.next)}),t},wt.visit=function Vh(t){var n,s,o,r,l,c,i=[],a=this._root;for(a&&i.push(new Tt(a,this._x0,this._y0,this._x1,this._y1));n=i.pop();)if(!t(a=n.node,o=n.x0,r=n.y0,l=n.x1,c=n.y1)&&a.length){var p=(o+l)/2,h=(r+c)/2;(s=a[3])&&i.push(new Tt(s,p,h,l,c)),(s=a[2])&&i.push(new Tt(s,o,h,p,c)),(s=a[1])&&i.push(new Tt(s,p,r,l,h)),(s=a[0])&&i.push(new Tt(s,o,r,p,h))}return this},wt.visitAfter=function qh(t){var a,i=[],n=[];for(this._root&&i.push(new Tt(this._root,this._x0,this._y0,this._x1,this._y1));a=i.pop();){var s=a.node;if(s.length){var o,r=a.x0,l=a.y0,c=a.x1,p=a.y1,h=(r+c)/2,g=(l+p)/2;(o=s[0])&&i.push(new Tt(o,r,l,h,g)),(o=s[1])&&i.push(new Tt(o,h,l,c,g)),(o=s[2])&&i.push(new Tt(o,r,g,h,p)),(o=s[3])&&i.push(new Tt(o,h,g,c,p))}n.push(a)}for(;a=n.pop();)t(a.node,a.x0,a.y0,a.x1,a.y1);return this},wt.x=function eg(t){return arguments.length?(this._x=t,this):this._x},wt.y=function ig(t){return arguments.length?(this._y=t,this):this._y};var ug=Math.PI*(3-Math.sqrt(5));function pg(t){var i,n=1,a=.001,s=1-Math.pow(a,1/300),o=0,r=.6,l=S(),c=Oa(h),p=ka("tick","end");function h(){g(),p.call("tick",i),n<a&&(c.stop(),p.call("end",i))}function g(){var x,_,y=t.length;for(n+=(o-n)*s,l.each(function(A){A(n)}),x=0;x<y;++x)null==(_=t[x]).fx?_.x+=_.vx*=r:(_.x=_.fx,_.vx=0),null==_.fy?_.y+=_.vy*=r:(_.y=_.fy,_.vy=0)}function f(){for(var _,x=0,y=t.length;x<y;++x){if((_=t[x]).index=x,isNaN(_.x)||isNaN(_.y)){var A=10*Math.sqrt(x),B=x*ug;_.x=A*Math.cos(B),_.y=A*Math.sin(B)}(isNaN(_.vx)||isNaN(_.vy))&&(_.vx=_.vy=0)}}function m(x){return x.initialize&&x.initialize(t),x}return null==t&&(t=[]),f(),i={tick:g,restart:function(){return c.restart(h),i},stop:function(){return c.stop(),i},nodes:function(y){return arguments.length?(t=y,f(),l.each(m),i):t},alpha:function(y){return arguments.length?(n=+y,i):n},alphaMin:function(y){return arguments.length?(a=+y,i):a},alphaDecay:function(y){return arguments.length?(s=+y,i):+s},alphaTarget:function(y){return arguments.length?(o=+y,i):o},velocityDecay:function(y){return arguments.length?(r=1-y,i):1-r},force:function(y,_){return arguments.length>1?(null==_?l.remove(y):l.set(y,m(_)),i):l.get(y)},find:function(y,_,A){var M,ee,ne,Y,pe,B=0,O=t.length;for(null==A?A=1/0:A*=A,B=0;B<O;++B)(ne=(M=y-(Y=t[B]).x)*M+(ee=_-Y.y)*ee)<A&&(pe=Y,A=ne);return pe},on:function(y,_){return arguments.length>1?(p.on(y,_),i):p.on(y)}}}function hg(){var t,i,n,s,a=bt(-30),o=1,r=1/0,l=.81;function c(f){var m,x=t.length,y=oo(t,lg,cg).visitAfter(h);for(n=f,m=0;m<x;++m)i=t[m],y.visit(g)}function p(){if(t){var f,x,m=t.length;for(s=new Array(m),f=0;f<m;++f)s[(x=t[f]).index]=+a(x,f,t)}}function h(f){var x,y,A,B,O,m=0,_=0;if(f.length){for(A=B=O=0;O<4;++O)(x=f[O])&&(y=Math.abs(x.value))&&(m+=x.value,_+=y,A+=y*x.x,B+=y*x.y);f.x=A/_,f.y=B/_}else{(x=f).x=x.data.x,x.y=x.data.y;do{m+=s[x.data.index]}while(x=x.next)}f.value=m}function g(f,m,x,y){if(!f.value)return!0;var _=f.x-i.x,A=f.y-i.y,B=y-m,O=_*_+A*A;if(B*B/l<O)return O<r&&(0===_&&(O+=(_=si())*_),0===A&&(O+=(A=si())*A),O<o&&(O=Math.sqrt(o*O)),i.vx+=_*f.value*n/O,i.vy+=A*f.value*n/O),!0;if(!(f.length||O>=r)){(f.data!==i||f.next)&&(0===_&&(O+=(_=si())*_),0===A&&(O+=(A=si())*A),O<o&&(O=Math.sqrt(o*O)));do{f.data!==i&&(i.vx+=_*(B=s[f.data.index]*n/O),i.vy+=A*B)}while(f=f.next)}}return c.initialize=function(f){t=f,p()},c.strength=function(f){return arguments.length?(a="function"==typeof f?f:bt(+f),p(),c):a},c.distanceMin=function(f){return arguments.length?(o=f*f,c):Math.sqrt(o)},c.distanceMax=function(f){return arguments.length?(r=f*f,c):Math.sqrt(r)},c.theta=function(f){return arguments.length?(l=f*f,c):Math.sqrt(l)},c}function gg(t){var n,a,s,i=bt(.1);function o(l){for(var h,c=0,p=n.length;c<p;++c)(h=n[c]).vx+=(s[c]-h.x)*a[c]*l}function r(){if(n){var l,c=n.length;for(a=new Array(c),s=new Array(c),l=0;l<c;++l)a[l]=isNaN(s[l]=+t(n[l],l,n))?0:+i(n[l],l,n)}}return"function"!=typeof t&&(t=bt(null==t?0:+t)),o.initialize=function(l){n=l,r()},o.strength=function(l){return arguments.length?(i="function"==typeof l?l:bt(+l),r(),o):i},o.x=function(l){return arguments.length?(t="function"==typeof l?l:bt(+l),r(),o):t},o}function fg(t){var n,a,s,i=bt(.1);function o(l){for(var h,c=0,p=n.length;c<p;++c)(h=n[c]).vy+=(s[c]-h.y)*a[c]*l}function r(){if(n){var l,c=n.length;for(a=new Array(c),s=new Array(c),l=0;l<c;++l)a[l]=isNaN(s[l]=+t(n[l],l,n))?0:+i(n[l],l,n)}}return"function"!=typeof t&&(t=bt(null==t?0:+t)),o.initialize=function(l){n=l,r()},o.strength=function(l){return arguments.length?(i="function"==typeof l?l:bt(+l),r(),o):i},o.y=function(l){return arguments.length?(t="function"==typeof l?l:bt(+l),r(),o):t},o}function mg(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function vg(t,i,n,a,s){for(var r,o=t.children,l=-1,c=o.length,p=t.value&&(
1a-i)/t.value;++l<c;)(r=o[l]).y0=n,r.y1=s,r.x0=i,r.x1=i+=r.value*p}function yg(t,i,n,a,s){for(var r,o=t.children,l=-1,c=o.length,p=t.value&&(s-n)/t.value;++l<c;)(r=o[l]).x0=i,r.x1=a,r.y0=n,r.y1=n+=r.value*p}const bg=function t(i){function n(a,s,o,r,l){!function _g(t,i,n,a,s,o){for(var c,p,m,x,_,A,B,O,M,ee,ne,r=[],l=i.children,h=0,g=0,f=l.length,y=i.value;h<f;){m=s-n,x=o-a;do{_=l[g++].value}while(!_&&g<f);for(A=B=_,ne=_*_*(ee=Math.max(x/m,m/x)/(y*t)),M=Math.max(B/ne,ne/A);g<f;++g){if(_+=p=l[g].value,p<A&&(A=p),p>B&&(B=p),ne=_*_*ee,(O=Math.max(B/ne,ne/A))>M){_-=p;break}M=O}r.push(c={value:_,dice:m<x,children:l.slice(h,g)}),c.dice?vg(c,n,a,s,y?a+=x*_/y:o):yg(c,n,a,y?n+=m*_/y:s,o),y-=_,h=g}}(i,a,s,o,r,l)}return n.ratio=function(a){return t((a=+a)>1?a:1)},n}((1+Math.sqrt(5))/2);function Vn(t){if("function"!=typeof t)throw new Error;return t}function un(){return 0}function pn(t){return function(){return t}}function wg(t){var i=0,n=t.children,a=n&&n.length;if(a)for(;--a>=0;)i+=n[a].value;else i=1;t.value=i}function Is(t,i){var s,r,l,c,p,n=new hn(t),a=+t.value&&(n.value=t.value),o=[n];for(null==i&&(i=Ng);s=o.pop();)if(a&&(s.value=+s.data.value),(l=i(s.data))&&(p=l.length))for(s.children=new Array(p),c=p-1;c>=0;--c)o.push(r=s.children[c]=new hn(l[c])),r.parent=s,r.depth=s.depth+1;return n.eachBefore(Ls)}function Ng(t){return t.children}function Pg(t){t.data=t.data.data}function Ls(t){var i=0;do{t.height=i}while((t=t.parent)&&t.height<++i)}function hn(t){this.data=t,this.depth=this.height=0,this.parent=null}hn.prototype=Is.prototype={constructor:hn,count:function Cg(){return this.eachAfter(wg)},each:function kg(t){var n,s,o,r,i=this,a=[i];do{for(n=a.reverse(),a=[];i=n.pop();)if(t(i),s=i.children)for(o=0,r=s.length;o<r;++o)a.push(s[o])}while(a.length);return this},eachAfter:function Sg(t){for(var s,o,r,i=this,n=[i],a=[];i=n.pop();)if(a.push(i),s=i.children)for(o=0,r=s.length;o<r;++o)n.push(s[o]);for(;i=a.pop();)t(i);return this},eachBefore:function Ag(t){for(var a,s,i=this,n=[i];i=n.pop();)if(t(i),a=i.children)for(s=a.length-1;s>=0;--s)n.push(a[s]);return this},sum:function Ig(t){return this.eachAfter(function(i){for(var n=+t(i.data)||0,a=i.children,s=a&&a.length;--s>=0;)n+=a[s].value;i.value=n})},sort:function Lg(t){return this.eachBefore(function(i){i.children&&i.children.sort(t)})},path:function Og(t){for(var i=this,n=function Dg(t,i){if(t===i)return t;var n=t.ancestors(),a=i.ancestors(),s=null;for(t=n.pop(),i=a.pop();t===i;)s=t,t=n.pop(),i=a.pop();return s}(i,t),a=[i];i!==n;)a.push(i=i.parent);for(var s=a.length;t!==n;)a.splice(s,0,t),t=t.parent;return a},ancestors:function Bg(){for(var t=this,i=[t];t=t.parent;)i.push(t);return i},descendants:function Mg(){var t=[];return this.each(function(i){t.push(i)}),t},leaves:function Fg(){var t=[];return this.eachBefore(function(i){i.children||t.push(i)}),t},links:function Eg(){var t=this,i=[];return t.each(function(n){n!==t&&i.push({source:n.parent,target:n})}),i},copy:function jg(){return Is(this).eachBefore(Pg)}};var Hg={depth:-1},Ds={};function zg(t){return t.id}function Rg(t){return t.parentId}var Yg=["caretElm"];function Zg(t,i){}var Xg=function(i){return{model:i}};function Jg(t,i){if(1&t&&(e.TgZ(0,"span"),e.YNc(1,Zg,0,0,"ng-template",5),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",e.VKq(2,Xg,n.context))}}function Wg(t,i){if(1&t&&e._UZ(0,"span",6),2&t){var n=e.oxw();e.Q6J("innerHTML",n.title,e.oJD)}}function Ug(t,i){if(1&t&&(e.O4$(),e.kcU(),e._UZ(0,"ngx-charts-scale-legend",4)),2&t){var n=e.oxw();e.Q6J("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function $g(t,i){if(1&t){var n=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.legendLabelClick.emit(o))})("labelActivate",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.legendLabelActivate.emit(o))})("labelDeactivate",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.legendLabelDeactivate.emit(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("horizontal",a.legendOptions&&"below"===a.legendOptions.position)("data",a.legendOptions.domain)("title",a.legendOptions.title)("colors",a.legendOptions.colors)("height",a.view[1])("width",a.legendWidth)("activeEntries",a.activeEntries)}}var Bs=["*"];function Qg(t,i){if(1&t&&(e.TgZ(0,"header",4)(1,"span",5),e._uU(2),e.qZA()()),2&t){var n=e.oxw();e.xp6(2),e.Oqu(n.title)}}function Vg(t,i){if(1&t){var n=e.EpF();e.TgZ(0,"li",6)(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.labelClick.emit(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.activate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.deactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.xp6(1),e.Q6J("label",a.label)("formattedLabel",a.formattedLabel)("color",a.color)("isActive",s.isActive(a))}}function qg(t,i){if(1&t&&e._UZ(0,"div",7),2&t){var n=e.oxw();e.Q6J("countTo",n.roundedTotal)("valueFormatting",n.valueFormatting)}}function Kg(t,i){if(1&t&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.hij(" ",n.valueFormatting?n.valueFormatting(n.roundedTotal):n.defaultValueFormatting(n.roundedTotal)," ")}}function ef(t,i){if(1&t&&e._UZ(0,"div",16),2&t){var n=e.oxw().$implicit,a=e.oxw();e.Q6J("countTo",n._value)("valueFormatting",a.valueFormatting)}}function tf(t,i){if(1&t&&(e.TgZ(0,"div",17),e._uU(1),e.qZA()),2&t){var n=e.oxw().$implicit,a=e.oxw();e.xp6(1),e.hij(" ",a.valueFormatting?a.valueFormatting(n.value):a.defaultValueFormatting(n.value)," ")}}function nf(t,i){if(1&t&&e._UZ(0,"div",18),2&t){var n=e.oxw().$implicit;e.Q6J("countTo",n.percentage)("countSuffix","%")}}function af(t,i){if(1&t&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&t){var n=e.oxw().$implicit;
1e.xp6(1),e.hij("",n.percentage.toLocaleString(),"%")}}function rf(t,i){if(1&t){var n=e.EpF();e.TgZ(0,"div",9),e.NdJ("mouseenter",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.activate.emit(l.data))})("mouseleave",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.deactivate.emit(l.data))})("click",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.select.emit(l.data))}),e._UZ(1,"div",10),e.YNc(2,ef,1,2,"div",11),e.YNc(3,tf,2,1,"div",12),e.TgZ(4,"div",13),e._uU(5),e.qZA(),e.YNc(6,nf,1,2,"div",14),e.YNc(7,af,2,1,"div",15),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.xp6(1),e.Udp("border-left-color",a.color),e.xp6(1),e.Q6J("ngIf",s.animations),e.xp6(1),e.Q6J("ngIf",!s.animations),e.xp6(2),e.Oqu(a.displayLabel),e.xp6(1),e.Q6J("ngIf",s.animations),e.xp6(1),e.Q6J("ngIf",!s.animations)}}var sf=["ngx-charts-axis-label",""],Ms=["ticksel"],lf=["ngx-charts-x-axis-ticks",""];function cf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g",3)(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",4),e._uU(4),e.qZA()()),2&t){var n=i.$implicit,a=e.oxw();e.uIk("transform",a.tickTransform(n)),e.xp6(2),e.Oqu(a.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("text-anchor",a.textAnchor)("transform",a.textTransform),e.xp6(1),e.hij(" ",a.tickTrim(a.tickFormat(n))," ")}}function df(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",6),e.qZA()),2&t){var n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.uIk("y1",-n.gridLineHeight)}}function uf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,df,2,2,"g",5),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.uIk("transform",a.tickTransform(n)),e.xp6(1),e.Q6J("ngIf",a.showGridLines)}}var pf=["ngx-charts-x-axis",""];function hf(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.emitTicksHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("trimTicks",a.trimTicks)("rotateTicks",a.rotateTicks)("maxTickLength",a.maxTickLength)("tickFormatting",a.tickFormatting)("tickArguments",a.tickArguments)("tickStroke",a.tickStroke)("scale",a.xScale)("orient",a.xOrient)("showGridLines",a.showGridLines)("gridLineHeight",a.dims.height)("width",a.dims.width)("tickValues",a.ticks)}}function gf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",3)),2&t){var n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient","bottom")("height",n.dims.height)("width",n.dims.width)}}var ff=["ngx-charts-y-axis-ticks",""];function mf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g",4)(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",5),e._uU(4),e.qZA()()),2&t){var n=i.$implicit,a=e.oxw();e.uIk("transform",a.transform(n)),e.xp6(2),e.Oqu(a.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("dy",a.dy)("x",a.x1)("y",a.y1)("text-anchor",a.textAnchor),e.xp6(1),e.hij(" ",a.tickTrim(a.tickFormat(n))," ")}}function vf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"path",6)),2&t){var n=e.oxw();e.uIk("d",n.referenceAreaPath)("transform",n.gridLineTransform())}}function yf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"line",9)),2&t){var n=e.oxw(3);e.uIk("x2",n.gridLineWidth)}}function xf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"line",9)),2&t){var n=e.oxw(3);e.uIk("x2",-n.gridLineWidth)}}function _f(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,yf,1,1,"line",8),e.YNc(2,xf,1,1,"line",8),e.qZA()),2&t){var n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.Q6J("ngIf","left"===n.orient),e.xp6(1),e.Q6J("ngIf","right"===n.orient)}}function bf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,_f,3,3,"g",7),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.uIk("transform",a.transform(n)),e.xp6(1),e.Q6J("ngIf",a.showGridLines)}}function Tf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g")(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",11),e._uU(4),e.qZA()()),2&t){var n=e.oxw(2).$implicit,a=e.oxw();e.xp6(2),e.Oqu(a.tickTrim(a.tickFormat(n.value))),e.xp6(1),e.uIk("dy",a.dy)("y",-6)("x",a.gridLineWidth)("text-anchor",a.textAnchor),e.xp6(1),e.hij(" ",n.name," ")}}function wf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",10),e.YNc(2,Tf,5,6,"g",7),e.qZA()),2&t){var n=e.oxw().$implicit,a=e.oxw();e.uIk("transform",a.transform(n.value)),e.xp6(1),e.uIk("x2",a.gridLineWidth)("transform",a.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",a.showRefLabels)}}function Cf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,wf,3,4,"g",7),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showRefLines)}}var kf=["ngx-charts-y-axis",""];function Af(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.emitTicksWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("trimTicks",a.trimTicks)("maxTickLength",a.maxTickLength)("tickFormatting",a.tickFormatting)("tickArguments",a.tickArguments)("tickValues",a.ticks)("tickStroke",a.tickStroke)("scale",a.yScale)("orient",a.yOrient)("showGridLines",a.showGridLines)("gridLineWidth",a.dims.width)("referenceLines",a.referenceLines)("showRefLines",a.showRefLines)("showRefLabels",a.showRefLabels)("height",a.dims.height)}}function Sf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",3)),2&t){var n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient",n.yOrient)("height",n.dims.height)("width",n.dims.width)}}var If=["ngx-charts-circle-series",""];function Lf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"rect",4)),2&t){var n=e.oxw(2);e.Q6J("@animationState","active"),e.uIk("x",n.circle.cx-n.circle.radius)("y",n.circle.cy)("width",2*n.circle.radius)("height",n.circle.height)("fill",n.gradientFill)}}var Of=function(i){return{name:i}};function Df(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"defs"),e._UZ(2,"g",1),e.qZA(),e.YNc(3,Lf,1,6,"rect",2),e.TgZ(4,"g",3),e.NdJ("select",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.onClick(o.circle.data))})("activate",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.activateCircle())})("deactivate",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.deactivateCircle())}),e.qZA()()}if(2&t){var a=e.oxw();e.xp6(2),e.Q6J("name",a.gradientId)("stops",a.circle.gradientStops),e.xp6(1),e.Q6J("ngIf",a.barVisible&&"standard"===a.type),e.xp6(1),e.ekj("active",a.isActive(e.VKq(18,Of,a.circle.seriesName))),e.Q6J("cx",a.circle.cx)("cy",a.circle.cy)("r",a.circle.radius)("fill",a.circle.color)("pointerEvents",0===a.circle.value?"none":"all")("data",a.circle.value)("classNames",a.circle.classNames)("tooltipDisabled",a.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",a.tooltipTemplate?void 0:a.getTooltipText(a.circle))("tooltipTemplate",a.tooltipTemplate)("tooltipContext",a.
1circle.data)}}var Bf=["ngx-charts-circle",""],Mf=["ngx-charts-grid-panel",""],Ff=["ngx-charts-grid-panel-series",""];function Ef(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",1)),2&t){var n=i.$implicit;e.ekj("grid-panel",!0)("odd","odd"===n.class)("even","even"===n.class),e.Q6J("height",n.height)("width",n.width)("x",n.x)("y",n.y)}}var jf=["ngx-charts-svg-linear-gradient",""];function Nf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"stop")),2&t){var n=i.$implicit;e.Udp("stop-color",n.color)("stop-opacity",n.opacity),e.uIk("offset",n.offset+"%")}}var Pf=["ngx-charts-svg-radial-gradient",""];function Hf(t,i){if(1&t&&(e.O4$(),e._UZ(0,"stop")),2&t){var n=i.$implicit;e.Udp("stop-color",n.color)("stop-opacity",n.opacity),e.uIk("offset",n.offset+"%")}}var zf=["ngx-charts-timeline",""],Rf=["ngx-charts-area",""];function Gf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("name",n.gradientId)("stops",n.gradientStops)}}var Yf=["tooltipAnchor"],Zf=["ngx-charts-tooltip-area",""];function Xf(t,i){if(1&t&&(e.TgZ(0,"div",6),e._UZ(1,"span",7),e._uU(2),e.qZA()),2&t){var n=i.$implicit,a=e.oxw(2);e.xp6(1),e.Udp("background-color",n.color),e.xp6(1),e.hij(" ",a.getToolTipText(n)," ")}}function Jf(t,i){if(1&t&&(e.O4$(),e.kcU(),e.TgZ(0,"div",4),e.YNc(1,Xf,3,3,"div",5),e.qZA()),2&t){var n=i.model;e.xp6(1),e.Q6J("ngForOf",n)}}var Wf=["ngx-charts-count-up",""],st=["tooltipTemplate"],qn=["seriesTooltipTemplate"];function Uf(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function $f(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function Qf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("xScale",a.xScale)("yScale",a.yScale)("baseValue",a.baseValue)("colors",a.colors)("data",n)("activeEntries",a.activeEntries)("scaleType",a.scaleType)("gradient",a.gradient)("curve",a.curve)("animations",a.animations)}}function Vf(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw(2);return e.KtG(p.onClick(r,c))})("activate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("activeEntries",s.activeEntries)("data",a)("scaleType",s.scaleType)("visibleValue",s.hoveredVertical)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}function qf(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateHoveredVertical(o))}),e.qZA(),e.YNc(2,Vf,2,9,"g",12),e.qZA()}if(2&t){var a=e.oxw();e.xp6(1),e.Q6J("dims",a.dims)("xSet",a.xSet)("xScale",a.xScale)("yScale",a.yScale)("results",a.results)("colors",a.colors)("tooltipDisabled",a.tooltipDisabled)("tooltipTemplate",a.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",a.results)}}function Kf(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",15),e.qZA()),2&t){var n=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("xScale",a.timelineXScale)("yScale",a.timelineYScale)("baseValue",a.baseValue)("colors",a.colors)("data",n)("scaleType",a.scaleType)("gradient",a.gradient)("curve",a.curve)("animations",a.animations)}}var Xe=function(i,n){return[i,n]};function em(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",14),e.NdJ("onDomainChange",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateDomain(o))}),e.YNc(1,Kf,2,9,"g",4),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("results",a.results)("view",e.WLB(10,Xe,a.timelineWidth,a.height))("height",a.timelineHeight)("scheme",a.scheme)("customColors",a.customColors)("legend",a.legend)("scaleType",a.scaleType),e.uIk("transform",a.timelineTransform),e.xp6(1),e.Q6J("ngForOf",a.results)("ngForTrackBy",a.trackBy)}}function tm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function im(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function nm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("xScale",a.xScale)("yScale",a.yScale)("colors",a.colors)("data",n)("scaleType",a.scaleType)("activeEntries",a.activeEntries)("gradient",a.gradient)("curve",a.curve)("animations",a.animations)}}function am(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw(2);return e.KtG(p.onClick(r,c))})("activate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("activeEntries",s.activeEntries)("data",a)("scaleType",s.scaleType)("visibleValue",s.hoveredVertical)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}function om(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateHoveredVertical(o))}),e.qZA(),e.YNc(2,am,2,9,"g",12),e.qZA()}if(2&t){var a=e.oxw();e.xp6(1),e.Q6J("dims",a.dims)("xSet",a.xSet)("xScale",a.xScale)("yScale",a.yScale)("results",a.results)("colors",a.colors)("showPercentage",!0)("tooltipDisabled",a.tooltipDisabled)("tooltipTemplate",a.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",a.results)}}function rm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",15),e.qZA()),2&t){var n=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("xScale",a.timelineXScale)("yScale",a.timelineYScale)("colors",a.colors)("data",n)("scaleType",a.scaleType)("gradient",a.gradient)("curve",a.curve)("animations",a.animations)}}function sm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",14),e.NdJ("onDomainChange",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateDomain(o))}),e.YNc(1,rm,2,8,"g",4),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("results",a.results)("view",e.WLB(10,Xe,a.timelineWidth,a.height))("height",a.timelineHeight)("scheme",a.scheme)("customColors",a.customColors)("legend",a.legend)("scaleType",a.scaleType),e.uIk("transform",a.timelineTransform),e.xp6(1),e.Q6J("ngForOf",a.results)("ngForTrackBy",a.trackBy)}}var ot=".ngx-charts{float:left;overflow:visible}
1.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}";function lm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function cm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function dm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.xp6(1),e.Q6J("xScale",a.xScale)("yScale",a.yScale)("colors",a.colors)("data",n)("scaleType",a.scaleType)("gradient",a.gradient)("activeEntries",a.activeEntries)("curve",a.curve)("animations",a.animations)}}function um(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",12),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw(2);return e.KtG(p.onClick(r,c))})("activate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("activeEntries",s.activeEntries)("data",a)("scaleType",s.scaleType)("visibleValue",s.hoveredVertical)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}function pm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateHoveredVertical(o))}),e.qZA(),e.YNc(2,um,2,9,"g",4),e.qZA()}if(2&t){var a=e.oxw();e.xp6(1),e.Q6J("dims",a.dims)("xSet",a.xSet)("xScale",a.xScale)("yScale",a.yScale)("results",a.results)("colors",a.colors)("tooltipDisabled",a.tooltipDisabled)("tooltipTemplate",a.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",a.results)("ngForTrackBy",a.trackBy)}}function hm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",14),e.qZA()),2&t){var n=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("xScale",a.timelineXScale)("yScale",a.timelineYScale)("colors",a.colors)("data",n)("scaleType",a.scaleType)("gradient",a.gradient)("curve",a.curve)("animations",a.animations)}}function gm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",13),e.NdJ("onDomainChange",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateDomain(o))}),e.YNc(1,hm,2,8,"g",4),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("results",a.results)("view",e.WLB(10,Xe,a.timelineWidth,a.height))("height",a.timelineHeight)("scheme",a.scheme)("customColors",a.customColors)("legend",a.legend)("scaleType",a.scaleType),e.uIk("transform",a.timelineTransform),e.xp6(1),e.Q6J("ngForOf",a.results)("ngForTrackBy",a.trackBy)}}var fm=["ngx-charts-area-series",""],mm=["ngx-charts-bar",""];function vm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("orientation",n.orientation)("name",n.gradientId)("stops",n.gradientStops)}}function ym(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}
1function xm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)("yAxisOffset",a.dataLabelMaxWidth.negative)}}function _m(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.valueScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function bm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.groupScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)("yAxisOffset",a.dataLabelMaxWidth.negative)}}function Tm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))})("dataLabelWidthChanged",function(r){var c=e.CHM(n).index,p=e.oxw();return e.KtG(p.onDataLabelMaxWidthChanged(r,c))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.uIk("transform",s.groupTransform(a)),e.xp6(1),e.Q6J("xScale",s.valueScale)("activeEntries",s.activeEntries)("yScale",s.innerScale)("colors",s.colors)("series",a.series)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("seriesName",a.name)("roundEdges",s.roundEdges)("animations",s.animations)("showDataLabel",s.showDataLabel)("dataLabelFormatting",s.dataLabelFormatting)("noBarWhenZero",s.noBarWhenZero)}}function wm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function Cm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function km(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",7),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.uIk("transform",s.groupTransform(a)),e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("activeEntries",s.activeEntries)("colors",s.colors)("series",a.series)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("seriesName",a.name)("animations",s.animations)("noBarWhenZero",s.noBarWhenZero)}}function Am(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function Sm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)("yAxisOffset",a.dataLabelMaxWidth.negative)}}
1function Im(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",7),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))})("dataLabelWidthChanged",function(r){var c=e.CHM(n).index,p=e.oxw();return e.KtG(p.onDataLabelMaxWidthChanged(r,c))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.uIk("transform",s.groupTransform(a)),e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("series",a.series)("activeEntries",s.activeEntries)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("seriesName",a.name)("animations",s.animations)("showDataLabel",s.showDataLabel)("dataLabelFormatting",s.dataLabelFormatting)("noBarWhenZero",s.noBarWhenZero)}}function Lm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)("xAxisOffset",a.dataLabelMaxHeight.negative)}}function Om(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function Dm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.groupScale)("dims",a.dims)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)("xAxisOffset",a.dataLabelMaxHeight.negative)}}function Bm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.valueScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function Mm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))})("dataLabelHeightChanged",function(r){var c=e.CHM(n).index,p=e.oxw();return e.KtG(p.onDataLabelMaxHeightChanged(r,c))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active")("activeEntries",s.activeEntries)("xScale",s.innerScale)("yScale",s.valueScale)("colors",s.colors)("series",a.series)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("showDataLabel",s.showDataLabel)("dataLabelFormatting",s.dataLabelFormatting)("seriesName",a.name)("roundEdges",s.roundEdges)("animations",s.animations)("noBarWhenZero",s.noBarWhenZero),e.uIk("transform",s.groupTransform(a))}}function Fm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function Em(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function jm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",7),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.uIk("transform",s.groupTransform(a)),e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("activeEntries",s.activeEntries)("colors",s.colors)("series",a.series)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("seriesName",a.name)("animations",s.animations)("noBarWhenZero",s.noBarWhenZero)}}function Nm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)("xAxisOffset",a.dataLabelMaxHeight.negative)}}function Pm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function Hm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",7),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onActivate(r,c))})("deactivate",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDeactivate(r,c))})("dataLabelHeightChanged",function(r){var c=e.CHM(n).index,p=e.oxw();return e.KtG(p.onDataLabelMaxHeightChanged(r,c))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.uIk("transform",s.groupTransform(a)),e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("activeEntries",s.activeEntries)("colors",s.colors)("series",a.series)("dims",s.dims)("gradient",s.gradient)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("showDataLabel",s.showDataLabel)("dataLabelFormatting",s.dataLabelFormatting)("seriesName",a.name)("animations",s.animations)("noBarWhenZero",s.noBarWhenZero)}}var zm=["ngx-charts-series-vertical",""];function Rm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.activate.emit(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.deactivate.emit(r))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active")("@.disabled",!s.animations)("width",a.width)("height",a.height)("x",a.x)("y",a.y)("fill",a.color)("stops",a.gradientStops)("data",a.data)("orientation","vertical")("roundEdges",a.roundEdges)("gradient",s.gradient)("ariaLabel",a.ariaLabel)("isActive",s.isActive(a.data))("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement",s.tooltipPlacement)("tooltipType",s.tooltipType)("tooltipTitle",s.tooltipTemplate?void 0:a.tooltipText)("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)("noBarWhenZero",s.noBarWhenZero)("animations",s.animations)}}function Gm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(r){var c=e.CHM(n).index,p=e.oxw(2);return e.KtG(p.dataLabelHeightChanged.emit({size:r,index:c}))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.Q6J("barX",a.x)("barY",a.y)("barWidth",a.width)("barHeight",a.height)("value",a.total)("valueFormatting",s.dataLabelFormatting)("orientation","vertical")}}function Ym(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Gm,1,7,"g",3),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.barsForDataLabels)("ngForTrackBy",n.trackDataLabelBy)}}var Zm=["ngx-charts-series-horizontal",""];function Xm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.click(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.activate.emit(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.deactivate.emit(r))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active")("width",a.width)("height",a.height)("x",a.x)("y",a.y)("fill",a.color)("stops",a.gradientStops)("data",a.data)("orientation","horizontal")("roundEdges",a.roundEdges)("gradient",s.gradient)("isActive",s.isActive(a.data))("ariaLabel",a.ariaLabel)("animations",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement",s.tooltipPlacement)("tooltipType",s.tooltipType)("tooltipTitle",s.tooltipTemplate?void 0:a.tooltipText)("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)("noBarWhenZero",s.noBarWhenZero)}}function Jm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(r){var c=e.CHM(n).index,p=e.oxw(2);return e.KtG(p.dataLabelWidthChanged.emit({size:r,index:c}))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.Q6J("barX",a.x)("barY",a.y)("barWidth",a.width)("barHeight",a.height)("value",a.total)("valueFormatting",s.dataLabelFormatting)("orientation","horizontal")}}function Wm(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Jm,1,7,"g",3),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.barsForDataLabels)("ngForTrackBy",n.trackDataLabelBy)}}var Um=["ngx-charts-bar-label",""];function $m(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("showGridLines",a.showGridLines)("dims",a.dims)("xScale",a.xScale)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function Qm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("showGridLines",a.showGridLines)("yScale",a.yScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function Vm(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",8),e.NdJ("select",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onClick(r,c))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("rScale",s.rScale)("xScaleType",s.xScaleType)("yScaleType",s.yScaleType)("xAxisLabel",s.xAxisLabel)("yAxisLabel",s.yAxisLabel)("colors",s.colors)("data",a)("activeEntries",s.activeEntries)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}var qm=["ngx-charts-bubble-series",""];function Km(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g")(2,"g",1),e.NdJ("select",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.onClick(l.data))})("activate",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.activateCircle(l))})("deactivate",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.deactivateCircle(l))}),e.qZA()()()}if(2&t){var a=i.$implicit,s=e.oxw();e.xp6(1),e.uIk("transform",a.transform),e.xp6(1),e.Udp("opacity",a.opacity),e.ekj("active",a.isActive),e.Q6J("@animationState","active")("cx",0)("cy",0)("r",a.radius)("fill",a.color)("pointerEvents","all")("data",a.value)("classNames",a.classNames)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.tooltipTemplate?void 0:s.getTooltipText(a))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)}}var ev=["linkTemplate"],tv=["nodeTemplate"];function iv(t,i){1&t&&e.O4$()}var Fs=function(i){return{$implicit:i}};function nv(t,i){if(1&t&&(e.O4$(),e.YNc(0,iv,0,0,"ng-template",8)),2&t){var n=e.oxw().$implicit,a=e.oxw();e.Q6J("ngTemplateOutlet",a.linkTemplate)("ngTemplateOutletContext",e.VKq(2,Fs,n))}}function av(t,i){if(1&t&&(e.O4$(),e._UZ(0,"line",9)),2&t){var n=e.oxw().$implicit;e.uIk("x1",n.source.x)("y1",n.source.y)("x2",n.target.x)("y2",n.target.y)}}function ov(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,nv,1,4,null,6),e.YNc(2,av,1,4,"line",7),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.linkTemplate),e.xp6(1),e.Q6J("ngIf",!n.linkTemplate)}}function rv(t,i){1&t&&e.O4$()}function sv(t,i){if(1&t&&(e.O4$(),e.YNc(0,rv,0,0,"ng-template",8)),2&t){var n=e.oxw().$implicit,a=e.oxw();e.Q6J("ngTemplateOutlet",a.nodeTemplate)("ngTemplateOutletContext",e.VKq(2,Fs,n))}}function lv(t,i){1&t&&(e.O4$(),e._UZ(0,"circle",12))}function cv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mousedown",function(r){var c=e.CHM(n).$implicit,p=e.oxw();return e.KtG(p.onDragStart(c,r))})("click",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.onClick({name:l.value}))}),e.YNc(1,sv,1,4,null,6),e.YNc(2,lv,1,0,"circle",11),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.tooltipTemplate?void 0:s.escape(a.value))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a),e.uIk("transform","translate("+a.x+","+a.y+")")("fill",s.colors.getColor(s.groupResultsBy(a)))("stroke",s.colors.getColor(s.groupResultsBy(a))),e.xp6(1),e.Q6J("ngIf",s.nodeTemplate),e.xp6(1),e.Q6J("ngIf",!s.nodeTemplate)}}var dv=["ngx-charts-heat-map-cell",""];function uv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("name",n.gradientId)("stops",n.gradientStops)}}var pv=["ngx-charts-heat-map-cell-series",""],hv=function(i,n,a){return{series:i,name:n,value:a}};
1function gv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",1),e.NdJ("select",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.onClick(l.cell))})("activate",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.activate.emit(l.cell))})("deactivate",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.deactivate.emit(l.cell))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("x",a.x)("y",a.y)("width",a.width)("height",a.height)("fill",a.fill)("data",a.data)("gradient",s.gradient)("animations",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.tooltipTemplate?void 0:s.tooltipText(a))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",e.kEZ(14,hv,a.series,a.label,a.data))}}function fv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function mv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)}}function vv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"rect")),2&t){var n=i.$implicit;e.uIk("x",n.x)("y",n.y)("rx",n.rx)("width",n.width)("height",n.height)("fill",n.fill)}}var yv=["ngx-charts-line",""];function xv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateXAxisHeight(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("xScale",a.xScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showXAxisLabel)("labelText",a.xAxisLabel)("trimTicks",a.trimXAxisTicks)("rotateTicks",a.rotateXAxisTicks)("maxTickLength",a.maxXAxisTickLength)("tickFormatting",a.xAxisTickFormatting)("ticks",a.xAxisTicks)}}function _v(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yScale)("dims",a.dims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting)("ticks",a.yAxisTicks)("referenceLines",a.referenceLines)("showRefLines",a.showRefLines)("showRefLabels",a.showRefLabels)}}function bv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",9),e.qZA()),2&t){var n=i.$implicit,a=e.oxw();e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("xScale",a.xScale)("yScale",a.yScale)("colors",a.colors)("data",n)("activeEntries",a.activeEntries)("scaleType",a.scaleType)("curve",a.curve)("rangeFillOpacity",a.rangeFillOpacity)("hasRange",a.hasRange)("animations",a.animations)}}function Tv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw(2);return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw(2);e.xp6(1),e.Q6J("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("data",a)("scaleType",s.scaleType)("visibleValue",s.hoveredVertical)("activeEntries",s.activeEntries)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}function wv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",10),e.NdJ("mouseleave",function(){e.CHM(n);var o=e.oxw();return e.KtG(o.hideCircles())}),e.TgZ(1,"g",11),e.NdJ("hover",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateHoveredVertical(o))}),e.qZA(),e.YNc(2,Tv,2,9,"g",12),e.qZA()}if(2&t){var a=e.oxw();e.xp6(1),e.Q6J("dims",a.dims)("xSet",a.xSet)("xScale",a.xScale)("yScale",a.yScale)("results",a.results)("colors",a.colors)("tooltipDisabled",a.tooltipDisabled)("tooltipTemplate",a.seriesTooltipTemplate),e.xp6(1),e.Q6J("ngForOf",a.results)}}function Cv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"g",15),e.qZA()),2&t){var n=i.$implicit,a=e.oxw(2);e.xp6(1),e.Q6J("xScale",a.timelineXScale)("yScale",a.timelineYScale)("colors",a.colors)("data",n)("scaleType",a.scaleType)("curve",a.curve)("hasRange",a.hasRange)("animations",a.animations)}}function kv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",14),e.NdJ("onDomainChange",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateDomain(o))}),e.YNc(1,Cv,2,8,"g",4),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("results",a.results)("view",e.WLB(10,Xe,a.timelineWidth,a.height))("height",a.timelineHeight)("scheme",a.scheme)("customColors",a.customColors)("scaleType",a.scaleType)("legend",a.legend),e.uIk("transform",a.timelineTransform),e.xp6(1),e.Q6J("ngForOf",a.results)("ngForTrackBy",a.trackBy)}}var Av=["ngx-charts-line-series",""];function Sv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",4)),2&t){var n=e.oxw();e.Q6J("name",n.gradientId)("stops",n.gradientStops)}}function Iv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",5)),2&t){var n=e.oxw();e.ekj("active",n.isActive(n.data))("inactive",n.isInactive(n.data)),e.Q6J("data",n.data)("path",n.outerPath)("fill",n.hasGradient?n.gradientUrl:n.colors.getColor(n.data.name))("opacity",n.rangeFillOpacity)("animations",n.animations)}}function Lv(t,i){1&t&&(e.O4$(),e._UZ(0,"circle",8)),2&t&&e.uIk("r",i.$implicit)}function Ov(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Lv,1,1,"circle",7),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.radiusTicks)}}function Dv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",10)),2&t){var n=i.$implicit,a=e.oxw(2);e.Q6J("data",n)("radius",a.outerRadius)("label",n.label)("max",a.outerRadius)("value",a.showGridLines?1:a.outerRadius)("explodeSlices",!0)("animations",a.animations)("labelTrim",a.labelTrim)("labelTrimSize",a.labelTrimSize)}}function Bv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Dv,1,9,"g",9),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.thetaTicks)}}function Mv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",11),e.NdJ("dimensionsChanged",function(o){e.CHM(n);var r=e.oxw();return e.KtG(r.updateYAxisWidth(o))}),e.qZA()}if(2&t){var a=e.oxw();e.Q6J("yScale",a.yAxisScale)("dims",a.yAxisDims)("showGridLines",a.showGridLines)("showLabel",a.showYAxisLabel)("labelText",a.yAxisLabel)("trimTicks",a.trimYAxisTicks)("maxTickLength",a.maxYAxisTickLength)("tickFormatting",a.yAxisTickFormatting),e.uIk("transform",a.transformYAxis)}}function Fv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",12)),2&t){var n=e.oxw();e.Q6J("label",n.xAxisLabel)("offset",n.labelOffset)("orient","bottom")("height",n.dims.height)("width",n.dims.width)}}function Ev(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",13),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("@animationState","active"),e.xp6(1),e.Q6J("gradient",s.gradient)("xScale",s.xScale)("yScale",s.yScale)("colors",s.colors)("data",a)("activeEntries",s.activeEntries)("scaleType",s.scaleType)("curve",s.curve)("rangeFillOpacity",s.rangeFillOpacity)("animations",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)}}var jv=["ngx-charts-polar-series",""];function Nv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",4)),2&t){var n=e.oxw();e.Q6J("color",n.seriesColor)("name",n.gradientId)("startOpacity",.25)("endOpacity",1)("stops",n.gradientStops)}}function Pv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("select",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.select.emit(l.data))})("activate",function(){var l=e.CHM(n).$implicit,c=e.oxw();
1return e.KtG(c.activate.emit({name:l.data.series}))})("deactivate",function(){var l=e.CHM(n).$implicit,c=e.oxw();return e.KtG(c.deactivate.emit({name:l.data.series}))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Udp("opacity",s.inactive?.2:1),e.Q6J("cx",a.cx)("cy",a.cy)("r",s.circleRadius)("fill",a.color)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipTitle",s.tooltipTemplate?void 0:s.tooltipText(a))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)}}var Hv=["ngx-charts-pie-label",""],zv=["ngx-charts-pie-arc",""];function Rv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("color",n.fill)("name",n.radialGradientId)("startOpacity",n.startOpacity)}}var Es=".pie-label{font-size:11px}.pie-label.animation{animation:750ms ease-in fadeIn}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{animation:3s linear drawOut;transition:d 750ms}@keyframes drawOut{from{stroke-dashoffset:100%}to{stroke-dashoffset:0}}";function Gv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"text",10)),2&t){var n=e.oxw().$implicit;e.Q6J("countTo",n.percent)("countSuffix","%")}}function Yv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"text",11),e._uU(1),e.qZA()),2&t){var n=e.oxw().$implicit;e.xp6(1),e.hij(" ",n.percent.toLocaleString()," ")}}function Zv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"text",12)),2&t){var n=e.oxw().$implicit,a=e.oxw();e.Q6J("countTo",n.total)("countPrefix",a.label+": "),e.uIk("y",n.outerRadius)}}function Xv(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"text",13),e._uU(1),e.qZA()),2&t){var n=e.oxw().$implicit,a=e.oxw();e.uIk("y",n.outerRadius),e.xp6(1),e.AsE(" ",a.label,": ",n.total.toLocaleString()," ")}}var Jv=function(i){return{data:i}};function Wv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",3)(1,"g",4),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onDeactivate(r))}),e.qZA(),e.YNc(2,Gv,1,2,"text",5),e.YNc(3,Yv,2,1,"text",6),e.TgZ(4,"text",7),e._uU(5),e.qZA(),e.YNc(6,Zv,1,3,"text",8),e.YNc(7,Xv,2,3,"text",9),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.uIk("transform",a.transform),e.xp6(1),e.Q6J("colors",a.colors)("data",a.data)("innerRadius",a.innerRadius)("outerRadius",a.outerRadius)("animations",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.tooltipTemplate?void 0:s.tooltipText(e.VKq(17,Jv,a)))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data[0].data),e.xp6(1),e.Q6J("ngIf",s.animations),e.xp6(1),e.Q6J("ngIf",!s.animations),e.xp6(2),e.hij(" ",a.label," "),e.xp6(1),e.Q6J("ngIf",s.animations),e.xp6(1),e.Q6J("ngIf",!s.animations)}}var Uv=["ngx-charts-pie-grid-series",""];function $v(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.activate.emit(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.deactivate.emit(r))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("startAngle",a.startAngle)("endAngle",a.endAngle)("innerRadius",s.innerRadius)("outerRadius",s.outerRadius)("fill",s.color(a))("value",a.data.value)("data",a.data)("gradient",!1)("pointerEvents",a.pointerEvents)("animate",a.animate),e.uIk("class",a.class)}}var Qv=["ngx-charts-pie-series",""];function Vv(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",3)),2&t){var n=e.oxw().$implicit,a=e.oxw();e.Q6J("data",n)("radius",a.outerRadius)("color",a.color(n))("label",a.labelText(n))("labelTrim",a.trimLabels)("labelTrimSize",a.maxLabelLength)("max",a.max)("value",n.value)("explodeSlices",a.explodeSlices)("animations",a.animations)}}function qv(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g"),e.YNc(1,Vv,1,10,"g",1),e.TgZ(2,"g",2),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.activate.emit(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.deactivate.emit(r))})("dblclick",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.dblclick.emit(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.xp6(1),e.Q6J("ngIf",s.labelVisible(a)),e.xp6(1),e.Q6J("startAngle",a.startAngle)("endAngle",a.endAngle)("innerRadius",s.innerRadius)("outerRadius",s.outerRadius)("fill",s.color(a))("value",a.data.value)("gradient",s.gradient)("data",a.data)("max",s.max)("explodeSlices",s.explodeSlices)("isActive",s.isActive(a.data))("animate",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.getTooltipTitle(a))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)}}var js=["textEl"],Kv=["ngx-charts-card",""];function ey(t,i){if(1&t&&(e.O4$(),e._UZ(0,"path",7)),2&t){var n=e.oxw();e.uIk("fill",n.bandColor)("transform",n.transformBand)("d",n.bandPath)}}var ty=["ngx-charts-card-series",""];function iy(t,i){if(1&t&&(e.O4$(),e._UZ(0,"rect",2)),2&t){var n=i.$implicit,a=e.oxw();e.Udp("fill",a.emptyColor),e.uIk("x",n.x)("y",n.y)("width",n.width)("height",n.height)}}function ny(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",3),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("x",a.x)("y",a.y)("width",a.width)("height",a.height)("color",a.color)("bandColor",a.bandColor)("textColor",a.textColor)("data",a.data)("label",a.label)("medianSize",s.medianSize)("valueFormatting",s.valueFormatting)("labelFormatting",s.labelFormatting)("animations",s.animations)}}var ay=["ngx-charts-tree-map-cell",""];function oy(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",3),e.qZA()),2&t){var n=e.oxw();e.xp6(1),e.Q6J("name",n.gradientId)("stops",n.gradientStops)}}function ry(t,i){if(1&t&&e._UZ(0,"span",8),2&t){var n=e.oxw(2);e.Q6J("countTo",n.value)("valueFormatting",n.valueFormatting)}}function sy(t,i){if(1&t&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&t){var n=e.oxw(2);e.xp6(1),e.hij(" ",n.formattedValue," ")}}function ly(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"foreignObject",4),e.kcU(),e.TgZ(1,"p"),e._UZ(2,"
1span",5)(3,"br"),e.YNc(4,ry,1,2,"span",6),e.YNc(5,sy,2,1,"span",7),e.qZA()()),2&t){var n=e.oxw();e.Udp("pointer-events","none"),e.uIk("x",n.x)("y",n.y)("width",n.width)("height",n.height),e.xp6(1),e.Udp("color",n.getTextColor())("height",n.height+"px")("width",n.width+"px"),e.xp6(1),e.Q6J("innerHTML",n.formattedLabel,e.oJD),e.xp6(2),e.Q6J("ngIf",n.animations),e.xp6(1),e.Q6J("ngIf",!n.animations)}}var cy=["ngx-charts-tree-map-cell-series",""];function dy(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g",1),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))}),e.qZA()}if(2&t){var a=i.$implicit,s=e.oxw();e.Q6J("data",a.data)("x",a.x)("y",a.y)("width",a.width)("height",a.height)("fill",a.fill)("label",a.label)("value",a.value)("valueType",a.valueType)("valueFormatting",s.valueFormatting)("labelFormatting",s.labelFormatting)("gradient",s.gradient)("animations",s.animations)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",s.tooltipTemplate?void 0:s.getTooltipText(a))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",a.data)}}var uy=["valueTextEl"],py=["unitsTextEl"];function hy(t,i){if(1&t&&(e.O4$(),e._UZ(0,"line",10)),2&t){var n=e.oxw();e.uIk("transform",n.transformLine)("stroke",n.colors.getColor(n.units))}}function gy(t,i){if(1&t&&(e.O4$(),e._UZ(0,"line",11)),2&t){var n=e.oxw();e.uIk("transform",n.transformLine)("stroke",n.colors.getColor(n.units))}}var Ns=function(){return{}};function fy(t,i){if(1&t){var n=e.EpF();e.O4$(),e.TgZ(0,"g")(1,"g",5),e.NdJ("select",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onClick(r))})("activate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onActivate(r))})("deactivate",function(r){e.CHM(n);var l=e.oxw();return e.KtG(l.onDeactivate(r))}),e.qZA()()}if(2&t){var a=i.$implicit,s=e.oxw();e.uIk("transform",s.rotation),e.xp6(1),e.Q6J("backgroundArc",a.backgroundArc)("valueArc",a.valueArc)("cornerRadius",s.cornerRadius)("colors",s.colors)("isActive",s.isActive(a.valueArc.data))("tooltipDisabled",s.tooltipDisabled)("tooltipTemplate",s.tooltipTemplate)("valueFormatting",s.valueFormatting)("animations",s.animations)}}function my(t,i){if(1&t&&(e.O4$(),e._UZ(0,"g",6)),2&t){var n=e.oxw();e.Q6J("bigSegments",n.bigSegments)("smallSegments",n.smallSegments)("min",n.min)("max",n.max)("radius",n.outerRadius)("angleSpan",n.angleSpan)("valueScale",n.valueScale)("startAngle",n.startAngle)("tickFormatting",n.axisTickFormatting)}}function vy(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"text",7,8)(2,"tspan",9),e._uU(3),e.qZA(),e.TgZ(4,"tspan",10),e._uU(5),e.qZA()()),2&t){var n=e.oxw();e.Udp("text-anchor","middle"),e.uIk("transform",n.textTransform),e.xp6(3),e.Oqu(n.displayValue),e.xp6(2),e.Oqu(n.units)}}var yy=["ngx-charts-gauge-arc",""],xy=["ngx-charts-gauge-axis",""];function _y(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g",2),e._UZ(1,"path"),e.qZA()),2&t){var n=i.$implicit;e.xp6(1),e.uIk("d",n.line)}}function by(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g",2)(1,"text",3),e._uU(2),e.qZA()()),2&t){var n=i.$implicit;e.xp6(1),e.Udp("text-anchor",n.textAnchor),e.uIk("transform",n.textTransform),e.xp6(1),e.hij(" ",n.text," ")}}function Ty(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"g",4),e._UZ(1,"path"),e.qZA()),2&t){var n=i.$implicit;e.xp6(1),e.uIk("d",n.line)}}var so=function(i,n){return(so=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var o in s)s.hasOwnProperty(o)&&(a[o]=s[o])})(i,n)};function qe(t,i){function n(){this.constructor=t}so(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var lo=function(){return lo=Object.assign||function(n){for(var a,s=1,o=arguments.length;s<o;s++)for(var r in a=arguments[s])Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r]);return n},lo.apply(this,arguments)};function u(t,i,n,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,n,a);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(o=(s<3?r(o):s>3?r(i,n,o):r(i,n))||o);return s>3&&o&&Object.defineProperty(i,n,o),o}function d(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)}!function wy(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}();var Ke=function(){return(t=Ke||(Ke={}))[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",Ke;var t}();function Ps(t,i,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-i.height+7:"center"===n?t.top+t.height/2-i.height/2:void 0}function Hs(t,i,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-i.width+7:"center"===n?t.left+t.width/2-i.width/2:void 0}var co=function(){function t(){}return t.calculateVerticalAlignment=function(i,n,a){var s=Ps(i,n,a);return s+n.height>window.innerHeight&&(s=window.innerHeight-n.height),s},t.calculateVerticalCaret=function(i,n,a,s){var o;"top"===s&&(o=i.height/2-a.height/2+7),"bottom"===s&&(o=n.height-i.height/2-a.height/2-7),"center"===s&&(o=n.height/2-a.height/2);var r=Ps(i,n,s);return r+n.height>window.innerHeight&&(o+=r+n.height-window.innerHeight),o},t.calculateHorizontalAlignment=function(i,n,a){var s=Hs(i,n,a);return s+n.width>window.innerWidth&&(s=window.innerWidth-n.width),s},t.calculateHorizontalCaret=function(i,n,a,s){var o;"left"===s&&(o=i.width/2-a.width/2+7),"right"===s&&(o=n.width-i.width/2-a.width/2-7),"center"===s&&(o=n.width/2-a.width/2);var r=Hs(i,n,s);return r+n.width>window.innerWidth&&(o+=r+n.width-window.innerWidth),o},t.shouldFlip=function(i,n,a,s){var o=!1;return"right"===a&&i.left+i.width+n.width+s>window.innerWidth&&(o=!0),"left"===a&&i.left-n.width-s<0&&(o=!0),"top"===a&&i.top-n.height-s<0&&(o=!0),"bottom"===a&&i.top+i.height+n.height+s>window.innerHeight&&(o=!0),o},t.positionCaret=function(i,n,a,s,o){var r=0,l=0;
1return i===Ke.right?(l=-7,r=t.calculateVerticalCaret(a,n,s,o)):i===Ke.left?(l=n.width,r=t.calculateVerticalCaret(a,n,s,o)):i===Ke.top?(r=n.height,l=t.calculateHorizontalCaret(a,n,s,o)):i===Ke.bottom&&(r=-7,l=t.calculateHorizontalCaret(a,n,s,o)),{top:r,left:l}},t.positionContent=function(i,n,a,s,o){var r=0,l=0;return i===Ke.right?(l=a.left+a.width+s,r=t.calculateVerticalAlignment(a,n,o)):i===Ke.left?(l=a.left-n.width-s,r=t.calculateVerticalAlignment(a,n,o)):i===Ke.top?(r=a.top-n.height-s,l=t.calculateHorizontalAlignment(a,n,o)):i===Ke.bottom&&(r=a.top+a.height+s,l=t.calculateHorizontalAlignment(a,n,o)),{top:r,left:l}},t.determinePlacement=function(i,n,a,s){if(t.shouldFlip(a,n,i,s)){if(i===Ke.right)return Ke.left;if(i===Ke.left)return Ke.right;if(i===Ke.top)return Ke.bottom;if(i===Ke.bottom)return Ke.top}return i},t}(),ci=function(){return(t=ci||(ci={}))[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",ci;var t}(),di=function(){return(t=di||(di={}))[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",di;var t}(),Jt=function(){return(t=Jt||(Jt={}))[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",Jt;var t}(),gn=function(){function t(o,r,l){this.applicationRef=o,this.componentFactoryResolver=r,this.injector=l}var i,n,a,s;return i=t,t.setGlobalRootViewContainer=function(o){i.globalRootViewContainer=o},t.prototype.getRootViewContainer=function(){var o=this.applicationRef.components;if(o&&o.length)return o[0];if(this._container)return this._container;if(i.globalRootViewContainer)return i.globalRootViewContainer;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},t.prototype.setRootViewContainer=function(o){this._container=o},t.prototype.getComponentRootNode=function(o){return o.hostView?o.hostView.rootNodes[0]:o.element.nativeElement},t.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},t.prototype.projectComponentBindings=function(o,r){if(r){if(void 0!==r.inputs)for(var c=0,p=Object.getOwnPropertyNames(r.inputs);c<p.length;c++){var h=p[c];o.instance[h]=r.inputs[h]}if(void 0!==r.outputs)for(var f=0,m=Object.getOwnPropertyNames(r.outputs);f<m.length;f++){var x=m[f];o.instance[x]=r.outputs[x]}}return o},t.prototype.appendComponent=function(o,r,l){void 0===r&&(r={}),void 0===l&&(l=this.getRootViewContainerNode());var p=this.componentFactoryResolver.resolveComponentFactory(o).create(this.injector),h=this.applicationRef,g=this.getComponentRootNode(p);return this.projectComponentBindings(p,r),h.attachView(p.hostView),p.onDestroy(function(){h.detachView(p.hostView)}),p.instance.renderer.appendChild(l,g),p},t.globalRootViewContainer=null,(t=i=u([d("design:paramtypes",["function"==typeof(n=void 0!==e.z2F&&e.z2F)?n:Object,"function"==typeof(a=void 0!==e._Vd&&e._Vd)?a:Object,"function"==typeof(s=void 0!==e.zs3&&e.zs3)?s:Object])],t)).\u0275fac=function(r){return new(r||t)(e.LFG("function"==typeof(n=void 0!==e.z2F&&e.z2F)?n:Object),e.LFG("function"==typeof(a=void 0!==e._Vd&&e._Vd)?a:Object),e.LFG("function"==typeof(s=void 0!==e.zs3&&e.zs3)?s:Object))},t.\u0275prov=e.Yz7({token:t,factory:function(r){return t.\u0275fac(r)}}),t}(),Cy=function(){function t(i){this.injectionService=i,this.defaults={},this.components=new Map}return t.prototype.getByType=function(i){return void 0===i&&(i=this.type),this.components.get(i)},t.prototype.create=function(i){return this.createByType(this.type,i)},t.prototype.createByType=function(i,n){n=this.assignDefaults(n);var a=this.injectComponent(i,n);return this.register(i,a),a},t.prototype.destroy=function(i){var n=this.components.get(i.componentType);if(n){var a=n.indexOf(i);a>-1&&(n[a].destroy(),n.splice(a,1))}},t.prototype.destroyAll=function(){this.destroyByType(this.type)},t.prototype.destroyByType=function(i){var n=this.components.get(i);if(n)for(var a=0,s=n;a<s.length;a++)this.destroy(s[a])},t.prototype.assignDefaults=function(i){var n=this.defaults,a=n.inputs,s=n.outputs;return!i.inputs&&!i.outputs&&(i={inputs:i}),a&&(i.inputs=Object.assign(a,i.inputs)),s&&(i.outputs=Object.assign(s,i.outputs)),i},t.prototype.injectComponent=function(i,n){return this.injectionService.appendComponent(i,n)},t.prototype.register=function(i,n){this.components.has(i)||this.components.set(i,[]),this.components.get(i).push(n)},t}();function ky(t,i,n){n=n||{};var a,s,o,r=null,l=0;function c(){l=!1===n.leading?0:+new Date,r=null,o=t.apply(a,s)}return function(){var p=+new Date;!l&&!1===n.leading&&(l=p);var h=i-(p-l);return a=this,s=arguments,h<=0?(clearTimeout(r),r=null,l=p,o=t.apply(a,s)):!r&&!1!==n.trailing&&(r=setTimeout(c,h)),o}}function Ay(t,i){return function(a,s,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:o.enumerable,value:ky(o.value,t,i)}),this[s]}}}}var Sy=function(){function t(r,l){this.element=r,this.renderer=l}var i,n,a,s,o;
1return Object.defineProperty(t.prototype,"cssClasses",{get:function(){var l="ngx-charts-tooltip-content";return l+=" position-"+this.placement,(l+=" type-"+this.type)+" "+this.cssClass},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},t.prototype.position=function(){var r=this,l=this.element.nativeElement,c=this.host.nativeElement.getBoundingClientRect();if(c.height||c.width){var p=l.getBoundingClientRect();this.checkFlip(c,p),this.positionContent(l,c,p),this.showCaret&&this.positionCaret(c,p),setTimeout(function(){return r.renderer.addClass(l,"animate")},1)}},t.prototype.positionContent=function(r,l,c){var p=co.positionContent(this.placement,c,l,this.spacing,this.alignment),g=p.left;this.renderer.setStyle(r,"top",p.top+"px"),this.renderer.setStyle(r,"left",g+"px")},t.prototype.positionCaret=function(r,l){var c=this.caretElm.nativeElement,p=c.getBoundingClientRect(),h=co.positionCaret(this.placement,l,r,p,this.alignment),f=h.left;this.renderer.setStyle(c,"top",h.top+"px"),this.renderer.setStyle(c,"left",f+"px")},t.prototype.checkFlip=function(r,l){this.placement=co.determinePlacement(this.placement,l,r,this.spacing)},t.prototype.onWindowResize=function(){this.position()},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"host",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showCaret",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==ci&&ci)?i:Object)],t.prototype,"type",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(n=void 0!==Ke&&Ke)?n:Object)],t.prototype,"placement",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(a=void 0!==di&&di)?a:Object)],t.prototype,"alignment",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"spacing",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"cssClass",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"title",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"template",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"context",void 0),u([(0,e.i9L)("caretElm",{static:!1}),d("design:type",Object)],t.prototype,"caretElm",void 0),u([(0,e.pfw)("class"),d("design:type",String),d("design:paramtypes",[])],t.prototype,"cssClasses",null),u([(0,e.L6J)("window:resize"),Ay(100),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onWindowResize",null),(t=u([d("design:paramtypes",["function"==typeof(s=void 0!==e.SBq&&e.SBq)?s:Object,"function"==typeof(o=void 0!==e.Qsj&&e.Qsj)?o:Object])],t)).\u0275fac=function(l){return new(l||t)(e.Y36("function"==typeof(s=void 0!==e.SBq&&e.SBq)?s:Object),e.Y36("function"==typeof(o=void 0!==e.Qsj&&e.Qsj)?o:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(l,c){var p;1&l&&e.Gf(Yg,5),2&l&&e.iGM(p=e.CRH())&&(c.caretElm=p.first)},hostVars:2,hostBindings:function(l,c){1&l&&e.NdJ("resize",function(){return c.onWindowResize()},!1,e.Jf7),2&l&&e.Tol(c.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(l,c){1&l&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,Jg,2,4,"span",3),e.YNc(5,Wg,1,1,"span",4),e.qZA()()),2&l&&(e.xp6(1),e.Gre("tooltip-caret position-",c.placement,""),e.Q6J("hidden",!c.showCaret),e.xp6(3),e.Q6J("ngIf",!c.title),e.xp6(1),e.Q6J("ngIf",c.title))},dependencies:[X.O5,X.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px 5px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;
1transform:translate3d(0,0,0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}"],encapsulation:2}),t}(),Wt=function(t){function i(a){var s=t.call(this,a)||this;return s.injectionService=a,s.type=Sy,s}var n;return qe(i,t),(i=u([d("design:paramtypes",["function"==typeof(n=void 0!==gn&&gn)?n:Object])],i)).\u0275fac=function(s){return new(s||i)(e.LFG("function"==typeof(n=void 0!==gn&&gn)?n:Object))},i.\u0275prov=e.Yz7({token:i,factory:function(s){return i.\u0275fac(s)}}),i}(Cy),jt=function(){function t(c,p,h){this.tooltipService=c,this.viewContainerRef=p,this.renderer=h,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ke.top,this.tooltipAlignment=di.center,this.tooltipType=ci.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Jt.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}var i,n,a,s,o,r,l;return Object.defineProperty(t.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===Jt.all||this.tooltipShowEvent===Jt.focus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===Jt.all||this.tooltipShowEvent===Jt.mouseover},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},t.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},t.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},t.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},t.prototype.onMouseLeave=function(c){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(c))return;this.hideTooltip(this.tooltipImmediateExit)}},t.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},t.prototype.showTooltip=function(c){var p=this;if(!this.component&&!this.tooltipDisabled){var h=c?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){p.tooltipService.destroyAll();var g=p.createBoundOptions();p.component=p.tooltipService.create(g),setTimeout(function(){p.component&&p.addHideListeners(p.component.instance.element.nativeElement)},10),p.show.emit(!0)},h)}},t.prototype.addHideListeners=function(c){var p=this;this.mouseEnterContentEvent=this.renderer.listen(c,"mouseenter",function(){clearTimeout(p.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(c,"mouseleave",function(){p.hideTooltip(p.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(h){c.contains(h.target)||p.hideTooltip()}))},t.prototype.hideTooltip=function(c){var p=this;if(void 0===c&&(c=!1),this.component){var h=function(){p.mouseLeaveContentEvent&&p.mouseLeaveContentEvent(),p.mouseEnterContentEvent&&p.mouseEnterContentEvent(),p.documentClickEvent&&p.documentClickEvent(),p.hide.emit(!0),p.tooltipService.destroy(p.component),p.component=void 0};clearTimeout(this.timeout),c?h():this.timeout=setTimeout(h,this.tooltipHideTimeout)}},t.prototype.createBoundOptions=function(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}},u([(0,e.IIB)(),d("design:type",String)],t.prototype,"tooltipCssClass",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"tooltipTitle",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipAppendToBody",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"tooltipSpacing",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipShowCaret",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==Ke&&Ke)?i:Object)],t.prototype,"tooltipPlacement",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(n=void 0!==di&&di)?n:Object)],t.prototype,"tooltipAlignment",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(a=void 0!==ci&&ci)?a:Object)],t.prototype,"tooltipType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipCloseOnClickOutside",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipCloseOnMouseLeave",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"tooltipHideTimeout",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"tooltipShowTimeout",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(s=void 0!==Jt&&Jt)?s:Object)],t.prototype,"tooltipShowEvent",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tooltipContext",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipImmediateExit",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"show",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"hide",void 0),u([(0,e.L6J)("focusin"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onFocus",null),u([(0,e.L6J)("blur"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onBlur",null),u([(0,e.L6J)("mouseenter"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([(0,e.L6J)("mouseleave",["$event.target"]),d("design:type",Function),d("design:paramtypes",[Object]),d("design:returntype",void 0)],t.prototype,"onMouseLeave",null),u([(0,e.L6J)("click"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseClick",null),(t=u([d("design:paramtypes",["function"==typeof(o=void 0!==Wt&&Wt)?o:Object,"function"==typeof(r=void 0!==e.s_b&&e.s_b)?r:Object,"function"==typeof(l=void 0!==e.Qsj&&e.Qsj)?l:Object])],t)).\u0275fac=function(p){return new(p||t)(e.Y36("function"==typeof(o=void 0!==Wt&&Wt)?o:Object),e.Y36("function"==typeof(r=void 0!==e.s_b&&e.s_b)?r:Object),e.Y36("function"==typeof(l=void 0!==e.Qsj&&e.Qsj)?l:Object))},t.\u0275dir=e.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(p,h){1&p&&e.NdJ("focusin",function(){return h.onFocus()})("blur",function(){return h.onBlur()})("mouseenter",function(){return h.onMouseEnter()})("mouseleave",function(f){return h.onMouseLeave(f.target)})("click",function(){return h.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t}(),zs=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[gn,Wt],imports:[X.ez]}),t}(),We=function(){function t(r,l){this.vcr=r,this.tooltipService=l,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}var i,n,a,s,o;return t.prototype.ngOnChanges=function(r){this.update()},t.prototype.update=function(){var r=0;
1this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||"right"===this.legendOptions.position)&&(r="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*r/12)},t.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"view",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showLegend",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"legendOptions",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"legendData",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"legendType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"legendLabelClick",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],t.prototype,"legendLabelActivate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],t.prototype,"legendLabelDeactivate",void 0),(t=u([d("design:paramtypes",["function"==typeof(s=void 0!==e.s_b&&e.s_b)?s:Object,"function"==typeof(o=void 0!==Wt&&Wt)?o:Object])],t)).\u0275fac=function(l){return new(l||t)(e.Y36("function"==typeof(s=void 0!==e.s_b&&e.s_b)?s:Object),e.Y36("function"==typeof(o=void 0!==Wt&&Wt)?o:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Wt]),e.TTD],ngContentSelectors:Bs,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(l,c){1&l&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,Ug,1,5,"ngx-charts-scale-legend",2),e.YNc(4,$g,1,7,"ngx-charts-legend",3),e.qZA()),2&l&&(e.Udp("width",c.view[0],"px"),e.Q6J("@animationState","active")("@.disabled",!c.animations),e.xp6(1),e.uIk("width",c.chartWidth)("height",c.view[1]),e.xp6(2),e.Q6J("ngIf",c.showLegend&&"scaleLegend"===c.legendType),e.xp6(1),e.Q6J("ngIf",c.showLegend&&"legend"===c.legendType))},dependencies:function(){return[X.O5,Rs,Gs]},encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":enter",[(0,P.oB)({opacity:0}),(0,P.jt)("500ms 100ms",(0,P.oB)({opacity:1}))])])]},changeDetection:0}),t}();function gt(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}function lt(t){return t.toLocaleString().replace(/[&'`"<>]/g,function(i){return{"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[i]})}var Rs=function(){function t(o){this.cd=o,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}var i,n,a,s;return t.prototype.ngOnChanges=function(o){this.update()},t.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},t.prototype.getLegendEntries=function(){for(var o=[],r=function(f){var m=gt(f);-1===o.findIndex(function(y){return y.label===m})&&o.push({label:f,formattedLabel:m,color:l.colors.getColor(f)})},l=this,c=0,p=this.data;c<p.length;c++)r(p[c]);return o},t.prototype.isActive=function(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(l){return o.label===l.name})},t.prototype.activate=function(o){this.labelActivate.emit(o)},t.prototype.deactivate=function(o){this.labelDeactivate.emit(o)},t.prototype.trackBy=function(o,r){return r.label},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"title",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"horizontal",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"labelClick",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],t.prototype,"labelActivate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],t.prototype,"labelDeactivate",void 0),(t=u([d("design:paramtypes",["function"==typeof(s=void 0!==e.sBO&&e.sBO)?s:Object])],t)).\u0275fac=function(r){return new(r||t)(e.Y36("function"==typeof(s=void 0!==e.sBO&&e.sBO)?s:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"div"),e.YNc(1,Qg,3,1,"header",0),e.TgZ(2,"div",1)(3,"ul",2),e.YNc(4,Vg,2,4,"li",3),e.qZA()()()),2&r&&(e.Udp("width",l.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==l.title?null:l.title.length)>0),e.xp6(2),e.Udp("max-height",l.height-45,"px"),e.ekj("horizontal-legend",l.horizontal),e.xp6(1),e.Q6J("ngForOf",l.legendEntries)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ys]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),t}(),Gs=function(){function t(n){this.sanitizer=n,this.horizontal=!1}var i;return t.prototype.ngOnChanges=function(n){var a=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to "+(this.horizontal?"right":"bottom")+", "+a+")")},t.prototype.gradientString=function(n,a){a.push(1);var s=[];return n.reverse().forEach(function(o,r){s.push(o+" "+Math.round(100*a[r])+"%")}),s.join(", ")},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueRange",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"horizontal",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==v.H7&&v.H7)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==v.H7&&v.H7)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(a,s){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA()(),e._UZ(4,"div",2),e.TgZ(5,"div",1)(6,"span"),e._uU(7),e.qZA()()()),2&a&&(e.Udp("height",s.horizontal?void 0:s.height,"px")("width",s.width,"px"),e.ekj("horizontal-legend",s.horizontal),e.xp6(3),e.Oqu(s.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",s.gradient),e.xp6(3),e.Oqu(s.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}"],encapsulation:2,changeDetection:0}),t}(),Ys=function(){function t(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}var i,n,a,s;return Object.defineProperty(t.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},t.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},u([(0,e.IIB)(),d("design:type",String)],t.prototype,"color",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"formattedLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"isActive",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],t.prototype,"deactivate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(s=void 0!==e.vpe&&e.vpe)?s:Object)],t.prototype,"toggle",void 0),u([(0,e.L6J)("mouseenter"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(r,l){1&r&&e.NdJ("mouseenter",function(){return l.onMouseEnter()})("mouseleave",function(){return l.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(r,l){1&r&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return l.select.emit(l.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return l.toggle.emit(l.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA()()),2&r&&(e.ekj("active",l.isActive),e.Q6J("title",l.formattedLabel),e.xp6(1),e.Udp("background-color",l.color),e.xp6(2),e.hij(" ",l.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t}();function ui(t,i){return void 0===i&&(i=16),"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=i?t:t.slice(0,i)+"..."}var Zs=function(){function t(){this.label="Total",this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.legendItems=[],this.labelFormatting=function(s){return s},this.percentageFormatting=function(s){return s}
1,this.defaultValueFormatting=function(s){return s.toLocaleString()}}var i,n,a;return t.prototype.ngOnChanges=function(s){this.update()},t.prototype.getTotal=function(){return this.data.map(function(s){return s.value}).reduce(function(s,o){return s+o},0)},t.prototype.update=function(){this.total=this.getTotal(),this.roundedTotal=this.total,this.legendItems=this.getLegendItems()},t.prototype.getLegendItems=function(){var s=this;return this.data.map(function(o){var r=gt(o.name),l=o.value,c=s.colors.getColor(r),p=s.total>0?l/s.total*100:0,h="function"==typeof s.labelFormatting?s.labelFormatting(r):r;return{_value:l,data:o,value:l,color:c,label:h,displayLabel:ui(h,20),origialLabel:o.name,percentage:s.percentageFormatting?s.percentageFormatting(p):p.toLocaleString()}})},t.prototype.trackBy=function(s){return s.formattedLabel},u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],t.prototype,"deactivate",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"percentageFormatting",void 0),t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["ngx-charts-advanced-legend"]],inputs:{label:"label",animations:"animations",labelFormatting:"labelFormatting",percentageFormatting:"percentageFormatting",width:"width",data:"data",colors:"colors",valueFormatting:"valueFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],decls:8,vars:7,consts:[[1,"advanced-pie-legend"],["class","total-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","total-value",4,"ngIf"],[1,"total-label"],[1,"legend-items-container"],[1,"legend-items"],["tabindex","-1","class","legend-item",3,"mouseenter","mouseleave","click",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-count-up","",1,"total-value",3,"countTo","valueFormatting"],[1,"total-value"],["tabindex","-1",1,"legend-item",3,"mouseenter","mouseleave","click"],[1,"item-color"],["class","item-value","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","item-value",4,"ngIf"],[1,"item-label"],["class","item-percent","ngx-charts-count-up","",3,"countTo","countSuffix",4,"ngIf"],["class","item-percent",4,"ngIf"],["ngx-charts-count-up","",1,"item-value",3,"countTo","valueFormatting"],[1,"item-value"],["ngx-charts-count-up","",1,"item-percent",3,"countTo","countSuffix"],[1,"item-percent"]],template:function(o,r){1&o&&(e.TgZ(0,"div",0),e.YNc(1,qg,1,2,"div",1),e.YNc(2,Kg,2,1,"div",2),e.TgZ(3,"div",3),e._uU(4),e.qZA(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,rf,8,7,"div",6),e.qZA()()()),2&o&&(e.Udp("width",r.width,"px"),e.xp6(1),e.Q6J("ngIf",r.animations),e.xp6(1),e.Q6J("ngIf",!r.animations),e.xp6(2),e.hij(" ",r.label," "),e.xp6(3),e.Q6J("ngForOf",r.legendItems)("ngForTrackBy",r.trackBy))},dependencies:function(){return[X.sg,X.O5,ea]},styles:[".advanced-pie-legend{float:left;position:relative;top:50%;transform:translate(0,-50%)}.advanced-pie-legend .total-value{font-size:36px}.advanced-pie-legend .total-label{font-size:24px;margin-bottom:19px}.advanced-pie-legend .legend-items-container{width:100%}.advanced-pie-legend .legend-items-container .legend-items{white-space:nowrap;overflow:auto}.advanced-pie-legend .legend-items-container .legend-items .legend-item{margin-right:20px;display:inline-block;cursor:pointer}.advanced-pie-legend .legend-items-container .legend-items .legend-item:focus{outline:0}.advanced-pie-legend .legend-items-container .legend-items .legend-item:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;transition:.2s}.advanced-pie-legend .legend-items-container .legend-items .legend-item .
1item-value{font-size:24px;margin-top:-6px;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label{font-size:14px;opacity:.7;margin-left:11px;margin-top:-6px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent{font-size:24px;opacity:.7;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color{border-left:4px solid;width:4px;height:42px;float:left;margin-right:7px}"],encapsulation:2,changeDetection:0}),t}(),Xs={};function Ct(){var t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return Xs[t="a"+t]?Ct():(Xs[t]=!0,t)}var Js=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];function uo(t,i,n){return void 0===n&&(n="asc"),t.sort(function(a,s){return"asc"===n?a[i]-s[i]:s[i]-a[i]})}function po(t,i,n,a){return void 0===n&&(n="asc"),t.sort(function(s,o){var l=o[i],c=a.indexOf(s[i]),p=a.indexOf(l);return"asc"===n?c-p:p-c})}function ho(t,i,n){return void 0===n&&(n="asc"),t.sort(function(a,s){var o=a[i].getTime(),r=s[i].getTime();return"asc"===n?o>r?1:r>o?-1:0:o>r?-1:r>o?1:0})}function Ws(t){var i=be(t),n=i.r,a=i.g,s=i.b;return 0===i.opacity?i.toString():function Iy(t,i){var n=t.r,a=t.g,s=t.b,o=i<0?0:255,r=i<0?-1*i:i;return"rgb("+(n=Math.round((o-n)*r)+n)+", "+(a=Math.round((o-a)*r)+a)+", "+(s=Math.round((o-s)*r)+s)+")"}(i,(299*n+587*a+114*s)/1e3>=128?-.8:.8)}var Ly=function(){function t(n,a){this.element=n,this.zone=a,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}var i;return t.prototype.destroy=function(){clearTimeout(this.timeout)},t.prototype.onVisibilityChange=function(){var n=this;this.zone.run(function(){n.isVisible=!0,n.visible.emit(!0)})},t.prototype.runCheck=function(){var n=this,a=function s(){if(n.element){var o=n.element.nativeElement;o.offsetHeight&&o.offsetWidth?(clearTimeout(n.timeout),n.onVisibilityChange()):(clearTimeout(n.timeout),n.zone.runOutsideAngular(function(){n.timeout=setTimeout(function(){return s()},100)}))}};this.zone.runOutsideAngular(function(){n.timeout=setTimeout(function(){return a()})})},u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"visible",void 0),t.\u0275fac=function(a){e.$Z()},t.\u0275dir=e.lG2({type:t,outputs:{visible:"visible"}}),t}(),et=function(){function t(s,o,r){this.chartElement=s,this.zone=o,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new e.vpe}var i,n,a;return t.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new Ly(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},t.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},t.prototype.ngOnChanges=function(s){this.update()},t.prototype.update=function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var s=this.getContainerDims();s&&(this.width=s.width,this.height=s.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()},t.prototype.getContainerDims=function(){var s,o,r=this.chartElement.nativeElement;if(null!==r.parentNode){var l=r.parentNode.getBoundingClientRect();s=l.width,o=l.height}return s&&o?{width:s,height:o}:null},t.prototype.formatDates=function(){for(var s=0;s<this.results.length;s++){var o=this.results[s];if(o.label=o.name,o.label instanceof Date&&(o.label=o.label.toLocaleDateString()),o.series)for(var r=0;r<o.series.length;r++){var l=o.series[r];l.label=l.name,l.label instanceof Date&&(l.label=l.label.toLocaleDateString())}}},t.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},t.prototype.bindWindowResizeEvent=function(){var s=this,r=(0,ct.R)(window,"resize").pipe((0,Gt.b)(200)).subscribe(function(l){s.update(),s.cd&&s.cd.markForCheck()});this.resizeSubscription=r},t.prototype.cloneData=function(s){for(var o=[],r=0,l=s;r<l.length;r++){var c=l[r],p={name:c.name};if(void 0!==c.value&&(p.value=c.value),void 0!==c.series){p.series=[];for(var h=0,g=c.series;h<g.length;h++){var m=Object.assign({},g[h]);p.series.push(m)}}void 0!==c.extra&&(p.extra=JSON.parse(JSON.stringify(c.extra))),o.push(p)}return o},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"results",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"view",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scheme",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"customColors",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object,"function"==typeof(n=void 0!==e.R0b&&e.R0b)?n:Object,"function"==typeof(a=void 0!==e.sBO&&e.sBO)?a:Object])],t)).\u0275fac=function(o){return new(o||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object),e.Y36("function"==typeof(n=void 0!==e.R0b&&e.R0b)?n:Object),e.Y36("function"==typeof(a=void 0!==e.sBO&&e.sBO)?a:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(o,r){1&o&&e._UZ(0,"div")},encapsulation:2}),t}(),go=function(){function t(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"offset",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:sf,decls:2,vars:6,template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&a&&(e.uIk("stroke-width",s.strokeWidth)("x",s.x)("y",s.y)("text-anchor",s.textAnchor)("transform",s.transform),e.xp6(1),e.hij(" ",s.label," "))},encapsulation:2,changeDetection:0}),t}();function Us(t,i){if(t.length>i){for(var n=[],a=Math.floor(t.length/i),s=0;s<t.length;s++)s%a==0&&n.push(t[s]);t=n}return t}var fn=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.ngAfterViewInit=function(){var n=this;setTimeout(function(){return n.updateDims()})},t.prototype.updateDims=function(){var n=this,a=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);a!==this.height&&(this.height=a,this.dimensionsChanged.emit({height:a}),setTimeout(function(){return n.updateDims()}))},t.prototype.update=function(){var n=this,a=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:a.tickFormat?a.tickFormat.apply(a,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleStr
1ing()};var s=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(o){return this.scale(o)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",s&&0!==s?(this.textTransform="rotate("+s+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return n.updateDims()})},t.prototype.getRotationAngle=function(n){var a=0;this.maxTicksLength=0;for(var s=0;s<n.length;s++){var o=this.tickFormat(n[s]).toString(),r=o.length;this.trimTicks&&(r=this.tickTrim(o).length),r>this.maxTicksLength&&(this.maxTicksLength=r)}for(var p=8*Math.min(this.maxTicksLength,this.maxAllowedLength),h=p,g=Math.floor(this.width/n.length);h>g&&a>-90;)a-=30,h=Math.cos(a*(Math.PI/180))*p;return a},t.prototype.getTicks=function(){var a=this.getMaxTicks(20),s=this.getMaxTicks(100);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[s]):Us(this.scale.domain(),a)},t.prototype.getMaxTicks=function(n){return Math.floor(this.width/n)},t.prototype.tickTransform=function(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},t.prototype.tickTrim=function(n){return this.trimTicks?ui(n,this.maxTickLength):n},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickArguments",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"tickValues",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickStroke",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"trimTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"maxTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"gridLineHeight",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"rotateTicks",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dimensionsChanged",void 0),u([(0,e.i9L)("ticksel",{static:!1}),d("design:type","function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object)],t.prototype,"ticksElement",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(a,s){var o;1&a&&e.Gf(Ms,5),2&a&&e.iGM(o=e.CRH())&&(s.ticksElement=o.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:lf,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,cf,5,7,"g",1),e.qZA(),e.YNc(3,uf,2,2,"g",2)),2&a&&(e.xp6(2),e.Q6J("ngForOf",s.ticks),e.xp6(1),e.Q6J("ngForOf",s.ticks))},dependencies:[X.sg,X.O5],encapsulation:2,changeDetection:0}),t}(),Ot=function(){function t(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.padding+this.dims.height)+")",void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},t.prototype.emitTicksHeight=function(n){var a=this,s=n.height,o=s+25+5;o!==this.labelOffset&&(this.labelOffset=o,setTimeout(function(){a.dimensionsChanged.emit({height:s})},0))},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"trimTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"rotateTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"maxTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelText",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"ticks",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xAxisTickInterval",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xAxisTickCount",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"xOrient",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"xAxisOffset",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dimensionsChanged",void 0),u([(0,e.i9L)(fn,{static:!1}),d("design:type","function"==typeof(i=void 0!==fn&&fn)?i:Object)],t.prototype,"ticksComponent",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(a,s){var o;1&a&&e.Gf(fn,5),2&a&&e.iGM(o=e.CRH())&&(s.ticksComponent=o.first)},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:pf,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,hf,1,12,"g",0),e.YNc(2,gf,1,5,"g",1),e.qZA()),2&a&&(e.uIk("class",s.xAxisClassName)("transform",s.transform),e.xp6(1),e.Q6J("ngIf",s.xScale),e.xp6(1),e.Q6J("ngIf",s.showLabel))},dependencies:[X.O5,go,fn],encapsulation:2,changeDetection:0}),t}();function ei(t,i,n,a,s,o){var r=o[0],l=o[1],c=o[2],p=o[3],h="";return h="M"+[t+s,i],h+="h"+((n=0===(n=Math.floor(n))?1:n)-2*s),h+=l?"a"+[s,s]+" 0 0 1 "+[s,s]:"h"+s+"v"+s,h+="v"+((a=0===(a=Math.floor(a))?1:a)-2*s),h+=p?"a"+[s,s]+" 0 0 1 "+[-s,s]:"v"+s+"h"+-s,h+="h"+(2*s-n),h+=c?"a"+[s,s]+" 0 0 1 "+[-s,-s]:"h"+-s+"v"+-s,h+="v"+(2*s-a),(h+=r?"a"+[s,s]+" 0 0 1 "+[s,-s]:"v"+-s+"h"+s)+"z"}var yo,mn=function(){function t(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.ngAfterViewInit=function(){var n=this;setTimeout(function(){return n.updateDims()})},t.prototype.updateDims=function(){var n=this,a=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);a!==this.width&&(this.width=a,this.dimensionsChanged.emit({width:a}),setTimeout(function(){return n.updateDims()}))},t.prototype.update=function(){var a,n=this,s="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,a=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:a.tickFormat?a.tickFormat.apply(a,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleStr
1ing()},this.adjustedScale=a.bandwidth?function(o){return a(o)+.5*a.bandwidth()}:a,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(o){return"translate("+this.adjustedScale(o)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*s,this.y1=this.tickSpacing*s,this.dy=s<0?"0em":".71em";break;case"left":this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-s,this.x1=this.tickSpacing*-s,this.dy=".32em";break;case"right":this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-s,this.x1=this.tickSpacing*-s,this.dy=".32em"}setTimeout(function(){return n.updateDims()})},t.prototype.setReferencelines=function(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(n){return n.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(n){return n.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=ei(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])},t.prototype.getTicks=function(){var a=this.getMaxTicks(20),s=this.getMaxTicks(50);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[s]):Us(this.scale.domain(),a)},t.prototype.getMaxTicks=function(n){return Math.floor(this.height/n)},t.prototype.tickTransform=function(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"},t.prototype.gridLineTransform=function(){return"translate(5,0)"},t.prototype.tickTrim=function(n){return this.trimTicks?ui(n,this.maxTickLength):n},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickArguments",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"tickValues",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickStroke",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"trimTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"maxTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"gridLineWidth",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"referenceLines",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showRefLabels",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showRefLines",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dimensionsChanged",void 0),u([(0,e.i9L)("ticksel",{static:!1}),d("design:type","function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object)],t.prototype,"ticksElement",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(a,s){var o;1&a&&e.Gf(Ms,5),2&a&&e.iGM(o=e.CRH())&&(s.ticksElement=o.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:ff,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,mf,5,9,"g",1),e.qZA(),e.YNc(3,vf,1,2,"path",2),e.YNc(4,bf,2,2,"g",3),e.YNc(5,Cf,2,1,"g",3)),2&a&&(e.xp6(2),e.Q6J("ngForOf",s.ticks),e.xp6(1),e.Q6J("ngIf",s.referenceLineLength>1&&s.refMax&&s.refMin&&s.showRefLines),e.xp6(1),e.Q6J("ngForOf",s.ticks),e.xp6(1),e.Q6J("ngForOf",s.referenceLines))},dependencies:[X.sg,X.O5],encapsulation:2,changeDetection:0}),t}(),kt=function(){function t(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform="translate("+(this.offset+this.dims.width)+" , 0)"):(this.offset=this.offset,this.transform="translate("+this.offset+" , 0)"),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])},t.prototype.emitTicksWidth=function(n){var a=this,s=n.width;s!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=s+this.labelOffset,setTimeout(function(){a.dimensionsChanged.emit({width:s})},0)):s!==this.labelOffset&&(this.labelOffset=s,setTimeout(function(){a.dimensionsChanged.emit({width:s})},0))},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"trimTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"maxTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"ticks",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelText",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yAxisTickInterval",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yAxisTickCount",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"yOrient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"referenceLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showRefLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showRefLabels",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"yAxisOffset",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dimensionsChanged",void 0),u([(0,e.i9L)(mn,{static:!1}),d("design:type","function"==typeof(i=void 0!==mn&&mn)?i:Object)],t.prototype,"ticksComponent",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(a,s){var o;1&a&&e.Gf(mn,5),2&a&&e.iGM(o=e.CRH())&&(s.ticksComponent=o.first)},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:kf,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Af,1,14,"g",0),e.YNc(2,Sf,1,5,"g",1),e.qZA()),2&a&&(e.uIk("class",s.yAxisClassName)("transform",s.transform),e.xp6(1),e.Q6J("ngIf",s.yScale),e.xp6(1),e.Q6J("ngIf",s.showLabel))},dependencies:[X.O5,go,mn],encapsulation:2,changeDetection:0}),t}(),$s=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[X.ez]}),t}(),Je=function(){function t(i,n,a,s){"string"==typeof i&&(i=Js.find(function(o){return o.name===i})),this.colorDomain=i.domain,this.scaleType=n,this.domain=a,this.customColors=s,this.scale=this.generateColorScheme(i,n,this.domain)}return t.prototype.generateColorScheme=function(i,n,a){var s;if("string"==typeof i&&(i=Js.find(function(l){return l.name===i})),"quantile"===n)s=Uo().range(i.domain).domain(a);else if("ordinal"===n)s=sa().range(i.domain).domain(a);else if("linear"===n){var o=i.domain.slice();1===o.length&&(o.push(o[0]),this.colorDomain=o);var r=oa(0,1,1/o.length);s=Ze().domain(r).range(o)}return s},t.prototype.getColor=function(i){if(null==i)throw new Error("Value can not be null");if("linear"===this.scaleType){var n=Ze().domain(this.domain).range([0,1]);return this.scale(n(i))}if("function"==typeof this.customColors)return this.customColors(i);var a=i.toString(),s=void 0;return this.customColors&&this.customColors.length>0&&(s=this.customColors.find(function(o){return o.name.toLowerCase()===a.toLowerCase()})),s?s.value:this.scale(i)},t.prototype.getLinearGradientStops=function(i,n){void 0===n&&(n=this.domain[0]);var a=Ze().domain(this.domain).range([0,1]),s=ht().domain(this.colorDomain).range([0,1]),o=this.getColor(i),r=a(n),l=this.getColor(n),c=a(i),p=1,h=r,g=[];for(g.push({color:l,offset:r,originalOffset:r,opacity:1});h<c&&p<this.colorDomain.length;){var f=this.colorDomain[p],m=s(f);if(m<=r)p++;else{if(m.toFixed(4)>=(c-s.bandwidth()).toFixed(4))break;g.push({color:f,offset:m,opacity:1}),h=m,p++}}if(g[g.length-1].offset<100&&g.push({color:o,offset:c,opacity:1}),c===r)g[0].offset=0,g[1].offset=100;else if(100!==g[g.length-1].offset)for(var x=0,y=g;x<y.length;x++){var _=y[x];_.offset=(_.offset-r)/(c-r)*100}return g},t}(),vn=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.barVisible=!1}var i,n;return t.prototype.ngOnInit=function(){this.gradientId="grad"+Ct().toString(),this.gradientFill="url(#"+this.gradientId+")"},t.prototype.ngOnChanges=function(a){this.update()},t.prototype.update=function(){this.circle=this.getActiveCircle()},t.prototype.getActiveCircle=function(){var a=this,s=this.data.series.findIndex(function(o){var r=o.name;return r&&a.visibleValue&&r.toString()===a.visibleValue.toString()&&void 0!==o.value});if(-1!==s)return this.mapDataPointToCircle(this.data.series[s],s)}
1,t.prototype.mapDataPointToCircle=function(a,s){var p,o=this.data.name,r=a.value,l=a.name,c=gt(l);p=this.xScale("time"===this.scaleType?l:"linear"===this.scaleType?Number(l):l);var x,h=this.yScale("standard"===this.type?r:a.d1),f=this.yScale.range()[0]-h;return x=this.colors.getColor("linear"===this.colors.scaleType?"standard"===this.type?r:a.d1:o),{classNames:["circle-data-"+s],value:r,label:l,data:Object.assign({},a,{series:o,value:r,name:l}),cx:p,cy:h,radius:5,height:f,tooltipLabel:c,color:x,opacity:1,seriesName:o,gradientStops:this.getGradientStops(x),min:a.min,max:a.max}},t.prototype.getTooltipText=function(a){var s=a.tooltipLabel,o=a.value,l=a.min,c=a.max;return'\n      <span class="tooltip-label">'+lt(a.seriesName)+" \u2022 "+lt(s)+'</span>\n      <span class="tooltip-val">'+o.toLocaleString()+this.getTooltipMinMaxText(l,c)+"</span>\n    "},t.prototype.getTooltipMinMaxText=function(a,s){if(void 0!==a||void 0!==s){var o=" (";return void 0!==a?(void 0===s&&(o+="\u2265"),o+=a.toLocaleString(),void 0!==s&&(o+=" - ")):void 0!==s&&(o+="\u2264"),void 0!==s&&(o+=s.toLocaleString()),o+")"}return""},t.prototype.getGradientStops=function(a){return[{offset:0,color:a,opacity:.2},{offset:100,color:a,opacity:1}]},t.prototype.onClick=function(a){this.select.emit(a)},t.prototype.isActive=function(a){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(o){return a.name===o.name})},t.prototype.activateCircle=function(){this.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"type",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==Je&&Je)?i:Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"visibleValue",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(n=void 0!==e.Rgc&&e.Rgc)?n:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:If,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(s,o){1&s&&e.YNc(0,Df,5,20,"g",0),2&s&&e.Q6J("ngIf",o.circle)},dependencies:function(){return[X.O5,jt,Kn,Ii]},encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":enter",[(0,P.oB)({opacity:0}),(0,P.jt)(250,(0,P.oB)({opacity:1}))])])]},changeDetection:0}),t}(),Kn=function(){function t(){this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}return t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.ngOnChanges=function(i){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"cx",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"cy",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"r",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"stroke",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"classNames",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"circleOpacity",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"pointerEvents",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.L6J)("click"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onClick",null),u([(0,e.L6J)("mouseenter"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(n,a){1&n&&e.NdJ("click",function(){return a.onClick()})("mouseenter",function(){return a.onMouseEnter()})("mouseleave",function(){return a.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:Bf,decls:1,vars:8,template:function(n,a){1&n&&(e.O4$(),e._UZ(0,"circle")),2&n&&e.uIk("cx",a.cx)("cy",a.cy)("r",a.r)("fill",a.fill)("stroke",a.stroke)("opacity",a.circleOpacity)("class",a.classNames)("pointer-events",a.pointerEvents)},encapsulation:2,changeDetection:0}),t}(),Qs=function(){function t(){}return u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"path",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"x",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"y",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:Mf,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,a){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",a.height)("width",a.width)("x",a.x)("y",a.y)},encapsulation:2,changeDetection:0}),t}(),fo=function(){function t(){}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){this.gridPanels=this.getGridPanels()},t.prototype.getGridPanels=function(){var i=this;return this.data.map(function(n){var a,s,o,r,l,c="odd";if("vertical"===i.orient){var p=i.xScale(n.name);Number.parseInt((p/i.xScale.step()).toString(),10)%2==1&&(c="even"),a=i.xScale.bandwidth()*i.xScale.paddingInner(),s=i.xScale.bandwidth()+a,o=i.dims.height,r=i.xScale(n.name)-a/2,l=0}else"horizontal"===i.orient&&(p=i.yScale(n.name),Number.parseInt((p/i.yScale.step()).toString(),10)%2==1&&(c="even"),a=i.yScale.bandwidth()*i.yScale.paddingInner(),s=i.dims.width,o=i.yScale.bandwidth()+a,r=0,l=i.yScale(n.name)-a/2);return{name:n.name,class:c,height:o,width:s,x:r,y:l}})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orient",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:Ff,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]
1],template:function(n,a){1&n&&e.YNc(0,Ef,1,10,"g",0),2&n&&e.Q6J("ngForOf",a.gridPanels)},dependencies:[X.sg,Qs],encapsulation:2,changeDetection:0}),t}(),Ii=function(){function t(){this.orientation="vertical"}return t.prototype.ngOnChanges=function(i){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orientation",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"name",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"stops",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:jf,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,a){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,Nf,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",a.name),e.uIk("x1",a.x1)("y1",a.y1)("x2",a.x2)("y2",a.y2),e.xp6(1),e.Q6J("ngForOf",a.stops))},dependencies:[X.sg],encapsulation:2,changeDetection:0}),t}(),mo=function(){function t(){this.endOpacity=1,this.cx=0,this.cy=0}return Object.defineProperty(t.prototype,"stops",{get:function(){return this.stopsInput||this.stopsDefault},set:function(n){this.stopsInput=n},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(i){this.r="30%",("color"in i||"startOpacity"in i||"endOpacity"in i)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])},u([(0,e.IIB)(),d("design:type",String)],t.prototype,"color",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"name",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"startOpacity",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"endOpacity",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"cx",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"cy",void 0),u([(0,e.IIB)(),d("design:type",Array),d("design:paramtypes",[Array])],t.prototype,"stops",null),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[e.TTD],attrs:Pf,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,a){1&n&&(e.O4$(),e.TgZ(0,"radialGradient",0),e.YNc(1,Hf,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",a.name),e.uIk("cx",a.cx)("cy",a.cy)("r",a.r),e.xp6(1),e.Q6J("ngForOf",a.stops))},dependencies:[X.sg],encapsulation:2,changeDetection:0}),t}(),yn=function(){function t(a,s){this.cd=s,this.height=50,this.select=new e.vpe,this.onDomainChange=new e.vpe,this.initialized=!1,this.element=a.nativeElement}var i,n;return t.prototype.ngOnChanges=function(a){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)},t.prototype.update=function(){this.dims=this.getDims(),this.height=this.dims.height;var a=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform="translate(0 , "+a+")",this.filterId="filter"+Ct().toString(),this.filter="url(#"+this.filterId+")",this.cd.markForCheck()},t.prototype.getXDomain=function(){for(var a=[],s=0,o=this.results;s<o.length;s++)for(var l=0,c=o[s].series;l<c.length;l++){var p=c[l];a.includes(p.name)||a.push(p.name)}var h=[];return"time"===this.scaleType?h=[Math.min.apply(Math,a),Math.max.apply(Math,a)]:"linear"===this.scaleType?(a=a.map(function(y){return Number(y)}),h=[Math.min.apply(Math,a),Math.max.apply(Math,a)]):h=a,h},t.prototype.getXScale=function(){var a;return"time"===this.scaleType?a=bi().range([0,this.dims.width]).domain(this.xDomain):"linear"===this.scaleType?a=Ze().range([0,this.dims.width]).domain(this.xDomain):"ordinal"===this.scaleType&&(a=vi().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),a},t.prototype.addBrush=function(){var a=this;if(!this.brush){var s=this.height,o=this.view[0];this.brush=function kh(){return function Va(t){var l,i=Th,n=bh,a=wh,s=!0,o=ka("start","brush","end"),r=6;function c(_){var A=_.property("__brush",y).selectAll(".overlay").data([cn("overlay")]);A.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Kt.overlay).merge(A).each(function(){var O=Qa(this).extent;pt(this).attr("x",O[0][0]).attr("y",O[0][1]).attr("width",O[1][0]-O[0][0]).attr("height",O[1][1]-O[0][1])}),_.selectAll(".selection").data([cn("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Kt.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var B=_.selectAll(".handle").data(t.handles,function(O){return O.type});B.exit().remove(),B.enter().append("rect").attr("class",function(O){return"handle handle--"+O.type}).attr("cursor",function(O){return Kt[O.type]}),_.each(p).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(a).on("touchstart.brush",f).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){var _=pt(this),A=Qa(this).selection;A?(_.selectAll(".selection").style("display",null).attr("x",A[0][0]).attr("y",A[0][1]).attr("width",A[1][0]-A[0][0]).attr("height",A[1][1]-A[0][1]),_.selectAll(".handle").style("display",null).attr("x",function(B){return"e"===B.type[B.type.length-1]?A[1][0]-r/2:A[0][0]-r/2}).attr("y",function(B){return"s"===B.type[0]?A[1][1]-r/2:A[0][1]-r/2}).attr("width",function(B){return"n"===B.type||"s"===B.type?A[1][0]-A[0][0]+r:r}).attr("height",function(B){return"e"===B.type||"w"===B.type?A[1][1]-A[0][1]+r:r})):_.selectAll(".selection,.handle").style("display","none").attr("x",
1null).attr("y",null).attr("width",null).attr("height",null)}function h(_,A,B){var O=_.__brush.emitter;return!O||B&&O.clean?new g(_,A,B):O}function g(_,A,B){this.that=_,this.args=A,this.state=_.__brush,this.active=0,this.clean=B}function f(){if((!l||Fe.touches)&&n.apply(this,arguments)){var $,he,Q,le,Me,Ee,ze,je,ti,vt,$t,_=this,A=Fe.target.__data__.type,B="selection"===(s&&Fe.metaKey?A="overlay":A)?cs:s&&Fe.altKey?Gi:Ri,O=t===Jn?null:xh[A],M=t===Xn?null:_h[A],ee=Qa(_),ne=ee.extent,Y=ee.selection,pe=ne[0][0],se=ne[0][1],Qe=ne[1][0],tt=ne[1][1],Ue=0,$e=0,Ut=O&&M&&s&&Fe.shiftKey,hi=Fe.touches?vh(Fe.changedTouches[0].identifier):ep,zt=hi(_),Rt=zt,ge=h(_,arguments,!0).beforestart();"overlay"===A?(Y&&(ti=!0),ee.selection=Y=[[$=t===Jn?pe:zt[0],Q=t===Xn?se:zt[1]],[Me=t===Jn?Qe:$,ze=t===Xn?tt:Q]]):($=Y[0][0],Q=Y[0][1],Me=Y[1][0],ze=Y[1][1]),he=$,le=Q,Ee=Me,je=ze;var Se=pt(_).attr("pointer-events","none"),we=Se.selectAll(".overlay").attr("cursor",Kt[A]);if(Fe.touches)ge.moved=ft,ge.ended=yt;else{var K=pt(Fe.view).on("mousemove.brush",ft,!0).on("mouseup.brush",yt,!0);s&&K.on("keydown.brush",At,!0).on("keyup.brush",ii,!0),Vu(Fe.view)}ls(),Ea(_),p.call(_),ge.start()}function ft(){var St=hi(_);Ut&&!vt&&!$t&&(Math.abs(St[0]-Rt[0])>Math.abs(St[1]-Rt[1])?$t=!0:vt=!0),Rt=St,ti=!0,Wa(),Ne()}function Ne(){var St;switch(Ue=Rt[0]-zt[0],$e=Rt[1]-zt[1],B){case Ua:case cs:O&&(Ue=Math.max(pe-$,Math.min(Qe-Me,Ue)),he=$+Ue,Ee=Me+Ue),M&&($e=Math.max(se-Q,Math.min(tt-ze,$e)),le=Q+$e,je=ze+$e);break;case Ri:O<0?(Ue=Math.max(pe-$,Math.min(Qe-$,Ue)),he=$+Ue,Ee=Me):O>0&&(Ue=Math.max(pe-Me,Math.min(Qe-Me,Ue)),he=$,Ee=Me+Ue),M<0?($e=Math.max(se-Q,Math.min(tt-Q,$e)),le=Q+$e,je=ze):M>0&&($e=Math.max(se-ze,Math.min(tt-ze,$e)),le=Q,je=ze+$e);break;case Gi:O&&(he=Math.max(pe,Math.min(Qe,$-Ue*O)),Ee=Math.max(pe,Math.min(Qe,Me+Ue*O))),M&&(le=Math.max(se,Math.min(tt,Q-$e*M)),je=Math.max(se,Math.min(tt,ze+$e*M)))}Ee<he&&(O*=-1,St=$,$=Me,Me=St,St=he,he=Ee,Ee=St,A in us&&we.attr("cursor",Kt[A=us[A]])),je<le&&(M*=-1,St=Q,Q=ze,ze=St,St=le,le=je,je=St,A in ps&&we.attr("cursor",Kt[A=ps[A]])),ee.selection&&(Y=ee.selection),vt&&(he=Y[0][0],Ee=Y[1][0]),$t&&(le=Y[0][1],je=Y[1][1]),(Y[0][0]!==he||Y[0][1]!==le||Y[1][0]!==Ee||Y[1][1]!==je)&&(ee.selection=[[he,le],[Ee,je]],p.call(_),ge.brush())}function yt(){if(ls(),Fe.touches){if(Fe.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else qu(Fe.view,ti),K.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Se.attr("pointer-events","all"),we.attr("cursor",Kt.overlay),ee.selection&&(Y=ee.selection),Ch(Y)&&(ee.selection=null,p.call(_)),ge.end()}function At(){switch(Fe.keyCode){case 16:Ut=O&&M;break;case 18:B===Ri&&(O&&(Me=Ee-Ue*O,$=he+Ue*O),M&&(ze=je-$e*M,Q=le+$e*M),B=Gi,Ne());break;case 32:(B===Ri||B===Gi)&&(O<0?Me=Ee-Ue:O>0&&($=he-Ue),M<0?ze=je-$e:M>0&&(Q=le-$e),B=Ua,we.attr("cursor",Kt.selection),Ne());break;default:return}Wa()}function ii(){switch(Fe.keyCode){case 16:Ut&&(vt=$t=Ut=!1,Ne());break;case 18:B===Gi&&(O<0?Me=Ee:O>0&&($=he),M<0?ze=je:M>0&&(Q=le),B=Ri,Ne());break;case 32:B===Ua&&(Fe.altKey?(O&&(Me=Ee-Ue*O,$=he+Ue*O),M&&(ze=je-$e*M,Q=le+$e*M),B=Gi):(O<0?Me=Ee:O>0&&($=he),M<0?ze=je:M>0&&(Q=le),B=Ri),we.attr("cursor",Kt[A]),Ne());break;default:return}Wa()}}function m(){h(this,arguments).moved()}function x(){h(this,arguments).ended()}function y(){var _=this.__brush||{selection:null};return _.extent=$a(i.apply(this,arguments)),_.dim=t,_}return c.move=function(_,A){_.selection?_.on("start.brush",function(){h(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){h(this,arguments).end()}).tween("brush",function(){var B=this,O=B.__brush,M=h(B,arguments),ee=O.selection,ne=t.input("function"==typeof A?A.apply(this,arguments):A,O.extent),Y=yi(ee,ne);function pe($){O.selection=1===$&&null===ne?null:Y($),p.call(B),M.brush()}return null!==ee&&null!==ne?pe:pe(1)}):_.each(function(){var B=this,O=arguments,M=B.__brush,ee=t.input("function"==typeof A?A.apply(B,O):A,M.extent),ne=h(B,O).beforestart();Ea(B),M.selection=null===ee?null:ee,p.call(B),ne.start().brush().end()})},c.clear=function(_){c.move(_,null)},g.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit
1("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(A){!function Wu(t,i,n,a){var s=Fe;t.sourceEvent=Fe,Fe=t;try{i.apply(n,a)}finally{Fe=s}}(new mh(c,A,t.output(this.state.selection)),o.apply,o,[A,this.that,this.args])}},c.extent=function(_){return arguments.length?(i="function"==typeof _?_:Ja($a(_)),c):i},c.filter=function(_){return arguments.length?(n="function"==typeof _?_:Ja(!!_),c):n},c.touchable=function(_){return arguments.length?(a="function"==typeof _?_:Ja(!!_),c):a},c.handleSize=function(_){return arguments.length?(r=+_,c):r},c.keyModifiers=function(_){return arguments.length?(s=!!_,c):s},c.on=function(){var _=o.on.apply(o,arguments);return _===o?c:_},c}(Xn)}().extent([[0,0],[o,s]]).on("brush end",function(){var l=(Fe.selection||a.xScale.range()).map(a.xScale.invert);a.onDomainChange.emit(l),a.cd.markForCheck()}),pt(this.element).select(".brush").call(this.brush)}},t.prototype.updateBrush=function(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),pt(this.element).select(".brush").call(this.brush),pt(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())},t.prototype.getDims=function(){return{width:this.view[0],height:this.height}},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"view",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"state",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"results",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scheme",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"customColors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"miniChart",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"autoScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"height",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"onDomainChange",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object,"function"==typeof(n=void 0!==e.sBO&&e.sBO)?n:Object])],t)).\u0275fac=function(s){return new(s||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object),e.Y36("function"==typeof(n=void 0!==e.sBO&&e.sBO)?n:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",state:"state",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",miniChart:"miniChart",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[e.TTD],attrs:zf,ngContentSelectors:Bs,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(s,o){1&s&&(e.F$t(),e.O4$(),e.TgZ(0,"g",0)(1,"filter"),e._UZ(2,"feColorMatrix",1),e.qZA(),e.TgZ(3,"g",2),e.Hsn(4),e.qZA(),e._UZ(5,"rect",3)(6,"g",4),e.qZA()),2&s&&(e.uIk("transform",o.transform),e.xp6(1),e.uIk("id",o.filterId),e.xp6(4),e.uIk("width",o.view[0])("height",o.height))},styles:[".timeline .brush-background{fill:rgba(0,0,0,.05)}.timeline .brush .selection{fill:rgba(0,0,0,.1);stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}"],encapsulation:2,changeDetection:0}),t}(),vo=function(){function t(n){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.initialized=!1,this.hasGradient=!1,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Ct().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()},t.prototype.loadAnimation=function(){this.areaPath=this.startingPath,setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var n=pt(this.element).select(".area");this.animations?n.transition().duration(750).attr("d",this.path):n.attr("d",this.path)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"path",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"startingPath",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"opacity",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"startOpacity",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"endOpacity",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"activeLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"stops",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",activeLabel:"activeLabel",stops:"stops"},outputs:{select:"select"},features:[e.TTD],attrs:Rf,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(a,s){1&a&&(e.YNc(0,Gf,2,2,"defs",0),e.O4$(),e._UZ(1,"path",1)),2&a&&(e.Q6J("ngIf",s.gradient),e.xp6(1),e.Udp("opacity",s.opacity),e.uIk("d",s.areaPath)("fill",s.gradient?s.gradientFill:s.fill))},dependencies:[X.O5,Ii],encapsulation:2,changeDetection:0}),t}();"undefined"!=typeof window?yo=window:"undefined"!=typeof global&&(yo=global);var Xi=yo.MouseEvent;function xo(t,i,n){if(void 0===i&&(i=!1),void 0===n&&(n=!0),"function"==typeof Xi)return new Xi(t,{bubbles:i,cancelable:n});var a=document.createEvent("MouseEvent");return a.initEvent(t,i,n),a}var xn=function(){function t(){this.anchorOpacity=0,this.anchorPos=-1,this.anchorV
1alues=[],this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new e.vpe}var i;return t.prototype.getValues=function(n){for(var a=[],s=0,o=this.results;s<o.length;s++){var r=o[s],l=r.series.find(function(x){return x.name.toString()===n.toString()}),c=r.name;if(c instanceof Date&&(c=c.toLocaleDateString()),l){var p=l.name,h=l.value;this.showPercentage&&(h=(l.d1-l.d0).toFixed(2)+"%");var g=void 0;if("linear"===this.colors.scaleType){var f=h;l.d1&&(f=l.d1),g=this.colors.getColor(f)}else g=this.colors.getColor(r.name);var m=Object.assign({},l,{value:h,name:p,series:c,min:l.min,max:l.max,color:g});a.push(m)}}return a},t.prototype.mouseMove=function(n){var a=n.pageX-n.target.getBoundingClientRect().left,s=this.findClosestPointIndex(a),o=this.xSet[s];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){var r=xo("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(r),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}},t.prototype.findClosestPointIndex=function(n){for(var a=0,s=this.xSet.length-1,o=Number.MAX_VALUE,r=0;a<=s;){var l=(a+s)/2|0,c=this.xScale(this.xSet[l]),p=Math.abs(c-n);if(p<o&&(o=p,r=l),c<n)a=l+1;else{if(!(c>n)){o=0,r=l;break}s=l-1}}return r},t.prototype.showTooltip=function(){var n=xo("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(n)},t.prototype.hideTooltip=function(){var n=xo("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(n),this.anchorOpacity=0,this.lastAnchorPos=-1},t.prototype.getToolTipText=function(n){var a="";return a+=void 0!==n.series?n.series:"???",a+=": ",void 0!==n.value&&(a+=n.value.toLocaleString()),(void 0!==n.min||void 0!==n.max)&&(a+=" (",void 0!==n.min?(void 0===n.max&&(a+="\u2265"),a+=n.min.toLocaleString(),void 0!==n.max&&(a+=" - ")):void 0!==n.max&&(a+="\u2264"),void 0!==n.max&&(a+=n.max.toLocaleString()),a+=")"),a},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xSet",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"results",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showPercentage",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"hover",void 0),u([(0,e.i9L)("tooltipAnchor",{static:!1}),d("design:type",Object)],t.prototype,"tooltipAnchor",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(a,s){var o;1&a&&e.Gf(Yf,5),2&a&&e.iGM(o=e.CRH())&&(s.tooltipAnchor=o.first)},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:Zf,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(a,s){if(1&a&&(e.O4$(),e.TgZ(0,"g")(1,"rect",0),e.NdJ("mousemove",function(l){return s.mouseMove(l)})("mouseleave",function(){return s.hideTooltip()}),e.qZA(),e.YNc(2,Jf,2,1,"ng-template",null,1,e.W1O),e._UZ(4,"rect",2,3),e.qZA()),2&a){var o=e.MAs(3);e.xp6(1),e.uIk("x",0)("width",s.dims.width)("height",s.dims.height),e.xp6(3),e.Udp("opacity",s.anchorOpacity)("pointer-events","none"),e.Q6J("@animationState",0!==s.anchorOpacity?"active":"inactive")("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement","right")("tooltipType","tooltip")("tooltipSpacing",15)("tooltipTemplate",s.tooltipTemplate?s.tooltipTemplate:o)("tooltipContext",s.anchorV
1alues)("tooltipImmediateExit",!0),e.uIk("x",s.anchorPos)("width",1)("height",s.dims.height)}},dependencies:[X.sg,jt],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)("inactive => active",[(0,P.oB)({opacity:0}),(0,P.jt)(250,(0,P.oB)({opacity:.7}))]),(0,P.eR)("active => inactive",[(0,P.oB)({opacity:.7}),(0,P.jt)(250,(0,P.oB)({opacity:0}))])])]},changeDetection:0}),t}();function Vs(t,i,n,a){return n*(1-Math.pow(2,-10*t/a))*1024/1023+i}function qs(t,i,n,a,s){var g,o=Number(t),r=Number(i),l=o>r,c=Math.max(0,n),p=Math.pow(10,c),h=1e3*Number(a);function f(m){var x,y=m-g;x=l?o-Vs(y,0,o-r,h):Vs(y,o,r-o,h),x=l?x<r?r:x:x>r?r:x,x=Math.round(x*p)/p;var _=y<h;if(s({value:x,progress:y,timestamp:m,finished:!_}),_)return requestAnimationFrame(function(A){return f(A)})}return requestAnimationFrame(function(m){return g=m,f(m)})}function Ks(t){var i=Number(t);return i%1!=0&&Math.abs(i)<=10?2:0}var ea=function(){function t(a,s){this.cd=a,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new e.vpe,this.countFinish=new e.vpe,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=s.nativeElement}var i,n;return Object.defineProperty(t.prototype,"countDecimals",{get:function(){return this._countDecimals?this._countDecimals:Ks(this.countTo)},set:function(s){this._countDecimals=s},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countTo",{get:function(){return this._countTo},set:function(s){this._countTo=parseFloat(s),this.start()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"countFrom",{get:function(){return this._countFrom},set:function(s){this._countFrom=parseFloat(s),this.start()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.start=function(){var a=this;cancelAnimationFrame(this.animationReq);var s=this.valueFormatting||function(r){return""+a.countPrefix+r.toLocaleString()+a.countSuffix};this.animationReq=qs(this.countFrom,this.countTo,this.countDecimals,this.countDuration,function(l){var p=l.progress,h=l.finished;a.value=s(l.value),a.cd.markForCheck(),h||a.countChange.emit({value:a.value,progress:p}),h&&a.countFinish.emit({value:a.value,progress:p})})},u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"countDuration",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"countPrefix",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"countSuffix",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Number),d("design:paramtypes",[Number])],t.prototype,"countDecimals",null),u([(0,e.IIB)(),d("design:type",Object),d("design:paramtypes",[Object])],t.prototype,"countTo",null),u([(0,e.IIB)(),d("design:type",Object),d("design:paramtypes",[Object])],t.prototype,"countFrom",null),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"countChange",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"countFinish",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.sBO&&e.sBO)?i:Object,"function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object])],t)).\u0275fac=function(s){return new(s||t)(e.Y36("function"==typeof(i=void 0!==e.sBO&&e.sBO)?i:Object),e.Y36("function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["","ngx-charts-count-up",""]],inputs:{countDuration:"countDuration",countPrefix:"countPrefix",countSuffix:"countSuffix",countDecimals:"countDecimals",countTo:"countTo",countFrom:"countFrom",valueFormatting:"valueFormatting"},outputs:{countChange:"countChange",countFinish:"countFinish"},attrs:Wf,decls:1,vars:1,template:function(s,o){1&s&&e._uU(0),2&s&&e.Oqu(o.value)},encapsulation:2}),t}(),Nt=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[X.ez,$s,zs,X.ez,$s,zs]}),t}();function it(t){var se,a=t.margins,s=t.showXAxis,r=t.showYAxis,c=t.xAxisHeight,h=t.yAxisWidth,g=void 0===h?0:h,f=t.showXLabel,x=t.showYLabel,_=t.showLegend,B=t.legendType,M=t.legendPosition,ne=t.columns,Y=void 0===ne?12:ne,pe=a[3],$=t.width,he=t.height-a[0]-a[2];return void 0!==_&&_&&"right"===(void 0===M?"right":M)&&(Y-="ordinal"===(void 0===B?"ordinal":B)?2:1),$=($=$*Y/12)-a[1]-a[3],void 0!==s&&s&&(he-=5,he-=void 0===c?0:c,void 0!==f&&f)&&(he-=se=30),void 0!==r&&r&&($-=5,$-=g,pe+=g,pe+=10,void 0!==x&&x)&&($-=se=30,pe+=se),$=Math.max(0,$),he=Math.max(0,he),{width:Math.floor($),height:Math.floor(he),xOffset:Math.floor(pe)}}function ta(t){for(var i=new Set,n=0,a=t;n<a.length;n++)for(var o=0,r=a[n].series;o<r.length;o++)i.add(r[o].name);return Array.from(i)}function pi(t,i){return void 0===i&&(i=!0),i&&t.every(function(s){return s instanceof Date})?"time":t.every(function(s){return"number"==typeof s})?"linear":"ordinal"}(function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r.legendTitle="Legend",r.legendPosition="right",r.baseValue="auto",r.showGridLines=!0,r.curve=ki,r.activeEntries=[],r.trimXAxisTicks=!0,r.trimYAxisTicks=!0,r.rotateXAxisTicks=!0,r.maxXAxisTickLength=16,r.maxYAxisTickLength=16,r.roundDomains=!1,r.tooltipDisabled=!1,r.activate=new e.vpe,r.deactivate=new e.vpe,r.margin=[10,20,10,20],r.xAxisHeight=0,r.yAxisWidth=0,r.timelineHeight=50,r.timelinePadding=10,r}var n,a,s,o;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.clipPathId="clip"+Ct().toString(),this.clipPath="url(#"+this.clipPathId+")"},i.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},i.prototype.getXDomain=function(){var r=ta(this.results);this.scaleType=pi(r);var c,p,l=[];return"linear"===this.scaleType&&(r=r.map(function(h){return Number(h)})),("time"===this.scaleType||"linear"===this.scaleType)&&(c=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,r),p=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,r)),"time"===this.scaleType?(l=[new Date(c),new Date(p)],this.xSet=r.slice().sort(function(h,g){var f=h.getTime(),m=g.getTime();return f>m?1:m>f?-1:0})):"linear"===this.scaleType?(l=[c,p],this.xSet=r.slice().sort(function(h,g){return h-g})):(l=r,this.xSet=r),l},i.prototype.getYDomain=function(){for(var r=[],l=0,c=this.results;l<c.length;l++)for(var h=0,g=c[l].series;h<g.length;h++){var f=g[h];r.includes(f.value)||r.push(f.value)}var m=r.slice();return this.autoScale||m.push(0),"auto"!==this.baseValue&&m.push(this.baseValue),[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,m),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,m)]},i.prototype.getSeriesDomain=function(){return this.results.map(function(r){return r.name})},i.prototype.getXScale=function(r,l){var c;return"time"===this.scaleType?c=bi():"linear"===this.scaleType?c=Ze():"ordinal"===this.scaleType&&(c=vi().padding(.1)),c.range([0,l]).domain(r),this.roundDomains?c.nice():c},i.prototype.getYScale=function(r,l){var c=Ze().range([l,0]).domain(r);return this.roundDomains?c.nice():c},i.prototype.getScaleType=function(r){for(var l=!0,c=!0,p=0,h=r;p<h.length;p++){var g=h[p];this.isDate(g)||(l=!1),"number"!=typeof g&&(c=!1)}return l?"time":c?"linear":"ordinal"},i.prototype.isDate=function(r){return r instanceof Date},i.prototype.updateDomain=function(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},i.prototype.updateHoveredVertical=function(r){this.hoveredVertical=r.value,this.deactivateAll()},i.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},i.prototype.onClick=function(r,l){l&&(r.series=l.name),this.select.emit(r)},i.prototype.trackBy=function(r,l){return l.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.customColors)},i.prototype.getLegendOptions=function(){var r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===r.scaleType?(r.domain=this.seriesDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r},i.prototype.updateYAxisWidth=function(r){this.yAxisWidth=r.width,this.update()},i.prototype.updateXAxisHeight=function(r){this.xAxisHeight=r.height,this.update()},i.prototype.onActivate=function(r){this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value})>-1||(this.activeEntries=[r].concat(this.activeEntries),this.activate.emit({value:r,entries:this.activeEntries}))},i.prototype.onDeactivate=function(r){var l=this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:r,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var r=0,l=this.activeEntries;r<l.length;r++)this.deactivate.emit({value:l[r],entries:[]});this.activeEntries=[]},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"state",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"baseValue",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"autoScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"timeline",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.aQ5)("seriesTooltipTemplate",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.Rgc&&e.Rgc)?o:Object)],i.prototype,"seriesTooltipTemplate",void 0),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"hideCircles",null),i.\u0275fac=function(){var r;return function(c){return(r||(r=e.n5z(i)))(c||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-area-chart"]],contentQueries:function(l,c,p){var h;1&l&&(e.Suo(p,st,5),e.Suo(p,qn,5)),2&l&&(e.iGM(h=e.CRH())&&(c.tooltipTemplate=h.first),e.iGM(h=e.CRH())&&(c.seriesTooltipTemplate=h.first))},hostBindings:function(l,c){1&l&&e.NdJ("mouseleave",function(){return c.hideCircles()})},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",state:"state",xAxis:"xAxis",yAxis:"yAxis",baseValue:"baseValue",autoScale:"autoScale",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",sc
1hemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","activeEntries","scaleType","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","scaleType","gradient","curve","animations"]],template:function(l,c){1&l&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(h){return c.onClick(h)})("legendLabelActivate",function(h){return c.onActivate(h)})("legendLabelDeactivate",function(h){return c.onDeactivate(h)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,Uf,1,10,"g",2),e.YNc(6,$f,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,Qf,2,10,"g",4),e.YNc(9,qf,3,9,"g",5),e.qZA()(),e.YNc(10,em,2,13,"g",6),e.qZA()),2&l&&(e.Q6J("view",e.WLB(17,Xe,c.width,c.height))("showLegend",c.legend)("legendOptions",c.legendOptions)("activeEntries",c.activeEntries)("animations",c.animations),e.xp6(2),e.uIk("id",c.clipPathId),e.xp6(1),e.uIk("width",c.dims.width+10)("height",c.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",c.transform),e.xp6(1),e.Q6J("ngIf",c.xAxis),e.xp6(1),e.Q6J("ngIf",c.yAxis),e.xp6(1),e.uIk("clip-path",c.clipPath),e.xp6(1),e.Q6J("ngForOf",c.results)("ngForTrackBy",c.trackBy),e.xp6(1),e.Q6J("ngIf",!c.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",c.timeline&&"ordinal"!=c.scaleType))},dependencies:function(){return[X.sg,X.O5,Ot,kt,xn,We,vn,yn,_o]},styles:[ot],encapsulation:2,changeDetection:0})})(et),function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r.legend=!1,r.legendTitle="Legend",r.legendPosition="right",r.showGridLines=!0,r.curve=ki,r.activeEntries=[],r.trimXAxisTicks=!0,r.trimYAxisTicks=!0,r.rotateXAxisTicks=!0,r.maxXAxisTickLength=16,r.maxYAxisTickLength=16,r.roundDomains=!1,r.tooltipDisabled=!1,r.activate=new e.vpe,r.deactivate=new e.vpe,r.margin=[10,20,10,20],r.xAxisHeight=0,r.yAxisWidth=0,r.timelineHeight=50,r.timelinePadding=10,r}var n,a,s,o;qe(i,t),i.prototype.update=function(){var r=this;t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var l=function(g){for(var f=c.xSet[g],m=0,x=0,y=0,_=c.results;y<_.length;y++)(B=(A=_[y]).series.find(function(ee){var ne=ee.name,Y=f;return"time"===r.scaleType&&(ne=ne.valueOf(),Y=Y.valueOf()),ne===Y}))&&(x+=B.value);for(var O=0,M=c.results;O<M.length;O++){var A,B;(B=(A=M[O]).series.find(function(Y){var pe=Y.name,$=f;return"time"===r.scaleType&&(pe=pe.valueOf(),$=$.valueOf()),pe===$}))?(B.d0=m,B.d1=m+B.value,m+=B.value):A.series.push(B={name:f,value:0,d0:m,d1:m}),x>0?(B.d0=100*B.d0/x,B.d1=100*B.d1/x):(B.d0=0,B.d1=0)}},c=this,p=0;p<this.xSet.length;p++)l(p);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Ct().toString(),this.clipPath="url(#"+this.clipPathId+")"},i.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},i.prototype.getXDomain=function(){var r=ta(this.results);this.scaleType=pi(r);var l=[];if("time"===this.scaleType){var c=Math.min.apply(Math,r),p=Math.max.apply(Math,r);l=[new Date(c),new Date(p)],this.xSet=r.slice().sort(function(h,g){var f=h.getTime(),m=g.getTime();return f>m?1:m>f?-1:0})}else"linear"===this.scaleType?(r=r.map(function(f){return Number(f)}),l=[c=Math.min.apply(Math,r),p=Math.max.apply(Math,r)],this.xSet=r.slice().sort(function(f,m){return f-m})):(l=r,this.xSet=r);return l},i.prototype.getYDomain=function(){return[0,100]},i.prototype.getSeriesDomain=function(){return this.results.map(function(r){return r.name})},i.prototype.getXScale=function(r,l){var c;return"time"===this.scaleType?c=bi():"linear"===this.scaleType?c=Ze():"ordinal"===this.scaleType&&(c=vi().padding(.1)),c.range([0,l]).domain(r),this.roundDomains?c.nice():c},i.prototype.getYScale=function(r,l){var c=Ze().range([l,0]).domain(r);return this.roundDomains?c.nice():c},i.prototype.updateDomain=function(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},i.prototype.updateHoveredVertical=function(r){this.hoveredVertical=r.value,this.deactivateAll()},i.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},i.prototype.onClick=function(r,l){l&&(r.series=l.name),this.select.emit(r)},i.prototype.trackBy=function(r,l){return l.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.customColors)},i.prototype.getLegendOptions=function(){var r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===r.scaleType?(r.domain=this.seriesDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r},i.prototype.updateYAxisWidth=function(r){this.yAxisWidth=r.width,this.update()},i.prototype.updateXAxisHeight=function(r){this.xAxisHeight=r.height,this.update()},i.prototype.onActivate=function(r){this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value})>-1||(this.activeEntries=[r].concat(this.activeEntries),this.activate.emit({value:r,entries:this.activeEntries}))},i.prototype.onDeactivate=function(r){var l=this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:r,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var r=0,l=this.activeEntries;r<l.length;r++)this.deactivate.emit({value:l[r],entries:[]});this.activeEntries=[]},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"timeline",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.aQ5)("seriesTooltipTemplate",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.Rgc&&e.Rgc)?o:Object)],i.prototype,"seriesTooltipTemplate",void 0),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"hideCircles",null),i.\u0275fac=function(){var r;return function(c){return(r||(r=e.n5z(i)))(c||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-area-chart-normalized"]],contentQueries:function(l,c,p){var h;1&l&&(e.Suo(p,st,5),e.Suo(p,qn,5)),2&l&&(e.iGM(h=e.CRH())&&(c.tooltipTemplate=h.first),e.iGM(h=e.CRH())&&(c.seriesTooltipTemplate=h.first))},hostBindings:function(l,c){1&l&&e.NdJ("mouseleave",function(){return c.hideCircles()})},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",sc
1hemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","activeEntries","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","showPercentage","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","normalized","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(l,c){1&l&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(h){return c.onClick(h)})("legendLabelActivate",function(h){return c.onActivate(h)})("legendLabelDeactivate",function(h){return c.onDeactivate(h)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,tm,1,10,"g",2),e.YNc(6,im,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,nm,2,9,"g",4),e.YNc(9,om,3,10,"g",5),e.qZA()(),e.YNc(10,sm,2,13,"g",6),e.qZA()),2&l&&(e.Q6J("view",e.WLB(17,Xe,c.width,c.height))("showLegend",c.legend)("legendOptions",c.legendOptions)("activeEntries",c.activeEntries)("animations",c.animations),e.xp6(2),e.uIk("id",c.clipPathId),e.xp6(1),e.uIk("width",c.dims.width+10)("height",c.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",c.transform),e.xp6(1),e.Q6J("ngIf",c.xAxis),e.xp6(1),e.Q6J("ngIf",c.yAxis),e.xp6(1),e.uIk("clip-path",c.clipPath),e.xp6(1),e.Q6J("ngForOf",c.results)("ngForTrackBy",c.trackBy),e.xp6(1),e.Q6J("ngIf",!c.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",c.timeline&&"ordinal"!=c.scaleType))},dependencies:function(){return[X.sg,X.O5,Ot,kt,xn,We,vn,yn,_o]},styles:[ot],encapsulation:2,changeDetection:0})}(et),function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r.legend=!1,r.legendTitle="Legend",r.legendPosition="right",r.showGridLines=!0,r.curve=ki,r.activeEntries=[],r.trimXAxisTicks=!0,r.trimYAxisTicks=!0,r.rotateXAxisTicks=!0,r.maxXAxisTickLength=16,r.maxYAxisTickLength=16,r.roundDomains=!1,r.tooltipDisabled=!1,r.activate=new e.vpe,r.deactivate=new e.vpe,r.margin=[10,20,10,20],r.xAxisHeight=0,r.yAxisWidth=0,r.timelineHeight=50,r.timelinePadding=10,r}var n,a,s,o;qe(i,t),i.prototype.update=function(){var r=this;t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height);for(var l=function(g){for(var f=c.xSet[g],m=0,x=0,y=c.results;x<y.length;x++){var _=y[x],A=_.series.find(function(B){var O=B.name,M=f;return"time"===r.scaleType&&(O=O.valueOf(),M=M.valueOf()),O===M});A?(A.d0=m,A.d1=m+A.value,m+=A.value):_.series.push(A={name:f,value:0,d0:m,d1:m})}},c=this,p=0;p<this.xSet.length;p++)l(p);this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Ct().toString(),this.clipPath="url(#"+this.clipPathId+")"},i.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},i.prototype.getXDomain=function(){var r=ta(this.results);this.scaleType=pi(r);var c,p,l=[];return"linear"===this.scaleType&&(r=r.map(function(h){return Number(h)})),("time"===this.scaleType||"linear"===this.scaleType)&&(c=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,r),p=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,r)),"time"===this.scaleType?(l=[new Date(c),new Date(p)],this.xSet=r.slice().sort(function(h,g){var f=h.getTime(),m=g.getTime();return f>m?1:m>f?-1:0})):"linear"===this.scaleType?(l=[c,p],this.xSet=r.slice().sort(function(h,g){return h-g})):(l=r,this.xSet=r),l},i.prototype.getYDomain=function(){for(var r=this,l=[],c=function(x){for(var y=p.xSet[x],_=0,A=0,B=p.results;A<B.length;A++){var M=B[A].series.find(function(ee){var ne=ee.name,Y=y;return"time"===r.scaleType&&(ne=ne.valueOf(),Y=Y.valueOf()),ne===Y});M&&(_+=M.value)}l.push(_)},p=this,h=0;h<this.xSet.length;h++)c(h);return[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,[0].concat(l)),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,l)]},i.prototype.getSeriesDomain=function(){return this.results.map(function(r){return r.name})},i.prototype.getXScale=function(r,l){var c;return"time"===this.scaleType?c=bi():"linear"===this.scaleType?c=Ze():"ordinal"===this.scaleType&&(c=vi().padding(.1)),c.range([0,l]).domain(r),this.roundDomains?c.nice():c},i.prototype.getYScale=function(r,l){var c=Ze().range([l,0]).domain(r);return this.roundDomains?c.nice():c},i.prototype.updateDomain=function(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},i.prototype.updateHoveredVertical=function(r){this.hoveredVertical=r.value,this.deactivateAll()},i.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},i.prototype.onClick=function(r,l){l&&(r.series=l.name),this.select.emit(r)},i.prototype.trackBy=function(r,l){return l.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.customColors)},i.prototype.getLegendOptions=function(){var r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===r.scaleType?(r.domain=this.seriesDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r},i.prototype.updateYAxisWidth=function(r){this.yAxisWidth=r.width,this.update()},i.prototype.updateXAxisHeight=function(r){this.xAxisHeight=r.height,this.update()},i.prototype.onActivate=function(r){this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value})>-1||(this.activeEntries=[r].concat(this.activeEntries),this.activate.emit({value:r,entries:this.activeEntries}))},i.prototype.onDeactivate=function(r){var l=this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:r,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var r=0,l=this.activeEntries;r<l.length;r++)this.deactivate.emit({value:l[r],entries:[]});this.activeEntries=[]},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"timeline",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.aQ5)("seriesTooltipTemplate",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.Rgc&&e.Rgc)?o:Object)],i.prototype,"seriesTooltipTemplate",void 0),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"hideCircles",null),i.\u0275fac=function(){var r;return function(c){return(r||(r=e.n5z(i)))(c||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-area-chart-stacked"]],contentQueries:function(l,c,p){var h;1&l&&(e.Suo(p,st,5),e.Suo(p,qn,5)),2&l&&(e.iGM(h=e.CRH())&&(c.tooltipTemplate=h.first),e.iGM(h=e.CRH())&&(c.seriesTooltipTemplate=h.first))},hostBindings:function(l,c){1&l&&e.NdJ("mouseleave",function(){return c.hideCircles()})},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",sc
1hemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","activeEntries","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],["ngx-charts-circle-series","","type","stacked",3,"xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange"],["ngx-charts-area-series","","stacked","true",3,"xScale","yScale","colors","data","scaleType","gradient","curve","animations"]],template:function(l,c){1&l&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(h){return c.onClick(h)})("legendLabelActivate",function(h){return c.onActivate(h)})("legendLabelDeactivate",function(h){return c.onDeactivate(h)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,lm,1,10,"g",2),e.YNc(6,cm,1,9,"g",3),e.TgZ(7,"g"),e.YNc(8,dm,2,9,"g",4),e.YNc(9,pm,3,10,"g",5),e.qZA()(),e.YNc(10,gm,2,13,"g",6),e.qZA()),2&l&&(e.Q6J("view",e.WLB(17,Xe,c.width,c.height))("showLegend",c.legend)("legendOptions",c.legendOptions)("activeEntries",c.activeEntries)("animations",c.animations),e.xp6(2),e.uIk("id",c.clipPathId),e.xp6(1),e.uIk("width",c.dims.width+10)("height",c.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",c.transform),e.xp6(1),e.Q6J("ngIf",c.xAxis),e.xp6(1),e.Q6J("ngIf",c.yAxis),e.xp6(1),e.uIk("clip-path",c.clipPath),e.xp6(1),e.Q6J("ngForOf",c.results)("ngForTrackBy",c.trackBy),e.xp6(1),e.Q6J("ngIf",!c.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",c.timeline&&"ordinal"!=c.scaleType))},dependencies:function(){return[X.sg,X.O5,Ot,kt,xn,We,vn,yn,_o]},styles:[ot],encapsulation:2,changeDetection:0})}(et);var _o=function(){function t(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new e.vpe}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){var i=this;this.updateGradient();var n,a,s=function(l){return i.xScale(l.name)};this.stacked||this.normalized?(n=Yi().x(s).y0(function(r,l){return i.yScale(r.d0)}).y1(function(r,l){return i.yScale(r.d1)}),a=Yi().x(s).y0(function(r){return i.yScale.range()[0]}).y1(function(r){return i.yScale.range()[0]})):(n=Yi().x(s).y0(function(){return"auto"===i.baseValue?i.yScale.range()[0]:i.yScale(i.baseValue)}).y1(function(r){return i.yScale(r.value)}),a=Yi().x(s).y0(function(r){return"auto"===i.baseValue?i.yScale.range()[0]:i.yScale(i.baseValue)}).y1(function(r){return"auto"===i.baseValue?i.yScale.range()[0]:i.yScale(i.baseValue)})),n.curve(this.curve),a.curve(this.curve),this.opacity=.8;var o=this.data.series;o="linear"===this.scaleType?uo(o,"name"):"time"===this.scaleType?ho(o,"name"):po(o,"name","asc",this.xScale.domain()),this.path=n(o),this.startingPath=a(o)},t.prototype.updateGradient=function(){if("linear"===this.colors.scaleType)if(this.hasGradient=!0,this.stacked||this.normalized){var i=this.data.series.map(function(r){return r.d0}),n=this.data.series.map(function(r){return r.d1}),a=Math.max.apply(Math,n),s=Math.min.apply(Math,i);this.gradientStops=this.colors.getLinearGradientStops(a,s)}else{var o=this.data.series.map(function(l){return l.value});a=Math.max.apply(Math,o),this.gradientStops=this.colors.getLinearGradientStops(a)}else this.hasGradient=!1,this.gradientStops=void 0},t.prototype.isActive=function(i){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(a){return i.name===a.name})},t.prototype.isInactive=function(i){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(a){return i.name===a.name})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"baseValue",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"stacked",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"normalized",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-area-series",""]],inputs:{baseValue:"baseValue",stacked:"stacked",normalized:"normalized",animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",gradient:"gradient",curve:"curve",activeEntries:"activeEntries"},outputs:{select:"select"},features:[e.TTD],attrs:fm,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(n,a){1&n&&(e.O4$(),e._UZ(0,"g",0)),2&n&&(e.ekj("active",a.isActive(a.data))("inactive",a.isInactive(a.data)),e.Q6J("data",a.data)("path",a.path)("fill",a.colors.getColor(a.data.name))("stops",a.gradientStops)("startingPath",a.startingPath)("opacity",a.opacity)("gradient",a.gradient||a.hasGradient)("animations",a.animations))},dependencies:[vo],encapsulation:2,changeDetection:0}),t}(),Dy=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}(),bo=function(){function t(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.initialized=!1,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},t.prototype.update=function(){this.gradientId="grad"+Ct().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()},t.prototype.loadAnimation=function(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)},t.prototype.updatePathEl=function(){var n=pt(this.element).select(".bar"),a=this.getPath();this.animations?n.transition().duration(500).attr("d",a):n.attr("d",a)},t.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]},t.prototype.getStartingPath=function(){if(!this.animations)return this.getPath();var a,n=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(n=Math.min(this.height,n),a=ei(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(n=Math.min(this.width,n),a=ei(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?a=ei(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(a=ei(this.x,this.y,1,this.height,0,this.edges)),a},t.prototype.getPath=function(){var a,n=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(n=Math.min(this.height,n),a=ei(this.x,this.y,this.width,this.height,n,this.edges)):"horizontal"===this.orientation&&(n=Math.min(this.width,n),a=ei(this.x,this.y,this.width,this.height,n,this.edges)):a=ei(this.x,this.y,this.width,this.height,n,this.edges),a},t.prototype.getRadius=function(){var n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n},t.prototype.getStartOpacity=function(){return this.roundEdges?.2:.5},Object.defineProperty(t.prototype,"edges",{get:function(){var a=[!1,!1,
1!1,!1];return this.roundEdges&&("vertical"===this.orientation?a=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(a=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),a},enumerable:!0,configurable:!0}),t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},t.prototype.checkToHideBar=function(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"x",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"y",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orientation",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"offset",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"isActive",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"stops",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"ariaLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.L6J)("mouseenter"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseLeave",null),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(a,s){1&a&&e.NdJ("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:mm,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(a,s){1&a&&(e.YNc(0,vm,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return s.select.emit(s.data)}),e.qZA()),2&a&&(e.Q6J("ngIf",s.hasGradient),e.xp6(1),e.ekj("active",s.isActive)("hidden",s.hideBar),e.uIk("d",s.path)("aria-label",s.ariaLabel)("fill",s.hasGradient?s.gradientFill:s.fill))},dependencies:[X.O5,Ii],encapsulation:2,changeDetection:0}),t}(),Ft=(function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.roundEdges=!0,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxWidth={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getXScale=function(){this.xDomain=this.getXDomain();var o=Ze().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?o.nice():o},i.prototype.getYScale=function(){this.yDomain=this.getYDomain();var o=this.yDomain.length/(this.dims.height/this.barPadding+1);return ht().rangeRound([0,this.dims.height]).paddingInner(o).domain(this.yDomain)},i.prototype.getXDomain=function(){var o=this.results.map(function(c){return c.value});return[this.xScaleMin?Math.min.apply(Math,[this.xScaleMin].concat(o)):Math.min.apply(Math,[0].concat(o)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(o)):Math.max.apply(Math,[0].concat(o))]},i.prototype.getYDomain=function(){return this.results.map(function(o){return o.label})},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.yDomain:this.xDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.yDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.xDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onDataLabelMaxWidthChanged=function(o){var r=this;o.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,o.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,o.size.width),o.index===this.results.length-1&&setTimeout(function(){return r.update()})},i.prototype.onActivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name}),this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name});var l=this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"xScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(p){return l.onClick(p)})("legendLabelActivate",function(p){return l.onActivate(p,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,ym,1,10,"g",2),e.YNc(3,xm,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("select",function(p){return l.onClick(p)})("activate",function(p){return l.onActivate(p)})("deactivate",function(p){return l.onDeactivate(p)})("dataLabelWidthChanged",function(p){return l.onDataLabelMaxWidthChanged(p)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(22,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("xScale",l.xScale)("yScale",l.yScale)("colors",l.colors)("series",l.results)("dims",l.dims)("gradient",l.gradient)("tooltipDisabled",l.tooltipDisabled)("tooltipTemplate",l.tooltipTemplate)("activeEntries",l.activeEntries)("roundEdges",l.roundEdges)("animations",l.animations)("showDataLabel",l.showDataLabel)("dataLabelFormatting",l.dataLabelFormatting)("noBarWhenZero",l.noBarWhenZero))}
1,dependencies:function(){return[X.O5,Ot,kt,We,na]},styles:[ot],encapsulation:2,changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.groupPadding=16,o.barPadding=8,o.roundDomains=!1,o.roundEdges=!0,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxWidth={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getGroupScale=function(){var o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return ht().rangeRound([0,this.dims.height]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)},i.prototype.getInnerScale=function(){var o=this.groupScale.bandwidth(),r=this.innerDomain.length/(o/this.barPadding+1);return ht().rangeRound([0,o]).paddingInner(r).domain(this.innerDomain)},i.prototype.getValueScale=function(){var o=Ze().range([0,this.dims.width]).domain(this.valuesDomain);return this.roundDomains?o.nice():o},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.value)||o.push(g.value)}return[Math.min.apply(Math,[0].concat(o)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(o)):Math.max.apply(Math,[0].concat(o))]},i.prototype.groupTransform=function(o){return"translate(0, "+this.groupScale(o.label)+")"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valuesDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onDataLabelMaxWidthChanged=function(o,r){var l=this;o.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,o.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,o.size.width),r===this.results.length-1&&setTimeout(function(){return l.update()})},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"groupPadding",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-horizontal-2d"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","horizontal",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],["ngx-charts-series-horizontal","",3,"xScale","activeEntries","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,_m,1,10,"g",3),e.YNc(4,bm,1,9,"g",4),e.YNc(5,Tm,2,17,"g",5),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(14,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("xScale",l.valueScale)("yScale",l.groupScale)("data",l.results)("dims",l.dims),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,fo,na]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){return[0,100]},i.prototype.getYScale=function(){var o=this.groupDomain.length/(this.dims.height/this.barPadding+1);return ht().rangeRound([0,this.dims.height]).paddingInner(o).domain(this.groupDomain)},i.prototype.getXScale=function(){var o=Ze().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?o.nice():o},i.prototype.groupTransform=function(o){return"translate(0, "+this.yScale(o.name)+")"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-horizontal-normalized"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-horizontal","","type","normalized",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,wm,1,10,"g",2),e.YNc(3,Cm,1,8,"g",3),e.YNc(4,km,2,14,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,na]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxWidth={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){for(var o=[],r=0,l=0,c=0,p=this.results;c<p.length;c++){for(var g=0,f=0,m=0,x=p[c].series;m<x.length;m++){var y=x[m];y.value<0?g+=y.value:f+=y.value,r=y.value<r?y.value:r,l=y.value>l?y.value:l}o.push(g),o.push(f)}return o.push(r),o.push(l),[Math.min.apply(Math,[0].concat(o)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(o)):Math.max.apply(Math,o)]},i.prototype.getYScale=function(){var o=this.groupDomain.length/(this.dims.height/this.barPadding+1);return ht().rangeRound([0,this.dims.height]).paddingInner(o).domain(this.groupDomain)},i.prototype.getXScale=function(){var o=Ze().range([0,this.dims.width]).domain(this.valueDomain);return this.roundDomains?o.nice():o},i.prototype.groupTransform=function(o){return"translate(0, "+this.yScale(o.name)+")"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onDataLabelMaxWidthChanged=function(o,r){var l=this;o.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,o.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,o.size.width),r===this.results.length-1&&setTimeout(function(){return l.update()})},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-horizontal-stacked"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",xScaleMax:"xScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"],["ngx-charts-series-horizontal","","type","stacked",3,"xScale","yScale","colors","series","activeEntries","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Am,1,10,"g",2),e.YNc(3,Sm,1,9,"g",3),e.YNc(4,Im,2,16,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,na]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.roundEdges=!0,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxHeight={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+(this.margin[0]+this.dataLabelMaxHeight.negative)+")"},i.prototype.getXScale=function(){this.xDomain=this.getXDomain();var o=this.xDomain.length/(this.dims.width/this.barPadding+1);return ht().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)},i.prototype.getYScale=function(){this.yDomain=this.getYDomain();var o=Ze().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o},i.prototype.getXDomain=function(){return this.results.map(function(o){return o.label})},i.prototype.getYDomain=function(){var o=this.results.map(function(c){return c.value}),r=this.yScaleMin?Math.min.apply(Math,[this.yScaleMin].concat(o)):Math.min.apply(Math,[0].concat(o));this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(r=Math.min.apply(Math,[r].concat(this.yAxisTicks)));var l=this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(o)):Math.max.apply(Math,[0].concat(o));return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(l=Math.max.apply(Math,[l].concat(this.yAxisTicks))),[r,l]},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.xDomain:this.yDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onDataLabelMaxHeightChanged=function(o){var r=this;o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(function(){return r.update()})},i.prototype.onActivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name}),this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name});var l=this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(p){return l.onClick(p)})("legendLabelActivate",function(p){return l.onActivate(p,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Lm,1,10,"g",2),e.YNc(3,Om,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(p){return l.onActivate(p)})("deactivate",function(p){return l.onDeactivate(p)})("select",function(p){return l.onClick(p)})("dataLabelHeightChanged",function(p){return l.onDataLabelMaxHeightChanged(p)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(22,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("xScale",l.xScale)("yScale",l.yScale)("colors",l.colors)("series",l.results)("dims",l.dims)("gradient",l.gradient)("tooltipDisabled",l.tooltipDisabled)("tooltipTemplate",l.tooltipTemplate)("showDataLabel",l.showDataLabel)("dataLabelFormatting",l.dataLabelFormatting)("activeEntries",l.activeEntries)("roundEdges",l.roundEdges)("animations",l.animations)("noBarWhenZero",l.noBarWhenZero))}
1,dependencies:function(){return[X.O5,Ot,kt,We,ia]},styles:[ot],encapsulation:2,changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.scaleType="ordinal",o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.groupPadding=16,o.barPadding=8,o.roundDomains=!1,o.roundEdges=!0,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxHeight={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+(this.margin[0]+this.dataLabelMaxHeight.negative)+")"},i.prototype.onDataLabelMaxHeightChanged=function(o,r){var l=this;o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),r===this.results.length-1&&setTimeout(function(){return l.update()})},i.prototype.getGroupScale=function(){var o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return ht().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)},i.prototype.getInnerScale=function(){var o=this.groupScale.bandwidth(),r=this.innerDomain.length/(o/this.barPadding+1);return ht().rangeRound([0,o]).paddingInner(r).domain(this.innerDomain)},i.prototype.getValueScale=function(){var o=Ze().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?o.nice():o},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.value)||o.push(g.value)}return[Math.min.apply(Math,[0].concat(o)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(o)):Math.max.apply(Math,[0].concat(o))]},i.prototype.groupTransform=function(o){return"translate("+this.groupScale(o.label)+", 0)"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valuesDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"groupPadding",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,Dm,1,10,"g",3),e.YNc(4,Bm,1,9,"g",4),e.YNc(5,Mm,1,17,"g",5),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(14,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("xScale",l.groupScale)("yScale",l.valueScale)("data",l.results)("dims",l.dims),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,fo,ia]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){return[0,100]},i.prototype.getXScale=function(){var o=this.groupDomain.length/(this.dims.width/this.barPadding+1);return ht().rangeRound([0,this.dims.width]).paddingInner(o).domain(this.groupDomain)},i.prototype.getYScale=function(){var o=Ze().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o},i.prototype.groupTransform=function(o){return"translate("+this.xScale(o.name)+", 0)"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-vertical-normalized"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","","type","normalized",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","seriesName","animations","noBarWhenZero","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Fm,1,9,"g",2),e.YNc(3,Em,1,9,"g",3),e.YNc(4,jm,2,14,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,ia]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.tooltipDisabled=!1,o.showGridLines=!0,o.activeEntries=[],o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.barPadding=8,o.roundDomains=!1,o.showDataLabel=!1,o.noBarWhenZero=!0,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.dataLabelMaxHeight={negative:0,positive:0},o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+(this.margin[0]+this.dataLabelMaxHeight.negative)+")"},i.prototype.getGroupDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.label)||o.push(c.label)}return o},i.prototype.getInnerDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.label)||o.push(g.label)}return o},i.prototype.getValueDomain=function(){for(var o=[],r=0,l=0,c=0,p=this.results;c<p.length;c++){for(var g=0,f=0,m=0,x=p[c].series;m<x.length;m++){var y=x[m];y.value<0?g+=y.value:f+=y.value,r=y.value<r?y.value:r,l=y.value>l?y.value:l}o.push(g),o.push(f)}return o.push(r),o.push(l),[Math.min.apply(Math,[0].concat(o)),this.yScaleMax?Math.max.apply(Math,[this.yScaleMax].concat(o)):Math.max.apply(Math,o)]},i.prototype.getXScale=function(){var o=this.groupDomain.length/(this.dims.width/this.barPadding+1);return ht().rangeRound([0,this.dims.width]).paddingInner(o).domain(this.groupDomain)},i.prototype.getYScale=function(){var o=Ze().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o},i.prototype.onDataLabelMaxHeightChanged=function(o,r){var l=this;o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),r===this.results.length-1&&setTimeout(function(){return l.update()})},i.prototype.groupTransform=function(o){return"translate("+(this.xScale(o.name)||0)+", 0)"},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.trackBy=function(o,r){return r.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.innerDomain:this.valueDomain,this.customColors)},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===o.scaleType?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"barPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","","type","stacked",3,"xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,void 0,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,void 0,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Nm,1,10,"g",2),e.YNc(3,Pm,1,9,"g",3),e.YNc(4,Hm,2,16,"g",4),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(10,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,ia]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1,transform:"*"}),(0,P.jt)(500,(0,P.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0})}(et),function(){return(t=Ft||(Ft={})).positive="positive",t.negative="negative",Ft;var t}()),ia=function(){function t(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[]}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){var a,s,n=this;this.updateTooltipSettings(),this.series.length&&(s=this.xScale.bandwidth()),s=Math.round(s);var c,o=Math.max(this.yScale.domain()[0],0),r=((a={})[Ft.positive]=0,a[Ft.negative]=0,a),l=Ft.positive;"normalized"===this.type&&(c=this.series.map(function(p){return p.value}).reduce(function(p,h){return p+h},0)),this.bars=this.series.map(function(p,h){var g=p.value,f=n.getLabel(p),m=gt(f);l=g>0?Ft.positive:Ft.negative;var y={value:g,label:f,roundEdges:n.roundEdges,data:p,width:s,formattedLabel:m,height:0,x:0,y:0};if("standard"===n.type)y.height=Math.abs(n.yScale(g)-n.yScale(o)),y.x=n.xScale(f),y.y=n.yScale(g<0?0:g);else if("stacked"===n.type){var A=(_=r[l])+g;r[l]+=g,y.height=n.yScale(_)-n.yScale(A),y.x=0,y.y=n.yScale(A),y.offset0=_,y.offset1=A}else if("normalized"===n.type){var _;A=(_=r[l])+g,r[l]+=g,c>0?(_=100*_/c,A=100*A/c):(_=0,A=0),y.height=n.yScale(_)-n.yScale(A),y.x=0,y.y=n.yScale(A),y.offset0=_,y.offset1=A,g=(A-_).toFixed(2)+"%"}"ordinal"===n.colors.scaleType?y.color=n.colors.getColor(f):"standard"===n.type?(y.color=n.colors.getColor(g),y.gradientStops=n.colors.getLinearGradientStops(g)):(y.color=n.colors.getColor(y.offset1),y.gradientStops=n.colors.getLinearGradientStops(y.offset1,y.offset0));var B=m;return y.ariaLabel=m+" "+g.toLocaleString(),n.seriesName&&(B=n.seriesName+" \u2022 "+m,y.data.series=n.seriesName,y.ariaLabel=n.seriesName+" "+y.ariaLabel),y.tooltipText=n.tooltipDisabled?void 0:'\n        <span class="tooltip-label">'+lt(B)+'</span>\n        <span class="tooltip-val">'+g.toLocaleString()+"</span>\n      ",y}),this.updateDataLabels()},t.prototype.updateDataLabels=function(){var n=this;if("stacked"===this.type){this.barsForDataLabels=[];var a={};a.series=this.seriesName;var s=this.series.map(function(r){return r.value}).reduce(function(r,l){return l>0?r+l:r},0),o=this.series.map(function(r){return r.value}).reduce(function(r,l){return l<0?r+l:r},0);a.total=s+o,a.x=0,a.y=0,a.height=this.yScale(a.total>0?s:o),a.width=this.xScale.bandwidth(),this.barsForDataLabels.push(a)}else this.barsForDataLabels=this.series.map(function(r){var l={};return l.series=n.seriesName?n.seriesName:r.label,l.total=r.value,l.x=n.xScale(r.label),l.y=n.yScale(0),l.height=n.yScale(l.total)-n.yScale(0),l.width=n.xScale.bandwidth(),l})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(s){return n.name===s.name&&n.series===s.series})},t.prototype.onClick=function(n){this.select.emit(n)},t.prototype.getLabel=function(n){return n.label?n.label:n.name},t.prototype.trackBy=function(n,a){return a.label},t.prototype.trackDataLabelBy=function(n,a){return n+"#"+a.series+"#"+a.total},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"type",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"series",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"seriesName",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dataLabelHeightChanged",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:zm,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(a,s){1&a&&(e.YNc(0,Rm,1,22,"g",0),e.YNc(1,Ym,2,2,"g",1)),2&a&&(e.Q6J("ngForOf",s.bars)("ngForTrackBy",s.trackBy),e.xp6(1),e.Q6J("ngIf",s.showDataLabel))}
1,dependencies:function(){return[X.sg,X.O5,jt,bo,el]},encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1}),(0,P.jt)(500,(0,P.oB)({opacity:0}))])])]},changeDetection:0}),t}(),na=function(){function t(){this.barsForDataLabels=[],this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelWidthChanged=new e.vpe}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){var a,n=this;this.updateTooltipSettings();var o,r,s=((a={})[Ft.positive]=0,a[Ft.negative]=0,a);o=Ft.positive,"normalized"===this.type&&(r=this.series.map(function(c){return c.value}).reduce(function(c,p){return c+p},0));var l=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(function(c,p){var h=c.value,g=n.getLabel(c),f=gt(g);o=h>0?Ft.positive:Ft.negative;var x={value:h,label:g,roundEdges:n.roundEdges,data:c,formattedLabel:f};if(x.height=n.yScale.bandwidth(),"standard"===n.type)x.width=Math.abs(n.xScale(h)-n.xScale(l)),x.x=n.xScale(h<0?h:l),x.y=n.yScale(g);else if("stacked"===n.type){var _=(y=s[o])+h;s[o]+=h,x.width=n.xScale(_)-n.xScale(y),x.x=n.xScale(y),x.y=0,x.offset0=y,x.offset1=_}else if("normalized"===n.type){var y;_=(y=s[o])+h,s[o]+=h,r>0?(y=100*y/r,_=100*_/r):(y=0,_=0),x.width=n.xScale(_)-n.xScale(y),x.x=n.xScale(y),x.y=0,x.offset0=y,x.offset1=_,h=(_-y).toFixed(2)+"%"}"ordinal"===n.colors.scaleType?x.color=n.colors.getColor(g):"standard"===n.type?(x.color=n.colors.getColor(h),x.gradientStops=n.colors.getLinearGradientStops(h)):(x.color=n.colors.getColor(x.offset1),x.gradientStops=n.colors.getLinearGradientStops(x.offset1,x.offset0));var A=f;return x.ariaLabel=f+" "+h.toLocaleString(),n.seriesName&&(A=n.seriesName+" \u2022 "+f,x.data.series=n.seriesName,x.ariaLabel=n.seriesName+" "+x.ariaLabel),x.tooltipText=n.tooltipDisabled?void 0:'\n        <span class="tooltip-label">'+lt(A)+'</span>\n        <span class="tooltip-val">'+h.toLocaleString()+"</span>\n      ",x}),this.updateDataLabels()},t.prototype.updateDataLabels=function(){var n=this;if("stacked"===this.type){this.barsForDataLabels=[];var a={};a.series=this.seriesName;var s=this.series.map(function(r){return r.value}).reduce(function(r,l){return l>0?r+l:r},0),o=this.series.map(function(r){return r.value}).reduce(function(r,l){return l<0?r+l:r},0);a.total=s+o,a.x=0,a.y=0,a.width=this.xScale(a.total>0?s:o),a.height=this.yScale.bandwidth(),this.barsForDataLabels.push(a)}else this.barsForDataLabels=this.series.map(function(r){var l={};return l.series=n.seriesName?n.seriesName:r.label,l.total=r.value,l.x=n.xScale(0),l.y=n.yScale(r.label),l.width=n.xScale(l.total)-n.xScale(0),l.height=n.yScale.bandwidth(),l})},t.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},t.prototype.isActive=function(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(s){return n.name===s.name&&n.series===s.series})},t.prototype.getLabel=function(n){return n.label?n.label:n.name},t.prototype.trackBy=function(n,a){return a.label},t.prototype.trackDataLabelBy=function(n,a){return n+"#"+a.series+"#"+a.total},t.prototype.click=function(n){this.select.emit(n)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"type",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"series",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"seriesName",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"roundEdges",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"showDataLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"noBarWhenZero",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dataLabelWidthChanged",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[e.TTD],attrs:Zm,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(a,s){1&a&&(e.YNc(0,Xm,1,21,"g",0),e.YNc(1,Wm,2,2,"g",1)),2&a&&(e.Q6J("ngForOf",s.bars)("ngForTrackBy",s.trackBy),e.xp6(1),e.Q6J("ngIf",s.showDataLabel))}
1,dependencies:function(){return[X.sg,X.O5,jt,bo,el]},encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1}),(0,P.jt)(500,(0,P.oB)({opacity:0}))])])]},changeDetection:0}),t}(),el=function(){function t(a){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=a.nativeElement}var i,n;return t.prototype.ngOnChanges=function(a){this.update()},t.prototype.getSize=function(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}},t.prototype.ngAfterViewInit=function(){this.dimensionsChanged.emit(this.getSize())},t.prototype.update=function(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):gt(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform="rotate(-45, "+this.x+" , "+this.y+")")},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"value",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"barX",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"barY",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"barWidth",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"barHeight",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"orientation",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(i=void 0!==e.vpe&&e.vpe)?i:Object)],t.prototype,"dimensionsChanged",void 0),(t=u([d("design:paramtypes",["function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object])],t)).\u0275fac=function(s){return new(s||t)(e.Y36("function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:Um,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(s,o){1&s&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&s&&(e.uIk("text-anchor",o.textAnchor)("transform",o.transform)("x",o.x)("y",o.y),e.xp6(1),e.hij(" ",o.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t}(),tl=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}();function il(t,i,n,a,s){return"linear"===i&&(t=t.map(function(c){return Number(c)}),n||t.push(0)),"time"===i||"linear"===i?[a||Math.min.apply(Math,t),s||Math.max.apply(Math,t)]:t}function nl(t,i,n,a){var s;return"time"===n?s=bi().range(i).domain(t):"linear"===n?(s=Ze().range(i).domain(t),a&&(s=s.nice())):"ordinal"===n&&(s=vi().range([i[0],i[1]]).domain(t)),s}!function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.showGridLines=!0,o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.xAxis=!0,o.yAxis=!0,o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.roundDomains=!1,o.maxRadius=10,o.minRadius=3,o.schemeType="ordinal",o.tooltipDisabled=!1,o.activate=new e.vpe,o.deactivate=new e.vpe,o.scaleType="linear",o.margin=[10,20,10,20],o.bubblePadding=[0,0,0,0],o.xAxisHeight=0,o.yAxisWidth=0,o.activeEntries=[],o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.seriesDomain=this.results.map(function(r){return r.name}),this.rDomain=this.getRDomain(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.transform="translate("+this.dims.xOffset+","+this.margin[0]+")",this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.rDomain,this.customColors),this.data=this.results,this.minRadius=Math.max(this.minRadius,1),this.maxRadius=Math.max(this.maxRadius,1),this.rScale=this.getRScale(this.rDomain,[this.minRadius,this.maxRadius]),this.bubblePadding=[0,0,0,0],this.setScales(),this.bubblePadding=this.getBubblePadding(),this.setScales(),this.legendOptions=this.getLegendOptions(),this.clipPathId="clip"+Ct().toString(),this.clipPath="url(#"+this.clipPathId+")"},i.prototype.hideCircles=function(){this.deactivateAll()},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.getBubblePadding=function(){for(var o=0,r=0,l=this.dims.height,c=this.dims.width,p=0,h=this.data;p<h.length;p++)for(var f=0,m=h[p].series;f<m.length;f++){var x=m[f],y=this.rScale(x.r),_=this.xScale("linear"===this.xScaleType?Number(x.x):x.x),A=this.yScale("linear"===this.yScaleType?Number(x.y):x.y);r=Math.max(y-_,r),o=Math.max(y-A,o),l=Math.max(A+y,l),c=Math.max(_+y,c)}return[o,c=Math.max(c-this.dims.width,0),l=Math.max(l-this.dims.height,0),r]},i.prototype.setScales=function(){var o=this.dims.width;void 0===this.xScaleMin&&void 0===this.xScaleMax&&(o-=this.bubblePadding[1]);var r=this.dims.height;void 0===this.yScaleMin&&void 0===this.yScaleMax&&(r-=this.bubblePadding[2]),this.xScale=this.getXScale(this.xDomain,o),this.yScale=this.getYScale(this.yDomain,r)},i.prototype.getYScale=function(o,r){return nl(o,[r,this.bubblePadding[0]],this.yScaleType,this.roundDomains)},i.prototype.getXScale=function(o,r){return nl(o,[this.bubblePadding[3],r],this.xScaleType,this.roundDomains)},i.prototype.getRScale=function(o,r){var l=Ze().range(r).domain(o);return this.roundDomains?l.nice():l},i.prototype.getLegendOptions=function(){var o={scaleType:this.schemeType,colors:void 0,domain:[],position:this.legendPosition,title:void 0};return"ordinal"===o.scaleType?(o.domain=this.seriesDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.rDomain,o.colors=this.colors.scale),o},i.prototype.getXDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.x)||o.push(g.x)}return this.xScaleType=pi(o),il(o,this.xScaleType,this.autoScale,this.xScaleMin,this.xScaleMax)},i.prototype.getYDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.y)||o.push(g.y)}return this.yScaleType=pi(o),il(o,this.yScaleType,this.autoScale,this.yScaleMin,this.yScaleMax)},i.prototype.getRDomain=function(){for(var o=1/0,r=-1/0,l=0,c=this.results;l<c.length;l++)for(var h=0,g=c[l].series;h<g.length;h++){var m=Number(g[h].r)||1;o=Math.min(o,m),r=Math.max(r,m)}return[o,r]},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o){this.activeEntries.findIndex(function(l){return l.name===o.name})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o){var r=this.activeEntries.findIndex(function(l){return l.name===o.name});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var o=0,r=this.activeEntries;o<r.length;o++)this.deactivate.emit({value:r[o],entries:[]});this.activeEntries=[]},i.prototype.trackBy=function(o,r){return r.name},u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"maxRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"minRadius",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"autoScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yScaleMax",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"hideCircles",null),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-bubble-chart"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},hostBindings:function(r,l){1&r&&e.NdJ("mouseleave",function(){return l.hideCircles()})},inputs:{minRadius:"minRadius",maxRadius:"maxRadius",showGridLines:"showGridLines",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",autoScale:"autoScale",schemeType:"schemeType",tooltipDisabled:"tooltipDisabled",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:10,vars:20,consts:[[3,"view","showLegend","activeEntries","legendOptions","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bubble-chart","chart"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["x","0","y","0",1,"bubble-chart-area",2,"fill","rgb(255, 0, 0)","opacity","0","cursor","auto",3,"mouseenter"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"showGridLines","dims","xScale","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"showGridLines","yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-bubble-series","",3,"xScale","yScale","rScale","xScaleType","yScaleType","xAxisLabel","yAxisLabel","colors","data","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(p){return l.onClick(p)})("legendLabelActivate",function(p){return l.onActivate(p)})("legendLabelDeactivate",function(p){return l.onDeactivate(p)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,$m,1,10,"g",2),e.YNc(6,Qm,1,9,"g",3),e.TgZ(7,"rect",4),e.NdJ("mouseenter",function(){return l.deactivateAll()}),e.qZA(),e.TgZ(8,"g"),e.YNc(9,Vm,2,13,"g",5),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(17,Xe,l.width,l.height))("showLegend",l.legend)("activeEntries",l.activeEntries)("legendOptions",l.legendOptions)("animations",l.animations),e.xp6(2),e.uIk("id",l.clipPathId),e.xp6(1),e.uIk("width",l.dims.width+10)("height",l.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.uIk("width",l.dims.width)("height",l.dims.height),e.xp6(1),e.uIk("clip-path",l.clipPath),e.xp6(1),e.Q6J("ngForOf",l.data)("ngForTrackBy",l.trackBy))}
1,dependencies:function(){return[X.sg,X.O5,Ot,kt,We,By]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1}),(0,P.jt)(500,(0,P.oB)({opacity:0}))])])]},changeDetection:0})}(et);var By=function(){function t(){this.tooltipDisabled=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){this.circles=this.getCircles()},t.prototype.getCircles=function(){var n=this,a=this.data.name;return this.data.series.map(function(s,o){if(void 0!==s.y&&void 0!==s.x){var r=s.y,l=s.x,c=s.r,p=n.rScale(c||1),h=gt(s.name),g=n.xScale("linear"===n.xScaleType?Number(l):l),f=n.yScale("linear"===n.yScaleType?Number(r):r),m=n.colors.getColor("linear"===n.colors.scaleType?c:a),x=!n.activeEntries.length||n.isActive({name:a}),y=x?1:.3;return{data:Object.assign({},s,{series:a,name:s.name,value:s.y,x:s.x,radius:s.r}),x:l,y:r,r:c,classNames:["circle-data-"+o],value:r,label:l,cx:g,cy:f,radius:p,tooltipLabel:h,color:m,opacity:y,seriesName:a,isActive:x,transform:"translate("+g+","+f+")"}}}).filter(function(s){return void 0!==s})},t.prototype.getTooltipText=function(n){var s=n.tooltipLabel&&n.tooltipLabel.length,o=n.seriesName&&n.seriesName.length,r=void 0!==n.r?gt(n.r):"",l=this.xAxisLabel&&""!==this.xAxisLabel?this.xAxisLabel+":":"",c=this.yAxisLabel&&""!==this.yAxisLabel?this.yAxisLabel+":":"",p=gt(n.x),h=gt(n.y);return"\n      "+(o||s?'<span class="tooltip-label">'+lt(o&&s?n.seriesName+" \u2022 "+n.tooltipLabel:n.seriesName+n.tooltipLabel)+"</span>":"")+'\n      <span class="tooltip-label">\n        <label>'+lt(l)+"</label> "+lt(p)+"<br />\n        <label>"+lt(c)+"</label> "+lt(h)+'\n      </span>\n      <span class="tooltip-val">\n        '+lt(r)+"\n      </span>\n    "},t.prototype.onClick=function(n){this.select.emit(n)},t.prototype.isActive=function(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(s){return n.name===s.name})},t.prototype.isVisible=function(n){return this.activeEntries.length>0?this.isActive({name:n.seriesName}):0!==n.opacity},t.prototype.activateCircle=function(n){n.barVisible=!0,this.activate.emit({name:this.data.name})},t.prototype.deactivateCircle=function(n){n.barVisible=!1,this.deactivate.emit({name:this.data.name})},t.prototype.trackBy=function(n,a){return a.data.series+" "+a.data.name},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"rScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScaleType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScaleType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"visibleValue",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-bubble-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",rScale:"rScale",xScaleType:"xScaleType",yScaleType:"yScaleType",colors:"colors",visibleValue:"visibleValue",activeEntries:"activeEntries",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:qm,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(a,s){1&a&&e.YNc(0,Km,3,19,"g",0),2&a&&e.Q6J("ngForOf",s.circles)("ngForTrackBy",s.trackBy)},dependencies:[X.sg,jt,Kn],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":enter",[(0,P.oB)({opacity:0,transform:"scale(0)"}),(0,P.jt)(250,(0,P.oB)({opacity:1,transform:"scale(1)"}))])])]},changeDetection:0}),t}(),My=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}(),Fy=(function(t){function i(){var g=null!==t&&t.apply(this,arguments)||this;return g.force=pg().force("charge",hg()).force("collide",og(5)).force("x",gg()).force("y",fg()),g.forceLink=sg().id(function(f){return f.value}),g.legendTitle="Legend",g.legendPosition="right",g.nodes=[],g.links=[],g.activeEntries=[],g.tooltipDisabled=!1,g.activate=new e.vpe,g.deactivate=new e.vpe,g.margin=[0,0,0,0],g.results=[],g.groupResultsBy=function(f){return f.value},g}var n,a,s,o,r,l,c,p,h;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="\n      translate("+(this.dims.xOffset+this.dims.width/2)+", "+(this.margin[0]+this.dims.height/2)+")\n    ",this.force&&this.force.nodes(this.nodes).force("link",this.forceLink.links(this.links)).alph
1a(.5).restart()},i.prototype.onClick=function(g){this.select.emit(g)},i.prototype.onActivate=function(g){this.activeEntries.indexOf(g)>-1||(this.activeEntries=[g].concat(this.activeEntries),this.activate.emit({value:g,entries:this.activeEntries}))},i.prototype.onDeactivate=function(g){var f=this.activeEntries.indexOf(g);this.activeEntries.splice(f,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:g,entries:this.activeEntries})},i.prototype.getSeriesDomain=function(){var g=this;return this.nodes.map(function(f){return g.groupResultsBy(f)}).reduce(function(f,m){return f.includes(m)?f:f.concat([m])},[]).sort()},i.prototype.trackLinkBy=function(g,f){return f.index},i.prototype.trackNodeBy=function(g,f){return f.value},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.seriesDomain,this.customColors)},i.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}},i.prototype.onDragStart=function(g,f){this.force.alphaTarget(.3).restart(),this.draggingNode=g,this.draggingStart={x:f.x-g.x,y:f.y-g.y},this.draggingNode.fx=f.x-this.draggingStart.x,this.draggingNode.fy=f.y-this.draggingStart.y},i.prototype.onDrag=function(g){!this.draggingNode||(this.draggingNode.fx=g.x-this.draggingStart.x,this.draggingNode.fy=g.y-this.draggingStart.y)},i.prototype.onDragEnd=function(g){!this.draggingNode||(this.force.alphaTarget(0),this.draggingNode.fx=void 0,this.draggingNode.fy=void 0,this.draggingNode=void 0)},i.prototype.escape=function(g){return lt(g)},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"force",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"forceLink",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"nodes",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(n="undefined"!=typeof Array&&Array)?n:Object)],i.prototype,"links",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(s=void 0!==e.vpe&&e.vpe)?s:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("linkTemplate",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.Rgc&&e.Rgc)?o:Object)],i.prototype,"linkTemplate",void 0),u([(0,e.aQ5)("nodeTemplate",{static:!1}),d("design:type","function"==typeof(r=void 0!==e.Rgc&&e.Rgc)?r:Object)],i.prototype,"nodeTemplate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(l=void 0!==e.Rgc&&e.Rgc)?l:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.i9L)(We,{read:e.SBq,static:!1}),d("design:type","function"==typeof(c=void 0!==e.SBq&&e.SBq)?c:Object)],i.prototype,"chart",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"groupResultsBy",void 0),u([(0,e.L6J)("document:mousemove",["$event"]),d("design:type",Function),d("design:paramtypes",["function"==typeof(p=void 0!==Xi&&Xi)?p:Object]),d("design:returntype",void 0)],i.prototype,"onDrag",null),u([(0,e.L6J)("document:mouseup",["$event"]),d("design:type",Function),d("design:paramtypes",["function"==typeof(h=void 0!==Xi&&Xi)?h:Object]),d("design:returntype",void 0)],i.prototype,"onDragEnd",null),i.\u0275fac=function(){var g;return function(m){return(g||(g=e.n5z(i)))(m||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-force-directed-graph"]],contentQueries:function(f,m,x){var y;1&f&&(e.Suo(x,ev,5),e.Suo(x,tv,5),e.Suo(x,st,5)),2&f&&(e.iGM(y=e.CRH())&&(m.linkTemplate=y.first),e.iGM(y=e.CRH())&&(m.nodeTemplate=y.first),e.iGM(y=e.CRH())&&(m.tooltipTemplate=y.first))},viewQuery:function(f,m){var x;1&f&&e.Gf(We,5,e.SBq),2&f&&e.iGM(x=e.CRH())&&(m.chart=x.first)},hostBindings:function(f,m){1&f&&e.NdJ("mousemove",function(y){return m.onDrag(y)},!1,e.evT)("mouseup",function(y){return m.onDragEnd(y)},!1,e.evT)},inputs:{activeEntries:"activeEntries",force:"force",forceLink:"forceLink",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",nodes:"nodes",links:"links",tooltipDisabled:"tooltipDisabled",groupResultsBy:"groupResultsBy"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:12,consts:[[3,"view","showLegend","legendOptions","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"force-directed-graph","chart"],[1,"links"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"n
1odes"],["ngx-tooltip","",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","mousedown","click",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["strokeWidth","1","class","edge",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["strokeWidth","1",1,"edge"],["ngx-tooltip","",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","mousedown","click"],["r","5",4,"ngIf"],["r","5"]],template:function(f,m){1&f&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(y){return m.onClick(y)})("legendLabelActivate",function(y){return m.onActivate(y)})("legendLabelDeactivate",function(y){return m.onDeactivate(y)}),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.YNc(3,ov,3,2,"g",3),e.qZA(),e.TgZ(4,"g",4),e.YNc(5,cv,3,11,"g",5),e.qZA()()()),2&f&&(e.Q6J("view",e.WLB(9,Xe,m.width,m.height))("showLegend",m.legend)("legendOptions",m.legendOptions)("animations",m.animations),e.xp6(1),e.uIk("transform",m.transform),e.xp6(2),e.Q6J("ngForOf",m.links)("ngForTrackBy",m.trackLinkBy),e.xp6(2),e.Q6J("ngForOf",m.nodes)("ngForTrackBy",m.trackNodeBy))},dependencies:[X.sg,X.O5,jt,We],styles:[ot,".force-directed-graph .edge{stroke:#333}"],encapsulation:2,changeDetection:0})}(et),function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}()),Ey=function(){function t(n){this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.transform="translate("+this.x+" , "+this.y+")",this.startOpacity=.3,this.gradientId="grad"+Ct().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops(),this.animations&&this.loadAnimation()},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:1}]},t.prototype.loadAnimation=function(){pt(this.element).select(".cell").attr("opacity",0),this.animateToCurrentForm()},t.prototype.animateToCurrentForm=function(){pt(this.element).select(".cell").transition().duration(750).attr("opacity",1)},t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.onMouseEnter=function(){this.activate.emit(this.data)},t.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"x",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"y",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.L6J)("mouseenter"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseEnter",null),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],t.prototype,"onMouseLeave",null),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-heat-map-cell",""]],hostBindings:function(a,s){1&a&&e.NdJ("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()})},inputs:{gradient:"gradient",animations:"animations",fill:"fill",x:"x",y:"y",width:"width",height:"height",data:"data",label:"label"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:dv,decls:3,vars:5,consts:[[1,"cell"],[4,"ngIf"],["rx","3",1,"cell",2,"cursor","pointer",3,"click"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,uv,2,2,"defs",1),e.TgZ(2,"rect",2),e.NdJ("click",function(){return s.onClick()}),e.qZA()()),2&a&&(e.uIk("transform",s.transform),e.xp6(1),e.Q6J("ngIf",s.gradient),e.xp6(1),e.uIk("fill",s.gradient?s.gradientUrl:s.fill)("width",s.width)("height",s.height))},dependencies:[X.O5,Ii],encapsulation:2,changeDetection:0}),t}(),jy=function(){function t(){this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}var i,n,a;return t.prototype.ngOnInit=function(){this.tooltipText||(this.tooltipText=this.getTooltipText)},t.prototype.ngOnChanges=function(s){this.update()},t.prototype.update=function(){this.cells=this.getCells()},t.prototype.getCells=function(){var s=this,o=[];return this.data.map(function(r){r.series.map(function(l){var c=l.value;l.series=r.name,o.push({row:r,cell:l,x:s.xScale(r.name),y:s.yScale(l.name),width:s.xScale.bandwidth(),height:s.yScale.bandwidth(),fill:s.colors.getColor(c),data:c,label:gt(l.name),series:r.name})})}),o},t.prototype.getTooltipText=function(s){var o=s.label,r=s.data;
1return'\n      <span class="tooltip-label">'+lt(s.series)+" \u2022 "+lt(o)+'</span>\n      <span class="tooltip-val">'+r.toLocaleString()+"</span>\n    "},t.prototype.trackBy=function(s,o){return o.tooltipText},t.prototype.onClick=function(s){this.select.emit(s)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],t.prototype,"deactivate",void 0),t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-heat-map-cell-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",data:"data",colors:"colors",xScale:"xScale",yScale:"yScale",gradient:"gradient",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:pv,decls:1,vars:2,consts:[["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-heat-map-cell","","ngx-tooltip","",3,"x","y","width","height","fill","data","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(o,r){1&o&&e.YNc(0,gv,1,18,"g",0),2&o&&e.Q6J("ngForOf",r.cells)("ngForTrackBy",r.trackBy)},dependencies:[X.sg,jt,Ey],encapsulation:2,changeDetection:0}),t}(),Ny=(function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legendTitle="Legend",o.legendPosition="right",o.innerPadding=8,o.trimXAxisTicks=!0,o.trimYAxisTicks=!0,o.rotateXAxisTicks=!0,o.maxXAxisTickLength=16,o.maxYAxisTickLength=16,o.tooltipDisabled=!1,o.activeEntries=[],o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o.scaleType="linear",o}var n,a,s;qe(i,t),i.prototype.update=function(){if(t.prototype.update.call(this),this.formatDates(),this.xDomain=this.getXDomain(),this.yDomain=this.getYDomain(),this.valueDomain=this.getValueDomain(),this.scaleType=pi(this.valueDomain,!1),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.scaleType,legendPosition:this.legendPosition}),"linear"===this.scaleType){var o=this.min,r=this.max;this.min||(o=Math.min.apply(Math,[0].concat(this.valueDomain))),this.max||(r=Math.max.apply(Math,this.valueDomain)),this.valueDomain=[o,r]}this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.rects=this.getRects()},i.prototype.getXDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++){var c=l[r];o.includes(c.name)||o.push(c.name)}return o},i.prototype.getYDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.name)||o.push(g.name)}return o},i.prototype.getValueDomain=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.value)||o.push(g.value)}return o},i.prototype.getDimension=function(o,r,l,c){return void 0===r&&(r=0),"string"==typeof o&&(o=o.replace("[","").replace("]","").replace("px","").replace("'","")).includes(",")&&(o=o.split(",")),Array.isArray(o)&&"number"==typeof r?this.getDimension(o[r],null,l,c):"string"==typeof o&&o.includes("%")?+o.replace("%","")/100:l/(c/+o+1)},i.prototype.getXScale=function(){var o=this.getDimension(this.innerPadding,0,this.xDomain.length,this.dims.width);return ht().rangeRound([0,this.dims.width]).domain(this.xDomain).paddingInner(o)},i.prototype.getYScale=function(){var o=this.getDimension(this.innerPadding,1,this.yDomain.length,this.dims.height);return ht().rangeRound([this.dims.height,0]).domain(this.yDomain).paddingInner(o)},i.prototype.getRects=function(){var o=this,r=[];return this.xDomain.map(function(l){o.yDomain.map(function(c){r.push({x:o.xScale(l),y:o.yScale(c),rx:3,width:o.xScale.bandwidth(),height:o.yScale.bandwidth(),fill:"rgba(200,200,200,0.03)"})})}),r},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.scaleType,this.valueDomain)},i.prototype.getLegendOptions=function(){return{scaleType:this.scaleType,domain:this.valueDomain,colors:"ordinal"===this.scaleType?this.colors:this.colors.scale,title:"ordinal"===this.scaleType?this.legendTitle:void 0,position:this.legendPosition}},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name);var p=this.results.map(function(h){return h.series}).flat().filter(function(h){return l?h.label===c.name:h.name===c.name&&h.series===c.series});this.activeEntries=p.slice(),this.activate.emit({value:c,entries:this.activeEntries})},i.prototype.onDeactivate=function(o,r,l){void 0===l&&(l=!1);var c=Object.assign({},o);r&&(c.series=r.name),this.activeEntries=this.activeEntries.filter(function(p){return l?p.label!==c.name:!(p.name===c.name&&p.series===c.series)}),this.deactivate.emit({value:c,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"innerPadding",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"min",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-heat-map"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",innerPadding:"innerPadding",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",min:"min",max:"max"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:20,consts:[[3,"view","showLegend","animations","legendOptions","legendLabelClick"],[1,"heat-map","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf"],["ngx-charts-heat-map-cell-series","",3,"xScale","yScale","colors","data","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","select","activate","deactivate"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,fv,1,9,"g",2),e.YNc(3,mv,1,8,"g",3),e.YNc(4,vv,1,6,"rect",4),e.TgZ(5,"g",5),e.NdJ("select",function(p){return l.onClick(p)})("activate",function(p){return l.onActivate(p,void 0)})("deactivate",function(p){return l.onDeactivate(p,void 0)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(17,Xe,l.width,l.height))("showLegend",l.legend)("animations",l.animations)("legendOptions",l.legendOptions),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngForOf",l.rects),e.xp6(1),e.Q6J("xScale",l.xScale)("yScale",l.yScale)("colors",l.colors)("data",l.results)("gradient",l.gradient)("animations",l.animations)("tooltipDisabled",l.tooltipDisabled)("tooltipTemplate",l.tooltipTemplate)("tooltipText",l.tooltipText))},dependencies:[X.sg,X.O5,Ot,kt,We,jy],styles:[ot],encapsulation:2,changeDetection:0})}(et),function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}()),al=function(){function t(n){this.element=n,this.fill="none",this.animations=!0,this.select=new e.vpe,this.initialized=!1}var i;return t.prototype.ngOnChanges=function(n){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)},t.prototype.updatePathEl=function(){var n=pt(this.element.nativeElement).select(".line");this.animations?n.transition().duration(750).attr("d",this.path):n.attr("d",this.path)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"path",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"stroke",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",String)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},outputs:{select:"select"},features:[e.TTD],attrs:yv,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(a,s){1&a&&(e.O4$(),e._UZ(0,"path",0)),2&a&&(e.Q6J("@animationState","active"),e.uIk("d",s.initialPath)("fill",s.fill)("stroke",s.stroke))},encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":enter",[(0,P.oB)({strokeDasharray:2e3,strokeDashoffset:2e3}),(0,P.jt)(1e3,(0,P.oB)({strokeDashoffset:0}))])])]},changeDetection:0}),t}(),Py=(function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r.legendTitle="Legend",r.legendPosition="right",r.showGridLines=!0,r.curve=ki,r.activeEntries=[],r.trimXAxisTicks=!0,r.trimYAxisTicks=!0,r.rotateXAxisTicks=!0,r.maxXAxisTickLength=16,r.maxYAxisTickLength=16,r.roundDomains=!1,r.tooltipDisabled=!1,r.showRefLines=!1,r.showRefLabels=!0,r.activate=new e.vpe,r.deactivate=new e.vpe,r.margin=[10,20,10,20],r.xAxisHeight=0,r.yAxisWidth=0,r.timelineHeight=50,r.timelinePadding=10,r}var n,a,s,o;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")",this.clipPathId="clip"+Ct().toString(),this.clipPath="url(#"+this.clipPathId+")"},i.prototype.updateTimeline=function(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform="translate("+this.dims.xOffset+", "+-this.margin[2]+")")},i.prototype.getXDomain=function(){var r=ta(this.results);this.scaleType=pi(r);var c,p,l=[];return"linear"===this.scaleType&&(r=r.map(function(h){return Number(h)})),("time"===this.scaleType||"linear"===this.scaleType)&&(c=this.xScaleMin?this.xScaleMin:Math.min.apply(Math,r),p=this.xScaleMax?this.xScaleMax:Math.max.apply(Math,r)),"time"===this.scaleType?(l=[new Date(c),new Date(p)],this.xSet=r.slice().sort(function(h,g){var f=h.getTime(),m=g.getTime();return f>m?1:m>f?-1:0})):"linear"===this.scaleType?(l=[c,p],this.xSet=r.slice().sort(function(h,g){return h-g})):(l=r,this.xSet=r),l},i.prototype.getYDomain=function(){for(var r=[],l=0,c=this.results;l<c.length;l++)for(var h=0,g=c[l].series;h<g.length;h++){var f=g[h];r.indexOf(f.value)<0&&r.push(f.value),void 0!==f.min&&(this.hasRange=!0,r.indexOf(f.min)<0&&r.push(f.min)),void 0!==f.max&&(this.hasRange=!0,r.indexOf(f.max)<0&&r.push(f.max))}var m=r.slice();return this.autoScale||m.push(0),[this.yScaleMin?this.yScaleMin:Math.min.apply(Math,m),this.yScaleMax?this.yScaleMax:Math.max.apply(Math,m)]},i.prototype.getSeriesDomain=function(){return this.results.map(function(r){return r.name})},i.prototype.getXScale=function(r,l){var c;return"time"===this.scaleType?c=bi().range([0,l]).domain(r):"linear"===this.scaleType?(c=Ze().range([0,l]).domain(r),this.roundDomains&&(c=c.nice())):"ordinal"===this.scaleType&&(c=vi().range([0,l]).padding(.1).domain(r)),c},i.prototype.getYScale=function(r,l){var c=Ze().range([l,0]).domain(r);return this.roundDomains?c.nice():c},i.prototype.updateDomain=function(r){this.filteredDomain=r,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)},i.prototype.updateHoveredVertical=function(r){this.hoveredVertical=r.value,this.deactivateAll()},i.prototype.hideCircles=function(){this.hoveredVertical=null,this.deactivateAll()},i.prototype.onClick=function(r){this.select.emit(r)},i.prototype.trackBy=function(r,l){return l.name},i.prototype.setColors=function(){this.colors=new Je(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.seriesDomain:this.yDomain,this.customColors)},i.prototype.getLegendOptions=function(){var r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===r.scaleType?(r.domain=this.seriesDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r},i.prototype.updateYAxisWidth=function(r){this.yAxisWidth=r.width,this.update()},i.prototype.updateXAxisHeight=function(r){this.xAxisHeight=r.height,this.update()},i.prototype.onActivate=function(r){this.deactivateAll(),this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value})>-1||(this.activeEntries=[r],this.activate.emit({value:r,entries:this.activeEntries}))},i.prototype.onDeactivate=function(r){var l=this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:r,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var r=0,l=this.activeEntries;r<l.length;r++)this.deactivate.emit({value:l[r],entries:[]});this.activeEntries=[]},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"autoScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"timeline",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"rangeFillOpacity",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"rotateXAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxXAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"xAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"yAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showRefLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"referenceLines",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showRefLabels",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"xScaleMax",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMin",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yScaleMax",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.aQ5)("seriesTooltipTemplate",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.Rgc&&e.Rgc)?o:Object)],i.prototype,"seriesTooltipTemplate",void 0),u([(0,e.L6J)("mouseleave"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],i.prototype,"hideCircles",null),i.\u0275fac=function(){var r;return function(c){return(r||(r=e.n5z(i)))(c||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-line-chart"]],contentQueries:function(l,c,p){var h;1&l&&(e.Suo(p,st,5),e.Suo(p,qn,5)),2&l&&(e.iGM(h=e.CRH())&&(c.tooltipTemplate=h.first),e.iGM(h=e.CRH())&&(c.seriesTooltipTemplate=h.first))},hostBindings:function(l,c){1&l&&e.NdJ("mouseleave",function(){return c.hideCircles()})},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",sc
1hemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",referenceLines:"referenceLines",showRefLabels:"showRefLabels",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(l,c){1&l&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(h){return c.onClick(h)})("legendLabelActivate",function(h){return c.onActivate(h)})("legendLabelDeactivate",function(h){return c.onDeactivate(h)}),e.O4$(),e.TgZ(1,"defs")(2,"clipPath"),e._UZ(3,"rect"),e.qZA()(),e.TgZ(4,"g",1),e.YNc(5,xv,1,10,"g",2),e.YNc(6,_v,1,12,"g",3),e.TgZ(7,"g"),e.YNc(8,bv,2,11,"g",4),e.YNc(9,wv,3,9,"g",5),e.qZA()(),e.YNc(10,kv,2,13,"g",6),e.qZA()),2&l&&(e.Q6J("view",e.WLB(17,Xe,c.width,c.height))("showLegend",c.legend)("legendOptions",c.legendOptions)("activeEntries",c.activeEntries)("animations",c.animations),e.xp6(2),e.uIk("id",c.clipPathId),e.xp6(1),e.uIk("width",c.dims.width+10)("height",c.dims.height+10)("transform","translate(-5, -5)"),e.xp6(1),e.uIk("transform",c.transform),e.xp6(1),e.Q6J("ngIf",c.xAxis),e.xp6(1),e.Q6J("ngIf",c.yAxis),e.xp6(1),e.uIk("clip-path",c.clipPath),e.xp6(1),e.Q6J("ngForOf",c.results)("ngForTrackBy",c.trackBy),e.xp6(1),e.Q6J("ngIf",!c.tooltipDisabled),e.xp6(1),e.Q6J("ngIf",c.timeline&&"ordinal"!=c.scaleType))},dependencies:function(){return[X.sg,X.O5,Ot,kt,xn,We,vn,yn,Py]},styles:[ot],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1}),(0,P.jt)(500,(0,P.oB)({opacity:0}))])])]},changeDetection:0})}(et),function(){function t(){this.animations=!0}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){this.updateGradients();var i=this.sortData(this.data.series),n=this.getLineGenerator();this.path=n(i)||"";var a=this.getAreaGenerator();if(this.areaPath=a(i)||"",this.hasRange){var s=this.getRangeGenerator();this.outerPath=s(i)||""}if(this.hasGradient){this.stroke=this.gradientUrl;var o=this.data.series.map(function(c){return c.value}),r=Math.max.apply(Math,o);r===Math.min.apply(Math,o)&&(this.stroke=this.colors.getColor(r))}else this.stroke=this.colors.getColor(this.data.name)},t.prototype.getLineGenerator=function(){var i=this;return Wn().x(function(n){var a=n.name;return i.xScale("time"===i.scaleType?a:"linear"===i.scaleType?Number(a):a)}).y(function(n){return i.yScale(n.value)}).curve(this.curve)},t.prototype.getRangeGenerator=function(){var i=this;return Yi().x(function(n){var a=n.name;return i.xScale("time"===i.scaleType?a:"linear"===i.scaleType?Number(a):a)}).y0(function(n){return i.yScale("number"==typeof n.min?n.min:n.value)}).y1(function(n){return i.yScale("number"==typeof n.max?n.max:n.value)}).curve(this.curve)},t.prototype.getAreaGenerator=function(){var i=this;return Yi().x(function(s){return i.xScale(s.name)}).y0(function(){return i.yScale.range()[0]}).y1(function(a){return i.yScale(a.value)}).curve(this.curve)},t.prototype.sortData=function(i){return"linear"===this.scaleType?uo(i,"name"):"time"===this.scaleType?ho(i,"name"):po(i,"name","asc",this.xScale.domain())},t.prototype.updateGradients=function(){if("linear"===this.colors.scaleType){this.hasGradient=!0,this.gradientId="grad"+Ct().toString(),this.gradientUrl="url(#"+this.gradientId+")";var i=this.data.series.map(function(s){return s.value}),n=Math.max.apply(Math,i),a=Math.min.apply(Math,i);this.gradientStops=this.colors.getLinearGradientStops(n,a),this.areaGradientStops=this.colors.getLinearGradientStops(n)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0},t.prototype.isActive=function(i){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(a){return i.name===a.name})},t.prototype.isInactive=function(i){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(a){return i.name===a.name})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"hasRange",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[e.TTD],attrs:Av,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(n,a){1&n&&(e.O4$(),e.TgZ(0,"g")(1,"defs"),e.YNc(2,Sv,1,2,"g",0),e.qZA(),e._UZ(3,"g",1)(4,"g",2),e.YNc(5,Iv,1,9,"g",3),e.qZA()),2&n&&(e.xp6(2),e.Q6J("ngIf",a.hasGradient),e.xp6(1),e.ekj("active",a.isActive(a.data))("inactive",a.isInactive(a.data)),e.Q6J("data",a.data)("path",a.areaPath)("fill",a.hasGradient?a.gradientUrl:a.colors.getColor(a.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",a.areaGradientStops)("animations",a.animations),e.xp6(1),e.ekj("active",a.isActive(a.data))("inactive",a.isInactive(a.data)),e.Q6J("data",a.data)("path",a.path)("stroke",a.stroke)("animations",a.animations),e.xp6(1),e.Q6J("ngIf",a.hasRange))},dependencies:[X.O5,vo,Ii,al],encapsulation:2,changeDetection:0}),t}()),ol=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}(),rl=2*Math.PI,Hy=(function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.legendTitle="Legend",o.legendPosition="right",o.showGridLines=!0,o.curve=Sh,o.activeEntries=[],o.rangeFillOpacity=.15,o.trimYAxisTicks=!0,o.maxYAxisTickLength=16,o.roundDomains=!1,o.tooltipDisabled=!1,o.showSeriesOnHover=!0,o.gradient=!1,o.yAxisMinScale=0,o.labelTrim=!0,o.labelTrimSize=10,o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[10,20,10,20],o.xAxisHeight=0,o.yAxisWidth=0,o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.setDims(),this.setScales(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.setTicks()},i.prototype.setDims=function(){this.dims=it({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition});var o=Math.floor(this.dims.width/2),r=Math.floor(this.dims.height/2),l=this.outerRadius=Math.min(r/1.5,o/1.5),c=Math.max(0,r-l);this.yAxisDims=lo({},this.dims,{width:o}),this.transform="translate("+this.dims.xOffset+", "+this.margin[0]+")",this.transformYAxis="translate(0, "+c+")",this.labelOffset=this.dims.height+40,this.transformPlot="translate("+o+", "+r+")"},i.prototype.setScales=function(){var o=this.getXValues();this.scaleType=pi(o),this.xDomain=this.filteredDomain||this.getXDomain(o),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,rl),this.yScale=this.getYScale(this.yDomain,this.outerRadius),this.yAxisScale=this.getYScale(this.yDomain.reverse(),this.outerRadius)},i.prototype.setTicks=function(){var r,o=this;r=this.xAxisTickFormatting?this.xAxisTickFormatting:this.xScale.tickFormat?this.xScale.tickFormat.apply(this.xScale,[5]):function(_){return function Oy(t){return"[object Date]"===toString.call(t)}(_)?_.toLocaleDateString():_.toLocaleString()};var l=this.outerRadius;this.thetaTicks=this.xDomain.map(function(y){var _=o.xScale(y),A=1.1*l*(_>Math.PI?-1:1),B=r(y),O=[l*Math.sin(_),-l*Math.cos(_)];return{innerRadius:0,outerRadius:l,startAngle:_,endAngle:_,value:l,label:B,startPos:O,pos:[A,1.1*O[1]]}});for(var h=0;h<this.thetaTicks.length-1;h++)for(var g=this.thetaTicks[h],f=h+1;f<this.thetaTicks.length;f++){var m=this.thetaTicks[f];if(m.pos[0]*g.pos[0]>0){var x=10-Math.abs(m.pos[1]-g.pos[1]);x>0&&(m.pos[1]+=Math.sign(m.pos[0])*x)}}this.radiusTicks=this.yAxisScale.ticks(Math.floor(this.dims.height/50)).map(function(y){return o.yScale(y)})},i.prototype.getXValues=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.includes(g.name)||o.push(g.name)}return o},i.prototype.getXDomain=function(o){return void 0===o&&(o=this.getXValues()),"time"===this.scaleType?[Math.min.apply(Math,o),Math.max.apply(Math,o)]:"linear"===this.scaleType?(o=o.map(function(h){return Number(h)}),[Math.min.apply(Math,o),Math.max.apply(Math,o)]):o},i.prototype.getYValues=function(){for(var o=[],r=0,l=this.results;r<l.length;r++)for(var p=0,h=l[r].series;p<h.length;p++){var g=h[p];o.indexOf(g.value)<0&&o.push(g.value),void 0!==g.min&&o.indexOf(g.min)<0&&o.push(g.min),void 0!==g.max&&o.indexOf(g.max)<0&&o.push(g.max)}return o},i.prototype.getYDomain=function(o){void 0===o&&(o=this.getYValues());var r=Math.min.apply(Math,o),l=Math.max.apply(Math,[this.yAxisMinScale].concat(o));return r=Math.max(0,r),this.autoScale||(r=Math.min(0,r)),[r,l]},i.prototype.getSeriesDomain=function(){return this.results.map(function(o){return o.name})},i.prototype.getXScale=function(o,r){switch(this.scaleType){case"time":return bi().range([0,r]).domain(o);case"linear":var l=Ze().range([0,r]).domain(o);return this.roundDomains?l.nice():l;default:return vi().range([0,r-rl/o.length]).padding(0).domain(o)}},i.prototype.getYScale=function(o,r){var l=Ze().range([0,r]).domain(o);return this.roundDomains?l.nice():l},i.prototype.onClick=function(o,r){r&&(o.series=r.name),this.select.emit(o)},i.prototype.setColors=function(){var o="ordinal"===this.schemeType?this.seriesDomain:this.yDomain.reverse();this.colors=new Je(this.scheme,this.schemeType,o,this.customColors)},i.prototype.getLegendOptions=function(){return"ordinal"===this.schemeType?{scaleType:this.schemeType,colors:this.colors,domain:this.seriesDomain,title:this.legendTitle,position:this.legendPosition}:{scaleType:this.schemeType,colors:this.colors.scale,domain:this.yDomain,title:void 0,position:this.legendPosition}},i.prototype.updateYAxisWidth=function(o){this.yAxisWidth=o.width,this.update()},i.prototype.updateXAxisHeight=function(o){this.xAxisHeight=o.height,this.update()},i.prototype.onActivate=function(o){this.activeEntries.findIndex(function(l){return l.name===o.name&&l.value===o.value})>-1||(this.activeEntries=this.showSeriesOnHover?[o].concat(this.activeEntries):this.activeEntries,this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o){var r=this.activeEntries.findIndex(function(l){return l.name===o.name&&l.value===o.value});this.activeEntries.splice(r,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},i.prototype.deactivateAll=function(){this.activeEntries=this.activeEntries.slice();for(var o=0,r=this.activeEntries;o<r.length;o++)this.deactivate.emit({value:r[o],entries:[]});this.activeEntries=[]},i.prototype.trackBy=function(o,r){return r.name},u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"xAxis",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"yAxis",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showXAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showYAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"xAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"yAxisLabel",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"autoScale",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showGridLines",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"schemeType",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"rangeFillOpacity",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimYAxisTicks",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxYAxisTickLength",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"xAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"yAxisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"roundDomains",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showSeriesOnHover",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"yAxisMinScale",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"labelTrim",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"labelTrimSize",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-polar-chart"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",showGridLines:"showGridLines",curve:"curve",sc
1hemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",trimYAxisTicks:"trimYAxisTicks",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showSeriesOnHover:"showSeriesOnHover",gradient:"gradient",yAxisMinScale:"yAxisMinScale",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:10,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"polar-chart","chart"],["cx","0","cy","0",1,"polar-chart-background"],[4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","gridline-path radial-gridline-path","cx","0","cy","0",4,"ngFor","ngForOf"],["cx","0","cy","0",1,"gridline-path","radial-gridline-path"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize",4,"ngFor","ngForOf"],["ngx-charts-pie-label","",3,"data","radius","label","max","value","explodeSlices","animations","labelTrim","labelTrimSize"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"],["ngx-charts-polar-series","",3,"gradient","xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","animations","tooltipDisabled","tooltipTemplate","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(p){return l.onClick(p)})("legendLabelActivate",function(p){return l.onActivate(p)})("legendLabelDeactivate",function(p){return l.onDeactivate(p)}),e.O4$(),e.TgZ(1,"g",1)(2,"g"),e._UZ(3,"circle",2),e.YNc(4,Ov,2,1,"g",3),e.YNc(5,Bv,2,1,"g",3),e.qZA(),e.YNc(6,Mv,1,9,"g",4),e.YNc(7,Fv,1,5,"g",5),e.TgZ(8,"g"),e.YNc(9,Ev,2,13,"g",6),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(15,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.uIk("transform",l.transformPlot),e.xp6(1),e.uIk("r",l.outerRadius),e.xp6(1),e.Q6J("ngIf",l.showGridLines),e.xp6(1),e.Q6J("ngIf",l.xAxis),e.xp6(1),e.Q6J("ngIf",l.yAxis),e.xp6(1),e.Q6J("ngIf",l.xAxis&&l.showXAxisLabel),e.xp6(1),e.uIk("transform",l.transformPlot),e.xp6(1),e.Q6J("ngForOf",l.results)("ngForTrackBy",l.trackBy))},dependencies:function(){return[X.sg,X.O5,go,kt,We,sl,Hy]},styles:[ot,Es,".polar-chart .polar-chart-background{fill:none}.polar-chart .radial-gridline-path{stroke-dasharray:10 10;fill:none}.polar-chart .pie-label-line{stroke:#2f3646}.polar-charts-series .polar-series-area{pointer-events:none}.polar-series-path{pointer-events:none}"],encapsulation:2,data:{animation:[(0,P.X$)("animationState",[(0,P.eR)(":leave",[(0,P.oB)({opacity:1}),(0,P.jt)(500,(0,P.oB)({opacity:0}))])])]},changeDetection:0})}(et),function(){function t(){this.tooltipDisabled=!1,this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.circleRadius=3}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){var n=this;this.updateGradients();var a=this.getLineGenerator(),s=this.sortData(this.data.series),o=this.data.name,r="linear"===this.colors.scaleType,l=this.yScale.domain()[0];this.seriesColor=this.colors.getColor(r?l:o),this.path=a(s)||"",this.circles=s.map(function(c){var p=n.getAngle(c),h=n.getRadius(c),g=c.value,f=n.colors.getColor(r?Math.abs(g):o);return{data:Object.assign({},c,{series:o,value:g,name:c.name}),cx:h*Math.sin(p),cy:-h*Math.cos(p),value:g,color:f,label:c.name}}),this.active=this.isActive(this.data),this.inactive=this.isInactive(this.data),this.tooltipText=this.tooltipText||function(c){return n.defaultTooltipText(c)}},t.prototype.getAngle=function(n){var a=n.name;return this.xScale("time"===this.scaleType?a:"linear"===this.scaleType?Number(a):a)},t.prototype.getRadius=function(n){return this.yScale(n.value)},t.prototype.getLineGenerator=function(){var n=this;return function Oh(){return function Lh(t){var i=t.curve;
1return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?i(bs(n)):i()._curve},t}(Wn().curve(Ih))}().angle(function(a){return n.getAngle(a)}).radius(function(a){return n.getRadius(a)}).curve(this.curve)},t.prototype.sortData=function(n){return"linear"===this.scaleType?uo(n,"name"):"time"===this.scaleType?ho(n,"name"):po(n,"name","asc",this.xScale.domain())},t.prototype.isActive=function(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(s){return n.name===s.name})},t.prototype.isInactive=function(n){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(function(s){return n.name===s.name})},t.prototype.defaultTooltipText=function(n){var a=n.label,s=n.value;return'\n      <span class="tooltip-label">'+lt(this.data.name)+" \u2022 "+lt(a)+'</span>\n      <span class="tooltip-val">'+s.toLocaleString()+"</span>\n    "},t.prototype.updateGradients=function(){if(this.hasGradient=this.gradient||"linear"===this.colors.scaleType,this.hasGradient)if(this.gradientId="grad"+Ct().toString(),this.gradientUrl="url(#"+this.gradientId+")","linear"===this.colors.scaleType){var n=this.data.series.map(function(o){return o.value}),a=Math.max.apply(Math,n),s=Math.min.apply(Math,n);this.gradientStops=this.colors.getLinearGradientStops(a,s)}else this.gradientStops=void 0},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"name",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"xScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"yScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"scaleType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"curve",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"rangeFillOpacity",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-polar-series",""]],inputs:{tooltipDisabled:"tooltipDisabled",gradient:"gradient",animations:"animations",tooltipText:"tooltipText",name:"name",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:jv,decls:5,vars:11,consts:[[1,"polar-charts-series"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity","endOpacity","stops",4,"ngIf"],["ngx-charts-line","",1,"polar-series-path",3,"path","stroke","fill","animations"],["ngx-charts-circle","","class","circle","ngx-tooltip","","tooltipType","tooltip",3,"cx","cy","r","fill","opacity","tooltipDisabled","tooltipPlacement","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate",4,"ngFor","ngForOf"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity","endOpacity","stops"],["ngx-charts-circle","","ngx-tooltip","","tooltipType","tooltip",1,"circle",3,"cx","cy","r","fill","tooltipDisabled","tooltipPlacement","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",0)(1,"defs"),e.YNc(2,Nv,1,5,"g",1),e.qZA(),e._UZ(3,"g",2),e.YNc(4,Pv,1,11,"g",3),e.qZA()),2&a&&(e.xp6(2),e.Q6J("ngIf",s.hasGradient),e.xp6(1),e.ekj("active",s.active)("inactive",s.inactive),e.Q6J("path",s.path)("stroke",s.hasGradient?s.gradientUrl:s.seriesColor)("fill",s.hasGradient?s.gradientUrl:s.seriesColor)("animations",s.animations),e.uIk("fill-opacity",s.rangeFillOpacity),e.xp6(1),e.Q6J("ngForOf",s.circles))},dependencies:[X.sg,X.O5,jt,Kn,mo,al],encapsulation:2,changeDetection:0}),t}()),sl=(function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.activeEntries=[],o.tooltipDisabled=!1,o.label="Total",o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[20,20,20,20],o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:4*this.width/12,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors();var o=this.dims.width/2,r=this.margin[0]+this.dims.height/2;this.legendWidth=this.width-this.dims.width-this.margin[1],this.outerRadius=Math.min(this.dims.width,this.dims.height)/2.5,this.innerRadius=.75*this.outerRadius,this.transform="translate("+o+" , "+r+")"},i.prototype.getDomain=function(){return this.results.map(function(o){return o.label})},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.domain,this.customColors)},i.prototype.onActivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name}),this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name});var l=this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"label",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"nameFormatting",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"percentageFormatting",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-advanced-pie-chart"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{activeEntries:"activeEntries",gradient:"gradient",tooltipDisabled:"tooltipDisabled",tooltipText:"tooltipText",label:"label",valueFormatting:"valueFormatting",nameFormatting:"nameFormatting",percentageFormatting:"percentageFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:7,vars:37,consts:[[1,"advanced-pie","chart"],[3,"view","showLegend","animations"],[1,"pie","chart"],["ngx-charts-pie-series","",3,"colors","series","innerRadius","activeEntries","outerRadius","gradient","tooltipDisabled","tooltipTemplate","tooltipText","animations","select","activate","deactivate"],[1,"advanced-pie-legend-wrapper"],[3,"data","colors","width","label","animations","valueFormatting","labelFormatting","percentageFormatting","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"div")(1,"div",0)(2,"ngx-charts-chart",1),e.O4$(),e.TgZ(3,"g",2)(4,"g",3),e.NdJ("select",function(p){return l.onClick(p)})("activate",function(p){return l.onActivate(p)})("deactivate",function(p){return l.onDeactivate(p)}),e.qZA()()()(),e.kcU(),e.TgZ(5,"div",4)(6,"ngx-charts-advanced-legend",5),e.NdJ("select",function(p){return l.onClick(p)})("activate",function(p){return l.onActivate(p,!0)})("deactivate",function(p){return l.onDeactivate(p,!0)}),e.qZA()()()),2&r&&(e.Udp("width",l.width,"px")("height",l.height,"px"),e.xp6(1),e.Udp("width",l.dims.width,"px")("height",l.dims.height,"px"),e.xp6(1),e.Q6J("view",e.WLB(34,Xe,l.width,l.height))("showLegend",!1)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("colors",l.colors)("series",l.results)("innerRadius",l.innerRadius)("activeEntries",l.activeEntries)("outerRadius",l.outerRadius)("gradient",l.gradient)("tooltipDisabled",l.tooltipDisabled)("tooltipTemplate",l.tooltipTemplate)("tooltipText",l.tooltipText)("animations",l.animations),e.xp6(1),e.Udp("width",l.width-l.dims.width,"px")("height",l.height,"px"),e.xp6(1),e.Q6J("data",l.results)("colors",l.colors)("width",l.width-l.dims.width-l.margin[1])("label",l.label)("animations",l.animations)("valueFormatting",l.valueFormatting)("labelFormatting",l.nameFormatting)("percentageFormatting",l.percentageFormatting))},dependencies:function(){return[We,Zs,dl]},styles:[ot,".advanced-pie{display:inline-block;float:left}.advanced-pie-legend-wrapper{display:inline-block}"],encapsulation:2,changeDetection:0})}(et),function(){function t(){this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.isIE=/(edge|msie|trident)/i.test(navigator.userAgent),this.trimLabel=ui}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){var i=this.radius;this.explodeSlices&&(i=this.radius*this.value/this.max);var a=ao().innerRadius(i).outerRadius(i).centroid(this.data),s=this.data.pos[1]/a[1];(0===this.data.pos[1]||0===a[1])&&(s=1),this.line="M"+a+"L"+[s*a[0],s*a[1]]+"L"+this.data.pos},Object.defineProperty(t.prototype,"textX",{get:function(){return this.data.pos[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textY",{get:function(){return this.data.pos[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleTransform",{get:function(){return this.isIE?null:"translate3d("+this.textX+"px,"+this.textY+"px, 0)"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attrTransform",{get:function(){return this.isIE?"translate("+this.textX+","+this.textY+")":null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textTransition",{get:function(){return this.isIE||!this.animations?null:"transform 0.75s"},enumerable:!0,configurable:!0}),t.prototype.textAnchor=function(){return this.midAngle(this.data)<Math.PI?"start":"end"},t.prototype.midAngle=function(i){return i.startAngle+(i.endAngle-i.startAngle)/2},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"radius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"color",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"value",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"explodeSlices",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"labelTrim",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"labelTrimSize",void 0),(t=u([d("design:paramtypes",[])],t)).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[e.TTD],attrs:Hv,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(n,a){1&n&&(e.TgZ(0,"title"),e._uU(1),e.qZA(),e.O4$(),e.TgZ(2,"g")(3,"text",0),e._uU(4),e.qZA()(),e._UZ(5,"path",1)),2&n&&(e.xp6(1),e.Oqu(a.label),e.xp6(1),e.Udp("transform",a.styleTransform)("transition",a.textTransition),e.uIk("transform",a.attrTransform),e.xp6(1),e.Udp("text-anchor",a.textAnchor())("shape-rendering","crispEdges"),e.ekj("animation",a.animations),e.xp6(1),e.hij(" ",a.labelTrim?a.trimLabel(a.label,a.labelTrimSize):a.label," "),e.xp6(1),e.ekj("animation",a.animations),e.uIk("d",a.line)("stroke",a.color))},encapsulation:2,changeDetection:0}),t}()),To=function(){function t(n){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dblclick=new e.vpe,this.initialized=!1,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.getGradient=function(){return this.gradient?this.gradientFill:this.fill},t.prototype.getPointerEvents=function(){return this.pointerEvents?"auto":"none"},t.prototype.update=function(){var n=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Ct().toString(),this.gradientFill="url(#"+this.radialGradientId+")",this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=n.startAngle(this.startAngle).endAngle(this.endAngle)()},t.prototype.calculateArc=function(){var n=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(n=this.outerRadius*this.value/this.max),ao().innerRadius(this.innerRadius).outerRadius(n).cornerRadius(this.cornerRadius)},t.prototype.loadAnimation=function(){var n=pt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),a=this.calculateArc();n.transition().attrTween("d",function(s){this._current=this._current||s;var o=Object.assign({},s);o.endAngle=o.startAngle;var r=yi(o,o);return this._current=r(0),function(l){return a(r(l))}}).transition().duration(750).attrTween("d",function(s){this._current=this._current||s;var o=yi(this._current,s);return this._current=o(0),function(r){return a(o(r))}})},t.prototype.updateAnimation=function(){var n=pt(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),a=this.calculateArc();n.transition().duration(750).attrTween("d",function(s){this._current=this._current||s;var o=yi(this._current,s);return this._current=o(0),function(r){return a(o(r))}})},t.prototype.onClick=function(){var n=this;clearTimeout(this._timeout),this._timeout=setTimeout(function(){return n.select.emit(n.data)},200)},t.prototype.onDblClick=function(n){n.preventDefault(),n.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:n})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"startAngle",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"endAngle",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"innerRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"outerRadius",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"cornerRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"value",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"explodeSlices",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"pointerEvents",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"isActive",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototyp
1e,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dblclick",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[e.TTD],attrs:zv,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","","orientation","vertical",3,"color","name","startOpacity"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,Rv,2,3,"defs",1),e.TgZ(2,"path",2),e.NdJ("click",function(){return s.onClick()})("dblclick",function(r){return s.onDblClick(r)})("mouseenter",function(){return s.activate.emit(s.data)})("mouseleave",function(){return s.deactivate.emit(s.data)}),e.qZA()()),2&a&&(e.xp6(1),e.Q6J("ngIf",s.gradient),e.xp6(1),e.Udp("pointer-events",s.getPointerEvents()),e.ekj("active",s.isActive),e.uIk("d",s.path)("fill",s.getGradient()))},dependencies:[X.O5,mo],encapsulation:2,changeDetection:0}),t}();function ll(t,i,n){var a=1,s=i,o=t.width;if(o>n)for(;o/s<n;)a+=1,s=Math.ceil(i/a);return[s,a]}function cl(t,i,n,a){for(var s=ht(),o=ht(),r=t.width,l=t.height,c=ll(t,i.length,n),p=c[0],h=c[1],g=[],f=[],m=0;m<h;m++)f.push(m);for(m=0;m<p;m++)g.push(m);s.domain(g),o.domain(f),s.rangeRound([0,r],.1),o.rangeRound([0,l],.1);var x=[],y=a||function zy(t){return t.map(function(i){return i?i.value:0}).reduce(function(i,n){return i+n},0)}(i),_=s.bandwidth(),A=o.bandwidth();for(m=0;m<i.length;m++)x[m]={},x[m].data={name:i[m]?i[m].name:"",value:i[m]?i[m].value:void 0,extra:i[m]?i[m].extra:void 0,label:i[m]?i[m].label:""},x[m].x=s(m%p),x[m].y=o(Math.floor(m/p)),x[m].width=_,x[m].height=A,x[m].data.percent=y>0?x[m].data.value/y:0,x[m].data.total=y;return x}!function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.labels=!1,o.legend=!1,o.legendTitle="Legend",o.legendPosition="right",o.explodeSlices=!1,o.doughnut=!1,o.arcWidth=.25,o.activeEntries=[],o.tooltipDisabled=!1,o.trimLabels=!0,o.maxLabelLength=10,o.dblclick=new e.vpe,o.select=new e.vpe,o.activate=new e.vpe,o.deactivate=new e.vpe,o}var n,a,s;qe(i,t),i.prototype.update=function(){var o=this;t.prototype.update.call(this),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=it({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation="translate("+(this.margins[3]+this.dims.width/2)+", "+(this.margins[0]+this.dims.height/2)+")",this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort(function(c,p){return o.domain.indexOf(c.name)-o.domain.indexOf(p.name)}),this.setColors(),this.legendOptions=this.getLegendOptions()},i.prototype.getDomain=function(){return this.results.map(function(o){return o.label})},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.domain,this.customColors)},i.prototype.getLegendOptions=function(){return{scaleType:"ordinal",domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}},i.prototype.onActivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name}),this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name});var l=this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},i.prototype.hasNoOptionalMarginsSet=function(){return!this.margins||this.margins.length<=0},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"labels",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"explodeSlices",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"doughnut",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"arcWidth",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"trimLabels",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"maxLabelLength",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"tooltipText",void 0),u([(0,e.r_U)(),d("design:type",Object)],i.prototype,"dblclick",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"margins",void 0),u([(0,e.r_U)(),d("design:type",Object)],i.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{margins:"margins",activeEntries:"activeEntries",labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",tooltipDisabled:"tooltipDisabled",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText"}
1,outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(p){return l.onActivate(p,!0)})("legendLabelDeactivate",function(p){return l.onDeactivate(p,!0)})("legendLabelClick",function(p){return l.onClick(p)}),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("dblclick",function(p){return l.dblclick.emit(p)})("select",function(p){return l.onClick(p)})("activate",function(p){return l.onActivate(p)})("deactivate",function(p){return l.onDeactivate(p)}),e.qZA()()()),2&r&&(e.Q6J("view",e.WLB(21,Xe,l.width,l.height))("showLegend",l.legend)("legendOptions",l.legendOptions)("activeEntries",l.activeEntries)("animations",l.animations),e.xp6(1),e.uIk("transform",l.translation),e.xp6(1),e.Q6J("colors",l.colors)("series",l.data)("showLabels",l.labels)("labelFormatting",l.labelFormatting)("trimLabels",l.trimLabels)("maxLabelLength",l.maxLabelLength)("activeEntries",l.activeEntries)("innerRadius",l.innerRadius)("outerRadius",l.outerRadius)("explodeSlices",l.explodeSlices)("gradient",l.gradient)("animations",l.animations)("tooltipDisabled",l.tooltipDisabled)("tooltipTemplate",l.tooltipTemplate)("tooltipText",l.tooltipText))},dependencies:function(){return[We,dl]},styles:[ot,Es],encapsulation:2,changeDetection:0})}(et),function(t){function i(){var o=null!==t&&t.apply(this,arguments)||this;return o.tooltipDisabled=!1,o.label="Total",o.minWidth=150,o.activeEntries=[],o.activate=new e.vpe,o.deactivate=new e.vpe,o.margin=[20,20,20,20],o}var n,a,s;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.data=cl(this.dims,this.results,this.minWidth,this.designatedTotal),this.transform="translate("+this.margin[3]+" , "+this.margin[0]+")",this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText},i.prototype.defaultTooltipText=function(o){var r=o.data;return'\n      <span class="tooltip-label">'+ui(gt(r.name))+'</span>\n      <span class="tooltip-val">'+r.value.toLocaleString()+"</span>\n    "},i.prototype.getDomain=function(){return this.results.map(function(o){return o.label})},i.prototype.getSeries=function(){var o=this,r=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(function(l){var h=l.data.name,g=gt(h),f=l.data.value,m=function ko(t,i){var s,o,n=t.length,a=-1;if(null==i){for(;++a<n;)if(null!=(s=t[a])&&s>=s)for(o=s;++a<n;)null!=(s=t[a])&&o>s&&(o=s)}else for(;++a<n;)if(null!=(s=i(t[a],a,t))&&s>=s)for(o=s;++a<n;)null!=(s=i(t[a],a,t))&&o>s&&(o=s);return o}([l.width-10,l.height-20])/2-5,y=0;return{transform:"translate("+(l.x+(l.width-10)/2)+", "+(l.y+(l.height-20)/2)+")",colors:function(){return 1===(y+=1)?"rgba(100,100,100,0.3)":o.colorScale.getColor(g)},innerRadius:.9*m,outerRadius:m,name:h,label:ui(g),total:f,value:f,percent:pa(".1%")(l.data.percent),data:[l,{data:{other:!0,value:r-f,name:l.data.name}}]}})},i.prototype.getTotal=function(){return this.results.map(function(o){return o.value}).reduce(function(o,r){return o+r},0)},i.prototype.onClick=function(o){this.select.emit(o)},i.prototype.setColors=function(){this.colorScale=new Je(this.scheme,"ordinal",this.domain,this.customColors)},i.prototype.onActivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name}),this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series})>-1||(this.activeEntries=[o].concat(this.activeEntries),this.activate.emit({value:o,entries:this.activeEntries}))},i.prototype.onDeactivate=function(o,r){void 0===r&&(r=!1),o=this.results.find(function(c){return r?c.label===o.name:c.name===o.name});var l=this.activeEntries.findIndex(function(c){return c.name===o.name&&c.value===o.value&&c.series===o.series});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:o,entries:this.activeEntries})},u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"designatedTotal",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"minWidth",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var o;return function(l){return(o||(o=e.n5z(i)))(l||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-pie-grid"]],contentQueries:function(r,l,c){var p;1&r&&e.Suo(c,st,5),2&r&&e.iGM(p=e.CRH())&&(l.tooltipTemplate=p.first)},inputs:{tooltipText:"tooltipText",activeEntries:"activeEntries",designatedTotal:"designatedTotal",tooltipDisabled:"tooltipDisabled",label:"label",minWidth:"minWidth"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:3,vars:8,consts:[[3,"view","showLegend","animations"],[1,"pie-grid","chart"],["class","pie-grid-item",4,"ngFor","ngForOf"],[1,"pie-grid-item"],["ngx-charts-pie-grid-series","","ngx-tooltip","",3,"colors","data","innerRadius","outerRadius","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],["class","label percent-label","dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",3,"countTo","countSuffix",4,"ngIf"],["class","label percent-label","dy","-0.5em","x","0","y","5","text-anchor","middle",4,"ngIf"],["dy","0.5em","x","0","y","5","text-anchor","middle",1,"label"],["class","label","dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",3,"countTo","countPrefix",4,"ngIf"],["class","label","dy","1.23em","x","0","text-anchor","middle",4,"ngIf"],["dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",1,"label","percent-label",3,"countTo","countSuffix"],["dy","-0.5em","x","0","y","5","text-anchor","middle",1,"label","percent-label"],["dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",1,"label",3,"countTo","countPrefix"],["dy","1.23em","x","0","text-anchor","middle",1,"label"]],template:function(r,l){1&r&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,Wv,8,19,"g",2),e.qZA()()),2&r&&(e.Q6J("view",e.WLB(5,Xe,l.width,l.height))("showLegend",!1)("animations",l.animations),e.xp6(1),e.uIk("transform",l.transform),e.xp6(1),e.Q6J("ngForOf",l.series))}
1,dependencies:function(){return[X.sg,X.O5,jt,ea,We,Ry]},styles:[ot,".pie-grid .arc1{opacity:.4}.pie-grid .percent-label{font-size:16px;font-weight:400}"],encapsulation:2,changeDetection:0})}(et);var Ry=function(){function t(n){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){this.layout=Cs().value(function(n){return n.data.value}).sort(null),this.arcs=this.getArcs()},t.prototype.getArcs=function(){var n=this;return this.layout(this.data).map(function(a,s){var o=a.data.data.name,r=a.data.data.other;0===s&&(a.startAngle=0);var l=n.colors(o);return{data:a.data.data,class:"arc arc"+s,fill:l,startAngle:r?0:a.startAngle,endAngle:a.endAngle,animate:n.animations&&!r,pointerEvents:!r}})},t.prototype.onClick=function(n){this.select.emit(this.data[0].data)},t.prototype.trackBy=function(n,a){return a.data.name},t.prototype.label=function(n){return n.data.name},t.prototype.color=function(n){return this.colors(this.label(n))},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"innerRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"outerRadius",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-pie-grid-series",""]],inputs:{innerRadius:"innerRadius",outerRadius:"outerRadius",animations:"animations",colors:"colors",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:Uv,decls:2,vars:2,consts:[[1,"pie-grid-arcs"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,$v,1,11,"g",1),e.qZA()),2&a&&(e.xp6(1),e.Q6J("ngForOf",s.arcs)("ngForTrackBy",s.trackBy))},dependencies:[X.sg,To],encapsulation:2,changeDetection:0}),t}(),dl=function(){function t(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dblclick=new e.vpe}var i;return t.prototype.ngOnChanges=function(n){this.update()},t.prototype.update=function(){var a=Cs().value(function(s){return s.value}).sort(null)(this.series);this.max=function Co(t,i){var s,o,n=t.length,a=-1;if(null==i){for(;++a<n;)if(null!=(s=t[a])&&s>=s)for(o=s;++a<n;)null!=(s=t[a])&&s>o&&(o=s)}else for(;++a<n;)if(null!=(s=i(t[a],a,t))&&s>=s)for(o=s;++a<n;)null!=(s=i(t[a],a,t))&&s>o&&(o=s);return o}(a,function(s){return s.value}),this.data=this.calculateLabelPositions(a),this.tooltipText=this.tooltipText||this.defaultTooltipText},t.prototype.midAngle=function(n){return n.startAngle+(n.endAngle-n.startAngle)/2},t.prototype.outerArc=function(){return ao().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)},t.prototype.calculateLabelPositions=function(n){var a=this,r=n;r.forEach(function(f){f.pos=a.outerArc().centroid(f),f.pos[0]=1.5*a.outerRadius*(a.midAngle(f)<Math.PI?1:-1)});for(var l=0;l<r.length-1;l++){var c=r[l];if(this.labelVisible(c))for(var p=l+1;p<r.length;p++){var h=r[p];if(this.labelVisible(h)&&h.pos[0]*c.pos[0]>0){var g=10-Math.abs(h.pos[1]-c.pos[1]);g>0&&(h.pos[1]+=Math.sign(h.pos[0])*g)}}}return r},t.prototype.labelVisible=function(n){return this.showLabels&&n.endAngle-n.startAngle>Math.PI/30},t.prototype.getTooltipTitle=function(n){return this.tooltipTemplate?void 0:this.tooltipText(n)},t.prototype.labelText=function(n){return this.labelFormatting?this.labelFormatting(n.data.name):this.label(n)},t.prototype.label=function(n){return gt(n.data.name)},t.prototype.defaultTooltipText=function(n){var a=this.label(n),s=gt(n.data.value);
1return'\n      <span class="tooltip-label">'+lt(a)+'</span>\n      <span class="tooltip-val">'+s+"</span>\n    "},t.prototype.color=function(n){return this.colors.getColor(this.label(n))},t.prototype.trackBy=function(n,a){return a.data.name},t.prototype.onClick=function(n){this.select.emit(n)},t.prototype.isActive=function(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(s){return n.name===s.name&&n.series===s.series})},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"series",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"innerRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"outerRadius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"explodeSlices",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"showLabels",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"trimLabels",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"maxLabelLength",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"tooltipText",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"dblclick",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[e.TTD],attrs:Qv,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(a,s){1&a&&e.YNc(0,qv,3,19,"g",0),2&a&&e.Q6J("ngForOf",s.data)("ngForTrackBy",s.trackBy)},dependencies:[X.sg,X.O5,jt,sl,To],encapsulation:2,changeDetection:0}),t}(),wo=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}(),Gy=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt,wo,ol]}),t}(),Yy=function(){function t(o,r,l){this.cd=r,this.zone=l,this.animations=!0,this.select=new e.vpe,this.value="",this.textFontSize=12,this.textTransform="",this.initialized=!1,this.bandHeight=10,this.textPadding=[10,20,5,20],this.labelFontSize=15,this.element=o.nativeElement}var i,n,a,s;return t.prototype.ngOnChanges=function(o){this.update()},t.prototype.ngOnDestroy=function(){cancelAnimationFrame(this.animationReq)},t.prototype.update=function(){var o=this;this.zone.run(function(){var r=o.data&&void 0!==o.data.value,l=o.valueFormatting||function(g){return g.value.toLocaleStr
1ing()},c=o.labelFormatting||function(g){return lt(ui(g.label,55))};o.transform="translate("+o.x+" , "+o.y+")",o.textWidth=Math.max(0,o.width)-o.textPadding[1]-o.textPadding[3],o.cardWidth=Math.max(0,o.width),o.cardHeight=Math.max(0,o.height),o.label=o.label?o.label:o.data.name;var p={label:o.label,data:o.data,value:o.data.value};o.formattedLabel=c(p),o.transformBand="translate(0 , "+(o.cardHeight-o.bandHeight)+")";var h=r?l(p):"";o.value=o.paddedValue(h),o.setPadding(),o.bandPath=ei(0,0,o.cardWidth,o.bandHeight,3,[!1,!1,!0,!0]),setTimeout(function(){o.scaleText(),o.value=h,r&&!o.initialized&&setTimeout(function(){return o.startCount()},20)},8)})},t.prototype.paddedValue=function(o){return this.medianSize&&this.medianSize>o.length&&(o+="\u2007".repeat(this.medianSize-o.length)),o},t.prototype.startCount=function(){var o=this;if(!this.initialized&&this.animations){cancelAnimationFrame(this.animationReq);var r=this.data.value,l=Ks(r),c=this.valueFormatting||function(h){return h.value.toLocaleString()};this.animationReq=qs(0,r,l,1,function(g){var f=g.value,m=g.finished;o.zone.run(function(){o.value=c({label:o.label,data:o.data,value:f=m?r:f}),m||(o.value=o.paddedValue(o.value)),o.cd.markForCheck()})}),this.initialized=!0}},t.prototype.scaleText=function(){var o=this;this.zone.run(function(){var r=o.textEl.nativeElement.getBoundingClientRect(),l=r.width,c=r.height;if(0!==l&&0!==c){var p=o.textPadding[1]=o.textPadding[3]=o.cardWidth/8,f=Math.min((o.cardWidth-2*p)/l,o.cardHeight/3/c);o.textFontSize=Math.floor(o.textFontSize*f),o.labelFontSize=Math.min(o.textFontSize,15),o.setPadding(),o.cd.markForCheck()}})},t.prototype.setPadding=function(){this.textPadding[1]=this.textPadding[3]=this.cardWidth/8;var o=this.cardHeight/2;this.textPadding[0]=o-this.textFontSize-this.labelFontSize/2,this.textPadding[2]=o-this.labelFontSize},t.prototype.onClick=function(){this.select.emit(this.data)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"color",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"bandColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"textColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"x",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"y",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"medianSize",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.i9L)("textEl",{static:!1}),d("design:type","function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object)],t.prototype,"textEl",void 0),(t=u([d("design:paramtypes",["function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object,"function"==typeof(a=void 0!==e.sBO&&e.sBO)?a:Object,"function"==typeof(s=void 0!==e.R0b&&e.R0b)?s:Object])],t)).\u0275fac=function(r){return new(r||t)(e.Y36("function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object),e.Y36("function"==typeof(a=void 0!==e.sBO&&e.sBO)?a:Object),e.Y36("function"==typeof(s=void 0!==e.R0b&&e.R0b)?s:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-card",""]],viewQuery:function(r,l){var c;1&r&&e.Gf(js,5),2&r&&e.iGM(c=e.CRH())&&(l.textEl=c.first)},inputs:{animations:"animations",color:"color",bandColor:"bandColor",textColor:"textColor",x:"x",y:"y",width:"width",height:"height",label:"label",data:"data",medianSize:"medianSize",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[e.TTD],attrs:Kv,decls:10,vars:25,consts:[[1,"cell",3,"click"],["rx","3","ry","3",1,"card"],["class","card-band","stroke","none",4,"ngIf"],["x","5","alignment-baseline","hanging",1,"trimmed-label"],[3,"innerHTML"],["text-anchor","start","alignment-baseline","hanging",1,"value-text"],["textEl",""],["stroke","none",1,"card-band"]],template:function(r,l){1&r&&(e.O4$(),e.TgZ(0,"g",0),e.NdJ("click",function(){return l.onClick()}),e._UZ(1,"rect",1),e.YNc(2,ey,1,3,"path",2),e.TgZ(3,"title"),e._uU(4),e.qZA(),e.TgZ(5,"foreignObject",3),e.kcU(),e._UZ(6,"p",4),e.qZA(),e.O4$(),e.TgZ(7,"text",5,6),e._uU(9),e.qZA()()),2&r&&(e.uIk("transform",l.transform),e.xp6(1),e.Udp("fill",l.color),e.uIk("width",l.cardWidth)("height",l.cardHeight),e.xp6(1),e.Q6J("ngIf",l.bandColor&&l.bandColor!==l.color),e.xp6(2),e.Oqu(l.label),e.xp6(1),e.uIk("x",l.textPadding[3])("y",l.cardHeight-l.textPadding[2])("width",l.textWidth)("height",l.labelFontSize+l.textPadding[2]),e.xp6(1),e.Udp("color",l.textColor)("font-size",l.labelFontSize,"px")("line-height",l.labelFontSize,"px"),e.Q6J("innerHTML",l.formattedLabel,e.oJD),e.xp6(1),e.Udp("fill",l.textColor)("font-size",l.textFontSize,"pt"),e.uIk("x",l.textPadding[3])("y",l.textPadding[0]),e.xp6(2),e.hij(" ",l.value," "))},dependencies:[X.O5],encapsulation:2,changeDetection:0}),t}(),Zy=function(){function t(){this.innerPadding=15,this.emptyColor="rgba(0, 0, 0, 0)",this.animations=!0,this.select=new e.vpe}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){if(this.data.length>2){var i=this.valueFormatting||function(o){return o.value.toLocaleStr
1ing()},n=this.data.map(function(o){return o&&o.data&&null!=o.data.value?i({data:o.data,label:o?o.data.name:"",value:o&&o.data?o.data.value:""}).length:0}).sort(function(o,r){return r-o}),a=Math.ceil(this.data.length/2);this.medianSize=n[a]}var s=this.getCards();this.cards=s.filter(function(o){return null!==o.data.value}),this.emptySlots=s.filter(function(o){return null===o.data.value})},t.prototype.getCards=function(){var i=this,n="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[0]+this.innerPadding[2],a="number"==typeof this.innerPadding?this.innerPadding:this.innerPadding[1]+this.innerPadding[3];return this.data.map(function(s,o){var r=s.data.name;r=r&&"Date"===r.constructor.name?r.toLocaleDateString():r&&r.toLocaleString();var l=s.data.value,c=r?i.colors.getColor(r):i.emptyColor,p=i.cardColor||c||"#000";return{x:s.x,y:s.y,width:s.width-a,height:s.height-n,color:p,bandColor:i.bandColor||c,textColor:i.textColor||Ws(p),label:r,data:s.data,tooltipText:r+": "+l}})},t.prototype.trackBy=function(i,n){return n.label},t.prototype.onClick=function(i){this.select.emit(i)},u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Array)],t.prototype,"slots",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"innerPadding",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"cardColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"bandColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"emptyColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"textColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-card-series",""]],inputs:{innerPadding:"innerPadding",emptyColor:"emptyColor",animations:"animations",data:"data",slots:"slots",dims:"dims",colors:"colors",cardColor:"cardColor",bandColor:"bandColor",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[e.TTD],attrs:ty,decls:2,vars:4,consts:[["class","card-empty","rx","3","ry","3",3,"fill",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select",4,"ngFor","ngForOf","ngForTrackBy"],["rx","3","ry","3",1,"card-empty"],["ngx-charts-card","",3,"x","y","width","height","color","bandColor","textColor","data","label","medianSize","valueFormatting","labelFormatting","animations","select"]],template:function(n,a){1&n&&(e.YNc(0,iy,1,6,"rect",0),e.YNc(1,ny,1,13,"g",1)),2&n&&(e.Q6J("ngForOf",a.emptySlots)("ngForTrackBy",a.trackBy),e.xp6(1),e.Q6J("ngForOf",a.cards)("ngForTrackBy",a.trackBy))},dependencies:[X.sg,Yy],encapsulation:2,changeDetection:0}),t}(),Xy=(function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.emptyColor="rgba(0, 0, 0, 0)",n.innerPadding=15,n.margin=[10,10,10,10],n}qe(i,t),Object.defineProperty(i.prototype,"clickable",{get:function(){return!!this.select.observers.length},enumerable:!0,configurable:!0}),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")";for(var n=ll(this.dims,this.results.length,150),a=n[0]*n[1],s=this.results.slice();s.length<a;)s.push({value:null});this.data=cl(this.dims,s,150,this.designatedTotal)},i.prototype.getDomain=function(){return this.results.map(function(n){return n.label})},i.prototype.onClick=function(n){this.select.emit(n)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.domain,this.customColors)},u([(0,e.IIB)(),d("design:type",String)],i.prototype,"cardColor",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"bandColor",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"emptyColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"innerPadding",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"textColor",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"designatedTotal",void 0),i.\u0275fac=function(){var n;return function(s){return(n||(n=e.n5z(i)))(s||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-number-card"]],inputs:{cardColor:"cardColor",bandColor:"bandColor",emptyColor:"emptyColor",innerPadding:"innerPadding",textColor:"textColor",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",designatedTotal:"designatedTotal"},features:[e.qOj],decls:3,vars:20,consts:[[3,"view","showLegend","animations"],[1,"number-card","chart"],["ngx-charts-card-series","",3,"colors","cardColor","bandColor","textColor","emptyColor","data","dims","innerPadding","valueFormatting","labelFormatting","animations","select"]],template:function(a,s){1&a&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("select",function(r){return s.onClick(r)}),e.qZA()()()),2&a&&(e.Q6J("view",e.WLB(17,Xe,s.width,s.height))("showLegend",!1)("animations",s.animations),e.xp6(1),e.ekj("clickable",s.clickable),e.uIk("transform",s.transform),e.xp6(1),e.Q6J("colors",s.colors)("cardColor",s.cardColor)("bandColor",s.bandColor)("textColor",s.textColor)("emptyColor",s.emptyColor)("data",s.data)("dims",s.dims)("innerPadding",s.innerPadding)("valueFormatting",s.valueFormatting)("labelFormatting",s.labelFormatting)("animations",s.animations))},dependencies:[We,Zy],styles:[ot,"ngx-charts-number-card .cell .trimmed-label{font-size:12px;pointer-events:none;overflow:hidden;text-align:left;line-height:1em}ngx-charts-number-card .cell .trimmed-label p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;padding:0;margin:0}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"],encapsulation:2,changeDetection:0})}(et),function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}()),Jy=function(){function t(n){this.gradient=!1,this.animations=!0,this.select=new e.vpe,this.initialized=!1,this.element=n.nativeElement}var i;return t.prototype.ngOnChanges=function(){this.update(),this.valueFormatting=this.valueFormatting||function(s){return s.toLocaleStr
1ing()};var n=this.labelFormatting||function(s){return lt(ui(s.label,55))},a={data:this.data,label:this.label,value:this.value};this.formattedValue=this.valueFormatting(a.value),this.formattedLabel=n(a),this.gradientId="grad"+Ct().toString(),this.gradientUrl="url(#"+this.gradientId+")",this.gradientStops=this.getGradientStops()},t.prototype.update=function(){this.initialized?this.animateToCurrentForm():(this.animations&&this.loadAnimation(),this.initialized=!0)},t.prototype.loadAnimation=function(){pt(this.element).select(".cell").attr("opacity",0).attr("x",this.x).attr("y",this.y),this.animateToCurrentForm()},t.prototype.getTextColor=function(){return Ws(this.fill)},t.prototype.animateToCurrentForm=function(){var n=pt(this.element).select(".cell");this.animations?n.transition().duration(750).attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height):n.attr("opacity",1).attr("x",this.x).attr("y",this.y).attr("width",this.width).attr("height",this.height)},t.prototype.onClick=function(){this.select.emit(this.data)},t.prototype.getGradientStops=function(){return[{offset:0,color:this.fill,opacity:.3},{offset:100,color:this.fill,opacity:1}]},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"fill",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"x",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"y",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"width",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"height",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"label",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"value",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueType",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),(t=u([d("design:paramtypes",["function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object])],t)).\u0275fac=function(a){return new(a||t)(e.Y36("function"==typeof(i=void 0!==e.SBq&&e.SBq)?i:Object))},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-tree-map-cell",""]],inputs:{gradient:"gradient",animations:"animations",valueFormatting:"valueFormatting",data:"data",fill:"fill",x:"x",y:"y",width:"width",height:"height",label:"label",value:"value",valueType:"valueType",labelFormatting:"labelFormatting"},outputs:{select:"select"},features:[e.TTD],attrs:ay,decls:4,vars:9,consts:[[4,"ngIf"],[1,"cell",3,"click"],["class","treemap-label",3,"pointer-events",4,"ngIf"],["ngx-charts-svg-linear-gradient","","orientation","vertical",3,"name","stops"],[1,"treemap-label"],[1,"treemap-label",3,"innerHTML"],["class","treemap-val","ngx-charts-count-up","",3,"countTo","valueFormatting",4,"ngIf"],["class","treemap-val",4,"ngIf"],["ngx-charts-count-up","",1,"treemap-val",3,"countTo","valueFormatting"],[1,"treemap-val"]],template:function(a,s){1&a&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,oy,2,2,"defs",0),e.TgZ(2,"rect",1),e.NdJ("click",function(){return s.onClick()}),e.qZA(),e.YNc(3,ly,6,15,"foreignObject",2),e.qZA()),2&a&&(e.xp6(1),e.Q6J("ngIf",s.gradient),e.xp6(1),e.Udp("cursor","pointer"),e.uIk("fill",s.gradient?s.gradientUrl:s.fill)("width",s.width)("height",s.height)("x",s.x)("y",s.y),e.xp6(1),e.Q6J("ngIf",s.width>=70&&s.height>=35))},dependencies:[X.O5,ea,Ii],encapsulation:2,changeDetection:0}),t}(),Wy=function(){function t(){this.gradient=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe}var i;return t.prototype.ngOnChanges=function(n){this.cells=this.getCells()},t.prototype.getCells=function(){var n=this;return this.data.children.filter(function(a){return 1===a.depth}).map(function(a,s){var o=a.id;return{data:a.data,x:a.x0,y:a.y0,width:a.x1-a.x0,height:a.y1-a.y0,fill:n.colors.getColor(o),label:o,value:a.value,valueType:a.valueType}})},t.prototype.getTooltipText=function(n){var s=n.value;
1return'\n      <span class="tooltip-label">'+lt(n.label)+'</span>\n      <span class="tooltip-val">'+s.toLocaleString()+"</span>\n    "},t.prototype.onClick=function(n){this.select.emit(n)},t.prototype.trackBy=function(n,a){return a.label},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"data",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"dims",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"gradient",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==e.Rgc&&e.Rgc)?i:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-tree-map-cell-series",""]],inputs:{gradient:"gradient",tooltipDisabled:"tooltipDisabled",animations:"animations",data:"data",dims:"dims",colors:"colors",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select"},features:[e.TTD],attrs:cy,decls:1,vars:2,consts:[["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueType","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-tree-map-cell","","ngx-tooltip","",3,"data","x","y","width","height","fill","label","value","valueType","valueFormatting","labelFormatting","gradient","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select"]],template:function(a,s){1&a&&e.YNc(0,dy,1,19,"g",0),2&a&&e.Q6J("ngForOf",s.cells)("ngForTrackBy",s.trackBy)},dependencies:[X.sg,jt,Jy],encapsulation:2,changeDetection:0}),t}(),Uy=(function(t){function i(){var a=null!==t&&t.apply(this,arguments)||this;return a.tooltipDisabled=!1,a.gradient=!1,a.select=new e.vpe,a.margin=[10,10,10,10],a}var n;qe(i,t),i.prototype.update=function(){t.prototype.update.call(this),this.dims=it({width:this.width,height:this.height,margins:this.margin}),this.domain=this.getDomain(),this.treemap=function Tg(){var t=bg,i=!1,n=1,a=1,s=[0],o=un,r=un,l=un,c=un,p=un;function h(f){return f.x0=f.y0=0,f.x1=n,f.y1=a,f.eachBefore(g),s=[0],i&&f.eachBefore(mg),f}function g(f){var m=s[f.depth],x=f.x0+m,y=f.y0+m,_=f.x1-m,A=f.y1-m;_<x&&(x=_=(x+_)/2),A<y&&(y=A=(y+A)/2),f.x0=x,f.y0=y,f.x1=_,f.y1=A,f.children&&(m=s[f.depth+1]=o(f)/2,x+=p(f)-m,y+=r(f)-m,(_-=l(f)-m)<x&&(x=_=(x+_)/2),(A-=c(f)-m)<y&&(y=A=(y+A)/2),t(f,x,y,_,A))}return h.round=function(f){return arguments.length?(i=!!f,h):i},h.size=function(f){return arguments.length?(n=+f[0],a=+f[1],h):[n,a]},h.tile=function(f){return arguments.length?(t=Vn(f),h):t},h.padding=function(f){return arguments.length?h.paddingInner(f).paddingOuter(f):h.paddingInner()},h.paddingInner=function(f){return arguments.length?(o="function"==typeof f?f:pn(+f),h):o},h.paddingOuter=function(f){return arguments.length?h.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):h.paddingTop()},h.paddingTop=function(f){return arguments.length?(r="function"==typeof f?f:pn(+f),h):r},h.paddingRight=function(f){return arguments.length?(l="function"==typeof f?f:pn(+f),h):l},h.paddingBottom=function(f){return arguments.length?(c="function"==typeof f?f:pn(+f),h):c},h.paddingLeft=function(f){return arguments.length?(p="function"==typeof f?f:pn(+f),h):p},h}().size([this.dims.width,this.dims.height]);var s=function Gg(){var t=zg,i=Rg;function n(a){var s,o,l,c,p,g,f,r=a.length,h=new Array(r),m={};for(o=0;o<r;++o)p=h[o]=new hn(s=a[o]),null!=(g=t(s,o,a))&&(g+="")&&(m[f="$"+(p.id=g)]=f in m?Ds:p);for(o=0;o<r;++o)if(p=h[o],null!=(g=i(a[o],o,a))&&(g+="")){if(!(c=m["$"+g]))throw new Error("missing: "+g);if(c===Ds)throw new Error("ambiguous: "+g);c.children?c.children.push(p):c.children=[p],p.parent=c}else{if(l)throw new Error("multiple roots");l=p}if(!l)throw new Error("no root");
1if(l.parent=Hg,l.eachBefore(function(x){x.depth=x.parent.depth+1,--r}).eachBefore(Ls),l.parent=null,r>0)throw new Error("cycle");return l}return n.id=function(a){return arguments.length?(t=Vn(a),n):t},n.parentId=function(a){return arguments.length?(i=Vn(a),n):i},n}().id(function(o){var r=o.name;return"Date"===r.constructor.name?r.toLocaleDateString():r.toLocaleString()}).parentId(function(o){return o.isRoot?null:"root"})([{name:"root",value:0,isRoot:!0}].concat(this.results)).sum(function(o){return o.value});this.data=this.treemap(s),this.setColors(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},i.prototype.getDomain=function(){return this.results.map(function(a){return a.name})},i.prototype.onClick=function(a){this.select.emit(a)},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.domain,this.customColors)},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"results",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"labelFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"gradient",void 0),u([(0,e.r_U)(),d("design:type",Object)],i.prototype,"select",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(n=void 0!==e.Rgc&&e.Rgc)?n:Object)],i.prototype,"tooltipTemplate",void 0),i.\u0275fac=function(){var a;return function(o){return(a||(a=e.n5z(i)))(o||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-tree-map"]],contentQueries:function(s,o,r){var l;1&s&&e.Suo(r,st,5),2&s&&e.iGM(l=e.CRH())&&(o.tooltipTemplate=l.first)},inputs:{results:"results",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",labelFormatting:"labelFormatting",gradient:"gradient"},outputs:{select:"select"},features:[e.qOj],decls:3,vars:16,consts:[[3,"view","showLegend","animations"],[1,"tree-map","chart"],["ngx-charts-tree-map-cell-series","",3,"colors","data","dims","tooltipDisabled","tooltipTemplate","valueFormatting","labelFormatting","gradient","animations","select"]],template:function(s,o){1&s&&(e.TgZ(0,"ngx-charts-chart",0),e.O4$(),e.TgZ(1,"g",1)(2,"g",2),e.NdJ("select",function(l){return o.onClick(l)}),e.qZA()()()),2&s&&(e.Q6J("view",e.WLB(13,Xe,o.width,o.height))("showLegend",!1)("animations",o.animations),e.xp6(1),e.uIk("transform",o.transform),e.xp6(1),e.Q6J("colors",o.colors)("data",o.data)("dims",o.dims)("tooltipDisabled",o.tooltipDisabled)("tooltipTemplate",o.tooltipTemplate)("valueFormatting",o.valueFormatting)("labelFormatting",o.labelFormatting)("gradient",o.gradient)("animations",o.animations))},dependencies:[We,Wy],styles:[".tree-map .treemap-val{font-size:1.3em;padding-top:5px;display:inline-block}.tree-map .treemap-label p{display:table-cell;text-align:center;line-height:1.2em;vertical-align:middle}"],encapsulation:2,changeDetection:0})}(et),function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt]}),t}()),$y=(function(t){function i(){var s=null!==t&&t.apply(this,arguments)||this;return s.min=0,s.max=100,s.value=0,s.margin=[10,20,10,20],s.valueResizeScale=1,s.unitsResizeScale=1,s.valueTextTransform="",s.valueTranslate="",s.unitsTextTransform="",s.unitsTranslate="",s}var n,a;qe(i,t),i.prototype.ngAfterViewInit=function(){var s=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){s.scaleText("value"),s.scaleText("units")})},i.prototype.update=function(){var s=this;t.prototype.update.call(this),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=it({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();var r=this.margin[0]+this.dims.height/2;this.transform="translate("+(this.margin[3]+this.dims.width/2)+", "+r+")",this.transformLine="translate("+(this.margin[3]+this.valueScale(this.previousValue))+", "+r+")",this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",setTimeout(function(){return s.scaleText("value")},50),setTimeout(function(){return s.scaleText("units")},50)},i.prototype.getValueDomain=function(){return[this.min,this.max]},i.prototype.getValueScale=function(){return Ze().range([0,this.dims.width]).domain(this.valueDomain)},i.prototype.getDisplayValue=function(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleStr
1ing()},i.prototype.scaleText=function(s,o){var l,c,r=this;void 0===o&&(o=!0),"value"===s?(l=this.valueTextEl,c=this.valueResizeScale):(l=this.unitsTextEl,c=this.unitsResizeScale);var p=l.nativeElement.getBoundingClientRect(),h=p.width,g=p.height;if(0!==h&&0!==g){var f=c,m=this.dims.width,x=Math.max(this.dims.height/2-15,0),y=Math.floor(m/(h/c)*100)/100,_=Math.floor(x/(g/c)*100)/100;(c=Math.min(_,y))!==f&&("value"===s?(this.valueResizeScale=c,this.valueTextTransform="scale("+c+", "+c+")"):(this.unitsResizeScale=c,this.unitsTextTransform="scale("+c+", "+c+")"),this.cd.markForCheck(),o&&setTimeout(function(){r.scaleText(s,!1)},50))}},i.prototype.onClick=function(){this.select.emit({name:"Value",value:this.value})},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",[this.value],this.customColors)},u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"min",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"value",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"units",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"previousValue",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"valueFormatting",void 0),u([(0,e.i9L)("valueTextEl",{static:!1}),d("design:type","function"==typeof(n=void 0!==e.SBq&&e.SBq)?n:Object)],i.prototype,"valueTextEl",void 0),u([(0,e.i9L)("unitsTextEl",{static:!1}),d("design:type","function"==typeof(a=void 0!==e.SBq&&e.SBq)?a:Object)],i.prototype,"unitsTextEl",void 0),i.\u0275fac=function(){var s;return function(r){return(s||(s=e.n5z(i)))(r||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-linear-gauge"]],viewQuery:function(o,r){var l;1&o&&(e.Gf(uy,5),e.Gf(py,5)),2&o&&(e.iGM(l=e.CRH())&&(r.valueTextEl=l.first),e.iGM(l=e.CRH())&&(r.unitsTextEl=l.first))},inputs:{max:"max",min:"min",value:"value",units:"units",previousValue:"previousValue",valueFormatting:"valueFormatting"},features:[e.qOj],decls:15,vars:38,consts:[[3,"view","showLegend","animations","click"],[1,"linear-gauge","chart"],["ngx-charts-bar","",1,"background-bar",3,"width","height","x","y","data","orientation","roundEdges","animations"],["ngx-charts-bar","",3,"width","height","x","y","fill","data","orientation","roundEdges","animations"],["x1","0","y1","5","x2","0","y2","15",4,"ngIf"],["x1","0","y1","-5","x2","0","y2","-15",4,"ngIf"],["alignment-baseline","after-edge",1,"value"],["valueTextEl",""],["alignment-baseline","before-edge",1,"units"],["unitsTextEl",""],["x1","0","y1","5","x2","0","y2","15"],["x1","0","y1","-5","x2","0","y2","-15"]],template:function(o,r){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("click",function(){return r.onClick()}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2)(3,"g",3),e.YNc(4,hy,1,2,"line",4),e.YNc(5,gy,1,2,"line",5),e.TgZ(6,"g")(7,"g")(8,"text",6,7),e._uU(10),e.qZA()(),e.TgZ(11,"g")(12,"text",8,9),e._uU(14),e.qZA()()()()()),2&o&&(e.Q6J("view",e.WLB(33,Xe,r.width,r.height))("showLegend",!1)("animations",r.animations),e.xp6(2),e.Q6J("width",r.dims.width)("height",3)("x",r.margin[3])("y",r.dims.height/2+r.margin[0]-2)("data",e.DdM(36,Ns))("orientation","horizontal")("roundEdges",!0)("animations",r.animations),e.xp6(1),e.Q6J("width",r.valueScale(r.value))("height",3)("x",r.margin[3])("y",r.dims.height/2+r.margin[0]-2)("fill",r.colors.getColor(r.units))("data",e.DdM(37,Ns))("orientation","horizontal")("roundEdges",!0)("animations",r.animations),e.xp6(1),e.Q6J("ngIf",r.hasPreviousValue),e.xp6(1),e.Q6J("ngIf",r.hasPreviousValue),e.xp6(1),e.uIk("transform",r.transform),e.xp6(1),e.uIk("transform",r.valueTranslate),e.xp6(1),e.Udp("text-anchor","middle"),e.uIk("transform",r.valueTextTransform),e.xp6(2),e.hij(" ",r.displayValue," "),e.xp6(1),e.uIk("transform",r.unitsTranslate),e.xp6(1),e.Udp("text-anchor","middle"),e.uIk("transform",r.unitsTextTransform),e.xp6(2),e.hij(" ",r.units," "))},dependencies:[X.O5,We,bo],styles:[ot,".linear-gauge{cursor:pointer}.linear-gauge .background-bar path{fill:rgba(0,0,0,.05)}.linear-gauge .units{fill:#666}"],encapsulation:2,changeDetection:0})}(et),function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r.legend=!1,r.legendTitle="Legend",r.legendPosition="right",r.min=0,r.max=100,r.bigSegments=10,r.smallSegments=5,r.showAxis=!0,r.startAngle=-120,r.angleSpan=240,r.activeEntries=[],r.tooltipDisabled=!1,r.showText=!0,r.activate=new e.vpe,r.deactivate=new e.vpe,r.resizeScale=1,r.rotation="",r.textTransform="scale(1, 1)",r.cornerRadius=10,r}var n,a,s,o;qe(i,t),i.prototype.ngAfterViewInit=function(){var r=this;t.prototype.ngAfterViewInit.call(this),setTimeout(function(){return r.scaleText()})},i.prototype.update=function(){var r=this;t.prototype.update.call(this),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=it({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+(this.margin[3]+this.dims.width/2)+", "+(this.margin[0]+this.dims.height/2)+")",this.rotation="rotate("+this.startAngle+")",setTimeout(function(){return r.scaleText()},50)},i.prototype.getArcs=function(){var r=[],c=Math.min(.7*this.outerRadius/this.results.length,10),p=.7*c;this.textRadius=this.outerRadius-this.results.length*c,this.cornerRadius=Math.floor(p/2);for(var h=0,g=0,f=this.results;g<f.length;g++){var m=f[g],x=this.outerRadius-h*c,y=x-p,_={endAngle:this.angleSpan*Math.PI/180,innerRadius:y,outerRadius:x,data:{value:this.max,name:m.name}},A={endAngle:Math.min(this.valueScale(m.value),this.angleSpan)*Math.PI/180,innerRadius:y,outerRadius:x,data:{value:m.value,name:m.name}};r.push({backgroundArc:_,valueArc:A}),h++}return r},i.prototype.getDomain=function(){return this.results.map(function(r){return r.name})},i.prototype.getValueDomain=function(){var r=this.results.map(function(p){return p.value}),l=Math.min.apply(Math,r),c=Math.max.apply(Math,r);return this.min=void 0!==this.min?Math.min(this.min,l):l,this.max=void 0!==this.max?Math.max(this.max,c):c,[this.min,this.max]},i.prototype.getValueScale=function(){return Ze().range([0,this.angleSpan]).nice().domain(this.valueDomain)},i.prototype.getDisplayValue=function(){var r=this.results.map(function(l){return l.value}).reduce(function(l,c){return l+c},0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleStr
1ing():this.valueFormatting?this.valueFormatting(r):r.toLocaleString()},i.prototype.scaleText=function(r){var l=this;if(void 0===r&&(r=!0),this.showText){var c=this.textEl.nativeElement.getBoundingClientRect().width,p=this.resizeScale;this.resizeScale=0===c?1:Math.floor(this.textRadius/(c/this.resizeScale)*100)/100,this.resizeScale!==p&&(this.textTransform="scale("+this.resizeScale+", "+this.resizeScale+")",this.cd.markForCheck(),r&&setTimeout(function(){return l.scaleText(!1)},50))}},i.prototype.onClick=function(r){this.select.emit(r)},i.prototype.getLegendOptions=function(){return{scaleType:"ordinal",colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}},i.prototype.setColors=function(){this.colors=new Je(this.scheme,"ordinal",this.domain,this.customColors)},i.prototype.onActivate=function(r){this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value})>-1||(this.activeEntries=[r].concat(this.activeEntries),this.activate.emit({value:r,entries:this.activeEntries}))},i.prototype.onDeactivate=function(r){var l=this.activeEntries.findIndex(function(c){return c.name===r.name&&c.value===r.value});this.activeEntries.splice(l,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:r,entries:this.activeEntries})},i.prototype.isActive=function(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(c){return r.name===c.name&&r.series===c.series})},i.prototype.trackBy=function(r,l){return l.valueArc.data.name},u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"legend",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendTitle",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"legendPosition",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"min",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"textValue",void 0),u([(0,e.IIB)(),d("design:type",String)],i.prototype,"units",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"bigSegments",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"smallSegments",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"results",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showAxis",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"startAngle",void 0),u([(0,e.IIB)(),d("design:type",Number)],i.prototype,"angleSpan",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"activeEntries",void 0),u([(0,e.IIB)(),d("design:type",Object)],i.prototype,"axisTickFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Function)],i.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],i.prototype,"showText",void 0),u([(0,e.IIB)(),d("design:type",Array)],i.prototype,"margin",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(n=void 0!==e.vpe&&e.vpe)?n:Object)],i.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type","function"==typeof(a=void 0!==e.vpe&&e.vpe)?a:Object)],i.prototype,"deactivate",void 0),u([(0,e.aQ5)("tooltipTemplate",{static:!1}),d("design:type","function"==typeof(s=void 0!==e.Rgc&&e.Rgc)?s:Object)],i.prototype,"tooltipTemplate",void 0),u([(0,e.i9L)("textEl",{static:!1}),d("design:type","function"==typeof(o=void 0!==e.SBq&&e.SBq)?o:Object)],i.prototype,"textEl",void 0),i.\u0275fac=function(){var r;return function(c){return(r||(r=e.n5z(i)))(c||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["ngx-charts-gauge"]],contentQueries:function(l,c,p){var h;1&l&&e.Suo(p,st,5),2&l&&e.iGM(h=e.CRH())&&(c.tooltipTemplate=h.first)},viewQuery:function(l,c){var p;1&l&&e.Gf(js,5),2&l&&e.iGM(p=e.CRH())&&(c.textEl=p.first)},inputs:{margin:"margin",startAngle:"startAngle",angleSpan:"angleSpan",min:"min",max:"max",activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",textValue:"textValue",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",results:"results",showAxis:"showAxis",axisTickFormatting:"axisTickFormatting",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",showText:"showText"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:13,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations","select","activate","deactivate"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["textEl",""],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(l,c){1&l&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(h){return c.onClick(h)})("legendLabelActivate",function(h){return c.onActivate(h)})("legendLabelDeactivate",function(h){return c.onDeactivate(h)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,fy,2,10,"g",2),e.YNc(3,my,1,9,"g",3),e.YNc(4,vy,6,5,"text",4),e.qZA()()),2&l&&(e.Q6J("view",e.WLB(10,Xe,c.width,c.height))("showLegend",c.legend)("legendOptions",c.legendOptions)("activeEntries",c.activeEntries)("animations",c.animations),e.xp6(1),e.uIk("transform",c.transform),e.xp6(1),e.Q6J("ngForOf",c.arcs)("ngForTrackBy",c.trackBy),e.xp6(1),e.Q6J("ngIf",c.showAxis),e.xp6(1),e.Q6J("ngIf",c.showText))}
1,dependencies:function(){return[X.sg,X.O5,We,$y,Qy]},styles:[ot,".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{font-size:12px;fill:#666;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"],encapsulation:2,changeDetection:0})}(et),function(){function t(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe}var i,n;return t.prototype.tooltipText=function(a){var o,s=gt(a.data.name);return o=this.valueFormatting?this.valueFormatting(a.data.value):gt(a.data.value),'\n      <span class="tooltip-label">'+lt(s)+'</span>\n      <span class="tooltip-val">'+o+"</span>\n    "},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"backgroundArc",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueArc",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"cornerRadius",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(i=void 0!==Je&&Je)?i:Object)],t.prototype,"colors",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"isActive",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),u([(0,e.IIB)(),d("design:type",Function)],t.prototype,"valueFormatting",void 0),u([(0,e.IIB)(),d("design:type","function"==typeof(n=void 0!==e.Rgc&&e.Rgc)?n:Object)],t.prototype,"tooltipTemplate",void 0),u([(0,e.IIB)(),d("design:type",Boolean)],t.prototype,"animations",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"select",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"activate",void 0),u([(0,e.r_U)(),d("design:type",Object)],t.prototype,"deactivate",void 0),t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{isActive:"isActive",tooltipDisabled:"tooltipDisabled",animations:"animations",backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},attrs:yy,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"]],template:function(s,o){1&s&&(e.O4$(),e._UZ(0,"g",0),e.TgZ(1,"g",1),e.NdJ("select",function(l){return o.select.emit(l)})("activate",function(l){return o.activate.emit(l)})("deactivate",function(l){return o.deactivate.emit(l)}),e.qZA()),2&s&&(e.Q6J("startAngle",0)("endAngle",o.backgroundArc.endAngle)("innerRadius",o.backgroundArc.innerRadius)("outerRadius",o.backgroundArc.outerRadius)("cornerRadius",o.cornerRadius)("data",o.backgroundArc.data)("animate",!1)("pointerEvents",!1),e.xp6(1),e.Q6J("startAngle",0)("endAngle",o.valueArc.endAngle)("innerRadius",o.valueArc.innerRadius)("outerRadius",o.valueArc.outerRadius)("cornerRadius",o.cornerRadius)("fill",o.colors.getColor(o.valueArc.data.name))("data",o.valueArc.data)("animate",o.animations)("isActive",o.isActive)("tooltipDisabled",o.tooltipDisabled)("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",o.tooltipTemplate?void 0:o.tooltipText(o.valueArc))("tooltipTemplate",o.tooltipTemplate)("tooltipContext",o.valueArc.data))},dependencies:[jt,To],encapsulation:2,changeDetection:0}),t}()),Qy=function(){function t(){this.rotate=""}return t.prototype.ngOnChanges=function(i){this.update()},t.prototype.update=function(){this.rotationAngle=-90+this.startAngle,this.rotate="rotate("+this.rotationAngle+")",this.ticks=this.getTicks()},t.prototype.getTicks=function(){for(var i=this.angleSpan/this.bigSegments,n=i/this.smallSegments,s={big:[],small:[]},o=this.radius+10,r=o+20+10,l=0;l<=this.bigSegments;l++){var c=l*i,p=c*Math.PI/180,h=this.getTextAnchor(c),g=!1;if(0===l&&360===this.angleSpan&&(g=!0),!g){var f=Number.parseFloat(this.valueScale.invert(c).toString()).toLocaleStr
1ing();this.tickFormatting&&(f=this.tickFormatting(f)),s.big.push({line:this.getTickPath(o,20,p),textAnchor:h,text:f,textTransform:"\n            translate("+r*Math.cos(p)+", "+r*Math.sin(p)+") rotate("+-this.rotationAngle+")\n          "})}if(l!==this.bigSegments)for(var m=1;m<=this.smallSegments;m++){var y=(c+m*n)*Math.PI/180;s.small.push({line:this.getTickPath(o,10,y)})}}return s},t.prototype.getTextAnchor=function(i){var n="middle";return(i=(this.startAngle+i)%360)>45&&i<=135?n="start":i>225&&i<=315&&(n="end"),n},t.prototype.getTickPath=function(i,n,a){var s=i*Math.sin(a),o=(i+n)*Math.sin(a),c=[{x:i*Math.cos(a),y:s},{x:(i+n)*Math.cos(a),y:o}];return Wn().x(function(h){return h.x}).y(function(h){return h.y})(c)},u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"bigSegments",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"smallSegments",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"min",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"max",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"angleSpan",void 0),u([(0,e.IIB)(),d("design:type",Number)],t.prototype,"startAngle",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"radius",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"valueScale",void 0),u([(0,e.IIB)(),d("design:type",Object)],t.prototype,"tickFormatting",void 0),t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},features:[e.TTD],attrs:xy,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(n,a){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,_y,2,1,"g",0),e.YNc(2,by,3,4,"g",0),e.YNc(3,Ty,2,1,"g",1),e.qZA()),2&n&&(e.uIk("transform",a.rotate),e.xp6(1),e.Q6J("ngForOf",a.ticks.big),e.xp6(1),e.Q6J("ngForOf",a.ticks.big),e.xp6(1),e.Q6J("ngForOf",a.ticks.small))},dependencies:[X.sg],encapsulation:2,changeDetection:0}),t}(),Vy=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt,wo,tl]}),t}(),qy=function(){function t(){}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[Nt,Dy,tl,My,Fy,Ny,ol,Gy,Xy,wo,Uy,Vy]}),t}()},87918:(Li,Pt,Be)=>{"use strict";Be.d(Pt,{P:()=>te});var e=Be(15671),X=Be(43144),P=Be(5e3),te=function(){var xe=function(){function w(){(0,e.Z)(this,w)}return(0,X.Z)(w,null,[{key:"forRoot",value:function(){return{ngModule:w,providers:[]}}},{key:"forChild",value:function(){return{ngModule:w,providers:[]}}}]),w}();return xe.\u0275fac=function(k){return new(k||xe)},xe.\u0275mod=P.oAB({type:xe}),xe.\u0275inj=P.cJS({}),xe}()},19727:function(Li,Pt){var e,X;X=this,e=function(){return X.Chartist=function(){var X={version:"0.11.4"};return function(P,v){"use strict";var te=P.window,xe=P.document;v.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},v.noop=function(w){return w},v.alphaNumerate=function(w){return String.fromCharCode(97+w%26)},v.extend=function(w){var k,I,b;for(w=w||{},k=1;k<arguments.length;k++)for(var C in I=arguments[k])w[C]="object"!=typeof(b=I[C])||null===b||b instanceof Array?b:v.extend(w[C],b);return w},v.replaceAll=function(w,k,I){return w.replace(new RegExp(k,"g"),I)},v.ensureUnit=function(w,k){return"number"==typeof w&&(w+=k),w},v.quantity=function(w){if("string"==typeof w){var k=/^(\d+)\s*(.*)$/g.exec(w);return{value:+k[1],unit:k[2]||void 0}}return{value:w}},v.querySelector=function(w){return w instanceof Node?w:xe.querySelector(w)},v.times=function(w){return Array.apply(null,new Array(w))},v.sum=function(w,k){return w+(k||0)},v.mapMultiply=function(w){return function(k){return k*w}},v.mapAdd=function(w){return function(k){return k+w}},v.serialMap=function(w,k){var I=[],b=Math.max.apply(null,w.map(function(C){return C.length}));return v.times(b).forEach(function(C,L){var j=w.map(function(N){return N[L]});I[L]=k.apply(null,j)}),I},v.roundWithPrecision=function(w,k){var I=Math.pow(10,k||v.precision);return Math.round(w*I)/I},v.precision=8,v.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},v.serialize=function(w){return null==w?w:("number"==typeof w?w=""+w:"object"==typeof w&&(w=JSON.stringify({data:w})),Object.keys(v.escapingMap).reduce(function(k,I){return v.replaceAll(k,I,v.escapingMap[I])},w))},v.deserialize=function(w){if("string"!=typeof w)return w;w=Object.keys(v.escapingMap).reduce(function(k,I){return v.replaceAll(k,v.escapingMap[I],I)},w);try{w=void 0!==(w=JSON.parse(w)).data?w.data:w}catch(k){}return w},v.createSvg=function(w,k,I,b){var C;return k=k||"100%",I=I||"100%",Array.prototype.slice.call(w.querySelectorAll("svg")).filter(function(j){return j.getAttributeNS(v.namespaces.xmlns,"ct")}
1).forEach(function(j){w.removeChild(j)}),(C=new v.Svg("svg").attr({width:k,height:I}).addClass(b))._node.style.width=k,C._node.style.height=I,w.appendChild(C._node),C},v.normalizeData=function(w,k,I){var b,C={raw:w,normalized:{}};return C.normalized.series=v.getDataArray({series:w.series||[]},k,I),b=C.normalized.series.every(function(L){return L instanceof Array})?Math.max.apply(null,C.normalized.series.map(function(L){return L.length})):C.normalized.series.length,C.normalized.labels=(w.labels||[]).slice(),Array.prototype.push.apply(C.normalized.labels,v.times(Math.max(0,b-C.normalized.labels.length)).map(function(){return""})),k&&v.reverseData(C.normalized),C},v.safeHasProperty=function(w,k){return null!==w&&"object"==typeof w&&w.hasOwnProperty(k)},v.isDataHoleValue=function(w){return null==w||"number"==typeof w&&isNaN(w)},v.reverseData=function(w){w.labels.reverse(),w.series.reverse();for(var k=0;k<w.series.length;k++)"object"==typeof w.series[k]&&void 0!==w.series[k].data?w.series[k].data.reverse():w.series[k]instanceof Array&&w.series[k].reverse()},v.getDataArray=function(w,k,I){return w.series.map(function b(C){if(v.safeHasProperty(C,"value"))return b(C.value);if(v.safeHasProperty(C,"data"))return b(C.data);if(C instanceof Array)return C.map(b);if(!v.isDataHoleValue(C)){if(I){var L={};return"string"==typeof I?L[I]=v.getNumberOrUndefined(C):L.y=v.getNumberOrUndefined(C),L.x=C.hasOwnProperty("x")?v.getNumberOrUndefined(C.x):L.x,L.y=C.hasOwnProperty("y")?v.getNumberOrUndefined(C.y):L.y,L}return v.getNumberOrUndefined(C)}})},v.normalizePadding=function(w,k){return k=k||0,"number"==typeof w?{top:w,right:w,bottom:w,left:w}:{top:"number"==typeof w.top?w.top:k,right:"number"==typeof w.right?w.right:k,bottom:"number"==typeof w.bottom?w.bottom:k,left:"number"==typeof w.left?w.left:k}},v.getMetaData=function(w,k){var I=w.data?w.data[k]:w[k];return I?I.meta:void 0},v.orderOfMagnitude=function(w){return Math.floor(Math.log(Math.abs(w))/Math.LN10)},v.projectLength=function(w,k,I){return k/I.range*w},v.getAvailableHeight=function(w,k){return Math.max((v.quantity(k.height).value||w.height())-(k.chartPadding.top+k.chartPadding.bottom)-k.axisX.offset,0)},v.getHighLow=function(w,k,I){var b={high:void 0===(k=v.extend({},k,I?k["axis"+I.toUpperCase()]:{})).high?-Number.MAX_VALUE:+k.high,low:void 0===k.low?Number.MAX_VALUE:+k.low},C=void 0===k.high,L=void 0===k.low;return(C||L)&&function j(N){if(void 0!==N)if(N instanceof Array)for(var D=0;D<N.length;D++)j(N[D]);else{var E=I?+N[I]:+N;C&&E>b.high&&(b.high=E),L&&E<b.low&&(b.low=E)}}(w),(k.referenceValue||0===k.referenceValue)&&(b.high=Math.max(k.referenceValue,b.high),b.low=Math.min(k.referenceValue,b.low)),b.high<=b.low&&(0===b.low?b.high=1:b.low<0?b.high=0:(b.high>0||(b.high=1),b.low=0)),b},v.isNumeric=function(w){return null!==w&&isFinite(w)},v.isFalseyButZero=function(w){return!w&&0!==w},v.getNumberOrUndefined=function(w){return v.isNumeric(w)?+w:void 0},v.isMultiValue=function(w){return"object"==typeof w&&("x"in w||"y"in w)},v.getMultiValue=function(w,k){return v.isMultiValue(w)?v.getNumberOrUndefined(w[k||"y"]):v.getNumberOrUndefined(w)},v.rho=function(w){if(1===w)return w;function k(j,N){return j%N==0?N:k(N,j%N)}function I(j){return j*j+1}var L,b=2,C=2;if(w%2==0)return 2;do{b=I(b)%w,C=I(I(C))%w,L=k(Math.abs(b-C),w)}while(1===L);return L},v.getBounds=function(w,k,I,b){var C,j,N,L=0,D={high:k.high,low:k.low};D.valueRange=D.high-D.low,D.oom=v.orderOfMagnitude(D.valueRange),D.step=Math.pow(10,D.oom),D.min=Math.floor(D.low/D.step)*D.step,D.max=Math.ceil(D.high/D.step)*D.step,D.range=D.max-D.min,D.numberOfSteps=Math.round(D.range/D.step);var R=v.projectLength(w,D.step,D)<I,F=b?v.rho(D.range):0;if(b&&v.projectLength(w,1,D)>=I)D.step=1;else if(b&&F<D.step&&v.projectLength(w,F,D)>=I)D.step=F;else for(;;){if(R&&v.projectLength(w,D.step,D)<=I)D.step*=2;else{if(R||!(v.projectLength(w,D.step/2,D)>=I))break;if(D.step/=2,b&&D.step%1!=0){D.step*=2;break}}if(L++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var H=2221e-19;function G(ce,W){return ce===(ce+=W)&&(ce*=1+(W>0?H:-H)),ce}for(D.step=Math.max(D.step,H),j=D.min,N=D.max;j+D.step<=D.low;)j=G(j,D.step);for(;N-D.step>=D.high;)N=G(N,-D.step);D.min=j,D.max=N,D.range=D.max-D.min;var ie=[];for(C=D.min;C<=D.max;C=G(C,D.step)){var Te=v.roundWithPrecision(C);Te!==ie[ie.length-1]&&ie.push(Te)}return D.values=ie,D},v.polarToCartesian=function(w,k,I,b){var C=(b-90)*Math.PI/180;return{x:w+I*Math.cos(C),y:k+I*Math.sin(C)}},v.createChartRect=function(w,k,I){var b=!(!k.axisX&&!k.axisY),C=b?k.axisY.offset:0,L=b?k.axisX.offset:0,j=w.width()||v.quantity(k.width).value||0,N=w.height()||v.quantity(k.height).value||0,D=v.normalizePadding(k.chartPadding,I);j=Math.max(j,C+D.left+D.right),N=Math.max(N,L+D.top+D.bottom);var E={padding:D,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return b?("start"===k.axisX.position?(E.y2=D.top+L,E.y1=Math.max(N-D.bottom,E.y2+1)):(E.y2=D.top,E.y1=Math.max(N-D.bottom-L,E.y2+1)),"start"===k.axisY.position?(E.x1=D.left+C,E.x2=Math.max(j-D.right,E.x1+1)):(E.x1=D.left,E.x2=Math.max(j-D.right-C,E.x1+1))):(E.x1=D.left,E.x2=Math.max(j-D.right,E.x1+1),E.y2=D.top,E.y1=Math.max(N-D.bottom,E.y2+1)),E},v.createGrid=function(w,k,I,b,C,L,j,N){var D={};D[I.units.pos+"1"]=w,D[I.units.pos+"2"]=w,D[I.counterUnits.pos+"1"]=b,D[I.counterUnits.pos+"2"]=b+C;var E=L.elem("line",D,j.join(" "));N.emit("draw",v.extend({type:"grid",axis:I,index:k,group:L,element:E},D))}
1,v.createGridBackground=function(w,k,I,b){var C=w.elem("rect",{x:k.x1,y:k.y2,width:k.width(),height:k.height()},I,!0);b.emit("draw",{type:"gridBackground",group:w,element:C})},v.createLabel=function(w,k,I,b,C,L,j,N,D,E,R){var F,H={};if(H[C.units.pos]=w+j[C.units.pos],H[C.counterUnits.pos]=j[C.counterUnits.pos],H[C.units.len]=k,H[C.counterUnits.len]=Math.max(0,L-10),E){var G=xe.createElement("span");G.className=D.join(" "),G.setAttribute("xmlns",v.namespaces.xhtml),G.innerText=b[I],G.style[C.units.len]=Math.round(H[C.units.len])+"px",G.style[C.counterUnits.len]=Math.round(H[C.counterUnits.len])+"px",F=N.foreignObject(G,v.extend({style:"overflow: visible;"},H))}else F=N.elem("text",H,D.join(" ")).text(b[I]);R.emit("draw",v.extend({type:"label",axis:C,index:I,group:N,element:F,text:b[I]},H))},v.getSeriesOption=function(w,k,I){if(w.name&&k.series&&k.series[w.name]){var b=k.series[w.name];return b.hasOwnProperty(I)?b[I]:k[I]}return k[I]},v.optionsProvider=function(w,k,I){var C,j,b=v.extend({},w),L=[];function N(R){var F=C;if(C=v.extend({},b),k)for(j=0;j<k.length;j++)te.matchMedia(k[j][0]).matches&&(C=v.extend(C,k[j][1]));I&&R&&I.emit("optionsChanged",{previousOptions:F,currentOptions:C})}
1if(!te.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(k)for(j=0;j<k.length;j++){var E=te.matchMedia(k[j][0]);E.addListener(N),L.push(E)}return N(),{removeMediaQueryListeners:function D(){L.forEach(function(R){R.removeListener(N)})},getCurrentOptions:function(){return v.extend({},C)}}},v.splitIntoSegments=function(w,k,I){I=v.extend({},{increasingX:!1,fillHoles:!1},I);for(var C=[],L=!0,j=0;j<w.length;j+=2)void 0===v.getMultiValue(k[j/2].value)?I.fillHoles||(L=!0):(I.increasingX&&j>=2&&w[j]<=w[j-2]&&(L=!0),L&&(C.push({pathCoordinates:[],valueData:[]}),L=!1),C[C.length-1].pathCoordinates.push(w[j],w[j+1]),C[C.length-1].valueData.push(k[j/2]));return C}}(this||global,X),function(P,v){"use strict";v.Interpolation={},v.Interpolation.none=function(te){return te=v.extend({},{fillHoles:!1},te),function(k,I){for(var b=new v.Svg.Path,C=!0,L=0;L<k.length;L+=2){var j=k[L],N=k[L+1],D=I[L/2];void 0!==v.getMultiValue(D.value)?(C?b.move(j,N,!1,D):b.line(j,N,!1,D),C=!1):te.fillHoles||(C=!0)}return b}},v.Interpolation.simple=function(te){te=v.extend({},{divisor:2,fillHoles:!1},te);var w=1/Math.max(1,te.divisor);return function(I,b){for(var L,j,N,C=new v.Svg.Path,D=0;D<I.length;D+=2){var E=I[D],R=I[D+1],F=(E-L)*w,H=b[D/2];void 0!==H.value?(void 0===N?C.move(E,R,!1,H):C.curve(L+F,j,E-F,R,E,R,!1,H),L=E,j=R,N=H):te.fillHoles||(L=E=N=void 0)}return C}},v.Interpolation.cardinal=function(te){te=v.extend({},{tension:1,fillHoles:!1},te);var w=Math.min(1,Math.max(0,te.tension)),k=1-w;return function I(b,C){var L=v.splitIntoSegments(b,C,{fillHoles:te.fillHoles});if(L.length){if(L.length>1){var j=[];return L.forEach(function(H){j.push(I(H.pathCoordinates,H.valueData))}),v.Svg.Path.join(j)}if(C=L[0].valueData,(b=L[0].pathCoordinates).length<=4)return v.Interpolation.none()(b,C);for(var N=(new v.Svg.Path).move(b[0],b[1],!1,C[0]),E=0,R=b.length;R-2>E;E+=2){var F=[{x:+b[E-2],y:+b[E-1]},{x:+b[E],y:+b[E+1]},{x:+b[E+2],y:+b[E+3]},{x:+b[E+4],y:+b[E+5]}];R-4===E?F[3]=F[2]:E||(F[0]={x:+b[E],y:+b[E+1]}),N.curve(w*(6*F[1].x-F[0].x+F[2].x)/6+k*F[2].x,w*(6*F[1].y-F[0].y+F[2].y)/6+k*F[2].y,w*(F[1].x+6*F[2].x-F[3].x)/6+k*F[2].x,w*(F[1].y+6*F[2].y-F[3].y)/6+k*F[2].y,F[2].x,F[2].y,!1,C[(E+2)/2])}return N}return v.Interpolation.none()([])}},v.Interpolation.monotoneCubic=function(te){return te=v.extend({},{fillHoles:!1},te),function w(k,I){var b=v.splitIntoSegments(k,I,{fillHoles:te.fillHoles,increasingX:!0});if(b.length){if(b.length>1){var C=[];return b.forEach(function(ie){C.push(w(ie.pathCoordinates,ie.valueData))}),v.Svg.Path.join(C)}if(I=b[0].valueData,(k=b[0].pathCoordinates).length<=4)return v.Interpolation.none()(k,I);var N,G,L=[],j=[],D=k.length/2,E=[],R=[],F=[],H=[];for(N=0;N<D;N++)L[N]=k[2*N],j[N]=k[2*N+1];for(N=0;N<D-1;N++)F[N]=j[N+1]-j[N],H[N]=L[N+1]-L[N],R[N]=F[N]/H[N];for(E[0]=R[0],E[D-1]=R[D-2],N=1;N<D-1;N++)0===R[N]||0===R[N-1]||R[N-1]>0!=R[N]>0?E[N]=0:(E[N]=3*(H[N-1]+H[N])/((2*H[N]+H[N-1])/R[N-1]+(H[N]+2*H[N-1])/R[N]),isFinite(E[N])||(E[N]=0));for(G=(new v.Svg.Path).move(L[0],j[0],!1,I[0]),N=0;N<D-1;N++)G.curve(L[N]+H[N]/3,j[N]+E[N]*H[N]/3,L[N+1]-H[N]/3,j[N+1]-E[N+1]*H[N]/3,L[N+1],j[N+1],!1,I[N+1]);return G}return v.Interpolation.none()([])}},v.Interpolation.step=function(te){return te=v.extend({},{postpone:!0,fillHoles:!1},te),function(k,I){for(var C,L,j,b=new v.Svg.Path,N=0;N<k.length;N+=2){var D=k[N],E=k[N+1],R=I[N/2];void 0!==R.value?(void 0===j?b.move(D,E,!1,R):(te.postpone?b.line(D,L,!1,j):b.line(C,E,!1,R),b.line(D,E,!1,R)),C=D,L=E,j=R):te.fillHoles||(C=L=j=void 0)}return b}}}(this||global,X),function(P,v){"use strict";v.EventEmitter=function(){var te=[];return{addEventHandler:function xe(I,b){te[I]=te[I]||[],te[I].push(b)},removeEventHandler:function w(I,b){te[I]&&(b?(te[I].splice(te[I].indexOf(b),1),0===te[I].length&&delete te[I]):delete te[I])},emit:function k(I,b){te[I]&&te[I].forEach(function(C){C(b)}),te["*"]&&te["*"].forEach(function(C){C(I,b)})}}}}(this||global,X),function(P,v){"use strict";function te(k){var I=[];if(k.length)for(var b=0;b<k.length;b++)I.push(k[b]);return I}v.Class={extend:function xe(k,I){var b=I||this.prototype||v.Class,C=Object.create(b);v.Class.cloneDefinitions(C,k);var L=function(){var D,N=C.constructor||function(){};return D=this===v?Object.create(C):this,N.apply(D,Array.prototype.slice.call(arguments,0)),D};return L.prototype=C,L.super=b,L.extend=this.extend,L},cloneDefinitions:function w(){var k=te(arguments),I=k[0];
1return k.splice(1,k.length-1).forEach(function(b){Object.getOwnPropertyNames(b).forEach(function(C){delete I[C],Object.defineProperty(I,C,Object.getOwnPropertyDescriptor(b,C))})}),I}}}(this||global,X),function(P,v){"use strict";var te=P.window;function b(){te.addEventListener("resize",this.resizeListener),this.optionsProvider=v.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(L){L instanceof Array?L[0](this,L[1]):L(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}v.Base=v.Class.extend({constructor:function C(L,j,N,D,E){this.container=v.querySelector(L),this.data=j||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=N,this.options=D,this.responsiveOptions=E,this.eventEmitter=v.EventEmitter(),this.supportsForeignObject=v.Svg.isSupported("Extensibility"),this.supportsAnimations=v.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(b.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function xe(L,j,N){return L&&(this.data=L||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),j&&(this.options=v.extend({},N?this.options:this.defaultOptions,j),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=v.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function w(){return this.initializeTimeoutId?te.clearTimeout(this.initializeTimeoutId):(te.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function k(L,j){return this.eventEmitter.addEventHandler(L,j),this},off:function I(L,j){return this.eventEmitter.removeEventHandler(L,j),this},version:v.version,supportsForeignObject:!1})}(this||global,X),function(P,v){"use strict";var te=P.document;v.Svg=v.Class.extend({constructor:function xe(z,V,ue,_e,Oe){z instanceof Element?this._node=z:(this._node=te.createElementNS(v.namespaces.svg,z),"svg"===z&&this.attr({"xmlns:ct":v.namespaces.ct})),V&&this.attr(V),ue&&this.addClass(ue),_e&&(Oe&&_e._node.firstChild?_e._node.insertBefore(this._node,_e._node.firstChild):_e._node.appendChild(this._node))},attr:function w(z,V){return"string"==typeof z?V?this._node.getAttributeNS(V,z):this._node.getAttribute(z):(Object.keys(z).forEach(function(ue){if(void 0!==z[ue])if(-1!==ue.indexOf(":")){var _e=ue.split(":");this._node.setAttributeNS(v.namespaces[_e[0]],ue,z[ue])}else this._node.setAttribute(ue,z[ue])}.bind(this)),this)},elem:function k(z,V,ue,_e){return new v.Svg(z,V,ue,this,_e)},parent:function I(){return this._node.parentNode instanceof SVGElement?new v.Svg(this._node.parentNode):null},root:function b(){for(var z=this._node;"svg"!==z.nodeName;)z=z.parentNode;return new v.Svg(z)},querySelector:function C(z){var V=this._node.querySelector(z);return V?new v.Svg(V):null},querySelectorAll:function L(z){var V=this._node.querySelectorAll(z);return V.length?new v.Svg.List(V):null},getNode:function j(){return this._node},foreignObject:function N(z,V,ue,_e){if("string"==typeof z){var Oe=te.createElement("div");Oe.innerHTML=z,z=Oe.firstChild}z.setAttribute("xmlns",v.namespaces.xmlns);var Re=this.elem("foreignObject",V,ue,_e);return Re._node.appendChild(z),Re},text:function D(z){return this._node.appendChild(te.createTextNode(z)),this},empty:function E(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function R(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function F(z){return this._node.parentNode.replaceChild(z._node,this._node),z},append:function H(z,V){return V&&this._node.firstChild?this._node.insertBefore(z._node,this._node.firstChild):this._node.appendChild(z._node),this},classes:function G(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function ie(z){return this._node.setAttribute("class",this.classes(this._node).concat(z.trim().split(/\s+/)).filter(function(V,ue,_e){return _e.indexOf(V)===ue}).join(" ")),this},removeClass:function Te(z){var V=z.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(ue){return-1===V.indexOf(ue)}).join(" ")),this},removeAllClasses:function ce(){return this._node.setAttribute("class",""),this},height:function W(){return this._node.getBoundingClientRect().height},width:function ae(){return this._node.getBoundingClientRect().width},animate:function re(z,V,ue){return void 0===V&&(V=!0),Object.keys(z).forEach(function(Oe){function Re(ke,Le){var ct,Gt,xt,nt={};ke.easing&&(xt=ke.easing instanceof Array?ke.easing:v.Svg.Easing[ke.easing],delete ke.easing),ke.begin=v.ensureUnit(ke.begin,"ms"),ke.dur=v.ensureUnit(ke.dur,"ms"),xt&&(ke.calcMode="spline",ke.keySplines=xt.join(" "),ke.keyTimes="0;1"),Le&&(ke.fill="freeze",nt[Oe]=ke.from,this.attr(nt),Gt=v.quantity(ke.begin||0).value,ke.begin="indefinite"),ct=this.elem("animate",v.extend({attributeName:Oe},ke)),Le&&setTimeout(function(){try{ct._node.beginElement()}catch(Yt){nt[Oe]=ke.to,this.attr(nt),ct.remove()}}.bind(this),Gt),ue&&ct._node.addEventListener("beginEvent",function(){ue.emit("animationBegin",{element:this,animate:ct._node,params:ke})}.bind(this)),ct._node.addEventListener("endEvent",function(){ue&&ue.emit("animationEnd",{element:this,animate:ct._node,params:ke}),Le&&(nt[Oe]=ke.to,this.attr(nt),ct.remove())}.bind(this))}z[Oe]instanceof Array?z[Oe].forEach(function(ke){Re.bind(this)(ke,!1)}.bind(this)):Re.bind(this)(z[Oe],V)}.bind(this)),this}}),v.Svg.isSupported=function(z){return te.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+z,"1.1")},v.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},v.Svg.List=v.Class.extend({constructor:function be(z){var V=this;this.svgElements=[];for(var ue=0;ue<z.length;ue++)this.svgElements.push(new v.Svg(z[ue]));Object.keys(v.Svg.prototype).filter(function(_e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(_e)}
1).forEach(function(_e){V[_e]=function(){var Oe=Array.prototype.slice.call(arguments,0);return V.svgElements.forEach(function(Re){v.Svg.prototype[_e].apply(Re,Oe)}),V}})}})}(this||global,X),function(P,v){"use strict";var te={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},xe={accuracy:3};function w(W,ae,re,ye,be,z){var V=v.extend({command:be?W.toLowerCase():W.toUpperCase()},ae,z?{data:z}:{});re.splice(ye,0,V)}function k(W,ae){W.forEach(function(re,ye){te[re.command.toLowerCase()].forEach(function(be,z){ae(re,be,ye,z,W)})})}v.Svg.Path=v.Class.extend({constructor:function I(W,ae){this.pathElements=[],this.pos=0,this.close=W,this.options=v.extend({},xe,ae)},position:function b(W){return void 0!==W?(this.pos=Math.max(0,Math.min(this.pathElements.length,W)),this):this.pos},remove:function C(W){return this.pathElements.splice(this.pos,W),this},move:function L(W,ae,re,ye){return w("M",{x:+W,y:+ae},this.pathElements,this.pos++,re,ye),this},line:function j(W,ae,re,ye){return w("L",{x:+W,y:+ae},this.pathElements,this.pos++,re,ye),this},curve:function N(W,ae,re,ye,be,z,V,ue){return w("C",{x1:+W,y1:+ae,x2:+re,y2:+ye,x:+be,y:+z},this.pathElements,this.pos++,V,ue),this},arc:function D(W,ae,re,ye,be,z,V,ue,_e){return w("A",{rx:+W,ry:+ae,xAr:+re,lAf:+ye,sf:+be,x:+z,y:+V},this.pathElements,this.pos++,ue,_e),this},scale:function F(W,ae){return k(this.pathElements,function(re,ye){re[ye]*="x"===ye[0]?W:ae}),this},translate:function H(W,ae){return k(this.pathElements,function(re,ye){re[ye]+="x"===ye[0]?W:ae}),this},transform:function G(W){return k(this.pathElements,function(ae,re,ye,be,z){var V=W(ae,re,ye,be,z);(V||0===V)&&(ae[re]=V)}),this},parse:function E(W){var ae=W.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(be,z){return z.match(/[A-Za-z]/)&&be.push([]),be[be.length-1].push(z),be},[]);"Z"===ae[ae.length-1][0].toUpperCase()&&ae.pop();var re=ae.map(function(be){var z=be.shift(),V=te[z.toLowerCase()];return v.extend({command:z},V.reduce(function(ue,_e,Oe){return ue[_e]=+be[Oe],ue},{}))}),ye=[this.pos,0];return Array.prototype.push.apply(ye,re),Array.prototype.splice.apply(this.pathElements,ye),this.pos+=re.length,this},stringify:function R(){var W=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(ae,re){var ye=te[re.command.toLowerCase()].map(function(be){return this.options.accuracy?Math.round(re[be]*W)/W:re[be]}.bind(this));return ae+re.command+ye.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function ie(W){var ae=new v.Svg.Path(W||this.close);return ae.pos=this.pos,ae.pathElements=this.pathElements.slice().map(function(ye){return v.extend({},ye)}),ae.options=v.extend({},this.options),ae},splitByCommand:function Te(W){var ae=[new v.Svg.Path];return this.pathElements.forEach(function(re){re.command===W.toUpperCase()&&0!==ae[ae.length-1].pathElements.length&&ae.push(new v.Svg.Path),ae[ae.length-1].pathElements.push(re)}),ae}}),v.Svg.Path.elementDescriptions=te,v.Svg.Path.join=function ce(W,ae,re){for(var ye=new v.Svg.Path(ae,re),be=0;be<W.length;be++)for(var z=W[be],V=0;V<z.pathElements.length;V++)ye.pathElements.push(z.pathElements[V]);return ye}}(this||global,X),function(P,v){"use strict";var w={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};v.Axis=v.Class.extend({constructor:function k(b,C,L,j){this.units=b,this.counterUnits=b===w.x?w.y:w.x,this.chartRect=C,this.axisLength=C[b.rectEnd]-C[b.rectStart],this.gridOffset=C[b.rectOffset],this.ticks=L,this.options=j},createGridAndLabels:function I(b,C,L,j,N){var D=j["axis"+this.units.pos.toUpperCase()],E=this.ticks.map(this.projectValue.bind(this)),R=this.ticks.map(D.labelInterpolationFnc);E.forEach(function(F,H){var ie,G={x:0,y:0};ie=E[H+1]?E[H+1]-F:Math.max(this.axisLength-F,30),(!v.isFalseyButZero(R[H])||""===R[H])&&("x"===this.units.pos?(F=this.chartRect.x1+F,G.x=j.axisX.labelOffset.x,G.y="start"===j.axisX.position?this.chartRect.padding.top+j.axisX.labelOffset.y+(L?5:20):this.chartRect.y1+j.axisX.labelOffset.y+(L?5:20)):(F=this.chartRect.y1-F,G.y=j.axisY.labelOffset.y-(L?ie:0),G.x="start"===j.axisY.position?L?this.chartRect.padding.left+j.axisY.labelOffset.x:this.chartRect.x1-10:this.chartRect.x2+j.axisY.labelOffset.x+10),D.showGrid&&v.createGrid(F,H,this,this.gridOffset,this.chartRect[this.counterUnits.len](),b,[j.classNames.grid,j.classNames[this.units.dir]],N),D.showLabel&&v.createLabel(F,ie,H,R,this,D.offset,G,C,[j.classNames.label,j.classNames[this.units.dir],"start"===D.position?j.classNames[D.position]:j.classNames.end],L,N))}.bind(this))}
1,projectValue:function(C,L,j){throw new Error("Base axis can't be instantiated!")}}),v.Axis.units=w}(this||global,X),function(P,v){"use strict";v.AutoScaleAxis=v.Axis.extend({constructor:function w(I,b,C,L){var j=L.highLow||v.getHighLow(b,L,I.pos);this.bounds=v.getBounds(C[I.rectEnd]-C[I.rectStart],j,L.scaleMinSpace||20,L.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},v.AutoScaleAxis.super.constructor.call(this,I,C,this.bounds.values,L)},projectValue:function k(I){return this.axisLength*(+v.getMultiValue(I,this.units.pos)-this.bounds.min)/this.bounds.range}})}(this||global,X),function(P,v){"use strict";v.FixedScaleAxis=v.Axis.extend({constructor:function w(I,b,C,L){var j=L.highLow||v.getHighLow(b,L,I.pos);this.divisor=L.divisor||1,this.ticks=L.ticks||v.times(this.divisor).map(function(N,D){return j.low+(j.high-j.low)/this.divisor*D}.bind(this)),this.ticks.sort(function(N,D){return N-D}),this.range={min:j.low,max:j.high},v.FixedScaleAxis.super.constructor.call(this,I,C,this.ticks,L),this.stepLength=this.axisLength/this.divisor},projectValue:function k(I){return this.axisLength*(+v.getMultiValue(I,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(this||global,X),function(P,v){"use strict";v.StepAxis=v.Axis.extend({constructor:function w(I,b,C,L){v.StepAxis.super.constructor.call(this,I,C,L.ticks,L);var j=Math.max(1,L.ticks.length-(L.stretch?1:0));this.stepLength=this.axisLength/j}
1,projectValue:function k(I,b){return this.stepLength*b}})}(this||global,X),function(P,v){"use strict";var w={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:v.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:v.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};v.Line=v.Base.extend({constructor:function I(b,C,L,j){v.Line.super.constructor.call(this,b,C,w,v.extend({},w,L),j)},createChart:function k(b){var C=v.normalizeData(this.data,b.reverseData,!0);this.svg=v.createSvg(this.container,b.width,b.height,b.classNames.chart);var E,R,L=this.svg.elem("g").addClass(b.classNames.gridGroup),j=this.svg.elem("g"),N=this.svg.elem("g").addClass(b.classNames.labelGroup),D=v.createChartRect(this.svg,b,w.padding);E=void 0===b.axisX.type?new v.StepAxis(v.Axis.units.x,C.normalized.series,D,v.extend({},b.axisX,{ticks:C.normalized.labels,stretch:b.fullWidth})):b.axisX.type.call(v,v.Axis.units.x,C.normalized.series,D,b.axisX),R=void 0===b.axisY.type?new v.AutoScaleAxis(v.Axis.units.y,C.normalized.series,D,v.extend({},b.axisY,{high:v.isNumeric(b.high)?b.high:b.axisY.high,low:v.isNumeric(b.low)?b.low:b.axisY.low})):b.axisY.type.call(v,v.Axis.units.y,C.normalized.series,D,b.axisY),E.createGridAndLabels(L,N,this.supportsForeignObject,b,this.eventEmitter),R.createGridAndLabels(L,N,this.supportsForeignObject,b,this.eventEmitter),b.showGridBackground&&v.createGridBackground(L,D,b.classNames.gridBackground,this.eventEmitter),C.raw.series.forEach(function(F,H){var G=j.elem("g");G.attr({"ct:series-name":F.name,"ct:meta":v.serialize(F.meta)}),G.addClass([b.classNames.series,F.className||b.classNames.series+"-"+v.alphaNumerate(H)].join(" "));var ie=[],Te=[];C.normalized.series[H].forEach(function(z,V){var ue={x:D.x1+E.projectValue(z,V,C.normalized.series[H]),y:D.y1-R.projectValue(z,V,C.normalized.series[H])};ie.push(ue.x,ue.y),Te.push({value:z,valueIndex:V,meta:v.getMetaData(F,V)})}.bind(this));var ce={lineSmooth:v.getSeriesOption(F,b,"lineSmooth"),showPoint:v.getSeriesOption(F,b,"showPoint"),showLine:v.getSeriesOption(F,b,"showLine"),showArea:v.getSeriesOption(F,b,"showArea"),areaBase:v.getSeriesOption(F,b,"areaBase")},ae=("function"==typeof ce.lineSmooth?ce.lineSmooth:ce.lineSmooth?v.Interpolation.monotoneCubic():v.Interpolation.none())(ie,Te);if(ce.showPoint&&ae.pathElements.forEach(function(z){var V=G.elem("line",{x1:z.x,y1:z.y,x2:z.x+.01,y2:z.y},b.classNames.point).attr({"ct:value":[z.data.value.x,z.data.value.y].filter(v.isNumeric).join(","),"ct:meta":v.serialize(z.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:z.data.value,index:z.data.valueIndex,meta:z.data.meta,series:F,seriesIndex:H,axisX:E,axisY:R,group:G,element:V,x:z.x,y:z.y})}.bind(this)),ce.showLine){var re=G.elem("path",{d:ae.stringify()},b.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:C.normalized.series[H],path:ae.clone(),chartRect:D,index:H,series:F,seriesIndex:H,seriesMeta:F.meta,axisX:E,axisY:R,group:G,element:re})}if(ce.showArea&&R.range){var ye=Math.max(Math.min(ce.areaBase,R.range.max),R.range.min),be=D.y1-R.projectValue(ye);ae.splitByCommand("M").filter(function(V){return V.pathElements.length>1}).map(function(V){var ue=V.pathElements[0],_e=V.pathElements[V.pathElements.length-1];return V.clone(!0).position(0).remove(1).move(ue.x,be).line(ue.x,ue.y).position(V.pathElements.length+1).line(_e.x,be)}).forEach(function(V){var ue=G.elem("path",{d:V.stringify()},b.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:C.normalized.series[H],path:V.clone(),series:F,seriesIndex:H,axisX:E,axisY:R,chartRect:D,index:H,group:G,element:ue})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:R.bounds,chartRect:D,axisX:E,axisY:R,svg:this.svg,options:b})}})}(this||global,X),function(P,v){"use strict";var w={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0}
1,showLabel:!0,showGrid:!0,labelInterpolationFnc:v.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:v.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};v.Bar=v.Base.extend({constructor:function I(b,C,L,j){v.Bar.super.constructor.call(this,b,C,w,v.extend({},w,L),j)},createChart:function k(b){var C,L;b.distributeSeries?(C=v.normalizeData(this.data,b.reverseData,b.horizontalBars?"x":"y")).normalized.series=C.normalized.series.map(function(ae){return[ae]}):C=v.normalizeData(this.data,b.reverseData,b.horizontalBars?"x":"y"),this.svg=v.createSvg(this.container,b.width,b.height,b.classNames.chart+(b.horizontalBars?" "+b.classNames.horizontalBars:""));var j=this.svg.elem("g").addClass(b.classNames.gridGroup),N=this.svg.elem("g"),D=this.svg.elem("g").addClass(b.classNames.labelGroup);if(b.stackBars&&0!==C.normalized.series.length){var E=v.serialMap(C.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(re){return re}).reduce(function(re,ye){return{x:re.x+(ye&&ye.x)||0,y:re.y+(ye&&ye.y)||0}},{x:0,y:0})});L=v.getHighLow([E],b,b.horizontalBars?"x":"y")}else L=v.getHighLow(C.normalized.series,b,b.horizontalBars?"x":"y");L.high=+b.high||(0===b.high?0:L.high),L.low=+b.low||(0===b.low?0:L.low);var F,H,G,ie,Te,R=v.createChartRect(this.svg,b,w.padding);H=b.distributeSeries&&b.stackBars?C.normalized.labels.slice(0,1):C.normalized.labels,b.horizontalBars?(F=ie=void 0===b.axisX.type?new v.AutoScaleAxis(v.Axis.units.x,C.normalized.series,R,v.extend({},b.axisX,{highLow:L,referenceValue:0})):b.axisX.type.call(v,v.Axis.units.x,C.normalized.series,R,v.extend({},b.axisX,{highLow:L,referenceValue:0})),G=Te=void 0===b.axisY.type?new v.StepAxis(v.Axis.units.y,C.normalized.series,R,{ticks:H}):b.axisY.type.call(v,v.Axis.units.y,C.normalized.series,R,b.axisY)):(G=ie=void 0===b.axisX.type?new v.StepAxis(v.Axis.units.x,C.normalized.series,R,{ticks:H}):b.axisX.type.call(v,v.Axis.units.x,C.normalized.series,R,b.axisX),F=Te=void 0===b.axisY.type?new v.AutoScaleAxis(v.Axis.units.y,C.normalized.series,R,v.extend({},b.axisY,{highLow:L,referenceValue:0})):b.axisY.type.call(v,v.Axis.units.y,C.normalized.series,R,v.extend({},b.axisY,{highLow:L,referenceValue:0})));var ce=b.horizontalBars?R.x1+F.projectValue(0):R.y1-F.projectValue(0),W=[];G.createGridAndLabels(j,D,this.supportsForeignObject,b,this.eventEmitter),F.createGridAndLabels(j,D,this.supportsForeignObject,b,this.eventEmitter),b.showGridBackground&&v.createGridBackground(j,R,b.classNames.gridBackground,this.eventEmitter),C.raw.series.forEach(function(ae,re){var be,z,ye=re-(C.raw.series.length-1)/2;be=b.distributeSeries&&!b.stackBars?G.axisLength/C.normalized.series.length/2:b.distributeSeries&&b.stackBars?G.axisLength/2:G.axisLength/C.normalized.series[re].length/2,(z=N.elem("g")).attr({"ct:series-name":ae.name,"ct:meta":v.serialize(ae.meta)}),z.addClass([b.classNames.series,ae.className||b.classNames.series+"-"+v.alphaNumerate(re)].join(" ")),C.normalized.series[re].forEach(function(V,ue){var _e,Oe,Re,ke;if(ke=b.distributeSeries&&!b.stackBars?re:b.distributeSeries&&b.stackBars?0:ue,_e=b.horizontalBars?{x:R.x1+F.projectValue(V&&V.x?V.x:0,ue,C.normalized.series[re]),y:R.y1-G.projectValue(V&&V.y?V.y:0,ke,C.normalized.series[re])}:{x:R.x1+G.projectValue(V&&V.x?V.x:0,ke,C.normalized.series[re]),y:R.y1-F.projectValue(V&&V.y?V.y:0,ue,C.normalized.series[re])},G instanceof v.StepAxis&&(G.options.stretch||(_e[G.units.pos]+=be*(b.horizontalBars?-1:1)),_e[G.units.pos]+=b.stackBars||b.distributeSeries?0:ye*b.seriesBarDistance*(b.horizontalBars?-1:1)),W[ue]=(Re=W[ue]||ce)-(ce-_e[G.counterUnits.pos]),void 0!==V){var Le={};Le[G.units.pos+"1"]=_e[G.units.pos],Le[G.units.pos+"2"]=_e[G.units.pos],!b.stackBars||"accumulate"!==b.stackMode&&b.stackMode?(Le[G.counterUnits.pos+"1"]=ce,Le[G.counterUnits.pos+"2"]=_e[G.counterUnits.pos]):(Le[G.counterUnits.pos+"1"]=Re,Le[G.counterUnits.pos+"2"]=W[ue]),Le.x1=Math.min(Math.max(Le.x1,R.x1),R.x2),Le.x2=Math.min(Math.max(Le.x2,R.x1),R.x2),Le.y1=Math.min(Math.max(Le.y1,R.y2),R.y1),Le.y2=Math.min(Math.max(Le.y2,R.y2),R.y1);var nt=v.getMetaData(ae,ue);Oe=z.elem("line",Le,b.classNames.bar).attr({"ct:value":[V.x,V.y].filter(v.isNumeric).join(","),"ct:meta":v.serialize(nt)}),this.eventEmitter.emit("draw",v.extend({type:"bar",value:V,index:ue,meta:nt,
1series:ae,seriesIndex:re,axisX:ie,axisY:Te,chartRect:R,group:z,element:Oe},Le))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:F.bounds,chartRect:R,axisX:ie,axisY:Te,svg:this.svg,options:b})}})}(this||global,X),function(P,v){"use strict";var w={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:v.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function k(C,L,j){var N=L.x>C.x;return N&&"explode"===j||!N&&"implode"===j?"start":N&&"implode"===j||!N&&"explode"===j?"end":"middle"}v.Pie=v.Base.extend({constructor:function b(C,L,j,N){v.Pie.super.constructor.call(this,C,L,w,v.extend({},w,j),N)},createChart:function I(C){var N,D,E,R,F,L=v.normalizeData(this.data),j=[],H=C.startAngle;this.svg=v.createSvg(this.container,C.width,C.height,C.donut?C.classNames.chartDonut:C.classNames.chartPie),D=v.createChartRect(this.svg,C,w.padding),E=Math.min(D.width()/2,D.height()/2),F=C.total||L.normalized.series.reduce(function(ce,W){return ce+W},0);var G=v.quantity(C.donutWidth);"%"===G.unit&&(G.value*=E/100),E-=C.donut&&!C.donutSolid?G.value/2:0,R="outside"===C.labelPosition||C.donut&&!C.donutSolid?E:"center"===C.labelPosition?0:C.donutSolid?E-G.value/2:E/2,R+=C.labelOffset;var ie={x:D.x1+D.width()/2,y:D.y2+D.height()/2},Te=1===L.raw.series.filter(function(ce){return ce.hasOwnProperty("value")?0!==ce.value:0!==ce}).length;L.raw.series.forEach(function(ce,W){j[W]=this.svg.elem("g",null,null)}.bind(this)),C.showLabel&&(N=this.svg.elem("g",null,null)),L.raw.series.forEach(function(ce,W){if(0!==L.normalized.series[W]||!C.ignoreEmptyValues){j[W].attr({"ct:series-name":ce.name}),j[W].addClass([C.classNames.series,ce.className||C.classNames.series+"-"+v.alphaNumerate(W)].join(" "));var ae=F>0?H+L.normalized.series[W]/F*360:0,re=Math.max(0,H-(0===W||Te?0:.2));ae-re>=359.99&&(ae=re+359.99);var z,V,ue,ye=v.polarToCartesian(ie.x,ie.y,E,re),be=v.polarToCartesian(ie.x,ie.y,E,ae),_e=new v.Svg.Path(!C.donut||C.donutSolid).move(be.x,be.y).arc(E,E,0,ae-H>180,0,ye.x,ye.y);C.donut?C.donutSolid&&(z=v.polarToCartesian(ie.x,ie.y,ue=E-G.value,H-(0===W||Te?0:.2)),V=v.polarToCartesian(ie.x,ie.y,ue,ae),_e.line(z.x,z.y),_e.arc(ue,ue,0,ae-H>180,1,V.x,V.y)):_e.line(ie.x,ie.y);var Oe=C.classNames.slicePie;C.donut&&(Oe=C.classNames.sliceDonut,C.donutSolid&&(Oe=C.classNames.sliceDonutSolid));var Re=j[W].elem("path",{d:_e.stringify()},Oe);if(Re.attr({"ct:value":L.normalized.series[W],"ct:meta":v.serialize(ce.meta)}),C.donut&&!C.donutSolid&&(Re._node.style.strokeWidth=G.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:L.normalized.series[W],totalDataSum:F,index:W,meta:ce.meta,series:ce,group:j[W],element:Re,path:_e.clone(),center:ie,radiu
1s:E,startAngle:H,endAngle:ae}),C.showLabel){var ke,Le;ke=1===L.raw.series.length?{x:ie.x,y:ie.y}:v.polarToCartesian(ie.x,ie.y,R,H+(ae-H)/2),Le=L.normalized.labels&&!v.isFalseyButZero(L.normalized.labels[W])?L.normalized.labels[W]:L.normalized.series[W];var nt=C.labelInterpolationFnc(Le,W);if(nt||0===nt){var ct=N.elem("text",{dx:ke.x,dy:ke.y,"text-anchor":k(ie,ke,C.labelDirection)},C.classNames.label).text(""+nt);this.eventEmitter.emit("draw",{type:"label",index:W,group:N,element:ct,text:""+nt,x:ke.x,y:ke.y})}}H=ae}}.bind(this)),this.eventEmitter.emit("created",{chartRect:D,svg:this.svg,options:C})},determineAnchorPosition:k})}(this||global,X),X}()}.apply(Pt,[]),void 0!==e&&(Li.exports=e)},51077:(Li,Pt,Be)=>{"use strict";Be.d(Pt,{Ye:()=>j});var e=Be(15671),X=Be(43144),P=Be(70655),v=Be(5e3);function te(){te=function(){return E};var E={},R=Object.prototype,F=R.hasOwnProperty,H="function"==typeof Symbol?Symbol:{},G=H.iterator||"@@iterator",ie=H.asyncIterator||"@@asyncIterator",Te=H.toStringTag||"@@toStringTag";function ce(de,U,me){return Object.defineProperty(de,U,{value:me,enumerable:!0,configurable:!0,writable:!0}),de[U]}try{ce({},"")}catch(de){ce=function(me,Ce,Ae){return me[Ce]=Ae}}function W(de,U,me,Ce){var Dt,_t,He,rt,De=Object.create((U&&U.prototype instanceof ye?U:ye).prototype),at=new Gt(Ce||[]);return De._invoke=(Dt=de,_t=me,He=at,rt="suspendedStart",function(It,ni){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===It)throw ni;return{value:void 0,done:!0}}for(He.method=It,He.arg=ni;;){var gi=He.delegate;if(gi){var Ji=Le(gi,He);if(Ji){if(Ji===re)continue;return Ji}}if("next"===He.method)He.sent=He._sent=He.arg;else if("throw"===He.method){if("suspendedStart"===rt)throw rt="completed",He.arg;He.dispatchException(He.arg)}else"return"===He.method&&He.abrupt("return",He.arg);rt="executing";var fi=ae(Dt,_t,He);if("normal"===fi.type){if(rt=He.done?"completed":"suspendedYield",fi.arg===re)continue;return{value:fi.arg,done:He.done}}"throw"===fi.type&&(rt="completed",He.method="throw",He.arg=fi.arg)}}),De}function ae(de,U,me){try{return{type:"normal",arg:de.call(U,me)}}catch(Ce){return{type:"throw",arg:Ce}}}E.wrap=W;var re={};function ye(){}function be(){}function z(){}var V={};ce(V,G,function(){return this});var ue=Object.getPrototypeOf,_e=ue&&ue(ue(xt([])));_e&&_e!==R&&F.call(_e,G)&&(V=_e);var Oe=z.prototype=ye.prototype=Object.create(V);function Re(de){["next","throw","return"].forEach(function(U){ce(de,U,function(me){return this._invoke(U,me)})})}function ke(de,U){function me(Ae,De,at,Dt){var _t=ae(de[Ae],de,De);if("throw"!==_t.type){var He=_t.arg,rt=He.value;return rt&&"object"==typeof rt&&F.call(rt,"__await")?U.resolve(rt.__await).then(function(It){me("next",It,at,Dt)},function(It){me("throw",It,at,Dt)}):U.resolve(rt).then(function(It){He.value=It,at(He)},function(It){return me("throw",It,at,Dt)})}Dt(_t.arg)}var Ce;this._invoke=function(Ae,De){function at(){return new U(function(Dt,_t){me(Ae,De,Dt,_t)})}return Ce=Ce?Ce.then(at,at):at()}}function Le(de,U){var me=de.iterator[U.method];if(void 0===me){if(U.delegate=null,"throw"===U.method){if(de.iterator.return&&(U.method="return",U.arg=void 0,Le(de,U),"throw"===U.method))return re;U.method="throw",U.arg=new TypeError("The iterator does not provide a 'throw' method")}return re}var Ce=ae(me,de.iterator,U.arg);if("throw"===Ce.type)return U.method="throw",U.arg=Ce.arg,U.delegate=null,re;var Ae=Ce.arg;return Ae?Ae.done?(U[de.resultName]=Ae.value,U.next=de.nextLoc,"return"!==U.method&&(U.method="next",U.arg=void 0),U.delegate=null,re):Ae:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,re)}
1function nt(de){var U={tryLoc:de[0]};1 in de&&(U.catchLoc=de[1]),2 in de&&(U.finallyLoc=de[2],U.afterLoc=de[3]),this.tryEntries.push(U)}function ct(de){var U=de.completion||{};U.type="normal",delete U.arg,de.completion=U}function Gt(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(nt,this),this.reset(!0)}function xt(de){if(de){var U=de[G];if(U)return U.call(de);if("function"==typeof de.next)return de;if(!isNaN(de.length)){var me=-1,Ce=function Ae(){for(;++me<de.length;)if(F.call(de,me))return Ae.value=de[me],Ae.done=!1,Ae;return Ae.value=void 0,Ae.done=!0,Ae};return Ce.next=Ce}}return{next:Yt}}function Yt(){return{value:void 0,done:!0}}return be.prototype=z,ce(Oe,"constructor",z),ce(z,"constructor",be),be.displayName=ce(z,Te,"GeneratorFunction"),E.isGeneratorFunction=function(de){var U="function"==typeof de&&de.constructor;return!!U&&(U===be||"GeneratorFunction"===(U.displayName||U.name))},E.mark=function(de){return Object.setPrototypeOf?Object.setPrototypeOf(de,z):(de.__proto__=z,ce(de,Te,"GeneratorFunction")),de.prototype=Object.create(Oe),de},E.awrap=function(de){return{__await:de}},Re(ke.prototype),ce(ke.prototype,ie,function(){return this}),E.AsyncIterator=ke,E.async=function(de,U,me,Ce,Ae){void 0===Ae&&(Ae=Promise);var De=new ke(W(de,U,me,Ce),Ae);return E.isGeneratorFunction(U)?De:De.next().then(function(at){return at.done?at.value:De.next()})},Re(Oe),ce(Oe,Te,"Generator"),ce(Oe,G,function(){return this}),ce(Oe,"toString",function(){return"[object Generator]"}),E.keys=function(de){var U=[];for(var me in de)U.push(me);return U.reverse(),function Ce(){for(;U.length;){var Ae=U.pop();if(Ae in de)return Ce.value=Ae,Ce.done=!1,Ce}return Ce.done=!0,Ce}},E.values=xt,Gt.prototype={constructor:Gt,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(ct),!U)for(var me in this)"t"===me.charAt(0)&&F.call(this,me)&&!isNaN(+me.slice(1))&&(this[me]=void 0)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if("throw"===U.type)throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var me=this;function Ce(He,rt){return at.type="throw",at.arg=U,me.next=He,rt&&(me.method="next",me.arg=void 0),!!rt}for(var Ae=this.tryEntries.length-1;Ae>=0;--Ae){var De=this.tryEntries[Ae],at=De.completion;if("root"===De.tryLoc)return Ce("end");if(De.tryLoc<=this.prev){var Dt=F.call(De,"catchLoc"),_t=F.call(De,"finallyLoc");if(Dt&&_t){if(this.prev<De.catchLoc)return Ce(De.catchLoc,!0);if(this.prev<De.finallyLoc)return Ce(De.finallyLoc)}else if(Dt){if(this.prev<De.catchLoc)return Ce(De.catchLoc,!0)}else{if(!_t)throw new Error("try statement without catch or finally");if(this.prev<De.finallyLoc)return Ce(De.finallyLoc)}}}},abrupt:function(U,me){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Ae=this.tryEntries[Ce];if(Ae.tryLoc<=this.prev&&F.call(Ae,"finallyLoc")&&this.prev<Ae.finallyLoc){var De=Ae;break}}De&&("break"===U||"continue"===U)&&De.tryLoc<=me&&me<=De.finallyLoc&&(De=null);var at=De?De.completion:{};return at.type=U,at.arg=me,De?(this.method="next",this.next=De.finallyLoc,re):this.complete(at)},complete:function(U,me){if("throw"===U.type)throw U.arg;return"break"===U.type||"continue"===U.type?this.next=U.arg:"return"===U.type?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):"normal"===U.type&&me&&(this.next=me),re},finish:function(U){for(var me=this.tryEntries.length-1;me>=0;--me){var Ce=this.tryEntries[me];if(Ce.finallyLoc===U)return this.complete(Ce.completion,Ce.afterLoc),ct(Ce),re}},catch:function(U){for(var me=this.tryEntries.length-1;me>=0;--me){var Ce=this.tryEntries[me];if(Ce.tryLoc===U){var Ae=Ce.completion;if("throw"===Ae.type){var De=Ae.arg;ct(Ce)}return De}}throw new Error("illegal catch attempt")},delegateYield:function(U,me,Ce){return this.delegate={iterator:xt(U),resultName:me,nextLoc:Ce},"next"===this.method&&(this.arg=void 0),re}},E}var k=function(){var E=function(){function R(F,H){var G=this;(0,e.Z)(this,R),this.googleChartsSettings=H,this.loadedPackages=[],this.loaded=!1,this.googleChartsSettings=Object.assign(Object.assign({},{googleChartsVersion:"50",language:F}),this.googleChartsSettings),this.googleScriptLoadingNotifier=new v.vpe,this.googleChartLoadingNotifier=new v.vpe,this.googleScriptIsLoading=!1,this.googleChartIsLoading=!1,this.loadGoogleChartsScriptPromise=new Promise(function(Te,ce){if("undefined"!=typeof google&&google.charts)Te();else if(G.googleScriptIsLoading)G.googleScriptLoadingNotifier.subscribe(function(ae){ae?Te():ce()});else{G.googleScriptIsLoading=!0;var W=document.createElement("script");
1W.type="text/javascript",W.src="https://www.gstatic.com/charts/loader.js",W.async=!0,W.defer=!0,W.onload=function(){G.googleScriptIsLoading=!1,G.googleScriptLoadingNotifier.emit(!0),Te()},W.onerror=function(){G.googleScriptIsLoading=!1,G.googleScriptLoadingNotifier.emit(!1),ce()},document.getElementsByTagName("head")[0].appendChild(W)}})}return(0,X.Z)(R,[{key:"load",value:function(H){return(0,P.mG)(this,void 0,void 0,te().mark(function G(){var ie=this;return te().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.next=2,this.loadGoogleChartsScriptPromise;case 2:return ce.next=4,new Promise(function(W){ie.googleChartIsLoading?ie.googleChartLoadingNotifier.subscribe(function(){ie.doLoad(W,H)}):ie.doLoad(W,H)});case 4:case"end":return ce.stop()}},G,this)}))}},{key:"doLoad",value:function(H,G){var ie=this;if((G=Object.assign(Object.assign({},this.googleChartsSettings),G)).packages||!this.loaded){if(G.packages){var Te=G.packages.filter(function(W){return ie.loadedPackages.indexOf(W)<0});if(0==Te.length&&this.loaded)return void H();G.packages=Te}var ce=G;ce.callback=function(){ie.googleChartIsLoading=!1,void 0!==ce.packages&&(ie.loadedPackages=ie.loadedPackages.concat(ce.packages)),ie.loaded=!0,ie.googleChartLoadingNotifier.emit(),H()},this.googleChartIsLoading=!0,google.charts.load(G.googleChartsVersion,ce)}else H()}}]),R}();return E.\u0275fac=function(F){return new(F||E)(v.LFG(v.soG),v.LFG("googleChartsSettings",8))},E.\u0275prov=v.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E}(),j=function(){var E=(0,X.Z)(function R(){(0,e.Z)(this,R)});return E.\u0275fac=function(F){return new(F||E)},E.\u0275mod=v.oAB({type:E}),E.\u0275inj=v.cJS({providers:[k]}),E}()},84743:(Li,Pt,Be)=>{"use strict";Be.d(Pt,{f:()=>xe});var e=Be(15671),X=Be(43144),P=Be(5e3),xe=(Be(19727),function(){var w=(0,X.Z)(function k(){(0,e.Z)(this,k)});return w.\u0275fac=function(I){return new(I||w)},w.\u0275mod=P.oAB({type:w}),w.\u0275inj=P.cJS({}),w}())},30252:(Li,Pt,Be)=>{"use strict";Be.d(Pt,{bB:()=>aa});var e=Be(60136),X=Be(29388),P=Be(43144),v=Be(15671),te=Be(5e3),xe=Be(69808),w=Be(8929),k=Be(22313),W=function(){var J=function(){function oe(T){(0,v.Z)(this,oe),this.errorHandler=T}return(0,P.Z)(oe,[{key:"log",value:function(S){if((0,te.X6Q)()){for(var Z,q=arguments.length,fe=new Array(q>1?q-1:0),ve=1;ve<q;ve++)fe[ve-1]=arguments[ve];(Z=console).log.apply(Z,[S].concat(fe))}}},{key:"error",value:function(S){this.errorHandler.handleError(S)}},{key:"warn",value:function(S){for(var Z,q=arguments.length,fe=new Array(q>1?q-1:0),ve=1;ve<q;ve++)fe[ve-1]=arguments[ve];(Z=console).warn.apply(Z,[S].concat(fe))}}]),oe}();return J.\u0275fac=function(T){return new(T||J)(te.LFG(te.qLn))},J.\u0275prov=te.Yz7({token:J,factory:J.\u0275fac}),J}(),_e=new te.OlP("WindowToken"),Oe=function(){function J(){(0,v.Z)(this,J)}return(0,P.Z)(J,[{key:"nativeWindow",get:function(){throw new Error("Not implemented.")}}]),J}(),ct=[{provide:Oe,useClass:function(){var J=function(oe){(0,e.Z)(S,oe);var T=(0,X.Z)(S);function S(){return(0,v.Z)(this,S),T.call(this)}return(0,P.Z)(S,[{key:"nativeWindow",get:function(){return window}}]),S}(Oe);return J.\u0275fac=function(T){return new(T||J)},J.\u0275prov=te.Yz7({token:J,factory:J.\u0275fac}),J}()},{provide:_e,useFactory:function ke(J,oe){return(0,xe.NF)(oe)?J.nativeWindow:{setTimeout:function(Z,q){},clearTimeout:function(Z){}}},deps:[Oe,te.Lbi]}],Gt=new te.OlP("DocumentToken"),xt=function(){function J(){(0,v.Z)(this,J)}return(0,P.Z)(J,[{key:"nativeDocument",get:function(){throw new Error("Not implemented.")}}]),J}(),Ce=[{provide:xt,useClass:function(){var J=function(oe){(0,e.Z)(S,oe);var T=(0,X.Z)(S);function S(){return(0,v.Z)(this,S),T.call(this)}return(0,P.Z)(S,[{key:"nativeDocument",get:function(){return document}}]),S}(xt);return J.\u0275fac=function(T){return new(T||J)},J.\u0275prov=te.Yz7({token:J,factory:J.\u0275fac}),J}()},{provide:Gt,useFactory:function de(J,oe){return(0,xe.NF)(oe)?J.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[xt,te.Lbi]}],It=function(){var J=function(){function oe(T){(0,v.Z)(this,oe),this.eventManager=T,this.resizeSubject=ne
1w w.xQ,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}return(0,P.Z)(oe,[{key:"onResize$",get:function(){return this.resizeSubject.asObservable()}},{key:"onResize",value:function(S){this.resizeSubject.next(S.target)}},{key:"onLoaded",value:function(S){this.windowWidth=S.target}}]),oe}();return J.\u0275fac=function(T){return new(T||J)(te.LFG(k.Qz))},J.\u0275prov=te.Yz7({token:J,factory:J.\u0275fac}),J}(),aa=function(){var J=(0,P.Z)(function oe(){(0,v.Z)(this,oe)});return J.\u0275fac=function(T){return new(T||J)},J.\u0275mod=te.oAB({type:J}),J.\u0275inj=te.cJS({providers:[ct,It,Ce,W],imports:[xe.ez]}),J}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.