h&&i&&Rg(c)&&j&&g(e.classed(f.SELECTED,!1),c,d)})},Ef.toLine=function(a){Cf(a,"line")},Ef.toSpline=function(a){Cf(a,"spline")},Ef.toBar=function(a){Cf(a,"bar")},Ef.toScatter=function(a){Cf(a,"scatter")},Ef.toArea=function(a){Cf(a,"area")},Ef.toAreaSpline=function(a){Cf(a,"area-spline")},Ef.toPie=function(a){Cf(a,"pie",{withTransform:!0})},Ef.toDonut=function(a){Cf(a,"donut",{withTransform:!0})},Ef.groups=function(a){returnc(a)?Fg:(Fg=a,hf(),Fg)},Ef.xgrids=function(a){returna?(Uh=a,hf(),Uh):Uh},Ef.xgrids.add=function(a){returna?Ef.xgrids(Uh.concat(a)):void0},Ef.xgrids.remove=function(a){varb=Bf(a);returnEf.xgrids(Uh.filter(b))},Ef.ygrids=function(a){returna?(Wh=a,hf(),Wh):Wh},Ef.ygrids.add=function(a){returna?Ef.ygrids(Wh.concat(a)):void0},Ef.ygrids.remove=function(a){varb=Bf(a);returnEf.ygrids(Wh.filter(b))},Ef.regions=function(a){returnc(a)?si:(si=a,hf(),si)},Ef.regions.add=function(a){returnc(a)?si:(si=si.concat(a),hf(),si)},Ef.regions.remove=function(a,c){vare=[].concat(a);returnc=d(c)?c:{},e.forEach(function(a){vard=b(c.duration)?c.duration:0;kj.selectAll("."+a).transition().duration(d).style("fill-opacity",0).remove(),si=si.filter(function(b){returnb.classes.indexOf(a)<0})}),si},Ef.data.get=function(a){varb=Ef.data.getAsTarget(a);returnd(b)?b.values.map(function(a){returna.value}):void0},Ef.data.getAsTarget=function(a){varb=Fc(function(b){returnb.id===a});returnb.length>0?b[0]:void0},Ef.data.names=function(a){returnarguments.length?(Object.keys(a).forEach(function(b){Dg[b]=a[b]}),yf(Cc(Ef.data.targets),{withTransition:!0}),Dg):Dg},Ef.x=function(a){returnarguments.length&&(qc(Ef.data.targets,a),hf({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),Ef.data.xs},Ef.xs=function(a){returnarguments.length&&(rc(Ef.data.targets,a),hf({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),Ef.data.xs},Ef.axis.labels=function(a){arguments.length&&(Object.keys(a).forEach(function(b){bb(b,a[b])}),Db())},Ef.axis.max=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(Bh=+a.y),b(a.y2)&&(Kh=+a.y2)):Bh=Kh=+a,hf())},Ef.axis.min=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(Ch=+a.y),b(a.y2)&&(Lh=+a.y2)):Ch=Lh=+a,hf())},Ef.axis.range=function(a){arguments.length&&("undefined"!=typeofa.max&&Ef.axis.max(a.max),"undefined"!=typeofa.min&&Ef.axis.min(a.min))},Ef.legend.show=function(a){wf(Dc(a)),hf({withLegend:!0})},Ef.legend.hide=function(a){xf(Dc(a)),hf({withLegend:!0})},Ef.resize=function(a){Hf=a?a.width:null,If=a?a.height:null,nf({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},Ef.destroy=function(){Ef.data.targets=void0,Ef.data.xs={},qj.html(""),a.onresize=null},"url"ine.data)Df.xhr(e.data.url,function(a,b){varc,d=Df.csv.parseRows(b.response);1===d.length?(c=[{}],d[0].forEach(function(a){c[0][a]=null})):c=Df.csv.parse(b.response),af(c)});elseif("rows"ine.data)af(tc(e.data.rows));else{if(!("columns"ine.data))throwError("url or rows or columns is required.");af(uc(e.data.columns))}returnEf},"function"==typeofa.define&&a.define.amd?a.define("c3",["d3"],e):a.c3=e}(window);