=0&&vd.apply(d,a):ud(0,a)),c&&e.push(n)}),e.length&&Po(g,e)}(f,0,x),(T=o(f))&&(I.add("sT",T),T.forEach(function(t,o){I.asp("sT."+o+".c"),I.asp("sT."+o+".o")}))))}))),I.get()},O.prototype.gAx2=function(t,o){var i=new Ho,e=o.x,n=this.getAx(),r=n.x,s=n.y;return Y(t,P(o,s),e,r,r.o.majorGridLines||Ci,o,this,i,Ii),Y(t,D(o,r),e,s,s.o.majorGridLines||Ci,o,this,i,Fi),i},O.prototype.gVA2=function(t){var o=this.getAx();t.set(o.x.o.name="x",F(o.x)),t.set(o.y.o.name="y",F(o.y))},O.prototype.dAx2=function(t,o,i,e){if(!e){var n=this.getAx(),r=n.x,s=n.y;St(t,i,Ii,null,r.o.majorGridLines||Ci),St(t,i,Fi,null,s.o.majorGridLines||Ci),St(t,i,Ii,r.o),St(t,i,Fi,s.o)}},O.prototype.p2C2=function(t){function o(t,o,i,e,n){if(o&&i){var s,l,u,h,c,p=y.toShape(n),f=i.s;return r(l=J(t,a,i,e))&&(u=Oo(l,i.o.cursorFormat,G))&&(c=Lo(Q(l,o,i),S.sizeHTMLText(u,0,_o.ToTFI(p&&p.tfi)),f,d(0,V(m.valueAxisSize,vi))+d(0,V(m.valueAxisPad,di)),p,h=[]),(s=s||new Map).set("0",{t:u,a:Yt(i.o,"labels",f),c:_o.FRt(c,x.x),s:p,o:h})),s}}var i,n,s,a,u,h,c,p,f,g,v,y=this,S=y.gCtx(),m=y.getMisc(),x=y.oCnt,R=y.oCr,A=Ae(),T=y.back("cursorSerieTooltipAlpha",!0),b=y.back("cursorSerieTooltipBlend",!0),G=w(m.digits,ci);return A.reset(),x&&(h=y.getAx(),u=y.getRS(),i=K(y.p2V(t)),a=k(x),c=P(x,h.y),p=D(x,h.x),n=u.v,y.dCTX(S,y.GetClientRect(),function(){A.add("v",n),g=i[n],R.getShowCursorXLine()&&A.add("x",{p:[g],s:y.toShape("cursorLine")}),(f=o(g,n?p:c,n?h.y:h.x,n,"cursorXAxisTooltip"))&&(A.add("xT",f),f.forEach(function(t,o){A.asp("xT."+o+".c"),A.asp("xT."+o+".o")})),v=i[1-n],R.getShowCursorYLine()&&A.add("y",{p:[v],s:y.toShape("cursorLine")}),(f=o(v,n?c:p,n?h.x:h.y,1-n,"cursorYAxisTooltip"))&&(A.add("yT",f),f.forEach(function(t,o){A.asp("yT."+o+".c"),A.asp("yT."+o+".o")})),(s=function(t,o){var i,r,s=y.toShape("cursorSerieTooltip"),a=y.getVP().c,h=[t,o];return n&&e(h),zt(u.all(),null,function(t){return zt(a[Wt(t.s)],null,function(o){return zt(o,null,function(o){if(wt(h,o)<=Pt(o)/2){var e=(i=i||new Map).get(t);return!e&&i.set(t,e=[]),e.push(o),!0}})})}),i&&i.forEach(function(t,o){t.forEach(function(t,i){var e,n,a,u,h=t.p.iiV,c=h.join(),p=t.p.b;(n=Oo({iiV:l(h)?h:null,v:c,s:o.s},o.s.getCursorFormat(),G))&&(e=$t(s,p,Bt(p,T,b)),a=Lo(t,S.sizeHTMLText(n,0,_o.ToTFI(e&&e.tfi)),"t",Pt(t)/2+ri,e,u=[]),(r=r||new Map).set(C(o.s.GetIndex())+":"+i,{t:n,c:a,s:e,o:u}))})}),ko(r,{h:n,fit:x.x}),r}(g,v))&&(A.add("sT",s),s.forEach(function(t,o){A.asp("sT."+o+".c"),A.asp("sT."+o+".o")}))})),A.get()},O.prototype.gCradarline=it,O.prototype.dCradarline=function(t,o,i,e){Ut(i,function(i){(function(t,o,i,e,n,r){var s=Zt(this),a=i.s;Tt(t,k(o),e,$t(this.toShape(a)||this.toShape(n)||r,s[a.GetIndex()%s.length]),i.s,this)}).call(this,t,o,i,e.get(Wt(i.s)),"radarLine",qi)},this,!0)},O.prototype.p2Vradarline=et,O.prototype.gCradararea=it,O.prototype.dCradararea=function(t,o,i,e){Ut(i,function(i){(function(t,o,i,e,n,r){var s=Zt(this),a=i.s,l=a.GetIndex(),u=s[l%s.length],h=Jt(this,s);Tt(t,k(o),e,$t(this.toShape(a)||this.toShape(n)||r,u,h[l%h.length]),i.s,this)}).call(this,t,o,i,e.get(Wt(i.s)),"radarArea",Qi)},this,!0)},O.prototype.p2Vradararea=et,O.prototype.gCradarcolumn=function(t,o,i,e){var n;if(this.isLC()){var r=Zt(this),s=this.getRS();n=function(t){t.p.i=s.goI(t.p.i),t.p.b=t.p.b2=r[t.p.i%r.length]}}return it.call(this,t,o,i,e,n)},O.prototype.dCradarcolumn=function(t,o,e,r){var s=qt(this),a=Qt(this),l=Zt(this);Jt(this,l);Ut(e,function(e){!function(t,o,e,r,u,h){if(e){function c(t){return Gt(Mt(d,[ji.X(d),-128],t))}function p(t){return wt(d,t)}var f,g,v,d=ji.R2C(o),y=h.getMisc(),S=u.s,m=h.getMV().sOf(u),C=V(y.valueDistOuterCircular,Vi),x=oo(h),R=Ao(h,S),A=w(h.getMisc().digits,ci),T=new Map,b=new Map,G=l[u.s.GetIndex()%l.length];(f=$t(r,G,Bt(G,s,a))).primitive=f.primitive||"Pie",f.pArg=f.pArg||{},h.isLC()&&(g=function(t){var o=t.p.b2||t.p.b,i=$t(r,o,Bt(o,s,a));return i.primitive=i.primitive||"Pie",i.pArg=i.pArg||{},i},v=Uo),n(t,!0,function(){e.forEach(function(o){o.forEach(function(o){var i=2*p(o),e=g&&g(o)||f,n=!v||v(o);return n&&(e.pArg.startAngle=c(o)-m/2,e.pArg.sweepAngle=m,t.drawShape(ji.C2R(d,i,i),e,o)),!n}),R&&o.forEach(function(o){if(!v||v(o)){var e=b.get(o.p.b),n=T.get(o.p.b),r=no(h,o.p.b);!e&&b.set(o.p.b,e=to(h,o.p.b)),!n&&T.set(o.p.b,n=io(h,o.p.b)),ht(t,o,i(ao(o.p,S.getValueFormat(),A),o.p.b),{flags:R,point:e,line:n,back:r,to:lo(d,p(o)+C,c(o)),extby:x/2},h)}})})})}}(t,k(o),r.get(Wt(e.s)),this.toShape(e.s)||this.toShape("radarColumn")||Ji,e,this)},this,!0)},O.prototype.p2Vradarcolumn=et,O.prototype.gCpolarline=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarLine")||te).size,o,this,e,Wt(i.s))},O.prototype.dCpolarline=function(t,o,i,e){var n=Zt(this),r=i.s;Tt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarLine")||te,n[r.GetIndex()%n.length]),r,this,{closed:!1})},O.prototype.p2Vpolarline=et,O.prototype.gCpolararea=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarArea")||oe).size,o,this,e,Wt(i.s))},O.prototype.dCpolararea=function(t,o,i,e){var n=Zt(this),r=i.s,s=r.GetIndex(),a=n[s%n.length],l=Jt(this,n);Tt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarArea")||oe,a,l[s%l.length]),r,this)},O.prototype.p2Vpolararea=O.prototype.p2Vradararea,O.prototype.gCpolarscatter=function(t,o,i,e){return W(0,i,(this.toShape(i.s)||this.toShape("polarScatter")||$i).size,o,this,e,Wt(i.s))},O.prototype.dCpolarscatter=function(t,o,i,e){var n=Zt(this),r=i.s,s=r.GetIndex(),a=n[s%n.length],l=Jt(this,n),u=V(this.getMisc().valueDistOuterCircular,Vi),h=ji.R2C(k(o));bt(t,k(o),e.get(Wt(r)),$t(this.toShape(r)||this.toShape("polarScatter")||$i,a,l[s%l.length]),r,this,{flags:1|Ao(this,r),to:function(t,o){return uo(t,u,Gt(Mt(h,[ji.X(h),-128],t)),this)},extby:function(t,o){return o/2},thisArg:this})},O.prototype.p2Vpolarscatter=et,O.prototype.gCpie=function(t,o,i,e){var n,r,s,a,l,u,h,c,p,f,g=this,v=g.getMisc(),S=g.getRS(),m=S.dis(),C=d(0,m.indexOf(i)),x=m.length||1,R=function(){var t=[],o=It(i),e=S.gdC(),n=e&&e.a.l,r=Zt(g);return o.length&&o[0].forEach(function(o,e){var s=Ft(i,e);t.push({i:e,c:n&&et.p.v&&(t.p.b2=r)})},O.prototype.dCwaterfall=function(t,o,i,n){Ut(i,function(i){(function(t,o,i,n,s,a){function l(t,o){return V(t)=0;i-=2)o.push(t.splice(i,1)[0]);t.push.apply(t,o)}},to:function(t,o,e,n){var r=t.p.v;return ho(t,u,(i.oY.o.reverse?-1:1)*(n[n.length-e-1].p.v-r),this)},extby:h/2,thisArg:this})}).call(this,t,o,i,e.get(Wt(i.s)),"rangeArea",pe)},this,!0)},O.prototype.p2Vrangearea=et,O.prototype.gCcandlestick=function(t,o,i,e){return ot.call(this,t,o,i,e,function(t,o){o(t[0],t),o(t[1],t),o(t[2],t),o(t[3],t)},function(t,o,i,e){var n,s,a=jt(this),l=a.length&&a[e.s.GetIndex()%a.length];if(l&&!(o%4)&&((n=i[o+3].p.v)<(o?i[o-1].p.v:n)&&(s=l),r(s)))for(var u=0;u<4;u++)i[o+u].p.b2=s;t.p.ii=o%4})},O.prototype.dCcandlestick=function(t,o,i,e){yo.call(this,t,o,i,e,"candleStick",fe,So)},O.prototype.p2Vcandlestick=et,O.prototype.gCohlc=O.prototype.gCcandlestick,O.prototype.dCohlc=function(t,o,i,e){yo.call(this,t,o,i,e,"ohlc",ge,mo)},O.prototype.p2Vohlc=et,O.prototype.isDef=function(){return this==this.oT.oGV},O.prototype.GetTfi=function(){return this.oO.tfi},O.prototype.SetTfi=function(t){this.oT.resXY(function(){this.resAx(),this.nFH=0,this.oO.tfi=t||null},this)},O.prototype.getTfi=function(){return this.opt("tfi")},O.prototype.getFH=function(){return this.nFH||(this.nFH=function(){return this.ctxTfi(function(t){return t.fontHeight()})}.call(this))},O.prototype.ctxTfi=function(t,o,i){return Vt(i||this.gCtx(),this.getTfi(),t,o||this)},O.prototype.getFont=function(){return this.ctxTfi(function(t){return _o.GetFont(t)})},O.prototype.GetLocked=function(){return this.oO.locked},O.prototype.SetLocked=function(t){this.oT.resXY(function(){this.oO.locked=t},this)},O.prototype.getLocked=function(){return this.opt("locked",!1)},O.prototype.GetReadOnly=function(){return this.oO.readOnly},O.prototype.SetReadOnly=function(t){this.oT.resXY(function(){this.oAA=null,this.oO.readOnly=t},this)},O.prototype.isReadOnly=function(){return this.opt("readOnly",!1)},O.prototype.GetWheelChange=function(){return this.oO.wheelChange},O.prototype.SetWheelChange=function(t){this.oT.resXY(function(){this.oO.wheelChange=t},this)},O.prototype.getWheelChange=function(){return this.opt("wheelChange",18)},O.prototype.GetSmooth=function(){return this.oO.smooth},O.prototype.SetSmooth=function(t){this.oO.smooth=t,!this.lI&&this.rAO()},O.prototype.getSmooth=function(t){return!t&&this.islow()?0:d(0,V(this.opt("smooth",125)))},O.prototype.GetShapes=function(){return this.oO.shapes},O.prototype.SetShapes=function(t){this.oT.resXY(function(){this.sShs=null,this.oO.shapes=t},this)},O.prototype.defShp=function(){return'{"frameColor":null,"length": "18"}(valueLine),{"primitive":"Circle","fillColor":"white","frameColor":null,"frameSize":"2","size": "8"}(valuePoint),{"frameColor":null,"pad": "4"}(valueBack),{"frameColor":null,"frameSize":"2"}(line,radarLine,polarLine,scatterLine),{"fillColor":null,"frameColor":null,"frameSize":"2"}(radarArea,polarArea,column,area,scatterArea),{"primitive":"Circle","fillColor":null,"frameColor":null,"size": "4"}(scatter,polarScatter),{"fillColor":null,"frameColor":"white","frameSize":"2"}(pie),{"primitive":"Circle","fillColor":null,"frameColor":null}(bubble),{"fillColor":null,"frameColor":null}(radarColumn,waterFall,rangeArea,rangeColumn,candleStick,ohlc,legendSymbol),{"frameDash":"2"}(cursorLine),{"fillColor":"black","tfi":"","pad":"2"}(cursorCategoryAxisTooltip,cursorValueAxisTooltip,cursorXAxisTooltip,cursorYAxisTooltip),{"fillColor":null,"frameColor":null,"pad":"4"}(cursorSerieTooltip),{"fillColor":"gray"}(legendSymbolHidden),{"opacity":"0.5"}(legendSymbolHidden,legendLabelHidden),FrameSel(select-overview),FrameFit(frameFit),'},O.prototype.getShapes=function(){var t=this.sShs;return s(t)&&(s(t=this.GetShapes())&&(t=_o.Def.Graph.shapes),t=C(t,this.defShp()),this.sShs=t),t},O.prototype.toShapes=function(t){return t&&_o.S.GetOf(t.GetShape&&t.GetShape()||O.typeOf(t),this.getShapes(),"Graph")||null},O.prototype.toShape=function(t,o){var i=this.toShapes(_o.S.A2S(t)),e=i&&i.normal||i;return e&&o&&i&&i.disabled&&(e=_o.Inh(i.disabled,e)),e},O.prototype.GetCursors=function(){return this.oO.cursors},O.prototype.SetCursors=function(t){this.oT.resXY(function(){this.sCrs=null,this.oO.cursors=t},this)},O.prototype.defCrs=function(){return"pointer(anchor,legend)"},O.prototype.getCursors=function(){var t=this.sCrs;return s(t)&&(s(t=this.GetCursors())&&(t=_o.Def.Graph.cursors),t=C(t,this.defCrs()),this.sCrs=t),t},O.prototype.GetFormatText=function(){return this.oO.formatText},O.prototype.SetFormatText=function(t){this.oT.resXY(function(){this.nFT=null,this.oO.formatText=t},this)},O.prototype.getFormatText=function(){return s(this.nFT)&&(this.nFT=m(this.opt("formatText"),_o.DrawTextFormatEnum,_o.DrawTextFormatEnum.exTextAlignLeft|_o.DrawTextFormatEnum.exTextAlignVCenter|_o.DrawTextFormatEnum.exTextWordBreak|_o.DrawTextFormatEnum.exTextWordEllipsis)),this.nFT},O.prototype.GetInvalid=function(){return this.oO.invalid},O.prototype.SetInvalid=function(t){this.bU(),this.oO.invalid=t,this.eU()},O.prototype.getInvalid=function(){return this.opt("invalid")},O.prototype.GetPad=function(){return this.oO.pad},O.prototype.SetPad=function(t){this.oT.resXY(function(){this.rgPad=null,this.oO.pad=t},this)},O.prototype.getPad=function(){return this.rgPad||(this.rgPad=_o.pad2A(this.opt("pad",[4,4]))),this.rgPad},O.prototype.GetImageSize=function(){return this.oO.imageSize},O.prototype.SetImageSize=function(t){this.oT.resXY(function(){this.aIS=void 0,this.oO.imageSize=t},this)},O.prototype.getImageSize=function(){return void 0===this.aIS&&(this.aIS=this.opt("imageSize",null)),this.aIS},O.prototype.GetImageAlign=function(){return this.oO.imageAlign},O.prototype.SetImageAlign=function(t){this.oT.resXY(function(){this.nIA=null,this.oO.imageAlign=t},this)},O.prototype.getImageAlign=function(){return s(this.nIA)&&(this.nIA=~~this.opt("imageAlign",0)),this.nIA},O.prototype.GetAllowActions=function(){return this.oO.allowActions},O.prototype.SetAllowActions=function(t){this.cwbU(),this.oAA=null,this.oO.allowActions=t,this.cweU()},O.prototype.gAA=function(){return this.oAA||(this.oAA=new _o.AA(this.opt("allowActions",this.oT.defAA()),this.isReadOnly()?this.oT.roAA():Qo)),this.oAA},O.prototype.Scroll=function(t){return this.oW.Scroll(t,this.getWheelChange())},O.prototype.GetScrollPos=function(){return this.GetScroll()},O.prototype.SetScrollPos=function(t){this.SetScroll(t)},O.prototype.getScrollPos=function(){return this.GetScrollPos()},O.prototype.GetScrollBarsOrigin=function(){return this.oO.scrollBarsOrigin},O.prototype.SetScrollBarsOrigin=function(t){this.bU(),this.oO.scrollBarsOrigin=t,this.eU()},O.prototype.getScrollBarsOrigin=function(){var t=this.GetScrollBarsOrigin();return void 0===t&&(t="black"),t||null},O.prototype.GetToolTipDelay=function(){return this.oO.toolTipDelay},O.prototype.SetToolTipDelay=function(t){this.oO.toolTipDelay=t},O.prototype.getToolTipDelay=function(){return this.opt("toolTipDelay",500)},O.prototype.GetToolTipPopDelay=function(){return this.oO.toolTipPopDelay},O.prototype.SetToolTipPopDelay=function(t){this.oO.toolTipPopDelay=t},O.prototype.getToolTipPopDelay=function(){return this.opt("toolTipPopDelay",5e3)},O.prototype.GetToolTipWidth=function(){return this.oO.toolTipWidth},O.prototype.SetToolTipWidth=function(t){this.oO.toolTipWidth=t},O.prototype.getToolTipWidth=function(){return this.opt("toolTipWidth",-1)},O.prototype.allowTT=function(){return _o.TT&&this.getToolTipWidth()&&this.getToolTipPopDelay()},O.prototype.GetAllowDrop=function(){return this.oO.allowDrop},O.prototype.SetAllowDrop=function(t){this.oO.allowDrop=t},O.prototype.getAllowDrop=function(){return this.opt("allowDrop",!1)},O.prototype.GetMisc=function(){return this.oO.misc},O.prototype.SetMisc=function(t){this.cwbU(),this.oM=null,this.rgCT=null,this.oO.misc=t,this.onRL(),this.updSPR(),this.cweU()},O.prototype.getMisc=function(){return this.oM||(this.oM=this.opt("misc",gt)||{})},O.prototype.gCT=function(){return this.rgCT||function(){var t=[];C(this.getMisc().cursorTrans,Pi).split(",").forEach(function(o){t.push(new ji.Bezier(o))}),this.rgCT=t}.call(this)},O.prototype.GetBackground=function(){return this.oO.background},O.prototype.SetBackground=function(t){this.cwbU(),this.oO.background=t,this.cweU()},O.prototype.getBackground=function(){return this.opt("background",yt)},O.prototype.back=function(t,o){var i,e=this.getBackground(),n=e&&e[t];return s(n)&&(o&&t in e||null==(n=(i=_o.Def.Graph.background)&&i[t])&&(n=yt[t])),n},O.prototype.GetAutoFit=function(){return this.oO.autoFit},O.prototype.SetAutoFit=function(t){this.cwbU(),this.oO.autoFit=t,this.resXY(),this.resMV(),this.cweU()},O.prototype.getAutoFit=function(){return this.opt("autoFit",!1)},O.prototype.GetValueAxis=function(){return this.oO.valueAxis},O.prototype.SetValueAxis=function(t){this.bU(),this.mVA=null,this.oO.valueAxis=_o.Apy(this.oO.valueAxis||{},t),this.onRL(),this.eU()},O.prototype.getValueAxis=function(){var t,o,i=this.mVA;return i||(i=new Map,r(t=this.opt("valueAxis"))&&(l(t)&&t||[t]).forEach(function(t){i.set(A(t.name),t)}),!i.size&&i.set(Qo,{}),!i.has(Qo)&&i.forEach(function(t,i){s(o)&&(o=i)}),i.d=o||Qo,this.mVA=i),i},O.prototype.GetCategoryAxis=function(){return this.oO.categoryAxis},O.prototype.SetCategoryAxis=function(t){this.bU(),this.rgCA=null,this.oO.categoryAxis=_o.Apy(this.oO.categoryAxis||{},t),this.onRL(),this.eU()},O.prototype.getCategoryAxis=function(){var t,o=this.rgCA;return o||(o=[],(l(t=this.GetCategoryAxis())&&t||[t]).forEach(function(t){o.push(t)}),this.rgCA=o),o},O.prototype.GetXAxis=function(){return this.oO.xAxis},O.prototype.SetXAxis=function(t){this.bU(),this.oO.xAxis=_o.Apy(this.oO.xAxis||{},t),this.onRL(),this.eU()},O.prototype.getXAxis=O.prototype.GetXAxis,O.prototype.GetYAxis=function(){return this.oO.yAxis},O.prototype.SetYAxis=function(t){this.bU(),this.oO.yAxis=_o.Apy(this.oO.yAxis||{},t),this.onRL(),this.eU()},O.prototype.getyAxis=O.prototype.GetYAxis,O.prototype.GetToolTipFormat=function(){return this.oO.toolTipFormat},O.prototype.SetToolTipFormat=function(t){this.bU(),this.oO.toolTipFormat=t,this.eU()},O.prototype.getToolTipFormat=function(){return this.opt("toolTipFormat","(name ? name + ': ' : '') + value")},O.prototype.GetValueSize=function(){return this.oO.valueSize},O.prototype.SetValueSize=function(t){this.bU(),this.oO.valueSize=t,this.resVP(),this.resXY(),this.resMV(),this.updSPR(),this.eU()},O.prototype.getValueSize=function(){return V(this.opt("valueSize",16))},O.prototype.ValueAutoFit=function(){this.SetValueSize(U.call(this))},O.prototype.rurValueResize=function(t,o){function i(t){t=t||0;var o={};this.bU(),this.SetValueSize(d(c,z.call(this,l+t,h))),o[s]=T(this.getMV().t*(u+l)/p.t)-(l+t),this.SetScrollPos(o),this.eU()}if(t){var e,n,r,s,a,l,u,h,c,p=this.getMV();!this.getAutoFit()&&p.t&&(r=this.getRS().v,s=r?"y":"x",a=r?"dy":"dx",u=this.getScrollPos()[s],e=this.gCnt().c,n=this.GetClientRect(),l=function(t){var o=this.gPtr(t);return{x:o.x-this.unscaled(e[0]-n[0]),y:o.y-this.unscaled(e[1]-n[1])}}.call(this,t)[s],h=l/p.t,c=U.call(this),this.doRUR(t,function(t){switch(t.drag.status){case 1:this.oT.oRUR.ao=o&&o.rurOnlyAO,this.rAO();break;case 7:this.oT.oRUR&&(this.oT.oRUR.ao=null),t.drag.cancel?i.call(this,0):this.rAO();break;case 2:i.call(this,t.drag.offset[a]);break;case 4:case 5:o&&o.rurStatus&&o.rurStatus.call(o.thisArg||this,t)}},this))}},O.prototype.GetCursor=function(){return this.oCr.GetOptions()},O.prototype.SetCursor=function(t){this.oCr.SetOptions(t)},O.prototype.GetLegend=function(){return this.oLg.GetOptions()},O.prototype.SetLegend=function(t){this.oLg.SetOptions(t)},O.prototype.GetSort=function(){return this.oO.sort},O.prototype.SetSort=function(t){this.bU(),this.oO.sort=t,this.onRL(),this.eU()},O.prototype.getSort=function(){return this.opt("sort")},O.prototype.GetOverview=function(){return this.oOv.GetOptions()},O.prototype.SetOverview=function(t){this.oOv.SetOptions(t)},Object.addPrototypeOf(I.prototype,Array.prototype),I.prototype.init=function(t,o,i){function n(){var t;if(this.isXY())t={o:g||{}};else{function o(t,o,i,e){var n,r=_o.E.Create(o,"index,value");(i||r.IsValid())&&(n=r.IsValid()?function(t,o){return r.Evaluate(function(i){var e;return-1==i&&(e=o),-2==i&&(e=t),e})}:function(t,o){return t},t.forEach(function(t,o){e(n(t,o),o)}))}function i(t,i){var e=[];return o(t,i,!0,function(t){e.push(C(t))}),e}function e(t,i){var e,n;return t&&t.format&&o(i,t.format,!1,function(t,o){t=C(t),n!=t&&((e=e||[]).push({i:o,p:e.length,l:t}),n=t)}),e&&{g:t,l:e}}var n=[];h&&h.length&&(h.forEach(function(t){n.push(function(t){var o,n=[];return t&&(o=t.categories,n=c(o=u&&u.col(o)||o)?o.split(","):l(o)?o:[o]),t=t||{},{a:{c:n,l:i(n,t.format)},ogl:e(t.overviewGridLines,n),cgl:e(t.chartGridLines,n),o:t}}(t))}),a&&(n[0].a.c=a.rgE,n[0].a.l=i(n[0].a.c,n[0].o.format))),t=n}this.ooX=t}function s(){this.feA(function(t){var o=t.v,i=S.get(t.s.getType());!function(t){((ft?0:ft=1+_o.Tick()%3321)||function(){var t="pmgi",o=_o[t+="rwi"].call(_o);return!(_o.iL()&&(!o||!o.k))}()&&(ft+=ft>>2)%4)&&t.length>2+(ft+=ft>>2)%4&&(t[(ft+=ft>>2)%t.length]=NaN,(ft+=ft>>2)%4&&(t[(ft+=ft>>2)%t.length]=NaN))}(o),M(o,o,i.mmd,null,i.ex0)},this)}o=o||{},this.oM=i&&i.getMisc();var a,u=i&&i.oT.oD,h=o.c,f=o.v,g=o.x,v=o.y,S=Xt();(function(){var o,i;t.forEach(function(t){t.isValid()&&(i=S.get(t.getType()),o||(o={o:i}),i&&o&&o.o&&i.c==o.o.c&&this.push({s:t,v:t.uCatVal(i.d)}))},this),this.lV=this.length,this.sort(function(t,o){return S.get(t.s.getType()).z-S.get(o.s.getType()).z}),o&&o.o&&(this.c=o.o.c,this.d=o.o.d,this.mmd=o.o.mmd),this.forEach(function(t){t.v.c&&(a=a||new _o.Arr,t.v.c.forEach(function(t,o){a.add(o)}))}),this.forEach(function(t){var o=t.v.v,i=t.v.c;i&&(o=[],i.forEach(function(t,i){for(var e=a.getPos(i),n=y(o.length,e);n1){var o=d(0,Dt(t,null,function(t,o){return t.s.isVisible()&&o+1})-1),i=t[o],e=new Map;console.assert(i,"The base-runtime serie that holds stacked serie is not found."),o&&(t.splice(o,1),t.splice(0,0,i));for(var n=1,r=t.length;n2?t.m[2]:0,M:o>2?t.M[2]:0},this.aM3vl(this.ooX,this.ooX.a),this.aM3vl(this.ooY,this.ooY.a),this.aM3vl(this.ooZ,this.ooZ.a)}else{var i,e,n,r,s=new Map,a=st.call(this);this.feA(function(t){!(i=s.get(t.oY))&&s.set(t.oY,i=[]),i.push(t)}),this.ooY.forEach(function(t){if(i=s.get(t)){if(n||(n=t),r||C(t.o.name)!=Qo||(r=t),t.a={},this.mMOf(i,t.a),this.mmd>1&&(t.a.m=V(t.a.m[1]),t.a.M=V(t.a.M[1])),t.o.asPercent){var o=t.a.m,l=1/(t.a.M-o);i.forEach(function(t){var i=[];t.v.forEach(function(t){p(t)&&(t=E((t-o)*l,a)),i.push(t)}),i.m=0,i.M=1,t.v=i}),t.a.m=0,t.a.M=1}this.aM3vl(t,t.a)}else(e=e||[]).push(t)},this),e&&(r=r||n)&&e.forEach(function(t){t.a=r.a,t.o.format!=r.o.format&&(t.a=_o.Cpy(t.a),this.aM3vl(t,t.a))},this)}}.call(this),function(){var t,o,i=0;this.feA(function(t){i=d(i,t.v.length)}),(t=this.gdC())&&(i=d(i,t.a.c.length)),this.l=i,this.isXY()&&this.v&&(o=this.ooX,this.ooX=this.ooY,this.ooY=o,this.feA(function(t){t.v.forEach(function(t){l(t)&&e(t)})})),this.per()}.call(this)},I.prototype.type=function(){return parseInt(this.c)||0},I.prototype.moYs=function(){return 1==this.type()},I.prototype.isXY=function(){return 2==this.type()},I.prototype.mMOf=function(t,o){var i=[],e=Xt(),n=!0;return t&&t.forEach(function(t){Ut(t,function(t){n&=!e.get(t.s.getType()).ex0,i.push(t.v.m),i.push(t.v.M)})}),M(i,i,this.mmd,null,!n),o=o||{},o.m=i.m,o.M=i.M,o},I.prototype.aM3u=function(t,o){function i(t){return t.sort(function(t,o){return t-o}),t}function e(t,o){o=o||[1,10];for(var i,e=s[0],n=o[0],r=o[1],a=t/e>r,l=1,u=0,h=0;!i&&h<16;)u=0,s.forEach(function(o){var e=T(t/(o*=l));er?!e&&u++:(!i||e>i.c)&&(i={c:e,mU:o})}),i||(l=a?10*l:l/10,h++);return i}var n,r=0,s=function(t){var o=[];return C(t).split(",").forEach(function(t){(t=d(0,V(t)))&&o.push(t)}),!o.length&&o.push(1),i(o)}(this.oM.baseMajorUnits||"1,2,2.5,5"),a=function(t){var o=l(t)&&t||C(t).split(",");return o=[d(1,V(o[0])),d(1,V(o[1]))],i(o)}(this.oM.rangeMajorUnits||hi),u=o.m,h=o.M,c=o.mU||1,f=t.o.asPercent;p(t.o.min)?u=V(t.o.min):f||(r|=1),p(t.o.max)?h=V(t.o.max):f||(r|=2),n=u,u=y(u,h),h=d(n,h),(n=p(t.o.majorUnit)&&d(0,V(t.o.majorUnit))||0)?c=n:r|=4,r&&(4&r&&(h==u&&(h+=function(t){var o=1;if(t)for(;t<1;)t*=10,o/=10;return o}(S(h))),c=function(t,o){for(var i,n=o-t,r=1;n<1;)n*=10,r*=10;return n=T(n),(i=e(n,a)||e(n,[1,10]))&&i.mU/r}(u,h)),1&r&&(u=c*T(u/c),o.mh-c*d(0,V(this.oM.extVisibleAfterAxis,.5))&&(h+=c))),o.m=u,o.M=h,o.mU=c},I.prototype.aM3vl=function(t,o){this.aM3u(t,o);var i,e=[],n=[],r=C(t.o.format),s=r&&_o.E.Create(r,"value"),a=s&&s.IsValid()?function(t){return s.Evaluate(function(){return t})}:function(t){return t},l=st.call(this);if(o.mU<1){i=0;for(p=o.mU;p<1;p*=10,i++);l=d(l,i)}for(var u,h=o.m,c=o.M,p=o.mU;h<=c;h+=p)u=E(h,l),e.push(u),n.push(C(a(u)));o.v=e,o.l=n},I.prototype.oYD=function(t){if(t){var o,i=Xt();this.feA(function(e){var n,r=M(e.v,null,this.mmd,t,i.get(e.s.getType()).ex0);r&&g(r.m)&&g(r.M)&&((n=(o=o||new Map).get(e.oY))&&(r.m=y(r.m,n.m),r.M=d(r.M,n.M)),o.set(e.oY,r||n))},this),o&&this.ooY.forEach(function(t){var i=o.get(t);i&&this.aM3vl(t,t.d=i)},this)}else this.ooY.forEach(function(t){t.d=null})},I.prototype.gdC=function(){var t=this.ooX;return t.length&&t[0]||null},I.prototype.gdV=function(){var t=this.ooY;return t.size&&t.get(t.d)||null},I.prototype.goI=function(t){var o=this.o;return o&&t1)for(var t=n[0].p,o=1,i=n.length;o1&&(t.forEach(function(t){(function(t){for(var o=0,e=n&&n.length;oi.m&&00)},t):i(t,e(!0,m(t.o.align,_o.AlignEnum,p)),h,c)}),a.ooY.forEach(function(t){i(t,e(!1,t.o.align),f,g)});for(var v in r)o.call(this,v,r[v]);this.cc=n&&[{oR:n}]},ut.prototype.aAx2=function(t){var o=this.oGV.getRS(),i=(o.ooX.a.m+o.ooX.a.M)/2,e=(o.ooY.a.m+o.ooY.a.M)/2;this.x=_o.Mrg({s:"t"},o.ooX),this.y=_o.Mrg({s:"l"},o.ooY),(o.ooY.o.reverse?0e)&&(this.x.s="b"),(o.ooX.o.reverse?0>i:00&&(a--,l-=s,u++),u=y(++u,i.l-a),t.s={i:a,o:l,l:u},!this.oGV.loYD&&i.oYD(Co(e)&&(a||u!=i.l)?t.s:null)}).call(this,r[n?"y":"x"],n?a:s),r[n?"y":"x"]=0,t.c[n?2:3]=this[n?"w":"h"],t.s=_o.Mrg(t.s,r)},ct.prototype.sWH2=o,ct.prototype.svw2=function(t){t.c[2]=this.w,t.c[3]=this.h},pt.prototype.init=function(t){function o(t){function o(){s.length>1&&(i=i||[]).push(s)}var i,n,r=0,s=[];return e.dis().forEach(function(t){var i=!0;(!s.length||(i=function(t,o){var i=h.get(t.s.getType()).sbs;return i&&i==h.get(o.s.getType()).sbs&&t.oY==o.oY}(t,s[0])))&&s.push(t),i||(o(),s=[t])}),o(),i&&(i.forEach(function(o){r=d(r,o.length),n=n||new Map;var i=[];o.forEach(function(t,e){Ut(t,function(t){n.set(t,{p:e,c:o.length}),i.push(t)})}),i.c=o.length,(t.sbs=t.sbs||[]).push(i)}),n&&(t.M=r)),n}var i,e=t.getRS(),n=e.type(),s=t.getMisc(),a=d(0,t.getValueSize()),l=d(0,V(s.marginValueRatio,Si)),u=d(0,V(s.paddingValueRatio,mi)),h=Xt();this.oGV=t,this.mpc=o.call(this,this),i=n?this["tot"+n]():0,this.mmv=function(o,i){function n(o,i){r(o)&&(a=z.call(t,o,d(1,e.l-e.csz),i));var n=a*l,s=a*u;return{m:n,p:s,s:a,t:2*n+i*(a+s)-s}}var s=this.mpc,h=this.M,c=n(o,s&&h||1),p=new Map;return s&&(this.sbs.forEach(function(t){var o=c;t.length!=h&&(o=n(c.t*e.l,t.c),console.assert(S(o.t-c.t)=ei)return!0;o=i},this))return o},pt.prototype.o2RS=function(t){var o,i=[],e=this.oGV.getRS().all();return this.sbs?(o=new Map,this.sbs.forEach(function(e){e.forEach(function(e){if(o.set(e,!0),e.s.isVisible()){var n=this.mvOf(e),r=n.m,s=n.p/2,a=n.s/2,l=this.pos(e),u=this.pOf(e),h=u?s:r,c=this.mpc&&u!=this.mpc.get(e).c-1?s:r;t>=l-(h+a)&&t