text: !function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="_content/Syncfusion.Blazor/scripts/",r(r.s="./bundles/officechart.js")}({"./bundles/officechart.js":function(e,t,r){"use strict";r.r(t);r("./modules/officechart.js")},"./modules/officechart.js":function(e,t){window.sf=window.sf||{},window.sf.officechart=function(e){"use strict";sf.charts.Chart.Inject(sf.charts.AreaSeries,sf.charts.StackingAreaSeries,sf.charts.BarSeries,sf.charts.PieSeries,sf.charts.StackingBarSeries,sf.charts.PolarSeries,sf.charts.ScatterSeries,sf.charts.BubbleSeries,sf.charts.RadarSeries,sf.charts.DateTime,sf.charts.ColumnSeries,sf.charts.StackingColumnSeries,sf.charts.LineSeries,sf.charts.StackingLineSeries,sf.charts.ErrorBar,sf.charts.Trendlines,sf.charts.SplineSeries,sf.charts.DataLabel,sf.charts.Category,sf.charts.Legend,sf.charts.Tooltip,sf.charts.Export),sf.charts.AccumulationChart.Inject(sf.charts.AccumulationLegend,sf.charts.PieSeries,sf.charts.AccumulationTooltip,sf.charts.AccumulationDataLabel);var t=function(){function e(){}return e.prototype.chartRender=function(e){this.chartType=e.chartType,this.isPieType="Pie"===this.chartType||"Doughnut"===this.chartType;var t=this.chartData(e,this.chartType),r={enableAnimation:!1,width:e.width*(96/72)+"px",height:e.height*(96/72)+"px"};this.isPieType?this.chart=new sf.charts.AccumulationChart(r):(this.chart=new sf.charts.Chart(r),this.chart.primaryXAxis=this.chartPrimaryXAxis(e.chartPrimaryCategoryAxis,this.chartType),this.chart.primaryYAxis=this.chartPrimaryYAxis(e.chartPrimaryValueAxis)),this.chart.series=this.chartSeries(e.chartSeries,t,this.chartType);for(var a=0;a<this.chart.series.length;a++)this.chart.series[a].animation.enable=!1;this.chart.title=e.chartTitle,this.chart.legendSettings=this.parseChartLegend(e.chartLegend)},e.prototype.convertChartToImage=function(e,t,r){var a=this;return new Promise((function(i,s){var n=0,o=0,c=a.getControlsValue([e],t,r);n=n||c.width,o=o||c.height;var h=sf.base.createElement("canvas"),u=Math.max(1,window.devicePixelRatio||1);h.width=n*u,h.height=o*u,h.style.width=n+"px",h.style.height=o+"px";var l=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(c.svg)],{type:"image/svg+xml"})),p=new Image,f=h.getContext("2d");f.scale(u,u),p.onload=function(){f.drawImage(p,0,0),window.URL.revokeObjectURL(l);var e=h.toDataURL("image/png");i(e)},p.onerror=function(){s("Invalid data")},p.src=l}))},e.prototype.getControlsValue=function(e,t,r){var a=0,i=0,s=new sf.svgbase.SvgRenderer("").createSvg({id:"Image_Export",width:200,height:200});return e.map((function(e){if(e){var r=e.svgObject.cloneNode(!0),n=e.renderer.createGroup({style:"transform: translateY("+i+"px)"});n.appendChild(r),a=Math.max(e.availableSize.width,t),i+=e.availableSize.height,e.svgObject.outerHTML,s.appendChild(n)}})),s.setAttribute("width",a+""),s.setAttribute("height",i+""),{width:a,height:i,svg:s}},e.prototype.officeChartType=function(e){var t="";switch(e){case"Area_Stacked":t="StackingArea";break;case"Area":t="Area";break;case"Area_Stacked_100":t="StackingArea100";break;case"Bar_Clustered":t="Bar";break;case"Bar_Stacked":t="StackingBar";break;case"Bar_Stacked_100":t="StackingBar100";break;case"Column_Clustered":t="Column";break;case"Column_Stacked":t="StackingColumn";break;case"Column_Stacked_100":t="StackingColumn100";break;case"Scatter_Markers":t="Scatter";break;case"Bubble":t="Bubble";break;case"Doughnut":case"Pie":t="Pie";break;case"Line_Stacked_100":case"Line_Markers_Stacked_100":t="StackingLine100";break;case"Line":case"Line_Markers":t="Line";break;case"Line_Stacked":case"Line_Markers_Stacked":t="StackingLine"}return t},e.prototype.chartSeries=function(e,t,r){for(var a=[],i=0;i<e.length;i++){var s=e[i],n=this.writeChartSeries(s,t,r,i);a.push(n)}return a},e.prototype.writeChartSeries=function(e,t,r,a){var i,s=this.officeChartType(r),n={};n.type=s,n.dataSource=t,n.name=e.seriesName,n.xName="x",n.yName="y"+a,"Bubble"===r&&(n.size="size"+a);var o=e.dataPoints[0];if(this.isPieType?(n.pointColorMapping="color","Doughnut"===r&&(n.innerRadius="75%",n.radius="70%")):(i=this.chartFormat(o,s),n.fill=i),"Line_Markers"!==r&&"Line_Markers_Stacked"!==r&&"Line_Markers_Stacked_100"!==r||(n.marker={visible:!0}),e.hasOwnProperty("dataLabel"))if(this.isPieType)n.dataLabel=this.parseDataLabels(e.dataLabel);else{var c={};c.dataLabel=this.parseDataLabels(e.dataLabel),n.marker=c}if(e.hasOwnProperty("errorBar")){var h=e.errorBar;n.errorBar=this.parseErrorBars(h)}if(e.hasOwnProperty("trendLines"))for(var u=e.trendLines,l=[],p=0;p<u.length;p++){var f,d=u[p];f=this.parseTrendLines(d,i),l.push(f),n.trendlines=l}return n},e.prototype.parseDataLabels=function(e){var t={visible:!0};return this.isPieType?"BestFit"===e.position||"Inside"===e.position?t.position="Inside":t.position="Outside":t.position=this.dataLabelPosition(e.position),t},e.prototype.parseErrorBars=function(e){var t={visible:!0};return t.type=e.type,t.direction=e.direction,"Cap"===e.endStyle?t.errorBarCap={width:1}:t.errorBarCap={width:0},t},e.prototype.parseTrendLines=function(e,t){var r={};return r.type=e.type,r.name=e.name,r.forwardForecast=e.forward,r.backwardForecast=e.backward,"NaN"===e.intercept?r.intercept=0:r.intercept=e.intercept,r.fill=t,r},e.prototype.dataLabelPosition=function(e){var t="Auto";switch(e){case"Outside":t="Outer";break;case"Center":t="Middle";break;case"Inside":t="Top";break;case"OutsideBase":t="Bottom"}return t},e.prototype.chartFormat=function(e,t){var r=e;return"Line"===t||"StackingLine"===t||"StackingLine100"===t?r.line.rgb:r.fill.rgb},e.prototype.chartPrimaryXAxis=function(e,t){var r={};e.chartTitle&&(r.title=e.chartTitle);var a=this.chartCategoryType(e.categoryType);return r.valueType=a,"DateTime"===a&&(r.intervalType="Days",r.labelFormat="M/d/yyyy",r.edgeLabelPlacement="Shift"),"Scatter_Markers"!==t&&"Bubble"!==t||this.checkAndSetAxisValue(r,e),e.hasMajorGridLines&&(r.majorGridLines={width:1}),e.hasMinorGridLines&&(r.minorTicksPerInterval=4),r},e.prototype.chartCategoryType=function(e){var t="";switch(e){case"Time":t="DateTime";break;case"Automatic":t="Category"}return t},e.prototype.chartPrimaryYAxis=function(e){var t={};return e.chartTitle&&(t.title=e.chartTitle),this.checkAndSetAxisValue(t,e),e.hasMajorGridLines&&(t.majorGridLines={width:1}),e.hasMinorGridLines&&(t.minorTicksPerInterval=4),t},e.prototype.checkAndSetAxisValue=function(e,t){0!==t.minimumValue&&(e.minimum=t.minimumValue),0!==t.maximumValue&&(e.maximum=t.maximumValue),0!==t.majorUnit&&(e.interval=t.majorUnit)},e.prototype.chartData=function(e,t){for(var r=e.chartCategory,a=[],i=0;i<r.length;i++){var s=r[i],n=this.chartPlotData(s,e,t,i);a.push(n)}return a},e.prototype.chartPlotData=function(e,t,r,a){var i={},s=t.chartSeries;if("m/d/yyyy"===t.chartPrimaryCategoryAxis.numberFormat){var n=e.categoryXName.split("/"),o=Number(n[0]),c=Number(n[1]),h=Number(n[2]);i.x=new Date(h,o-1,c)}else i.x=e.categoryXName;for(var u=0;u<s.length;u++){var l=e.chartData[u];if(i["y"+u]=l.yValue,"Bubble"===r&&(i["size"+u]=l.size),"Pie"===t.chartType||"Doughnut"===t.chartType){var p=s[u].dataPoints[a];i.color=this.chartFormat(p,r)}}return i},e.prototype.parseChartLegend=function(e){var t={},r=e.position;return"Corner"===r&&(r="right"),r?(t.visible=!0,t.position=r.charAt(0).toUpperCase()+r.slice(1)):t.visible=!1,t},e.prototype.destroy=function(){this.chart&&this.chart.destroy(),this.chart=void 0},e}();return e.ChartComponent=t,e},sf.officechart=sf.officechart({})}});