},xf.toPie=function(a){vf(a,"pie",{withTransform:!0})},xf.toDonut=function(a){vf(a,"donut",{withTransform:!0})},xf.groups=function(a){returnc(a)?yg:(yg=a,$e(),yg)},xf.xgrids=function(a){returna?(Nh=a,$e(),Nh):Nh},xf.xgrids.add=function(a){returna?xf.xgrids(Nh.concat(a)):void0},xf.xgrids.remove=function(a){varb=uf(a);returnxf.xgrids(Nh.filter(b))},xf.ygrids=function(a){returna?(Ph=a,$e(),Ph):Ph},xf.ygrids.add=function(a){returna?xf.ygrids(Ph.concat(a)):void0},xf.ygrids.remove=function(a){varb=uf(a);returnxf.ygrids(Ph.filter(b))},xf.regions=function(a){returnc(a)?li:(li=a,$e(),li)},xf.regions.add=function(a){returnc(a)?li:(li=li.concat(a),$e(),li)},xf.regions.remove=function(a,c){vare=[].concat(a);returnc=d(c)?c:{},e.forEach(function(a){vard=b(c.duration)?c.duration:0;dj.selectAll("."+a).transition().duration(d).style("fill-opacity",0).remove(),li=li.filter(function(b){returnb.classes.indexOf(a)<0})}),li},xf.data.get=function(a){varb=xf.data.getAsTarget(a);returnd(b)?b.values.map(function(a){returna.value}):void0},xf.data.getAsTarget=function(a){varb=Fc(function(b){returnb.id===a});returnb.length>0?b[0]:void0},xf.data.names=function(a){returnarguments.length?(Object.keys(a).forEach(function(b){wg[b]=a[b]}),rf(Cc(xf.data.targets),{withTransition:!0}),wg):wg},xf.x=function(a){returnarguments.length&&(qc(xf.data.targets,a),$e({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),xf.data.xs},xf.xs=function(a){returnarguments.length&&(rc(xf.data.targets,a),$e({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),xf.data.xs},xf.axis.labels=function(a){arguments.length&&(Object.keys(a).forEach(function(b){bb(b,a[b])}),Db())},xf.axis.max=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(uh=+a.y),b(a.y2)&&(Dh=+a.y2)):uh=Dh=+a,$e())},xf.axis.min=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(vh=+a.y),b(a.y2)&&(Eh=+a.y2)):vh=Eh=+a,$e())},xf.axis.range=function(a){arguments.length&&("undefined"!=typeofa.max&&xf.axis.max(a.max),"undefined"!=typeofa.min&&xf.axis.min(a.min))},xf.legend.show=function(a){pf(Dc(a)),$e({withLegend:!0})},xf.legend.hide=function(a){qf(Dc(a)),$e({withLegend:!0})},xf.resize=function(a){Af=a?a.width:null,Bf=a?a.height:null,df({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},xf.destroy=function(){xf.data.targets=void0,xf.data.xs={},jj.html(""),a.onresize=null},"url"ine.data)wf.xhr(e.data.url,function(a,b){varc,d=wf.csv.parseRows(b.response);1===d.length?(c=[{}],d[0].forEach(function(a){c[0][a]=null})):c=wf.csv.parse(b.response),Te(c)});elseif("rows"ine.data)Te(tc(e.data.rows));else{if(!("columns"ine.data))throwError("url or rows or columns is required.");Te(uc(e.data.columns))}returnxf},"function"==typeofa.define&&a.define.amd?a.define("c3",["d3"],e):a.c3=e}(window);