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