return"M"+b(i)+" "+e(k(d))+" "+b(j)+" "+e(k(d+f))}:function(a,c,d,f){return"M"+b(j(d),!0)+" "+e(k(d))+" "+b(j(d+f),!0)+" "+e(k(d+f))},g=0;g<a.length;g++){if(c(u)||!Be(a[g].x,u))t+=" "+q(a[g])+" "+r(a[g]);elsefor(j=V(a[g-1].x,a[g].x,Si),k=V(a[g-1].value,a[g].value),l=b(a[g].x)-b(a[g-1].x),m=e(a[g].value)-e(a[g-1].value),n=Math.sqrt(Math.pow(l,2)+Math.pow(m,2)),o=2/n,p=2*o,h=o;1>=h;h+=p)t+=i(a[g-1],a[g],h,o);s=a[g].x}returnt}functionef(b){varc,d,e;if(Dj=Jf.select(Mf),Dj.empty())thrownewError('Bind element not found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".');if(Dj.html("").classed("c3",!0),Kf.data.xs={},Kf.data.targets=xc(b),$g&&(Kf.data.targets=Kf.data.targets.filter($g)),Zg&&Mc(Zg===!0?Ec(Kf.data.targets):Zg),p(),T(),Ag.domain(Jf.extent(bc(Kf.data.targets))),Bg.domain(Zb(Kf.data.targets,"y")),Cg.domain(Zb(Kf.data.targets,"y2")),Dg.domain(Ag.domain()),Eg.domain(Bg.domain()),Fg.domain(Cg.domain()),Ej=Ag.domain(),sj.scale(Dg),Tf&&wj.scale(Ag),xj=Dj.append("svg").on("mouseenter",Xf).on("mouseleave",Yf),yj=xj.append("defs"),yj.append("clipPath").attr("id",Mi).append("rect"),yj.append("clipPath").attr("id",Ni).append("rect"),yj.append("clipPath").attr("id",Oi).append("rect"),rf(),zj=xj.append("g").attr("transform",jj.main),Aj=xj.append("g").attr("transform",jj.context),Bj=xj.append("g").attr("transform",jj.legend),kh||Aj.style("visibility","hidden"),nh||(Bj.style("visibility","hidden"),dj=Ec(Kf.data.targets)),Cj=Jf.select(Mf).style("position","relative").append("div").style("position","absolute").style("pointer-events","none").style("z-index","10").style("display","none"),Ef(Ec(Kf.data.targets),{withTransform:!1,withTransitionForTransform:!1}),d=zj.append("g").attr("clip-path",Pi).attr("class",g.grid),ci&&d.append("g").attr("class",g.xgrids),De(ei)&&d.append("g").attr("class",g.xgridLines),ki&&d.append("g").attr("class",g.xgridFocus).append("line").attr("class",g.xgridFocus),fi&&d.append("g").attr("class",g.ygrids),De(gi)&&d.append("g").attr("class",g.ygridLines),zj.append("g").attr("clip-path",Pi).attr("class",g.regions),zj.append("g").attr("clip-path",Pi).attr("class",g.chart),c=zj.select("."+g.chart).append("g").attr("class",g.eventRects).style("fill-opacity",0).style("cursor",Tf?th?"ns-resize":"ew-resize":null),zj.select("."+g.chart).append("g").attr("class",g.chartBars),zj.select("."+g.chart).append("g").attr("class",g.chartLines),zj.select("."+g.chart).append("g").attr("class",g.chartArcs).attr("transform",jj.arc).append("text").attr("class",g.chartArcsTitle).style("text-anchor","middle").text(Tb()),zj.select("."+g.chart).append("g").attr("class",g.chartTexts),Tf&&zj.insert("rect",Vf?null:"g."+g.grid).attr("class",g.zoomRect).attr("width",dg).attr("height",fg).style("opacity",0).style("cursor",th?"ns-resize":"ew-resize").call(wj).on("dblclick.zoom",null),Kh&&sj.extent("function"!=typeofKh?Kh:Kh(bc())),ej.x=zj.append("g").attr("class",g.axisX).attr("clip-path",Qi).attr("transform",jj.x).style("visibility",uh?"visible":"hidden"),ej.x.append("text").attr("class",g.axisXLabel).attr("transform",th?"rotate(-90)":"").style("text-anchor",Cb),ej.y=zj.append("g").attr("class",g.axisY).attr("clip-path",Ri).attr("transform",jj.y).style("visibility",Mh?"visible":"hidden"),ej.y.append("text").attr("class",g.axisYLabel).attr("transform",th?"":"rotate(-90)").style("text-anchor",Db),ej.y2=zj.append("g").attr("class",g.axisY2).attr("transform",jj.y2).style("visibility",Vh?"visible":"hidden"),ej.y2.append("text").attr("class",g.axisY2Label).attr("transform",th?"":"rotate(-90)").style("text-anchor",Eb),Aj.append("g").attr("clip-path",Pi).attr("class",g.chart),Aj.select("."+g.chart).append("g").attr("class",g.chartBars),Aj.select("."+g.chart).append("g").attr("class",g.chartLines),Aj.append("g").attr("clip-path",Pi).attr("class",g.brush).call(sj).selectAll("rect").attr(th?"width":"height",th?eg:gg),ej.subx=Aj.append("g").attr("class",g.axisX).attr("transform",jj.subx).attr("clip-path",th?"":Qi),uf(Kf.data.targets),th?zj.select("."+g.axisX).style("opacity",0).call(Gg):(zj.se