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("scroll"),ZC.A3A=ZC.D0.C7({$i:function(A,i){this.b(A);var Z=this;Z.C=A,Z.H=A.A,Z.JA=!1,Z.Z=null,Z.BJ=0,Z.BH=0,Z.A70="",Z.bYX="yx"===Z.C.AJ.layout,Z.AF=Z.sTypeE=Z.sTypeN="scroll-"+(i||"x"),Z.bYX&&(Z.AF+="i",Z.sTypeE="scroll-xi"===Z.AF?"scroll-y":"scroll-x")},parse:function(){var A,i=this;i.K=i.C.K+"-"+i.sTypeE,i.assign_a([["offset-x","BJ"],["offset-y","BH"]]);var Z="("+i.C.AF+").",X=i.H.B8;i.AX=new ZC.HS(i.C),X.load(i.AX.o,[Z+"scroll.bar",Z+i.AF+".bar"]),null!==ZC._n_(A=i.o.bar)&&i.AX.append(A),i.AX.parse(),i.AZ=new ZC.HS(i.C),X.load(i.AZ.o,[Z+"scroll.handle",Z+i.AF+".handle"]),null!==ZC._n_(A=i.o.handle)&&i.AZ.append(A),i.AZ.parse()},paint:function(){var A=this,i=A.C.BT("k")[0],Z=A.C.BT("v")[0],X=A.C.P;if(("scroll-x"===A.AF||"scroll-xi"===A.AF)&&i.DD===i.V&&i.DZ===i.A1||("scroll-y"===A.AF||"scroll-yi"===A.AF)&&Z.FU===Z.B4&&Z.GY===Z.BL)return A.unbind(),ZC.A4("#"+A.C.K+"-"+A.AF+"-handle").remove(),ZC.A4("#"+A.C.K+"-"+A.AF+"-bar").remove(),void ZC.Q.IQ(A.Z,A.H.AC,A.C.iX,A.C.iY,A.C.I,A.C.F);A.Z=ZC.AK(A.C.K+"-"+A.sTypeN+"-c");var l=ZC.AK(A.H.K+"-top");"scroll-x"===A.AF||"scroll-yi"===A.AF?(A.AX.iX=X.iX+A.BJ,A.AX.iY=X.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ar",id:A.K+"-bar",wh:A.AX.I+"/"+A.AX.F,tl:A.AX.iY+"/"+A.AX.iX,opacity:0,p:l}),A.ZD=ZC.Q.HX({cls:"zc-abs zc-scroll zc-scroll-y-handle "+A.C.K+"-scroll-y-handle",id:A.K+"-handle",wh:A.AX.I+"/"+ZC.BQ(15,A.AZ.F),tl:A.AZ.iY-2+"/"+A.AX.iX,background:"#fff",opacity:0,p:l}),A.ZD.style.cursor="pointer",A.paint_(),A.JA||A.bind()))},zoom:function(A){for(var i,Z,X,l=this,o={graphid:l.C.K,zooming:A,scroll:!0},C=l.C.BM,s=l.C.BT("k")[0],n=l.C.BT("v")[0],r=0,t=C.length;r<t;r++)if(i=C[r]){var a=1===i.L?"":"-"+i.L;if(s.GM&&"scroll-x"===l.AF&&"k"===i.AF&&!l.bYX){e=i.A1-i.V;o["zoomx"+a]=!0,Z=(l.AZ.iX-l.AX.iX)/l.AX.I,X=(l.AZ.iX-l.AX.iX+l.AZ.I)/l.AX.I,s.AU?(o["xmin"+a]=i.DZ-ZC._i_(X*(i.DZ-i.DD)),o["xmax"+a]=i.DZ-ZC._i_(Z*(i.DZ-i.DD))):(o["xmin"+a]=i.DD+ZC._i_(Z*(i.DZ-i.DD)),o["xmax"+a]=i.DD+ZC._i_(X*(i.DZ-i.DD))),o["xmax"+a]-o["xmin"+a]!==e&&(o["xmax"+a]===i.DZ?o["xmin"+a]=o["xmax"+a]-e:o["xmax"+a]=o["xmin"+a]+e)}else if(n.GM&&"scroll-y"===l.AF&&"v"===i.AF&&!l.bYX)o["zoomy"+a]=!0,Z=(l.AX.F-(l.AZ.iY-l.AX.iY+l.AZ.F))/l.AX.F,X=(l.AX.F-(l.AZ.iY-l.AX.iY))/l.AX.F,n.AU?(o["ymin"+a]=i.GY-ZC._f_(X*(i.GY-i.FU)),o["ymax"+a]=i.GY-ZC._f_(Z*(i.GY-i.FU))):(o["ymin"+a]=i.FU+ZC._f_(Z*(i.GY-i.FU)),o["ymax"+a]=i.FU+ZC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-1,i.I=ZC.BQ(15,Z.AZ.I),i.iX+i.I>Z.C.P.iX+Z.C.P.I&&(i.iX=Z.C.P.iX+Z.C.P.I-i.I),i.iX<Z.C.P.iX&&(i.iX=Z.C.P.iX),i.F=Z.AZ.F,i.paint(),ZC.A4("#"+Z.K+"-handle").css("left",i.iX+"px")):((A=new ZC.HS(Z)).K=Z.C.K+"-scroll-y-bar",A.copy(Z.AX),A.Z=A.C6=Z.Z,A.iX=Z.AX.iX,A.iY=Z.AX.iY,A.I=Z.AX.I,A.F=Z.AX.F,A.paint(),(i=new ZC.HS(Z)).K=Z.C.K+"-scroll-y-handle",i.copy(Z.AZ),i.Z=i.C6=Z.Z,i.iX=Z.AX.iX+(Z.AX.I-Z.AZ.I)/2,i.iY=Z.AZ.iY,i.I=Z.AZ.I,i.F=ZC.BQ(15,Z.AZ.F),i.iY+i.F>Z.C.P.iY+Z.C.P.F&&(i.iY=Z.C.P.iY+Z.C.P.F-i.F),i.iY<Z.C.P.iY&&(i.iY=Z.C.P.iY),i.paint(),ZC.A4("#"+Z.K+"-handle").css("top",i.iY+"px"))},setScrollingFlag:function(A){var i=this;if(i.C.O7=A,i.C.H9&&ZC._b_(i.C.H9.o.shared))for(var Z=0;Z<i.H.AH.length;Z++)i.H.AH[Z].H9&&ZC._b_(i.H.AH[Z].H9.o.shared)&&(i.H.AH[Z].O7=A)},update:function(A){var i=this;"scroll-x"===i.AF||"scroll-yi"===i.AF?(i.AZ.iX=A,ZC.A4("#"+i.K+"-handle").css("left",A+"px"),i.paint_()):(i.AZ.iY=A,ZC.A4("#"+i.K+"-handle").css("top",A+"px"),i.paint_()),i.JA&&(i.setScrollingFlag(!0),i.zoom(!0))},unbind:function(){var A=this;ZC.A4("."+A.C.K+"-"+A.AF+"-handle").unbind("mousedown touchstart",A.RB),ZC.A4("."+A.C.K+"-"+A.AF+"-bar").unbind("click",A.R7)},overscroll:function(A){var i=this,Z=i.C.I3();Z.type=A,ZC.AP.BZ("overscroll",i.H,Z)},bind:function(){var A=this,i=A.H.K,Z=0,X=0;A.RB=function(l){if(l.preventDefault(),!(l.button>1)&&(A.A70=A.H.KM.join(","),A.H.KM.push("skip_context_menu","skip_objects_tracking","skip_segment_tracking","skip_marker_tracking","skip_interactivity"),A.H.H9)){A.H.H9.C=A.C,A.H.H9.parse();for(var o=l.target;o&&"BODY"!==o.tagName.toUpperCase()&&-1===ZC.Q.SV(o).indexOf("zc-"+A.AF+"-handle");)o=o.parentNode;if((ZC.mobile||!(l.which>1))&&o){var C=ZC.Q.M7(l),s=ZC.A4("#"+i+"-top").offset();if("scroll-x"===A.AF||"scroll-yi"===A.AF){var n=C[0]-s.left;Z=n-A.AZ.iX}else{var r=C[1]-s.top;X=r-A.AZ.iY}return ZC.A4(document.body).bind("mousemove touchmove",A.R6),ZC.A4(document.body).bind("mouseup touchend",A.NI),A.JA=!0,!1}}},A.R6=function(l){if(A.JA){A.setScrollingFlag(!1);var o=ZC.Q.M7(l),C=ZC.A4("#"+i+"-top").offset();if("scroll-x"===A.AF||"scroll-yi"===A.AF){var s=o[0]-C.left;s-Z<A.AX.iX&&(s<A.AX.iX-15&&A.overscroll("scroll-x-left"),s=A.AX.iX+Z),s-Z+A.AZ.I>A.AX.iX+A.AX.I&&(s>A.AX.iX+A.AX.I+15&&A.overscroll("scroll-x-right"),s=A.AX.iX+A.AX.I+Z-A.AZ.I),A.update(s-Z)}else{var n=o[1]-C.top;n-X<A.AX.iY&&(n<A.AX.iY-15&&A.overscroll("scroll-y-top"),n=A.AX.iY+X),n-X+A.AZ.F>A.AX.iY+A.AX.F&&(n>A.AX.iY+A.AX.F+15&&A.overscroll("scroll-y-bottom"),n=A.AX.iY+A.AX.F+X-A.AZ.F),A.update(n-X)}}return!1},A.NI=function(i){return A.H.KM=A.A70.split(","),A.JA&&(ZC.A4(document.body).unbind("mousemove touchmove",A.R6),ZC.A4(document.body).unbind("mouseup touchend",A.NI),A.JA=!1,A.setScrollingFlag(!1),i&&A.zoom(!1)),!1},A.R7=function(Z){A.JA=!1,A.setScrollingFlag(!1);var X=ZC.Q.M7(Z),l=ZC.A4("#"+i+"-top").offset();"scroll-x"===A.AF||"scroll-yi"===A.AF?X[0]-l.left>A.AZ.iX?A.update(ZC.CY(A.AX.iX+A.AX.I-A.AZ.I-2*A.AZ.AT,A.AZ.iX+(X[0]-l.left-A.AZ.iX)/4)):A.update(ZC.BQ(A.AX.iX,X[0]-l.left+(A.AZ.iX-X[0]+l.left-A.AZ.I)/4)):X[1]-l.top>A.AZ.iY?A.update(ZC.CY(A.AX.iY+A.AX.F-A.AZ.F-2*A.AZ.AT,A.AZ.iY+(X[1]-l.top-A.AZ.iY)/4)):A.update(ZC.BQ(A.AX.iY,X[1]-l.top+(A.AZ.iY-X[1]+l.top-A.AZ.F)/4)),A.zoom(!1)},ZC.A4("."+A.C.K+"-"+A.sTypeE+"-handle").bind("mousedown touchstart",A.RB),ZC.A4("."+A.C.K+"-"+A.sTypeE+"-bar").bind("click",A.R7)}});