text: /*
  All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
  replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
  ZingChart End User License Agreement which can be requested by email at support@zingchart.com.
  
  Build 2.9.2
  */
  ZC.WA.push("range"),ZC.A9F=ZC.NC.C7({$i:function(i){this.b(i);var A=this;A.AF="range",A.AY=new ZC.A7L(A),A.AJ["enable-guide"]=!0,A.AJ["enable-animation"]=!1,A.AJ["enable-scroll"]=!0,A.AJ["enable-preview"]=!0}}),ZC.A7L=ZC.LF.C7({ACQ:function(){return new ZC.TU(this)}}),ZC.TU=ZC.W1.C7({$i:function(i){this.b(i);var A=this;A.AF="range",A.W=1,A.CW="segmented",A.SO=3,A.HQ=.5},TH:function(){return new ZC.A6W(this)},parse:function(){var i=this;i.BP=i.NO(),i.C1=i.BP[0],i.B7=i.BP[1],i.A0=i.BP[0],i.AE=i.BP[1],i.NM(),i.b(),i.applyRGBA(),i.Z5("alpha-area","HQ","f",0,1),i.B1=i.C.BN(i.BT("k")[0]),i.CM=i.C.BN(i.BT("v")[0])},P8:function(){var i,A,n=this,e=n.OI;n.XF(!1);var C=n.C.P;n.W=1;var a=e?C.F:C.I;n.B1.ED||!n.QC&&5*(n.B1.A1-n.B1.V)>a&&(n.W=ZC._i_(5*(n.B1.A1-n.B1.V)/a));var r=n.B1.ED;if(r&&n.PT[0]===ZC.MAX&&n.PT[1]===-ZC.MAX&&(r=!1),r)for(i=0,A=n.R.length;i<A;i++)n.R[i]&&ZC.DT(n.R[i].BU,n.B1.X[n.B1.V],n.B1.X[n.B1.A1])&&(n.R[i].Z=n.KC,n.R[i].MI="min",n.R[i].paint(),n.R[i].MI="max",n.R[i].paint(),delete n.R[i].D["intersect.index"]);else for(i=n.B1.V;i<=n.B1.A1;i+=n.W)n.R[i]&&(n.R[i].MI="min",n.R[i].paint(),n.R[i].MI="max",n.R[i].paint(),delete n.R[i].D["intersect.index"])},paint:function(){var i=this;i.b(),i.KC=i.CO("bl",0),i.A45=ZC.Q.E9(i.CO("bl",1),i.H.AC),i.Q2=ZC.Q.E9(i.CO("bl",2),i.H.AC),i.P8(),i.E=null,i.D6=null,i.ZL=null,i.S1=null}}),ZC.A6W=ZC.M5.C7({$i:function(i){this.b(i);var A=this;A.CG=null,A.CL=null,A.MI="min"},KE:function(i,A,n,e){var C=this;return C.CV=[["%range-set",C.MI],["%node-min-value",C.CG],["%node-max-value",C.CL]],i=C.b(i,A,n,e)},A9L:function(){var i,A,n=this;n.o.value[1]instanceof Array?("string"==typeof n.o.value[0]?-1!==(A=ZC.AV(n.A.B1.IM,n.o.value[0]))?n.BU=A:(n.A.B1.IM.push(n.o.value[0]),n.BU=n.A.B1.IM.length-1):n.BU=ZC._f_(n.o.value[0]),null!==n.BU&&(null!==ZC._n_(n.A.JY[n.BU])&&-1!==ZC.AV(n.A.JY[n.BU],n.L)||n.A.UY(n.BU,n.L)),i=n.o.value[1]):i=n.o.value,"string"==typeof i[0]?-1!==(A=ZC.AV(n.A.CM.JI,i[0]))?n.CG=A:(n.A.CM.JI.push(i[0]),n.CG=n.A.CM.JI.length-1):n.CG=ZC._f_(i[0]),n.DN.push(n.CG),"string"==typeof i[1]?-1!==(A=ZC.AV(n.A.CM.JI,i[1]))?n.CL=A:(n.A.CM.JI.push(i[1]),n.CL=n.A.CM.JI.length-1):n.CL=ZC._f_(i[1]),n.CJ=i.join(" "),n.AD=n.CL},setup:function(){var i=this,A=i.A.OI,n=i.A.B1,e=i.A.CM,C=[n.V,n.A1,e.V,e.A1,i.MI];null===ZC._n_(i.AG)&&(i.AG=[]),i.JL!==C&&(A?(null!==i.BU?i.iY=n.B2(i.BU):i.iY=n.I4(i.L),i.iX=e.B2("min"===i.MI?i.CG:i.CL)):(null!==i.BU?i.iX=n.B2(i.BU):i.iX=n.I4(i.L),i.iY=e.B2("min"===i.MI?i.CG:i.CL)),i.JL=C),i.HY||(i.copy(i.A),i.E7=i.A.E7,i.DE()&&i.parse()),i.D.N9=e.B2(i.CG),i.D.QZ=e.B2(i.CL),i.HY=!0},ABC:function(){return{color:this.B7}},XP:function(){return{"background-color":this.B7,"border-color":this.B7,color:this.C1}},paint:function(){var i,A=this;A.b();var n=A.A.B1,e=A.A.Q2,C=A.A.OI,a=A.A.R;A.setup(),null!==ZC._n_(A.A.o[A.MI+"-line"])&&(A.append(A.A.o[A.MI+"-line"]),A.parse()),A.CZ=!1,A.C6=A.A.CO("bl",1);var r,p,s,t,Z,o,u,l,L,h,D,B,X,_=[],Y=[];switch(A.A.CW){default:var f=!0;!n.ED&&A.L<=n.V&&(f=!1),a[A.L-A.A.W]||(f=!1),f&&(a[A.L-A.A.W].MI=A.MI,a[A.L-A.A.W].setup(),C?(p=[A.D.N9,A.iY],s=[a[A.L-A.A.W].D.N9,a[A.L-A.A.W].iY],t=[A.D.QZ,A.iY],Z=[a[A.L-A.A.W].D.QZ,a[A.L-A.A.W].iY],o=ZC.AO.A4G(p,s,t,Z),r=ZC.DT(o[1],a[A.L-A.A.W].iY,A.iY)?o:ZC.AO.JO(a[A.L-A.A.W].iX,a[A.L-A.A.W].iY,a[A.L].iX,a[A.L].iY),Y.push([r[0],ZC._i_(r[1])]),_.push([r[0],r[1]])):(p=[A.iX,A.D.N9],s=[a[A.L-A.A.W].iX,a[A.L-A.A.W].D.N9],t=[A.iX,A.D.QZ],Z=[a[A.L-A.A.W].iX,a[A.L-A.A.W].D.QZ],o=ZC.AO.A4G(p,s,t,Z),r=ZC.DT(o[0],a[A.L-A.A.W].iX,A.iX)?o:ZC.AO.JO(a[A.L-A.A.W].iX,a[A.L-A.A.W].iY,a[A.L].iX,a[A.L].iY),Y.push([ZC._i_(r[0]),r[1]]),_.push([r[0],r[1]]))),C?Y.push([A.iX,ZC._i_(A.iY)]):Y.push([ZC._i_(A.iX),A.iY]),_.push([A.iX,A.iY]);var v=!0;!n.ED&&A.L>=n.A1&&(v=!1),a[A.L+A.A.W]||(v=!1),v&&(a[A.L+A.A.W].MI=A.MI,a[A.L+A.A.W].setup(),C?(p=[A.D.N9,A.iY],s=[a[A.L+A.A.W].D.N9,a[A.L+A.A.W].iY],t=[A.D.QZ,A.iY],Z=[a[A.L+A.A.W].D.QZ,a[A.L+A.A.W].iY],o=ZC.AO.A4G(p,s,t,Z),r=ZC.DT(o[1],a[A.L+A.A.W].iY,A.iY)?o:ZC.AO.JO(a[A.L].iX,a[A.L].iY,a[A.L+A.A.W].iX,a[A.L+A.A.W].iY),Y.push([r[0],ZC._i_(r[1])]),_.push([r[0],r[1]])):(p=[A.iX,A.D.N9],s=[a[A.L+A.A.W].iX,a[A.L+A.A.W].D.N9],t=[A.iX,A.D.QZ],Z=[a[A.L+A.A.W].iX,a[A.L+A.A.W].D.QZ],o=ZC.AO.A4G(p,s,t,Z),r=ZC.DT(o[0],a[A.L+A.A.W].iX,A.iX)?o:ZC.AO.JO(a[A.L].iX,a[A.L].iY,a[A.L+A.A.W].iX,a[A.L+A.A.W].iY),Y.push([ZC._i_(r[0]),r[1]]),_.push([r[0],r[1]])));break;case"spline":if("undefined"==typeof A.D["intersect.index"]&&(A.D["intersect.index"]=-1,a[A.L+A.A.W])){var M=[],c=[],I=[];for(u=-1;u<3;u++)a[A.L+u]?(a[A.L+u].setup(),M.push(a[A.L+u].D.N9),I.push(a[A.L+u].D.QZ),C?c.push(a[A.L+u].iY):c.push(a[A.L+u].iX)):(M.push(A.D.N9),I.push(A.D.QZ),C?c.push(A.iY):c.push(A.iX));L=ZC._a_(c[2]-c[1]);var W=ZC.AO.XZ(A.A.Q8,M,ZC._i_(L)),d=ZC.AO.XZ(A.A.Q8,I,ZC._i_(L));if(a[A.L+A.A.W].CG===a[A.L+A.A.W].CL)A.D["intersect.index"]=W.length;else{var m=W[0][1]-d[0][1];for(u=1,l=W.length;u<l;u++)if(Math.round(m*(W[u][1]-d[u][1]),2)<=0){A.D["intersect.index"]=u+1;break}}A.D["spline.points.min"]=W,A.D["spline.points.max"]=d,A.D["spline.xdiff"]=L}L=A.D["spline.xdiff"]||n.A9,null===ZC._n_(A.A.ZL)&&(A.A.ZL={}),null===ZC._n_(A.A.S1)&&(A.A.S1={});var Q=[],P=[];if("min"===A.MI){if(null!==ZC._n_(i=A.A.S1.max))for(u=i.length-1;u>=0;u--)A.AG.push(A.A.S1.max[u]);if(null!==ZC._n_(i=A.A.S1.min))for(u=0,l=i.length;u<l;u++)A.AG.push(i[u])}if(null!==ZC._n_(i=A.A.ZL[A.MI]))for(_=[],u=0,l=i.length;u<l;u++)_.push(i[u]);if(a[A.L+A.A.W]&&A.L<n.A1){"min"===A.MI?h=A.D["spline.points.min"]:"max"===A.MI&&(h=A.D["spline.points.max"]),D=-1===A.D["intersect.index"]?ZC._i_(h.length/2):A.D["intersect.index"];var E=C?n.AU?1:-1:n.AU?-1:1;for(u=0;u<D;u++)C?(_.push([h[u][1],A.iY+E*h[u][0]*L]),Y.push([h[u][1],ZC._i_(A.iY+E*h[u][0]*L)])):(_.push([A.iX+E*h[u][0]*L,h[u][1]]),Y.push([ZC._i_(A.iX+E*h[u][0]*L),h[u][1]]));var G=1===A.HQ?ZC.CY(2,D):1;for(u=D-1,l=h.length;u<l;u++)C?Q.push([h[u][1],A.iY+E*h[u][0]*L]):Q.push([A.iX+E*h[u][0]*L,h[u][1]]);for(u=D-G,l=h.length;u<l;u++)C?P.push([h[u][1],ZC._i_(A.iY+E*h[u][0]*L)]):P.push([ZC._i_(A.iX+E*h[u][0]*L),h[u][1]])}else _.push([a[A.L].iX,a[A.L].iY]),C?(Q.push([a[A.L].iX,ZC._i_(a[A.L].iY)]),Y.push([a[A.L].iX,ZC._i_(a[A.L].iY)]),P.push([a[A.L].iX,ZC._i_(a[A.L].iY)])):(Q.push([ZC._i_(a[A.L].iX),a[A.L].iY]),Y.push([ZC._i_(a[A.L].iX),a[A.L].iY]),P.push([ZC._i_(a[A.L].iX),a[A.L].iY]));A.A.ZL[A.MI]=Q,A.A.S1[A.MI]=P}if("min"===A.MI)for(u=0,l=Y.length;u<l;u++)A.AG.push(Y[u]);else for(u=Y.length-1;u>=0;u--)A.AG.push(Y[u]);if("max"===A.MI){var K=new ZC.DW(A.A);K.K=A.K+"-area",K.Z=A.A.CO("bl",0),K.copy(A),K.B0=0,K.AT=0,K.EX=0,K.G6=0,K.parse(),K.E=A.AG,K.C5=A.A.HQ;var O=A.C.P;for(K.D1=[O.iX,O.iY,O.iX+O.I,O.iY+O.F],K.paint(),A.D.pointsarea=[],u=0,l=A.AG.length;u<l;u++)A.D.pointsarea.push(A.AG[u]);A.AG=[],A.A.FW&&(X=K.FC(),B=A.C.K+"-node-area "+A.C.K+"-plot-"+A.A.L+"-node-area zc-node-area",A.A.A.HN.push(ZC.Q.GC("poly",A.A.E8,A.A.IR)+'class="'+B+'" id="'+A.K+'--area" coords="'+X+'" />'))}"min"===A.MI?A.D.points=_:(A.D.points.push(null),A.D.points=A.D.points.concat(_));var g=new ZC.D0(A);g.copy(A),g.append(A.A.o[A.MI+"-line"]),g.parse(),ZC.CS.setup(e,g),ZC.CS.paint(e,g,_),"max"===A.MI&&A.paintPreview(A,A.D.points,A.D.pointsarea);if(C?ZC.DT(A.iY,n.iY-1,n.iY+n.F+1)&&ZC.DT(A.iX,n.iX-1,n.iX+n.I+1):ZC.DT(A.iX,n.iX-1,n.iX+n.I+1)&&ZC.DT(A.iY,n.iY-1,n.iY+n.F+1)){var J=new ZC.DW(A.A);J.K=A.K+"-marker-"+A.MI,J.Z=J.C6=A.A.CO("fl",0),J.iX=A.iX,J.iY=A.iY,J.B7=A.A.BP[3],J.BV=A.A.BP[3],J.A0=A.A.BP[2],J.AE=A.A.BP[2],J.append(A.A.A2.o),A.A.o[A.MI+"-marker"]&&J.append(A.A.o[A.MI+"-marker"]),J.parse(),J.JE=function(i){return A.JE(i)},J.DE()&&J.parse(),J.AM&&"none"!==J.AF&&(A.A.MO>n.A1-n.V&&J.paint(),A.D["marker.type"]=J.DQ,B=A.C.K+"-node-area "+A.C.K+"-plotset-plot-"+A.A.L+"-node-area zc-node-area",n.AU&&_.reverse(),A.A.FW&&(""!==(X=ZC.AO.PM(ZC.AO.YW(A.D.points),4))?A.A.A.HN.push(ZC.Q.GC("poly",A.A.E8,A.A.IR)+'class="'+B+'" id="'+A.K+"--"+A.MI+'" coords="'+X+'" />'):A.A.A.HN.push(ZC.Q.GC("circle",A.A.E8,A.A.IR)+'class="'+B+'" id="'+A.K+"--"+A.MI+'" coords="'+ZC._i_(J.iX+ZC.MAPTX)+","+ZC._i_(J.iY+ZC.MAPTX)+","+ZC._i_(1.5*ZC.BQ(3,J.AI))+'" />'))),A.A.U&&A.A.U.AM&&A.GU()}},paintPreview:function(i,A,n){var e=this;if(e.C.BA&&e.C.BA.HY&&e.A.QH){var C=e.C.P,a=e.C.BA,r=e.A.mapPointsToPreview(n),p=new ZC.DW(e.A);p.copy(i),p.CZ=!0,p.L1=!0,p.B0=0,p.AT=0,p.EX=0,p.G6=0,p.C5=e.A.HQ,p.D1=[C.iX,C.iY,C.iX+C.I,C.iY+C.F],p.K=e.K+"-area-preview",p.Z=a.Z,p.E=r,p.paint();var s,t=e.A.mapPointsToPreview(A);e.A.VP?s=e.A.VP:(s=new ZC.D0(e),e.A.VP=s),s.copy(i);var Z=ZC.Q.E9(a.Z,e.H.AC);s.B0=1,ZC.CS.paint(Z,s,t,null,3)}},A3H:function(){var i=this,A=i.A.OI;if(!ZC.move){var n=i.A.B1;if(i.A.G4&&i.A.AM){var e=ZC.Q.E9(i.C.K+"-hover-c",i.H.AC),C=new ZC.DW(i.A);if(C.K=i.K+"-area-hover",C.Z=ZC.AK(i.C.K+"-hover-c"),C.L1=!0,C.copy(i),C.append(i.A.IB.o),C.E=i.D.pointsarea,C.parse(),C.AM){C.C5=i.A.HQ;var a=i.C.P;C.D1=[a.iX,a.iY,a.iX+a.I,a.iY+a.F],ZC.CS.setup(e,C),C.paint()}var r=ZC.Q.E9(i.C.K+"-hover-c",i.H.AC),p=new ZC.D0(i.A);p.K=i.K+"-line-hover",p.CZ=!1,p.B7=i.A.BP[3],p.append(i.A.IB.o),p.parse(),p.JE=function(A){return i.JE(A)},p.DE()&&p.parse(),p.AM&&(ZC.CS.setup(r,p),ZC.CS.paint(r,p,i.D.points))}if(i.A.MO>n.A1-n.V&&i.A.G4&&i.A.AM){i.b();var s=new ZC.DW(i.A);s.K=i.K+"-marker-max-hover",s.Z=ZC.AK(i.C.K+"-hover-c"),s.DQ=i.D["marker.type"],A?(s.iY=i.iY,s.iX=i.D.QZ):(s.iX=i.iX,s.iY=i.D.QZ),s.B7=i.A.BP[3],s.BV=i.A.BP[3],s.A0=i.A.BP[2],s.AE=i.A.BP[2],s.append(i.A.G4.o),s.parse(),s.JE=function(A){return i.JE(A)},s.DE()&&s.parse(),s.AM&&"none"!==s.AF&&s.paint(),s.K=i.K+"-marker-min-hover",A?s.iX=i.D.N9:s.iY=i.D.N9,s.AM&&"none"!==s.AF&&s.paint()}}}});