function_typeof(a){if("function"==typeofSymbol&&"symbol"==typeofSymbol.iterator){_typeof=function(a){returntypeofa}}else{_typeof=function(a){returna&&"function"==typeofSymbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeofa}}return_typeof(a)}define("core/chart_series",[],function(){functiona(a,b){if("string"!=typeofa){thrownewError("Invalid label for series.")}elseif("object"!==_typeof(b)){thrownewError("Values for a series must be an array.")}elseif(1>b.length){thrownewError("Invalid values received for series.")}this._colors=[];this._label=a;this._values=b}a.prototype.TYPE_DEFAULT=null;a.prototype.TYPE_LINE="line";a.prototype._colors=null;a.prototype._fill=!1;a.prototype._label=null;a.prototype._labels=null;a.prototype._smooth=!1;a.prototype._type=a.prototype.TYPE_DEFAULT;a.prototype._values=null;a.prototype._xaxis=null;a.prototype._yaxis=null;a.prototype.create=function(b){varc=newa(b.label,b.values);c.setType(b.type);c.setXAxis(b.axes.x);c.setYAxis(b.axes.y);c.setLabels(b.labels);if(b.colors&&1<b.colors.length){c.setColors(b.colors)}else{c.setColor(b.colors[0])}c.setFill(b.fill);c.setSmooth(b.smooth);returnc};a.prototype.getColor=function(){returnthis._colors[0]||null};a.prototype.getColors=function(){returnthis._colors};a.prototype.getCount=function(){returnthis._values.length};a.prototype.getFill=function(){returnthis._fill};a.prototype.getLabel=function(){returnthis._label};a.prototype.getLabels=function(){returnthis._labels};a.prototype.getSmooth=function(){returnthis._smooth};a.prototype.getType=function(){returnthis._type};a.prototype.getValues=function(){returnthis._values};a.prototype.getXAxis=function(){returnthis._xaxis};a.prototype.getYAxis=function(){returnthis._yaxis};a.prototype.hasColoredValues=function(){returnthis._colors.length==this.getCount()};a.prototype.setColor=function(a){this._colors=[a]};a.prototype.setColors=function(a){if(a&&a.length!=this.getCount()){thrownewError("When setting multiple colors there must be one per value.")}this._colors=a||[]};a.prototype.setFill=function(a){this._fill="undefined"==typeofa?null:a};a.prototype.setLabels=function(a){this._validateLabels(a);a="undefined"==typeofa?null:a;this._labels=a};a.prototype.setSmooth=function(a){a="undefined"==typeofa?null:a;this._smooth=a};a.prototype.setType=function(a){if(a!=this.TYPE_DEFAULT&&a!=this.TYPE_LINE){thrownewError("Invalid serie type.")}this._type=a||null};a.prototype.setXAxis=function(a){this._xaxis=a||null};a.prototype.setYAxis=function(a){this._yaxis=a||null};a.prototype._validateLabels=function(a){if(a&&0<a.length&&a.length!=this.getCount()){thrownewError("Series labels must match series values.")}};returna});