/*! * * SpreadJS Library 13.1.0 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@grapecity.com * http://www.grapecity.com/en/licensing/grapecity/ * * */ !function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("@grapecity/spread-sheets")):"function"==typeof define&&define.amd?define(["@grapecity/spread-sheets"],a):"object"==typeof exports?exports.Spread=a(require("@grapecity/spread-sheets")):a(GC)}(function(GC){GC="object"==typeof GC?GC:{},GC.Spread=GC.Spread||{},GC.Spread.Sheets=GC.Spread.Sheets||{},GC.Spread.Sheets.Charts=function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,c),e.l=!0,e.exports}return c.m=a,c.c=b,c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:d})},c.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},c.t=function(a,b){var d,e;if(1&b&&(a=c(a)),8&b)return a;if(4&b&&"object"==typeof a&&a&&a.__esModule)return a;if(d=Object.create(null),c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&b&&"string"!=typeof a)for(e in a)c.d(d,e,function(b){return a[b]}.bind(null,e));return d},c.n=function(a){var b=a&&a.__esModule?function b(){return a.default}:function b(){return a};return c.d(b,"a",b),b},c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},c.p="/assets/",c(c.s="./dist/plugins/chart/chart.entry.js")}({"./dist/plugins/chart/axis.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(b,"__esModule",{value:!0}),d=c("./dist/plugins/chart/chartFormat.js"),e=c("./dist/plugins/chart/chartTitle.js"),f=c("FloatingObject"),g=c("Common"),h=c("./dist/plugins/chart/chart.ns.js"),i=c("./dist/plugins/chart/chartInterface.js"),j=f.Drawing.UnitHelper,k=f.Drawing.ChartUtility,l=f.Drawing.ChartConstants,m=f.Drawing.AxisUtility,n=f.Drawing.DateTimeExtension,o=f.Drawing.ChartElementBase,p=f.Drawing.ColorFormat,q=f.Drawing.DrawingText,r=f.Drawing.AxisType,s=f.Drawing.CategoryType,t=f.Drawing.ScaleType,u=f.Drawing.TimeUnit,v=f.Drawing.AxisCrosses,w=f.Drawing.AxisGroup,x=f.Drawing.ColorSchemeIndex,y=f.Drawing.ST_AxPos,z=f.Drawing.ST_Orientation,A=f.Drawing.CT_AxisType,B=f.Drawing.ST_CrossBetween,C=g.Common.CultureManager,D=j.isNullOrUndefined,E=7,F=4*E,G=null,H=void 0,I=Math.abs,J=Math.ceil,K=new g.Common.ResourceManager(h.SR),L=K.getResource.bind(K),M=function(a){S(b,a);function b(b,c,d){var e=a.call(this,b)||this;return e.fsa=c,e.Nc=d,e}return Object.defineProperty(b.prototype,"DefaultText",{get:function(){return"Axis Title"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DefaultFontSize",{get:function(){return j.pointToPixel(10)},enumerable:!0,configurable:!0}),b.prototype.Delete=function(){this.Spa.Axes.Item(this.Nc,this.fsa).HasTitle=!1},b}(e.ChartTitleBase),b.AxisTitle=M,N=function(a){S(b,a);function b(b){var c=a.call(this)||this,d=c;return d.gsa=G,d.hsa=b,d.Qpa=d.GetDefaultChartText(),d}return b.prototype.GetDefaultChartText=function(){var a=this.hsa.Parent.Parent;return new q(a.Parent,a.ChartArea.Font)},Object.defineProperty(b.prototype,"Parent",{get:function(){return this.hsa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Font",{get:function(){return this.Qpa.Font},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){return this.ChartFormat},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Text",{get:function(){return this.Qpa.Text?this.Qpa.Text:this.GetAutoText()},set:function(a){this.Qpa.Text=a},enumerable:!0,configurable:!0}),b.prototype.Delete=function(){this.hsa.HasDisplayUnitLabel=!1,this.hsa.DisplayUnitCustom=1,this.hsa.DisplayUnit=9},b.prototype.GetAutoText=function(){var a=C.q4(C.culture()).NumberFormat.standardDictionaryNumbers,b=this.hsa,c=b.DisplayUnit,d={8:a.Trillions,7:a.Billions,4:a.Millions,1:a.Thousands,0:a.Hundreds};return d[c]||"x"+b.GetValuesFromDispUnit(c)},b.prototype.FromOOModel=function(a){this.gsa=a,a&&(D(a.builtInUnit)?D(a.custUnit)||(this.hsa.DisplayUnitCustom=a.custUnit):this.hsa.DisplayUnit=a.builtInUnit,this.FromCT_DispUnitsLbl(a.dispUnitsLbl),D(a.visible)||(this.hsa.HasDisplayUnitLabel=a.visible))},b.prototype.ToOOModel=function(){var a=this,b=a.gsa,c=b||{};return 10===a.hsa.DisplayUnit?c.custUnit=a.hsa.DisplayUnitCustom:c.builtInUnit=a.hsa.DisplayUnit,c.dispUnitsLbl=a.ToCT_DispUnitsLbl(),c.visible=a.hsa.HasDisplayUnitLabel,c},b.prototype.From2016ChartOOModel=function(a){this.gsa=a,a&&(D(a.unit)||(this.hsa.DisplayUnit=a.unit),this.FromCT_DispUnitsLbl(a.unitsLabel))},b.prototype.To2016ChartOOModel=function(){var a=this,b=a.gsa,c=b||{};return 10===a.hsa.DisplayUnit?c.custUnit=a.hsa.DisplayUnitCustom:c.builtInUnit=a.hsa.DisplayUnit,c.unitsLabel=a.ToCT_DispUnitsLbl(),c},b.prototype.ToCT_DispUnitsLbl=function(){var a,b,c,d=this;return d.hsa.DisplayUnitLabel?(a=d.gsa,b=a&&a.dispUnitsLbl||{},b.spPr=d.ToShapeProperties(),c=d.Qpa.ToOOModel(),d.Qpa.Text?(D(d.Qpa.TextRefer)?b.tx=c:b.tx={strRef:c.strRef},b.txPr=G):(b.txPr=c.rich,b.tx=G),b):G},b.prototype.FromCT_DispUnitsLbl=function(a){var b,c=this;return D(a)?(c.hsa.HasDisplayUnitLabel=!1,void c.FromShapeProperties(G)):(c.FromShapeProperties(a.spPr),c.hsa.HasDisplayUnitLabel=!0,b=a.tx,b||(b={rich:a.txPr}),void c.Qpa.FromOOModel(b))},b.prototype.CreateFormat=function(){return new d.ChartFormat(this.hsa.Parent.Parent)},b}(o),b.DisplayUnitLabel=N,O=function(a){S(b,a);function b(b){var c=a.call(this)||this;return c.hsa=b,c}return Object.defineProperty(b.prototype,"Parent",{get:function(){return this.hsa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){return this.ChartFormat},enumerable:!0,configurable:!0}),b.prototype.FromOOModel=function(a){this.isa=a,a&&this.FromShapeProperties(a.spPr)},b.prototype.ToOOModel=function(){var a=this.isa||{};return a.spPr=this.ToShapeProperties(),a},b.prototype.CreateFormat=function(){return new d.ChartFormat(this.hsa.Parent.Parent)},b}(o),b.Gridlines=O,P=function(){function a(a){var b,c=this;c.jsa=!0,c._orientation=0,c.hsa=a,b=c.hsa.Parent.Parent,c.Qpa=new q(b.Parent,b.ChartArea.Font),c.Qpa.Font.Size=j.pointToPixel(9),c.UP=0}return Object.defineProperty(a.prototype,"Font",{get:function(){return this.Qpa.Font},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"NumberFormat",{get:function(){return this.GetNumberFormat()},set:function(a){this.Rd=a,this.jsa=!1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"NumberFormatLinked",{get:function(){return this.jsa},set:function(a){a?this.Rd=G:this.Rd=this.GetNumberFormat(),this.jsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Offset",{get:function(){return this.UP},set:function(a){this.UP=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Parent",{get:function(){return this.hsa},enumerable:!0,configurable:!0}),a.prototype.GetNumberFormat=function(){var a,b,c,d,e,f,g,h,i=this,j=i.hsa,k=j.Type,l=j.Parent.Parent,m=i.Rd;if(i.NumberFormatLinked){if(a=G,b=l.SeriesCollection,b.Count>0&&(a=b.AllSers.filter(function(a){return a.fsa===j.fsa})[0]),D(a))return G;c=G,0===k?c=a.XValuesRefers:1===k&&(c=a.ValuesRefers),c&&c.length>0&&(d={sheet:G,row:-1,col:-1},a.GetRowColIndex(c,0,d),e=d.sheet,f=d.row,g=d.col,e&&f!==-1&&g!==-1&&(h=e.ksa(f,g),h&&h.FormatCode&&(m=h.FormatCode)))}return m||i.jPa(l.ChartType,k,j)},a.prototype.jPa=function(a,b,c){var d="General";return k.IsStockChart(a)&&b===r.Category||c.IsTimeScale()?d="mm/dd/yyyy":k.IsStacked100Chart(a)&&b===r.Value&&(d="0%"),d},a.prototype.FromOOModel=function(a){var b=this,c={rich:a.CT_TextBody};b.Qpa.FromOOModel(c),a.CT_NumFmt?(b.Rd=a.CT_NumFmt.formatCode,b.jsa=a.CT_NumFmt.sourceLinked!==!1):(b.Rd=G,b.jsa=!0)},a.prototype.ToOOModel=function(){var a,b=this.Qpa.ToOOModel().rich,c={};return c.formatCode=this.GetNumberFormat(),this.NumberFormatLinked===!1&&(c.sourceLinked=!1),a={},a.CT_TextBody=b,a.CT_NumFmt=c,a},a}(),b.TickLabels=P,Q=function(a){S(b,a);function b(b,c,d){var e=a.call(this)||this,f=e;return f.lsa=2,f.msa=2,f.nsa=!0,f.osa=10,f.psa=!1,f.qsa=9,f.rsa=1,f.ssa=G,f.tsa=G,f.usa=1,f.vsa=!0,f.wsa=2,f.xsa=1,f.ysa=!1,f.Asa=!0,f.Bsa=G,f.Csa=G,f.Dsa=b,f.Nc=c,f.fsa=d,f.zsa=new M(f.Dsa.Parent,f.fsa,f.Nc),f.Esa=f.GetDefaultTickLabels(),f.InitProps(),f.InitRulers(),e}return Object.defineProperty(b.prototype,"AxisBetweenCategories",{get:function(){return this.nsa},set:function(a){this.nsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AxisGroup",{get:function(){return this.fsa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Type",{get:function(){return this.Nc},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"CategoryType",{get:function(){return this.Ssa},set:function(a){var b=this;a!==b.Ssa&&(b.EnsureAxisType(0),b.EnsureNotAxisCatType(3),b.UpdateCategoryType(a),b.Chart.HandleElementChanged(8,b,l.CategoryType))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ActualCategoryType",{get:function(){return this.Tsa},set:function(a){a!==this.Tsa&&(this.Tsa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"CategoryNames",{get:function(){return this.EnsureAxisType(0),this.EnsureNotAxisCatType(3),this.GetCategoryNames()},set:function(a){this.EnsureAxisType(0),this.EnsureNotAxisCatType(3),this.Chart.HandleElementChanged(8,this,l.CategoryNames,a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ScaleType",{get:function(){return this.Rsa},set:function(a){a!==this.Rsa&&(this.Rsa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MaximumScale",{get:function(){return this.Gsa},set:function(a){var b=this;b.Isa=!1,a!==b.Gsa&&(b.Gsa=a,b.IsValueOrDateScaleAxis()&&(b.Gsab.Jsa&&(b.Lsa=!0),b.UpdateAxisRulers()))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MinorUnitIsAuto",{get:function(){return this.Msa},set:function(a){a!==this.Msa&&(this.Msa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"BaseUnit",{get:function(){return this.Nsa},set:function(a){var b=this;b.Osa=!1,a!==b.Nsa&&(b.Nsa=a,b.MinorUnitIsAuto&&(b.Psa=a),b.MajorUnitIsAuto&&(b.Qsa=a)),b.UpdateAxisRulers()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"BaseUnitIsAuto",{get:function(){return this.Osa},set:function(a){a!==this.Osa&&(this.Osa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MinorUnitScale",{get:function(){return this.Msa?this.Nsa:this.Psa},set:function(a){this.Msa=!1,a!==this.Psa&&(this.Psa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MajorUnitScale",{get:function(){return this.Lsa?this.Nsa:this.Qsa},set:function(a){this.Lsa=!1,a!==this.Qsa&&(this.Qsa=a,this.UpdateAxisRulers())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AxisTitle",{get:function(){return this.ysa?this.zsa:G},set:function(a){this.zsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Crosses",{get:function(){return this.GetCrosses()},set:function(a){a!==this.Wsa&&(0===a&&(this.Xsa=this.GetCrossesAt()),this.Wsa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"CrossesAt",{get:function(){return this.GetCrossesAt()},set:function(a){a!==this.Xsa&&(this.Xsa=a,this.Wsa=0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){var a=this;return D(a.Kb)&&(a.Kb=a.GetDefaultFormat()),a.Kb},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DisplayUnit",{get:function(){return this.qsa},set:function(a){var b=this;a!==b.qsa&&(b.qsa=a,10===a&&(b.rsa=b.GetValuesFromDispUnit(a))),9!==a&&D(b.ssa)&&(b.ssa=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DisplayUnitCustom",{get:function(){return this.rsa},set:function(a){this.rsa=a,this.qsa=10,D(this.ssa)&&(this.ssa=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DisplayUnitLabel",{get:function(){return this.tsa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasDisplayUnitLabel",{get:function(){return!D(this.ssa)&&this.ssa},set:function(a){this.ssa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasMajorGridlines",{get:function(){return!!this.Usa},set:function(a){var b=this;a!==b.Usa&&(b.Usa=a,a&&D(b.Vsa)&&(b.Vsa=b.GetDefaultGridlines()))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasMinorGridlines",{get:function(){return!!this.Zsa},set:function(a){var b=this;a!==b.Zsa&&(b.Zsa=a,a&&D(b.$sa)&&(b.$sa=b.GetDefaultGridlines()))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasTitle",{get:function(){return this.ysa},set:function(a){this.ysa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"LogBase",{get:function(){return this.osa},set:function(a){var b=this;if(a!==b.osa||!b.IsLogarithmic){if(a<2||a>1e3)throw Error("The LogBase must be in range of 2 and 1000!");b.Rsa=0,b.osa=a,b.UpdateAxisRulers()}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MajorGridlines",{get:function(){return this.Usa?this.Vsa:G},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MinorGridlines",{get:function(){return this.Zsa?this.$sa:G},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Parent",{get:function(){return this.Dsa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ReversePlotOrder",{get:function(){return this.psa},set:function(a){this.psa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"TickLabelPosition",{get:function(){return this.wsa},set:function(a){this.wsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"TickLabels",{get:function(){return this.Esa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"TickLabelSpacing",{get:function(){return this.vsa?1:this.usa},set:function(a){if(a<1)throw Error("The value must be equal to or greater than 1");this.usa=a,this.vsa=!1},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"TickLabelSpacingIsAuto",{get:function(){return this.vsa},set:function(a){this.vsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MajorTickMark",{get:function(){return this.lsa},set:function(a){this.lsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MinorTickMark",{get:function(){return this.msa},set:function(a){this.msa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"TickMarkSpacing",{get:function(){return this.xsa},set:function(a){this.xsa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Visible",{get:function(){return!this.Ysa},set:function(a){this.Ysa=!a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"NoMultiLvlLbl",{get:function(){return this.Asa},set:function(a){a!==this.NoMultiLvlLbl&&(this.Asa=a,0!==this.TickLabels.Offset||a||(this.TickLabels.Offset=100))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Chart",{get:function(){return this.Parent.Parent},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"SeriesCollection",{get:function(){return this.Dsa.Parent.SeriesCollection},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"IsLogarithmic",{get:function(){return 0===this.Rsa},enumerable:!0,configurable:!0}),b.prototype.InitRulers=function(){var a=this;a.Fsa=0,a.Gsa=1.2,a.Hsa=!0,a.Isa=!0,a.Jsa=.2,a.Ksa=.04,a.Lsa=!0,a.Msa=!0,a.Nsa=0,a.Osa=!0,a.Psa=0,a.Qsa=0,a.Rsa=1},b.prototype.InitProps=function(){var a=this;a.Ssa=0,a.Tsa=0,a.IsValueScaleAxis()&&0===a.fsa&&(a.Usa=!0,a.Vsa=a.GetDefaultGridlines()),a.IsValueOrDateScaleAxis()?(a.Wsa=1,a.IsLogarithmic?a.Xsa=1:a.Xsa=0,a.usa=10):0===a.Nc?(1===a.fsa?a.Wsa=2:a.Wsa=1,1===a.Tsa?a.usa=1:a.usa=10):2===a.Nc&&(a.Wsa=1),a.Ysa=0===a.Nc&&0!==a.fsa,a.nsa=!k.IsSurfaceChart(a.Chart.ChartType),a.tsa=new N(a),a.Kb=a.GetDefaultFormat()},b.prototype.GetDefaultGridlines=function(){var a=new O(this),b=a.Format.Line;return b.Color.ObjectThemeColor=1,b.Weight=1,b.Color.Brightness=l.DefaultLineColorBrightness,a},b.prototype.GetDefaultTickLabels=function(){return new P(this)},b.prototype.GetCategoryNames=function(){var a,b,c,d=this,e=d.SeriesCollection,f=e.Count;if(f>0){if(2===d.Nc){for(a=[],b=0;b=F?E:1;break}e--}g=this.GetDateItemsCount(a,b,f,e)}return d.unitValue=e,f},b.prototype.GetDateItemsCount=function(a,b,c,d){var e,f,g;for(d=Math.floor(d),e=new Date(a.valueOf()),f=b,g=[];e<=f;)g.push(e),c===u.days?e.setDate(e.getDate()+d):c===u.months?e.setMonth(e.getMonth()+d):c===u.years&&e.setFullYear(e.getFullYear()+d);return g.length},b.prototype.GetFirstRightSer=function(){var a,b,c,d,e=this.SeriesCollection;for(a=0,b=e.Count;a1)return!0;return!1},b.prototype.ResetOnChartTypeChanged=function(){this.Bsa=G},b.prototype.CreateFormat=function(){return new d.ChartFormat(this.Dsa.Parent,G,G,this.AutoLineColorFormat.bind(this))},b.prototype.GetDefaultFormat=function(){var b=a.prototype.GetDefaultFormat.call(this),c=this.Dsa.Parent.ChartType;return(k.IsSurfaceChart(c)||5===c)&&(b.Line.Weight=1),this.InitAutoLineColor(c,b.Line.Color),k.IsRadarChart(c)&&1===this.Nc&&b.Line.Color.setColor(G,"rgba(0,0,0,0)"),b},b.prototype.InitAutoLineColor=function(a,b){var c=l.DefaultLineColorBrightness;b.ObjectThemeColor=x.DK1,b.Brightness=c},b.prototype.AutoLineColorFormat=function(){var a=this.Dsa.Parent.ChartType,b=new p(this.Dsa.Parent);return this.InitAutoLineColor(a,b),b},b.prototype.EnsureAxisType=function(a){if(this.Nc!==a)throw Error()},b.prototype.EnsureAxisCatType=function(a){if(this.Tsa!==a)throw Error()},b.prototype.EnsureNotAxisType=function(a){if(this.Nc===a)throw Error()},b.prototype.EnsureNotAxisCatType=function(a){if(this.Tsa===a)throw Error()},b.prototype.UpdateCategoryType=function(a){this.Ssa=a,this.Tsa=a},b.prototype.From2016ChartOOModel=function(a){var b,c=this;c.Chart.SuspendElementChanged(),c.Bsa=a,D(a.catScaling)||D(a.catScaling.gapWidth)||(c.gapWidth=a.catScaling.gapWidth),D(a.valScaling)||c.FromCT_ValueAxisScaling(a.valScaling),D(a.title)||(c.zsa.FromOOModel(a.title),c.ysa=!0),D(a.units)||(c.tsa.From2016ChartOOModel(a.units),c.HasDisplayUnitLabel=!0),D(a.majorGridlines)?c.HasMajorGridlines=!1:(c.HasMajorGridlines=!0,c.Vsa.FromOOModel(a.majorGridlines)),D(a.minorGridlines)?c.HasMinorGridlines=!1:(c.HasMinorGridlines=!0,c.$sa.FromOOModel(a.minorGridlines)),D(a.majorTickMarks)?c.MajorTickMark=3:c.MajorTickMark=a.majorTickMarks,D(a.minorTickMarks)||(c.MinorTickMark=a.minorTickMarks),!D(a.tickLabels)&&!D(a.tickLabels.extLst)&&a.tickLabels.extLst.length>0&&(c.Wkb=a.tickLabels.extLst),b={},b.CT_TextBody=a.txPr,b.CT_NumFmt=a.numFmt,c.Esa.FromOOModel(b),D(a.spPr)||c.FromShapeProperties(a.spPr),D(a.extLst)||(c.Xkb=a.extLst),D(a.id)||(c.yn=a.id),D(a.hidden)||(c._hidden=a.hidden),c.Chart.ResumeElementChanged()},b.prototype.To2016ChartOOModel=function(){var b,c=this,d={};return D(c.gapWidth)||(d.catScaling={gapWidth:c.gapWidth}),c.NeedToCT_ValueAxisScaling()&&(d.valScaling=c.ToCT_ValueAxisScaling()),c.ysa&&(d.title=c.zsa.ToOOModel()),c.HasDisplayUnitLabel&&!D(c.tsa)&&(d.units=c.tsa.To2016ChartOOModel()),c.HasMajorGridlines&&!D(c.Vsa)&&(d.majorGridlines=c.Vsa.ToOOModel()),c.HasMinorGridlines&&!D(c.$sa)&&(d.minorGridlines=c.$sa.ToOOModel()),d.majorTickMarks=c.MajorTickMark,d.minorTickMarks=c.MinorTickMark,!D(c.Wkb)&&c.Wkb.length>0&&(d.tickLabels={extLst:c.Wkb}),D(c.TickLabels)||(b=c.Esa.ToOOModel(),0===c.Chart.SeriesCollection.Count?d.numFmt=G:d.numFmt=b.CT_NumFmt,d.txPr=b.CT_TextBody),d.spPr=a.prototype.ToShapeProperties.call(c),D(c.Xkb)||(d.extLst=c.Xkb),D(c.yn)||(d.id=c.yn),D(c._hidden)||(d.hidden=c._hidden),d},b.prototype.FromOOModel=function(a){var b,c,d=this;d.Chart.SuspendElementChanged(),d.Bsa=a,b=d.Nc,0===b?(c=a.axisType,0===c?d.FromCT_CatAx(a):1===c?d.FromCT_DateAx(a):3===c&&d.FromCT_ValAx(a)):1===b?d.FromCT_ValAx(a):2===b&&d.FromCT_SerAx(a),d.Chart.ResumeElementChanged()},b.prototype.ToOOModel=function(){var a,b=this,c=G,d=b.Nc;return 0===d?(a=b.Tsa,1===a?c=b.ToCT_CatAx():2===a?c=b.ToCT_DateAx():3===a&&(c=b.ToCT_ValAx())):1===d?c=b.ToCT_ValAx():2===d&&(c=b.ToCT_SerAx()),c.AxisGroup=b.fsa,c.AxisType=d,c},b.prototype.ToCT_CatAx=function(){var a=this,b=a.Bsa,c=b&&0===b.axisType?b:{axisType:0};return a.ToCT_AxBase(c),c.auto=0===a.CategoryType,a.TickLabelSpacingIsAuto?c.tickLblSkip=G:c.tickLblSkip=a.TickLabelSpacing,c.lblOffset=a.TickLabels.Offset,c.tickMarkSkip=a.TickMarkSpacing,c.noMultiLvlLbl=a.NoMultiLvlLbl,c},b.prototype.FromCT_CatAx=function(a){var b=this;(D(a.auto)||1!==b.ActualCategoryType)&&b.UpdateCategoryType(1),b.FromCT_AxBase(a),D(a.tickLblSkip)?b.vsa=!0:(b.usa=a.tickLblSkip,b.vsa=!1),D(a.lblOffset)||(b.Esa.Offset=a.lblOffset),D(a.tickMarkSkip)||(b.xsa=a.tickMarkSkip)},b.prototype.ToCT_ValAx=function(){var a=this,b=a.Bsa,c=b&&3===b.axisType?b:{axisType:3};return a.ToCT_AxBase(c),a.MajorUnitIsAuto||(c.majorUnit=a.MajorUnit),a.MinorUnitIsAuto||(c.minorUnit=a.MinorUnit),9!==a.qsa?c.dispUnits=a.tsa.ToOOModel():c.dispUnits=null,c},b.prototype.FromCT_ValAx=function(a){var b=this;b.FromCT_AxBase(a),D(a.majorUnit)?b.Lsa=!0:(b.Jsa=a.majorUnit,b.Lsa=!1),D(a.minorUnit)?b.Msa=!0:(b.Ksa=a.minorUnit,b.Msa=!1),b.tsa.FromOOModel(a.dispUnits)},b.prototype.ToCT_DateAx=function(){var a=this,b=a.Bsa,c=b&&1===b.axisType?b:{axisType:1};return a.ToCT_AxBase(c),c.auto=0===a.CategoryType,c.lblOffset=a.TickLabels.Offset,a.MajorUnitIsAuto||(c.majorUnit=a.MajorUnit,c.majorTimeUnit=a.MajorUnitScale),a.MinorUnitIsAuto||(c.minorUnit=a.MinorUnit,c.minorTimeUnit=a.MinorUnitScale),a.BaseUnitIsAuto||(c.baseTimeUnit=a.BaseUnit),c},b.prototype.FromCT_DateAx=function(a){var b=this;(D(a.auto)||2!==b.ActualCategoryType)&&b.UpdateCategoryType(2),b.FromCT_AxBase(a),D(a.majorUnit)?b.Lsa=!0:(b.Jsa=a.majorUnit,b.Lsa=!1),D(a.minorUnit)?b.Msa=!0:(b.Ksa=a.minorUnit,b.Msa=!1),D(a.baseTimeUnit)?b.Osa=!0:(b.Nsa=a.baseTimeUnit,b.Osa=!1),D(a.majorTimeUnit)||(b.Qsa=a.majorTimeUnit),D(a.minorTimeUnit)||(b.Psa=a.minorTimeUnit),D(a.lblOffset)||(b.Esa.Offset=a.lblOffset)},b.prototype.ToCT_SerAx=function(){var a=this,b=a.Bsa||{axisType:2};return a.ToCT_AxBase(b),a.TickLabelSpacingIsAuto?b.tickLblSkip=G:b.tickLblSkip=a.TickLabelSpacing,b.tickMarkSkip=a.TickMarkSpacing,b},b.prototype.FromCT_SerAx=function(a){var b=this;b.FromCT_AxBase(a),D(a.tickLblSkip)?b.vsa=!0:(b.usa=a.tickLblSkip,b.vsa=!1),D(a.tickMarkSkip)||(b.xsa=a.tickMarkSkip)},b.prototype.ToCT_AxBase=function(b){var c,d=this;b.axId=d.GetAxisId(),b.delete=d.Ysa,b.majorTickMark=d.MajorTickMark,b.minorTickMark=d.MinorTickMark,b.tickLblPos=d.TickLabelPosition,b.axPos=d.GetAxPos(),b.scaling=d.ToCT_Scaling(),b.spPr=a.prototype.ToShapeProperties.call(d),D(d.TickLabels)||(c=d.Esa.ToOOModel(),0===d.Chart.SeriesCollection.Count?b.numFmt=G:b.numFmt=c.CT_NumFmt,b.txPr=c.CT_TextBody),d.HasMajorGridlines&&!D(d.Vsa)&&(b.majorGridlines=d.Vsa.ToOOModel()),d.HasMinorGridlines&&!D(d.$sa)&&(b.minorGridlines=d.$sa.ToOOModel()),d.ysa&&(b.title=d.zsa.ToOOModel())},b.prototype.FromCT_AxBase=function(a){var b,c=this;D(a.delete)?1===c.fsa&&(c.Ysa=!1):c.Ysa=a.delete,D(a.majorTickMark)?c.MajorTickMark=0:c.MajorTickMark=a.majorTickMark,D(a.minorTickMark)?c.MinorTickMark=0:c.MinorTickMark=a.minorTickMark,D(a.tickLblPos)||(c.TickLabelPosition=a.tickLblPos),c.FromCT_Scaling(a.scaling),c.FromShapeProperties(a.spPr),b={},b.CT_TextBody=a.txPr,b.CT_NumFmt=a.numFmt,c.Esa.FromOOModel(b),D(a.majorGridlines)?c.HasMajorGridlines=!1:(c.HasMajorGridlines=!0,c.Vsa.FromOOModel(a.majorGridlines)),D(a.minorGridlines)?c.HasMinorGridlines=!1:(c.HasMinorGridlines=!0,c.$sa.FromOOModel(a.minorGridlines)),D(a.title)||(c.zsa.FromOOModel(a.title),c.ysa=!0)},b.prototype.GetAxisPostion=function(){var a=this.GetAxPos(),b={0:"bottom",3:"top",1:"left",2:"right"};return b[a]},b.prototype.GetAxPos=function(){var a=this;return a.Bsa&&!D(a.Bsa.axPos)?a.Bsa.axPos:a.Type===r.Category?k.IsBarChart(a.Chart.ChartType)?this.AxisGroup===w.primary?y.l:y.r:this.AxisGroup===w.primary?y.b:y.t:a.Type===r.Value?this.AxisGroup===w.primary?y.l:y.r:y.b},b.prototype.ToCT_Scaling=function(){var a=this,b=a.Bsa,c=b&&!D(b.scaling)?b.scaling:{};return c.orientation=a.ReversePlotOrder?z.maxMin:z.minMax,a.IsValueOrDateScaleAxis()&&(a.MinimumScaleIsAuto||(c.min=a.MinimumScale),a.MaximumScaleIsAuto||(c.max=a.MaximumScale),a.ScaleType===t.ScaleLogarithmic?c.logBase=a.LogBase:delete c.logBase),c},b.prototype.FromCT_Scaling=function(a){if(a){var b=this;D(a.orientation)||(b.ReversePlotOrder=a.orientation===z.maxMin),D(a.min)?b.Hsa=!0:(b.Fsa=a.min,b.Hsa=!1), D(a.max)?b.Isa=!0:(b.Gsa=a.max,b.Isa=!1),D(a.logBase)?b.Rsa=t.ScaleLinear:(b.osa=a.logBase,b.Rsa=t.ScaleLogarithmic)}},b.prototype.NeedToCT_ValueAxisScaling=function(){var a=this;return!(D(a.KPa)&&D(a.LPa)&&D(a.Jsa)&&D(a.Ksa))},b.prototype.ToCT_ValueAxisScaling=function(){var a=this,b={};return D(a.Fsa)||a.Hsa!==!1||(b.min=a.Fsa),D(a.Gsa)||a.Isa!==!1||(b.max=a.Gsa),D(a.Jsa)||a.Lsa!==!1||(b.majorUnit=a.Jsa),D(a.Ksa)||a.Msa!==!1||(b.minorUnit=a.Ksa),b},b.prototype.FromCT_ValueAxisScaling=function(a){if(a){var b=this;D(a.min)?b.Hsa=!0:(b.Fsa=a.min,b.Hsa=!1),D(a.max)?b.Isa=!0:(b.Gsa=a.max,b.Isa=!1),D(a.majorUnit)||(b.Jsa=a.majorUnit),D(a.minorUnit)||(b.Ksa=a.minorUnit)}},b.prototype.GetCrossAtAx=function(){var a=this;return 0===a.Nc?a.Dsa.Item(1,a.fsa):a.Dsa.Item(0,a.fsa)},b.prototype.GetAxisId=function(){return D(this.Csa)&&(this.Csa=m.GenerateAxisId()),this.Csa},b.prototype._sa=function(a){var b=this;return a&&D(b.Vsa)&&(b.Vsa=b.GetDefaultGridlines()),b.Vsa},b.prototype.ata=function(a){var b=this;return a&&D(b.$sa)&&(b.$sa=b.GetDefaultGridlines()),b.$sa},b.prototype.ZOa=function(){var a=this.Tsa;return 0!==this.Nc||2===a||3===a},b.prototype.RVa=function(a){var b,c,d=this,e=d.Nc,f=d.fsa;0===f?0===e?b="primaryCategory":1===e&&(b="primaryValue"):1===f&&(0===e?b="secondaryCategory":1===e&&(b="secondaryValue")),c={},c[b]=a,this.Parent.RVa(c)},b}(o),b.Axis=Q,R=function(){function a(a){this.Dsa=[],this.Spa=a}return Object.defineProperty(a.prototype,"Parent",{get:function(){return this.Spa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Count",{get:function(){return this.Dsa.length},enumerable:!0,configurable:!0}),a.prototype.Item=function(a,b){return b===H&&(b=w.primary),this.GetAxis(a,b)},a.prototype.GetAxis=function(a,b){var c,d,e,f,g=this.Dsa;for(c=0,d=g;c0&&(g=this.GetAxis(0,0),g.From2016ChartOOModel(j[0])),k&&k.length>0&&(b&&(h=this.GetAxis(1,0),h.From2016ChartOOModel(b)),c&&(i=this.GetAxis(1,1),i.From2016ChartOOModel(c)))},a.prototype.RestoreAxes=function(a){var b,c;this.RestoreGroupAxes(a,w.primary),this.RestoreGroupAxes(a,w.secondary),b=k.GetAxes(a,2),b&&b.length>0&&(c=this.GetAxis(r.SeriesAxis,w.primary),c&&c.FromOOModel(b[0]))},a.prototype.RestoreGroupAxes=function(a,b){var c,d,e,f=k.GetAxises(a,b),g=k.GetCategoryAxises(a),h=a.axes,i=T(h,f,g,A.CT_CatAx),j=T(h,f,g,A.CT_ValAx),l=T(h,f,g,A.CT_DateAx),m=G,n=this.GetAxis(r.Category,b);i&&(n&&n.FromOOModel(i),m=U(h,i)),j&&(n&&n.ActualCategoryType===s.ValueScale&&n.FromOOModel(j),m=U(h,j)),l&&(n&&n.FromOOModel(l),m=U(h,l)),m&&(n&&(D(m.crosses)?D(m.crossesAt)||(n.CrossesAt=m.crossesAt):n.Crosses=m.crosses,D(m.crossBetween)||(n.AxisBetweenCategories=m.crossBetween===B.between)),c=this.GetAxis(r.Value,b),c&&(c.FromOOModel(m),d=G,e=G,i?(d=i.crosses,e=i.crossesAt):l?(d=l.crosses,e=l.crossesAt):j&&(d=j.crosses,e=j.crossesAt),D(d)?D(e)||(c.CrossesAt=e):c.Crosses=d))},a.prototype.ResetOnChartTypeChanged=function(){var a,b,c,d=this.Dsa;for(a=0,b=d;a=0&&c.indexOf(a.axId)>=0})[0]}function U(a,b){return a.filter(function(a){return 3===a.axisType&&a.axId===b.crossAx})[0]}function V(a){return a.filter(function(a){return a.catScaling})}function W(a){return a.filter(function(a){return a.valScaling})}function X(a){var b,c,d;for(b=0,c=a;b1)for(c=void 0,d=void 0,e=0,f=a;e0?b=[Xa(b)||b[0]]:0===a.ChartType&&(b=Wa(b)),b}function $a(a,b){var c,d=a.Name,e=d;return d?b&&(e=_a(b,d)):(c=a.SeriesCollection.IndexOfSource(a),e=m.IsPieOrDoughnutChart(a.ChartType)?""+(c+1):"Series"+(c+1)),e}function _a(a,b){var c,d=b,e=a[b];if(e>0){for(c=0;c=0?c.symbolStrokeWidth=f:"transparent"===c.symbolFill&&"transparent"!==c.symbolStroke||(c.symbolStrokeWidth=0),g=6===a.MarkerStyle||8===a.MarkerStyle||10===a.MarkerStyle,g&&1===d.Fill.Color.ColorType&&(c.symbolFill="transparent"),c):N}function bb(a,b,c){return m.IsPieOrDoughnutChart(a.ChartType)?F(a.Points.Get(0),b,c):F(a,b,c)}function cb(a,b,c){var d,e,f,g=a.ChartType;switch(g){case 13:case 16:case 14:case 17:d={type:P,group:T};break;case 19:case 22:case 20:case 23:d={type:P,swapAxes:!0,group:T};break;case 18:case 21:d={type:P,swapAxes:!0};break;case 9:case 5:case 36:d={type:Q};break;case 26:case 35:d={type:Q,symbols:!0};break;case 24:case 25:d={type:Q,group:T};break;case 27:case 28:d={type:Q,group:T,symbols:!0};break;case 8:case 7:d={type:R};break;case 37:case 39:case 38:case 40:d={type:R,group:T};break;case 1:d={type:S};break;case 33:d={type:Q,symbols:!0,lineAspect:U};break;case 34:d={type:Q,lineAspect:U};break;case 11:case 48:d={type:S,size:!0};break;case 10:case 4:case 30:case 31:case 29:case 32:d={type:P,radial:!0,group:T};break;case 3:case 41:d={type:P,radial:!0,group:T,doughnut:!0};break;case 57:d={type:Z};break;case 58:d={type:X};break;case 2:d={type:Y,swapAxes:!0,radar:!0};break;case 43:d={type:Y,radar:!0,swapAxes:!0,area:!0};break;case 42:d={type:Y,radar:!0,swapAxes:!0,marker:!0,symbols:!0};break;default:d={type:P}}return 52===b?c?(d.stock=!0,d.stockType=2):9===g&&(d={type:L,stockType:0}):51===b?c?(d.stock=!0,d.stockType=2):9===g&&(d={type:M,stockType:1}):50===b?d={type:L,stockType:0}:49===b&&(d={type:M,stockType:1}),e=a.XValuesIsAuto(),f=m.IsScatterChart(g)||m.IsBubbleChart(g),f&&(d.scatter=!0,e&&(d.needXNames=!0)),d}function db(a,b,c){return a instanceof Date?b?new n(fa).format(a):c?j.ToOADate(a):a:a&&a._error?null:a}function eb(a,b,c,d){var e;return e=a?a[b]:c?b+1+"":b+1,db(e,!1,d)}function fb(a,b,c,d,e,f,g,h,i,j,k,l){var m,n,o,q,r,s,t,u,v,w={},x=a.radial,y={},z=a.type===P&&a.swapAxes===!0,A=a.scatter===!0,B=d[e];if(x&&p(B)&&(B=0,m=!0),j&&p(B)&&(B=0),w[g]=db(B),y[g]=db(B),x===!0){if(w[f]=b,n=eb(c,e,z),m&&p(n))return N;w[h]="number"==typeof n?""+n:n}else{if(o=void 0,q=!0,l&&k>0){if(r=0,c){if(r=c.length/k,o=eb(c,e*r,z,A),(p(B)||j&&p(B))&&p(o))return N;if(y[f]=o,s=e,""===o.split(" ").join(""))for(;s>0&&""===o.split(" ").join("");)s-=1,o=c[s*r];else q=!1;w[f]=o}for(t=2;t<=r;t++){if(u=c[t-1+r*e],s=e,y[""+f+t]=u,""===u.split(" ").join(""))for(;s>0&&""===u.split(" ").join("");)s-=1,u=c[t-1+s*r];else q=!1;w[""+f+t]=u}q&&(w=y)}else o=eb(c,e,z,A),w[f]=o;w[h]=b,i&&(v=i.names,w[K]=(v&&v[e]||o)+"")}return w}function gb(a){return oa[a]}function hb(a,b,c,d,e,f){var g,h,i,j=a.AxisTitle;if(j)return g=j.Font.Size*d,h=void 0,b&&(h=g+""),i={color:s(j.Font,c,e,f),fontFamily:j.Font.Name,fontSize:h||g},e||(i.transparency=t(j.Font)),i}function ib(a){var b,c,d;return a.Visible===!0&&(c=a.GetAxisPostion(),d=a.TickLabelPosition,0===d&&0===a.AxisGroup?c=qa[c]:1===d&&1===a.AxisGroup&&(c=qa[c]),b=pa[c]),b||"None"}function jb(a){var b={majorGrid:!!a.MajorGridlines,minorGrid:!!a.MinorGridlines},c=kb(F(a.MajorGridlines,!1,!0));return c&&(b.majorGridStyle=c),c=kb(F(a.MinorGridlines,!1,!0)),c&&(b.minorGridStyle=c),b}function kb(a){var b,c,d;if(a&&(b=a.width,c=a.color,b||c))return d={},b&&(d.strokeWidth=b),c&&(d.stroke=c),d}function lb(a){var b,c,d,e,f;return a.MinimumScaleIsAuto||a.MaximumScaleIsAuto?(b=0,c=1,d=a.CalcualteValueAxisMinMax({},!0,!0),e=d.Max,f=d.Min,a.MaximumScaleIsAuto?e<=0&&(c=0):c=a.MaximumScale,a.MinimumScaleIsAuto?f<0&&(b=Math.abs(f)>e?-1:Math.floor(5*f/e)/5):b=a.MinimumScale,{min:b,max:c}):{min:a.MinimumScale,max:a.MaximumScale}}function mb(a){return a.TickLabels&&a.TickLabels.Qpa&&a.TickLabels.Qpa.TextBody&&a.TickLabels.Qpa.TextBody.Rotation}function nb(a,b,c,d){var e,f,g,h,i,k,l,m,n,o,q,r,u,v,w,x={visible:a.Visible,tickLabelPosition:3===a.TickLabelPosition?3:2,format:a.TickLabels.NumberFormat,majorTickPosition:a.MajorTickMark,minorTickPosition:a.MinorTickMark},y=a.MajorGridlines,z=F(y,!0,b)||{};return z.visible=!!y,x.majorGridLine=z,e=a.IsTimeScale(),f=a.MinorGridlines,g=F(f,!0,b)||{},g.visible=!!f,x.minorGridLine=g,h=hb(a,!1,!0,1,b,c)||{},h.text=a.AxisTitle?a.AxisTitle.Text:"",x.title=h,(d||e&&!a.BaseUnitIsAuto)&&(x.baseUnit=a.BaseUnit),!d&&a.MajorUnitIsAuto||(x.majorUnit=a.MajorUnit,e&&(x.majorUnitScale=a.MajorUnitScale)),!d&&a.MinorUnitIsAuto||(x.minorUnit=a.MinorUnit,e&&(x.minorUnitScale=a.MinorUnitScale)),a.IsValueOrDateScaleAxis()&&(i=a.MinimumScale,k=a.MaximumScale,a.IsTimeScale()?(i=j.FromOADate(i),k=j.FromOADate(k)):xb(a.Chart,a.AxisGroup)&&(l=lb(a),i=l.min,k=l.max,x.format&&!a.TickLabels.NumberFormatLinked||(x.format="0%")),!d&&a.MinimumScaleIsAuto||(x.min=i),!d&&a.MaximumScaleIsAuto||(x.max=k)),m=a.TickLabels.Font,m&&(x.style={color:s(m,!0,b,c),fontFamily:m.Name,fontSize:m.Size},b||(x.style.transparency=t(m))),n=F(a,!0,b,c),n&&(o="transparent",(n.color||""===n.color&&c)&&(o=n.color),x.lineStyle={color:o,width:p(n.width)?1:n.width},b||(x.lineStyle.transparency=n.transparency)),0===a.Type&&(x.categoryType=a.ActualCategoryType),q=mb(a),p(q)||(x.labelAngle=q),r=a.IsLogarithmic&&"number"==typeof a.LogBase&&a.LogBase>=2,r&&(p(x.scaling)&&(x.scaling={}),x.scaling.logBase=a.LogBase),u=9!==a.DisplayUnit,u&&(v={},v.unit=a.GetActualDispUnit(),v.visible=a.HasDisplayUnitLabel,w=a.DisplayUnitLabel.Font,w&&(v.style={color:s(w,!0,b,c),fontFamily:w.Name,fontSize:w.Size},b||(v.style.transparency=t(w))),x.displayUnit=v),x}b.getAxisProperties=nb;function ob(a){return ra[a]}function pb(a,b){var c=!1;return(a||m.IsBubbleChart(b)||m.IsScatterChart(b))&&(c=!0),c}function qb(a){var b,c=a.AllSers;for(b=0;b0&&(g.fontSize=h*c+"")),i}b.getChartAreaStyle=yb;function zb(a,b){var c,d,e,f,g=a.Format.Line;return g.Color&&0===g.Color.ColorType?N:(c={},d=s(g,!1,!0),d&&(c.stroke=d),e=g.Weight>=0?g.Weight:1,c.strokeWidth=Ya(e,b),f=Ab(g),f&&(c.strokeDasharray=f),c)}function Ab(a){var b=a.Weight>0?a.Weight:1,c=a.DashStyle;return Bb(b,c)}b.getLineDashArrayWithLineFormat=Ab;function Bb(a,b){var c;switch(b){case 1:c=a+","+3*a;break;case 2:c=4*a+","+3*a;break;case 3:c=8*a+","+3*a;break;case 4:c=4*a+","+3*a+","+a+","+3*a;break;case 5:c=8*a+","+3*a+","+a+","+3*a;break;case 6:c=8*a+","+3*a+","+a+","+3*a+","+a+","+3*a;break;case 7:c=3*a+","+a;break;case 8:c=a+","+a;break;case 9:c=3*a+","+a+","+a+","+a;break;case 10:c=3*a+","+a+","+a+","+a+","+a+","+a}return c}function Cb(a){return a.Parent.FirstSliceAngle}function Db(a){var b={1:"Top",4:"Bottom",3:"Left",5:"TopRight"};return b[a]||"Right"}function Eb(a){var b="Vertical";return 1!==a&&4!==a||(b="Horizontal"),b}function Fb(a,b){var c={},d=s(a,!1,!0),e=a.Name,f=a.Size;return(d||e||f>0)&&(d&&(c.color=d),e&&(c.fontFamily=e),f>0&&(c.fontSize=f*b+"")),c}function Gb(a,b,c,d){var e,f=a.type,g=a.stock;return e=f===L?{x:"date",high:"high",low:"low",open:"open",close:"close"}:f===M?{x:"date",high:"high",low:"low",close:"close"}:g?"date, volume":f===X||f===Z?$:f===Y?b:d?b:c+", "+b,[{field:e,excludeNulls:!0}]}function Hb(a,b,c,d){var e,f,g=a.type,h=b,i=d.GetCatCount();if(g===Z||g===X)for(h="",e=0;e level"+e;return f={field:h},g===Z&&(f.group="Stack"),a.group&&(f.group=a.group),[f]}function Ib(a,b){var c=a.type,d=b;return c!==X&&c!==Z||(d=ba+"0"),{field:d}}function Jb(a,b,c,d,e,f,g){var h,i,j,k,l,m=a.ShowValue,n=a.ShowCategoryName,o=a.ShowSeriesName,p=a.ShowPercentage,q=[],r=f.radial,s=f.type,t=s===X||s===Z;if(t)return N;if(o&&q.push("{"+(r?d:c)+".value}"),n)if(s===X)q.push("{"+_+"}\n{"+aa+"}");else if(s===Z){for(h="",i=0;i=0&&(l=j),q.push("{PercentageCategory:"+l+"}")),q.length>0?q.join(a.Separator):N}function Kb(a,b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p,q;if(!a)return N;if(h=a.ShowValue,i=a.ShowCategoryName,j=a.ShowSeriesName,k=a.ShowPercentage,l=f.radial,m=f.type,n=m===Z||m===X,o=[],(h||k)&&(n?o.push({field:$}):o.push({field:e})),i)if(n)for(p=0;p0?o:N}function Lb(a,b,c,d,e){var f,g,h=a.type,i=a.stock,j=a.radial,k=a.scatter;return h===L?f="{date.name}:{date.value}\n{high.name}:{high.value}\n{low.name}:{low.value}\n{open.name}:{open.value}\n{close.name}:{close.value}":h===M?f="{date.name}:{date.value}\n{high.name}:{high.value}\n{low.name}:{low.value}\n{close.name}:{close.value}":k?(g=a.needXNames?K:c,f=ca+b+ea+g+'.value}" \n({'+c+".value}, {"+d+".value})",a.size&&(f+=" Size: {"+J+".value}")):f=i?"{date.name}:{date.value}\n{volume.name}:{volume.value}":j?ca+c+ea+b+'.value}" \nValue: {'+d+".value: "+(e||"#,##0")+"} ({PercentageCategory:0%})":h===Z||h===X?"":ca+b+ea+c+'.value}" \nValue: {'+d+".value: "+(e||"General")+"}",f}function Mb(a,b,c,d,e){var f,g,h,i=a.type,j=a.stock,k=i===Z||i===X;if(i===L)f=["date","high","low","open","close"];else if(i===M)f=["date","high","low","close"];else if(j)f=["date","volume"];else if(k)for(f=[],g=0;g=0&&E<=8&&(i={0:"Inside",1:"Inside",2:"Center",3:"Inside",4:"Inside",5:"Center",6:"Outside",7:"Center",8:"Outside"},j=i[E],j&&(D.position=j),f.doughnut))for(k=0;k0)&&(y=D.textStyle={},v&&(y.color=v),w&&(y.fontFamily=w),x>0&&(y.fontSize=x*g+"")),z=Jb(a,b,e,c,d,f,h),p(z)||(0===E?D.overlappingLabels="Smart":D.overlappingLabels="Show"),A=f.type,B=A===X||A===Z,B?(C=a.ShowCategoryName,C||(D={textStyle:{color:"transparent"},style:{backgroundColor:"transparent"}})):z&&(D.template=z),D}function Ob(a,b,c,d,e,f){var g,h,i,j,k,l,m={},n=e.IsMultiLevelXValues,o=e.PointsCount;if(m.values=Gb(a,c,f,n),g=a.type,g===Y&&(m.category={field:f,excludeNulls:!0}),n&&o>0){for(h=e.XValues,i=[f],j=h.length/o,k=2;k<=j;k++)i.push(""+f+k);m.category={field:i.join(">"),excludeNulls:!0}}return m.details=Hb(a,d,f,e),m.color=Ib(a,d),a.size&&(m.size={field:J}),l=Kb(e.GetDataLabels(),e.Name,d,f,c,a,e.GetCatCount()),l&&(m.text=l),m.tooltip=Mb(a,d,f,c,e.GetCatCount()),m}function Pb(a,b,c,d,e,f,g,h,i,j,k,l,n,o,q,r){var s,t,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U=f[0],X={},Y=[];for(c.radial||c.symbols||m.IsScatterChart(U.ChartType)||(X.clippingMode="Clip"),s=U.GetDataLabels(),s&&(X.text=Nb(s,U.Name,g,h,i,c,j,U.GetCatCount())),X.tooltip={style:{borderStyle:{stroke:"#767676"},backgroundColor:"white"},textStyle:{color:"#575757",fontFamily:"Calibri, Arial",fontSize:14*j},template:Lb(c,i,g,h,s&&s.NumberFormat)},c.swapAxes&&(X.swapAxes=!0),c.symbols&&(X.symbols=!0),c.lineAspect&&(X.lineAspect=c.lineAspect),c.radial&&(X.axisMode=V,X.startAngle=Cb(U),c.doughnut&&(X.innerRadius=U.Parent.DoughnutHoleSize/100),X.sweep=360),c.radar&&(X.axisMode=W,X.startAngle=Cb(U)),u(d)?(X.style=X.style||{},1===c.stockType?X.style.stroke="#168A16":0===c.stockType?(X.style.fill="#666666",X.style.stroke="#666666"):2===c.stockType&&(X.style.stroke="#5B9BD4")):m.IsPieOrDoughnutChart(U.ChartType)||m.IsSunburstChart(U.ChartType)||m.IsTreeMap(U.ChartType)?(X.style||(X.style={}),t=bb(U,!1,!0),E=t&&t.width||0,F=t&&t.color,(E>=0||F)&&(E>=0&&(X.style.strokeWidth=Ya(E,j)),F&&!m.IsLineChart(U.ChartType)&&(X.style.stroke=F),t.dashStyle&&(G=Bb(E,t.dashStyle),X.style.strokeDasharray=G))):(H=Wb(f,h,l,j,c,Y),X.seriesStyles=H),w(d)&&(X.axisMode=V,X.startAngle=-Math.PI/2,X.innerRadius=.3),k&&(I=void 0,I=m.IsAnyPieChart(d)||x(d)?ia:C(d)||y(d)||u(d)||0===d?ha:ga,I&&(X.loadAnimation=I[0],X.updateAnimation=I[1],X.hoverAnimation=I[2])),q&&(X.hoverStyle={fill:r.GetFillColor(!1,!1),opacity:1-r.GetFillColorTransparency(),stroke:r.GetLineColor(!1,!1),strokeWidth:r.GetLineWidth(),strokeOpacity:1-r.GetLineColorTransparency(),strokeDasharray:Ab(r.Format.Line),symbolFill:r.Za.GetFillColor(!1,!1),symbolOpacity:1-r.Za.GetFillColorTransparency(),symbolStroke:r.Za.GetLineColor(!1,!1),symbolStrokeWidth:r.Za.GetLineWidth(),symbolStrokeOpacity:1-r.Za.GetLineColorTransparency(),symbolStrokeDasharray:Ab(r.Za.Format.Line)}),J=wa[n],p(J)||(X.showNulls=J),o?X.showNaNs=J:C(d)||z(d)||y(d)||D(d)||u(d)?X.showNaNs=wa[1]:(B(d)||A(d)||v(d))&&(X.showNaNs=wa[0]),m.IsPieOrDoughnutChart(d)&&(X.plugins=[{type:"PlotLayout",name:"ExcelPie"}]),K=[],L=0;L0&&(X.overlays=K),!e||8!==e.GroupType&&9!==e.GroupType||(R=void 0,S=Fc(e),S&&(R=S,T=Qb(b,Y),T.length>0&&(R.groups=T)),R&&(X.bar=S)),X}function Qb(a,b){var c,d,e,f,g,h,i=[];for(c=0,d=b;c0)for(f=u[0],g=f&&f.color,h=f&&f.width,i=v[0],j=i&&i.symbolFill,k=i&&i.symbolStroke,l=i&&i.symbolStrokeWidth,m=1;m=0||n)&&(m>=0&&(o=Ya(m,d),E(k)?g.symbolStrokeWidth=o:g.strokeWidth=o),n&&(E(k)?g.symbolStroke=n:g.stroke=n)),q=ab(j,!1),q?(g.symbolFill=q.symbolFill||"rgba(0,0,0,0)",g.symbolStroke=q.symbolStroke,p(q.symbolStrokeWidth)||(r=q.symbolStrokeWidth<0?1:q.symbolStrokeWidth,g.symbolStrokeWidth=Ya(r,d)),s=j.MarkerSize,p(s)||(g.symbolSize=parseInt(s,10)*d),t=j.MarkerStyle,"none"!==t&&(g.symbolShape=xa[t]),u=j.MarkerFormat.Line,v=void 0,u&&(v=Ab(u)),v&&(g.symbolStrokeDasharray=v)):E(j.ChartType)||(g.symbols=!1),h=ac(j,e),h&&("line"===h.type?g.stroke=h.color:"fill"===h.type&&(E(j.ChartType)?g.symbolFill=h.color:g.fill=h.color)),w=j.Format.Line,x=void 0,w&&(x=Ab(w)),x&&(E(j.ChartType)?g.symbolStrokeDasharray=x:g.strokeDasharray=x),g.key=$a(j,c),g.valueField=b,y.push(g),f.push({seriesName:g.key,valueField:g.valueField});return y}function Xb(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q="plot"+(d+1),r={name:q,type:Yb(b)};return r.encodings=Ob(b,c,h,i,f[0],g),r.config=Pb(a,q,b,c,e,f,g,h,i,j,k,l,m,n,o,p),r}function Yb(a){return a.type===Z?P:a.type===Y?a.area?R:Q:a.type}function Zb(a,b,c,d){var e,f,g,h=a.Points,i=h.Count,j=[];for(e=0;e0&&(f=d.iua(),i[f]?i[f].push(d):(i[f]=[d],g=cb(d,b,0===c),h=dc(d.AxisGroup,g.type),j.push({type:f,value:h,chartInfo:g,targetGroup:d.Parent})));return j.length>1&&j.sort(function(a,b){return b.value-a.value}),{serGroupsOrder:j,serGroups:i}}function fc(a,b,c,d,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s,t=[],u=b.serGroupsOrder,v=b.serGroups,w={};for(l=0;l0&&(K[J]=z[F]),c(K,e)))return}function mc(a){if(a){for(var b in a)if(!p(a[b]))return!1;return!0}return!1}Aa=function(){function a(a){var b=this;b.Ata=a,b.Rlb=b.GetSeriesOrientation(),b.Ou=b.GetDataSourceByCatArrayAndValues(a.lua,a.Ey),b.dlb=b.CreateTreeData(),b.Sta=0}return a.getCatValue=function(a,b,c,d){return!p(a)&&c0?(a=b.Nta[0],1===a.ColumnCount):!!c},a.prototype.GetDataSourceByCatArrayAndValues=function(b,c){var d,e,f,g,h,i,j,k;for(p(b)&&(b=[]),p(c)&&(c=[]),d=this.Ata.GetCatCount()||2,e=c.length,g=[],h=0;h0?d(e,b):e.data,g.push({sum:b,index:c});return g}function d(a,b){if(a.children&&a.children.length>0)for(var c=0;c0?(f["level"+c]=h.value,e(h,c+1,f),k=!1):p(h.value)||(f["level"+c]=h.value,f[$]=h.data,b.push(f),k=!1);k&&(i=0,a.children.length>0&&!p(a.children[0].data)&&(i=a.children[0].data),f={},r.extend(!0,f,d),f[$]=i,b.push(f))}return b},a}(),b.ChartData2016ModelCalHelper=Aa;function nc(a,b){var c,d,e=[];return b&&b[0]&&x(b[0].ChartType)&&!p(b[0].elb)?e=b[0].elb.GetSunBurstOrTreemapData():lc(a,b,function(a){mc(a)||e.push(a)}),e.length>0&&(c=a.ChartType,d=a.Axes.Item(0,0),(m.IsLineChart(c)||m.IsAreaChart(c))&&d&&d.IsValueOrDateScaleAxis()&&(e=oc(e,function(a,b){var c=a[G],d=b[G];return c instanceof Date&&(c=c.valueOf()),d instanceof Date&&(d=d.valueOf()),c-d}))),{values:e}}function oc(a,b){var c,d,e,f,g,h,i,j=a.length;if(j<=1)return a;for(c=Math.floor(j/2),d=a[c],e=[],f=[],g=[],h=0;h0?f.push(a[h]):g.push(a[h])):g.push(a[h]);return oc(e,b).concat(g,oc(f,b))}function pc(a,b){return JSON.stringify(a)===JSON.stringify(b)}function qc(a,b,c){var d,e,f,g,h,i,j;if(!p(b)){if(f=a.ChartType,u(f)){if(g=ua[f],h=g.indexOf(c),h>=0)return a.SeriesCollection.Get(h)}else x(f)?(e=Za(a),d=e&&e.length>0&&e[0]):(e=Za(a),i=ec(e,a.ChartType),j=Mc(i),lc(a,j,function(a,c){if(pc(a,b))return d=c,!0}));return d}}b.getSeries=qc;function rc(a,b){if(b||(b=Za(a)),1===b.length&&!x(b[0].ChartType))return b[0].Name}function sc(a,b){return a&&(a.Text||rc(a.Parent,b)||a.DefaultText)}b.getChartTitleText=sc;function tc(a,b,c,d,e,f){var g,h,i;return a?(void 0===f&&(f=!1),g={text:sc(a,c)},h=a.GetChartTextInternal(),h&&(i=h.Font,g.color=s(i,b,e,f),e||(g.transparency=t(i)),g.fontFamily=i.Name,g.fontSize=(i.Size||a.DefaultFontSize)*d),g):N}b.getChartTitleProperties=tc;function uc(a,b,c){var d,e,f,g,h=tc(a,!1,b,c,!0);return h?(d={text:h.text},a.GetChartTextInternal()&&(d.headerTextStyle={color:h.color,fontFamily:h.fontFamily},h.fontSize&&(d.headerTextStyle.fontSize=h.fontSize*c+""),e=s(a.Format.Fill,!1,!0),f={backgroundColor:e},d.headerStyle=f,g=F(a,!1,!0),g&&(d.headerStyle.strokeWidth=p(g.width)?1:Ya(g.width,c),d.headerStyle.stroke=g.color||"transparent")),d):N}function vc(a){return p(a.Layout)?N:a.Layout}function wc(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,q,r,s;if(a?(f={excelPosition:Db(a.Position),orientation:Eb(a.Position),groupOrientation:Eb(a.Position),textStyle:Fb(a.Font,b)},f.showLegendWithoutOverlappingChart=!a.IncludeInLayout):f={excelPosition:"None"},g=[],a){for(i=18===c.ChartType?"Reversed":O,!m.IsStackedChart(c.ChartType)||2!==a.Position&&3!==a.Position&&5!==a.Position||(i="Reversed"),h={title:"",type:"Color",sortOrder:i},j=qb(c.lta),h.merge=[],k=0;k=t?q.origin=t:q.origin=O:(p(t)||(q.origin=t),o&&p(o.origin)&&!p(q.min)&&q.min<0&&q.max>=0&&(o.origin=0),q&&p(q.origin)&&!p(o.min)&&o.min<0&&o.max>=0&&(q.origin=0)),N&&(h=q.labelAngle||0,q.labelAngle=h-90),j.ReversePlotOrder&&(q.reversed=!0),w(I)&&(q.scale={type:"Percentage"})):M&&H.push({plots:c,type:"Y",position:"None",scale:{type:"Percentage"}}),U=xb(a,1,b),k&&(f=o,L&&(f=q),r=wb(k,"X",d,U,k.IsValueOrDateScaleAxis(),e,K,T),y=Dc(J?j:i,K?n:k),y&&f?f.max=Math.max(f.max,r.max):(K||k.IsValueOrDateScaleAxis()||u(I)||P||(r.scale={type:"Ordinal"},R||(z=a.SeriesCollection.GetValidSers(1)[0],r.min=.5,r.max=(z?z.XValues.length:0)+.5)),t=n&&n.GetCustomCrossesAt(),p(t)?n&&1===n.Crosses&&j&&0===j.ScaleType&&(r.origin=1):r.origin=t,P&&(A=F(k,!1,!0),r.majorGridStyle={stroke:A.color||"transparent",strokeWidth:p(A.width)?1:A.width},r.majorGrid=!0,r.min=W,r.max=Cc(b,W)),V&&(p(r.max)||(r.max=r.max+rb(a.lta,!0)),p(r.min)||(r.min=r.min-rb(a.lta,!1))),g=d.indexOf("plot1")>-1,!f||r.position!==f.position||P||0===a.ChartType?g?H.unshift(r):H.push(r):g?f.plots=r.plots.concat(f.plots):f.plots=f.plots.concat(r.plots),k.ReversePlotOrder&&(r.reversed=!0))),n&&(f=q,L&&(f=o),s=wb(n,"Y",d,U,!0,e,K),B=Dc(J?i:j,K?k:n),B&&f?f.max=Math.max(f.max,s.max):(t=k&&k.GetCustomCrossesAt(),i&&i.ActualCategoryType===l.TimeScale&&!p(t)?o.min<=t&&o.max>=t?q.origin=t:q.origin=O:p(t)||(s.origin=t),P&&(s.majorGrid=!1,h=o.labelAngle||0,s.labelAngle=h-90),g=d.indexOf("plot1")>-1,f&&s.position===f.position&&"None"!==s.position&&N===P?g?f.plots=s.plots.concat(f.plots):f.plots=f.plots.concat(s.plots):g?H.unshift(s):H.push(s),n.ReversePlotOrder&&(s.reversed=!0))),P&&k))for(H.reverse(),C=0;C0&&(m.IsPieOrDoughnutChart(a.ChartType)||m.IsSunburstChart(a.ChartType)||m.IsTreeMap(a.ChartType))&&(z.palette=f),h=zb(a.ChartArea,g),h&&(z.borderStyle=h),i=uc(a.ChartTitle,b,g),i&&(z.header={width:"Auto"},i.text&&(z.header.title=i.text),i.headerTextStyle&&(z.header.textStyle=i.headerTextStyle),i.headerStyle&&(z.header.style=i.headerStyle)),j=Ec(a,b,d,e,g),j.length>0&&(k=a.PlotArea.Format.Fill,l=Ic(k),n=x(a.ChartType)?{}:{backgroundColor:l},o=F(a.PlotArea,!1,!0),o&&(n.innerStroke=o.color||"transparent",n.innerStrokeWidth=p(o.width)?1:Ya(o.width,g)),q={axes:j,style:n},r=wc(a.Legend,g,a,d,e),r&&(q.legend=r.legend,t=F(a.Legend,!1,!0),t&&(q.legend.borderStyle={strokeWidth:p(t.width)?0:Ya(t.width,g),stroke:t.color||"transparent"}),a.Legend&&a.Legend.Format&&(v=s(a.Legend.Format.Fill,!1,!0),v&&(q.legend.style={backgroundColor:v})),q.legends=r.legends,m.IsBubbleChart(a.ChartType)&&q.legends.push({type:"Size",position:"None"}),q.plugins=[{type:"LegendViewManagerModel",name:"SjsLegendViewManagerPlugin"}]),z.plotAreas=[q]),(m.IsPieChart(a.ChartType)||m.IsSunburstChart(a.ChartType))&&(z.bar={width:.85}),z.padding=Hc(a,g),z}function Hc(a,b){var c,d,e,f,g=0,h=0,i=a.ChartType,j=a.kta.legend(),k=j&&j.visible&&3===j.position,l=j&&j.visible&&2===j.position,n=m.IsPieOrDoughnutChart(i)||m.IsRadarChart(i),o=m.IsSunburstOrTreemapChart(i);return n?(g=k?0:8,h=l?0:8):o?(g=k?0:5,h=l?0:5):C(i)?(c=a.Axes,d=c.Item(1,0),e=c.Item(1,1),g=d?0:20,h=e?0:20):D(i)?(c=a.Axes,d=c.Item(1,0),e=c.Item(1,1),g=d?0:10,h=e?0:10):yc(a)&&(c=a.Axes,e=c.Item(1,1),h=e?0:10),f={},0!==h&&(f.right=Ya(h,b)),0!==g&&(f.left=Ya(g,b)),f}function Ic(a){var b,c=a.mqa,d=c.GradientStopList||[],e=Jc(d);return a.Vkb===!0?b=Kc(a.GradientAngle,e):1===a.eqa&&(b=Lc(a.qqa,e)),p(b)&&(b=s(a,!1,!0)),b}function Jc(a){var b,c,d,e,f,g;if(p(a)||0===a.length)return"";for(b="",c="",g=0;g=0}function Qc(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,q,r,s,t,u,v,w,x,y,z,A,B,C,D=a.ChartType,E=cb(a,a.SeriesCollection.Parent.ChartType,b),F={chartType:D,axisGroup:a.AxisGroup};return E.radial?e=Zb(a,!0,c,d).join(","):Pc(a.ChartType)?(f=a.getMarkerFillColor(!0,c,d),(f||""===f)&&(e=f)):(f=a.getFillColor(!0,c,d),(f||""===f)&&(e=f)),F.backColor=e,c||(g=void 0,E.radial?g=$b(a).join(","):Pc(a.ChartType)?g=a.getMarkerColorTransparency():(h=a.getFillColorTransparency(),p(h)||(g=h)),F.backColorTransparency=g),i=F.border={},E.radial?(k=a.Points,k.Count>0&&(l=k.Get(0),m=l.getLineColor(!0,c,d),(m||""===m)&&(i.color=m),c||(n=l.getLineColorTransparency(),p(n)||(i.transparency=n)),j=l.Format.Line.Weight,i.lineType=l.Format.Line.DashStyle)):(j=a.LineWidth,o=a.getLineColor(!0,c,d),(o||""===o)&&(i.color=o),c||(q=a.getLineColorTransparency(),p(q)||(i.transparency=q)),r=a.getLineDashStyle(),p(r)||(i.lineType=r)),!p(j)&&j>=0&&(i.width=j),E.radial&&(F.startAngle=a.Parent.FirstSliceAngle),s=a.Worksheet.Wu.useR1C1,t=a.GetNameFormula(s),t?F.name=t:F.name=$a(a),u=a.GetXValuesFormula(s),u&&(F.xValues=u),v=a.GetValuesFormula(s),v&&(F.yValues=v),w=a.GetBubbleSizesFormula(s),w&&(F.bubbleSizes=w),Pc(a.ChartType)&&(x={},y={},z=a.getMarkerFillColor(!0,c,d),null!==z&&(x.fill=z),x.fillColorTransparency=a.getMarkerColorTransparency(),x.size=a.MarkerSize,x.shape=a.MarkerStyle,y.color=a.getMarkerBorderColor(!0,c,d),y.colorTransparency=a.getMarkerBorderColorTransparency(),y.width=a.getMarkerBorderLineWidth(),y.lineType=a.getMarkerBorderLineDashStyle(),x.border=y,F.symbol=x),A=a.getErrorBars(),p(A)?F.errorBars=null:F.errorBars=A,B=a.getTrendlines(),!p(B)&&B.length>0?F.trendlines=B:F.trendlines=null,C=a.PlotVisibleOnly,p(C)||(F.plotVisibleOnly=C),F}b.getSeriesProperties=Qc,Ba=c("./dist/plugins/chart/dv/dv.js");function Rc(a){var b,c=0;for(b=a.length-1;b>0&&" "===a[b];b--)c++;return{string:a.slice(0,a.length-c),length:c}}Ba&&(Ca={format:function(a,b){var c,d,e,f,h,i,j=b,k=a;if(g.isString(a)&&"{"===a[0]){c={};try{c=JSON.parse(a)||{}}catch(a){c={}}k=c.formatter,d=c.displayUnitValue,g.isNumber(j)&&g.isNumber(d)&&(j/=d)}if("General"===k&&"number"==typeof j&&Math.abs(j-parseFloat(j.toFixed(2)))<1e-10&&(j=j.toFixed(2)),e=0,j&&"string"==typeof j&&(f=Rc(j),j=f.string,e=f.length),h=new n(k).format(j),h&&"string"==typeof h)for(i=0;i0){for(h=[],i=0;i0&&h.push(this.mua(a+g,b+i,e));f.push(h)}return f},p.mua=function(a,b,c){var d=this.getValue(a,b);return c&&"number"==typeof d&&d>i.OADateMinAsDouble&&d1||d>1)for(e=0;e0?h!==-1&&0!==i&&(d.push({Index:h,Count:i}),h=-1,i=0):h===-1?(h=b,i=1):i++;return h!==-1&&0!==i&&d.push({Index:h,Count:i}),d},p.Kqa=function(a){var b=this.currentTheme();return j.Kqa(b,a)},p.Yra=function(a){var b=this.currentTheme();return j.Yra(b,a)},p.wpa=function(a){var b,c,d,e,f,g,h;for(b=0,c=a;b0)return!1}else if(d.IsFullColumn)for(g=0,h=d.ColumnCount;g0)return!1;return!0},p.rua=function(a,b){var c=this.Vva;c&&c.Tva(a,b)},p.MOa=function(a){var b,c=this.charts&&this.charts.all(),d=c&&c.length;for(b=0;b=0;b--)c=a[b],c.chart.RUa(c.value)},d.lUa.$n("Charts",{init:function(){this.Xva=new q(this.kj)},undo:function(a){var b=a.VVa;b&&this.WVa(b),this.kj.MOa(!0)}}),d.Worksheet.$n("chart",{init:function(){var a=this,b=a.Vva=new h.ChartSource(a);a.charts=a.ITa.Xva,a.$oa.push({Wva:function(a){"2"===a.typeName&&b.Qva(a)}});function c(b){var c,d,e;for(c=0,d=a.charts.all();c0&&l&&l.length>0)for(e=j.isSelected(),f=0,g=l.length;f0&&j.height()>0&&h.refresh()):"isSelected"!==k||e||h.select([])}),a.Fu(d.Events.FloatingObjectRemoved+o,function(b,c){var d=c.floatingObject,e=d.Gva;e&&(d.no(),v(a))}),a.Fu(d.Events.FloatingObjectSelectionChanged+o,function(a,b){var c=b.floatingObject;c&&c instanceof g.Chart&&c.isSelected()===!1&&c.Kva()})},dispose:function(a){if(a.clearCache!==!1){var b=this;b.Gu(o),v(b)}},processMouseDown:function(a){var b=this;a.hitInfo.formulaRangeHitInfo||(v(b),b.yl.uH())},toJson:function(a,b){var c,d,e,f=b&&b.ignoreStyle;f||(c=this,d=c.charts.all(),d.length>0&&(e=c.Vva,e&&e.Dxb(),a.charts=d.map(function(a){return a.toJSON()})))},fromJsonAfterFormula:function(a,b,c){var d,e,f,h,i,j,k=c&&c.ignoreStyle;if(!k&&(d=a.charts,e=this,d))for(f=0,h=d;f0){for(c=0,d=f.length;c=0&&a<=500&&(this.dta=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasLegend",{get:function(){return this.fta},set:function(a){a!==this.fta&&(this.fta=a,a&&this.mva.LegendEntries.UpdateEntries())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasTitle",{get:function(){return this.ysa},set:function(a){this.ysa=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HeightPercent",{get:function(){return this.nta.Format.ThreeD._HeightPercent},set:function(a){this.nta.Format.ThreeD._HeightPercent=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Perspective",{get:function(){return this.nta.Format.ThreeD.Perspective},set:function(a){this.nta.Format.ThreeD.Perspective=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"RightAngleAxes",{get:function(){return this.nta.Format.ThreeD._RightAngleAxes},set:function(a){this.nta.Format.ThreeD._RightAngleAxes=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Rotation",{get:function(){return this.nta.Format.ThreeD.RotationX},set:function(a){this.nta.Format.ThreeD.RotationX=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Area3DGroup",{get:function(){return this.GetFirstChartGroup(1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Bar3DGroup",{get:function(){return this.GetFirstChartGroup(2)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Column3DGroup",{get:function(){return this.GetFirstChartGroup(3)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Line3DGroup",{get:function(){return this.GetFirstChartGroup(4)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Pie3DGroup",{get:function(){return this.GetFirstChartGroup(5)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SurfaceGroup",{get:function(){return this.GetFirstChartGroup(6)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"AreaGroups",{get:function(){return this.GetChartGroups(7)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"BarGroups",{get:function(){return this.GetChartGroups(8)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ColumnGroups",{get:function(){return this.GetChartGroups(9)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"DoughnutGroups",{get:function(){return this.GetChartGroups(10)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"LineGroups",{get:function(){return this.GetChartGroups(11)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"PieGroups",{get:function(){return this.GetChartGroups(12)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"RadarGroups",{get:function(){return this.GetChartGroups(13)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"XYGroups",{get:function(){return this.GetChartGroups(14)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ChartGroups",{get:function(){return this.mta.Count>0?this.mta:v},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"IsElementChangedSuspended",{get:function(){return this.jta>0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"DrawingType",{get:function(){return r.Chart},enumerable:!0,configurable:!0}),a.prototype.InitElements=function(){var a=this;a.nta=new y(a),a.mva=new g.Legend(a),n.IsRadarChart(a.e8)||n.IsSunburstOrTreemapChart(a.e8)?a.mva.Position=1:a.mva.Position=4,a.zsa=new h.ChartTitle(a),a.pta=new i.PlotArea(a),n.Is3DChart(a.e8)&&(a.qta=a.GetDefaultFloor(),a.rta=new B(a),a.sta=new C(a),a.tta=new C(a)),a.xOb=new k.HoverStyle(a)},a.prototype.InitProps=function(){var a=this;switch(a.dta=150,a.e8){case 15:case 16:case 17:case 6:case 21:case 22:case 23:a.RightAngleAxes=!0;break;case 5:case 10:case 29:case 30:case 31:case 4:case 44:case 45:case 47:case 46:a.RightAngleAxes=!1}},a.prototype.UpdateSeries=function(a,b){b===w&&(b=!1),this.lta.RefreshSeriesIfNeed(a,b)},a.prototype.InitChartGroups=function(){t(this.mta)&&(this.mta=new e.FullChartGroups(this))},a.prototype.SetSourceData=function(a,b){this.lta.SetSourceData(a,b)},a.prototype.Delete=function(){},a.prototype.UpdatePlotVisibleOnly=function(a){var b,c,d;for(this.eta=a,b=0,c=this.lta.AllSers;bg?k.PlotOrder===h&&k.SetPlotOrderInternal(g):k.PlotOrder>=h&&k.SetPlotOrderInternal(k.PlotOrder+1))},a.prototype.HandleCategoryAxisChanged=function(a,b,c,d){var e,f=a;b===o.CategoryNames?this.lta.SyncOneDimensionSersXValues(f.AxisGroup,c):b===o.CategoryType&&(e=f.CategoryType,0===e?f.ActualCategoryType=this.DetectCatAxisCategoryType(f.AxisGroup):f.ActualCategoryType=e)},a.prototype.HandleChartGroupChanged=function(a,b,c,d){var e,f,g;if(b===o.SplitType||b===o.SplitValue)for(e=0,f=a.GetSers();e1||!t(b.wta)&&b.wta.IsValueOrDateScaleAxis())&&c.UpdateXValuesMaxMin(0),(a>1||!t(b.xta)&&b.xta.IsValueOrDateScaleAxis())&&c.UpdateXValuesMaxMin(1)},a.prototype.UpdateAxes=function(){var a=this;a.Dsa||(a.Dsa=new f.Axes(a)),a.UpdateCatValAxes(),a.UpdateSeriesAxis(),a.UpdateAxisSettings()},a.prototype.UpdateCatValAxes=function(){var a,b,c,d,e=this,f=e.Dsa,g=!1,h=!1;if(n.IsAnyPieChart(e.e8))g=!1,h=!1;else if(a=e.lta.Count,0===a)g=!0;else for(b=0,c=e.lta.Count;b0&&(a=G(this.Dsa,0,0),t(a)||(a.NoMultiLvlLbl=!e.some(function(a){return a.IsMultiLevelXValues}))),b=d.GetSers(!0,1),b.length>0&&(c=G(this.Dsa,0,1),t(c)||(c.NoMultiLvlLbl=!b.some(function(a){return a.IsMultiLevelXValues})))},a.prototype.UpdateFormat=function(){var a=this,b=a.nta.Format.ThreeD;n.Is3DChart(a.e8)&&(n.IsPieChart(a.e8)?(b.RotationX=0,b.RotationY=30):46===a.e8||47===a.e8?(b.RotationX=0,b.RotationY=90,b.Perspective=0):(b.RotationX=20,b.RotationY=15))},a.prototype.UpdateAxisSettings=function(a){a===w&&(a=v);var b=this;b.UpdateAxisActualCatType(a),t(b.uta)||(46===b.e8||47===b.e8?b.uta.TickLabelPosition=3:b.uta.TickLabelPosition=2)},a.prototype.UpdateAxisActualCatType=function(a){a===w&&(a=v);var b=this;t(b.wta)||0!==b.wta.CategoryType||!t(a)&&0!==a||(b.wta.ActualCategoryType=b.DetectCatAxisCategoryType(0)),t(b.xta)||0!==b.xta.CategoryType||!t(a)&&1!==a||(b.xta.ActualCategoryType=b.DetectCatAxisCategoryType(1))},a.prototype.UpdateOnChartTypeChanged=function(){var a,b,c=this;c.ResetSeriesByChartType(),c.UpdateAxes(),c.Dsa.ResetOnChartTypeChanged(),c.UpdateSeriesCollectionMinMax(),c.UpdateFormat(),a=n.MapToGroupType(c.e8),b=c.ita[a],b&&b.Reset()},a.prototype.UpdateChartTypeBySeries=function(){var a,b,c,d,e,f,g,h=this,i=h.e8,j=h.lta,k=j.Count;if(0===k)return!1;for(a=j.Get(0),b=a.InnerChartType,c=a.AxisGroup,d=!0,e=i,f=1;f1?3:1},a.prototype.AreAllFirstSerXValuesDateTime=function(a){var b=this.lta.Item(0,a);return!t(b)&&(!t(b.XValuesRefers)&&n.AreValuesDateTime(this.kta.sheet(),b.XValuesRefers,this.PlotVisibleOnly))},a.prototype.GetDefaultFloor=function(){var a,b=new z(this);return n.IsAreaChart(this.e8)&&n.Is3DChart(this.e8)?(a=b.Format.Line,a.Weight=1,a.Color.ObjectThemeColor=1,a.Color.Brightness=o.DefaultLineColorBrightness):b.Thickness=0,b},a.prototype.GetStockChartSersCount=function(a){return 49===a?3:50===a||51===a?4:52===a?5:-1},a.prototype.HasChartGroups=function(a){var b,c,d;for(b=0,c=this.lta.AllSers;b0?b.Get(0):v},a.prototype.FromOOModel=function(a){var b=this;b.zta=a,t(a)||(b.FromCT_ChartArea(a),t(a.colors)||(b.$kb=a.colors),t(b.zta.chart)||(b.mta.startCache(),b.FromCT_Chart(b.zta.chart),b.mta.endCache()),t(b.zta.userShapes)||b.FromCT_UserShapes(b.zta.userShapes))},a.prototype.ToOOModel=function(){var a,b,c=this,d=t(c.zta)?{typeName:"chartSpace"}:c.zta;return t(c.nta)||(d.roundedCorners=c.nta.RoundedCorners),d.chart=c.ToCT_Chart(),t(c.nta)||(a=c.nta.ToOOModel(),d.spPr=a.SpPr,d.txPr=a.TxPr),b=c.ToCT_UserShapes(),b&&(d.userShapes=b),d},a.prototype.FromCT_ChartArea=function(a){var b,c={};c.RoundedCorners=!t(a.roundedCorners)&&a.roundedCorners,c.SpPr=a.spPr,c.TxPr=a.txPr,c.Is2016Chart=F(a),this.nta.FromOOModel(c),t(a.chart)&&t(a.spPr)||(b={},t(a.chart)||(b.View3D=a.chart.view3D),t(a.spPr)||(b.Scene3D=a.spPr.scene3d,b.Shape3D=a.spPr.sp3d),t(b.View3D)&&t(b.Shape3D)&&t(b.Scene3D)||this.nta.FormatInternal.ThreeD.FromOOModel(b))},a.prototype.ToCT_UserShapes=function(){return 0===this.hta.length?v:this.hta.map(function(a){return a.toJSON()})},a.prototype.FromCT_UserShapes=function(a){var b=this,c=b.kta.sheet();a&&a.forEach(function(a){if(a){var d=v;a.chartSpace?d=b.createChartView&&b.createChartView(c):a.src&&(d=new l.Picture),d&&(d.fromJSON(a),b.hta.push(d))}})},a.prototype.ToCT_Chart=function(){var a=this,b=t(a.zta)||t(a.zta.chart)?{}:a.zta.chart,c=a.ChartType,d=n.GetIs2016ChartByChartType(c);return a.HasTitle?(b.title=a.zsa.ToOOModel(d),b.autoTitleDeleted=!1):(delete b.title,b.autoTitleDeleted=!0),a.ToCT_3DChartProps(b),b.plotArea=a.pta.ToOOModel(),a.HasLegend?b.legend=a.mva.ToOOModel(d):delete b.legend,b.plotVisOnly=a.PlotVisibleOnly,t(a.DisplayBlanksAs)?b.dispBlanksAs=0:b.dispBlanksAs=a.DisplayBlanksAs,t(a.DisplayNaNAsBlank)||(b.dispNaAsBlank=a.DisplayNaNAsBlank),b.extLst=a.ToCT_ExtensionList(),b.showDLblsOverMax=a.ShowDataLabelsOverMaximum,b.pivotFmts&&0===b.pivotFmts.length&&delete b.pivotFmts,b},a.prototype.FromCT_ExtensionList=function(a){var b,c,d,e,f,g=this;if(!t(a)&&!t(a.ext))for(b=0,c=a.ext;b=0&&a<=300&&(this.Wua=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"DoughnutHoleSize",{get:function(){return this.Pua},set:function(a){a!==this.Pua&&a>=10&&a<=90&&(this.Pua=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"FirstSliceAngle",{get:function(){return this.Xua},set:function(a){a!==this.Xua&&a>=0&&a<=360&&(this.Xua=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"GapWidth",{get:function(){return this.Yua},set:function(a){a!==this.Yua&&a>=0&&a<=500&&(this.Yua=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasDropLines",{get:function(){return this.Rua},set:function(a){var b=this;a!==b.Rua&&(b.Rua=a,a&&l(b.$ua)&&(b.$ua=new m(b,0)))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasHiLoLines",{get:function(){return this.Sua},set:function(a){var b=this;a!==b.Sua&&(b.Sua=a,a&&l(b._ua)&&(b._ua=new m(b,1)))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasSeriesLines",{get:function(){return this.Tua},set:function(a){var b=this;a!==b.Tua&&(b.Tua=a,a&&l(b.ava)&&(b.ava=new m(b,2)))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasUpDownBars",{get:function(){return this.Uua},set:function(a){var b=this;a!==b.Uua&&(b.Uua=a,a&&l(b.bva)&&(b.bva=new n(b,0)),a&&l(b.cva)&&(b.cva=new n(b,1)))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Overlap",{get:function(){return this.dva},set:function(a){a!==this.dva&&a>=-100&&a<=100&&(this.dva=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Parent",{get:function(){return this.Spa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SecondPlotSize",{get:function(){return this.Mua},set:function(a){a!==this.Mua&&a>=5&&a<=200&&(this.Mua=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SeriesLines",{get:function(){return this.HasSeriesLines?this.ava:k},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HiLoLines",{get:function(){return this.HasHiLoLines?this._ua:k},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"DropLines",{get:function(){return this.HasDropLines?this.$ua:k},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SizeRepresents",{get:function(){return this.Vua},set:function(a){this.Vua=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SplitType",{get:function(){return this.Nua},set:function(a){var b,c=this;a!==c.Nua&&(c.Nua=a,b={0:2,1:50,2:10},c.Oua=b[c.Nua]||c.Oua,c.Spa.HandleElementChanged(17,c,g.SplitType))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SplitValue",{get:function(){return this.Oua},set:function(a){var b=this;a!==b.Oua&&(b.Oua=a,b.Spa.HandleElementChanged(17,b,g.SplitValue))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"UpBars",{get:function(){return this.HasUpDownBars?this.bva:k},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"DownBars",{get:function(){return this.HasUpDownBars?this.cva:k},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"VaryByCategories",{get:function(){return this.Qua},set:function(a){var b,c,d,e,f,g=this;if(a!==g.Qua&&(g.Qua=a,a))for(b=0,c=g.GetSers();b0&&(c=e[0],d.RestoreBarBaseGroup(c),l(c.overlap)?d.Overlap=0:d.Overlap=c.overlap,c.serLines&&c.serLines.length>0?(d.HasSeriesLines=!0,d.ava.FromOOModel(c.serLines[0])):d.HasSeriesLines=!1)},a.prototype.RestoreBarBaseGroup=function(a){l(a.gapWidth)||(this.GapWidth=a.gapWidth),l(a.varyColors)||(this.Qua=a.varyColors)},a.prototype.GetBarCharts=function(a,b,c){var d,e,f,g,h=this.GetCharts(6,a,b),i=[];for(d=0,e=h;d0&&(b=g[0],f.RestoreLineBaseGroup(b),c=b.hiLowLines,l(c)?f.HasHiLoLines=!1:(f.HasHiLoLines=!0,f._ua.FromOOModel(c)),d=b.upDownBars,l(d)?f.HasUpDownBars=!1:(f.HasUpDownBars=!0,f.bva.FromOOModel(d.upBars),f.cva.FromOOModel(d.downBars)),e=b.marker,l(e)?f.Marker=!1:f.Marker=e)},a.prototype.RestoreLineBaseGroup=function(a){var b,c=this,d=a.varyColors;l(d)||(c.Qua=d),b=a.dropLines,l(b)?c.HasDropLines=!1:(c.HasDropLines=!0,c.$ua.FromOOModel(b))},a.prototype.RestoreStockGroup=function(a){var b,c,d,e,f=this,g=f.GetCharts(0,a,f.fsa);g.length>0&&(b=g[0],c=b.dropLines,l(c)?f.HasDropLines=!1:(f.HasDropLines=!0,f.$ua.FromOOModel(c)),d=b.hiLowLines,l(d)?f.HasHiLoLines=!1:(f.HasHiLoLines=!0,f._ua.FromOOModel(d)),e=b.upDownBars,l(e)?f.HasUpDownBars=!1:(f.HasUpDownBars=!0,f.bva.FromOOModel(e.upBars),f.cva.FromOOModel(e.downBars),l(e.gapWidth)||(f.GapWidth=e.gapWidth)))},a.prototype.RestoreXYGroup=function(a){var b,c,d=this.GetCharts(1,a,this.fsa);d.length>0&&(b=d[0],c=b.varyColors,c&&(this.Qua=c))},a.prototype.RestoreBubbleGroup=function(a){var b,c,d,e,f,g=this,h=g.GetCharts(3,a,g.fsa);h.length>0&&(b=h[0],c=b.varyColors,c&&(g.Qua=c),d=b.bubbleScale,l(d)||(g.Wua=d),e=b.showNegBubbles,l(e)||(g.ShowNegativeBubbles=e),f=b.sizeRepresents,l(f)||(g.SizeRepresents=f))},a.prototype.RestorePieGroup=function(a){var b,c,d=k,e=h.GetPieChart(a);0===this.fsa?e.length>0&&(d=e[0]):(b=h.GetPieCharts(a),c=h.GetPrimaryPieChart(b),10===c.chartType?e.length>1&&(d=e[1]):e.length>0&&(d=e[0])),l(d)||this.RestorePieBaseGroup(d)},a.prototype.RestoreOfPieGroup=function(a){var b,c,d,e,f,g,i,j,m,n,o,p,q,r,t,u,v,w,x=this,y=k,z=h.GetOfPieChart(a);if(0===x.fsa?z.length>0&&(y=z[0]):(b=h.GetPieCharts(a),c=h.GetPrimaryPieChart(b),13===c.chartType?z.length>1&&(y=z[1]):z.length>0&&(y=z[0])),y)if(x.RestorePieBaseGroup(y),d=y.serLines,!l(d)&&d.length>0?(x.HasSeriesLines=!0,x.ava.FromOOModel(d[0])):x.HasSeriesLines=!1,e=y.secondPieSize,l(e)||(x.SecondPlotSize=e),f=y.gapWidth,l(f)||(x.GapWidth=f),g=y.splitType,l(g)||(x.Nua=g),i=y.splitPos,l(i)||(x.Oua=i),3===x.Nua){if(j=y.custSplit,m=j&&j.secondPiePt,m&&m.length>0)for(n=0,o=x.GetSers();n0&&(e=f[0]):(b=h.GetPieCharts(a),c=h.GetPrimaryPieChart(b),12===c.chartType?f.length>1&&(e=f[1]):f.length>0&&(e=f[0])),e&&(this.RestorePieBaseGroup(e),d=e.holeSize,l(d)||(this.DoughnutHoleSize=d))},a.prototype.RestorePieBaseGroup=function(a){var b,c=a.varyColors;l(c)||(this.Qua=c),b=a.firstSliceAng,l(b)||(this.Xua=b)},a.prototype.RestoreRadarGroup=function(a){var b,c,d=this.GetCharts(2,a,this.fsa);d.length>0&&(b=d[0],c=b.varyColors,l(c)||(this.Qua=c))},a.prototype.RestoreAreaGroup=function(a){var b=this.GetCharts(4,a,this.fsa);b.length>0&&this.RestoreAreaBaseGroup(b[0])},a.prototype.RestoreAreaBaseGroup=function(a){var b,c=this,d=a.varyColors;l(d)||(c.Qua=d),b=a.dropLines,l(b)?c.HasDropLines=!1:(c.HasDropLines=!0,c.$ua.FromOOModel(b))},a.prototype.RestoreArea3DGroup=function(a){var b,c,d=h.GetArea3DChart(a);l(d)||(b=d,this.RestoreAreaBaseGroup(b),c=b.gapDepth,l(c)||(this.Spa.GapDepth=c))},a.prototype.RestoreBar3DGroup=function(a){var b,c,d,e=h.GetBar3DChart(a);l(e)||(b=e,this.RestoreBarBaseGroup(b),c=b.gapDepth,l(c)||(this.Spa.GapDepth=c),d=b.shape,l(d)||this.Spa.SetBarShapeInternal(d))},a.prototype.RestoreLine3DGroup=function(a){var b,c=h.GetLine3DChart(a);l(c)||(this.RestoreLineBaseGroup(c),b=c.gapDepth,l(b)||(this.Spa.GapDepth=b))},a.prototype.RestorePie3DGroup=function(a){var b=h.GetPie3DChart(a);l(b)||this.RestorePieBaseGroup(b)},a.prototype.GetCharts=function(a,b,c){var d,e,f,g,i,j,k,l=h.GetPrimaryAxises(b),m=[],n=[];for(d=0,e=b.chartGroups;d=0&&a0&&b.push(c),a=this.TryGetCachedGroup(1),!l(a)&&a.Count>0&&b.push(a),b},a.prototype.Reset=function(){var a,b,c;for(a=0,b=this.fva;a=0&&a0)return{index:+a.substr(b+1),name:a.substr(0,b)}}}function i(a,b,c,d,e,f){var g,i,j,k,l;a&&c&&d&&(g=h(c),g&&(i=b[g.name],i&&(j=a.get(i),j&&(k=f[i],k||(k=f[i]={indexes:[],chart:j}),l=d.formulaAdjusted,l&&(j.sWa=!0),j.Iva(g.index,d.formula,e,k,2===l)))))}function j(a,b,c){var d,e,f,g,i={};for(e in a)d=a[e],d.formula&&b&&e&&(f=h(e),f&&(g=c[f.name],g&&(i[g]||(i[g]=[]),i[g].push({info:f,changeInfo:d}))));return i}function k(a,b,c,d,e){var f,g,h,i,j,k,l;if(a&&c){if(f=b.get(a),!f)return;for(g=e[a],g||(g=e[a]={indexes:[],chart:f}),f.Spa.lBb=!0,h=0;h0&&(l=f.series(),l.UpdatePrimaryValuesMaxMin(),l.UpdateSecondaryValuesMaxMin(),l.UpdatePrimaryXValuesMaxMin(),l.UpdateSecondaryXValuesMaxMin())}}function l(a,b,c,d){var e,f,g;a&&c&&d&&(e=h(c),e&&(f=b[e.name],f&&(g=a.get(f),g&&g.sua(!d.formula||d.formulaAdjusted))))}function m(a,b,c,d,e,f){var g=b.getFormulas();a.qWa[d]=e,g&&g.length&&g.forEach(function(a,b){c.setFormulaByName(d+","+b,a,f)})}function n(a,b,c){for(var d=0;;){if(!a.DTa(b+","+d))break;a.setFormulaByName(b+","+d,null,c),d++}}function o(a,b){if(b&&b.indexOf("#REF!")!==-1){b=b.replace(/#REF!/g,"");var c=b.split(",");a.formulaAdjusted=c[2].length?1:2}a.formula=b}},"./dist/plugins/chart/chartTitle.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(b,"__esModule",{value:!0}),d=c("./dist/plugins/chart/chartFormat.js"),e=c("FloatingObject"),f=e.Drawing.UnitHelper,g=e.Drawing.ChartUtility,h=e.Drawing.DrawingText,i=e.Drawing.ChartElementBase,j=f.isNullOrUndefined,k=g.IsSunburstOrTreemapChart,l=null,m=function(a){o(b,a);function b(b){var c=a.call(this)||this,d=c;return d.Ppa=!0,d.Rpa=l,d.Spa=b,d.Qpa=d.GetDefaultChartText(),d}return b.prototype.GetChartTextInternal=function(){return this.Qpa},Object.defineProperty(b.prototype,"Font",{get:function(){var a=this;return j(a.Qpa)&&(a.Qpa=a.GetDefaultChartText()),a.Qpa.Font},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){return this.ChartFormat},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Formula",{get:function(){return j(this.Qpa)?l:this.Qpa.Formula},set:function(a){var b=this;j(b.Qpa)&&(b.Qpa=b.GetDefaultChartText()),b.Qpa.Formula=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"FormulaR1C1",{get:function(){return j(this.Qpa)?l:this.Qpa.FormulaR1C1},set:function(a){var b=this;j(b.Qpa)&&(b.Qpa=b.GetDefaultChartText()),b.Qpa.FormulaR1C1=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"IncludeInLayout",{get:function(){return this.Ppa},set:function(a){this.Ppa=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Parent",{get:function(){return this.Spa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Text",{get:function(){return j(this.Qpa)?l:this.Qpa.Text},set:function(a){var b=this;j(b.Qpa)&&(b.Qpa=b.GetDefaultChartText()),b.Qpa.Text=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DefaultText",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DefaultFontSize",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Worksheet",{get:function(){return this.Spa.Parent.sheet()},enumerable:!0,configurable:!0}),b.prototype.GetTextList=function(a){var b,c,d,e=[],f=this.Worksheet.Apa(a.WorksheetName);for(b=a.Row;b<=a.LastRow;b++)for(c=a.Column;c<=a.LastColumn;c++)d=f.Jpa(b,c).Text,e.push(j(d)?"":d);return e},b.prototype.GetDefaultChartText=function(){var a=new h(this.Spa.Parent,this.Spa.ChartArea.Font,l,l);return a.Font.Size=this.DefaultFontSize,a},b.prototype.CreateFormat=function(){var a=new d.ChartFormat(this.Spa);return a.Fill.Color.ColorType=0,a.Line.Color.ColorType=0,a},b.prototype.FromOOModel=function(b){var c,d=this;d.Rpa=b,b&&(j(b.tx)?j(b.txPr)?d.Qpa=d.GetDefaultChartText():(c={},c.rich=b.txPr,d.Qpa.FromOOModel(c)):(j(b.tx.strRef)||j(b.txPr)?j(b.txPr)||j(b.tx.txData)||(b.tx.rich=b.txPr):b.tx.rich=b.txPr,d.Qpa.FromOOModel(b.tx)),j(b.overlay)||(d.Ppa=!b.overlay),a.prototype.FromShapeProperties.call(d,b.spPr))},b.prototype.ToOOModel=function(){var b,c=this,d=j(c.Rpa)?{}:c.Rpa;return j(c.Qpa)?(delete d.tx,delete d.txPr):(b=c.Qpa.ToOOModel(),d.tx={},j(c.Qpa.TextRefer)?c.Qpa.Text?(delete d.tx.strRef,d.tx=b):(delete d.tx,d.txPr=b.rich,k(this.Spa.ChartType)&&d.txPr.p.length>0&&d.txPr.p[0].elements&&d.txPr.p[0].elements.length>0&&(d.txPr.p[0].elements[0].t=c.DefaultText)):(d.tx.strRef=b.strRef,d.txPr=b.rich)),d.overlay=!c.Ppa,d.spPr=a.prototype.ToShapeProperties.call(c),d},b}(i),b.ChartTitleBase=m,n=function(a){o(b,a);function b(b){return a.call(this,b)||this}return Object.defineProperty(b.prototype,"DefaultText",{get:function(){return"Chart Title"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DefaultFontSize",{get:function(){return f.pointToPixel(14)},enumerable:!0,configurable:!0}),b.prototype.Delete=function(){this.Spa.HasTitle=!1},b.prototype.ToOOModel=function(b){var c,d,e=a.prototype.ToOOModel.call(this);return j(e.tx)&&j(e.txPr)&&!b&&(c=e.txPr={p:[]},d={elements:[]},d.pPr={},d.pPr.defRPr={b:!1},c.p.push(d),j(c.bodyPr)&&(c.bodyPr={}),j(c.lstStyle)&&(c.lstStyle={})),this.CorrectChartTitleOOModel(e),e},b.prototype.CorrectChartTitleOOModel=function(a){if(a){var b=a.txPr,c=a.tx,d=this.Font.Size,e=void 0;b&&b.p&&b.p.length>0&&b.p[0].pPr?(e=b.p[0].pPr.defRPr,e&&(e.sz=d)):c&&c.rich&&c.rich.p&&c.rich.p.length>0&&c.rich.p[0].pPr&&(e=c.rich.p[0].pPr.defRPr,e&&(e.sz=d))}},b}(m),b.ChartTitle=n},"./dist/plugins/chart/chartview.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(b,"__esModule",{value:!0}),d=c("Core"),e=c("SheetsCalc"),f=c("FloatingObject"),g=c("FormulaTextBox"),h=c("./dist/plugins/chart/axis.js"),i=c("./dist/plugins/chart/chart.js"),j=c("./dist/plugins/chart/series.js"),k=c("./dist/plugins/chart/chart-dv.js"),l=c("./dist/plugins/chart/chartInterface.js"),m=c("./node_modules/util/util.js"),n=d.GC$,o=f.Drawing.DateTimeExtension,p=f.Drawing.ARGBColor,q=f.Drawing.Reference,r=f.Drawing.UnitHelper,s=f.Drawing.ChartUtility,t=f.Drawing.DisplayUnit,u=s.colorFormatToString,v=s.getTransparencyFromColorFormat,w=d.kf,x=e.formulaToRanges,y=r.isNullOrUndefined,z=s.IsSunburstOrTreemapChart,A=s.IsRadarChart,B=n.isEmptyObject,C=s.getLineFormatInfo,D=f.Drawing.ChartType,E=null,F=void 0,G={1:"horizontal",2:"vertical"};function L(a,b){var c=1,d;if(!a)return b+c;do d=b+c,c++;while(a.charts.get(d));return d}function M(a,b,c){var d,e,f,g,h,i,j,k,l,m;a&&b&&(d=b.showValue,e=b.showSeriesName,f=b.showCategoryName,g=b.showPercentage,h=b.position,i=b.format,j=b.color,k=b.transparency,l={},m=!1,a.SeriesCollection.AllSers.forEach(function(a){var b,n,o=a.DataLabels;o&&(d!==F&&(m||(l.showValue=o.ShowValue),o.ShowValue=d),e!==F&&(m||(l.showSeriesName=o.ShowSeriesName),o.ShowSeriesName=e),f!==F&&(m||(l.showCategoryName=o.ShowCategoryName),o.ShowCategoryName=f),g!==F&&(m||(l.showPercentage=o.ShowPercentage),o.ShowPercentage=g),b=o.ShowValue||o.ShowSeriesName||o.ShowCategoryName||o.ShowPercentage,!a.HasDataLabels&&b?(n=o.ShowValue,a.HasDataLabels=!0,n===!1&&(a.DataLabels.ShowValue=!1)):a.HasDataLabels&&!b&&(a.HasDataLabels=!1),y(h)||(m||(l.position=o.Position),o.Position=h),i&&(m||(l.format=o.NumberFormat),o.NumberFormat=i),j?(m||(l.color=u(o.Font,!0)),o.Font.Color.setColor(c,j)):null!==j&&""!==j||(m||(l.color=u(o.Font,!0)),o.Font.Color.ColorType=0),y(k)||(m||(l.transparency=v(o.Font)),o.Font.Color.Transparency=k),m=!0,a.fQa())}),a.Parent.RVa("dataLabels",l))}function N(a,b,c,d){y(b.width)||(d.width=a.Weight,a.Weight=b.width),b.color?(d.color=u(a,!0),a.Color.setColor(c,b.color)):null!==b.color&&""!==b.color||(a.Color.ColorType=0),y(b.transparency)||(d.transparency=v(a),a.Color.Transparency=b.transparency)}function O(a,b){var c,d=a.SeriesCollection.GetValidSers(b)[0];return!!d&&(c=[],s.TryAllToNumbers(d.lua,c,!0))}function P(a,b,c,d,e,f){var g,i,j,k,n,p,q,r,s,w,x,z,A,C,D,F,G,H,I,J,K,L,M,P,Q,R,S,T,U,V,W;b&&(g={},a||(a=d.Add(e,f),g.removed=!0),b.removed&&d.Remove(e,f),0===e&&(i=b.categoryType,3===a.ActualCategoryType||!a.IsValueOrDateScaleAxis()&&!O(a,f)||2!==i&&1!==i||(g.categoryType=a.ActualCategoryType,a.ActualCategoryType=i)),y(b.visible)||(g.visible=a.Visible,a.Visible=!!b.visible),y(b.tickLabelPosition)||(g.tickLabelPosition=a.TickLabelPosition,a.TickLabelPosition=b.tickLabelPosition),j=a.Format.Line,k=b.lineStyle,n=a.IsTimeScale(),k&&(p=g.lineStyle={},y(k.width)||(p.width=j.Weight,j.Weight=k.width),k.color?(p.color=u(j,!0),j.Color.setColor(c,k.color)):null!==k.color&&""!==k.color||(j.Color.ColorType=0),y(k.transparency)||(p.transparency=v(j),j.Color.Transparency=k.transparency)),q=a.TickLabels.Font,r=b.style,r&&(s=g.style={},r.color?(s.color=u(q,!0),q.Color.setColor(c,r.color)):null!==r.color&&""!==r.color||(q.Color.ColorType=0),y(r.transparency)||(s.transparency=v(q),q.Color.Transparency=r.transparency),r.fontFamily&&(s.fontFamily=q.Name,q.Name=r.fontFamily),y(r.fontSize)||(s.fontSize=q.Size,q.Size=r.fontSize)),y(b.majorTickPosition)||(g.majorTickPosition=a.MajorTickMark,a.MajorTickMark=b.majorTickPosition),y(b.minorTickPosition)||(g.minorTickPosition=a.MinorTickMark,a.MinorTickMark=b.minorTickPosition),n&&(a.BaseUnitIsAuto||(g.baseUnit=a.BaseUnit),y(b.baseUnit)?a.BaseUnitIsAuto=!0:a.BaseUnit=b.baseUnit),a.MajorUnitIsAuto||(g.majorUnit=a.MajorUnit,n&&(g.majorUnitScale=a.MajorUnitScale)),y(b.majorUnit)?a.MajorUnitIsAuto=!0:a.MajorUnit=b.majorUnit,n&&!y(b.majorUnitScale)&&(a.MajorUnitScale=b.majorUnitScale),a.MinorUnitIsAuto||(g.minorUnit=a.MinorUnit,n&&(g.minorUnitScale=a.MinorUnitScale)),y(b.minorUnit)?a.MinorUnitIsAuto=!0:a.MinorUnit=b.minorUnit,n&&!y(b.minorUnitScale)&&(a.MinorUnitScale=b.minorUnitScale),a.IsValueOrDateScaleAxis()&&(w=b.min,x=b.max,a.MinimumScaleIsAuto||(g.min=a.MinimumScale),y(w)?a.MinimumScaleIsAuto=!0:(n&&(w=o.ToOADate(w)),a.MinimumScale=w),a.MaximumScaleIsAuto||(g.max=a.MaximumScale),y(x)?a.MaximumScaleIsAuto=!0:(n&&(x=o.ToOADate(x)),a.MaximumScale=x),z=b.scaling,y(z)||(A=z.logBase,C=z.orientation,g.scaling?(g.scaling.logBase=A,g.scaling.orientation=C):g.scaling={},"number"==typeof A?a.LogBase=A:a.ScaleType=1)),b.format&&(g.format=a.TickLabels.NumberFormat,a.TickLabels.NumberFormat=b.format),D=b.title,D&&(F=a.AxisTitle,G=g.title={},F||(G.removed=!0,F=a.AxisTitle=new h.AxisTitle(a.Dsa.Parent,a.fsa,a.Nc)),D.removed&&(a.AxisTitle=E),H=D.text,y(H)||(G.text=F.Text,F.Text=H,a.HasTitle=H.length>0),I=F.Font,D.fontFamily&&(G.fontFamily=I.Name,I.Name=D.fontFamily),y(D.fontSize)||(G.fontSize=I.Size,I.Size=D.fontSize),D.color?(G.color=u(I,!0),I.Color.setColor(c,D.color)):null!==D.color&&""!==D.color||(I.Color.ColorType=0),y(D.transparency)||(G.transparency=v(I),I.Color.Transparency=D.transparency)),J=b.majorGridLine,J&&(K=g.majorGridLine={}, y(J.visible)||(K.visible=a.HasMajorGridlines,a.HasMajorGridlines=J.visible),N(a._sa(!0).Format.Line,J,c,K)),L=b.minorGridLine,L&&(M=g.minorGridLine={},y(L.visible)||(M.visible=a.HasMinorGridlines,a.HasMinorGridlines=L.visible),N(a.ata(!0).Format.Line,L,c,M)),void 0!==b.labelAngle&&a.TickLabels&&a.TickLabels.Qpa&&a.TickLabels.Qpa.TextBody&&(g.labelAngle=a.TickLabels.Qpa.TextBody.Rotation,a.TickLabels.Qpa.TextBody.Rotation=b.labelAngle),b.displayUnit?(P=b.displayUnit,Q=P.unit,R=P.visible,S=P.style,s=g.displayUnit={},T=!1,s.unit=a.GetActualDispUnit(),m.isString(Q)?(U=t[Q],V=+Q,m.isString(U)?(a.DisplayUnit=l.DisplayUnitInternal[U],T=!0):!isNaN(V)&&V>0&&(a.DisplayUnitCustom=V,T=!0)):m.isNumber(Q)&&Q>0&&(a.DisplayUnitCustom=Q,T=!0),S&&(W=a.DisplayUnitLabel.Font,s.style={},S.color?(s.style.color=u(W,!0),W.Color.setColor(c,S.color)):null!==S.color&&""!==S.color||(W.Color.ColorType=0),y(S.transparency)||(s.style.transparency=v(W),W.Color.Transparency=S.transparency),S.fontFamily&&(s.style.fontFamily=W.Name,W.Name=S.fontFamily),y(S.fontSize)||(s.style.fontSize=W.Size,W.Size=S.fontSize)),s.visible=a.HasDisplayUnitLabel,a.HasDisplayUnitLabel=!(!T||!y(R))||R):null===b.displayUnit&&a.DisplayUnitLabel&&a.DisplayUnitLabel.Delete(),B(g)||a.RVa(g))}function Q(a){var b,c,d,e,f=a.Cva,g=f.series;g&&(b=x(a,f.text(),a.Jl,a.Kl),b[0]&&(c=b[0].ranges,d=c[0],e=new q(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetValuesRefers([e]),d=c[1],d&&(e=new q(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetNameRefer(e)),d=c[2],d&&(e=new q(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetXValuesRefers([e])),d=c[3],d&&(e=new q(a.name(),d.row,d.col,d.row+d.rowCount-1,d.col+d.colCount-1),g.SetBubbleSizesRefers([e])),f.chartView.sua(!0)))}function R(a){var b;switch(a){case 1:case 2:b=5;break;case 4:case 260:case 516:b=3;break;case 9:case 265:case 521:b=1;break;case 7:case 263:case 8:b=0;break;case 2321:b=9;break;case 1809:b=10;break;case 777:b=11;break;default:b=7}return b}function S(a,b,c,d,e,f){var g,h,i,j,k=a.length;for(g=0;g0&&(h=b.model.items[0]),c=a.Dva(h,b.field),d=c?{index:c.Index}:{},z(a.chartType())&&h)for(e=c.elb&&c.elb.dlb,e=e||[],f=0;f0&&(h=g.items[0]),c=a.Dva(h,b.field),d={},c&&(d.seriesIndex=c.Index),e=f.orientation,"number"==typeof e&&(d.errorBarsDirection=G[e]),d}function X(a,b){var c,d,e,f,g,h,i,j=b.model,k=T(j,8),l=null;return j&&k&&k.items&&k.items.length>0&&(l=k.items[0]),c=a.Dva(l,b.field),d={},c&&(d.seriesIndex=c.Index),e=b.model.overlay.option,f=b.model.overlay.parent.option.config.overlays,g=f.filter(function(a){return a.detailKey===e.detailKey}),h=g.filter(function(a){return a.type.includes("Trendline")}),i=h.indexOf(e),m.isNumber(i)&&(d.trendlineIndex=i),d}function Y(a,b){var c=b.model;return c.parent&&(c=c.parent),9===c.type?{axisType:1===c.axisType?"y":"x",axisPosition:1===c.position?"primary":"secondary",isDisplayUnitLabel:!0}:{}}function Z(a,b,c){var d,e,f,g={};switch(a){case 0:g=U(b,c);break;case 1:g=V(b,c);break;case 9:g=W(b,c);break;case 10:g=X(b,c);break;case 11:g=Y(b,c)}for(d=b.series().AllSers,e=[],f=0;f1&&i.push(b.get(1).yValues),g=0,h=i.length;g1?0:da(b,e,c,d):1)),f}function fa(a){var b=a.Nta&&a.Nta[0],c=a.Lta;return b?1===b.RowCount?0:1===b.ColumnCount?1:1===c.RowCount?0:1===c.ColumnCount?1:0:0}function ga(a){var b,c=a.Format.Line,d={};return d.color=u(c,!0,!1,!0),d.transparency=v(c),b=c.Weight>0?c.Weight:1,d.width=b,d.dashStyle=c.DashStyle,d}!function(a){}(H=b.MajorTickPosition||(b.MajorTickPosition={})),function(a){}(I=b.MinorTickPosition||(b.MinorTickPosition={}));function ha(a,b){return!(!y(a)||!y(b))||(!y(a)&&!y(b)&&a.x===b.x&&a.y===b.y||void 0)}function ia(a){return a===D.line||a===D.lineMarkers||a===D.xyScatterLines||a===D.xyScatterLinesNoMarkers||a===D.xyScatterSmooth||a===D.xyScatterSmoothNoMarkers}function ja(a,b){var c,d,e;if(ia(a)||A(a))return!0;if(0===a)for(c=b.SeriesCollection.AllSers,d=0;d0&&j&&(c.fontSize=j.Font.Size,j.Font.Size=a.fontSize),B(c)||g.RVa("legend",c),g.sua()),g)},b.prototype.chartArea=function(a){var b,c,d,e,f,g,h,i,j,l,m,n,o,p,q,r,s,t,w=this,x=w.Spa.ChartArea;return 0===arguments.length?(g=k.getChartAreaStyle(x,!0,1,!1,!0),h=ga(x),i=g.textStyle,j={},b=g.style.backgroundColor,e=g.style.transparency,b?(j.backColor=b,j.backColorTransparency=e):""===b&&(j.backColor=b),c=i.color,f=i.transparency,c?(j.color=c,j.transparency=f,j.fontFamily=i.fontFamily):""===c&&(j.color=c),d=parseFloat(i.fontSize),isNaN(d)||(j.fontSize=d),j.border=h,j):(a&&(l=x.GetFormatInternal(),m={},b=a.backColor,b&&l?(m.backColor=u(l.Fill,!0),l.Fill.Color.setColor(w.sheet(),b)):null!==b&&""!==b||!l||(m.backColor=u(l.Fill,!0),l.Fill.Color.ColorType=0),e=a.backColorTransparency,!y(e)&&l&&(m.backColorTransparency=v(l.Fill),l.Fill.Color.Transparency=e),n=x.Font,n&&(c=a.color,f=a.transparency,c?(m.color=u(x.Font,!0),x.setFontColor(w.sheet(),c)):null!==c&&""!==c||(m.color=u(x.Font,!0),n.Color.ColorType=0),!y(f)&&l&&(m.transparency=v(x.Font),x.setFontTransparency(f)),o=a.fontFamily,o&&(m.fontFamily=n.Name,n.Name=o),d=parseFloat(a.fontSize),isNaN(d)||(m.fontSize=n.Size,n.Size=d)),p=a.border,y(p)||(q=p.color,r=p.transparency,s=p.width,t=p.dashStyle,m.border={},q?(m.border.color=u(l.Line,!0),l.Line.Color.setColor(w.sheet(),q)):null!==q&&""!==q||(m.border.color=u(l.Line,!0),l.Line.Color.ColorType=0),y(r)||(m.border.transparency=v(l.Line),l.Line.Color.Transparency=r),y(s)||(m.border.width=s,l.Line.Weight=s),y(t)||(m.border.dashStyle=t,l.Line.DashStyle=t)),B(m)||w.RVa("chartArea",m),w.sua()),w)},b.prototype.dataLabels=function(a){var b,c,d,e,f,g=this.Spa,h=s.IsStockChart(g.ChartType);return 0===arguments.length?h?F:(b=g.SeriesCollection.AllSers[0],c=b.GetDataLabels(),d=void 0,c?(d={showValue:c.ShowValue,showSeriesName:c.ShowSeriesName,showCategoryName:c.ShowCategoryName,showPercentage:c.ShowPercentage,position:c.Position,format:c.NumberFormat},e=u(c.Font,!0,!1,!0),(e||""===e)&&(d.color=e),f=v(c.Font),y(f)||(d.transparency=f)):d={showValue:!1,showSeriesName:!1,showCategoryName:!1,showPercentage:!1},s.IsPieOrDoughnutChart(b.InnerChartType)||delete d.showPercentage,d):(a&&!h&&(M(g,a,this.sheet()),this.sua()),this)},b.prototype.axes=function(a){var b,c=this.Spa.Axes,d=c.Item(0,0),e=c.Item(1,0),f=c.Item(0,1),g=c.Item(1,1);return 0===arguments.length?this.getAxesImp():(b=this.sheet(),P(d,a.primaryCategory,b,c,0,0),P(e,a.primaryValue,b,c,1,0),P(f,a.secondaryCategory,b,c,0,1),P(g,a.secondaryValue,b,c,1,1),this.sua(),this)},b.prototype.getAxesImp=function(a){var b=this.Spa.Axes,c=b.Item(0,0),d=b.Item(1,0),e=b.Item(0,1),f=b.Item(1,1),g={};return c&&(g.primaryCategory=k.getAxisProperties(c,!1,!0,a)),d&&(g.primaryValue=k.getAxisProperties(d,!1,!0,a)),e&&(g.secondaryCategory=k.getAxisProperties(e,!1,!0,a)),f&&(g.secondaryValue=k.getAxisProperties(f,!1,!0,a)),g},b.prototype.series=function(){return this.Spa.SeriesCollection},b.prototype.dataRange=function(a){var b,c,d,e,f=this,g=f.Hva();return 0===arguments.length?g:(a&&(b=void 0,c=f.chartType(),0===c&&(d=f.Spa.SeriesCollection,b=d.AllSers.map(function(a){return a.ChartType})),f.RVa("dataRange",g),e=z(c)?null:ea(f),f.Eva(a,e,b)),f)},b.prototype.useAnimation=function(a){var b=this,c=b.Spa,d=c.UseAnimation;return 0===arguments.length?d:(y(a)||!a==!d||(b.RVa("useAnimation",d),c.UseAnimation=a,b.sua()),b)},b.prototype.hoverStyle=function(a){var b,c,d,e,f=this,g=f.Spa,h=g.xOb;return 0===arguments.length?g.wOb?(b=C(h,!1,!1,!0,!0),c=C(h.Za,!1,!1,!0,!0),{borderStyle:b,transparency:h.GetFillColorTransparency(),color:h.GetFillColor(!0,!1),symbolStyle:{color:h.Za.GetFillColor(!0,!1),transparency:h.Za.GetFillColorTransparency(),borderStyle:c}}):E:(y(a)?a===E&&(d={applyHoverStyle:!0},g.wOb=!1,f.RVa("hoverStyle",d),f.sua()):(d={},d.applyHoverStyle=g.wOb,g.wOb=!0,y(a.borderStyle)||(y(a.borderStyle.width)||(y(d.borderStyle)&&(d.borderStyle={}),d.borderStyle.width=h.GetLineWidth(),h.SetLineWidth(a.borderStyle.width)),e=a.borderStyle.color,e!==F&&(y(d.borderStyle)&&(d.borderStyle={}),d.borderStyle.color=h.GetLineColor(!0,!1),h.SetLineColor(g.kta.sheet(),e)),y(a.borderStyle.transparency)||(y(d.borderStyle)&&(d.borderStyle={}),d.borderStyle.transparency=h.GetLineColorTransparency(),h.SetLineColorTransparency(a.borderStyle.transparency)),y(a.borderStyle.dashStyle)||(y(d.borderStyle)&&(d.borderStyle={}),d.borderStyle.dashStyle=h.GetLineType(),h.SetLineType(a.borderStyle.dashStyle))),a.color!==F&&(d.color=h.GetFillColor(!0,!1),h.SetFillColor(g.kta.sheet(),a.color)),y(a.transparency)||(d.transparency=h.GetFillColorTransparency(),h.SetFillColorTransparency(a.transparency)),y(a.symbolStyle)||y(a.symbolStyle.borderStyle)||(y(d.symbolStyle)&&(d.symbolStyle={}),y(a.symbolStyle.borderStyle.width)||(y(d.symbolStyle.borderStyle)&&(d.symbolStyle.borderStyle={}),d.symbolStyle.borderStyle.width=h.Za.GetLineWidth(),h.Za.SetLineWidth(a.symbolStyle.borderStyle.width)),e=a.symbolStyle.borderStyle.color,e!==F&&(y(d.symbolStyle.borderStyle)&&(d.symbolStyle.borderStyle={}),d.symbolStyle.borderStyle.color=h.Za.GetLineColor(!0,!1),h.Za.SetLineColor(g.kta.sheet(),e)),y(a.symbolStyle.borderStyle.transparency)||(y(d.symbolStyle.borderStyle)&&(d.symbolStyle.borderStyle={}),d.symbolStyle.borderStyle.transparency=h.Za.GetLineColorTransparency(),h.Za.SetLineColorTransparency(a.symbolStyle.borderStyle.transparency)),y(a.symbolStyle.borderStyle.dashStyle)||(y(d.symbolStyle.borderStyle)&&(d.symbolStyle.borderStyle={}),d.symbolStyle.borderStyle.dashStyle=h.Za.GetLineType(),h.Za.SetLineType(a.symbolStyle.borderStyle.dashStyle))),!y(a.symbolStyle)&&a.symbolStyle.color&&(y(d.symbolStyle)&&(d.symbolStyle={}),d.symbolStyle.color=h.Za.GetFillColor(!0,!1),h.Za.SetFillColor(g.kta.sheet(),a.symbolStyle.color)),y(a.symbolStyle)||y(a.symbolStyle.transparency)||(y(d.symbolStyle)&&(d.symbolStyle={}),d.symbolStyle.transparency=h.Za.GetFillColorTransparency(),h.Za.SetFillColorTransparency(a.symbolStyle.transparency)),B(d)||f.RVa("hoverStyle",d),f.sua()),f)},b.prototype.displayBlanksAs=function(a){var b,c=this,d=c.Spa,e=d.DisplayBlanksAs;return 0===arguments.length?e:(y(a)||(b=c.chartType(),0!==a||ja(b,d)?1!==a||ka(b)||(a=2):a=2,a!==e&&(c.RVa("displayBlanksAs",e),d.DisplayBlanksAs=a,c.sua())),c)},b.prototype.ignoreHidden=function(a){var b=this,c=b.Spa,d=c.PlotVisibleOnly;return 0===arguments.length?d:(y(a)||a===d||(b.RVa("plotVisibleOnly",d),c.PlotVisibleOnly=a,c.UpdatePlotVisibleOnly(a),b.sua(!0)),b)},b.prototype.displayNaNAsBlank=function(a){var b=this,c=b.Spa,d=c.DisplayNaNAsBlank;return 0===arguments.length?d:(y(a)||a===d||(b.RVa("displayNanAs",d),c.DisplayNaNAsBlank=a,b.sua()),b)},b.prototype.Hva=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r,t,u,v=this.Spa.SeriesCollection,x=v.AllSers,z=x.length,A=0===ea(this),B=this.Spa.ChartType,C=s.IsBubbleChart(B);if(z>0){if(a=this.sheet(),b=a.Wu.useR1C1,c=x[0],d=c.GetXValuesFormula(b),e=c.GetValuesFormula(b),f=[],g=aa(a,e),h=g.sheet,i=g.range,j=i.rowCount,k=i.colCount,l=i.row,m=i.col,n=w(l,m,j,k),o=!!d,p=void 0,r=void 0,t=void 0,f.push(c.GetNameFormula(b)),C&&(n=ba(a,c,n,A,b),y(n)))return;for(r=1;r0)for(f=k.getChartModelData(c.Spa,d),g=0,h=e.length;g1||g.XValuesRefers&&g.XValuesRefers.length>1||g.BubbleSizesRefers&&g.BubbleSizesRefers.length>1){p=!0;break}if(p!==!0){for(f=0;f0?(c=!(!f.parent||!f.parent.options.referenceStyle),d=e.rangesToFormula(a,f.Jl,f.Kl,0,c),g.text("=SERIES("+d+")")):g.text(""),b?g.UQa=!0:g.UQa=!1,g.series=b,g.chartView=this,f.yl.uH())},b.prototype.qBb=function(a){var b=this;return a.useAnimation=b.useAnimation(),b.Spa.wOb&&(a.hoverStyle=b.hoverStyle()),a},b.prototype.rBb=function(a){var b=this;b.useAnimation(!!a.useAnimation),b.hoverStyle(a.hoverStyle)},b.prototype.toJSON=function(){var b,c=a.prototype.toJSON.call(this),d=this;return delete c.content,c.chartSpace=d.Spa.ToOOModel(),b=["hiLowLines","p","variation","majorGridlines","minorGridlines","title"],s.simpleJSONObject(c,b),d.qBb(c),c},b.prototype.fromJSON=function(b,c){a.prototype.fromJSON.call(this,b,c);var d=this;d.Spa=new i.ChartModel(d),d.Spa.FromOOModel(b.chartSpace),d.rBb(b)},b.prototype.no=function(a){a!==!1&&(this.clearflexDVs(),this.Lva())},b.prototype.clearflexDVs=function(){var a,b,c=this,d=c.Gva;for(a=0,b=d.length;a0)){for(f=void 0,g=0;g0))for(b=0,c=a.length;b=0&&a<=400&&(this.Yta=a,this.Dirty(1))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){return this.ChartFormat},enumerable:!0,configurable:!0}),b.prototype.getFillColor=function(a,b,c){return p(this.Format.Fill,a,b,c)},b.prototype.getFillColorTransparency=function(){return q(this.Format.Fill)},b.prototype.getLineColor=function(a,b,c){return p(this.Format.Line,a,b,c)},b.prototype.getLineColorTransparency=function(){return q(this.Format.Line)},Object.defineProperty(b.prototype,"Has3DEffect",{get:function(){return this.GetState(4)?this.Zta:this.Ata.Has3DEffect},set:function(a){this.Zta=a,this.Dirty(4)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasDataLabel",{get:function(){return!this.Ata.DataLabels.Get(this.mi).Deleted},set:function(a){this.Ata.DataLabels.Get(this.mi).Deleted=!a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"InvertIfNegative",{get:function(){return this.GetState(8)?this._ta:this.Ata.InvertIfNegative},set:function(a){this._ta=a,this.Dirty(8)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerFormat",{get:function(){var a=this;return r(a.Pta)&&(a.Pta=a.CreateMarkerFormat()),a.Pta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerSize",{get:function(){return this.GetState(32)?this.aua:this.Ata.MarkerSize},set:function(a){this.aua=a,this.Dirty(32)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerStyle",{get:function(){return this.GetState(64)?this.bua:this.Ata.MarkerStyle},set:function(a){this.bua=a,this.Dirty(64)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Parent",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PictureType",{get:function(){return this.GetState(128)?this.cua:this.Ata.PictureType},set:function(a){this.cua=a,this.Dirty(128)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PictureUnit",{get:function(){return this.GetState(256)?this.dua:this.Ata.PictureUnit},set:function(a){this.dua=a,this.Dirty(256)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"SecondaryPlot",{get:function(){return this.uua},set:function(a){a!==this.uua&&(this.uua=a,this.Chart.HandleElementChanged(5,this,i.SecondaryPlot))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Chart",{get:function(){return this.Ata.SeriesCollection.Parent},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Index",{get:function(){return this.mi},enumerable:!0,configurable:!0}),b.prototype.SetFillColor=function(a,b){this.Format.Fill.Color.setColor(a,b)},b.prototype.SetFillColorTransparency=function(a){this.Format.Fill.Color.Transparency=a},b.prototype.SetSecondaryPlotInteral=function(a){this.uua=a},b.prototype.GetValueText=function(a){return a===v&&(a=u),this.Ata.GetPointValueText(this.mi,a)},b.prototype.GetCatText=function(){return this.Ata.GetCatText(this.mi)},b.prototype.GetPercentageValue=function(){return this.Ata.GetPercentageValue(this.mi)},b.prototype.CreateFormat=function(){var a=this;return new f.ChartFormat(a.Ata.SeriesCollection.Parent,a.Ata.FormatInternal,a.AutoFillColorFormat.bind(a),a.AutoLineColorFormat.bind(a))},b.prototype.GetDefaultFormat=function(){return a.prototype.GetDefaultFormat.call(this)},b.prototype.CreateMarkerFormat=function(){var a=this;return new f.ChartFormat(a.Chart,a.Ata.MarkerFormat,a.AutoMarkerColorFormat.bind(a),a.AutoMarkerColorFormat.bind(a))},b.prototype.AutoFillColorFormat=function(){return j.IsFillSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():u},b.prototype.AutoLineColorFormat=function(){return j.IsLineSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():u},b.prototype.AutoMarkerColorFormat=function(){return j.IsMarkerSeries(this.Ata.InnerChartType)?this.GenerateAutoColor():u},b.prototype.GenerateAutoColor=function(){var a,b;return a=this.IsRenderVaryColors()?this.mi:this.Ata.AutoColorIndex,b=new m(this.Chart),b.ObjectThemeColor=l["Accent"+(a%6+1)],b},b.prototype.IsRenderVaryColors=function(){var a=this.Ata.Parent.VaryByCategories;return 1===this.Ata.SeriesCollection.Count&&a||j.IsAnyPieChart(this.Ata.InnerChartType)&&a},b.prototype.IsDirtyIncludingParent=function(b){b===v&&(b=!1);var c=this;return!(r(c.Kb)||!c.Kb.IsDirtyIncludingParent(b))||(!(r(c.Pta)||!c.Pta.IsDirtyIncludingParent(b))||a.prototype.IsDirtyIncludingParent.call(this,b))},b.prototype.OnParentChanged=function(a){var b=this;b.Ata=a,r(b.Kb)||(b.Kb.ParentStateful=b.Ata.ChartFormat), r(b.Pta)||(b.Pta.ParentStateful=b.Ata.MarkerFormat)},b.prototype.IsNegative=function(){return this.Ata.Values[this.mi]<0},b.prototype.MapToSourceIndex=function(a){var b,c,d,e,f,g,h,i,j=this;if(!j.Ata.PlotVisibleOnly||!j.Ata.HasRefers(1)||!j.Ata.HasHiddenValues())return a;for(b=0,c=0,d=0,e=j.Ata.ValuesRefers;d=c.Count?u:(b=c.fua[a])?b:(b=new w(c.Ata,a),c.fua[a]=b,b)},a.prototype.GetPoints=function(){return this.fua},a.prototype.RestorePoints=function(a){var b,c,d,e;if(this.ClearPoints(),!r(a))for(b=0,c=a;b0||h.y>0),i=b.dLblPos,r(i)||(y.Position=i),k=b.showBubbleSize,!r(k)&&j.IsBubbleChart(y.Ata.InnerChartType)&&(y.ShowBubbleSize=k),l=s(y.Ata.InnerChartType),m=b.visibility,n=l&&m,o=n?m.categoryName:b.showCatName,y.ShowCategoryName=!r(o)&&o,p=b.showLegendKey,y.ShowLegendKey=!r(p)&&p,q=b.showPercent,!r(q)&&j.IsPieOrDoughnutChart(y.Ata.InnerChartType)&&(y.ShowPercentage=q),t=n?m.seriesName:b.showSerName,y.ShowSeriesName=!r(t)&&t,v=n?m.value:b.showVal,y.ShowValue=!r(v)&&v,w=b.separator,w&&","!==w&&(y.Separator=w),x=b.delete,y.Ysa=r(x)?u:x},b.prototype.ToOOModel=function(){var b,c,d=this,e=d.Lqa||d.CreateCT_Dlbl();return(d.GetState(4)||d.GetState(8))&&(b={formatCode:d.NumberFormat},d.NumberFormatLinked===!1&&(b.sourceLinked=!1),e.numFmt=b),e.spPr=a.prototype.ToShapeProperties.call(this),d.Qpa&&d.Qpa.Font.IsDirtyIncludingParent()&&(e.txPr=d.Qpa.ToOOModel().rich),d.IsNoPosition()||(e.dLblPos=d.Position),c=s(d.Ata.InnerChartType),d.Ysa||(e.showBubbleSize=d.ShowBubbleSize,e.showLegendKey=d.ShowLegendKey,e.showPercent=d.ShowPercentage,c?e.visibility={seriesName:d.ShowSeriesName,categoryName:d.ShowCategoryName,value:d.ShowValue}:(e.showCatName=d.ShowCategoryName,e.showSerName=d.ShowSeriesName,e.showVal=d.ShowValue)),","!==d.Separator&&(e.separator=d.Separator),e},b.prototype.CreateCT_Dlbl=function(){return u},b.prototype.GetDefaultChartText=function(){return u},b.prototype.IsPositionValid=function(a){var b=!1,c=this.Ata.InnerChartType;return j.IsColumnChart(c)||j.IsBarChart(c)?b=j.IsStackedChart(c)?2===a||3===a||4===a:2===a||3===a||4===a||6===a:j.IsLineChart(c)||j.IsScatterChart(c)||j.IsBubbleChart(c)?b=2===a||5===a||7===a||8===a||1===a:j.IsPieChart(c)?b=2===a||4===a||6===a||0===a:(j.IsAreaChart(c)||j.IsRadarChart(c)||j.Is3DChart(c))&&(b=!1),b},b.prototype.UpdatePosition=function(){this.SH=this.GetDefaultPosition()},b.prototype.ResetByChartType=function(){this.UpdatePosition()},Object.defineProperty(b.prototype,"Chart",{get:function(){return this.Ata.SeriesCollection.Parent},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ChartText",{get:function(){return this.Qpa},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ChartTextInternal",{get:function(){var a=this;return r(a.Qpa)&&(a.Qpa=a.GetDefaultChartText()),a.Qpa},enumerable:!0,configurable:!0}),b.prototype.CreateLeaderLines=function(){return u},Object.defineProperty(b.prototype,"HasDataLabelsRange",{get:function(){return!r(this.Qpa)&&!r(this.Qpa.TextRefer)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Series",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),b}(h),b.DataLabelBase=C,D=function(a){F(b,a);function b(b){var c=a.call(this,b,u)||this,d=c;return d.Gua={},d.Ata=b,d.Qpa=d.GetDefaultChartText(),d.Bua=!1,d.Cua=!1,c}return b.prototype.CreateFormat=function(){var a=new f.ChartFormat(this.Chart);return a.Fill.Color.ColorType=0,a.Line.Color.ColorType=0,a},b.prototype.GetDefaultChartText=function(){var a=new n(this.Chart.Parent,this.Chart.ChartArea.Font),b=s(this.Ata.InnerChartType);return b&&a.Font.Color.setColor(this.Ata.Worksheet,"rgb(255,255,255)"),a},Object.defineProperty(b.prototype,"Parent",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AutoText",{get:function(){return this.Dua},set:function(a){var b,c,d;for(b=0,c=this.Count;b=c.Count?u:(b=c.Gua[a])?b:(b=new E(c.Ata,a),c.Gua[a]=b,b)},b.prototype.UpdateDeleted=function(a){var b,c,d=this.Gua;for(b in d)c=d[b],r(c)||(c.Deleted=a)},b.prototype.ResetByChartType=function(){var b,c,d;for(a.prototype.ResetByChartType.call(this),b=0,c=this.Count;b0?b=a.GetFirstNumberFormat():r(a.Eua)||(b=a.Eua.NumberFormat)),b||"General"},b.prototype.GetFirstNumberFormat=function(){var a,b=this.Ata.ValuesRefers[0],c=this.Ata.Worksheet.Apa(b.WorksheetName),d=u;return r(c)||(a=c.ksa(b.Row,b.Column),r(a)||(d=a.FormatCode)),d||"General"},b.prototype.ToOOModel=function(){var b,c,d,e,f=this,g=a.prototype.ToOOModel.call(this);f.ShowLeaderLines&&(g.extLst={ext:[]},b={uri:"{CE6537A1-D6FC-4f65-9D91-7224C49458BB}"},g.extLst.ext.push(b),b.showLeaderLines=!0,g.showLeaderLines=!0,r(f.Fua)?delete g.leaderLines:g.leaderLines=f.Fua.ToOOModel()),c=[];for(d in f.Gua)e=f.Gua[d],r(e)||r(f.Qpa.TextRefer)&&!e.Deleted&&!e.IsDirtyIncludingParent()||c.push(e.ToOOModel());return c.length>0&&(g.dLbl=c),g},b.prototype.FromOOModel=function(b){var c,d,e,f,g,h,i,j=this;if(a.prototype.FromOOModel.call(this,b),j.Gua={},c=b.dLbl,!r(c))for(d=0,e=c;d0?(b={sheet:u,row:-1,col:-1},g.Ata.GetRowColIndex(a,g.mi,b),c=b.sheet,d=b.row,e=b.col,r(c)||d===-1||e===-1||(f=c.ksa(d,e),r(f)||(h=f.FormatCode))):r(g.Eua)||(h=g.Eua.NumberFormat)),h||"General"},b.prototype.GetText=function(){return this.AutoText?this.GetAutoText():this.Qpa.Text},b.prototype.GetAutoText=function(){var a,b=this,c=[],d=!1;return b.ShowSeriesName&&(a=b.Ata.Name,c.push(r(a)?"":a),d=!0),b.ShowCategoryName&&(d&&c.push(b.Separator),c.push(b.Ata.GetCatText(b.mi)),d=!0),b.ShowValue&&(d&&c.push(b.Separator),c.push(b.Ata.GetPointValueText(b.mi,b.NumberFormat)),d=!0),b.ShowBubbleSize&&j.IsBubbleChart(b.Ata.InnerChartType)&&(d&&c.push(b.Separator),c.push(""+b.Ata.BubbleSizes[b.mi]),d=!0),b.ShowPercentage&&j.IsPieOrDoughnutChart(b.Ata.InnerChartType)&&(d&&c.push(b.Separator),c.push(b.GetPercentText())),c.join("")},b.prototype.GetValueText=function(){var a=this;return a.GetState(8192)?a.NumberFormatLinked?a.Ata.GetPointValueText(a.mi):a.Ata.GetPointValueText(a.mi,a.NumberFormat):a.Qpa.Text},b.prototype.GetPercentText=function(){var a=this.GetNumberFormat(),b=new t("General"===a?"0%":a),c=this.Ata.GetPercentageValue(this.mi);return b.format(c)},b.prototype.FromOOModel=function(b){var c,d,e,f,g,h,i,j=this;if(a.prototype.FromOOModel.call(this,b),j.mi=b.idx,r(b.tx))r(b.txPr)||(i={},i.rich=b.txPr,j.ChartTextInternal.FromOOModel(i),j.Dua=!0,j.UnDirty(16384));else{if(c=b.tx.rich,r(b.tx.rich)&&!r(b.txPr)&&(b.tx.rich=b.txPr),j.ChartTextInternal.FromOOModel(b.tx),d=!1,e=b.extLst,!r(e)&&!r(e.ext))for(f=0,g=e.ext;f0){for(e=u,f=d.ext,g=void 0,h=0,i=f.length;hthis.mkb.field.bw())&&(a=this.mkb.field.bw()),null!=this.nkb&&(isNaN(a)||a>this.nkb.field.bw())&&(a=this.nkb.field.bw()),null!=this.okb&&(isNaN(a)||a>this.okb.field.bw())&&(a=this.okb.field.bw()),null!=this.pkb&&(isNaN(a)||a>this.pkb.field.bw())&&(a=this.pkb.field.bw()),a},f.prototype.WOb=function(a){var b=this,c=this.PY();return null!=c&&(a=a.filter(function(a){var d=!1;return null!=b.mkb&&(d=c.filter(a,b.mkb.Cj())),d&&null!=b.nkb&&(d=c.filter(a,b.nkb.Cj())),d&&null!=b.okb&&(d=c.filter(a,b.okb.Cj())),d&&null!=b.pkb&&(d=c.filter(a,b.pkb.Cj())),d})),a},f);function f(a,b,d,e,f,g){var h=c.call(this,a,g)||this;return h.mkb=b,h.nkb=d,h.okb=e,h.pkb=f,h}b.KOa=d}((b=a.financial||(a.financial={})).models||(b.models={}))}(d=d||{}),function(a){var b;!function(b){"use strict";var c,d=(c=b.JOa,e(f,c),f.DOb=function(b,c,d){var e,g,h,i,j;for(e=null,g=null,h=0,i=a.TOb.splitStringWithEscape(b.field,",");hg)&&(h.FCa=g),(isNaN(h.GCa)||h.GCaf.right?q.x=f.right-e.width/2:q.x-e.width/2f.bottom&&(o.y=f.bottom-e.height),q.y=o.y+e.height/2):(o.y-=d,o.y-e.heightf.right&&(o.x=f.right-e.width),q.x=o.x+e.width/2):(o.x-=d,o.x-e.widthe.bottom?a.TextPosition.Outside:a.TextPosition.Inside:i.y-f-g.heighte.bottom?a.TextPosition.Inside:a.TextPosition.Outside;case a.Placement.Left:return h?j.x+f+g.width>e.right?a.TextPosition.Outside:a.TextPosition.Inside:j.x-f-g.widthe.right?a.TextPosition.Inside:a.TextPosition.Outside;default:return a.TextPosition.Auto}},f.prototype.TQb=function(a,b,c){var d,e,f,g,h,i,j=this.Ceb().bRa();b=this.Ceb().APa(),d=j.z5a().xsb(),e=this.SIa(a,null),f=j.$z().config.text.offset,g=this.SH(),h=j.$z().config.text.placement,null==f&&(f=0),i=this.calcPositionBy(g,h,b,j.APa(),f,e),this.layoutByPositionAndPlacement(i,h,f,e,d)},f.prototype.wsb=function(b,d,e){return e!==a.OverlappingLabels.Auto&&c.prototype.wsb.call(this,b,d,e)},f);function f(a,b){return c.call(this,a,b)||this}b.Iub=d}(a.financial||(a.financial={}))}(d=d||{}),function(a){!function(b){"use strict";var c,d=(c=b.Ikb,e(f,c),f.prototype.mgb=function(a){return new b.models.vkb(this,a,this.$z())},f.prototype.ghb=function(a){return new b.yNa(this,a)},f.prototype.UQb=function(a,b,c){var d,e,f,g,h;for(d=0,e=this.Zgb();db.close?(g.push(new a.core.Point(i.left,i.top)),g.push(new a.core.Point(i.right,i.top))):(g.push(new a.core.Point(i.right,i.bottom)),g.push(new a.core.Point(i.left,i.bottom)))),null!=h&&"close"!=h||(b.open>b.close?(g.push(new a.core.Point(i.right,i.bottom)),g.push(new a.core.Point(i.left,i.bottom))):(g.push(new a.core.Point(i.left,i.top)),g.push(new a.core.Point(i.right,i.top))))),c=b.Jkb(),d=b.Kkb(),null!=c&&null!=d&&(null!=h&&"high"!=h||g.push(c.clone())),e=b.Lkb(),f=b.Mkb(),null!=e&&null!=f&&(null!=h&&"low"!=h||g.push(e.clone())),g},f);function f(a){return c.call(this,a)||this}b.Nkb=d}(a.financial||(a.financial={}))}(d=d||{}),function(a){!function(b){"use strict";var c,d=(c=b.SQb,e(f,c),f.prototype.kgb=function(){return new b.Nkb(this)},f.prototype.Jkb=function(a){return arguments.length<=0?this.Okb:void(this.Okb=a.clone())},f.prototype.Kkb=function(a){return arguments.length<=0?this.Pkb:void(this.Pkb=a.clone())},f.prototype.Lkb=function(a){return arguments.length<=0?this.Qkb:void(this.Qkb=a.clone())},f.prototype.Mkb=function(a){return arguments.length<=0?this.Rkb:void(this.Rkb=a.clone())},f.prototype.yy=function(){var a=c.prototype.yy.call(this).clone();return a.stroke=b.BOb.HlocStyleStroke,a},f.prototype.Nbb=function(b,c){var d,e;b.beginTransform(),a.NQb.Jqb(b,this.yy()),d=this.aT(),null!=d.Ata().tE()&&(b.fill=d.Ata().tE(),b.stroke=d.Ata().tE()),null!=d.tE()&&(b.fill=d.tE(),b.stroke=d.tE()),e=this.ZQb(),null!=e?a.NQb.$Qb(b,e):(a.NQb.$Qb(b,this.bRa().$z().config.style),a.NQb.$Qb(b,this.aT().Ata().dhb().Wqa())),c.hasSelectionInPlotArea&&(this.KQa()?(null!=(e=this._Qb())?a.NQb.$Qb(b,e):(a.NQb.$Qb(b,this.bRa().q4a().s4a().$z().selectedStyle),a.NQb.$Qb(b,this.bRa().$z().config.selectedStyle)),c.apiSelectedStyle&&a.NQb.$Qb(b,c.apiSelectedStyle)):null!=(e=this.aRb())?a.NQb.$Qb(b,e):(a.NQb.$Qb(b,this.bRa().q4a().s4a().$z().unselectedStyle),a.NQb.$Qb(b,this.bRa().$z().config.unselectedStyle))),this.B5a()&&a.NQb.$Qb(b,d.Ata().uPa().$z().config.hoverStyle),null!=this.Okb&&null!=this.Pkb&&(this.Okb.equals(this.Pkb)?this.Okb.y!=this.APa().top&&b.drawLine(this.Okb.x,this.Okb.y,this.Pkb.x,this.Pkb.y+1):b.drawLine(this.Okb.x,this.Okb.y,this.Pkb.x,this.Pkb.y)),null!=this.Qkb&&null!=this.Rkb&&(this.Qkb.equals(this.Rkb)?this.Qkb.y!=this.APa().bottom&&b.drawLine(this.Qkb.x,this.Qkb.y,this.Rkb.x,this.Rkb.y+1):b.drawLine(this.Qkb.x,this.Qkb.y,this.Rkb.x,this.Rkb.y)),0!=this.APa().height?b.drawRect(this.APa().left,this.APa().top,this.APa().width,this.APa().height):b.drawLine(this.APa().left,this.APa().top,this.APa().left+this.APa().width,this.APa().top),b.restoreTransform()},f.prototype.mr=function(b,d){var e,f,g,h,i,j;for(e=0;eg.WT(),i=null,e){case 0:i="high";break;case 1:i=h?"open":"close";break;case 2:i=h?"close":"open";break;case 3:i="low"}return j=new a.HitTestResult(b,this,this,a.ElementType.DataPoint,i),null==d||null!=d&&d.predicate(j)?j:null}return c.prototype.mr.call(this,b,d)},f.prototype.ftb=function(){var c=[],d=a.plugins.w1a.QOa("Default");return null!=d&&(c=d.toLines(this.aT().D5a())),null!=c&&0f.right?p.x=f.right-e.width/2:p.x-e.width/2f.bottom&&(n.y=f.bottom-e.height),p.y=n.y+e.height/2):(n.y-=d,n.y-e.heightf.right&&(n.x=f.right-e.width),p.x=n.x+e.width/2):(n.x-=d,n.x-e.widthe.bottom?a.TextPosition.Outside:a.TextPosition.Inside:i.y-f-g.heighte.bottom?a.TextPosition.Inside:a.TextPosition.Outside;case a.Placement.Left:return h?j.x+f+g.width>e.right?a.TextPosition.Outside:a.TextPosition.Inside:j.x-f-g.widthe.right?a.TextPosition.Inside:a.TextPosition.Outside;default:return a.TextPosition.Auto}},f.prototype.TQb=function(a,b,c){var d,e,f,g,h,i,j=this.Ceb().bRa();b=this.Ceb().APa(),d=j.z5a().xsb(),e=this.SIa(a,null),f=j.$z().config.text.offset,g=this.SH(),h=j.$z().config.text.placement,null==f&&(f=0),i=this.calcPositionBy(g,h,b,j.APa(),f,e),this.layoutByPositionAndPlacement(i,h,f,e,d)},f.prototype.wsb=function(b,d,e){return e!==a.OverlappingLabels.Auto&&c.prototype.wsb.call(this,b,d,e)},f);function f(a,b){return c.call(this,a,b)||this}b.Jub=d}(a.financial||(a.financial={}))}(d=d||{}),function(a){!function(a){"use strict";var b,c=(b=a.Ikb,e(d,b),d.prototype.mgb=function(b){return new a.models.vkb(this,b,this.$z())},d.prototype.ghb=function(b){return new a.FNa(this,b)},d.prototype.UQb=function(a,b,c){var d,e,f,g;for(d=0,e=this.Zgb();dthis.length&&(this.length=a),this.splice(a,1,b)},g.prototype.clear=function(){0!==this.length&&(this.splice(0,this.length),this.Pwa())},g.prototype.beginUpdate=function(){this.uwa++},g.prototype.endUpdate=function(){0C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),r=parseInt(B);break;case"MMMM":case"MMM":for(j=!0,D=B.toLowerCase(),s=-1,E=0;E<12;E++)if(0==l.months[E].toLowerCase().indexOf(D)){s=E;break}if(-1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),s=parseInt(B)-1;break;case"dddd":case"ddd":g=!0;break;case"dd":case"d":1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),t=parseInt(B),h=!0;break;case"hh":case"h":1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),u=12==(u=parseInt(B))?0:u;break;case"HH":1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),u=parseInt(B);break;case"H":u=parseInt(B);break;case"mm":case"m":1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),v=parseInt(B);break;case"ss":case"s":1C&&(o[A]=B.substr(C),B=B.substr(0,C),q++),w=parseInt(B);break;case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":x=parseInt(B)/Math.pow(10,C-3);break;case"tt":case"t":B=B.toUpperCase(),(l.pm[0]&&B==l.pm[0]&&u<12||l.pm[1]&&B==l.pm[1]&&u<12)&&(u+=12);break;case"q":case"Q":case"u":case"U":i=!0;break;case"ggg":case"gg":case"g":y=1=c.eras[d].start)return d}else if(b.UOb.isString(a))for(d=0;dr.height||wr.height||vD.offsetHeight&&(C=C||new a.Control(document.createElement("div"))).addEventListener(D,"scroll",function(a){c(f,!0),C.dispose()})},b.hidePopup=function(a,b,d){void 0===b&&(b=!0),void 0===d&&(d=!1),d?e(function(d){a.style.opacity=""+(1-d),1==d&&(c(a,b),a.style.opacity="")}):c(a,b)},b.getActiveElement=d,b.animate=e}(a.core||(a.core={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c,d,e=(f.prototype.setTooltip=function(a,c){a=b.getElement(a),c=this.Sxa(c);var d=this.Cb(a);-1this.Lhb+.5?(this.Rhb=!0,this.$hb=this.Lhb-this.Zhb,this.Uhb=this.dib(),this.ndb.classList.add("gcdv-active-x"),this.zib(this.Phb,0)):(this.Rhb=!1,this.$hb=0,this.Uhb=0,this.ndb.classList.remove("gcdv-active-x"),this.zib(0,0)),g&&this.Ohb>this.Mhb+.5?(this.Shb=!0,this.Yhb=this.Mhb-this.Xhb,this.Whb=this.eib(),this.ndb.classList.add("gcdv-active-y"),this.yib(this.Qhb,0)):(this.Shb=!1,this.Yhb=0,this.Whb=0,this.ndb.classList.remove("gcdv-active-y"),this.yib(0,0))},l.prototype.MXa=function(){var a,b,c=this.Ghb,d=this.eAa;this.Rhb?this.Thb=this.Phb*(this.$hb-this.Uhb)/(this.Nhb-this.Lhb):this.Thb=0,this.Shb?this.Vhb=this.Qhb*(this.Yhb-this.Whb)/(this.Ohb-this.Mhb):this.Vhb=0,this.Thb=Math.min(this.Thb,this.$hb-this.Uhb),this.Vhb=Math.min(this.Vhb,this.Yhb-this.Whb),a=d.trackXOffset?d.trackXOffset:0,b=d.trackYOffset?d.trackYOffset:0,this.fib(this.ndb,{left:c.scrollLeft+this.Jhb,top:c.scrollTop+this.Khb}),this.fib(this._hb,{left:0,top:this.Mhb-this._hb.offsetHeight+a,width:this.$hb}),this.fib(this.aib,{left:this.Thb,width:this.Uhb}),this.fib(this.bib,{left:this.Lhb-this.bib.offsetWidth+b,top:0,height:this.Yhb}),this.fib(this.cib,{top:this.Vhb,height:this.Whb})},l.prototype.on=function(a,b){this.Lza.object(this).on(a,b)},l.prototype.once=function(a,b){this.Lza.object(this).once(a,b)},l.prototype.off=function(a){this.Lza.object(this).off(a)},l.prototype.gib=function(a,b){this.Lza.object(this).fire(a,b)},l.prototype.AJ=function(){var a,b,c=this,d=this.Lza;d.element(window).on("resize",function(a){return c.hib(a)}),d.element(this.Ghb.ownerDocument).on("keydown",function(a){return c.iib(a)}),a=null,window.MutationObserver?a=window.MutationObserver:window.WebKitMutationObserver?a=window.WebKitMutationObserver:window.WebKitMutationObserver&&(a=window.MozMutationObserver),a&&(this.Ihb=new a(function(a){return c.jib(a)}),this.Ihb.observe(this.Ghb,{subtree:!0,childList:!0})),b=d.element(this.Ghb),b.on("scroll",function(a){return c.kib(a)}),b.on("wheel",function(a){return c.lib(a)}),b.on(k.TOUCH_START,function(a){return c.mib(a)}),b.on("mouseenter",function(a){return c.nib(a)}),b.on("mouseleave",function(a){return c.oib(a)}),b.on("mousemove",function(a){return c.pib(a)}),d.element(this._hb).on("mousedown",function(a){return c.qib(a)}),d.element(this.aib).on("mousedown",function(a){return c.rib(a)}),d.element(this.bib).on("mousedown",function(a){return c.sib(a)}),d.element(this.cib).on("mousedown",function(a){return c.tib(a)}),d.element(this.ndb).on("click mousemove",function(a){return c.pub(a)})},l.prototype.jib=function(a){this.update()},l.prototype.hib=function(a){this.update()},l.prototype.iib=function(a){var b,c,d,e,f,g,h,i;if(!(a.isDefaultPrevented&&a.isDefaultPrevented()||a.defaultPrevented)&&(b=null,Element&&(Element.prototype.matches?b=Element.prototype.matches:Element.prototype.webkitMatchesSelector?b=Element.prototype.webkitMatchesSelector:Element.prototype.msMatchesSelector&&(b=Element.prototype.msMatchesSelector)),c=b.call(this.aib,":focus")?b.call(this.aib,":focus"):b.call(this.cib,":focus"),(this.ndb.classList.contains("gcdv-hover")||c)&&(d=document.activeElement?document.activeElement:this.Ghb.ownerDocument.activeElement,!(d&&("IFRAME"===d.tagName&&(d=d.contentDocument.activeElement),b.call(d,"input,[contenteditable]")||b.call(d,"select,[contenteditable]")||b.call(d,"textarea,[contenteditable]")||b.call(d,"button,[contenteditable]")))))){switch(e=0,f=0,a.which){case 37:e=-40;break;case 39:e=40;break;case 38:f=40;break;case 40:f=-40;break;case 33:f=this.Mhb;break;case 34:f=-this.Mhb;break;case 36:f=this.Ohb;break;case 35:f=-this.Ohb;break;default:return}g=this.Qhb-f,h=this.Phb+e,i=!1,this.Shb?(this.yib(g),i=!0):this.Rhb&&(this.zib(h),i=!0),i&&this.pub(a)}},l.prototype.kib=function(a){var b=this.Ghb;this.Aib()||(this.Qhb=b.scrollTop,this.Phb=b.scrollLeft),this.MXa()},l.prototype.nib=function(a){this.Aib()||(this.ndb.classList.add("gcdv-hover"),this.MXa())},l.prototype.oib=function(a){this.ndb.classList.remove("gcdv-hover"),this.MXa()},l.prototype.pib=function(a){this.Aib()&&(this.Bib(a)?this.ndb.classList.add("gcdv-hover"):this.ndb.classList.remove("gcdv-hover"),this.MXa())},l.prototype.lib=function(a){if(this.Bib(a)){var b=this.Cib(a),c=b.deltaX,d=b.deltaY,e=this.Qhb-d,f=this.Phb+c,g=!1;this.Shb&&0!==d?(this.yib(e),g=!0):this.Rhb&&0!==c&&(this.zib(f),g=!0),g&&this.pub(a)}},l.prototype.Cib=function(b){var c=0,d=0;return a.x7.hasProperty(b,"deltaY")&&(d=-1*b.deltaY),a.x7.hasProperty(b,"deltaX")&&(c=b.deltaX),1===b.deltaMode?(c*=10,d*=10):b.deltaMode,{deltaX:c,deltaY:d}},l.prototype.Bib=function(a){if(this.Aib()){var b=this.Ghb.getBoundingClientRect(),c=this.eAa,d=c.trackXOffset?c.trackXOffset:0,e=c.trackYOffset?c.trackYOffset:0,f=a.pageX-b.left,g=a.pageY-b.top;return this.Jhb<=f&&f=this.left&&a.x=this.top&&a.ya.left&&this.topa.top},d.prototype.inflate=function(a,b){return new d(this.left-a,this.top-b,this.width+2*a,this.height+2*b)},d);function d(a,c,d,e){this.left=b.UOb.asNumber(a),this.top=b.UOb.asNumber(c),this.width=b.UOb.asNumber(d),this.height=b.UOb.asNumber(e)}b.Rect=c}(a.core||(a.core={}))}(dv=dv||{}),function(a){!function(a){"use strict";var b=(Object.defineProperty(c.prototype,"width",{get:function(){return this.REa},set:function(a){if("number"!=typeof a)throw Error("A number type is required.");this.REa!=a&&(this.REa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"height",{get:function(){return this.Z8a},set:function(a){if("number"!=typeof a)throw Error("A number type is required.");this.Z8a!=a&&(this.Z8a=a)},enumerable:!0,configurable:!0}),c.prototype.clone=function(){return new c(this.width,this.height)},c.prototype.equals=function(a){return a instanceof c&&this.width==a.width&&this.height==a.height},c);function c(a,b){this.REa=0,this.Z8a=0,this.width=a,this.height=b}a.Size=b}(a.core||(a.core={}))}(dv=dv||{}),function(a){"use strict";var b;(b=a.Aggregate||(a.Aggregate={}))[b.List=0]="List",b[b.Sum=1]="Sum",b[b.Count=2]="Count",b[b.Average=3]="Average",b[b.Max=4]="Max",b[b.Min=5]="Min",b[b.Range=6]="Range",b[b.StandardDeviation=7]="StandardDeviation",b[b.Variance=8]="Variance",b[b.PopulationStandardDeviation=9]="PopulationStandardDeviation",b[b.PopulationVariance=10]="PopulationVariance",b[b.CountOfAll=11]="CountOfAll"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AnimationEasing||(a.AnimationEasing={}))[b.Linear=0]="Linear",b[b.Swing=1]="Swing",b[b.EaseInQuad=2]="EaseInQuad",b[b.EaseOutQuad=3]="EaseOutQuad",b[b.EaseInOutQuad=4]="EaseInOutQuad",b[b.EaseInCubic=5]="EaseInCubic",b[b.EaseOutCubic=6]="EaseOutCubic",b[b.EaseInOutCubic=7]="EaseInOutCubic",b[b.EaseInQuart=8]="EaseInQuart",b[b.EaseOutQuart=9]="EaseOutQuart",b[b.EaseInOutQuart=10]="EaseInOutQuart",b[b.EaseInQuint=11]="EaseInQuint",b[b.EaseOutQuint=12]="EaseOutQuint",b[b.EaseInOutQuint=13]="EaseInOutQuint",b[b.EaseInSine=14]="EaseInSine",b[b.EaseOutSine=15]="EaseOutSine",b[b.EaseInOutSine=16]="EaseInOutSine",b[b.EaseInExpo=17]="EaseInExpo",b[b.EaseOutExpo=18]="EaseOutExpo", b[b.EaseInOutExpo=19]="EaseInOutExpo",b[b.EaseInCirc=20]="EaseInCirc",b[b.EaseOutCirc=21]="EaseOutCirc",b[b.EaseInOutCirc=22]="EaseInOutCirc",b[b.EaseInBack=23]="EaseInBack",b[b.EaseOutBack=24]="EaseOutBack",b[b.EaseInOutBack=25]="EaseInOutBack",b[b.EaseInBounce=26]="EaseInBounce",b[b.EaseOutBounce=27]="EaseOutBounce",b[b.EaseInOutBounce=28]="EaseInOutBounce",b[b.EaseInElastic=29]="EaseInElastic",b[b.EaseOutElastic=30]="EaseOutElastic",b[b.EaseInOutElastic=31]="EaseInOutElastic"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AnimationMode||(a.AnimationMode={}))[b.All=0]="All",b[b.Point=1]="Point",b[b.Group=2]="Group"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AxisMode||(a.AxisMode={}))[b.Cartesian=0]="Cartesian",b[b.Radial=1]="Radial",b[b.Polygonal=2]="Polygonal"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AxisPosition||(a.AxisPosition={}))[b.None=0]="None",b[b.Near=1]="Near",b[b.Far=2]="Far"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AxisType||(a.AxisType={}))[b.X=0]="X",b[b.Y=1]="Y"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ClippingMode||(a.ClippingMode={}))[b.None=0]="None",b[b.Fit=1]="Fit",b[b.Clip=2]="Clip"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ColorOptionType||(a.ColorOptionType={}))[b.Linear=0]="Linear",b[b.Radial=1]="Radial",b[b.CssColor=2]="CssColor"}(dv=dv||{}),function(a){!function(a){"use strict";var b;(b=a.DataType||(a.DataType={}))[b.Unknown=0]="Unknown",b[b.Object=1]="Object",b[b.String=2]="String",b[b.Number=3]="Number",b[b.Boolean=4]="Boolean",b[b.Date=5]="Date",b[b.Array=6]="Array"}(a.core||(a.core={}))}(dv=dv||{}),function(a){"use strict";var b;(b=a.DateMode||(a.DateMode={}))[b.MilliSecond=0]="MilliSecond",b[b.Second=1]="Second",b[b.Minute=2]="Minute",b[b.Hour=3]="Hour",b[b.Day=4]="Day",b[b.Week=5]="Week",b[b.Month=6]="Month",b[b.Year=7]="Year"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ElementType||(a.ElementType={}))[b.Control=0]="Control",b[b.Header=1]="Header",b[b.Footter=2]="Footter",b[b.PlotArea=3]="PlotArea",b[b.Legend=4]="Legend",b[b.LegendItem=260]="LegendItem",b[b.LegendTitle=516]="LegendTitle",b[b.PlotsPane=5]="PlotsPane",b[b.Plot=6]="Plot",b[b.DataPoint=7]="DataPoint",b[b.DataPointLabel=263]="DataPointLabel",b[b.Series=8]="Series",b[b.Axis=9]="Axis",b[b.AxisLabel=265]="AxisLabel",b[b.AxisTitle=521]="AxisTitle",b[b.AxisUnitLabel=777]="AxisUnitLabel",b[b.GridLine=10]="GridLine",b[b.Trellis=16]="Trellis",b[b.TrellisRowHeader=272]="TrellisRowHeader",b[b.TrellisColumnHeader=528]="TrellisColumnHeader",b[b.TrellisRow=784]="TrellisRow",b[b.TrellisColumn=1040]="TrellisColumn",b[b.TrellisCell=1296]="TrellisCell",b[b.TrellisCorner=1552]="TrellisCorner",b[b.OverlayItem=17]="OverlayItem",b[b.TextOverlayItem=273]="TextOverlayItem",b[b.RectangleOverlayItem=529]="RectangleOverlayItem",b[b.EllipseOverlayItem=785]="EllipseOverlayItem",b[b.ImageOverlayItem=1041]="ImageOverlayItem",b[b.LineOverlayItem=1297]="LineOverlayItem",b[b.NeedleOverlayItem=1553]="NeedleOverlayItem",b[b.TrendLineOverlayItem=1809]="TrendLineOverlayItem",b[b.ReferenceLineOverlayItem=2065]="ReferenceLineOverlayItem",b[b.ErrorBarOverlayItem=2321]="ErrorBarOverlayItem",b[b.Overlay=18]="Overlay"}(dv=dv||{}),function(a){"use strict";var b;(b=a.FontStyle||(a.FontStyle={}))[b.Normal=0]="Normal",b[b.Italic=1]="Italic",b[b.Oblique=2]="Oblique"}(dv=dv||{}),function(a){"use strict";var b;(b=a.FontWeight||(a.FontWeight={}))[b.Normal=0]="Normal",b[b.Bold=1]="Bold"}(dv=dv||{}),function(a){"use strict";var b;(b=a.GradientSideOrCorner||(a.GradientSideOrCorner={}))[b.ToLeft=4026531840]="ToLeft",b[b.ToRight=1879048192]="ToRight",b[b.ToTop=805306368]="ToTop",b[b.ToBottom=268435456]="ToBottom",b[b.ToLeftTop=4076863488]="ToLeftTop",b[b.ToRightTop=1929379840]="ToRightTop",b[b.ToLeftBottom=4043309056]="ToLeftBottom",b[b.ToRightBottom=1895825408]="ToRightBottom"}(dv=dv||{}),function(a){"use strict";var b;(b=a.GradientExtentKeyword||(a.GradientExtentKeyword={}))[b.ClosestSide=0]="ClosestSide",b[b.ClosestCorner=1]="ClosestCorner",b[b.FarthestSide=2]="FarthestSide",b[b.FarthestCorner=3]="FarthestCorner"}(dv=dv||{}),function(a){"use strict";var b;(b=a.GradientPosition||(a.GradientPosition={}))[b.Center=0]="Center",b[b.Left=1]="Left",b[b.Right=2]="Right",b[b.Top=3]="Top",b[b.Bottom=4]="Bottom",b[b.LeftTop=5]="LeftTop",b[b.RightTop=6]="RightTop",b[b.LeftBottom=7]="LeftBottom",b[b.RightBottom=8]="RightBottom"}(dv=dv||{}),function(a){"use strict";var b;(b=a.Group||(a.Group={}))[b.Cluster=0]="Cluster",b[b.Stack=1]="Stack"}(dv=dv||{}),function(a){"use strict";var b;(b=a.HAlign||(a.HAlign={}))[b.Left=0]="Left",b[b.Center=1]="Center",b[b.Right=2]="Right",b[b.NotSet=3]="NotSet"}(dv=dv||{}),function(a){"use strict";var b;(b=a.HeaderFooterWidthOptionType||(a.HeaderFooterWidthOptionType={}))[b.Auto=0]="Auto"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LegendPosition||(a.LegendPosition={}))[b.Left=0]="Left",b[b.Top=1]="Top",b[b.Right=2]="Right",b[b.Bottom=3]="Bottom",b[b.None=4]="None",b[b.Floating=5]="Floating"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LegendType||(a.LegendType={}))[b.Color=0]="Color",b[b.Size=1]="Size",b[b.Shape=2]="Shape",b[b.Overlay=3]="Overlay"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LineAspect||(a.LineAspect={}))[b.Default=0]="Default",b[b.Spline=1]="Spline",b[b.StepLeft=2]="StepLeft",b[b.StepRight=3]="StepRight",b[b.StepCenter=4]="StepCenter"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LineCap||(a.LineCap={}))[b.Butt=0]="Butt",b[b.Round=1]="Round",b[b.Square=2]="Square"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LineJoin||(a.LineJoin={}))[b.Miter=0]="Miter",b[b.Bevel=1]="Bevel",b[b.Round=2]="Round"}(dv=dv||{}),function(a){"use strict";var b;(b=a.LinePosition||(a.LinePosition={}))[b.Auto=0]="Auto",b[b.Center=1]="Center"}(dv=dv||{}),function(a){"use strict";var b;(b=a.OrderType||(a.OrderType={}))[b.Ascending=0]="Ascending",b[b.Descending=1]="Descending",b[b.None=2]="None"}(dv=dv||{}),function(a){"use strict";var b;(b=a.Orientation||(a.Orientation={}))[b.Horizontal=0]="Horizontal",b[b.Vertical=1]="Vertical",b[b.NotSet=2]="NotSet"}(dv=dv||{}),function(a){"use strict";var b;(b=a.OverlappingLabels||(a.OverlappingLabels={}))[b.Auto=0]="Auto",b[b.Show=1]="Show",b[b.Hide=2]="Hide",b[b.HideAll=3]="HideAll",b[b.Smart=4]="Smart"}(dv=dv||{}),function(a){"use strict";var b;(b=a.OverlayLabelDisplay||(a.OverlayLabelDisplay={}))[b.Legend=0]="Legend",b[b.Plot=1]="Plot",b[b.Both=2]="Both",b[b.None=3]="None"}(dv=dv||{}),function(a){"use strict";var b;(b=a.OverlayLabelPosition||(a.OverlayLabelPosition={}))[b.TopLeft=0]="TopLeft",b[b.TopCenter=1]="TopCenter",b[b.TopRight=2]="TopRight",b[b.BottomLeft=3]="BottomLeft",b[b.BottomCenter=4]="BottomCenter",b[b.BottomRight=5]="BottomRight"}(dv=dv||{}),function(a){"use strict";var b;(b=a.OverlayDisplay||(a.OverlayDisplay={}))[b.Front=0]="Front",b[b.Back=1]="Back",b[b.FrontOfPlot=2]="FrontOfPlot",b[b.BackOfPlot=3]="BackOfPlot"}(dv=dv||{}),function(a){"use strict";var b;(b=a.Palette||(a.Palette={}))[b.Standard=0]="Standard",b[b.Cocoa=1]="Cocoa",b[b.Coral=2]="Coral",b[b.Dark=3]="Dark",b[b.HighContrast=4]="HighContrast",b[b.Light=5]="Light",b[b.Midnight=6]="Midnight",b[b.Modern=7]="Modern",b[b.Organic=8]="Organic",b[b.Slate=9]="Slate",b[b.Zen=10]="Zen",b[b.Cyborg=11]="Cyborg",b[b.Superhero=12]="Superhero",b[b.Flatly=13]="Flatly",b[b.Darkly=14]="Darkly",b[b.Cerulan=15]="Cerulan",b[b.Office=16]="Office",b[b.Office2010=17]="Office2010",b[b.Grayscale=18]="Grayscale",b[b.BlueWarm=19]="BlueWarm",b[b.Blue=20]="Blue",b[b.Blue2=21]="Blue2",b[b.BlueGreen=22]="BlueGreen",b[b.Green=23]="Green",b[b.GreenYellow=24]="GreenYellow",b[b.Yellow=25]="Yellow",b[b.YellowOrange=26]="YellowOrange",b[b.Orange=27]="Orange",b[b.OrangeRed=28]="OrangeRed",b[b.RedOrange=29]="RedOrange",b[b.Red=30]="Red",b[b.RedViolet=31]="RedViolet",b[b.Violet=32]="Violet",b[b.Violet2=33]="Violet2",b[b.Median=34]="Median",b[b.Paper=35]="Paper",b[b.Marquee=36]="Marquee",b[b.Slipstream=37]="Slipstream",b[b.Aspect=38]="Aspect"}(dv=dv||{}),function(a){"use strict";var b;(b=a.PathFillType||(a.PathFillType={}))[b.Nonzero=0]="Nonzero",b[b.Evenodd=1]="Evenodd"}(dv=dv||{}),function(a){"use strict";var b;(b=a.PercentileType||(a.PercentileType={}))[b.Exclusive=0]="Exclusive",b[b.Inclusive=1]="Inclusive"}(dv=dv||{}),function(a){"use strict";var b;(b=a.Placement||(a.Placement={}))[b.Auto=0]="Auto",b[b.Left=1]="Left",b[b.Top=2]="Top",b[b.Right=3]="Right",b[b.Bottom=4]="Bottom"}(dv=dv||{}),function(a){"use strict";var b;(b=a.PlotType||(a.PlotType={}))[b.Bar=0]="Bar",b[b.Line=1]="Line",b[b.Scatter=2]="Scatter",b[b.Area=3]="Area"}(dv=dv||{}),function(a){"use strict";var b;(b=a.Position||(a.Position={}))[b.Left=0]="Left",b[b.Top=1]="Top",b[b.Right=2]="Right",b[b.Bottom=3]="Bottom",b[b.None=4]="None"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ReferenceLineAggregate||(a.ReferenceLineAggregate={}))[b.Sum=1]="Sum",b[b.Count=2]="Count",b[b.Average=3]="Average",b[b.Max=4]="Max",b[b.Min=5]="Min",b[b.Median=6]="Median",b[b.Percentile=7]="Percentile"}(dv=dv||{}),function(a){"use strict";var b;(b=a.RenderMethod||(a.RenderMethod={}))[b.NotSet=0]="NotSet",b[b.SVG=1]="SVG",b[b.Canvas=2]="Canvas"}(dv=dv||{}),function(a){"use strict";var b;(b=a.SelectionMode||(a.SelectionMode={}))[b.None=0]="None",b[b.Point=1]="Point",b[b.Points=2]="Points",b[b.Group=3]="Group",b[b.Color=4]="Color",b[b.Shape=5]="Shape",b[b.Size=6]="Size",b[b.LegendSingle=7]="LegendSingle",b[b.LegendMultiple=8]="LegendMultiple",b[b.Category=9]="Category",b[b.Custom=10]="Custom",b[b.Trellis=11]="Trellis"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ShowNulls||(a.ShowNulls={}))[b.Gaps=0]="Gaps",b[b.Zeros=1]="Zeros",b[b.Connected=2]="Connected"}(dv=dv||{}),function(a){"use strict";var b;(b=a.SortOrder||(a.SortOrder={}))[b.None=0]="None",b[b.Reversed=1]="Reversed",b[b.Ascending=2]="Ascending",b[b.Descending=3]="Descending"}(dv=dv||{}),function(a){"use strict";var b;(b=a.TextDecoration||(a.TextDecoration={}))[b.Normal=0]="Normal",b[b.Overline=1]="Overline",b[b.LineThrough=2]="LineThrough",b[b.Underline=4]="Underline"}(dv=dv||{}),function(a){"use strict";var b;(b=a.TextOverflow||(a.TextOverflow={}))[b.Clip=0]="Clip",b[b.Ellipsis=1]="Ellipsis",b[b.Wrap=2]="Wrap"}(dv=dv||{}),function(a){"use strict";var b;(b=a.TextPosition||(a.TextPosition={}))[b.Auto=0]="Auto",b[b.Outside=1]="Outside",b[b.Center=2]="Center",b[b.Inside=3]="Inside",b[b.Smart=4]="Smart"}(dv=dv||{}),function(a){"use strict";var b;(b=a.TickMark||(a.TickMark={}))[b.None=0]="None",b[b.Outside=1]="Outside",b[b.Inside=2]="Inside",b[b.Cross=3]="Cross"}(dv=dv||{}),function(a){"use strict";var b;(b=a.VAlign||(a.VAlign={}))[b.Top=0]="Top",b[b.Middle=1]="Middle",b[b.Bottom=2]="Bottom",b[b.NotSet=3]="NotSet"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ValueOptionType||(a.ValueOptionType={}))[b.Number=0]="Number",b[b.Date=1]="Date",b[b.Percentage=2]="Percentage",b[b.Pixel=3]="Pixel",b[b.Enum=4]="Enum",b[b.Available=5]="Available"}(dv=dv||{}),function(a){"use strict";var b;(b=a.ValueScaleType||(a.ValueScaleType={}))[b.Ordinal=0]="Ordinal",b[b.Linear=1]="Linear",b[b.Logarithmic=2]="Logarithmic",b[b.Percentage=3]="Percentage"}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.core.Event,__extends(d,b),d.prototype.raise=function(a,c){b.prototype.raise.call(this,a,c)},d);function d(){return null!==b&&b.apply(this,arguments)||this}a.HitTestEvent=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.core.EventArgs,__extends(d,b),d);function d(a,c,d){var e=b.call(this)||this;return e.point=a,e.model=c,e.addition=d,e}a.HitTestEventArgs=c}(dv=dv||{}),function(){"use strict";(dv||(dv={})).HitTestResult=function(a,b,c,d,e){void 0===e&&(e=null),this.point=a,this.model=b,this.addition=e,this.PHa=c,this.kEa=d}}(),function(a){"use strict";var b,c=(b=a.core.Event,__extends(d,b),d.prototype.raise=function(a,c){b.prototype.raise.call(this,a,c)},d);function d(){return null!==b&&b.apply(this,arguments)||this}a.RenderedEvent=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.core.EventArgs,__extends(d,b),d);function d(){return b.call(this)||this}a.RenderedEventArgs=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.Control,__extends(d,b),Object.defineProperty(d.prototype,"option",{get:function(){return this.eAa},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"devicePixelRatio",{get:function(){return this.u2a().t2a()},set:function(a){this.u2a().t2a(a),this.refreshDelay()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"enabled",{get:function(){return this.qOa},set:function(a){null!=a&&(this.qOa=a)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"renderMethod",{get:function(){return this.u2a().v2a()},set:function(a){this.u2a().v2a()!==a&&(this.u2a().v2a(a),this.refreshDelay())},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"model",{get:function(){return this.w2a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hitTested",{get:function(){return this.m2a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rendered",{get:function(){return this.Cvb},enumerable:!0,configurable:!0}),d.prototype.layers=function(){return this.PRb},d.prototype.u2a=function(){return this.r2a},d.prototype.QRb=function(){return null==this.RRb&&(this.RRb=new a.AnimationManager(this)),this.RRb},d.prototype.dispose=function(){var c,d,e;for(c=0,d=a.x7.properties(this.p2a);c",e=c.parseFromString(d,"text/xml").documentElement.firstChild;e;)a.appendChild(a.ownerDocument.importNode(e,!0)),e=e.nextSibling}catch(a){throw Error("Error parsing XML string.")}else a.textContent=f},d);function d(){this.xn={}}b.XRb=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){!function(a){"use strict";var b=(c.each=function(a,b){var d,e,f,g,h,i,j;for("string"==typeof a&&(a=c.parsePath(a)),(h=a[0].slice(0))[0]=h[0].toUpperCase(),e=h[h.length-2],f=h[h.length-1],b.call(null,h,e,f),i=[e,f],g=1;g=2*Math.PI,(l=new a.core.Point(b,c)).x+=e*Math.cos(q),l.y+=e*Math.sin(q),(m=new a.core.Point(b,c)).x+=e*Math.cos(r),m.y+=e*Math.sin(r),o?(p.arc(b,c,d,q,r,!1),p.moveTo(l.x,l.y)):(p.moveTo(l.x,l.y),p.arc(b,c,d,q,r,!1),p.lineTo(m.x,m.y)),p.arc(b,c,e,r,q,!0)):p.arc(b,c,d,q,r,!1),n=g<0?a.x7.mergeRect(this.getPieBoundRect(b,c,e,q,2*Math.PI),this.getPieBoundRect(b,c,d,q,2*Math.PI),this.getPieBoundRect(b,c,e,0,r),this.getPieBoundRect(b,c,d,0,r)):a.x7.mergeRect(this.getPieBoundRect(b,c,e,q,r),this.getPieBoundRect(b,c,d,q,r)),this.LHa(k,i,h,!0,null,n),p.restore(),k},d.prototype.drawString=function(a,b,c,d){var e,f,g;if(null!=a)return f=this.MHa.getContext("2d"),this.RHa&&(e=this.QHa.drawString(a,b,c,d)),f.save(),f.textBaseline="bottom",this.LHa(e,d,c,!0,!0),f.fillText(a.trim(),b.x,b.y),this.YRb.begin(f),g=this.ZRb(a),this.YRb.end(),this.$Rb(a.trim(),b,g),f.restore(),e},d.prototype.drawStringRotated=function(a,b,c,d,e,f){var g,h,i;if(null!=a)return h=this.MHa.getContext("2d"),this.RHa&&(g=this.QHa.drawStringRotated(a,b,c,d,e,f)),h.save(),h.textBaseline="bottom",h.translate(c.x,c.y),h.rotate(Math.PI/180*d),h.translate(-c.x,-c.y),this.LHa(g,f,e,!0,!0),h.fillText(a,b.x,b.y),this.YRb.begin(h),i=this.ZRb(a),this.YRb.end(),this.$Rb(a.trim(),b,i),h.restore(),g},d.prototype.measureString=function(a,b,c,d){var e,f;return this.RHa?this.QHa.measureString(a,b,c,d):(e=this.MHa.getContext("2d"),e.save(),this.LHa(null,null,b,!0,!0),this.YRb.begin(e),f=this.ZRb(a),this.YRb.end(),e.restore(),f)},d.prototype.ZRb=function(b){var c=null,d=null,e=null,f=null;return null!=this.fontWeight&&(e=this.fontWeight),null!=this.fontStyle&&(f=a.FontStyle[this.fontStyle]?a.FontStyle[this.fontStyle]:""+this.fontStyle),this.HHa?(c=this.HHa,d=this.fontFamily||"sans-serif"):this.OHa&&(c=this.OHa.fontSize,d=this.OHa.fontFamily||"sans-serif"),this.YRb.measureString(b,c,d,e,f)},d.prototype.startTransform=function(a){this.RHa&&this.QHa.startTransform(a);var b=this.MHa.getContext("2d");b.save(),null!=a&&Array.isArray(a)&&6===a.length&&b.transform(a[0],a[1],a[2],a[3],a[4],a[5])},d.prototype.endTransform=function(){this.RHa&&this.QHa.endTransform(),this.MHa.getContext("2d").restore()},d.prototype.startGroup=function(a,b,c){var d,e;return void 0===c&&(c=!1),e=this.MHa.getContext("2d"),this.RHa&&(d=this.QHa.startGroup(a,b,c)),e.save(),this.JHa(e,b),d},d.prototype.endGroup=function(){this.RHa&&this.QHa.endGroup(),this.MHa.getContext("2d").restore()},d.prototype.drawImage=function(a,c,d,e,f,g){var h,i,j=this.MHa.getContext("2d"),k=new Image;return this.RHa&&(h=this.QHa.drawImage(a,c,d,e,f)),i=this,k.onload=function(){b.aSb._Rb(g)?(i.startTransform(g),j.drawImage(k,c,d,e,f),i.endTransform()):j.drawImage(k,c,d,e,f)},k.src=a,h},d.prototype.JHa=function(a,b){var c=this.KHa[b];c&&(a.beginPath(), a.rect(c.left,c.top,c.width,c.height),a.clip(),a.closePath())},d.prototype.NHa=function(b,c){var d,e,f;return"none"==b&&(b="transparent"),d=a.core.o1a.fromCss(b),null!=d?(null!=c&&1===d.alpha&&(e=isNaN(c)?1:+c,d=new a.core.o1a(d.red,d.green,d.blue,e)),d.toCss()):(f=a.core.p1a.fromCss(b),null==f?b:(null!=c&&1===f.alpha&&(e=isNaN(c)?1:+c,f=new a.core.p1a(f.hue,f.saturation,f.lightness,e)),f.toCss()))},d.prototype.c8a=function(a){var b=a;return b&&'"'===b[0]&&(b=b.substring(1)),b&&'"'===b[b.length-1]&&(b=b.slice(0,-1)),b},d.prototype.cloneStyle=function(a){return{fontFamily:a.fontFamily,fontWeight:a.fontWeight,fill:a.fill,fontStyle:a.fontStyle,fontSize:a.fontSize,stroke:a.stroke,strokeWidth:a.strokeWidth,strokeDasharray:a.strokeDasharray}},d.prototype.LHa=function(b,c,d,e,f,g,h,i,j){var k,l,m,n,o,p,q,r,s,t,u;if(void 0===h&&(h="nonzero"),void 0===i&&(i=a.LineCap.Butt),void 0===j&&(j=a.LineJoin.Miter),m=this,n=m.MHa.getContext("2d"),o=m.stroke,p=m.fill,q=m.opacity,r=m.strokeWidth,s=m.strokeDasharray,c&&void 0!==c.opacity&&(q=c.opacity),c&&void 0!==c.stroke&&(o=c.stroke),c&&void 0!==c.strokeDasharray&&(s=c.strokeDasharray),c&&void 0!==c.fill&&"string"==typeof c.fill&&(p=m.NHa(c.fill,c["fill-opacity"])),b&&((l=this.cloneStyle(window.getComputedStyle(b))).fontFamily=this.c8a(l.fontFamily),l.fontWeight=this.c8a(l.fontWeight)),f)l?(n.globalAlpha=q,n.fillStyle=l.fill,k=l.fontStyle+" "+l.fontWeight+" "+l.fontSize+" "+l.fontFamily,n.font=k,n.font.replace(/\"/g,"'")!==k.replace(/\"/g,"'")&&(k=l.fontStyle+" "+l.fontWeight+" "+l.fontSize+" "+(n.font.split(" ").splice(1).join(" ")||"sans-serif"),n.font=k)):m.HHa?(n.globalAlpha=q,n.fillStyle=m.textFill,n.font=m.HHa+" "+(m.fontFamily||"sans-serif")):m.OHa&&(n.globalAlpha=q,n.fillStyle=m.OHa.textFill,k=m.OHa.fontSize+" "+m.OHa.fontFamily,n.font=k,n.font.replace(/\"/g,"'")!==k.replace(/\"/g,"'")&&(k=m.OHa.fontSize+" "+(n.font.split(" ")[1]||"sans-serif"),n.font=k));else if(l&&(t=l,"string"==typeof o&&(o=l.stroke&&"none"!==l.stroke?l.stroke:o),"string"==typeof p&&(p=l.fill&&"none"!==l.fill?m.NHa(l.fill,t["fill-opacity"]):p),r=l.strokeWidth?l.strokeWidth:r,s=l.strokeDasharray?l.strokeDasharray:s,a.core.UOb.isString(r)&&(u=a.core.UOb.asString(r,!0),u=u.replace("px",""),r=parseFloat(u))),null!=q&&"none"!==q&&(n.globalAlpha=q),e&&null!=p&&"transparent"!==p&&"none"!==p&&(n.fillStyle=this.applyColor(p,g),n.fill(h)),"none"!==o&&null!=o&&0!==r){switch(n.strokeStyle=this.applyColor(o,g),n.lineWidth=r,null!=s&&"none"!==s&&(s=s.match(/\d+(\.\d+)?/g),n.setLineDash(s)),i){case a.LineCap.Round:n.lineCap="round";break;case a.LineCap.Square:n.lineCap="square";break;case a.LineCap.Butt:n.lineCap="butt"}switch(j){case a.LineJoin.Round:n.lineJoin="round";break;case a.LineJoin.Bevel:n.lineJoin="bevel";break;case a.LineJoin.Miter:n.lineJoin="miter"}n.stroke()}},d.prototype.applyColor=function(a,c){var d=this.MHa.getContext("2d");if(null!=a)return"string"==typeof a?a:a instanceof b.bSb?(new b.F7a).applyCanvasGradient(d,a,c):a instanceof b.cSb?(new b.G7a).applyCanvasGradient(d,a,c):void 0},d.prototype.$Rb=function(a,b,c){var d,e,f=this.MHa.getContext("2d");(this.textDecoration.underline||this.textDecoration.lineThrough||this.textDecoration.overline)&&(d=c.width,e=c.height/1.5,this.textDecoration.underline&&this.drawLine(b.x,b.y,b.x+d,b.y,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}),this.textDecoration.lineThrough&&this.drawLine(b.x,b.y-e/2,b.x+d,b.y-e/2,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}),this.textDecoration.overline&&this.drawLine(b.x,b.y-e,b.x+d,b.y-e,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}))},d);function d(a,c,d){void 0===d&&(d=!0),this.qFa=1,this.tFa=1,this.yGa=null,this.zGa=null,this.TNa=NaN,this.a8a=null,this.b8a=null,this.HHa=null,this.KHa={},this.PRa=a,this.YRb=c;var e=this;e.MHa=document.createElement("canvas"),e.QHa=new b.oAa(a,new b.XRb),e.PRa.appendChild(e.MHa),e.RHa=d}b.pAa=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.startTransform=function(a){var b=this.MHa.getContext("2d");b.save(),null!=a&&Array.isArray(a)&&6===a.length&&b.transform(a[0],a[1],a[2],a[3],a[4],a[5])},d.prototype.endTransform=function(){this.MHa.getContext("2d").restore()},d.prototype.clone=function(){var a=new d(this.PRa,this.dSb);return a.opacity=this.opacity,a.fill=this.fill,a.stroke=this.stroke,a.strokeWidth=this.strokeWidth,a.strokeDasharray=this.strokeDasharray,a.textFill=this.textFill,a.fontFamily=this.fontFamily,a.fontSize=this.fontSize,a.fontWeight=this.fontWeight,a.fontStyle=this.fontStyle,a.textDecoration=this.textDecoration,a.devicePixelRatio=this.devicePixelRatio,a},Object.defineProperty(d.prototype,"opacity",{get:function(){return this.qFa},set:function(a){this.qFa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fill",{get:function(){return this.rFa},set:function(a){this.rFa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"stroke",{get:function(){return this.sFa},set:function(a){this.sFa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"strokeWidth",{get:function(){return this.tFa},set:function(a){this.tFa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"strokeDasharray",{get:function(){return this.uFa},set:function(a){this.uFa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"textFill",{get:function(){return this.SHa},set:function(a){this.SHa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fontSize",{get:function(){return this.yGa},set:function(a){this.yGa=a,this.HHa=null==a||isNaN(a)?a:a+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fontFamily",{get:function(){return this.zGa},set:function(a){this.zGa=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fontWeight",{get:function(){return this.a8a},set:function(a){this.a8a=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"fontStyle",{get:function(){return this.b8a},set:function(a){this.b8a=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"textDecoration",{get:function(){return this.d8a},set:function(a){this.d8a=a},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"devicePixelRatio",{get:function(){var a=window.devicePixelRatio?window.devicePixelRatio:1;return a=a<1?1:a,null==this.TNa||isNaN(this.TNa)||(a=this.TNa),a},set:function(a){isNaN(a)||null==a||(this.TNa=a)},enumerable:!0,configurable:!0}),d.prototype.beginRender=function(){var a,b=this.PRa;this.KHa={},a=window.getComputedStyle(b),this.OHa={fontSize:a.fontSize,fontFamily:a.fontFamily,textFill:a.color}},d.prototype.endRender=function(){},d.prototype.setViewportSize=function(a,b){var c=this.MHa,d=this.devicePixelRatio;c.width=a*d,c.height=b*d,c.style.width=a+"px",c.style.height=b+"px",c.getContext("2d").scale(d,d)},d.prototype.addClipRect=function(a,b){a&&b&&(this.KHa[b]=a)},d.prototype.drawPath=function(c,d,e,f,g,h){var i,j,k;c&&(i=this.MHa.getContext("2d"),i.save(),i.beginPath(),j=0,k=0,b.Path.each(c,function(a){switch(a.shift()){case"M":2==a.length&&(j=a[0],k=a[1]),i.moveTo.apply(i,a);break;case"L":2==a.length&&(j=a[0],k=a[1]),i.lineTo.apply(i,a);break;case"C":6==a.length&&(j=a[4],k=a[5]),i.bezierCurveTo.apply(i,a);break;case"A":!function(a,b,c,d,e,f,g,h,j){var k,l,m,n,o,p,q,r,s,t,u,v,w=Math.cos(e)*(a-h)/2+Math.sin(e)*(b-j)/2,x=-Math.sin(e)*(a-h)/2+Math.cos(e)*(b-j)/2,y=Math.pow(w,2)/Math.pow(c,2)+Math.pow(x,2)/Math.pow(d,2);1=2*Math.PI,(k=new a.core.Point(b,c)).x+=e*Math.cos(p),k.y+=e*Math.sin(p),(l=new a.core.Point(b,c)).x+=e*Math.cos(q),l.y+=e*Math.sin(q),n?(o.arc(b,c,d,p,q,!1),o.moveTo(k.x,k.y)):(o.moveTo(k.x,k.y),o.arc(b,c,d,p,q,!1),o.lineTo(l.x,l.y)),o.arc(b,c,e,q,p,!0)):o.arc(b,c,d,p,q,!1),m=g<0?a.x7.mergeRect(this.getPieBoundRect(b,c,e,p,2*Math.PI),this.getPieBoundRect(b,c,d,p,2*Math.PI),this.getPieBoundRect(b,c,e,0,q),this.getPieBoundRect(b,c,d,0,q)):a.x7.mergeRect(this.getPieBoundRect(b,c,e,p,q),this.getPieBoundRect(b,c,d,p,q)),this.LHa(void 0,i,h,!0,null,m),o.restore()},d.prototype.drawString=function(a,b,c,d){var e,f;null!=a&&(e=this.MHa.getContext("2d"),e.save(),e.textBaseline="bottom",this.LHa(void 0,d,c,!0,!0),e.fillText(a.trim(),b.x,b.y),this.dSb.begin(e),f=this.ZRb(a),this.dSb.end(),this.$Rb(a.trim(),b,f),e.restore())},d.prototype.drawStringRotated=function(a,b,c,d,e,f){var g,h;null!=a&&(g=this.MHa.getContext("2d"),g.save(),g.textBaseline="bottom",g.translate(c.x,c.y),g.rotate(Math.PI/180*d),g.translate(-c.x,-c.y),this.LHa(void 0,f,e,!0,!0),g.fillText(a,b.x,b.y),this.dSb.begin(g),h=this.ZRb(a),this.dSb.end(),this.$Rb(a.trim(),b,h),g.restore())},d.prototype.measureString=function(a,b,c,d){var e,f=this.MHa.getContext("2d");return f.save(),this.LHa(null,null,b,!0,!0),this.dSb.begin(f),e=this.ZRb(a),this.dSb.end(),f.restore(),e},d.prototype.ZRb=function(b){var c="",d="",e="",f="";return null!=this.fontWeight&&(e=this.fontWeight),null!=this.fontStyle&&(f=a.FontStyle[this.fontStyle]?a.FontStyle[this.fontStyle]:""+this.fontStyle),this.HHa?(c=this.HHa,d=this.fontFamily||"sans-serif"):this.OHa&&(c=this.OHa.fontSize,d=this.OHa.fontFamily||"sans-serif"),this.dSb.measureString(b,c,d,e,f)},d.prototype.startGroup=function(a,b,c){void 0===c&&(c=!1);var d=this.MHa.getContext("2d");d.save(),this.JHa(d,b)},d.prototype.endGroup=function(){this.MHa.getContext("2d").restore()},d.prototype.drawImage=function(a,c,d,e,f,g){var h=this.MHa.getContext("2d"),i=new Image,j=this;i.onload=function(){b.aSb._Rb(g)?(j.startTransform(g),h.drawImage(i,c,d,e,f),j.endTransform()):h.drawImage(i,c,d,e,f)},i.src=a},d.prototype.JHa=function(a,b){var c=this.KHa[b];c&&(a.beginPath(),a.rect(c.left,c.top,c.width,c.height),a.clip(),a.closePath())},d.prototype.NHa=function(b,c){var d,e,f;return"none"==b&&(b="transparent"),d=a.core.o1a.fromCss(b),null!=d?(null!=c&&1===d.alpha&&(e=isNaN(c)?1:+c,d=new a.core.o1a(d.red,d.green,d.blue,e)),d.toCss()):(f=a.core.p1a.fromCss(b),null==f?b:(null!=c&&1===f.alpha&&(e=isNaN(c)?1:+c,f=new a.core.p1a(f.hue,f.saturation,f.lightness,e)),f.toCss()))},d.prototype.dOa=function(a){var b=a;return b&&'"'===b[0]&&(b=b.substring(1)),b&&'"'===b[b.length-1]&&(b=b.slice(0,-1)),b},d.prototype.LHa=function(b,c,d,e,f,g,h,i,j){void 0===h&&(h="nonzero"),void 0===i&&(i=a.LineCap.Butt),void 0===j&&(j=a.LineJoin.Miter);var k,l=this,m=l.MHa.getContext("2d"),n="",o="",p=l.stroke,q=l.fill,r=l.opacity,s=l.strokeWidth,t=l.strokeDasharray;if(null!=l.fontWeight&&(n=l.fontWeight),null!=l.fontStyle&&(o=a.FontStyle[l.fontStyle]?a.FontStyle[l.fontStyle]:""+l.fontStyle),c&&void 0!==c.opacity&&(r=c.opacity),c&&void 0!==c.stroke&&(p=c.stroke),c&&void 0!==c.strokeDasharray&&(t=c.strokeDasharray),c&&void 0!==c.fill&&"string"==typeof c.fill&&(q=l.NHa(c.fill,c["fill-opacity"])),c&&void 0!==c.strokeWidth&&(s=c.strokeWidth),f)l.HHa?(m.globalAlpha=r,m.fillStyle=l.textFill,m.font=o+" "+n+" "+l.HHa+" "+(l.fontFamily||"sans-serif")):l.OHa&&(m.globalAlpha=r,m.fillStyle=l.OHa.textFill,k=o+" "+n+" "+l.OHa.fontSize+" "+l.OHa.fontFamily,m.font=k,m.font.replace(/\"/g,"'")!==k.replace(/\"/g,"'")&&(k=l.OHa.fontSize+" "+(m.font.split(" ")[1]||"sans-serif"),m.font=k));else if(null!=r&&"none"!==r&&(m.globalAlpha=r),e&&null!=q&&"transparent"!==q&&"none"!==q&&(m.fillStyle=this.applyColor(q,g),m.fill(h)),"none"!==p&&null!=p&&0!==s){switch(m.strokeStyle=this.applyColor(p,g),m.lineWidth=s,null!=t&&"none"!==t&&null!=(t=t.match(/\d+(\.\d+)?/g))&&"none"!==t&&m.setLineDash(t),i){case a.LineCap.Round:m.lineCap="round";break;case a.LineCap.Square:m.lineCap="square";break;case a.LineCap.Butt:m.lineCap="butt"}switch(j){case a.LineJoin.Round:m.lineJoin="round";break;case a.LineJoin.Bevel:m.lineJoin="bevel";break;case a.LineJoin.Miter:m.lineJoin="miter"}m.stroke()}},d.prototype.$Rb=function(a,b,c){var d,e,f=this.MHa.getContext("2d");(this.textDecoration.underline||this.textDecoration.lineThrough||this.textDecoration.overline)&&(d=c.width,e=c.height/1.5,this.textDecoration.underline&&this.drawLine(b.x,b.y,b.x+d,b.y,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}),this.textDecoration.lineThrough&&this.drawLine(b.x,b.y-e/2,b.x+d,b.y-e/2,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}),this.textDecoration.overline&&this.drawLine(b.x,b.y-e,b.x+d,b.y-e,null,{stroke:""+f.fillStyle,strokeWidth:1,strokeDasharray:""}))},d.prototype.applyColor=function(a,c){var d=this.MHa.getContext("2d");if(null!=a)return"string"==typeof a?a:a instanceof b.bSb?(new b.F7a).applyCanvasGradient(d,a,c):a instanceof b.cSb?(new b.G7a).applyCanvasGradient(d,a,c):void 0},d);function d(a,b){this.qFa=1,this.tFa=1,this.yGa=null,this.zGa=null,this.TNa=NaN,this.HHa=null,this.a8a=null,this.b8a=null,this.KHa={},this.PRa=a,this.dSb=b,this.MHa=document.createElement("canvas"),this.PRa.appendChild(this.MHa)}b.QRa=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.clone=function(){var a=new d(this.PRa,this.eSb);return a.opacity=this.opacity,a.fill=this.fill,a.stroke=this.stroke,a.strokeWidth=this.strokeWidth,a.strokeDasharray=this.strokeDasharray,a.textFill=this.textFill,a.fontFamily=this.fontFamily,a.fontSize=this.fontSize,a.fontWeight=this.fontWeight,a.fontStyle=this.fontStyle,a.textDecoration=this.textDecoration,a.devicePixelRatio=this.devicePixelRatio,a},d.prototype.beginRender=function(){for(;this._Ha.firstChild;)this._Ha.removeChild(this._Ha.firstChild);this.bIa=document.createElementNS(d.aIa,"defs"),this._Ha.appendChild(this.bIa),this._Ha.appendChild(this.eIa),this.$Ha={}},d.prototype.endRender=function(){null!=this.eIa.parentNode&&this._Ha.removeChild(this.eIa)},d.prototype.setViewportSize=function(b,c){a.ePb.dPb(null!=b&&0=2*Math.PI?(this.drawEllipse(b,c,e,e,h,i),null):(k=document.createElementNS(d.aIa,"path"),this.GDa(k,"fill",this.fill),null!=this.opacity&&k.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&(k.setAttribute("stroke-width",this.strokeWidth.toFixed(this.Fqb)),0Math.PI&&(o=" 0 1,1 "),p="M "+l.x.toFixed(this.Fqb)+","+l.y.toFixed(this.Fqb),p+=" A "+e.toFixed(this.Fqb)+","+e.toFixed(this.Fqb)+o,p+=n.x.toFixed(this.Fqb)+","+n.y.toFixed(this.Fqb),p+=" L "+b.toFixed(this.Fqb)+","+c.toFixed(this.Fqb)+" z",k.setAttribute("d",p),j&&k.setAttribute("clip-path","url(#"+j+")"),h&&k.setAttribute("class",h),this.GHa(k,i),this.gIa(k),null)},d.prototype.drawDonutSegment=function(b,c,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s,t,u;return e==f&&h>=2*Math.PI?(this.drawEllipse(b,c,e,e,i,j),null):(l=!1,(h>=2*Math.PI||Math.abs(h-2*Math.PI)<=.001)&&(l=!0,h=2*Math.PI-.001),m=document.createElementNS(d.aIa,"path"),this.GDa(m,"fill",this.fill),null!=this.opacity&&m.setAttribute("opacity",""+this.opacity),null!==this.strokeWidth&&(m.setAttribute("stroke-width",this.strokeWidth.toFixed(this.Fqb)),0Math.PI&&(n=" 0 1,1 ",o=" 0 1,0 "),p=g+h,q="",r=new a.core.Point(b,c),r.x+=e*Math.cos(g),r.y+=e*Math.sin(g),s=new a.core.Point(b,c),s.x+=e*Math.cos(p),s.y+=e*Math.sin(p),q+="M "+r.x.toFixed(3)+","+r.y.toFixed(3),q+=" A "+e.toFixed(3)+","+e.toFixed(3)+n,q+=s.x.toFixed(3)+","+s.y.toFixed(3),e!=f?(t=new a.core.Point(b,c),t.x+=f*Math.cos(p),t.y+=f*Math.sin(p),u=new a.core.Point(b,c),u.x+=f*Math.cos(g),u.y+=f*Math.sin(g),q+=l?" M "+t.x.toFixed(3)+","+t.y.toFixed(3):" L "+t.x.toFixed(3)+","+t.y.toFixed(3),q+=" A "+f.toFixed(3)+","+f.toFixed(3)+o,q+=u.x.toFixed(3)+","+u.y.toFixed(3),l||(q+=" z")):l&&(q+=" z"),m.setAttribute("d",q),k&&m.setAttribute("clip-path","url(#"+k+")"),i&&m.setAttribute("class",i),this.GHa(m,j),this.gIa(m),m)},d.prototype.drawString=function(a,b,c,d){var e,f=this.dIa(b,a);return c&&f.setAttribute("class",c),this.GHa(f,d),this.gIa(f),this.eSb.begin(f),e=this.eSb.getBBox(),this.eSb.end(),f.setAttribute("y",(b.y-(e.top+e.height-b.y)).toFixed(this.Fqb)),f},d.prototype.drawStringRotated=function(a,b,c,e,f,g){var h,i,j=this.dIa(b,a);return f&&j.setAttribute("class",f),this.GHa(j,g),h=document.createElementNS(d.aIa,"g"),h.setAttribute("transform","rotate("+e.toFixed(this.Fqb)+","+c.x.toFixed(this.Fqb)+","+c.y.toFixed(this.Fqb)+")"),h.appendChild(j),this.gIa(h),this.eSb.begin(j),i=this.eSb.getBBox(),this.eSb.end(),j.setAttribute("y",(b.y-(i.top+i.height-b.y)).toFixed(this.Fqb)),j},d.prototype.measureString=function(b,c,d,e){var f,g,h,i=new a.core.Size(0,0);if(c&&this.cIa.setAttribute("class",c),d&&this.eIa.setAttribute("class",d),this.GHa(this.cIa,e),this.eSb.begin(this.cIa),i=this.eSb.measureString(b,this.fontSize,this.fontFamily,this.fontWeight,null!=this.fontStyle?a.FontStyle[this.fontStyle]:null),this.eSb.end(),this.cIa.removeAttribute("class"),e)for(f=0,g=a.x7.properties(e);f",e=c.parseFromString(d,"text/xml").documentElement.firstChild;e;)a.appendChild(a.ownerDocument.importNode(e,!0)),e=e.nextSibling}catch(a){throw Error("Error parsing XML string.")}else a.textContent=f},d.prototype.dIa=function(b,c){var e,f=document.createElementNS(d.aIa,"text");return this.iIa(f,c),null!=this.textFill&&f.setAttribute("fill",this.textFill),f.setAttribute("x",b.x.toFixed(this.Fqb)),f.setAttribute("y",b.y.toFixed(this.Fqb)),this.fontSize&&f.setAttribute("font-size",this.fontSize),this.fontFamily&&f.setAttribute("font-family",this.fontFamily),this.fontWeight&&f.setAttribute("font-weight",this.fontWeight.toLowerCase()),this.fontStyle&&f.setAttribute("font-style",a.FontStyle[this.fontStyle].toLowerCase()),this.textDecoration&&(e=[],this.textDecoration.lineThrough&&e.push("line-through"),this.textDecoration.overline&&e.push("overline"),this.textDecoration.underline&&e.push("underline"),0=this.start&&a=this.start+this.duration&&(this.applyTransformation(1,c),this.SG(c)))},c.prototype.SG=function(b){this.state!==a.AnimationState.Animating&&this.state!=a.AnimationState.BeforeStart||(b.bz(!0),this.state=a.AnimationState.End,this.onEndAnimation(b))},c.prototype.iSb=function(b,c){this.state!==a.AnimationState.Animating&&this.state!=a.AnimationState.BeforeStart||(c.bz(!0),this.state=a.AnimationState.End,this.onInterruptAnimation(this.scale(b),c))},c.prototype.scale=function(a){return this.ease((a-this.start)/this.duration)},c);function c(){this.isFirstRunning=!0,this.ease=a.D1a.Linear,this.start=0,this.delay=0,this.duration=0,this.state=a.AnimationState.BeforeStart,this.ishiddenBeforeStart=!0}a.BaseAnimation=b}(dv=dv||{}),function(a){"use strict";var b=(c.Linear=function(a){return a},c.Swing=function(a){var b=1.70158;return(a/=.5)<1?a*a*((1+(b*=1.525))*a-b)*.5:.5*((a-=2)*a*((1+(b*=1.525))*a+b)+2)},c.EaseInQuad=function(a){return a*a},c.EaseOutQuad=function(a){return a*(2-a)},c.EaseInOutQuad=function(a){return a<.5?2*a*a:(4-2*a)*a-1},c.EaseInCubic=function(a){return a*a*a},c.EaseOutCubic=function(a){return--a*a*a+1},c.EaseInOutCubic=function(a){return a<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1},c.EaseInQuart=function(a){return a*a*a*a},c.EaseOutQuart=function(a){return 1- --a*a*a*a},c.EaseInOutQuart=function(a){return a<.5?8*a*a*a*a:1-8*--a*a*a*a},c.EaseInQuint=function(a){return a*a*a*a*a},c.EaseOutQuint=function(a){return 1+--a*a*a*a*a},c.EaseInOutQuint=function(a){return a<.5?16*a*a*a*a*a:1+16*--a*a*a*a*a},c.EaseInSine=function(a){return 1-Math.cos(a*(Math.PI/2))},c.EaseOutSine=function(a){return Math.sin(a*(Math.PI/2))},c.EaseInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)},c.EaseInExpo=function(a){return 0==a?0:Math.pow(2,10*(a-1))},c.EaseOutExpo=function(a){return 1==a?1:1-Math.pow(2,-10*a)},c.EaseInOutExpo=function(a){return(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*--a))},c.EaseInCirc=function(a){return-(Math.sqrt(1-a*a)-1)},c.EaseOutCirc=function(a){return Math.sqrt(1-Math.pow(a-1,2))},c.EaseInOutCirc=function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},c.EaseInBack=function(a){return a*a*(2.70158*a-1.70158)},c.EaseOutBack=function(a){return--a*a*(2.70158*a+1.70158)+1},c.EaseInOutBack=function(a){var b=1.70158;return(a/=.5)<1?a*a*((1+(b*=1.525))*a-b)*.5:.5*((a-=2)*a*((1+(b*=1.525))*a+b)+2)},c.EaseInBounce=function(a){return 1-c.EaseOutBounce(1-a)},c.EaseOutBounce=function(a){var b=7.5625;return a<1/2.75?b*a*a:a<2/2.75?b*(a-=1.5/2.75)*a+.75:a<2.5/2.75?b*(a-=2.25/2.75)*a+.9375:b*(a-=2.625/2.75)*a+.984375},c.EaseInOutBounce=function(a){return a<.5?.5*c.EaseInBounce(2*a):.5*c.EaseOutBounce(2*a-1)+.5},c.EaseInElastic=function(a){return-(Math.pow(2,10*--a)*Math.sin((a-.075)*(2*Math.PI)/.3))},c.EaseOutElastic=function(a){return Math.pow(2,-10*a)*Math.sin((a-.075)*(2*Math.PI)/.3)+1},c.EaseInOutElastic=function(a){return(a*=2)<1?Math.pow(2,10*--a)*Math.sin((a-.1125)*(2*Math.PI)/.45)*-.5:Math.pow(2,-10*--a)*Math.sin((a-.1125)*(2*Math.PI)/.45)*.5+1},c);function c(){}a.D1a=b}(dv=dv||{}),function(a){"use strict";var b;(b=a.AnimationKeyFramesType||(a.AnimationKeyFramesType={}))[b.Percentage=0]="Percentage",b[b.Pixel=1]="Pixel"}(dv=dv||{}),function(a){"use strict";var b;(b=a.AnimationState||(a.AnimationState={}))[b.BeforeStart=0]="BeforeStart",b[b.Animating=1]="Animating",b[b.End=2]="End"}(dv=dv||{}),function(a){"use strict";var b=(c.jSb=function(b,c,d,e){if(null!=b){b.duration=d,b.ease=a.x7.V1a(e.easing),e.staggering||(c=0);var f=null==e.startDelay?0:e.startDelay;b.delay=f+c}},c.CQb=function(b,c,d){if(null!=c&&null!=d&&null!=b){var e=a.AnimationManager.getInstance(d).DQb();null!=e&&e.handleHover(d,{view:b,Animation:c})}},c.kSb=function(b,c){if(null!=b&&null!=c){var d=a.AnimationManager.getInstance(c).DQb();return null!=d?d.findHoverAnimationBy(b):null}},c.lSb=function(b,c){if(null!=b&&null!=c){var d=a.AnimationManager.getInstance(c).DQb();return null!=d?d.stopHoverAnimationBy(b):void 0}},c.BQb=function(b,c){if(null!=b&&null!=c){var d=a.AnimationManager.getInstance(c).DQb();null!=d&&d.stopAllAnimationBy(c,b)}},c.mSb=function(b,c){return a.AnimationManager.getInstance(b).EQb().NR(b)[c]},c);function c(){}a.AnimationUtil=b}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),dv=dv||{},function(a){"use strict";var b=(c.prototype.nSb=function(){return this.onFrame},c.prototype.DQb=function(){return this.handler},c.prototype.EQb=function(){return this.updateAnimationStorage},c.prototype.zQb=function(){return this.hoverAnimationStorage},c.getInstance=function(b){return a.MRb.oSb(b.q4a().s4a()).QRb()},c.prototype.getAllPlotViewsBy=function(b){var c=b.model;return c instanceof a.kAa?c.E2a().map(function(a){return a.nPa()}).reduce(function(a,b){return a.push.apply(a,b),a},[]):null},c.prototype.URb=function(){var a,b,d,e,f=this.getAllPlotViewsBy(this.contorl);if(f)for(a=0,b=f;a=this.units.length)return null;for(d={},e=this.units[a],f=[],g=0,h=c;g"),i=null!=c.label?c.label.split(","):[],0");i"),j=null!=c.label?c.label.split(","):[],k=0;k"),h=null!=c.label?c.label.split(","):[],i=0;i").map(function(b){return a.TOb.sRb(b.trim())})},e.prototype.wLa=function(){return""},e.prototype.zAa=function(a){return a instanceof e},e.prototype.BTb=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;for(b=!1,c=0,d=this.i6a();ch.valueOf())&&(d=h),i=this.I3a.mPb().T0(a.VOb.getValue(g,this.I3a.Cj())),null!=i&&(null==c||c.valueOf()a.valueOf())&&(this.uOa=a.valueOf()),(isNaN(this.vOa)||this.vOaa)&&(this.uOa=a),(isNaN(this.vOa)||this.vOab.zsa()?1:-1});break;case a.SortOrder.Descending:this.GAa.sort(function(a,b){return a.zsa()b)&&(this.uOa=b))},e.prototype.GDa=function(){var a,c,d=this._items(),e=this.cVb().Q2a();for(e instanceof b.U2a&&(e.RSb||d.reverse()),a=0,c=d;ac&&(c=e.my.to,b=d),e.my.start<=a&&ac.to?1:b.tob)&&(this.uOa=b))},e.prototype.GDa=function(){var a,c,d,e,f=this.$z().gradient;if(0!=f.enabled){if(a=[],null!=f.palette&&0m)&&(this.FCa=m,this.$6a=this.FCa),n=i.ySite.max,null!=n&&(null==this.GCa||this.GCathis.ora())for(b=0,c=this.oi();b":""},c.T0=function(a){var b,d,e,f,g;for(d=/<%(.*?)%>/g,e=0,f=[];null!=(b=d.exec(a));)g=b.index,ec.height?c.height:c.width,d=b.startRadius==b.endRadius?a.createRadialGradient(b.end.x*c.width+c.left,b.end.y*c.height+c.top,0,b.start.x*c.width+c.left,b.start.y*c.height+c.top,b.startRadius*e):a.createRadialGradient(b.end.x*c.width+c.left,b.end.y*c.height+c.top,b.endRadius*e,b.start.x*c.width+c.left,b.start.y*c.height+c.top,b.startRadius*e)),this.addCanvasStopByColors(d,b.colorStops),d},d.prototype.addSvgDirection=function(a){this.E7a.setAttribute("cx",a.start.x.toFixed(this.Fqb)),this.E7a.setAttribute("cy",a.start.y.toFixed(this.Fqb)),this.E7a.setAttribute("fx",a.end.x.toFixed(this.Fqb)),this.E7a.setAttribute("fy",a.end.y.toFixed(this.Fqb)),a.endRadius==a.startRadius?this.E7a.setAttribute("r",a.startRadius.toFixed(this.Fqb)):(this.E7a.setAttribute("cr",a.startRadius.toFixed(this.Fqb)),this.E7a.setAttribute("fr",a.endRadius.toFixed(this.Fqb)))},d);function d(){var a=null!==b&&b.apply(this,arguments)||this;return a.Fqb=3,a}a.G7a=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){!function(a){"use strict";var b=(c.prototype.shape=function(){return null},c.prototype.queryInterface=function(a){return null},c);function c(){}a.QWb=b}(a.models||(a.models={}))}(dv=dv||{}),function(a){a.models||(a.models={})}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.j8a=function(a){return arguments.length<=0?this.i8a:void(this.i8a!=a&&(this.i8a=a))},d.prototype.WDa=function(a){return arguments.length<=0?this.OEa:void(this.OEa!=a&&(this.OEa=a))},d.prototype.bw=function(){return this.uOa},d.prototype.cw=function(){return this.vOa},d.prototype.d5a=function(a){this.uOa=a.reduce(function(a,b){return a.valueOf()b.valueOf()?a:b},this.cw())},d.prototype.my=function(a,b){this.h8a.start=a,this.h8a.end=b},d.prototype.Qb=function(b){if(null==this.bw()||null==this.cw())return NaN;if(b.valueOf()this.cw().valueOf())return NaN;switch(this.j8a()){case a.DateMode.Year:return this.bw().getFullYear(),this.cw().getFullYear(),this.k8a(b);case a.DateMode.Month:return this.bw().getFullYear(),this.cw().getFullYear(),this.bw().getMonth(),this.cw().getMonth(),this.k8a(b);case a.DateMode.Week:case a.DateMode.Day:case a.DateMode.Hour:case a.DateMode.Minute:case a.DateMode.Second:case a.DateMode.MilliSecond:return this.k8a(b);default:return NaN}},d.prototype.k8a=function(a){var b;return b=this.bw().valueOf()==this.cw().valueOf()?.5:(a.valueOf()-this.bw().valueOf())/(this.cw().valueOf()-this.bw().valueOf()),this.WDa()?(this.h8a.start-this.h8a.end)*b+this.h8a.end:(this.h8a.end-this.h8a.start)*b+this.h8a.start},d);function d(){this.OEa=!1,this.h8a={start:0,end:0},this.i8a=a.DateMode.Day}b.l8a=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(a){"use strict";var b=(c.prototype.WDa=function(a){return arguments.length<=0?this.OEa:void(this.OEa!=a&&(this.OEa=a))},c.prototype.bw=function(){return this.uOa},c.prototype.cw=function(){return this.vOa},c.prototype.d5a=function(a){this.uOa=a.reduce(function(a,b){return athis.cw()?NaN:(b=this.bw()==this.cw()?.5:(a-this.bw())/(this.cw()-this.bw()),this.WDa()?(this.h8a.start-this.h8a.end)*b+this.h8a.end:(this.h8a.end-this.h8a.start)*b+this.h8a.start);var b},c);function c(){this.OEa=!1,this.h8a={start:0,end:0}}a.m8a=b}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(a){"use strict";var b=(c.prototype.WDa=function(a){return arguments.length<=0?this.OEa:void(this.OEa!=a&&(this.OEa=a))},c.prototype.o8a=function(){return this.n8a},c.prototype.d5a=function(a){var b,c,d,e;for(b=[],c=0,d=a;cd&&f.push(new a.models.zSb(b.color,(b.stop-d)/(e-d)))}),f},c.prototype.K8a=function(b,c){var d,e,f,g,h;return this.ensureGradientOffset(),f=[],d=1-this.convertToOffset(c),e=1-(this.h8a.start-b)/(c-b),g=this.eb(this.h8a.start),h=this.eb(c),f.push(new a.models.zSb(g.color,1-(this.h8a.start-b)/(c-b))), f.push(new a.models.zSb(h.color,0)),this.I8a.forEach(function(b){b.stop>d&&1!=b.stop&&f.push(new a.models.zSb(b.color,b.stop*e))}),f},c.prototype.convertToOffset=function(a){if(null==a)return 0;var b=(a-this.h8a.start)/(this.h8a.end-this.h8a.start);return 1=this.bw()&&f<=this.cw()&&(0==e?g.unshift(f):g.push(f));else(f=Math.pow(l,c))>=this.bw()&&f<=this.cw()&&g.push(f);return g},d);function d(b,c,d,e,f){a.ePb.dPb(c<=d),a.ePb.dPb(0Math.PI?" 0 1,0 ":" 0 0,0 ",A+=" A "+e.toFixed(3)+","+e.toFixed(3)+y+E.x.toFixed(3)+","+E.y.toFixed(3),F=new a.core.Point(b,c),F.x+=e*Math.cos(f),F.y+=e*Math.sin(f),G=new a.core.Point(b,c),G.x+=(e+p)*Math.cos(f),G.y+=(e+p)*Math.sin(f),A+=" Q "+F.x.toFixed(this.Fqb)+","+F.y.toFixed(this.Fqb)+","+G.x.toFixed(this.Fqb)+","+G.y.toFixed(this.Fqb),H=new a.core.Point(b,c),H.x+=(d-r)*Math.cos(f),H.y+=(d-r)*Math.sin(f),A+=" L "+H.x.toFixed(this.Fqb)+","+H.y.toFixed(this.Fqb),I=new a.core.Point(b,c),I.x+=d*Math.cos(f),I.y+=d*Math.sin(f),J=new a.core.Point(b,c),J.x+=d*Math.cos(v),J.y+=d*Math.sin(v),A+=" Q "+I.x.toFixed(this.Fqb)+","+I.y.toFixed(this.Fqb)+","+J.x.toFixed(this.Fqb)+","+J.y.toFixed(this.Fqb),K=new a.core.Point(b,c),K.x+=d*Math.cos(t),K.y+=d*Math.sin(t),x=Math.abs(v-t)>Math.PI?" 0 1,1 ":" 0 0,1 ",A+=" A "+d.toFixed(3)+","+d.toFixed(3)+x+K.x.toFixed(3)+","+K.y.toFixed(3),L=new a.core.Point(b,c),L.x+=d*Math.cos(s),L.y+=d*Math.sin(s),A+=" Q "+L.x.toFixed(this.Fqb)+","+L.y.toFixed(this.Fqb)+","+z.x.toFixed(this.Fqb)+","+z.y.toFixed(this.Fqb),A+=" Z"))},d.Fqb=3,d);function d(){}b.YYb=c}(a.options||(a.options={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.HOb=function(a,b){return null!=a&&null!=b?a.zAa(b):null==a&&null==b},d.RQb=function(c){return null==c?null:(c.trim(),null==c?null:"none"==c?new b.ZYb({color:"none"}):null==a.core.ica.fromCss(c)?null:new b.ZYb({color:c}))},d.$Yb=function(a){if(null==a)return null;if(""==a.trim())return null;var b=a.match(/^\s*(\w*-\w*)\((.*)\)/);return null==b||"linear-gradient"!=b[1]?null:d.parseCssToLinearColor(b[2])},d.parseCssToLinearColor=function(a){var c,d,e,f,g=new b.L9a,h=a.split(RegExp(",(?![^()]*\\))")),i=h;if("to"==h[0].slice(0,2)){for(c=h[0].toLowerCase().split(" "),d="",e=0;ethis.MinFontWeight&&ethis.MinFontWeight&&ce)){if(0d){if(0!=f){if(h=""+f,h.length==d)return a.toFixed(0);if(h.length<=d-1)return a.toFixed(d-1-h.length)}else if(i=a.toFixed(d-2),0!=+i)return i;return a.toExponential(1)}return g},c.getBaseLog=function(a,b){return Math.log(b)/Math.log(a)},c.getSignificanceDigits=function(a,b){if(0==a)return 0;if(a<0)return-c.getSignificanceDigits(-a,b);for(var d=Math.floor(-c.getBaseLog(10,a)),e=(a*=Math.pow(10,d)).toFixed(b),f="";0b[k+1])return{xs:null,ys:null};if(b[k]===b[k+1])continue;if(l=d,h instanceof a.qeb&&!e.yIa()&&(l=this.optimizeStep(d,k/b.length)),j){if(b[k]<=0)continue;for(m=this.log(h.logBase,b[k+1]),n=l+this.log(h.logBase,b[k]);nthis.GCa&&(d=b/this.GCa),d},c.prototype.getAppropriateUnitPixelInterval=function(b,c){if(b instanceof a.u0b){var d=b.radius;return d<0&&(d=1),Math.abs(b.sweep)*d/c}return b instanceof a.G8a?Math.abs(b.my()[1]-b.my()[0])/c:10},c);function c(a,b,c){this.t0b=1.5,this.GCa=500,this.r0b=a,this.ZCa=b,null!=c&&1this.GCa)return{xs:a,ys:b};for(c=[],d=[],e=this.GCa-a.length,f=this.x(a[a.length-1])-this.x(a[0]),g=0;ga[g+1])return{xs:null,ys:null};if(a[g]===a[g+1])continue;if(null!=this.qSa&&a[g]<=0)continue;for(h=this.x(a[g+1])-this.x(a[g]),i=h*e/f,j=h/i,k=1;ka.length-1&&(c=a.length-1),d=[a[c-1]],e=[this.calcMa(b,c)],f=e[0],g=c;ga.length-1&&(c=a.length-1),d=[a[c-1]],e=[this.calcMa(b,c)],f=e[0],g=c;ga.length-1&&(c=a.length-1),d=[a[c-1]],e=[this.calcMa(b,c)],f=e[0],g=c;ga.length-1&&(c=a.length-1),d=0,e=0,f=0;f=j.arrayStart&&p<=j.arrayEnd&&k.push(i.nSa().ttb()[p]);if(o)for(p=0;p=j.arrayStart&&p<=j.arrayEnd&&m.push(i.nSa().utb()[p]);for(p=0;p=j.otherStart&&p<=j.otherEnd&&l.push(c.nSa().ttb()[p]);if(o)for(p=0;p=j.otherStart&&p<=j.otherEnd&&n.push(c.nSa().utb()[p]);for(p=0;pj.otherEnd&&(k.push(i.nSa().ttb()[j.arrayEnd]),l.push(c.nSa().ttb()[p]));if(o)for(p=0;pj.otherEnd&&(m.push(i.nSa().utb()[j.arrayEnd]),n.push(c.nSa().utb()[p]));for(p=0;pj.arrayEnd&&(k.push(i.nSa().ttb()[p]),l.push(c.nSa().ttb()[j.otherEnd]));if(o)for(p=0;pj.arrayEnd&&(m.push(i.nSa().utb()[p]),n.push(c.nSa().utb()[j.otherEnd]));o||(m=i.nSa().utb(),n=c.nSa().utb()),g=new d(m,n,k,l),f.push(g);break}null==g&&(g=new d([],[],[],[]),f.push(g))}),f},d.Ftb=function(b){var c,d,e,f,g,h,i,j,k;return null==b?null:(c=b.bRa(),d=b.data(),null==c.ggb()||c.ggb().length<=0?null:(f=c.$z().config.axisMode,g=c.$z().config.showNulls,h=d.V4a()instanceof a.models.bWb,i=[],j=[],k=0,d.points().forEach(function(l,m){null!=c._La(l.Q5a())&&(l instanceof a.models.XCa?(g==a.ShowNulls.Gaps?null==l.y6a()?(i.push(new a.k1b(b.Tpb()[k].utb(),b.Tpb()[k].ttb(),j)),j=[],k++):j.push(l.jxa()):g!=a.ShowNulls.Zeros&&null==l.y6a()||j.push(l.jxa()),0==m&&(e=(null!=l.y6a()||g!=a.ShowNulls.Gaps)&&0=j.arrayStart&&m<=j.arrayEnd&&k.push(i.nSa().fua()[m]);for(m=0;m=j.otherStart&&m<=j.otherEnd&&l.push(c.nSa().fua()[m]);for(m=0;mj.otherEnd&&(k.push(i.nSa().fua()[j.arrayEnd]),l.push(c.nSa().fua()[m]));for(m=0;mj.arrayEnd&&(k.push(i.nSa().fua()[m]),l.push(c.nSa().fua()[j.otherEnd]));g=new d(k,l),f.push(g);break}null==g&&(g=new d([],[]),f.push(g))}),f},d.bub=function(b){var c,d,e,f,g,h,i,j,k,l,m;if(null==b)return null;if(c=b.bRa(),d=b.data(),null==d.points()||d.points().length<=0)return null;for(e=c.$z().config.axisMode,f=c.$z().config.showNulls,g=d.V4a()instanceof a.models.bWb,h=[],i=[],j=0,k=0,l=d.points();kc))if(b.q1b()&&!b.s1b||j.ora()===c)f=new a.N_TreemapPointLoadingAnimation,d.push({Animation:f,view:b});else for(g=0,h=b.oi();g'},c.prototype.V1b=function(){this.html+=""},c.prototype.W1b=function(a){"text"==a.type?this.html+="
"+a.value+"
":"color"==a.type&&(this.html+=this.getColorDivByCssColor(a.value))},c.prototype.getColorDivByCssColor=function(a){return'
'},c.prototype.Mxa=function(){return this.html},c.ColorSymbolClassName="gcdv-tooltip-color-symbol",c.ColorSymbolLayoutCss="flex-shrink: 0; align-self: center;",c.LineLayoutCss="display: flex;",c);function c(){this.html=""}a.X1b=b}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.toHtml=function(a){var c,d,e,f,g,h,i,j,k=this.kOa(a);if(null==k)return"";for(c=k.split("\n"),d=new b.X1b,e=0,f=c;e=this.yoa?(this.Ok=null,!1):(this.Ok=this.source[this.nextIndex++],!0)},Object.defineProperty(f.prototype,"peek",{get:function(){return this.nextIndex>=this.yoa?null:this.source[this.nextIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"previous",{get:function(){return 1c.height&&(k.left=k.left+(c.width-j)/2,k.width=j),c.height>c.width&&(k.top=k.top+(c.height-j)/2,k.height=j),e=new a.core.Point(k.left+k.width/2,k.top),f=new a.core.Point(k.left,k.width/2/.5773502691896257+k.top),g=new a.core.Point(k.right,f.y),h=[],i=[],h.push(e.x),h.push(f.x),h.push(g.x),i.push(e.y),i.push(f.y),i.push(g.y),a.NQb.iqb(b,this.color),a.NQb.jqb(b,this.color),a.NQb.MQb(b,1),a.NQb.Jqb(b,d),b.drawPolygon(h,i)},d);function d(){}b.XRa=c}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.create=function(){return new a.models.YRa},d);function d(){}b.hSa=c}(a.plugins||(a.plugins={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c=(d.prototype.render=function(b,c,d){var e=c.widththis.ZHa-2&&(f=this.ZHa-2),c=b-f,d=((this._xa[f].x*c+this.$xa[f].x)*c+this.Sk[f].x)*c+this.WHa[f].x,e=((this._xa[f].y*c+this.$xa[f].y)*c+this.Sk[f].y)*c+this.WHa[f].y,new a.core.Point(d,e)},c.prototype.calculate=function(a,b){var c,d,e,f,g,h,i,j,k;if(void 0===a&&(a=1),void 0===b&&(b=1),this.ZHa<=2)return{xs:this.XHa,ys:this.YHa};for(c=[],d=[],e=this.calculatePoint(0),c.push(e.x),d.push(e.y),f=this.ZHa*this.k,g=3*a,h=3*b,i=null,j=0;j=g||Math.abs(e.y-i.y)>=h)&&(c.push(i.x),d.push(i.y),e=i);c.push(this.XHa[j+1]),d.push(this.YHa[j+1])}return c[c.length-1]==i.x&&d[d.length-1]==i.y||(c.push(i.x),d.push(i.y)),{xs:c,ys:d}},c);function c(b,c){var d,e,f,g,h,i,j,k,l,m;if(this.k=.002,this._xa=[],this.$xa=[],this.Sk=[],this.WHa=[],this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]],this.XHa=b,this.YHa=c,d=this.ZHa=Math.min(b.length,c.length),3<=d)for(e=0;eb.p3b.PRECISION&&(h=!1),!!h},e.prototype.containPoint=function(a){var c,d=b.p3b.sweep(this.center,a);return!!this.angleContain(this.startAngle,this.sweepAngle,d)&&(c=b.p3b.DisPointToPoint(this.center,a),cthis.innerRadius)},e.prototype.arcIntersectWithLine=function(c,d,e){var f,g,h,i,j=this.startAngle,k=this.sweepAngle,l=this.center,m=new b.Vector2d(l.x-d.x,l.y-d.y),n=new b.Vector2d(e.x-d.x,e.y-d.y).normal(),o=n.scalar(m.dot(n)),p=new a.core.Point(o.x+d.x,o.y+d.y),q=b.p3b.DisPointToPoint(p,l);return!(c=Math.min(d.x,e.x)&&g.x<=Math.max(d.x,e.x)&&g.y>=Math.min(d.y,e.y)&&g.y<=Math.max(d.y,e.y)&&(i=b.p3b.sweep(l,g),this.angleContain(j,k,i)))||!!(h.x>=Math.min(d.x,e.x)&&h.x<=Math.max(d.x,e.x)&&h.y>=Math.min(d.y,e.y)&&h.y<=Math.max(d.y,e.y)&&(i=b.p3b.sweep(l,h),this.angleContain(j,k,i))))},e.prototype.angleContain=function(a,b,c){a%=2*Math.PI,c%=2*Math.PI;var d=a+b;return b>=2*Math.PI||(d>2*Math.PI?a<=c||c<=d-2*Math.PI:a<=c&&c<=d)},Object.defineProperty(e.prototype,"type",{get:function(){return"Donut"},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this.center,this.radius,this.innerRadius,this.startAngle,this.sweepAngle)},e.prototype.equals=function(a){return this===a||null!=a&&a instanceof e&&a.center.equals(this.center)&&a.radius==this.radius&&a.innerRadius==this.innerRadius&&a.startAngle==this.startAngle&&a.sweepAngle==this.sweepAngle},e.prototype.queryInterface=function(a){return"IShape"===a||"IDonutShape"===a?this:c.prototype.queryInterface.call(this,a)},e);function e(a,b,d,e,f){var g=c.call(this)||this;return g.KMa=a,g.LMa=b,g.YFa=d,g.$Fa=e,g.m3b=f,g}b.q3b=d}(a.shapes||(a.shapes={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c,d=(c=b.Brb,__extends(e,c),Object.defineProperty(e.prototype,"xs",{get:function(){return this.GMa},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ys",{get:function(){return this.HMa},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){if(null!=this.ys)return Math.min.apply(Math,this.ys)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){if(null!=this.xs)return Math.min.apply(Math,this.xs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){if(null!=this.xs)return Math.max.apply(Math,this.xs)-Math.min.apply(Math,this.xs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){if(null!=this.ys)return Math.max.apply(Math,this.ys)-Math.min.apply(Math,this.ys)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return new a.core.Point(this.left+this.width/2,this.top+this.height/2)},enumerable:!0,configurable:!0}),e.prototype.contains=function(b){return!!a.x7.IsPointInPolygon2(b,this.xs,this.ys)},Object.defineProperty(e.prototype,"type",{get:function(){return"Funnel"},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this.xs.slice(),this.ys.slice())},e.prototype.equals=function(a){if(this===a)return!0;if(null==a)return!1;if(a instanceof e){if(this.xs.length!=a.xs.length)return!1;for(var b=0;b=Math.min(c.x,d.x)&&a.x<=Math.max(c.x,d.x)&&a.y>=Math.min(c.y,d.y)&&a.y<=Math.max(c.y,d.y)&&(e=(c.y-a.y)/(c.x-a.x)-(d.y-a.y)/(d.x-a.x),e<.1&&-.1d?i.x:d,e=i.yf?i.y:f;if(a.xd||a.yf)return!1;for(j=!1,k=0,l=b.length-1;ka.y!=b[l].y>a.y&&a.x<(b[l].x-b[k].x)*(a.y-b[k].y)/(b[l].y-b[k].y)+b[k].x&&(j=!j);return j},c.prototype.intersectsWith=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;for(b=0,c=[this,a];bd?i.x:d,e=i.yf?i.y:f;if(a.xd||a.yf)return!1;for(j=!1,k=0,l=b.length-1;ka.y!=b[l].y>a.y&&a.x<(b[l].x-b[k].x)*(a.y-b[k].y)/(b[l].y-b[k].y)+b[k].x&&(j=!j);return j},d.prototype.intersectsWith=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;for(b=0,c=[this,a];bMath.max(c.x,d.x)||Math.min(a.y,b.y)>Math.max(c.y,d.y)||Math.min(c.x,d.x)>Math.max(a.x,b.x)||Math.min(c.y,d.y)>Math.max(a.y,b.y))return!1;var e=(c.x-a.x)*(b.y-a.y)-(b.x-a.x)*(c.y-a.y),f=(d.x-a.x)*(b.y-a.y)-(b.x-a.x)*(d.y-a.y),g=(a.x-c.x)*(d.y-c.y)-(d.x-c.x)*(a.y-c.y),h=(b.x-c.x)*(d.y-c.y)-(d.x-c.x)*(b.y-c.y);return e*f<=1e-8&&g*h<=1e-8},d.sweep=function(a,c){var d=b.Vector2d.pointSub(a,c),e=b.Vector2d.horizon(),f=Math.acos(d.dot(e)/d.moudule());return 0d||a.yf)return!1;for(i=!1,g=0,j=b.length-1;ga.y!=b[j].y>a.y&&a.x<(b[j].x-b[g].x)*(a.y-b[g].y)/(b[j].y-b[g].y)+b[g].x&&(i=!i);return i},c.IsPointInPolygon2=function(a,b,c){var d,e,f,g,h,i,j;for(d=b[0],e=b[0],f=c[0],g=c[0],h=1;he||a.yg)return!1;for(i=!1,h=0,j=b.length-1;ha.y!=c[j]>a.y&&a.x<(b[j]-b[h])*(a.y-c[h])/(c[j]-c[h])+b[h]&&(i=!i);return i},c.Area=function(a,b){for(var c=0,d=0;d>>10,a+=a<<3,a^=a>>>6,(a+=(a<<2)+(a<<14))^a>>>16},c.isChildOf=function(a,b,d){var e,f;function g(a,b,e){if(b.length=d.length,g=f?b:d,h=f?d:b,i=0,j=0,k=0,l=0,m=0,n=0;nm&&(h.height=m)):null!=k&&(k.type==a.ValueOptionType.Percentage?h.height=k.value*c.height:k.type===a.ValueOptionType.Pixel&&(h.height=k.value)),f._R(b,new a.core.Rect(g.left,e.top,g.width,h.height),d),e.top+=h.height,e.height-=h.height),n=this.Wbb(),null!=n&&(o=e.clone(),p=n.SIa(b,new a.core.Size(c.width,c.height)).size,i=this.$z().footer.width,j=o.width,null!=i&&(i.type==a.ValueOptionType.Enum?i.value==a.HeaderFooterWidthOptionType.Auto&&(j=p.width):i.type==a.ValueOptionType.Pixel?j=i.value:i.type==a.ValueOptionType.Percentage&&(j=i.value*o.width)),jm&&(p.height=m)):null!=q&&(q.type==a.ValueOptionType.Percentage?p.height=q.value*c.height:q.type===a.ValueOptionType.Pixel&&(p.height=q.value)),p.height>e.height&&(p.height=e.height),n._R(b,new a.core.Rect(o.left,e.bottom-p.height,o.width,p.height),d),e.height-=p.height),s=this.E2a(),new a.Erb(this.$z().plotAreaLayout).b3a(s,e),t=0,u=s;t=d?c[d-1]:c[b.groupLevels]:0c.LPa()&&null!=b.max&&(this.Xrb=c.LPa()))},d.prototype.f4b=function(b){var c=this.eb(),d=this.$z();b.forEach(function(b){if(a.core.UOb.isNumber(b)&&null!=c){var e=c.d5a();be[1]&&null==d.max&&c.d5a([e[0],b])}})},d.prototype.d4b=function(){return null!=this.eb()},d.prototype.F4b=function(){return this.eb()instanceof a.f5a},d.prototype.s0b=function(){return this.eb()instanceof a.E8a},d.prototype.G4b=function(){return this.eb()instanceof a.H8a},d.prototype.H4b=function(){return this.eb()instanceof a.F8a},d.prototype.mr=function(a,c){var d,e,f,g,h,i,j;for(d=null,e=0,f=this.h4b();ed.width&&(e.size.width=d.width),e},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j,k,l;c.height<=0||c.width<=0?this.APa(c):(f=this.rdb()._orientation()==a.Orientation.Vertical,g=this.rdb().SH()==a.AxisPosition.Near,h=this.$z().titleStyle.padding,i=this.SIa(b,f?new a.core.Size(c.height,c.width):new a.core.Size(c.width,c.height)).size,f?(j=c.top+(c.height-i.width)/2,k=c.left,k=g?c.width>i.height?c.left+(h.isEmpty()?0:h.left):c.right-i.height-(h.isEmpty()?0:h.right):c.width>i.height?c.right-i.height-(h.isEmpty()?0:h.right):c.left+(h.isEmpty()?0:h.left),e=new a.core.Rect(k,j,i.height,i.width)):(k=c.left+(c.width-i.width)/2,l=c.top,l=g?c.height=this.EJa().min&&h<=this.EJa().max&&(j=this.eb().value(h),k=this.eb().value(i),l=this.EJa().labelFromValue(h,this.eb().format()),m=this.EJa().labelFromValue(i,this.eb().format()),n=b.measureString(l,a.nRb.LabelClassName,this.HPa()),o=b.measureString(m,a.nRb.LabelClassName,this.HPa()),0=n.length-1?NaN:n[o+1],r=this.u4b(),this.o4b().push(r),s=m,null!=s&&!isNaN(s)||null==(s=(q-(v=p))/2)||isNaN(s)||this.eb().Ksa(s),f){if(t=this.eb().value(p),u=e?this.APa().top+k:this.APa().bottom-k,r.N4b(new a.Jbb(t,u,g,i-g,e?0:Math.PI)),null!=s&&!isNaN(s)){if(lt&&(f.height=t),u+=f.height,z[d]=new a.core.Size(l,f.height),o=c.getPosition(),o==a.Position.Left?(n=Math.max(n,c.D5b()),p=Math.min(p,l-c.E5b()),q+=f.height):o==a.Position.Right&&(n=Math.max(n,c.D5b()),p=Math.min(p,l-c.E5b()),s-=f.height)}),e.forEach(function(c,d){var e,f,h,i,j,n,p,q=k/g-u,s=c.X4b(l),v=new a.core.Size(q,s),w=c.h5b(b,v);c.my([w.width/2,q-w.width/2]),w=c.h5b(b,v),isNaN(c.Jsa())&&(0s&&(f.height=s),A[d]=new a.core.Size(k,f.height),p=c.getPosition(),p==a.Position.Bottom?(m=Math.max(m,c.B5b()),o=Math.min(o,k-c.C5b()),t-=f.height):p==a.Position.Top&&(m=Math.max(m,c.B5b()),o=Math.min(o,k-c.C5b()),r+=f.height)}),m=Math.max(m,q)+c.left,o=Math.min(o,s)+c.left,n=Math.max(n,r)+c.top,p=Math.min(p,t)+c.top,f.forEach(function(c,d){var e,f,g,h,i,j=p-n,k=z[d].height,l=new a.core.Size(k,j),m=c.h5b(b,l);c.my([m.height/2,j-m.height/2]),m=c.h5b(b,l),isNaN(c.Jsa())&&(0=w.KPa()&&f<=w.LPa(),x[c]&&(d=w.my(),e=j.G5b(w,f,g,z[c].height),g==a.Position.Left?(m-=e,d[0]-=e):g==a.Position.Right&&(o+=e,d[1]+=e),k+=e,w.my([d[0],d[1]]))}),e.forEach(function(b,c){var d,e,f=b.Wrb(),g=b.getPosition();y[c]=a.core.UOb.isNumber(f)&&v&&v.d4b()&&f>=v.KPa()&&f<=v.LPa(),y[c]&&(d=v.my(),e=j.G5b(v,f,g,A[c].height),g==a.Position.Top?(n-=e,d[1]-=e):g==a.Position.Bottom&&(p+=e,d[0]+=e),l+=e,v.my([d[0],d[1]]))}),i=new a.core.Rect(m,n,k,l),f.forEach(function(c,e){var f,g,j=c.Wrb(),k=c.getPosition(),n=z[e].height,p=i.left;x[e]?(g=w.Qb(j),k==a.Position.Left?(p=g-n,m+=Math.max(0,p-i.left)):k==a.Position.Right?(p=g,o+=Math.max(0,p+n-i.right)):n=1):k==a.Position.Left?p=m-=n:k==a.Position.Right?(p=o,o+=n):n=1,f=new a.core.Rect(p,i.top,l/h,n),d.LineCartesianCoordinateSystemContent=new a.core.Rect(i.left,i.top,i.width,i.height/h),c._R(b,f,d),delete d.LineCartesianCoordinateSystemContent}),e.forEach(function(c,e){var f,h,j=c.Wrb(),l=c.getPosition(),m=A[e].height,o=n;y[e]?(h=v.Qb(j),l==a.Position.Bottom?(o=h,p+=Math.max(0,o+m-i.bottom)):l==a.Position.Top?(o=h-m,n-=Math.max(0,i.top-o)):m=1):l==a.Position.Bottom?(o=p,p+=m):l==a.Position.Top?o=n-=m:m=1,f=new a.core.Rect(i.left,o,k/g,m),d.LineCartesianCoordinateSystemContent=new a.core.Rect(i.left,i.top,i.width/g,i.height),c._R(b,f,d),delete d.LineCartesianCoordinateSystemContent}),i},c.prototype.G5b=function(b,c,d,e){var f,g=b.Qb(c),h=b.my(),i=b._orientation()==a.Orientation.Horizontal?h[0]:h[1],j=b._orientation()==a.Orientation.Horizontal?h[1]:h[0],k=j-i,l=1,m=0;return d==a.Position.Left?(l=1-(g-i)/k,m=e-b.B5b()):d==a.Position.Right?(l=1-(j-g)/k,m=e-b.C5b()):d==a.Position.Top?(l=1-(g-i)/k,m=e-b.D5b()):d==a.Position.Bottom&&(l=1-(j-g)/k,m=e-b.E5b()),f=k*(Math.abs(l)=q.length-1?NaN:q[r+1],u=this.u4b(),this.o4b().push(u),v=p,(null==v||isNaN(v))&&(null==(v=(t-s)/2)||isNaN(v))||this.eb().Ksa(v),isNaN(o)&&(o=s+v),g)for(w=this.eb().value(s+this.OPa()),x=Math.cos(e)*w+this.cx,y=Math.sin(e)*w+this.cy,z=Math.cos(e)*w+this.cx+Math.sin(e)*l,A=Math.sin(e)*w+this.cy-Math.cos(e)*l,u.N4b(new a.Jbb(z,A,j-h,h,e));o=l.length-1?NaN:l[m+1],p=k,(null==p||isNaN(p))&&(null==(p=(o-n)/2)||isNaN(p))||this.eb().Ksa(p),isNaN(j)&&(j=n+p),g)for(q=this.eb().value(n+this.OPa()),r=Math.cos(e)*q+this.cx,s=Math.sin(e)*q+this.cy,this.qJa()&&((C=new a.Q5b(this)).R4b(!0),this.h4b().push(C),t=C.LJa().strokeWidth|C.IPa().strokeWidth,u=Math.sqrt(Math.pow(r-this.cx,2)+Math.pow(s-this.cy,2)),v=isNaN(this.sweep)?2*Math.PI:this.sweep,C.BPa(new a.core.Point(this.cx,this.cy)),C.CPa(u),C.Vo(t),C.MPa(e),C.R5b(v));j=o.KPa()&&e<=o.LPa()&&(d=o.Qb(e+(null!=o?o.OPa():0)),b.M5b(d))}),g.forEach(function(b,c){var d,e=b.Wrb();a.core.UOb.isNumber(e)&&e>=n.KPa()&&e<=n.LPa()&&(d=n.Qb(e),b.RMa(d))}),k=0,h.forEach(function(d,e){var f,g=new a.core.Size(c.width,c.height);d.H4b()||(f=d.h5b(b),d.XDa(d.LKa(!0,g.height,f))),d.SH()!=a.AxisPosition.None&&(d.SIa(b,g),k=d.I4b)}),g.forEach(function(d){var e,g,h;d.SH()!=a.AxisPosition.None&&(e=new a.core.Size(c.width,c.height-k),d.SIa(b,e)),d.H4b()||(g=d.h5b(b),h=2*(k+f),d.XDa(d.LKa(!1,h,g)))}),d.layoutShapes=[],l=this.V5b(h,e,f),h.forEach(function(a,c){a.radius=f,a.cx=e.x,a.cy=e.y,a._R(b,l,d),a.T5b(d)}),g.forEach(function(a){a.radius=f,a.cx=e.x,a.cy=e.y,a._R(b,l,d),d.ignoreWrap=!0,a.kfb()._R(b,l,d),delete d.ignoreWrap,a.T5b(d)}),i.forEach(function(a){a.BPa(e.clone())}),j._R(b,c,d),i.forEach(function(a){a.T5b(d)}),m=l.clone(),d.layoutShapes.forEach(function(b){var c=Math.min(b.leftTop.x,b.rightBottom.x,b.rightBottom.x,b.leftBottom.x),d=Math.max(b.leftTop.x,b.rightBottom.x,b.rightBottom.x,b.leftBottom.x),e=Math.min(b.leftTop.y,b.rightBottom.y,b.rightBottom.y,b.leftBottom.y),f=Math.max(b.leftTop.y,b.rightBottom.y,b.rightBottom.y,b.leftBottom.y);m=a.core.Rect.union(m,new a.core.Rect(c,e,d-c,f-e))}),delete d.layoutShapes,m},c.prototype.X5b=function(a,b,c,d,e,f,g,h,i,j){for(var k=e,l=null,m=e,n=f;m<=n;)if(k=(n-m)/2+m,(l=this.W5b(a,b,c,d,k,g,h,i,j)).width>b.width||l.height>b.height)n=k-.1;else{if(!(l.widthMath.abs(c)?a.x-=.5*g:a.x+=.5*g,f=Math.abs(d+e),d>Math.abs(e)?a.y-=.5*f:a.y+=.5*f,a},c.prototype.layout=function(b,c,d,e,f,g,h,i,j){var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A=new a.core.Rect(c.left,c.top,c.width/g,c.height/h);return f=f.filter(function(a){return a.d4b()}),e=e.filter(function(a){return a.d4b()}),k=0,l=[],m=[],f.forEach(function(c,d){if(l[d]=0,m[d]=0,c.SH()!=a.AxisPosition.None){var e=new a.core.Size(A.width,A.height),f=c.SIa(b,e);m[d]+=f.height,l[d]+=f.height-c.I4b-c._4b(),k+=l[d]}}),n=A.clone(),n.height-=k,o=new a.core.Point(c.left+c.width/2,c.top+c.height/2),p=1e3,q=this.V5b(f,o,p),r=Math.min(n.width/q.width,n.height/q.height)*p,s=this.X5b(b,n,d,o,0,r,e,f,i,j),p=s.radius,null!=s.shape&&(o=new a.core.Point(o.x-s.shape.left,o.y-s.shape.top),t=this.W5b(b,n,d,o,p,e,f,i,j),null!=t&&(u=t.left-n.left,v=t.right-n.right,w=t.top-n.top,x=t.bottom-n.bottom,o=this.Y5b(o,u,v,w,x))),y=A.clone(),z=0,f.forEach(function(a,c){p-=z,a.radius=p,a.cx=o.x,a.cy=o.y,a._R(b,y,d),a.kfb()._R(b,y,d),z+=m[c],y.height-=l[c]}),e.forEach(function(a,c){a.my([a.innerRadius*p,p]),a.radius=p,a.cx=o.x,a.cy=o.y,a._R(b,y,d),a.kfb()._R(b,y,d)}),o},c);function c(){}a.Q1b=b}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.pdb,__extends(d,b),Object.defineProperty(d.prototype,"type",{get:function(){return"Radial"},enumerable:!0,configurable:!0}),d.prototype.Z5b=function(){var a,b,c,d,e,f,g=this.q4a().$z().queryInterface("IPlotAreaCustomOption");if(null!=g)for(a=0,b=this.nPa();a=l.length-1?NaN:l[m+1],p=k,(null==p||isNaN(p))&&(null==(p=(o-n)/2)||isNaN(p))||this.eb().Ksa(p),isNaN(j)&&(j=n+p),g)for(q=this.eb().value(n+this.OPa()),r=Math.cos(e)*q+this.cx,s=Math.sin(e)*q+this.cy,this.qJa()&&((C=new a.b6b(this)).R4b(!0),this.h4b().push(C),t=C.LJa().strokeWidth|C.IPa().strokeWidth,u=Math.sqrt(Math.pow(r-this.cx,2)+Math.pow(s-this.cy,2)),v=isNaN(this.sweep)?2*Math.PI:this.sweep,C.BPa(new a.core.Point(this.cx,this.cy)),C.CPa(u),C.Vo(t),C.MPa(e),C.R5b(v),C.a6b(this.e6b()));jd&&(f.width=d)):null!=g&&(g.type==a.ValueOptionType.Percentage?f.width=g.value*this.q4a().APa().width:g.type==a.ValueOptionType.Pixel&&(f.width=g.value)):null!=j?(e=Number.MAX_VALUE,j.type==a.ValueOptionType.Percentage?e=j.value*this.q4a().APa().height:j.type==a.ValueOptionType.Pixel&&(e=j.value),b.height>e&&(f.height=e)):null!=i&&(i.type==a.ValueOptionType.Percentage?f.height=i.value*this.q4a().APa().height:i.type===a.ValueOptionType.Pixel&&(f.height=i.value)),f},d.prototype.calcLogicLegendsSize=function(b,c){var d,e,f,g,h,i;for(d=[],e=[],f=0,g=b.length;fd.width&&(d.width=c.width),e+=c.height}),d.heightd.cw()?i.cw=g.max:i.cw=d.cw(),!a.core.UOb.isNullNumber(g.min)&&g.minthis.width&&(this.width=a.width,this.index=this.list.length),this.list.push(a)},t.prototype.onRowChange=function(){var a,b;for(this.width=this.height=0,a=0;athis.width&&(this.width=b.width,this.index=a),this.height+=b._v()},t.prototype.copy=function(a){var b,c,d,e;for(b=[],c=0,d=a;cb+1)break;!e&&this.list.length>b&&this.widththis.height&&(this.height=a.height,this.index=this.list.length),this.list.push(a)},v.prototype.onColumChange=function(){var a,b;for(this.width=this.height=0,a=0;athis.height&&(this.height=b.height,this.index=a),this.width+=b.Vo()},v.prototype.copy=function(a){var b,c,d,e;for(b=[],c=0,d=a;cb+1)break;!e&&this.list.length>b&&this.heightf.height?h.height:f.height;break;case a.Position.Top:case a.Position.Bottom:e.width+=f.width>h.width?f.width:h.width,e.height+=h.height+f.height+this.BLa().j7b()}return e.width+=d.left+d.right,e.height+=d.top+d.bottom,e.width>c.width&&(e.width=c.width),e.height>c.height&&(e.height=c.height),b.restoreTransform(),this.itemSize=e.clone(),this.symbolSize=h.clone(),e},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j,k,l,m;switch(b.beginTransform(),this.GHa(b),e=this.zPa(),f=new a.core.Rect(c.left+e.left,c.top+e.top,c.width-e.left-e.right,c.height-e.top-e.bottom),new a.core.Size(0,0),g=new a.core.Size(0,0),h=b.measureString("A"),i=new a.core.Size(0,0),this.Klb()==a.TextOverflow.Clip?(g=this._labelView().SIa(b,f.size).size,i=this.Kfb(b,0==g.height?h:g)):(i=this.Kfb(b,h),j=f.clone(),this.BLa().Afb()!=a.Position.Left&&this.BLa().Afb()!=a.Position.Right||(j.width-=i.width+this.BLa().j7b()),g=this._labelView().SIa(b,j.size).size),0==g.width&&0==g.height&&(g.height=h.height),k=d.legendSymbolSize,this.BLa().Afb()){case a.Position.Left:l=Math.max(g.height,i.height),this.f7b()._orientation()==a.Orientation.Horizontal?l=f.height:null!=k&&(i.width=k.width),this.Jfb=new a.core.Rect(f.right-i.width,f.top+(l-i.height)/2,i.width,i.height),this._labelView()._R(b,new a.core.Rect(f.left,f.top+(l-g.height)/2,g.width,g.height),d),this.APa(new a.core.Rect(c.left,c.top,c.width,l+e.top+e.bottom));break;case a.Position.Right:l=Math.max(g.height,i.height),this.f7b()._orientation()==a.Orientation.Horizontal?l=f.height:null!=k&&(i.width=k.width),this.Jfb=new a.core.Rect(f.left,f.top+(l-i.height)/2,i.width,i.height),this._labelView()._R(b,new a.core.Rect(f.left+i.width+this.BLa().j7b(),f.top+(l-g.height)/2,g.width,g.height),d),this.APa(new a.core.Rect(c.left,c.top,c.width,l+e.top+e.bottom));break;case a.Position.Top:m=Math.max(g.width,i.width),this.f7b()._orientation()==a.Orientation.Horizontal?null!=k&&(i.height=k.height):m=f.width,this.Jfb=new a.core.Rect(f.left+(m-i.width)/2,f.top+g.height+this.BLa().j7b(),i.width,i.height),this._labelView()._R(b,new a.core.Rect(f.left+(m-g.width)/2,f.top,g.width,g.height),d),this.APa(new a.core.Rect(c.left,c.top,m+e.left+e.right,i.height+g.height+this.BLa().j7b()+e.top+e.bottom));break;case a.Position.Bottom:m=Math.max(g.width,i.width),this.f7b()._orientation()==a.Orientation.Horizontal?null!=k&&(i.height=k.height):m=f.width,this.Jfb=new a.core.Rect(f.left+(m-i.width)/2,f.top,i.width,i.height),this._labelView()._R(b,new a.core.Rect(f.left+(m-g.width)/2,f.top+i.height+this.BLa().j7b(),g.width,g.height),d),this.APa(new a.core.Rect(c.left,c.top,m+e.left+e.right,i.height+g.height+this.BLa().j7b()+e.top+e.bottom))}b.restoreTransform()},d.prototype.Nbb=function(a,b){a.beginTransform(),this.GHa(a),this._labelView().yl(a,b);var c=this.aT().Za();null!=c&&c.render(a,this.Ifb(),b),a.restoreTransform()},d.prototype.GHa=function(b){var c,d,e,f;this.filtered&&(c=!0,d=this.BLa().q4a().s4a().$z().legend.filteredOutStyle,d.isEmpty()||(c=!1,a.NQb.n0b(b,d)),(d=this.BLa().q4a().$z().legend.filteredOutStyle).isEmpty()||(c=!1,a.NQb.n0b(b,d)),(d=this.BLa().$z().filteredOutStyle).isEmpty()||(c=!1,a.NQb.n0b(b,d)),c&&(e=a.core.ica.fromCss(b.textFill),e.alpha=.5*e.alpha,a.NQb.n0b(b,new a.options.wEa({color:e.toCss()})))),this.B5a()&&(f=this.BLa().q4a().s4a().$z().legend.hoverStyle,f.isEmpty()||a.NQb.n0b(b,f),(f=this.BLa().q4a().$z().legend.hoverStyle).isEmpty()||a.NQb.n0b(b,f),(f=this.BLa().$z().hoverStyle).isEmpty()||a.NQb.n0b(b,f))},d.prototype.Kfb=function(b,c){var d=16;return null!=this.aT().Oz()&&this.aT().Za().F4a()?this.aT().Za().Efb(b,this.aT().Oz()):0this.options.length?null:(this.index++,this.getSpace(a))},c.prototype.n7b=function(){var a=this.index;return 0===a?null:(this.index--,this.getSpace(a-1))},c.prototype.y6b=function(){this.T2(),this.hZ();for(var a,b=0;null!=(a=this.l7b());)b+=a;return this.RUa(),b},c.prototype.getSpace=function(a){return 0==a?this.getPre(a):a==this.options.length?this.getBack(a-1):Math.max(this.getBack(a-1),this.getPre(a))},c.prototype.getPre=function(a){return this.isVertical?this.options[a].top:this.options[a].left},c.prototype.getBack=function(a){return this.isVertical?this.options[a].bottom:this.options[a].right},c);function c(a,b){this.index=0,this.save=0,this.isVertical=b,this.options=a}a.z6b=b}(dv=dv||{}),dv=dv||{},function(a){!function(a){"use strict";var b=(c.prototype.getLegendViewBuilder=function(){return null},c.prototype.buildBackLegendManager=function(b){return(new a.FixedLegendViewManagerBuilder).build(this.nOa,b)},c.prototype.buildFrontLegendManager=function(b){return(new a.FloatLegendViewManagerBuilder).build(this.nOa,b)},c.prototype.queryInterface=function(a){return"ILegendViewManagerDefinition"===a?this:null},c.prototype.equals=function(a){return a instanceof c&&this.nOa===a.nOa},c);function c(a){this.nOa=a}a.o7b=b}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c,d=(e.prototype.dispose=function(){null!=this.ccb&&this.ccb.dispose(),null!=this.dcb&&this.dcb.dispose(),null!=this.ecb&&this.ecb.dispose(),null!=this.fcb&&this.fcb.dispose()},e.prototype.legendViews=function(){var a=[];return null!=this.ccb&&a.push.apply(a,this.ccb._bb()),null!=this.dcb&&a.push.apply(a,this.dcb._bb()),null!=this.ecb&&a.push.apply(a,this.ecb._bb()),null!=this.fcb&&a.push.apply(a,this.fcb._bb()),a},e.prototype.layout=function(a,b,c){var d,e,f,g=b.clone(),h=this.ccb;return null!=h&&(h._R(a,g,c),g.left+=h.APa().width,g.width-=h.APa().width),d=this.dcb,null!=d&&(d._R(a,g,c),g.width-=d.APa().width),e=this.ecb,null!=e&&(e._R(a,g,c),g.top+=e.APa().height,g.height-=e.APa().height),f=this.fcb,null!=f&&(f._R(a,g,c),g.height-=f.APa().height),g},e.prototype.render=function(a,b,c){null!=this.ccb&&this.ccb.yl(a,c),null!=this.dcb&&this.dcb.yl(a,c),null!=this.ecb&&this.ecb.yl(a,c),null!=this.fcb&&this.fcb.yl(a,c)},e.prototype.hitTest=function(a,b){var c=null;return null!=this.fcb&&null!=(c=this.fcb.mr(a,b))||null!=this.ecb&&null!=(c=this.ecb.mr(a,b))||null!=this.dcb&&null!=(c=this.dcb.mr(a,b))||null!=this.ccb&&null!=(c=this.ccb.mr(a,b))?c:null},e.prototype.queryInterface=function(a){return"ILegendViewManagerModel"==a?this:null},e.prototype.q4a=function(){return this.nOa},e);function e(a,b,c,d,e){this.nOa=a,this.ccb=b,this.dcb=c,this.ecb=d,this.fcb=e}b.p7b=d,f.prototype.build=function(b,c){var d,e,f,g,h,i,j,k,l,m,n;for(d=[],e=[],f=[],g=[],h=0,i=c;h-this.EPSILON&&athis.EPSILON||a<-this.EPSILON},c.prototype.cubicAt=function(a,b,c,d,e){var f=1-e;return f*f*(f*a+3*e*b)+e*e*(e*d+3*f*c)},c.prototype.cubicDerivativeAt=function(a,b,c,d,e){var f=1-e;return 3*(((b-a)*f+2*(c-b)*e)*f+(d-c)*e*e)},c.prototype.cubicRootAt=function(a,b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r,s=d+3*(b-c)-a,t=3*(c-2*b+a),u=3*(b-a),v=a-e,w=t*t-3*s*u,x=t*u-9*s*v,y=u*u-3*t*v,z=0;return this.isAroundZero(w)&&this.isAroundZero(x)?this.isAroundZero(t)?f[0]=0:0<=(q=-u/t)&&q<=1&&(f[z++]=q):(g=x*x-4*w*y,this.isAroundZero(g)?(h=x/w,i=-h/2,0<=(q=-t/s+h)&&q<=1&&(f[z++]=q),0<=i&&i<=1&&(f[z++]=i)):0=d&&m+this.PI2<=e)))},c.prototype.quadratic=function(a,b,c,d,e,f,g,h,i){if(0===g)return!1;var j=g;return!(b+j=this.roots[0]+a&&g<=this.roots[1]+a?k:0;for((e=f?(d=this.normalizeRadian(e),this.normalizeRadian(d)):(d=this.normalizeRadian(d),this.normalizeRadian(e)))=d&&o+this.PI2<=e)&&(o>Math.PI/2&&o<1.5*Math.PI&&(k=-k),l+=k));return l},c.prototype.vMag=function(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])},c.prototype.vRatio=function(a,b){return(a[0]*b[0]+a[1]*b[1])/(this.vMag(a)*this.vMag(b))},c.prototype.vAngle=function(a,b){return(a[0]*b[1]=2*Math.PI||Math.abs(f-2*Math.PI)<=.001)&&(l=!0,f=2*Math.PI-.001),g=" 0 0,1 ",Math.abs(f)>Math.PI&&(g=" 0 1,1 "),h=e+f,i="",j=new a.core.Point(b,c),j.x+=d*Math.cos(e),j.y+=d*Math.sin(e),k=new a.core.Point(b,c),k.x+=d*Math.cos(h),k.y+=d*Math.sin(h),i+="M "+j.x.toFixed(3)+","+j.y.toFixed(3),i+=" A "+d.toFixed(3)+","+d.toFixed(3)+g,i+=k.x.toFixed(3)+","+k.y.toFixed(3),l&&(i+=" z"),i},c);function c(){this.PI2=2*Math.PI,this.EPSILON=1e-4,this.Curve=new a.Curve,this.roots=[-1,-1,-1],this.extrema=[-1,-1]}a.m8b=b}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.PositionRectangleAnnotation,__extends(d,b),Object.defineProperty(d.prototype,"fixedWidth",{get:function(){return this.q8b},set:function(a){!isNaN(a)&&0g?f.height:g,this.height=h+this.strokeWidth(),this.width=this.fixedWidth):(h=(f=a.measureMultipleStrings(e,this.maxWidth,this.Klb())).height>g?f.height:g,this.height=h+this.strokeWidth(),this.width=Math.min(f.width+this.strokeWidth(),this.maxWidth)),this.textSize=f,b.prototype.layout.call(this,a,c,d))},d.prototype.afterRender=function(b,c){var d,e;null!=this.$7b().connectionPoint&&(d=c.textAnnotationSymbolRect,this.iRa.HUb()&&null!=d&&(e=new a.Arb,e.zrb(new a.options.uEa({strokeWidth:1,fill:new a.options.ZYb({color:a.nRb.StyleFill}),stroke:new a.options.ZYb({color:a.nRb.StyleStroke})})),e.f3b(this.symbol.style),b.startTransform(this.matrix.An()),this.iRa.yl(b,d,e),b.endTransform()),d&&delete c.textAnnotationSymbolRect)},d.prototype.render=function(c,d){var e,f,g,h,i,j,k,l;this.dGa&&this.$7b().connectionPoint&&(b.prototype.render.call(this,c,d),c.startTransform(this.matrix.An()),e=this.top+this.strokeWidth()/2+this.paddingTop(),f=this.left+this.strokeWidth()/2+this.paddingLeft(),g=this.height-this.strokeWidth(),h=e+(g-this.textSize.height)/2,i=new a.core.Rect(f,h,this.width-this.strokeWidth(),g),this.Klb()===a.TextOverflow.Clip?(j="TextOverlayClipId"+(1e5*Math.random()).toFixed(),c.addClipRect(i,j),c.startGroup(null,j),c.drawMultipleStrings(this.dGa,i,a.HAlign.Left,this.Klb()),c.endGroup()):c.drawMultipleStrings(this.dGa,i,a.HAlign.Center,this.Klb()),this.iRa.HUb()&&(k=e+(g-this.iRa.size.height)/2,l=new a.core.Rect(this.left+this.strokeWidth()/2+this.padding.left,k,this.iRa.size.width,this.iRa.size.height),d.textAnnotationSymbolRect=l),c.endTransform())},d);function d(c,d,e,f,g){var h=b.call(this,c,d,e,f)||this;return h.SPACE=5,h.Pqb=Number.MAX_VALUE,h.Xqb=g,h.iRa=new a.TextAnnotationSymbol,h}a.RectangleBoxTextSymbolAnnotation=c}(dv=dv||{}),function(a){"use strict";var b=(c.prototype.HUb=function(){return 0<=this.symbolList.indexOf(this.iRa.shape)},Object.defineProperty(c.prototype,"size",{get:function(){return this.symbolSize},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"symbol",{get:function(){return this.iRa},set:function(b){this.iRa=a.options.q$b.Uo(b);var c=this.iRa.width,d=this.iRa.height;this.symbolSize.width=this.validateNumber(c)?c:15,this.symbolSize.height=this.validateNumber(d)?d:15},enumerable:!0,configurable:!0}),c.prototype.validateNumber=function(a){return"number"==typeof a&&0<=a},c.prototype.yl=function(b,c,d){if(this.HUb())if("Inverted Triangle"===this.symbol.shape){var e=new a.models.aSb;e.QVb(Math.PI,c.center),b.startTransform(e.An()),this.renderSymbol(b,c,d),b.endTransform()}else"Triangle"===this.symbol.shape&&this.renderSymbol(b,c,d)},c.prototype.renderSymbol=function(b,c,d){var e=[c.center.x,c.left,c.right],f=[c.top,c.bottom,c.bottom];b.beginTransform(),a.NQb.Jqb(b,d),b.drawPolygon(e,f),b.restoreTransform()},c);function c(b){void 0===b&&(b=null),this.symbolList=["Triangle","Inverted Triangle"],this.symbolSize=new a.core.Size(15,15),this.symbol=b}a.TextAnnotationSymbol=b}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.Ksb,__extends(d,b),d.prototype.r8b=function(){return null==this.y7b?a.nRb.StyleColor:this.y7b},d.prototype.shouldApplyColorFromPalette=function(){return new a.t8b(this).s8b()},d.prototype.f3a=function(){return b.prototype.f3a.call(this)},d.prototype.bVb=function(){this.shouldApplyColorFromPalette()&&(this.y7b=this.Om())},d.prototype.Nc=function(){return this.$z().type},d.prototype.$z=function(){return b.prototype.$z.call(this)},d.prototype.yy=function(){var b=new a.options.uEa;return b.fill=a.options.IOb.mXb(this.r8b()),b.strokeWidth=1,b.stroke=a.options.IOb.mXb(this.r8b()),b},d.prototype.H7b=function(){if(null==this.N7b){var b=new a.Arb;b.zrb(this.yy()),b.f3b(this.$z().style),this.N7b=b}return this.N7b},d.prototype.getLegendGenerator=function(){return null==this.$z().label?null:(new a.u8b).GPb(this)},d.prototype.wZb=function(a){var b=this.getLegendGenerator();return null!=b?b.w5a(a):null},d.prototype.runConditionalFormatRules=function(a){a.v8b()},d.prototype._R=function(a,b,c){this.TQb(a,b,c)},d);function d(a,c){return b.call(this,a,c)||this}a.vZb=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.Jsb,__extends(d,b),Object.defineProperty(d.prototype,"bindStateType",{get:function(){return this.w8b},enumerable:!0,configurable:!0}),d.prototype.e8b=function(a){return null!=a&&(this.x8b=a),this.x8b},d.prototype.$z=function(){return this.y8b().$z()},d.prototype.y8b=function(){return b.prototype.MPb.call(this)},d.prototype.G7b=function(){null!=this.x8b&&this.x8b.G7b()},d.prototype.z8b=function(b,c){var d,e=!1;return null!=this.e8b()&&null!=b&&(d=this.e8b().Fu(new a.ProxyAttachmentAgentManager(b,this)),null!=d&&(d.Ls(this),e=!0,this.w8b=c)),e},d.prototype.v8b=function(){(new a.models.A8b).NGa(this),this.v8a()},d.prototype.isLayoutContextReady=function(){return null!=this.e8b()},d.prototype.customizeAnnotation=function(a){},d.prototype.customizeAnnotationStyle=function(b){var c=new a.Arb;c.g3b(this.y8b().H7b()),c.g3b(this.tEa),this.B5a()&&(c.fill="red",c.stroke="red"),b.M7b(c)},d.prototype.v8a=function(){this.customizeAnnotation(this.x8b),this.customizeAnnotationStyle(this.x8b)},d.prototype.beforeAnnotationLayout=function(){},d.prototype.TQb=function(a,b,c){this.isLayoutContextReady()&&(this.beforeAnnotationLayout(),this.e8b()._R(a,c))},d.prototype.isRenderContextReady=function(){return null!=this.e8b()},d.prototype.Nbb=function(a,b){this.isRenderContextReady()&&this.e8b().yl(a,b); },d.prototype.queryInterface=function(a){if("IBoxBounded"===a&&null!=this.e8b()){var c=this.e8b().queryInterface(a);if(null!=c)return c}return b.prototype.queryInterface.call(this,a)},d.prototype.mr=function(b,c){var d,e=this.e8b();return null!=e&&e.B7b(b)?(d=new a.HitTestResult(b,this,this,a.ElementType.OverlayItem),null==c||null!=c&&c.predicate(d)?d:null):null},d);function d(a){return b.call(this,a)||this}a.d8b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.Ksb,__extends(d,b),d.prototype.nqb=function(){return this.Lsb},d.prototype.Sfb=function(){return this.Tfb},d.prototype.Ufb=function(){return this.Vfb},d.prototype.Wfb=function(){return this.Xfb},d.prototype.Yfb=function(){return this.Zfb},d.prototype.YOb=function(){return this.bRa()},d.prototype.B8b=function(){},d.prototype.queryInterface=function(a){return"IAxialView"===a?this:null},d.prototype.mr=function(a,b){var c,d,e;for(c=this.nqb(),d=this.nqb().length-1;0<=d;--d)if(e=c[d].mr(a,b),null!=e)return e;return null},d);function d(a,c){var d=b.call(this,a,c)||this;return d.Lsb=[],d}a.mqb=c}(dv=dv||{}),function(a){!function(a){"use strict";var b=(c.prototype.PY=function(a){return this.seriesFilter(a.Ata())},c.C8b=function(a){return null!=a.tVb()?a.tVb()+"":""},c.prototype.seriesFilter=function(a){return null!=a&&(null==this.valuefield||a.HOa().name==this.valuefield)&&(null==this.groupKey||null!=a.tVb()&&this.groupKey==c.C8b(a))},c);function c(a,b){this.valuefield=a,this.groupKey=b}a.D8b=b}(a.models||(a.models={}))}(dv=dv||{}),function(a){!function(b){"use strict";var c,d=(e.prototype.Ata=function(){return this.isGroup&&0this.Vfb?this.Vfb=f:fthis.Tfb?this.Tfb=i:if[1].dot(b)?(e.rightTop=new a.core.Point(f[0].x,f[0].y),e.leftTop=new a.core.Point(f[1].x,f[1].y)):(e.rightTop=new a.core.Point(f[1].x,f[1].y),e.leftTop=new a.core.Point(f[0].x,f[0].y)),f[2].dot(b)>f[3].dot(b)?(e.rightBottom=new a.core.Point(f[2].x,f[2].y),e.leftBottom=new a.core.Point(f[3].x,f[3].y)):(e.rightBottom=new a.core.Point(f[3].x,f[3].y),e.leftBottom=new a.core.Point(f[2].x,f[2].y)),e},c.getRectangleAttachmentPoints=function(b){return[new a.core.Point((b.leftBottom.x+b.rightBottom.x)/2,(b.leftBottom.y+b.rightBottom.y)/2),new a.core.Point((b.leftBottom.x+b.leftTop.x)/2,(b.leftBottom.y+b.leftTop.y)/2),new a.core.Point((b.leftTop.x+b.rightTop.x)/2,(b.leftTop.y+b.rightTop.y)/2),new a.core.Point((b.rightTop.x+b.rightBottom.x)/2,(b.rightTop.y+ +b.rightBottom.y)/2)]},c);function c(){}a.AnnotationLib=b}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.G8b,__extends(d,b),d.prototype.N8b=function(){return"Point"},d.prototype.createOverlayItemView=function(b){return new a.CartesianPointCoordinateAnnotationOverlayItemViewBuilder(this).GPb(b)},d.prototype.bindData=function(){var b,c=a.AnnotationLib.I8b(this.$z().pointPath);null!=c&&(b=this.createOverlayItemView(c),this.oi().push(b))},d);function d(a,c){return b.call(this,a,c)||this}a.yZb=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.F8b,__extends(d,b),d.prototype.createOverlayItemView=function(b){return new a.CartesianViewAttachedAnnotationOverlayItemViewBuilder(this).GPb(b)},d.prototype.O8b=function(){var b,c,d;for(b=0,c=this.ggb();ba.radius)return i;for(c=a.ZDa(),d=[],e=[],f=0;fMath.pow(Math.abs(this.ys[1]-f),2)+Math.pow(Math.abs(this.xs[1]-e),2)?(h.x=this.xs[1],h.y=this.ys[1],i.x=this.xs[0],i.y=this.ys[0]):(h.x=this.xs[0],h.y=this.ys[0],i.x=this.xs[1],i.y=this.ys[1]),j=Math.abs((i.x-e)/g),k=Math.abs((i.y-f)/g),l="",this.quda(e,f,i)){case 1:case 3:l=c.position==a.OverlayLabelPosition.TopLeft||c.position==a.OverlayLabelPosition.TopCenter||c.position==a.OverlayLabelPosition.TopRight?"TopLeft":"BottomRight";break;case 2:case 4:l=c.position==a.OverlayLabelPosition.TopLeft||c.position==a.OverlayLabelPosition.TopCenter||c.position==a.OverlayLabelPosition.TopRight?"TopRight":"BottomLeft"}switch((g*j<.5*p.width||g*kb[b.length-1]&&null!=(d=this.getApporiateBoundary(a,g))&&(b.push(d.x),c.push(d.y))},d.prototype.forecasting=function(a,b,c){var d=b[0]-this.forecast.backwardPeriod,e=b[b.length-1]+this.forecast.forwardPeriod,f=this.getApporiateBoundary(a,d);null!=f&&(b.unshift(f.x),c.unshift(f.y)),null!=(f=this.getApporiateBoundary(a,e))&&(b.push(f.x),c.push(f.y))},d.prototype.getApporiateBoundary=function(b,c){b instanceof a.Logarithmic?c=Math.max(c,.01):b instanceof a.Power&&(c=Math.max(c,Number.MIN_VALUE));var d=b.y(c);return null==d?null:new a.core.Point(c,d)},d.prototype.rSquareExpression=function(){var b=a.Expression.f0b("R").raise(a.Expression.d0b(2,0));return b.append(a.Expression.a0b()).append(a.Expression.d0b(this.rSquare,4,!1)),b},d.prototype.TQb=function(b,c,d){if(this.bac&&this.bac.FTb()){var e=this._9b().bRa(),f=new a.CartesianFunctionalPointInterpolator(this.bac.w0b(),e,this.trendlineOption().density).interpolate(this.GMa,this.HMa);this.GMa=f.xs,this.HMa=f.ys,this.pCa=a.F0b.E0b(e,f.xs,f.ys)}},d.prototype.render=function(a,b){this.isRenderContextReady()&&(this.pCa.width=a.strokeWidth,a.drawLines(this.pCa.WPa(),this.pCa.XPa()))},d.prototype.Z8b=function(){return new a.AttachmentAgentManager(new a.K$b(this._9b().YOb()))},d.prototype.afterRender=function(b,c){var d,e;this.isRenderContextReady()&&this.bac&&this.bac.FTb()&&(d=[],this.trendlineOption().text.equation&&d.push(this.bac.expression()),this.trendlineOption().text.rSquaredValue&&d.push(this.rSquareExpression()),e=new a.cac(d),e.uIa(this.expressionStyle()),e.ad(b),this.positionExpression(e,this.pCa.fua()),e.PQa(b))},d.prototype.positionExpression=function(b,c){var d,e,f,g,h,i=b.F9b(),j=this.trendlineOption().text,k=this._9b().YOb(),l=k.J8b(),m=i.center;e=j.placement==a.LinePlacement.Start?(d=c[0],this.HMa[0]):j.placement==a.LinePlacement.Center?(d=c[Math.floor(c.length/2)],this.HMa[Math.floor(c.length/2)]):(d=c[c.length-1],this.HMa[c.length-1]),a.AnnotationLib.F$b(k)?(f=l,b.Dn(d.x-m.x,d.y-m.y),m=this.getJoinPointInRadial(b.F9b(),new a.core.Point(f.cx,f.cy),j.position)):k.yIa()?(j.placement!=a.LinePlacement.Center&&(j.placement==a.LinePlacement.Start==!k.J8b().WDa()?m.y=i.bottom:m.y=i.top),g=0,j.position==a.AnnotationPosition.Center||(g=j.position==a.AnnotationPosition.Outside==!k.K8b().WDa()?-i.width/2:i.width/2),e<(null==l.Wrb()?0:l.Wrb())&&(g=-g),m.x+=g):(j.placement!=a.LinePlacement.Center&&(j.placement==a.LinePlacement.Start==!k.J8b().WDa()?m.x=i.left:m.x=i.right),h=0,j.position==a.AnnotationPosition.Center||(h=j.position==a.AnnotationPosition.Outside==!k.K8b().WDa()?i.height/2:-i.height/2),e<(null==l.Wrb()?0:l.Wrb())&&(h=-h),m.y+=h),b.Dn(d.x-m.x,d.y-m.y)},d.prototype.getJoinPointInRadial=function(b,c,d){var e,f,g=b.center;return d===a.AnnotationPosition.Center?g:(e=[new a.core.Point(g.x-1,g.y-1),new a.core.Point(g.x-1,g.y),new a.core.Point(g.x-1,g.y+1),new a.core.Point(g.x,g.y+1),new a.core.Point(g.x+1,g.y+1),new a.core.Point(g.x+1,g.y),new a.core.Point(g.x+1,g.y-1),new a.core.Point(g.x,g.y-1)],f=[new a.core.Point(b.left,b.top),new a.core.Point(b.left,g.y),new a.core.Point(b.left,b.bottom),new a.core.Point(g.x,b.bottom),new a.core.Point(b.right,b.bottom),new a.core.Point(b.right,g.y),new a.core.Point(b.right,b.top),new a.core.Point(g.x,b.top)],d===a.AnnotationPosition.Inside?f[(this.nearestPointIndex(e,c)+4)%8]:f[this.nearestPointIndex(e,c)])},d.prototype.nearestPointIndex=function(a,b){var c,d,e,f,g;for(c=Number.MAX_VALUE,d=0,e=0;e")},d.prototype.yn=function(){var b=this.Mac().Kac(),c=a.x7.HashCode(this.prefix()+" "+b.path.join("/"));return a.x7.HashCode(c)},d);function d(a){return b.call(this,a)||this}a.Lac=c}(dv=dv||{}),function(a){"use strict";var b=(c.prototype.bRa=function(){return this.LAa},c.prototype._R=function(a){var b,c,d;for(b=0,c=this.bRa().ggb();ba&&(a=g.Ufb())),null==g.Sfb()||isNaN(g.Sfb())||(null==b&&(b=g.Sfb()),g.Sfb()>b&&(b=g.Sfb())),null==g.Yfb()||isNaN(g.Yfb())||(null==c&&(c=g.Yfb()),g.Yfb()o.RWb()&&o.RWb(this.OQb()),this.QQb()>o.TWb()&&o.TWb(this.QQb()),null!=p.maxx&&p.maxx>d&&(d=p.maxx),null!=p.maxy&&p.maxy>g&&(g=p.maxy),null!=p.minx&&p.minxd||null==d)&&(d=l[1])),2<=(m=n.d5a()).length&&(null!=m[0]&&(m[0]g||null==g)&&(g=m[1])),this.$z().config.axisMode==a.AxisMode.Polygonal||this.$z().config.axisMode==a.AxisMode.Radial?(h=this.innerRadius,i=c.widthn.RWb()&&n.RWb(this.OQb()),this.QQb()>n.TWb()&&n.TWb(this.QQb()),o.s0b()&&this.ySite instanceof a.models.eCa&&(f=this.ySite.$6a),null!=p.maxx&&p.maxx>d&&(d=p.maxx),null!=p.maxy&&p.maxy>g&&(g=p.maxy),null!=p.minx&&p.minxd||null==d)&&(d=l[1])),2<=(m=o.d5a()).length&&(null!=m[0]&&(m[0]g||null==g)&&(g=m[1])),this.$z().config.axisMode==a.AxisMode.Polygonal||this.$z().config.axisMode==a.AxisMode.Radial?(h=this.innerRadius,i=c.widthb.APa().bottom)&&a.APa().leftb.APa().top||!(a.APa().topb.APa().left?1:-1:a.APa().left>b.APa().left?1:a.APa().leftb.APa().bottom?1:-1:a.APa().bottomb.right&&(a.top=(a.bottom-this.xPa())*(b.right-this.wPa())/(a.right-this.wPa())+this.xPa()+a.height,a.left=b.right-a.width),a.top-a.heightb.bottom&&(a.left=(a.left-this.wPa())*(b.bottom-this.xPa())/(a.bottom-this.xPa())+this.wPa(),a.top=b.bottom)},f.prototype.y9b=function(){var b=this.yIa()?this.WQb():this.XQb();return null!=b&&null!=b.scale&&b.scale.type==a.ValueScaleType.Percentage},f.prototype.Yac=function(){var b=this.XOb().j6a();return!(null==b||b.length<=0)&&b[0].cb()==a.Group.Stack},f);function f(a,c){var d=b.call(this,a,c)||this;return d.Ygb=[],d.pEa=[],d.$La={left:0,top:0,right:0,bottom:0},d}a.u4a=e,c=a.models.w6a,__extends(g,c),g.prototype.t6a=function(a,b,c,d){return null},d=g;function g(a,b,d){return c.call(this,a,b,d)||this}}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.Geb,__extends(d,b),d.prototype.defaultStrokeColor=function(){var a=this.Ceb().aT().tE();return null==a&&(a=this.Ceb().aT().Ata().tE()),a},d.prototype.isPositive=function(){return this.Ceb().M$b()},d.prototype.getPosition=function(b,c){var d,e=this.Ceb(),f=e.bRa();if(b==a.TextPosition.Center)return a.Position.None;if(d=this.isPositive(),c===a.Placement.Auto)return a.Position.None,f.yIa()?d?e.WDa()?a.Position.Left:a.Position.Right:e.WDa()?a.Position.Right:a.Position.Left:d?e.WDa()?a.Position.Bottom:a.Position.Top:e.WDa()?a.Position.Top:a.Position.Bottom;switch(c){case a.Placement.Top:return a.Position.Top;case a.Placement.Left:return a.Position.Left;case a.Placement.Right:return a.Position.Right;case a.Placement.Bottom:return a.Position.Bottom}return a.Position.None},d);function d(a,c){return b.call(this,a,c)||this}a.Zac=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.jgb,__extends(d,b),Object.defineProperty(d.prototype,"parent",{get:function(){return this.aT().Ata().dhb()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"valueDefinition",{get:function(){return this.aT().Ata().HOa().name},enumerable:!0,configurable:!0}),d.prototype.creatStyleModel=function(){var b=new a.models.sXb(this.bRa().$z().config.style),c=this.aT().Ata();return b.pXb(c.pSa()),b},Object.defineProperty(d.prototype,"detail",{get:function(){var a=this.aT().Ata().W4a();return null==a?null:a.pwa()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dimension",{get:function(){return this.aT().Q5a().Qb()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){return this.aT().Qb()},enumerable:!0,configurable:!0}),d.prototype.queryInterface=function(c){return"IDataLabel"!=c||null==this||null==this.fgb()||this.fgb().dva()?b.prototype.queryInterface.call(this,c):new a.models.oWb(this.fgb())},d.prototype.X_b=function(a){return null!=a&&(this.$ac=a),null==this.$ac?this.YOb()._La(this.aT().Q5a()):this.$ac},d.prototype.A$b=function(){return this.V$b},d.prototype.P8b=function(){return new a.AttachmentAgentManager(new a.T$b(this))},d.prototype.WDa=function(){var a=this.bRa().WDa();return null!=a&&a},d.prototype.v8a=function(){},d.prototype.YOb=function(){return this.bRa()},d.prototype.nSa=function(){return new a.shapes.qwb(this.APa().center.x,this.APa().center.y,this.APa().width,this.APa().height,0)},d.prototype.Dgb=function(){var a=this.aT(),b=a.tE();return null==b&&(b=a.Ata().tE()),null==b&&(b=this.bRa().aT().OOa().getColor(0)),b},d.prototype.yn=function(){if(null==this.igb){var a=this.v7b();this.igb=a.yn()}return this.igb},d.prototype.backgroundColor=function(a){var b=this.ZQb(),c=null;return null!=b?null!=b.backgroundColor&&(c=b.backgroundColor):(null!=(b=this.bRa().$z().config.style)&&null!=b.backgroundColor&&(c=b.backgroundColor),null!=(b=this.aT().Ata().dhb().Wqa())&&null!=b.backgroundColor&&(c=b.backgroundColor)),a.hasSelectionInPlotArea&&(this.KQa()?(null!=(b=this._Qb())?null!=b.backgroundColor&&(c=b.backgroundColor):(null!=(b=this.bRa().q4a().s4a().$z().selectedStyle)&&null!=b.backgroundColor&&(c=b.backgroundColor),null!=(b=this.bRa().$z().config.selectedStyle)&&null!=b.backgroundColor&&(c=b.backgroundColor)),a.apiSelectedStyle&&null!=(b=a.apiSelectedStyle).backgroundColor&&(c=b.backgroundColor)):null!=(b=this.aRb())?null!=b.backgroundColor&&(c=b.backgroundColor):(null!=(b=this.bRa().q4a().s4a().$z().unselectedStyle)&&null!=b.backgroundColor&&(c=b.backgroundColor),null!=(b=this.bRa().$z().config.unselectedStyle)&&null!=b.backgroundColor&&(c=b.backgroundColor))),c},d.prototype.borderRadius=function(){var a=this.ZQb(),b=null;return null!=a?null!=a.borderRadius&&(b=a.borderRadius):(null!=(a=this.bRa().$z().config.style)&&null!=a.borderRadius&&(b=a.borderRadius),null!=(a=this.aT().Ata().dhb().Wqa())&&null!=a.borderRadius&&(b=a.borderRadius)),b},d.prototype.ueb=function(b,c){var d,e,f,g=this.Cac();null!=g&&(d=this.backgroundColor(c),null!=d&&(b.beginTransform(),a.NQb.c3b(b,d),e=this.borderRadius(),g instanceof a.shapes.qwb?null!=(f=a.options.YYb.QYb(g.center.x-g.size.width/2,g.center.y-g.size.height/2,g.size.width,g.size.height,e))?b.drawPath(f,a.PathFillType.Nonzero,a.LineCap.Butt,a.LineJoin.Miter):b.drawRect(g.center.x-g.size.width/2,g.center.y-g.size.height/2,g.size.width,g.size.height,null,null,null):g instanceof a.shapes.q3b&&(null!=(f=a.options.YYb.XYb(g.center.x,g.center.y,g.radius,g.innerRadius,g.startAngle,g.sweepAngle,e))?b.drawPath(f,a.PathFillType.Nonzero,a.LineCap.Butt,a.LineJoin.Miter):b.drawDonutSegment(g.center.x,g.center.y,g.radius,g.innerRadius,g.startAngle,g.sweepAngle,null,null,null)),b.restoreTransform()))},d.prototype.v7b=function(){return new a._ac(this)},d.prototype.M$b=function(){var b,c,d,e,f=this.aT(),g=this.bRa(),h=!0;return f instanceof a.models.XCa?(b=g.WQb(),c=g.XQb(),d=g.yIa()?c:b,e=g.y9b()||g.Yac()||null==d.uJa()?0:d.uJa(),f.y6a()e.bottom)return a.TextPosition.Inside}else if(c==a.Position.Left){if(i=g.left,null!=f&&(i-=f),i-d.widthe.right))return a.TextPosition.Inside;return a.TextPosition.Outside},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j=this.Ceb(),k=j.bRa(),l=k.$z().config.text.placement,m=this.SH(),n=this.getPosition(m,l); c=j.APa(),e=k.z5a().xsb(),f=this.SIa(b,new a.core.Size(Number.MAX_VALUE,Number.MAX_VALUE)),g=k.$z().config.text.offset,h=c.center.clone(),i=null,m==a.TextPosition.Auto&&(m=this.calcTextAutoPositionBy(m,n,f,k.APa(),g)),l===a.Placement.Auto?n==a.Position.Top?m==a.TextPosition.Inside?(h.y=c.bottom,i=h.clone(),null!=g&&(i.y+=g),i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):(h.y=c.top,i=h.clone(),null!=g&&(i.y-=g),i.y-f.heighte.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):n==a.Position.Left?m==a.TextPosition.Inside?(h.x=c.right,i=h.clone(),null!=g&&(i.x+=g),i.x+f.width>e.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0))):(h.x=c.left,i=h.clone(),null!=g&&(i.x-=g),i.x-f.widthe.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0))):(i=h.clone(),this.Xvb(new a.shapes.qwb(i.x,i.y,f.width,f.height,0)),i.x+f.width/2>e.right&&this.Xvb(new a.shapes.qwb(e.right-f.width/2,i.y,f.width,f.height,0)),i.x-f.width/2e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):(null!=g&&(i.y-=g),i.y-f.heighte.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0)))):n==a.Position.Left?(h.x=c.left,i=h.clone(),m==a.TextPosition.Inside?(null!=g&&(i.x+=g),i.x+f.width>e.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0))):(null!=g&&(i.x-=g),i.x-f.widthe.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0)))):(i=h.clone(),this.Xvb(new a.shapes.qwb(i.x,i.y,f.width,f.height,0)),i.x+f.width/2>e.right&&this.Xvb(new a.shapes.qwb(e.right-f.width/2,i.y,f.width,f.height,0)),i.x-f.width/2d.x?b+=g.width:h.xd.y?c+=g.height:h.ye*e?a.TextPosition.Inside:a.TextPosition.Outside},d);function d(a,c){return b.call(this,a,c)||this}a.cbc=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.yac,__extends(d,b),d.prototype.YOb=function(){return b.prototype.bRa.call(this)},d.prototype._R=function(b){var c,d,e,f,g=this.YOb();if(g.$z().config.axisMode==a.AxisMode.Polygonal||g.$z().config.axisMode==a.AxisMode.Radial)for(c=g.ggb().slice(),c.sort(function(a,b){return null!=a.fgb()&&null!=b.fgb()?a.DPa()-b.DPa():0}),d=0,e=c;dk.x?i.y>k.y?this.Xvb(new a.shapes.qwb(i.x-f.width/2,i.y-f.height/2,f.width,f.height,0)):i.yk.y?this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y-f.height/2,f.width,f.height,0)):i.yk.y?this.Xvb(new a.shapes.qwb(i.x,i.y-f.height/2,f.width,f.height,0)):i.yk.x?(i.x+f.width>e.right&&(i.x=e.right-f.width),i.y>k.y?(i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y+f.height/2,f.width,f.height,0))):i.yk.y?(i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x-f.width/2,i.y+f.height/2,f.width,f.height,0))):i.yk.y?(i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):i.yd.LPa()||jc.LPa()||if&&(f=b.Qb()),b.Qb()b)&&e.push(g.clone())):bp)&&(d[i]=p),null!=(p=n.y6a())&&!isNaN(p)||(p=0),(null==c[i]||c[i]p)&&(d[i]=p)):n instanceof a.models.SCa&&(null!=(p=n.A6a())&&!isNaN(p)||(p=0),(null==c[i]||c[i]p)&&(d[i]=p),null!=(p=n.B6a())&&!isNaN(p)||(p=0),(null==c[i]||c[i]p)&&(d[i]=p)));for(j=0,k=b;jc.LPa()||hb.LPa()||g=J.y1?Math.max.apply(Math,i):Math.min.apply(Math,i)),null==j.bottom||null==j.top||isNaN(j.bottom)||isNaN(j.top)?null:(b.X_b(c+(d-c)/2),k=H.Qb(c),l=H.Qb(d),m=k+(l-k)/2,n=l-k,o=isNaN(g)?n:n*g,p=isNaN(h)?n:n*h,q=(j.top-j.bottom)*e+j.bottom,r=I.Qb(q),s=J.y2,t=J.y1,u=this.tbc(j.bottom,q,j.top,t,o,p),v=this.tbc(j.bottom,q,j.top,s,o,p),w=I.Qb(t),x=I.Qb(s),null==w||null==x||isNaN(w)||isNaN(x)?null:(y=m+u[0],z=m+u[1],A=m+v[0],B=m+v[1],C=q>Math.min(J.y1,J.y2)&&qMath.min(b,c)&&de.bottom)return a.TextPosition.Inside}else if(c==a.Position.Left){if(g.left-f-d.widthe.right)return a.TextPosition.Inside;return a.TextPosition.Outside},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j=this.Ceb(),k=j.bRa(),l=this.SH(),m=this.getPosition(l,k.$z().config.text.placement);c=j.APa(),e=k.z5a().xsb(),f=this.SIa(b,new a.core.Size(Number.MAX_VALUE,Number.MAX_VALUE)),g=k.$z().config.text.offset,h=c.center.clone(),i=null,l==a.TextPosition.Auto&&(l=this.calcTextAutoPositionBy(l,m,f,k.APa(),g)),m==a.Position.Top?(h.y=c.top,i=h.clone(),l==a.TextPosition.Inside?(a.core.UOb.isNullNumber(g)||(i.y+=g),i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):(a.core.UOb.isNullNumber(g)||(i.y-=g),i.y-f.heighte.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0)))):m==a.Position.Left?(h.x=c.left,i=h.clone(),l==a.TextPosition.Inside?(a.core.UOb.isNullNumber(g)||(i.x+=g),i.x+f.width>e.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0))):(a.core.UOb.isNullNumber(g)||(i.x-=g),i.x-f.widthe.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0)))):(i=h.clone(),this.Xvb(new a.shapes.qwb(i.x,i.y,f.width,f.height,0)),i.x+f.width/2>e.right&&this.Xvb(new a.shapes.qwb(e.right-f.width/2,i.y,f.width,f.height,0)),i.x-f.width/2f.LPa()||g.y6a()e.bottom)return a.TextPosition.Inside}else if(c==a.Position.Left){if(g.left-f-d.widthe.right)return a.TextPosition.Inside;return a.TextPosition.Outside},d.prototype.isPositive=function(){return this.Ceb().M$b()},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j=this.Ceb(),k=j.bRa(),l=this.SH(),m=this.getPosition(l,k.$z().config.text.placement);c=j.APa(),e=k.z5a().xsb(),f=this.SIa(b,new a.core.Size(Number.MAX_VALUE,Number.MAX_VALUE)),g=k.$z().config.text.offset,h=c.center.clone(),i=null,l==a.TextPosition.Auto&&(l=this.calcTextAutoPositionBy(l,m,f,k.APa(),g)),m==a.Position.Top?(h.y=c.top,i=h.clone(),l==a.TextPosition.Inside?(null!=g&&(i.y+=g),i.y+f.height>e.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0))):(null!=g&&(i.y-=g),i.y-f.heighte.bottom&&(i.y=e.bottom-f.height),this.Xvb(new a.shapes.qwb(i.x,i.y+f.height/2,f.width,f.height,0)))):m==a.Position.Left?(h.x=c.left,i=h.clone(),l==a.TextPosition.Inside?(null!=g&&(i.x+=g),i.x+f.width>e.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0))):(null!=g&&(i.x-=g),i.x-f.widthe.right&&(i.x=e.right-f.width),this.Xvb(new a.shapes.qwb(i.x+f.width/2,i.y,f.width,f.height,0)))):(i=h.clone(),this.Xvb(new a.shapes.qwb(i.x,i.y,f.width,f.height,0)),i.x+f.width/2>e.right&&this.Xvb(new a.shapes.qwb(e.right-f.width/2,i.y,f.width,f.height,0)),i.x-f.width/2=d)&&(b=a.y-g,!(Math.abs(b)>=d)&&c*c+b*bd.LPa()||jc.LPa()||if&&(f=b.Qb()),b.Qb()d.LPa()||jc.LPa()||ithis.WQb().KPa()&&(h=2*(i-this.WQb().KPa()))):h=Math.abs(g._La()-b._La()),!isNaN(h)&&(isNaN(a)||hf&&(d.width,r.length),k=d.left,l=0,m=g;lc.x?i+=f.width:ic.y?j+=f.height:jh.right||jh.bottom?a.TextPosition.Inside:a.TextPosition.Outside},d.prototype.TQb=function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o=this.Ceb();this.isViewHidden(o)?this.bz(!1):(e=o.bRa(),o.APa(),f=e.z5a().xsb(),g=this.SIa(b,new a.core.Size(Number.MAX_VALUE,Number.MAX_VALUE)),h=e.$z().config.text.offset,i=null,j=null,k=this.SH(),l=o.BPa(),m=o.MPa()+o.DPa()/2,k==a.TextPosition.Center?(n=o.NPa()+(o.CPa()-o.NPa())/2,j=(i=new a.core.Point(l.x+Math.cos(m)*n,l.y+Math.sin(m)*n)).clone(),this.Xvb(new a.shapes.qwb(j.x,j.y,g.width,g.height,m))):(n=o.CPa(),k==a.TextPosition.Auto&&(k=this.calcTextAutoPositionBy(k,l,m,n,g,h,f)),i=new a.core.Point(l.x+Math.cos(m)*n,l.y+Math.sin(m)*n),k==a.TextPosition.Inside?(null!=h&&(n-=h),(j=new a.core.Point(l.x+Math.cos(m)*n,l.y+Math.sin(m)*n)).x>l.x?j.y>l.y?this.Xvb(new a.shapes.qwb(j.x-g.width/2,j.y-g.height/2,g.width,g.height,0)):j.yl.y?this.Xvb(new a.shapes.qwb(j.x+g.width/2,j.y-g.height/2,g.width,g.height,0)):j.yl.y?this.Xvb(new a.shapes.qwb(j.x,j.y-g.height/2,g.width,g.height,0)):j.yl.x?(j.x+g.width>f.right&&(j.x=f.right-g.width),j.y>l.y?(j.y+g.height>f.bottom&&(j.y=f.bottom-g.height),this.Xvb(new a.shapes.qwb(j.x+g.width/2,j.y+g.height/2,g.width,g.height,0))):j.yl.y?(j.y+g.height>f.bottom&&(j.y=f.bottom-g.height),this.Xvb(new a.shapes.qwb(j.x-g.width/2,j.y+g.height/2,g.width,g.height,0))):j.yl.y?(j.y+g.height>f.bottom&&(j.y=f.bottom-g.height),this.Xvb(new a.shapes.qwb(j.x,j.y+g.height/2,g.width,g.height,0))):j.yb.width||h.height>b.height)j=g-.1;else{if(!(h.widthMath.abs(c)?a.x-=.5*g:a.x+=.5*g,f=Math.abs(d+e),d>Math.abs(e)?a.y-=.5*f:a.y+=.5*f,a},e.prototype._R=function(b,d,e){var f,g,h,i,j,k=new a.core.Point(d.left+d.width/2,d.top+d.height/2),l=1e3,m=d.clone(),n=this.V5b(k,l,this.$Fa,this.ZFa,this.YFa*l),o=Math.min(m.width/n.width,m.height/n.height)*l,p=this.X5b(b,m,e,k,0,o);l=p.radius,null!=p.shape&&(k=new a.core.Point(k.x-p.shape.left,k.y-p.shape.top),f=this.W5b(b,m,e,k,l),null!=f&&(g=f.left-m.left,h=f.right-m.right,i=f.top-m.top,j=f.bottom-m.bottom,k=this.Y5b(k,g,h,i,j))),(new c).covert(this.cDa,k.x,k.y,this.$Fa,this.ZFa,this.YFa*l,l,this.rCa,b)},e);function e(a,b,c,d,e){this.cDa=a,this.$Fa=b,this.ZFa=c,this.YFa=d,this.rCa=e}a.Ncc=d,Object.defineProperty(f.prototype,"sweep",{get:function(){return this.endAngle-this.startAngle},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"h",{get:function(){return this.radius-this.innerRadius},enumerable:!0,configurable:!0}),b=f;function f(a,b,c,d,e,f,g,h,i){this.vs=a,this.startAngle=d,this.endAngle=e,this.innerRadius=f,this.radius=g,this.sum=h,this.depth=i,this.cx=b,this.cy=c}g.prototype.covert=function(a,c,d,e,f,g,h,i,j){this.calcDeep(a.oi()),this.offset=i*(h-g),this.vMa=(h-g-this.offset)/(this.ora-1),this.wPa=c,this.xPa=d;var k=new b(a.oi(),this.wPa,this.xPa,e,e+f,g,g+this.vMa,Math.abs(a.Qb()),0);this.calcSum(k),this.wMa=0!=k.sum?k.sweep/k.sum:0,this.layoutItems(k,j)},g.prototype.calcDeep=function(a){this.ora=0,this.ora=this.xMa(a)+1},g.prototype.xMa=function(a){var b,c,d;if(a&&0b.right||a.top>b.bottom||b.left>a.right||b.top>a.bottom)},e);function e(){}b=a.zvb,__extends(f,b),f.prototype.queryInterface=function(a){return"IDisplayablePipeLine"===a?this.drawablePipeline:b.prototype.queryInterface.call(this,a)},f.prototype.Uo=function(){var a=new f(this.bRa(),this.Kac(),this.key);return a.WPa(this.WPa().slice()),a.XPa(this.XPa().slice()),a.bz(this.bz()),a},f.prototype.BPa=function(a){return arguments.length<=0?this.KMa:void(this.KMa=a)},f.prototype.CPa=function(a){return arguments.length<=0?this.LMa:void(this.LMa=a)},f.prototype.NPa=function(a){return arguments.length<=0?this.YFa:void(this.YFa=a)},f.prototype.MPa=function(a){return arguments.length<=0?this.$Fa:void(this.$Fa=a)},f.prototype.DPa=function(a){return arguments.length<=0?this.ZFa:void(this.ZFa=a)},f.prototype.v8a=function(){var b=a.x7.createPtsFromRadialBar(this.$Fa,this.ZFa+this.$Fa,this.LMa,this.YFa,this.KMa,200);this.WPa(b.xs),this.XPa(b.ys)},f.prototype.kgb=function(){return new a.uhb(this)},f.prototype.layout=function(a,b,c,d,e){this.KMa=a,this.LMa=b,this.YFa=c,this.$Fa=d,this.ZFa=e,this.v8a()},f.prototype.Dgb=function(){var a=this.aT().tE();return null==a&&(a=this.bRa().aT().OOa().getColor(0)),a},f.prototype.Nbb=function(b,c){var d,e=this.Dgb();this.aT(),b.beginTransform(),a.NQb.Jqb(b,this.yy()),b.fill=e,b.stroke=e,a.NQb.a3b(b,this.bRa().q4a().s4a().$z().style),d=this.ZQb(),null!=d?a.NQb.$Qb(b,d):a.NQb.$Qb(b,this.bRa().$z().config.style),c.hasSelectionInPlotArea&&(this.KQa()?(null!=(d=this._Qb())?a.NQb.$Qb(b,d):(a.NQb.$Qb(b,this.bRa().q4a().s4a().$z().selectedStyle),a.NQb.$Qb(b,this.bRa().$z().config.selectedStyle)),c.apiSelectedStyle&&a.NQb.$Qb(b,c.apiSelectedStyle)):null!=(d=this.aRb())?a.NQb.$Qb(b,d):(a.NQb.$Qb(b,this.bRa().q4a().s4a().$z().unselectedStyle),a.NQb.$Qb(b,this.bRa().$z().config.unselectedStyle))),this.B5a()&&a.NQb.$Qb(b,this.bRa().$z().config.hoverStyle),this.drawablePipeline.flush(b,c),b.restoreTransform()},f.prototype.draw=function(a,b){a.drawDonutSegment(this.BPa().x,this.BPa().y,this.CPa(),this.NPa()*(1-(this.scale()-1)/2),this.MPa(),this.DPa())},f.prototype.contains=function(a){var b,c,e,f,g=a.x-this.BPa().x,h=a.y-this.BPa().y,i=g*g+h*h,j=this.NPa()*this.NPa(),k=this.CPa()*this.CPa();return j<=i&&i<=k&&(b=90*this.DPa()/Math.PI,c=d.clampAngle(180*this.MPa()/Math.PI+b),e=180*Math.atan2(h,g)/Math.PI,f=d.clampAngle(c-e),Math.abs(f)<=b)},f.prototype.cutOff=function(){return!1},f.prototype.ftb=function(){var b=[],c=a.plugins.w1a.QOa("Default");return null!=c&&(b=c.toLines(this.aT().D5a())),null!=b&&0b&&(d=this.Pcc(a,d,b-15),c=a.measureString(d)),a.restoreTransform(),c},e.prototype.applyTextStyle=function(b){if(this.Occ()){var c=this.Occ().bRa();a.NQb.n0b(b,c.$z().config.textStyle),a.NQb.n0b(b,this.Occ().text.textStyle)}},e.prototype.wLa=function(a){return arguments.length<=0?this.hRa:void(this.hRa!=a&&(this.hRa=a))},e.prototype.renderByPointRect=function(b,c){if(this.bz()){b.beginTransform(),this.applyTextStyle(b);var d=this.calcLabelDrawInfoByRect(b,c,!0);d&&(this.APa(d.rect),b.startGroup(a.nRb.LabelClassName,null),b.drawString(d.label,new a.core.Point(this.APa().left+a.nRb.LabelPadding,this.APa().top-a.nRb.LabelPadding)),b.endGroup()),b.restoreTransform()}},e.prototype.calcLabelDrawInfoByRect=function(b,d,e){var f,g,h=new c;return e?(g=this.wLa(),(f=b.measureString(g)).width>d.width&&(g=this.Pcc(b,g,d.width-15),f=b.measureString(g)),h.rect=new a.core.Rect(d.left,d.bottom,f.width,f.height),h.label=g):(g=this.wLa(),(f=b.measureString(g)).width>d.width&&(g=this.Pcc(b,g,d.width-15),f=b.measureString(g)),h.rect=new a.core.Rect(d.left+(d.width-f.width)/2,d.top+(d.height-f.height)/2,f.width,f.height),h.label=g),h},e.prototype.renderByHeaderRect=function(b,c){if(this.bz()){b.beginTransform(),this.applyTextStyle(b);var d=this.calcLabelDrawInfoByRect(b,c,!1);d&&(this.APa(d.rect),b.startGroup(a.nRb.LabelClassName,null),b.drawString(d.label,new a.core.Point(this.APa().left,this.APa().top+this.APa().height)),b.endGroup()),b.restoreTransform()}},e.prototype.Pcc=function(a,b,c){for(var d=a.measureString(b);d.width>c&&0c.height?(this.s1b=!0,this.Rcc=!0):(this.s1b=!1,c=new a.core.Rect(c.left,c.top+1.5*g.height,c.width,c.height-1.5*g.height))),!this.Rcc){for(h=e=0,i=this.oi();ha.PR()&&b.APa().intersectsWith(a.APa())}).sort(function(a,b){return a.PR()-b.PR()})},c);function c(){this.Fhb=[]}a.Ubb=b}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.Vcc?this.Vcc.nSa():null},d);function d(a){var c=b.call(this)||this;return c.Vcc=a,c}a.J4b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.Wcc?this.Wcc.nSa():null},d);function d(a){var c=b.call(this)||this;return c.Wcc=a,c}a.g4b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.Xcc?this.Xcc.nSa():null},d);function d(a){var c=b.call(this)||this;return c.Xcc=a,c}a.P4b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.tgb?this.tgb.nSa():null},d);function d(a){var c=b.call(this)||this;return c.tgb=a,c}a.z3b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.dKa?this.dKa.nSa():null},d);function d(a){var c=b.call(this)||this;return c.dKa=a,c}a.l6b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.Ycc?this.Ycc.nSa():null},d);function d(a){var c=b.call(this)||this;return c.Ycc=a,c}a.S4b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.bKa?this.bKa.nSa():null},d);function d(a){var c=b.call(this)||this;return c.bKa=a,c}a.m6b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.efb?this.efb.nSa():null},d);function d(a){var c=b.call(this)||this;return c.efb=a,c}a.I6b=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.nOa?this.nOa.nSa():null},d);function d(a){var c=b.call(this)||this;return c.nOa=a,c}a.sac=c}(dv=dv||{}),function(a){"use strict";var b,c=(b=a.models.QWb,__extends(d,b),d.prototype.shape=function(){return null!=this.Beb?this.Beb.nSa():null},d);function d(a){var c=b.call(this)||this;return c.Beb=a,c}a.Bac=c}(dv=dv||{}),function(a){"use strict";var b,c,d=(e.arountRect=function(a,b){},e.arountCircle=function(b,d,f,g){var h,i,j,k,l,m,n,o,p,q,r,s;for(h=new a.core.Size(0,0),i=[],j=[],k=[],l=[],m=0,n=b;m=.5*Math.PI&&p=Math.PI&&p<1.5*Math.PI?(o.SH(c.Iib),i.push(o)):p>=1.5*Math.PI&&p<2*Math.PI&&(o.SH(c.Jib),j.push(o)),q=o.APa().size,q.width>h.width&&(h.width=q.width),q.height>h.height&&(h.height=q.height);return r=Math.sqrt(h.width*h.width-h.height*h.height),e.Kib(i,r),e.Lib(k,r),e.Mib(j,r),e.Nib(l,r),s=i.concat(k).concat(j).concat(l),e.Oib(s),s},e.Oib=function(b){var c,d,e,f,g;for(c=b.length,d=0;dthis.Sib&&(c=this.Sib-b.right,this.Vib(c)):null!=b&&b.left=Math.PI/2&&this.P9a=Math.PI&&this.P9a<1.5*Math.PI?d=Math.PI-d:this.P9a>1.5*Math.PI&&this.P9a<2*Math.PI&&(d=2*Math.PI+d),this.P9a=d,e=this.Wib.x,this.Wib.x=Math.cos(this.P9a)*this.rCa+this.Sib,c.left+=this.Wib.x-e,this.APa(c),this.Xib.left+=this.Wib.x-e,!0):b?(c.top-=a,this.APa(c),this.Wib.y-=a,this.Xib.top-=a,!1):(f=this.Wib.x-this.Sib,g=this.Wib.y-this.Tib,this.rCa=Math.sqrt(f*f+g*g),!0)},f.prototype.FIa=function(a){return arguments.length<=0?this.P9a:(this.P9a=a,void this.Yib())},f.prototype.Yib=function(){var b,c,d,e;null==this.P9a||isNaN(this.P9a)||null==this.rCa||isNaN(this.rCa)||(b=new a.core.Point(Math.cos(this.P9a)*this.rCa+this.Sib,Math.sin(this.P9a)*this.rCa+this.Tib),null!=this.Wib&&(c=b.x-this.Wib.x,d=b.y-this.Wib.y,e=this.APa(),e.left+=c,e.top+=d,this.APa(e),this.Xib.left+=c,this.Xib.top+=d),this.Wib=b)},f.prototype.UP=function(a){return arguments.length<=0?this.rCa:(this.rCa=a,void this.Yib())},f.prototype.Zib=function(){return this.Wib},f.prototype.TQb=function(b,c,d){var e,g,h,i,j;for(this.Xib=new a.core.Rect(0,0,0,0),e=new a.core.Size(0,0),b.beginTransform(),this.GHa(b,this.LAa),g=0,h=this.Deb;ge.width&&(e.width=j.width),e.height+=j.height;this.Xib.width=f.$ib,this.Xib.height=e.height,b.restoreTransform(),c=new a.core.Rect(this.Zib().x,this.Zib().y-e.height/2,e.width+this.Xib.width,e.height),this.P9a>Math.PI/2&&this.P9a<1.5*Math.PI?(c.left-=c.width,this.Xib.left=this.Wib.x-this.Xib.width):this.Xib.left=this.Wib.x,this.Xib.top=c.top,this.APa(c)},f.prototype.yl=function(b,c){var d,e,g,h,i,j=this.APa();for(b.beginTransform(),this.GHa(b,this.LAa),null!=this.getConnectingLineOption(this.LAa)&&(b.beginTransform(),this._Ja(b,this.LAa),b.drawLine(this.Wib.x,this.Wib.y,this.Uib.x,this.Uib.y),b.drawLine(this.Xib.left,this.Xib.top+this.Xib.height/2,this.Xib.right,this.Xib.top+this.Xib.height/2),b.restoreTransform()),b.beginTransform(),this.OIa(b,this.LAa),this.QIa(b,this.LAa),d=new a.core.Rect(j.left,j.top,j.width-this.Xib.width,j.height),this.nEa!==f.Gib&&this.nEa!==f.Jib||(d=new a.core.Rect(this.Xib.right,j.top,j.width-this.Xib.width,j.height)),(null!=b.fill&&("string"!=typeof b.fill||"transparent"!=b.fill&&"none"!=b.fill)||null!=b.strokeWidth&&0=a.length)&&"f"==a.substr(c+e,1);e++)d--;f=d}else 0<=a.indexOf("s")?f=b.second:0<=a.indexOf("m")?f=b.minute:0<=a.indexOf("h")||a.indexOf("H")?f=b.hour:0<=a.indexOf("d")?f=b.day:0<=a.indexOf("M")?f=b.month:0<=a.indexOf("y")&&(f=b.year);return f},g.getNiceInc=function(a,b,c){var d,e;for(d=0;d=s.KPa()&&d<=s.LPa()}),e.forEach(function(b,c){var d=b.Wrb();v[c]=a.core.UOb.isNumber(d)&&d>=t.KPa()&&d<=t.LPa()}),l=new a.core.Rect(p-r,q-r,2*r,2*r),m=0,f.forEach(function(c,e){var f,g,h;c.cx=p,c.cy=q,f=c.Wrb(),u[e]&&(g=t.Qb(f+(null!=t?t.OPa():0)),c.radius=g),h=new a.core.Rect(p-(c.fLa+c.radius),q-(c.fLa+c.radius),2*(c.fLa+c.radius),2*(c.fLa+c.radius)),d.LineCartesianCoordinateSystemContent=l.clone(),c._R(b,h,d),h.height-=m,c.kfb()._R(b,h,d),m+=c.kfb().APa().height,delete d.LineCartesianCoordinateSystemContent}),e.forEach(function(c,e){var f,g,h;c.cx=p,c.cy=q,f=c.Wrb(),v[e]&&(g=180*(s.Qb(f)-3*Math.PI/2)/Math.PI,c.hsb(g)),h=new a.core.Rect(p-(c.fLa+c.radius),q-(c.fLa+c.radius),2*(c.fLa+c.radius),2*(c.fLa+c.radius)),d.LineCartesianCoordinateSystemContent=l.clone(),c._R(b,h,d),c.kfb()._R(b,h,d),delete d.LineCartesianCoordinateSystemContent}),new a.core.Point(p,q)},d);function d(){}b.$cc=c}(a.models||(a.models={}))}(d=d||{}),function(a){!function(b){"use strict";var c=(d.prototype.create=function(){return new a.models.$cc},d);function d(){}b._cc=c}(a.plugins||(a.plugins={}))}(d=d||{}),function(a){!function(b){"use strict";var c=(d.prototype.V5b=function(b,c,d){var e,f,g,h,i=[];return b.forEach(function(b){var e,f,g,h,j,k,l,m,n,o,p;for(e=b.MPa(),f=a.TOb.toFixed(e+b.sweep,16,!0),g=[],h=Math.ceil(e/(Math.PI/2))*(Math.PI/2);h=o.KPa()&&e<=o.LPa()&&(d=o.Qb(e+(null!=o?o.OPa():0)),b.M5b(d))}),g.forEach(function(b,c){var d,e=b.Wrb();a.core.UOb.isNumber(e)&&e>=n.KPa()&&e<=n.LPa()&&(d=n.Qb(e),b.RMa(d))}),null!=d.F_AxisLabel&&(k=0,h.forEach(function(d,e){var f,g=new a.core.Size(c.width,c.height);d.H4b()||(f=d.h5b(b),d.XDa(d.LKa(!0,g.height,f))),d.SH()!=a.AxisPosition.None&&(d.SIa(b,g),k=d.I4b)}),g.forEach(function(d){var e,g,h;d.SH()!=a.AxisPosition.None&&(e=new a.core.Size(c.width,c.height-k),d.SIa(b,e)),d.H4b()||(g=d.h5b(b),h=2*(k+f),d.XDa(d.LKa(!1,h,g)))})),d.layoutShapes=[],l=this.V5b(h,e,f),h.forEach(function(a){a.radius=f,a.cx=e.x,a.cy=e.y,null!=d.F_AxisLabel&&(a._R(b,l,d),a.T5b(d))}),g.forEach(function(a){a.radius=f,a.cx=e.x,a.cy=e.y,null!=d.F_AxisLabel&&(a._R(b,l,d),d.ignoreWrap=!0,a.kfb()._R(b,l,d),delete d.ignoreWrap,a.T5b(d))}),i.forEach(function(a){a.BPa(e.clone())}),j._R(b,c,d),i.forEach(function(a){a.T5b(d)}),m=l.clone(),d.layoutShapes.forEach(function(b){var c=Math.min(b.leftTop.x,b.rightBottom.x,b.rightBottom.x,b.leftBottom.x),d=Math.max(b.leftTop.x,b.rightBottom.x,b.rightBottom.x,b.leftBottom.x),e=Math.min(b.leftTop.y,b.rightBottom.y,b.rightBottom.y,b.leftBottom.y),f=Math.max(b.leftTop.y,b.rightBottom.y,b.rightBottom.y,b.leftBottom.y);m=a.core.Rect.union(m,new a.core.Rect(c,e,d-c,f-e))}),delete d.layoutShapes,m},d.prototype.adc=function(a,b,c,d,e,f,g,h,i){var j=e,k=this.W5b(a,b,c,d,j,f,g,h,i);return(k.width>b.width||k.height>b.height)&&(j/=Math.max(k.width/b.width,k.height/b.height),k=this.W5b(a,b,c,d,j,f,g,h,i)),{radius:j,shape:k}},d.prototype.Y5b=function(a,b,c,d,e){if(0<=b&&c<=0){var f=Math.abs(b)>Math.abs(c)?-Math.abs(b+c):Math.abs(b+c);a.x+=.5*f}else b<=0&&0<=c?(f=Math.abs(b)>Math.abs(c)?Math.abs(b+c):-Math.abs(b+c),a.x+=.5*f):0<=b&&0<=c?(f=Math.abs(b+c),a.x-=.5*f):b<=0&&c<=0&&(f=Math.abs(b+c),a.x+=.5*f);return 0<=d&&e<=0?(f=Math.abs(d)>Math.abs(e)?-Math.abs(d+e):Math.abs(d+e),a.y+=.5*f):d<=0&&0<=e?(f=Math.abs(d)>Math.abs(e)?Math.abs(d+e):-Math.abs(d+e),a.y+=.5*f):0<=d&&0<=e?(f=Math.abs(d+e),a.y-=.5*f):d<=0&&e<=0&&(f=Math.abs(d+e),a.y+=.5*f),a},d.prototype.layout=function(b,c,d,e,f,g,h,i,j){var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A=new a.core.Rect(c.left,c.top,c.width/g,c.height/h);return f=f.filter(function(a){return a.d4b()}),e=e.filter(function(a){return a.d4b()}),k=0,l=[],m=[],null!=d.F_AxisTitle&&f.forEach(function(c,d){if(l[d]=0,m[d]=0,c.SH()!=a.AxisPosition.None){var e=new a.core.Size(A.width,A.height),f=c.SIa(b,e);m[d]+=f.height,l[d]+=f.height-c.I4b-c._4b(),k+=l[d]}}),n=A.clone(),n.height-=k,o=new a.core.Point(c.left+c.width/2,c.top+c.height/2),p=1e3,q=this.V5b(f,o,p),r=Math.min(n.width/q.width,n.height/q.height)*p,s=this.adc(b,n,d,o,r,e,f,i,j),p=s.radius,null!=s.shape&&(t=s.shape,null!=t&&(u=t.left-n.left,v=t.right-n.right,w=t.top-n.top,x=t.bottom-n.bottom,o=this.Y5b(o,u,v,w,x))),y=A.clone(),z=0,f.forEach(function(a,c){p-=z,a.radius=p,a.cx=o.x,a.cy=o.y,a._R(b,y,d),null!=d.F_AxisTitle&&(a.kfb()._R(b,y,d),z+=m[c],y.height-=l[c])}),e.forEach(function(a,c){a.my([a.innerRadius*p,p]),a.radius=p,a.cx=o.x,a.cy=o.y,a._R(b,y,d),null!=d.F_AxisTitle&&a.kfb()._R(b,y,d)}),o},d);function d(){}b.bdc=c}(a.models||(a.models={}))}(d=d||{}),function(a){!function(b){"use strict";var c=(d.prototype.create=function(){return new a.models.bdc},d);function d(){}b.TrellisRadialCartesianCoordinateSystemLayoutPlugin=c}(a.plugins||(a.plugins={}))}(d=d||{}),function(a){"use strict";var b,c=(b=a.Ptb,e(d,b),d.prototype.w5=function(b){var c,d,e,f,g,h,i,j,k,l;for(c={},d=0,e=b;d=h)return this.preLayoutSingleRow(e,d,h);for(l=Math.min(Math.floor(d.width/f),b.length),m=Math.min(Math.floor(d.height/g),Math.ceil(b.length/l)),l=Math.min(Math.ceil(b.length/m),l),n=(d.width-l*f)/l,o=(d.height-m*g)/m,p=o/2,q=0;q=b.length);++s)t=e[q*l+s],this.layoutItemRect(t,r,p,f,g),r+=f+n;p+=g+o}return e.length=Math.min(m*l,b.length),e},d.prototype.layoutItemRect=function(a,b,c,d,e){a.left=b,a.top=c+(e-a.height)/2},d.prototype.PIa=function(a,b,c){var d,e,f,g,h,i;for(d=b.left,e=b.top,f=this.Y6b(),g=0;gf.right&&(i.left-=i.right-f.right),i.bottom>f.bottom&&(i.top-=i.bottom-f.bottom),e.OriginalLegendSize=i.clone(),b.prototype._R.call(this,c,i,e)}},d.prototype.getLegendFixedSize=function(b){var c,d=this.$z();return null==d.width||null==d.height?null:(c=new a.core.Size(0,0),d.width.type===a.ValueOptionType.Percentage?c.width=b.width*d.width.value:c.width=d.width.value,d.height.type===a.ValueOptionType.Percentage?c.height=b.height*d.height.value:c.height=d.height.value,c)},d);function d(a,c,d){var e=b.call(this,a,c)||this;return e.sjsOption=d,e}a.SjsItemizedLegendView=c}(d=d||{}),function(a){"use strict";var b,c=(b=a.kRa,e(d,b),d.prototype.Kfb=function(b,c){var d,e=parseFloat(b.fontSize);return isNaN(e)&&(e=12),d=this.aT().Za(),null!=this.aT().Oz()&&d.F4a()?d.Efb(b,this.aT().Oz()):d instanceof a.vVb||d instanceof a.Xgb||d instanceof a.Xsb?new a.core.Size(28,.5*e):new a.core.Size(.5*e,.5*e)},d);function d(a,c){return b.call(this,a,c)||this}a.SjsLegendItemView=c}(d=d||{}),function(a){"use strict";var b,c=(b=a.A6b,e(d,b),d.prototype.isVertical=function(){var b=this.position;return b===a.SjsLegendPosition.Left||b===a.SjsLegendPosition.Right||b===a.SjsLegendPosition.TopRight},d.prototype.jdc=function(){return this.isVertical()?a.Orientation.Vertical:a.Orientation.Horizontal},d.prototype.D6b=function(a){return!0},d.prototype.getScrollContainerRect=function(){return this.APa()},d.prototype.layoutRectangle=function(b,c,d,e,f){var g,h,i,j,k,l,m,n,o,p,q,r;for(h=f,i=0,j=d.length,k=0;k0?a:f},b.prototype.SetLineWidth=function(a){k(a)||(this.Format.Line.Weight=a)},b.prototype.GetLineType=function(){return this.Format.Line&&this.Format.Line.DashStyle},b.prototype.SetLineType=function(a){!k(a)&&this.Format.Line&&(this.Format.Line.DashStyle=a)},b}(h),n=function(a){p(b,a);function b(b){var c=a.call(this,b)||this;return c}return b}(m),o=function(a){p(b,a);function b(b){var c=a.call(this,b)||this,d=c;return d.Za=new n(b),d}return b}(m),b.HoverStyle=o},"./dist/plugins/chart/legend.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(b,"__esModule",{value:!0}),d=c("./dist/plugins/chart/chartFormat.js"),e=c("FloatingObject"),f=e.Drawing.ChartElementBase,g=e.Drawing.ChartUtility,h=e.Drawing.UnitHelper,i=e.Drawing.DrawingText,j=e.Drawing.LegendPosition,k=h.isNullOrUndefined,l=null,m=void 0,n=function(a){r(b,a);function b(b,c,d){var e,f=a.call(this)||this;return d===m&&(d=-1),e=f,e.hva=b,e.iva=c,e.zoa=d,f}return b.prototype.Equals=function(a){return a&&this.iva===a.iva&&this.zoa===a.zoa||!1},Object.defineProperty(b.prototype,"Format",{get:function(){var a=this,b=a.zoa;return b===-1?a.iva.Format:b>=0&&b0)if(c=j.Get(0),g.IsAnyPieChart(c.InnerChartType))for(d=c.PointsCount,b=0;b0&&(j.legendEntry=d),j},b.prototype.CreateFormat=function(){var a=new d.ChartFormat(this.Spa);return a.Fill.Color.ColorType=0,a},b}(f),b.Legend=q},"./dist/plugins/chart/plotArea.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o=this&&this.__extends||function(){var a=function(b,c){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])})(b,c)};return function(b,c){a(b,c);function d(){this.constructor=b}b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();Object.defineProperty(b,"__esModule",{value:!0}),d=c("./dist/plugins/chart/chartFormat.js"),e=c("FloatingObject"),f=e.Drawing.ColorSchemeIndex,g=e.Drawing.ChartElementBase,h=e.Drawing.ChartUtility,i=e.Drawing.CT_AxisType,j=e.Drawing.UnitHelper,k=j.isNullOrUndefined,l=null,m=void 0;function p(a){var b,c,d,e;if(a.chartGroups&&a.chartGroups.length>0)for(b=a.chartGroups,c=0;c0)for(d=b[c].ser,e=0;e0)return{value:d}};for(c=0;c0)for(e=c[d].ser,f=0;f0)for(e=c[d].ser,f=0;f0)for(a=0;a0&&(n=j[0].InnerChartType,g=this.ToCT_ChartBase(n,0))),f&&(i=this.ToCT_StockChart(a,1))}return o=!k(g)&&g.ser&&g.ser.length>0,p=!k(i)&&i.ser&&i.ser.length>0,q=!o&&!p,(o||q&&!k(g))&&(d.chartGroups.push(g),c&&(r=this.SetPlotAreaAxies(d,this.PrimaryCatAxis,this.PrimaryValAxis,this.SerAxis),g.axId=g.axId.concat(r))),p&&(d.chartGroups.push(i),c&&(r=this.SetPlotAreaAxies(d,this.SecondaryCatAxis,this.SecondaryValAxis,this.SerAxis),i.axId=i.axId.concat(r))),d},b.prototype.ToCT_ChartBase=function(a,b){switch(a){case 12:case 13:case 14:return this.ToCT_BarChart(a,b);case 15:case 16:case 17:case 6:return this.ToCT_BarChart(a,b);case 18:case 19:case 20:return this.ToCT_BarChart(a,b);case 21:case 22:case 23:return this.ToCT_BarChart(a,b);case 9:case 24:case 25:case 26:case 27:case 28:return this.ToCT_LineChart(a,b);case 5:return this.ToCT_LineChart(a,b);case 10:case 30:return this.ToCT_PieChart(a,b);case 31:case 4:return this.ToCT_PieChart(a,b);case 29:case 32:return this.ToCT_PieChart(a,b);case 1:case 33:case 34:case 35:case 36:return this.ToCT_ScatterChart(a,b);case 8:case 37:case 38:return this.ToCT_AreaChart(a,b);case 39:case 40:case 7:return this.ToCT_AreaChart(a,b);case 3:case 41:return this.ToCT_PieChart(a,b);case 2:case 42:case 43:return this.ToCT_RadarChart(a,b);case 44:case 45:return this.ToCT_SurfaceChartBase(a,b);case 46:case 47:return this.ToCT_SurfaceChartBase(a,b);case 11:case 48:return this.ToCT_BubbleChart(a,b)}},b.prototype.SyncPlotAreaCharts=function(a,b){var c,d,e,f;b.axes=a.axes,b.chartGroups=a.chartGroups,c=l,d=h.GetSurface3DChart(b),k(d)||k(d.bandFmts)||(c=d.bandFmts),e=l,f=h.GetSurfaceChart(b),k(f)||k(f.bandFmts)||(e=f.bandFmts),k(d)||k(c)||(d.bandFmts=c),k(f)||k(e)||(f.bandFmts=e)},b.prototype.ToComboChartPlotArea=function(){var a=this.ConvertAxisGroupToComboChartPlotArea(0),b=this.ConvertAxisGroupToComboChartPlotArea(1);return k(a)||k(b)?k(a)?k(b)?null:b:a:this.MergePrimeSecondPlotArea(a,b)},b.prototype.ConvertAxisGroupToComboChartPlotArea=function(a){var b,c,d,e,f,g,i,j,m=[],n=this.SeriesCollection.GetSers(!1,a);for(b=0,c=n;b0?this.ProcessComboPlotAreas(e):null},b.prototype.ProcessComboPlotAreas=function(a){var b,c,d,e,f,g,i,j,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa=l;for(b=0,c=a;b0?(Fa=a[0],a.splice(0,1)):a.splice(a.indexOf(Fa),1),!k(Fa)&&a.length>0){if(f=[],!k(Fa.axes))for(g=0,i=Fa.axes;g=0}function ma(a,b,c){var d,e,f,g,h,j,k,l,m,n,o,p,q,r,s,u,v,w,x,y,z,A,B,C,D,E,F;if(a&&b){if(T(b.chartType)||(a.ChartType=b.chartType),T(b.axisGroup)||(a.AxisGroup=b.axisGroup),d=a.getMarkerFillColor(!0,!1,!0),e=a.getMarkerColorTransparency(),f=t.IsPieOrDoughnutChart(a.ChartType),o=i.getSeriesProperties(a,!1,!1,!0),p=c.Wu.useR1C1,b.backColor||null===b.backColor||""===b.backColor)if(f)for(g=a.Points,h=g.Count,q=ka(b.backColor,","),k=0;k0)){for(c=a[0],d=1;d=6&&(a=6),this.Cta=a,this.SetState(256,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Parent",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Period",{get:function(){return this.Bta},set:function(a){a<=2&&(a=2),a>=6&&(a=6),this.Bta=a,this.SetState(512,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Type",{get:function(){return this.Nc},set:function(a){this.Nc=a,this.SetState(1024,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ColorTransparency",{get:function(){return Q(this.ChartFormat.Line)},set:function(a){this.ChartFormat.Line.Color.Transparency=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Width",{get:function(){return wa(this.ChartFormat)},set:function(a){xa(this.ChartFormat,a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"LineType",{get:function(){return this.ChartFormat.Line&&this.ChartFormat.Line.DashStyle},set:function(a){!T(a)&&this.ChartFormat.Line&&(this.ChartFormat.Line.DashStyle=a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Name",{get:function(){var a=this,b=a.Ita&&a.Ita.name,c=a.Ata.Name;return T(c)&&(c="Series"+(a.Ata.Index+1)),T(a.Cj)?T(b)?3===a.Type?a.Period+Y().period+" "+Y().movingAverage+"("+c+")":Y()[C[a.Type]]+"("+c+")":b:a.Cj},set:function(a){this.Cj=a,a===Z?this.ldc=!1:this.ldc=!0,this.SetState(64,!0)},enumerable:!0,configurable:!0}),b.prototype.getLineColor=function(a,b,c){return P(this.ChartFormat.Line,a,b,c)},b.prototype.setLineColor=function(a,b){this.ChartFormat.Line.Color.setColor(a,b)},b.prototype.getFontColor=function(a,b,c){return P(this.Font,a,b,c)},b.prototype.setFontColor=function(a,b){null===b||""===b?this.Font.Color.ColorType=0:this.Font.Color.setColor(a,b)},b.prototype.ClearFormats=function(){this.ChartFormat=this.GetDefaultFormat()},b.prototype.Delete=function(){this.Ata.Trendlines.Delete(this)},b.prototype.CreateFormat=function(){return new h.ChartFormat(this.Ata.Chart,Z,Z,this.AutoLineColor.bind(this))},b.prototype.GetDefaultFormat=function(){var b=a.prototype.GetDefaultFormat.call(this);return b.Line.Weight=2,b.Line.DashStyle=8,b},b.prototype.AutoLineColor=function(){var a=new z(this.Ata.Parent.Parent);return a.ObjectThemeColor=p["Accent"+(this.Ata.AutoColorIndex%6+1)],a},b.prototype.getTrendlineStringForDV=function(){var a=this.Type;switch(a){case C.exponential:return"ExponentialTrendline";case C.linear:return"LinearTrendline";case C.logarithmic:return"LogarithmicTrendline";case C.movingAverage:return"MovingAverageTrendline";case C.polynomial:return"PolynomialTrendline";case C.power:return"PowerTrendline";default:return"LinearTrendline"}},b.prototype.FromOOModel=function(a){var b,c=this;c.Ita=a,T(a.backward)||(c.Backward=a.backward),T(a.forward)||(c.Forward=a.forward),T(a.intercept)||(c.Intercept=a.intercept),T(a.order)||(c.Order=a.order),T(a.trendlineType)||(c.Type=a.trendlineType),3!==c.Type||T(a.period)||(c.Period=a.period),T(a.dispEq)||(c.DisplayEquation=a.dispEq),T(a.dispRSqr)||(c.DisplayRSquared=a.dispRSqr),T(a.name)||(c.Name=a.name),T(a.spPr)?c.Kb=Z:(T(c.Kb)&&(c.Kb=new h.ChartFormat(c.Ata.Chart)),c.Kb.FromOOModel(a.spPr)),T(a.trendlineLbl)||(b={},b.rich=a.trendlineLbl.txPr,c.Qpa.FromOOModel(b))},b.prototype.ToOOModel=function(){var a=this,b=a.Ita||{};return a.GetState(1)&&(b.backward=a.Backward),a.GetState(8)&&(b.forward=a.Forward),a.GetState(16)&&(b.intercept=a.Intercept),4===a.Type&&(b.order=a.Order),3===a.Type&&(b.period=a.Period),b.trendlineType=a.Type,b.dispEq=a.DisplayEquation,b.dispRSqr=a.DisplayRSquared,T(a.Name)||(b.name=a.Name),T(a.Kb)||(b.spPr=a.Kb.ToOOModel()),T(a.Qpa)||(b.trendlineLbl={txPr:a.Qpa.ToOOModel().rich}),b},b}(w),b.Trendline=ca,da=function(){function a(a){this.Jta=[],this.Ata=a}return Object.defineProperty(a.prototype,"Count",{get:function(){return this.Jta.length},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Parent",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),a.prototype.Add=function(){var a=new ca(this.Ata);return this.Jta.push(a),a},a.prototype.Get=function(a){return this.Jta[a]},a.prototype.GetLines=function(){return this.Jta},a.prototype.Delete=function(a){var b=a;a instanceof ca&&(b=this.IndexOf(a)),b>=0&&this.Jta.splice(b,1)},a.prototype.IndexOf=function(a){return this.Jta.indexOf(a)},a.prototype.RestoreTrendlines=function(a){var b,c,d,e;for(this.Jta=[],b=0,c=a;b0&&(b.extLst={ext:a.alb}),b},b.prototype.FromOOModel=function(a){var b=this;T(a.idx)||(b.Sta=a.idx),T(a.spPr)||b.FromShapeProperties(a.spPr),!T(a.extLst)&&!T(a.extLst.ext)&&a.extLst.ext.length>0&&(b.alb=a.extLst.ext)},b.prototype.getDataPointProperties=function(a){var b=this;return{fillColor:b.getFillColor(!0,!1,a),transparency:b.getTransparency()}},b.prototype.setDataPointProperties=function(a){a.fillColor?this.setFillColor(this.Spa.kta.sheet(),a.fillColor):null!==a.fillColor&&""!==a.fillColor||(this.ChartFormat.Fill.Color.ColorType=0),T(a.idx)||(this.Sta=a.idx),T(a.transparency)||this.setTransparency(a.transparency)},b}(w),b.DataPt=ea,fa=function(){function a(a){var b=this;b.Ata=a,b.Spa=a.Chart,b.blb=[],b.clb=this.Ata.GetSunburstSeriesColor(),b.dlb=a.elb.dlb,b.flb=b.dlb.length}return a.prototype.get=function(a){var b,c,d,e=this;if(0===arguments.length){for(c=[],d=0;d0)return f},Object.defineProperty(a.prototype,"Parent",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ChartView",{get:function(){return this.Spa.Parent},enumerable:!0,configurable:!0}),a}(),b.DataPoints=fa;function pa(a){var b="STDEV",c="SQRT",d=a.length;return"="+b+"("+a.join()+")/"+c+"("+d+")"}function qa(a){var b="STDEV";return"="+b+"("+a.join()+")"}function ra(a){var b,c,d,e;if(T(a))throw Error("Must provide at least one range or values!");for(b=Z,c=0,d=a;c1&&e.ColumnCount>1)throw Error("The Range must contain single row or column!")}}function sa(a){var b;return!T(a)&&a.length>0&&(b="={"+a.join(",")+"}"),b}function ta(a,b){var c,d=f.formulaToExpression(a,b).type;return 1===d||10===d?c="range":6===d&&(c="array"),c}function ua(a){var b,c,d,f,g,h=Z,i=Z;if(!T(a.numRef)||!T(a.numLit))if(T(a.numRef)||U(a.numRef.f)){if(b=a.numLit,!T(b)&&!T(b.pt))for(i=[],c=0,d=b.pt;c=0?b:1}function xa(a,b){T(b)||(a.Line.Weight=b)}ga=function(a){ja(b,a);function b(b){var c,d=a.call(this,Z)||this;return d.Ey=[],c=d,c.Ata=b,c.Spa=b.Chart,c.sOb=0,c.tOb=4,c.uOb=!1,d}return b.prototype.getLineColor=function(a,b,c){return P(this.ChartFormat.Line,a,b,c)},b.prototype.setLineColor=function(a,b){this.ChartFormat.Line.Color.setColor(a,b)},b.prototype.getLineTransparency=function(){return Q(this.ChartFormat.Line)},b.prototype.setLineTransparency=function(a){this.ChartFormat.Line.Color.Transparency=a},b.prototype.getLineWidth=function(){return wa(this.ChartFormat)},b.prototype.setLineWidth=function(a){xa(this.ChartFormat,a)},b.prototype.getLineDashStyle=function(){return this.ChartFormat.Line&&this.ChartFormat.Line.DashStyle},b.prototype.setLineDashStyle=function(a){T(a)||(this.ChartFormat.Line.DashStyle=a)},b.prototype.getDirection=function(){var a=this,b=a.mdc;return T(b)&&(b=va(this.ChartType)),b},b.prototype.getStandardError=function(){var a=this,b=pa(a.DataValues),c=f.evaluateFormula(a.Worksheet,b);return T(c)?0:c},b.prototype.getStandardDeviation=function(){var a=this,b=qa(a.DataValues),c=f.evaluateFormula(a.Worksheet,b);return T(c)?0:c},b.prototype.getValuesMinMax=function(){var a,b,c,d,e,f,g,h,i,j,k,l=this;for(c=0;c1)return a[b]}return null},b.prototype.getValuesFromRefers=function(a){var b,c=[];return!T(a)&&a.length>0&&(b=this.Ata.GetValuesFromRefers(a),t.TryAllToNumbers(b,c)),c},b.prototype.setCustomValues=function(a,b){var c=this;c.updateCustomValues(a,b),c.updateCustomRefers(Z,b)},b.prototype.setCustomRefers=function(a,b){var c=this;ra(a),c.updateCustomRefers(a,b),c.updateCustomValues(Z,b)},b.prototype.setCustomFormula=function(a,b){var c=this,d=c.Worksheet.Kpa(a,0,0,!1),e=d.values,f=d.references;!T(e)&&e.length>0?c.setCustomValues(e,b):!T(f)&&f.length>0&&c.setCustomRefers(f,b),c.updateCustomFormula(a,b)},b.prototype.updateCustomValues=function(a,b){var c=this;b?c.sdc=a:c.pdc=a},b.prototype.updateCustomRefers=function(a,b){var c=this;b?c.rdc=a:c.odc=a},b.prototype.updateCustomFormula=function(a,b){var c=this;b?c.qdc=a:c.ndc=a},b.prototype.FromCT_NumDataSource=function(a,b){var c,d,e,f=this;return T(a)?(f.updateCustomFormula(Z,b),f.updateCustomRefers(Z,b),void f.updateCustomValues(Z,b)):(c=ua(a),d=c.formula,e=c.values,U(d)?T(e)||(f.setCustomValues(e,b),d=sa(e)):f.setCustomFormula(d,b),void f.updateCustomFormula(d,b))},b.prototype.ToCT_NumDataSource=function(a){var b,c=this,d={},e=a?c.qdc:c.ndc,f=a?c.sdc:c.pdc,g=a?c.rdc:c.odc;return U(e)&&(T(f)||0===f.length)?Z:(b=c.Ata.ToCT_NumberData(e,g,f),U(e)?d.numLit=b:d.numRef={f:e,numCache:{formatCode:b.formatCode}},d)},b.prototype.ToOOModel=function(){var a=this,b={};return T(a.mdc)||(b.errDir=a.mdc),T(a.sOb)||(b.errBarType=a.sOb),T(a.tOb)||(b.errValType=a.tOb),T(a.uOb)||(b.noEndCap=a.uOb),T(a.ChartFormat)||(b.spPr=a.ToShapeProperties()),!T(a.vOb)&&a.HasValueType?b.val=a.vOb:(!T(a.qdc)&&a.HasCustomFormulaType&&(b.minus=a.ToCT_NumDataSource(!0)),!T(a.ndc)&&a.HasCustomFormulaType&&(b.plus=a.ToCT_NumDataSource(!1))),b},b.prototype.FromOOModel=function(a){var b=this;T(a.errDir)||(b.mdc=a.errDir),T(a.errBarType)||(b.sOb=a.errBarType),T(a.errValType)||(b.tOb=a.errValType),T(a.noEndCap)||(b.uOb=a.noEndCap),T(a.spPr)||b.FromShapeProperties(a.spPr),T(a.val)||(b.vOb=a.val),T(a.minus)||b.FromCT_NumDataSource(a.minus,!0),T(a.plus)||b.FromCT_NumDataSource(a.plus,!1),b.updateInternalValues()},b.prototype.CreateFormat=function(){return new h.ChartFormat(this.Spa)},Object.defineProperty(b.prototype,"HasValueType",{get:function(){var a=this;return 1===a.tOb||2===a.tOb||3===a.tOb},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasCustomFormulaType",{get:function(){return 0===this.tOb},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DataAverage",{get:function(){return this.DataValues.reduce(function(a,b){return a+b})/this.DataValues.length},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DataValues",{get:function(){var a,b=this;return a=0===b.getDirection()?t.IsBarChart(b.ChartType)?b.Ata.Values:b.Ata.XValues:b.Ata.Values,a.map(function(a){return a instanceof Date?o.ToOADate(a):a})},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Worksheet",{get:function(){return this.Ata.Worksheet},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ChartType",{get:function(){return this.Ata.Xta},enumerable:!0,configurable:!0}),b.DefaultFormula="={1}",b}(w),b.ErrorBar=ga,ha=function(a){ja(b,a);function b(b,c,d){var e,f=a.call(this,Z)||this,h=f;return h.Lta=Z,h.Mta=[],h.Nta=[],h.Ota=[],h.Pta=Z,h.ic=Z,h.eta=!0,h.Rta=!1,h.Sta=-1,h.Tta=-1,h.Uta={Min:0,Max:1},h.Vta={Min:0,Max:1},h.Wta=Z,h.Kta=b,h.Xta=T(c)?h.Kta.Parent.ChartType:c,h.fsa=T(d)?E.primary:d,h.sQa=Z,h.hlb=Z,h.ilb=Z,h._hidden=!1,h.jlb=Z,h.Csa=[],h.defaultColors={attribute:{meth:"cycle"},schemeClr:[{val:4},{val:5},{val:6},{val:7},{val:8},{val:9}],variation:[{},{lumMod:6e4},{lumMod:8e4,lumOff:2e4},{lumMod:8e4},{lumMod:6e4,lumOdd:4e4},{lumMod:5e4},{lumMod:7e4,lumOdd:3e4},{lumMod:7e4},{lumMod:5e4,lumOdd:5e4}]},h.Init(),c&&S(c)?(e=new g.DataLabels(f),e.xua=!0,h.Qta=e,h.$ta=!0):h.Qta=Z,f}return b.prototype.dataPoints=function(){return this.blb},b.prototype.getFillColor=function(a,b,c){return P(this.Format.Fill,a,b,c)},b.prototype.getFillColorTransparency=function(){return Q(this.Format.Fill)},b.prototype.getLineColor=function(a,b,c){return P(this.Format.Line,a,b,c)},b.prototype.getLineColorTransparency=function(){return Q(this.Format.Line)},b.prototype.getLineDashStyle=function(){return this.Format.Line&&this.Format.Line.DashStyle},b.prototype.getMarkerFillColor=function(a,b,c){var d=this.MarkerStyle,e=this.MarkerFormat,f=6===d||8===d||10===d,g=e.Fill&&e.Fill.Color,h=g&&1===g.ColorType,i=1===this.ChartType;return f&&h&&!i?null:P(e.Fill,a,b,c)},b.prototype.getMarkerColorTransparency=function(){return Q(this.MarkerFormat.Fill)},b.prototype.getMarkerBorderColor=function(a,b,c){return P(this.MarkerFormat.Line,a,b,c)},b.prototype.getMarkerBorderColorTransparency=function(){return Q(this.MarkerFormat.Line)},b.prototype.getMarkerBorderLineWidth=function(){var a=this.MarkerFormat.Line&&this.MarkerFormat.Line.Weight;return T(a)?0:a>=0?a:1},b.prototype.getMarkerBorderLineDashStyle=function(){return this.MarkerFormat.Line&&this.MarkerFormat.Line.DashStyle},b.prototype.Init=function(){var a=this;a.Pta=a.CreateMarkerFormat(),a.gta=Z,a.ic=new z(a.Chart),a.ic.AutoColorFormat=a.AutoInvertColorFormat,a.gua=new da(a),a.fua=new g.Points(a),a.cua=F.Stretch,a.dua=1,a.bua=G.MarkerStyleNone,a.aua=v.DefaultMarkerSize,a.hua=!1,a.klb=!1,a.llb=!1,a.UpdateSettingsByChartType()},b.prototype.Update2016ChartDataHelper=function(){var a=this,b=a.Xta;S(b)&&(a.elb=new i.ChartData2016ModelCalHelper(a))},b.prototype.UpdateDataPoints=function(){var a,b,c,d,e,f=this,g=f.Xta;if(S(g)){if(a=new fa(f),b=f.blb,!T(b))for(c=b.get(),d=a.get(),e=0;e0&&(f=b.length,g=b[d%f],g&&(e.Brightness=e.CalcBrightness(g.lumMod,g.lumOff),T(g.shade)||e.FromShade(g.shade),T(g.tint)||e.FromTint(g.tint))),h=e.RGB,k.push("rgba("+h.R+","+h.G+","+h.B+","+h.A/255+")");return k},b.prototype.GetWithinLinearColors=function(a,b,c){var d,e,f,g,h,i=this,j=[],k=N/c,l=a.length;for(d=0;d0?(f=b.length,g=b[d%f],g&&(e.Brightness=e.CalcBrightness(g.lumMod,g.lumOff),T(g.shade)||e.FromShade(g.shade),T(g.tint)||e.FromTint(g.tint))):d5&&e?d.length=4:d.length>4&&!e&&(d=this.yBb(a)),d.forEach(function(a,d){if(a)switch(d){case 0:a=a.replace("SERIES(",""),c.UpdateNameFormula(a,b);break;case 1:c.UpdateXValuesFormula(a,b);break;case 2:c.UpdateValuesFormula(a,b);break;case 4:a=a.replace(")",""),c.UpdateBubbleFormula(a)}}))},b.prototype.yBb=function(a){var b=this.Worksheet,c=j.formulaToExpression(b,a);return c.arguments.map(function(a){return j.expressionToFormula(b,a)})},b.prototype.GetDataLabels=function(){return this.Qta},b.prototype.mBb=function(){var a,b,c,d=this.GetDataLabels();return d?(a={showValue:d.ShowValue,showSeriesName:d.ShowSeriesName,showCategoryName:d.ShowCategoryName,showPercentage:d.ShowPercentage,position:d.Position,format:d.NumberFormat},b=P(d.Font,!0,!1,!0),(b||""===b)&&(a.color=b),c=Q(d.Font),T(c)||(a.transparency=c),a):null},b.prototype.ClearFormats=function(){this.ChartFormat=this.GetDefaultFormat()},b.prototype.Delete=function(){this.Kta.DeleteSeries(this),this.Kta=Z},b.prototype.RefreshValuesIfNeed=function(a,b){var c,d,e,f,g,h,i=this;T(a)&&(c=i.Worksheet.jua(!0),d=i.Worksheet.jua(!1),(c.length>0||d.length>0)&&(a=[], [].push.apply(a,i.SegmentToRects(c,!0)),[].push.apply(a,i.SegmentToRects(d,!1)))),e=i.Lta,e&&(b||i.InterectWith([e],a))&&i.UpdateNameByRefer(e),f=i.Mta,f&&f.length>0&&(b||i.InterectWith(f,a))&&i.UpdateXValuesByRefers(f),g=i.Nta,g&&g.length>0&&(b||i.InterectWith(g,a))&&i.UpdateValuesByRefers(g),h=i.Ota,h&&h.length>0&&(b||i.InterectWith(h,a))&&i.UpdateBubbleSizesRefers(h),i.Update2016ChartDataHelper(),i.UpdateDataPoints()},b.prototype.ClearBarShapeInternal=function(){this.gta=Z},b.prototype.SegmentToRects=function(a,b){var c,d,e,f,g,h=[];for(c=0;c0;break;case k.ReferType.XValues:c=!T(b.Mta)&&b.Mta.length>0;break;case k.ReferType.BubbleSzies:c=!T(b.Ota)&&b.Ota.length>0}return c},b.prototype.UpdateOrder=function(a){this.Tta>a&&this.Tta--},b.prototype.SetNameInternal=function(a){this.Cj=a,this.ClearNameFormulaInternal()},b.prototype.SetXValuesInternal=function(a){this.UpdateXValues(a),this.ClearXValuesFormulaInternal()},b.prototype.SetValuesInternal=function(a){this.UpdateNumberValues(a),this.ClearValuesFormulaInternal()},b.prototype.SetBubbleSizesInternal=function(a){this.kua=a,this.ClearBubbleFormulaInternal()},b.prototype.SetPlotOrderInternal=function(a){this.Tta=a},b.prototype.ResetOnOwnerChartTypeChanged=function(a,b){var c=this;a===$&&(a=Z),b===$&&(b=Z),c.Xta=T(a)?c.Kta.Parent.ChartType:a,c.Wta=Z,c.fsa=T(b)?E.primary:b,c.sQa=Z,c.UpdateSettingsByChartType()},b.prototype.UpdateSecondPlotPoints=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m=this,n=m.Parent;if(T(n)||3!==n.SplitType){for(b=m.Points.Count,a=0;a0&&!t.IsTrendlineSeries(b)&&a.setTrendlines([]),a.HasErrorBars&&!t.IsErrorBarSeries(b)&&a.removeErrorBar(),!a.HasErrorBars||t.IsScatterChart(b)||t.IsBubbleChart(b)||(t.IsBarChart(b)?a.tdc(0):a.tdc(1)),a.eua=t.IsSmoothLine(b),a.aua=v.DefaultMarkerSize,a.UnDirty(32),a.bua=4,a.UnDirty(64),a.Zta=!1,a.UnDirty(4),b){case 0:break;case 12:case 13:case 14:a.InvertIfNegative=!1;break;case 15:case 16:case 17:case 6:break;case 18:case 19:case 20:break;case 21:case 22:case 23:break;case 9:case 24:case 25:break;case 26:case 27:case 28:a.bua=0;break;case 5:break;case 10:case 29:case 4:a.Yta=0;break;case 30:case 31:a.Yta=25;break;case 32:break;case 1:case 33:case 35:a.bua=0;break;case 34:case 36:a.bua=4;break;case 8:case 37:case 38:case 39:case 40:case 7:break;case 3:a.Yta=0;break;case 41:a.Yta=25;break;case 2:case 43:break;case 42:a.bua=0;break;case 44:case 45:case 46:case 47:break;case 11:break;case 48:a.Zta=!0;break;case 49:case 50:case 51:case 52:a.bua=3,a.aua=3;break;case 57:case 58:a.Update2016ChartDataHelper(),a.UpdateDataPoints()}a.HasDataLabels&&a.Qta.ResetByChartType(),a.cPa()},b.prototype.GetFormulaString=function(a){var b,c,d,e,f,g,h,i,j,k,l,m=this;return a===$&&(a=!1),b=m.GetNameFormula(a),c=m.GetXValuesFormula(a),d=m.GetValuesFormula(a),e=m.GetBubbleSizesFormula(a),f=m.PlotOrder,b?g=b:(h=m.Name,g=T(h)?"":'"'+h+'"'),i=c?m.Mta.length>1?"("+c+")":c:m.ToFormulaArray(m.lua,!0),j=d?m.Nta.length>1?"("+d+")":d:m.ToFormulaArray(m.Ey,!1),k=""+f,t.IsBubbleChart(m.Xta)?(l=void 0,l=e?m.Ota.length>1?"("+e+")":e:m.ToFormulaArray(m.BubbleSizes,!1),"SERIES("+g+","+i+","+j+","+k+","+l+")"):"SERIES("+g+","+i+","+j+","+k+")"},b.prototype.ToFormulaArray=function(a,b){var c,d,e,f;if(T(a)||0===a.length)return"";if(c=b&&a.some(function(a){return"string"==typeof a}),d=[],d.push("{"),!T(a)&&a.length>0)for(e=0;e0&&d.push(","),f=a[e],T(f)?d.push("#N/A"):"string"==typeof f?(d.push('"'),d.push(f),d.push('"')):c?(d.push('"'),d.push(""+f),d.push('"')):d.push(f);return d.push("}"),d.join("")},b.prototype.UpdateFormulas=function(a,b){var c,d,e=this;b===$&&(b=!1),c=e.Worksheet.Kpa(a,0,0,b),d=c.references,d&&(d[0]&&e.SetNameRefer(d[0]),d[1]&&e.SetXValuesRefers([d[1]]),d[2]&&e.SetValuesRefers([d[2]]),d[3]&&e.SetBubbleSizesRefers([d[3]]))},b.prototype.ClearNameFormula=function(){this.ClearNameFormulaInternal(),this.Cj=Z},b.prototype.ClearNameFormulaInternal=function(){this.UpdateNameReferCore(Z)},b.prototype.ClearXValuesFormula=function(){this.ClearXValuesFormulaInternal(),this.UpdateXValues(Z)},b.prototype.ClearXValuesFormulaInternal=function(){this.UpdateXValuesRefersCore(Z)},b.prototype.ClearValuesFormula=function(){this.ClearValuesFormulaInternal(),this.UpdateValues(Z)},b.prototype.ClearValuesFormulaInternal=function(){this.UpdateValuesRefersCore(Z)},b.prototype.ClearBubbleFormula=function(){this.ClearBubbleFormulaInternal(),this.UpdateBubbleSizes(Z)},b.prototype.ClearBubbleFormulaInternal=function(){this.UpdateBubbleSizesRefersCore(Z)},b.prototype.UpdateNameFormula=function(a,b){var c,d,e;b===$&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,e=d?d[0]:Z,this.SetNameRefer(e)},b.prototype.UpdateXValuesFormula=function(a,b){var c,d,e=this;b===$&&(b=!1),c=e.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?e.SetXValuesRefers(d):e.SetXValuesInternal(c.values),e.Update2016ChartDataHelper(),e.UpdateDataPoints()},b.prototype.UpdateValuesFormula=function(a,b){var c,d,e=this;b===$&&(b=!1),c=e.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?e.SetValuesRefers(d):e.SetValuesInternal(c.values),e.Update2016ChartDataHelper(),e.UpdateDataPoints()},b.prototype.UpdateBubbleFormula=function(a,b){var c,d;b===$&&(b=!1),c=this.Worksheet.Kpa(a,0,0,b),d=c.references,d.length>0?this.SetBubbleSizesRefers(d):this.SetBubbleSizesInternal(c.values)},b.prototype.RemoveEquals=function(a){return a&&"="===a[0]&&(a=a.substr(1)),a},b.prototype.SetNameRefer=function(a){this.UpdateNameRefer(a)},b.prototype.SetXValuesRefers=function(a){this.IsMultiLevelXValues=!T(a)&&a.length>0&&a[0].RowCount>1&&a[0].ColumnCount>1,this.UpdateXValuesRefers(a)},b.prototype.SetValuesRefers=function(a){ra(a),this.UpdateValuesRefers(a)},b.prototype.SetBubbleSizesRefers=function(a){ra(a),this.UpdateBubbleSizesRefers(a)},b.prototype.UpdateNameRefer=function(a){this.UpdateNameReferCore(a),this.UpdateNameByRefer(a)},b.prototype.UpdateXValuesRefers=function(a){this.UpdateXValuesRefersCore(a),this.UpdateXValuesByRefers(a)},b.prototype.UpdateValuesRefers=function(a){this.UpdateValuesRefersCore(a),this.UpdateValuesByRefers(a)},b.prototype.UpdateBubbleSizesRefers=function(a){this.UpdateBubbleSizesRefersCore(a),this.UpdateSizessByRefers(a)},b.prototype.UpdateNameReferCore=function(a){this.Lta=a},b.prototype.UpdateXValuesRefersCore=function(a){T(a)||0===a.length?this.Mta=[]:this.Mta=a},b.prototype.UpdateValuesRefersCore=function(a){T(a)||0===a.length?this.Nta=[]:this.Nta=a},b.prototype.UpdateBubbleSizesRefersCore=function(a){T(a)||0===a.length?this.Ota=[]:this.Ota=a},b.prototype.GetValuesFromRefers=function(a){var b,c,d,e,f,g,h,i,j,k=this,l=[],m=k.PlotVisibleOnly,n=t.GetValuesFromCellRefers(k.Worksheet,a,m);for(b=0,c=n;b0?(b=void 0,b=c.IsMultiLevelXValues?c.GetMultiLevelValuesFromRefers(a):c.GetValuesFromRefers(a),c.UpdateXValues(b)):c.UpdateXValues(Z)},b.prototype.UpdateValuesByRefers=function(a){if(!T(a)&&a.length>0){var b=this.GetValuesFromRefers(a);this.UpdateValues(b)}else this.UpdateValues([])},b.prototype.UpdateSizessByRefers=function(a){if(!T(a)&&a.length>0){var b=this.GetValuesFromRefers(a);this.UpdateBubbleSizes(b)}else this.UpdateBubbleSizes([])},b.prototype.UpdateValues=function(a){var b=[];t.TryAllToNumbers(a,b),this.UpdateNumberValues(b)},b.prototype.cPa=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o=this,p=o.Ey,q=aa.getMinMaxValues(p),s=o.Xta;if(!T(p)&&p.length>0&&t.IsStackedChart(s)){for(a=o.Kta.GetValidSers(o.AxisGroup).filter(function(a){return a.Xta===s}).map(function(a){return a.Ey}),b=0,c=0,d=[],e=0;e=0?g+=j:f+=j,h+=j);d.push(h),bf&&(c=f)}0===b&&(b=Math.max.apply(null,d)),0===c&&(c=Math.min.apply(null,d)),a.length>0&&(k=a[0],k&&k.length>0&&(l=Math.min.apply(null,k),m=Math.max.apply(null,k),n=r.calcMinMax(c,b,!1,this.Chart),n.Maxl&&(c=0))),q.Max=b,q.Min=c}o.ValuesMinMax=q},b.prototype.UpdateNumberValues=function(a){var b=this;b.Ey=a,b.HasErrorBars&&b.UpdateErrorBarsValues(),b.cPa(),t.IsOfPieChart(b.InnerChartType)&&b.UpdateSecondPlotPoints(),a&&this.wWa(a.length)},b.prototype.wWa=function(a){var b=this,c=b.xWa;T(c)||(delete b.xWa,a!==c&&(b.XValuesMinMax={Min:1,Max:a}))},b.prototype.tdc=function(a){var b=this.getErrorBars(),c=b.horizontal,d=b.vertical,e=1===a?0:1;c&&d?this.removeErrorBar(e):this.getErrorBarByDirection(a)||(this.setErrorBar(c||d,a),this.removeErrorBar(e))},b.prototype.UpdateBubbleSizes=function(a){var b,c,d,e,f=[];for(b=0,c=a;b0&&this.Ey&&this.Rta&&0===this.Chart.Parent.zOb(this)&&this.lua[0].length===this.Ey.length){for(a=this.lua,b=[],c=0;ca&&(d=b.AdjustList(d,a))):d=b.AutoGenerateXValues(),d},b.prototype.AdjustList=function(a,b){var c,d=[];if([].push.apply(d,a),d.length>b)d.splice(b,d.length-b);else for(c=0;c<=b-d.length;c++)d.push(Z);return d},b.prototype.AutoGenerateXValues=function(){var a,b=this.PointsCount,c=[];for(a=0;a1){for(a=[],b=0;bb.length?"":b[a]},b.prototype.GetCatText=function(a){var b=this.PointsCount;return t.IsOfPieChart(this.Xta)&&a===b-1?"":this.GetXValueText(a)},b.prototype.GetPercentageValue=function(a){var b,c,d,e=this.Values[a],f=0;for(b=0,c=this.Values;b0&&(d=i.GetStylesFromRefers(i.XValuesRefers)),e=i.GetAdjustedOneDimensionXValues(a),f=0;f0&&f0&&(a.extLst={ext:b.Xkb}),T(b.mlb)||(a.layoutId=b.mlb)},b.prototype.FromCT_Cat2016ChartValSerBase=function(a){var b,c,d,e,f,g=this;if(T(a.dataId)?g.Sta=-1:g.Sta=a.dataId.val,g.Tta=-1,g.ilb=a.uniqueId,g.hlb=a.formatIdx,T(a.hidden)||(g._hidden=a.hidden),T(a.ownerIdx)||(g.jlb=a.ownerIdx),g.FromCT_Text(a.tx),g.FromCT_2016ChartFormulaObj(a.formulaObj),g.FromST_AxisId(a.axisId),T(a.valueColors)||g.FromCT_ValueColors(a.valueColors),T(a.valueColorPositions)||g.FromCT_ValueColorPositions(a.valueColorPositions),T(a.defaultColors)||(g.defaultColors=a.defaultColors),!T(a.dataPt)&&!T(g.blb)){for(b=this.GetSunburstSeriesColor(),g.blb.clb=b,c=this.elb.dlb.length,d=0;d0&&(g.Xkb=a.extLst.ext),T(a.layoutId)||(g.mlb=a.layoutId)},b.prototype.ToCT_CatValSerBase=function(a){var b=this;a.idx=b.Sta!==-1?b.Sta:b.SourceIndex,b.Tta===-1?a.order=b.SourceIndex:a.order=b.Tta-1,a.tx=b.ToCT_SerTx(),a.spPr=b.ToShapeProperties(),a.cat=b.XValuesToCT_AxDataSource(),a.val=b.ValuesToCT_NumDataSource(),a.dLbls=b.ToCT_DLbls(),a.trendline=b.ToCT_Trendlines(),a.extLst=b.ToCT_ExtensionList(),a.errBars=b.ToCT_ErrorBars()},b.prototype.FromCT_CatValSerBase=function(a){var b=this;T(a.idx)?b.Sta=-1:b.Sta=a.idx,T(a.order)?b.Tta=-1:b.Tta=a.order+1,b.FromCT_SerTx(a.tx),b.FromShapeProperties(a.spPr),b.FromCT_AxDataSource(a.cat),b.FromCT_NumDataSource(a.val),b.FromCT_DLbls(a.dLbls),b.FromCT_Trendlines(a.trendline),b.FromCT_ExtensionList(a.extLst),b.FromCT_ErrorBars(a.errBars)},b.prototype.ToST_AxisId=function(){var a,b,c=this,d=c.Csa,e=[];if(!T(d)&&d.length>0)for(a=0;a0)for(b=0;b0&&(a.subtotals={idx:d.Flb}),!T(d.Xkb)&&d.Xkb.length>0&&(a.extLst={ext:d.Xkb}))},b.prototype.FromCT_SeriesLayoutProperties=function(a){var b,c,d;T(a)||(b=this,c={},T(a.parentLabelLayout)||T(a.parentLabelLayout.val)||(c.ulb=a.parentLabelLayout.val),T(a.regionLabelLayout)||T(a.regionLabelLayout.val)||(c.vlb=a.regionLabelLayout.val),T(a.visibility)||(d=a.visibility,T(d.connectorLines)||(c.wlb=d.connectorLines),T(d.meanLine)||(c.xlb=d.meanLine),T(d.meanMarker)||(c.ylb=d.meanMarker),T(d.nonoutliers)||(c.zlb=d.nonoutliers),T(d.outliers)||(c.Alb=d.outliers)),T(a.aggregation)?T(a.binning)||(c.Clb=b.FromCT_Binning(a.binning)):c.Blb=a.aggregation,T(a.geography)||(c.Dlb=b.FromCT_Geography(a.geography)),T(a.statistics)||T(a.statistics.quartileMethod)||(c.Elb=a.statistics.quartileMethod),!T(a.subtotals)&&!T(a.subtotals.idx)&&a.subtotals.idx.length>0&&(c.Flb=a.subtotals.idx),!T(a.extLst)&&!T(a.extLst.ext)&&a.extLst.ext.length>0&&(c.Xkb=a.extLst.ext),b.tlb=c)},b.prototype.ToCT_Binning=function(a){var b=a||{},c={};return T(b.Glb)?T(b.Hlb)||(c.binCount=b.Hlb):c.binSize=b.Glb,T(b.Ilb)||(c.intervalClosed=b.Ilb),T(b.Jlb)||(c.underflow=b.Jlb),T(b.Klb)||(c.overflow=b.Klb),c},b.prototype.FromCT_Binning=function(a){var b={};return T(a.binSize)?T(a.binCount)||(b.Hlb=a.binCount):b.Glb=a.binSize,T(a.intervalClosed)||(b.Ilb=a.intervalClosed),T(a.underflow)||(b.Jlb=a.underflow),T(a.overflow)||(b.Klb=a.overflow),b},b.prototype.ToCT_Geography=function(a){var b=a||{},c={};return T(b.Llb)||(c.geoCache=b.Llb),T(b.Mlb)||(c.projectionType=b.Mlb),T(b.Nlb)||(c.viewedRegionType=b.Nlb),T(b.Olb)||(c.cultureLanguage=b.Olb),T(b.Plb)||(c.cultureRegion=b.Plb),T(b.Qlb)||(c.attribution=b.Qlb),c},b.prototype.FromCT_Geography=function(a){var b={};return T(a.geoCache)||(b.Llb=a.geoCache),T(a.projectionType)||(b.Mlb=a.projectionType),T(a.viewedRegionType)||(b.Nlb=a.viewedRegionType),T(a.cultureLanguage)||(b.Olb=a.cultureLanguage),T(a.cultureRegion)||(b.Plb=a.cultureRegion),T(a.attribution)||(b.Qlb=a.attribution),b},b.prototype.ToCT_XYSerBase=function(a){var b,c=this;a.idx=c.Sta!==-1?c.Sta:c.SourceIndex, a.order=c.PlotOrder-1,a.tx=c.ToCT_SerTx(),a.spPr=c.ToShapeProperties(),a.xVal=c.XValuesToCT_AxDataSource(),a.yVal=c.ValuesToCT_NumDataSource(),b=c.ToCT_DLbls(),b&&(a.dLbls=b),a.trendline=c.ToCT_Trendlines(),a.extLst=c.ToCT_ExtensionList(),a.errBars=c.ToCT_ErrorBars()},b.prototype.FromCT_XYSerBase=function(a){var b=this;T(a.idx)?b.Sta=-1:b.Sta=a.idx,T(a.order)?b.Tta=-1:b.Tta=a.order+1,b.FromCT_SerTx(a.tx),b.FromShapeProperties(a.spPr),b.FromCT_NumDataSource(a.yVal),b.FromCT_AxDataSource(a.xVal),b.FromCT_DLbls(a.dLbls),b.FromCT_Trendlines(a.trendline),b.FromCT_ExtensionList(a.extLst),b.FromCT_ErrorBars(a.errBars)},b.prototype.ToCT_DLbls=function(){var a=this;return!a.HasDataLabels&&!a.fua.HasDataLabel||T(a.Qta)?Z:a.Qta.ToOOModel()},b.prototype.ToCT_Trendlines=function(){var a,b,c,d=[];if(this.gua.Count>0)for(a=0,b=this.gua.GetLines();a0)for(m=0,n=this.GetStylesFromRefers(b),o=0,p=n;o0&&(e.pt=g,h.length>0&&(oa(h)?e.formatCode=h[0]:e.formatCodes=h)),e},b.prototype.ToCT_StrData=function(a){var b=a.map(function(a){return!T(a)&&a.toLocaleString?a.toLocaleString():a});return{ptCount:a.length,pt:b}},b.prototype.ToCT_MultiLvlStrData=function(){var a,b,c,d=this,e={lvl:[]};for(e.ptCount=d.PointsCount,a=1===d.Kta.RowCol?d.Mta[0].ColumnCount:d.Mta[0].RowCount,b=0;b0?f:$},Object.defineProperty(b.prototype,"SeriesCollection",{get:function(){return this.Kta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Index",{get:function(){return T(this.Kta)?-1:this.Kta.IndexOf(this)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AxisGroup",{get:function(){return this.fsa},set:function(a){var b=this;a!==b.fsa&&(b.fsa=a,b.sQa=Z,b.Chart.HandleElementChanged(3,b,v.AxisGroup))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"BarShape",{get:function(){var a=this;return T(a.gta)?a.Chart.BarShape:a.gta},set:function(a){this.gta=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ChartType",{get:function(){return this.Xta},set:function(a){var b=this;if(a!==b.Xta){if(0===a||t.IsSurfaceChart(a)||t.IsStockChart(a))throw Error("Invalid chart type!");if(t.Is3DChart(b.Xta)!==t.Is3DChart(a))throw Error("Can not change 3D of series!");b.Xta=a,b.sQa=Z,b.Wta=Z,b.UpdateSettingsByChartType(),b.Chart.HandleElementChanged(3,b,v.ChartType)}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Explosion",{get:function(){return this.Yta},set:function(a){var b=this,c=b.Yta;a!==c&&(c=a,c>400&&(c=400),c<0&&(c=0),b.Yta=c,b.Dirty(1))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Format",{get:function(){return this.ChartFormat},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"LineWidth",{get:function(){var a=this.Format.Line.Weight;return a>0?a:0},set:function(a){T(a)||(this.Format.Line.Weight=a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Formula",{get:function(){return"="+this.GetFormulaString()},set:function(a){"="===a[0]&&(a=a.substr(1)),a!==this.GetFormulaString()&&this.UpdateFormulas(a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"FormulaR1C1",{get:function(){return"="+this.GetFormulaString(!0)},set:function(a){"="===a[0]&&(a=a.substr(1)),a!==this.GetFormulaString(!0)&&this.UpdateFormulas(a,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Has3DEffect",{get:function(){return this.Zta},set:function(a){this.Zta=a,this.Dirty(4)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasDataLabels",{get:function(){return this.$ta},set:function(a){var b=this;b.$ta=a,a&&(b.DataLabels.ShowValue=!0,b.DataLabels.ShowLeaderLines=!0),T(b.Qta)||b.Qta.UpdateDeleted(!a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"InvertColor",{get:function(){var a=this;return T(a.ic)&&(a.ic=new z(a.Chart)),this.ic},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"InvertIfNegative",{get:function(){return this._ta},set:function(a){this._ta=a,this.Dirty(8)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerFormat",{get:function(){var a=this;return T(a.Pta)&&(a.Pta=a.CreateMarkerFormat()),a.Pta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerSize",{get:function(){return this.aua},set:function(a){this.aua=a,this.Dirty(32)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"MarkerStyle",{get:function(){var a,b=this.bua;return T(b)&&(a=this.Sta%_.length,b=_[a]),b},set:function(a){this.bua=a,this.Dirty(64)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Name",{get:function(){return this.Cj},set:function(a){this.SetNameInternal(a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Parent",{get:function(){return this.GetParentGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PictureType",{get:function(){return this.cua},set:function(a){this.cua=a,this.Dirty(128)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PictureUnit",{get:function(){return this.dua},set:function(a){this.dua=a,this.Dirty(256)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Smooth",{get:function(){return this.eua},set:function(a){this.eua=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Values",{get:function(){return t.IsOfPieChart(this.Xta)?this.ProcessOfPieValues():this.Ey},set:function(a){this.SetValuesInternal(a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"XValues",{get:function(){return this.GetXValues()},set:function(a){this.SetXValuesInternal(a),this.Chart.HandleElementChanged(3,this,v.XValues,a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"BubbleSizes",{get:function(){return this.GetBubbleSizes()},set:function(a){this.SetBubbleSizesInternal(a)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"DataLabels",{get:function(){var a=this;return T(a.Qta)&&(a.Qta=new g.DataLabels(a)),a.Qta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Points",{get:function(){return this.fua},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Trendlines",{get:function(){return this.gua},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PlotOrder",{get:function(){return this.Tta===-1?this.Index+1:this.Tta},set:function(a){var b,c=this;c.PlotOrder!==a&&a>0&&a<=c.Kta.Count&&(b=c.Tta===-1?c.Index+1:c.Tta,c.Tta=a,c.Chart.HandleElementChanged(3,c,v.PlotOrder,a,b))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"FormatInternal",{get:function(){var a=this;return T(a.Kb)&&(a.Kb=a.CreateFormat()),this.Kb},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AutoColorIndex",{get:function(){return this.Sta!==-1?this.Sta:this.SourceIndex},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"OwnerChartType",{get:function(){return this.Kta.Parent.ChartType},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PointsCount",{get:function(){var a=this;return t.IsOfPieChart(a.InnerChartType)?a.ValuesCount+1:a.ValuesCount},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ValuesCount",{get:function(){return T(this.Ey)?0:this.Ey.length},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"PlotVisibleOnly",{get:function(){return this.eta},set:function(a){var b=this;a!==b.eta&&(b.eta=a,b.RefreshValuesIfNeed())},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"IsHidden",{get:function(){var a=this;return!T(a.Nta)&&a.Nta.length>0&&a.AreAllCellsHidden(a.Nta)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"SourceIndex",{get:function(){return this.Kta.IndexOfSource(this)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Worksheet",{get:function(){return this.Kta.Parent.Parent.sheet()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"IsMultiLevelXValues",{get:function(){return this.Rta},set:function(a){var b=this;a!==b.Rta&&(b.Rta=a,b.Chart.HandleElementChanged(3,b,v.IsMultiLevelXValues))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"NameRefer",{get:function(){return this.Lta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"XValuesRefers",{get:function(){return this.Mta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ValuesRefers",{get:function(){return this.Nta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"BubbleSizesRefers",{get:function(){return this.Ota},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"ValuesMinMax",{get:function(){return this.Uta},set:function(a){var b=this;a!==b.Uta&&(b.Uta=a,b.Chart.lBb||b.Chart.HandleElementChanged(3,b,v.ValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"XValuesMinMax",{get:function(){return this.Vta},set:function(a){var b=this;a!==b.Vta&&(b.Vta=a,b.Chart.lBb||b.Chart.HandleElementChanged(3,b,v.XValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"HasErrorBars",{get:function(){return this.qOb&&this.qOb.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"AreAllXValuesDateTime",{get:function(){return this.hua},set:function(a){var b=this;a!==b.hua&&(b.hua=a,b.Chart.HandleElementChanged(3,b,v.AreAllXValuesDateTime))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"InnerChartType",{get:function(){return this.Xta},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"Chart",{get:function(){return this.Kta.Parent},enumerable:!0,configurable:!0}),b}(w),b.Series=ha;function ya(a,b,c){a.UpdateValuesFormula(t.ReferencesToFormula(b,c),c)}function za(a,b,c){a.UpdateNameFormula(t.ReferencesToFormula(b,c),c)}function Aa(a,b,c){a.UpdateXValuesFormula(t.ReferencesToFormula(b,c),c)}function Ba(a,b,c){a.UpdateBubbleFormula(t.ReferencesToFormula(b,c),c)}function Ca(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;b&&(d=b.showValue,e=b.showSeriesName,f=b.showCategoryName,g=b.showPercentage,h=b.position,i=b.format,j=b.color,k=b.transparency,l=a.DataLabels,d!==$&&(l.ShowValue=d),e!==$&&(l.ShowSeriesName=e),f!==$&&(l.ShowCategoryName=f),g!==$&&(l.ShowPercentage=g),m=l.ShowValue||l.ShowSeriesName||l.ShowCategoryName||l.ShowPercentage,!a.HasDataLabels&&m?(n=l.ShowValue,a.HasDataLabels=!0,n===!1&&(a.DataLabels.ShowValue=!1)):a.HasDataLabels&&!m&&(a.HasDataLabels=!1),T(h)||(l.Position=h),i&&(l.NumberFormat=i),j?l.Font.Color.setColor(c,j):null!==j&&""!==j||(l.Font.Color.ColorType=0),T(k)||(l.Font.Color.Transparency=k))}ia=function(){function a(a){var b=this;b._S=Z,b.Ata=[],b.nua={Min:0,Max:1},b.oua={Min:0,Max:1},b.pua={Min:0,Max:1},b.qua={Min:0,Max:1},b.Spa=a,b.zBb=[{max:null,min:null,num:0},{max:null,min:null,num:0},{max:null,min:null,num:0},{max:null,min:null,num:0},{max:null,min:null,num:0},{max:null,min:null,num:0}]}return a.ABb=function(a,b,c){(b||c)&&(a.HasDataLabels=!0,b&&a.DataLabels.mRa(b))},a.prototype.get=function(a){var b,c;return 0===arguments.length?(b=this.ChartView.ignoreHidden(),this.GetSers(b).map(function(a,b){return i.getSeriesProperties(a,0===b,!1,!0)})):(c=this.Get(a),c?i.getSeriesProperties(c,0===a,!1,!0):Z)},a.prototype.set=function(){var a,b,c,d=[];for(a=0;a0){for(j=d.Ata.length,d.RVa({type:"add",index:j,count:i}),k=j,T(a)||(k=a),l=0;l0)for(a.sort(function(a,b){return a-b});a.length;){var b=a.pop();this.Get(b).Delete()}},a.prototype.TVa=function(a){this.RVa({type:"updateSeriesInCalc",series:a})},a.prototype.RVa=function(a){this.ChartView.RVa("series",a)},a.prototype.RUa=function(a){var b,c,d,e,f,g;if(a&&a.type)if(b=this,c=a.type,d=a.index,e=a.count,f=a.series,"add"===c)for(g=0;g0&&e0&&e0&&(n=k.XValuesRefers.slice(0),n.push(t.CreateReference(a.Worksheet.name(),f.Row,f.Column,f.RowCount,f.ColumnCount)),Aa(k,n,d))},a.prototype.Get=function(a){return this.Item(a,Z)},a.prototype.NewSeries=function(){var a=this,b=new ha(a);return a.Ata.push(b),b},a.prototype.IndexOf=function(a){var b=a;return b.PlotVisibleOnly&&b.IsHidden?-1:this.GetValidSers().indexOf(a)},a.prototype.IndexOfSource=function(a){return this.Ata.indexOf(a)},a.prototype.AdjustIndex=function(a,b){var c,d,e,f,g,h=this,i=h.GetValidSers();a<0||a>=i.length||b<0||b>=i.length||(c=h.MapToSourceIndex(a),d=h.MapToSourceIndex(b),e=h.Ata,f=e[c],g=e[d],e[c]=g,e[d]=f)},a.prototype.GetSers=function(a,b){return a===$&&(a=!0),a?this.Ata.filter(function(a){return!a.IsHidden&&(T(b)||a.AxisGroup===b)}):T(b)?this.Ata:this.Ata.filter(function(a){return a.AxisGroup===b})},a.prototype.GetValidSers=function(a){return this.GetSers(this.Spa.PlotVisibleOnly,a)},a.prototype.DetectRanges2=function(a,b,c,d,e,f){var g,h,i=this.DetectRanges(a,b,c,d,e,f);return t.GetDimensioin(this.Spa.ChartType)>1&&T(f.category)&&!T(f.data)&&(h=f.data,i?h.ColumnCount>1&&(f.category=new x(h.Row,h.Column,h.RowCount,1),f.data=new x(h.Row,h.Column+1,h.RowCount,h.ColumnCount-1),T(f.seriesName)||(g=f.seriesName,f.seriesName=new x(g.Row,g.Column+1,g.RowCount,g.ColumnCount-1))):f.data.RowCount>1&&(f.category=new x(h.Row,h.Column,1,h.ColumnCount),f.data=new x(h.Row+1,h.Column,h.RowCount-1,h.ColumnCount),T(f.seriesName)||(g=f.seriesName,f.seriesName=new x(g.Row+1,g.Column,h.RowCount-1,g.ColumnCount)))),i},a.prototype.GenerateSeriesStructures=function(a,b,c,d){var e,f,g,h,i=this,j=i.Spa.Parent.sheet().Apa(a[0].WorksheetName),k=new x(a[0].Row,a[0].Column,a[0].RowCount,a[0].ColumnCount),l=Z,m=Z,n=Z;return T(b)?(e={seriesName:Z,category:Z,data:Z},f=i.DetectRanges2(j,k.Row,k.Column,k.RowCount,k.ColumnCount,e),l=e.seriesName,m=e.category,n=e.data,i._S=f?1:0):(i._S=b,T(c)&&T(d)&&(e={seriesName:Z,category:Z,data:Z},f=i.DetectRanges2(j,k.Row,k.Column,k.RowCount,k.ColumnCount,e),l=e.seriesName,m=e.category,n=e.data,g=f?1:0,i._S!==g&&(h=m,m=l,l=h))),T(c)&&T(d)||(i._S===H.columns?c&&d?(l=new x(k.Row,k.Column+1,1,k.ColumnCount-1),m=new x(k.Row+1,k.Column,k.RowCount-1,1),n=new x(k.Row+1,k.Column+1,k.RowCount-1,k.ColumnCount-1)):c?(l=new x(k.Row,k.Column,1,k.ColumnCount),m=Z,n=new x(k.Row+1,k.Column,k.RowCount-1,k.ColumnCount)):d?(l=Z,m=new x(k.Row,k.Column,k.RowCount,1),n=new x(k.Row,k.Column+1,k.RowCount,k.ColumnCount-1)):(l=Z,m=Z,n=new x(k.Row,k.Column,k.RowCount,k.ColumnCount)):c&&d?(l=new x(k.Row+1,k.Column,k.RowCount-1,1),m=new x(k.Row,k.Column+1,1,k.ColumnCount-1),n=new x(k.Row+1,k.Column+1,k.RowCount-1,k.ColumnCount-1)):c?(l=new x(k.Row,k.Column,k.RowCount,1),m=Z,n=new x(k.Row,k.Column+1,k.RowCount,k.ColumnCount-1)):d?(l=Z,m=new x(k.Row,k.Column,1,k.ColumnCount),n=new x(k.Row+1,k.Column,k.RowCount-1,k.ColumnCount)):(l=Z,m=Z,n=new x(k.Row,k.Column,k.RowCount,k.ColumnCount))),i.GenerateSeriesStructures2(a,i._S,l,m,n)},a.prototype.GenerateSeriesStructures2=function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,v,w,x=[];if(T(a)||0===a.length)return x;if(f=a[0].WorksheetName,g=a[0],h=T(b)?1:b,!T(e)){if(1===h)for(n=g.Column;n=d.Column+d.ColumnCount)&&(k=new ba,T(c)||(k.Label=t.CreateReference(f,c.Row,n,c.RowCount,1)),k.Data.push(t.CreateReference(f,e.Row,n,e.RowCount,1)),T(d)||k.Categories.push(t.CreateReference(f,d.Row,d.Column,d.RowCount,d.ColumnCount)),x.push(k));else for(m=g.Row;m=d.Row+d.RowCount)&&(k=new ba,T(c)||(k.Label=t.CreateReference(f,m,c.Column,1,c.ColumnCount)),k.Data.push(t.CreateReference(f,m,e.Column,1,e.ColumnCount)),T(d)||k.Categories.push(t.CreateReference(f,d.Row,d.Column,d.RowCount,d.ColumnCount)),x.push(k));if(a.length>1)if(o=this.InSameColumnRowStrip(a)){if(1===this._S){for(p=e.Column,q=e.ColumnCount,n=p;n1?e>1?(f.category=new x(b,c+1,1,e-1),f.seriesName=new x(b+1,c,d-1,1),f.data=new x(b+1,c+1,d-1,e-1)):(f.seriesName=new x(b,c,1,1),f.data=new x(b+1,c,d-1,1)):(f.seriesName=new x(b,c,1,1),f.data=new x(b,c+1,d,e-1)):e>1?(e>1&&k-b>=1&&(f.category=new x(b,c+1,k-b,e-1)),d>1&&b+d>k&&(f.seriesName=new x(k,c,b+d-k,1)),f.data=new x(k,c+1,b+d-k,e-1)):(f.seriesName=Z,d>1&&k>b&&kb?f.data=new x(k,c,b+d-k,e):f.data=new x(b,c,d,e))}else{for(j--;k1?(e>1&&k-b>=1&&(f.category=new x(b,m,1,l)),d>1&&e>l&&(f.seriesName=new x(b+1,c,d-1,e-l)),f.data=new x(b+1,m,d-1,l)):(f.seriesName=new x(b,c,d,m-c),f.data=new x(b,m,d,l)):(e>1&&k-b>=1&&(f.category=new x(b,m,k-b,l)),d>1&&b+d>k&&e>l&&(f.seriesName=new x(k,c,b+d-k,e-l)),f.data=new x(k,m,b+d-k,l))}}else if(n=c+e-1,o=b+d-1,e>1&&d>1){for(j=n,l=0;j>=c&&t.IsNumericData(a.mua(o,j));)l++,j--;if(p=0===l,p&&(l=1,j--),q=void 0,e>1){if(m=j+1,j=o-1,q=1,!p)for(;j>=b&&t.IsNumericData(a.mua(j,n));)q++,j--;l>0&&m>=c&&j+1>b&&(f.category=new x(b,m,j+1-b,l)),q>0&&m>c&&(f.seriesName=new x(j+1,c,q,m-c)),f.data=new x(j+1,m,q,l)}}else if(d>1)if(t.IsNumericData(a.mua(b,c)))f.data=new x(b,c,d,e);else{for(j=o;j>=b&&t.IsNumericData(a.mua(j,c));)j--;j!==o||t.IsNumericData(a.mua(j,c))||j--,f.data=new x(j+1,c,o-j,e),j>=b&&(f.seriesName=new x(b,c,j-b+1,e))}else if(t.IsNumericData(a.mua(b,c)))f.data=new x(b,c,d,e);else{for(j=n;j>=c&&t.IsNumericData(a.mua(b,j));)j--; j!==n||t.IsNumericData(a.mua(b,j))||j--,f.data=new x(b,j+1,d,n-j),j>=c&&(f.seriesName=new x(b,c,d,j-c+1))}if(!T(f.data)&&f.data.RowCount>f.data.ColumnCount&&f.data.RowCount>1&&(f.data.ColumnCount>1||1===f.data.ColumnCount&&(!T(f.seriesName)||!T(f.category))))return r=!1,T(f.seriesName)?T(f.category)||(r=f.category.Column===f.data.Column):r=f.seriesName.Row===f.data.Row,r&&(s=f.category,f.category=f.seriesName,f.seriesName=s),!0;if(!T(f.data)){if(1===f.data.RowCount)return!1;if(1===f.data.ColumnCount)return!0}return!T(f.seriesName)&&f.seriesName.Column===f.data.Column||!T(f.category)&&f.category.Row===f.data.Row},a.prototype.TrimCellRect=function(a,b,c,d,e){var f,g,h,i,j,k,l=b,m=c,n=d,o=e,p=a.getRowCount(),q=a.getColumnCount();if(0!==p&&0!==q){if(b===-1||0===b&&d===p){k=c===-1,k&&(c=0,e=q),b=0,d=p,f=!0;do{for(i=c+e,h=c;h0)},a.prototype.UpdateValuesMaxMin=function(a){a===E.primary?this.UpdatePrimaryValuesMaxMin():this.UpdateSecondaryValuesMaxMin()},a.prototype.UpdateXValuesMaxMin=function(a){a===E.primary?this.UpdatePrimaryXValuesMaxMin():this.UpdateSecondaryXValuesMaxMin()},a.prototype.Item=function(a,b){var c,d,e,f=this.GetSers(this.Spa.PlotVisibleOnly,b);if("number"==typeof a){if(a>=0&&af&&(f=e.length);return f},a.prototype.nRa=function(b){var c,d,e,f;if(b)for(c=this.Ata,d=c.length,e=b.count,f=0;f=e)},a.prototype.AddSers=function(a,b,c){var d,e=this,f=e.Parent.Parent.sheet().Wu.useR1C1;if(e.Spa.SuspendElementChanged(),d=e.Parent.ChartType,t.IsBubbleChart(d))e.AddSersForBubble(a,f);else if(49===d||50===d){if(49===d&&3!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: high price, low price, closing price. Use dates or stock names as labels.");if(50===d&&4!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: opening price, high price, low price, closing price. Use dates or stock names as labels.");e.AddSersForStock(a,Z,f)}else if(51===d||52===d){if(51===d&&4!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: volume traded, high price, low price, closing price. Use dates or stock names as labels.");if(52===d&&5!==a.length)throw Error("To create this stock chart, arrange the data on your sheet in this order: volume traded, opening price, high price, low price, closing price. Use dates or stock names as labels.");e.AddSersForVolumeStock(a,f)}else 57===d||58===d?e.AddSersForSunburstOrTreeMap(a,d,f):e.AddSersDefault(a,Z,Z,c,f);e.nRa(b),e.Spa.ResumeElementChanged(4,e,v.Collection)},a.prototype.AddSersDefault=function(a,b,c,d,e){var f,g,h,i=d&&d.length,j=i&&d.slice(-1)[0];for(f=0;f0}),this.AddSersForStock(c,1,b)},a.prototype.AddSersForSunburstOrTreeMap=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n,o=this,p=a.length,r=o._S,s=o.ChartView,u=s.sheet();if(p>0){for(d=V(u,t.ReferencesToFormula(a[p-1].Categories,c)),e=[],f=!1,g=0;g=0&&c.Ata.splice(b,1),c.Spa.HandleElementChanged(4,c,v.Collection)},a.prototype.UpdatePlotOrders=function(a){var b,c,d;for(b=0,c=this.Ata;b=0)for(h=w,i=0,j=h.ser;i=0?0:1,m=0,n=l.ser;m=0?0:1,p=void 0,w.ser)for(q=0,r=w.ser;q0){if(g=this.GenerateSeriesStructures(h,b,c,d),t.IsStockChart(this.Parent.ChartType)&&!t.AreValuesDateTime(this.ChartView.sheet(),g[0].Categories))throw Error("The xValues of stock chart should be date.");this.AddSers(g,e,f)}},a.prototype.GetAllSeriesInternal=function(){return this.Ata},a.prototype.GetTrendlineNameIsCustomOrNotInternal=function(a,b){var c,d=this.Ata[a];return T(d)||(c=d.Trendlines.Jta[b],T(c))?Z:c.ldc},Object.defineProperty(a.prototype,"Parent",{get:function(){return this.Spa},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ChartView",{get:function(){return this.Spa.Parent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"Count",{get:function(){return this.GetValidSers().length},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"PrimaryValuesMinMax",{get:function(){return this.nua},set:function(a){var b=this;a!==b.nua&&(b.nua=a,b.Spa.HandleElementChanged(4,b,v.PrimaryValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SecondaryValuesMinMax",{get:function(){return this.oua},set:function(a){var b=this;a!==b.oua&&(b.oua=a,b.Spa.HandleElementChanged(4,b,v.SecondaryValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"PrimaryXValuesMinMax",{get:function(){return this.pua},set:function(a){var b=this;a!==b.pua&&(b.pua=a,b.Spa.HandleElementChanged(4,b,v.PrimaryXValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"SecondaryXValuesMinMax",{get:function(){return this.qua},set:function(a){var b=this;a!==b.qua&&(b.qua=a,b.Spa.HandleElementChanged(4,b,v.SecondaryXValuesMinMax))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"AllSers",{get:function(){return this.Ata},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"RowCol",{get:function(){return T(this._S)?1:this._S},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"HasErrorBars",{get:function(){var a,b=this;for(a=0;a1)for(b=1;b=e)return a;switch(a){case"%s":return d[c++]+"";case"%d":return+d[c++];case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),g=d[c];c=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),u(c)?d.showHidden=c:c&&b.Ia(d,c),A(d.showHidden)&&(d.showHidden=!1),A(d.depth)&&(d.depth=2),A(d.colors)&&(d.colors=!1),A(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=k),n(d,a,d.depth)}b.inspect=j,j.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},j.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function k(a,b){var c=j.styles[b];return c?"\x1b["+j.colors[c][0]+"m"+a+"\x1b["+j.colors[c][1]+"m":a}function l(a,b){return a}function m(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function n(a,c,d){var e,f,g,h,i,j,k,l,u,v;if(a.customInspect&&c&&F(c.inspect)&&c.inspect!==b.inspect&&(!c.constructor||c.constructor.prototype!==c))return e=c.inspect(d,a),y(e)||(e=n(a,e,d)),e;if(f=o(a,c))return f;if(g=Object.keys(c),h=m(g),a.showHidden&&(g=Object.getOwnPropertyNames(c)),E(c)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return p(c);if(0===g.length){if(F(c))return i=c.name?": "+c.name:"",a.stylize("[Function"+i+"]","special");if(B(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(D(c))return a.stylize(Date.prototype.toString.call(c),"date");if(E(c))return p(c)}return j="",k=!1,l=["{","}"],t(c)&&(k=!0,l=["[","]"]),F(c)&&(u=c.name?": "+c.name:"",j=" [Function"+u+"]"),B(c)&&(j=" "+RegExp.prototype.toString.call(c)),D(c)&&(j=" "+Date.prototype.toUTCString.call(c)),E(c)&&(j=" "+p(c)),0!==g.length||k&&0!=c.length?d<0?B(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special"):(a.seen.push(c),v=k?q(a,c,d,h,g):g.map(function(b){return r(a,c,d,h,b,k)}),a.seen.pop(),s(v,j,l)):l[0]+j+l[1]}function o(a,b){if(A(b))return a.stylize("undefined","undefined");if(y(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return x(b)?a.stylize(""+b,"number"):u(b)?a.stylize(""+b,"boolean"):v(b)?a.stylize("null","null"):void 0}function p(a){return"["+Error.prototype.toString.call(a)+"]"}function q(a,b,c,d,e){var f,g,h=[];for(f=0,g=b.length;f-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),A(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function s(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function t(a){return Array.isArray(a)}b.isArray=t;function u(a){return"boolean"==typeof a}b.isBoolean=u;function v(a){return null===a}b.isNull=v;function w(a){return null==a}b.isNullOrUndefined=w;function x(a){return"number"==typeof a}b.isNumber=x;function y(a){return"string"==typeof a}b.isString=y;function z(a){return"symbol"==typeof a}b.isSymbol=z;function A(a){return void 0===a}b.isUndefined=A;function B(a){return C(a)&&"[object RegExp]"===H(a)}b.isRegExp=B;function C(a){return"object"==typeof a&&null!==a}b.isObject=C;function D(a){return C(a)&&"[object Date]"===H(a)}b.isDate=D;function E(a){return C(a)&&("[object Error]"===H(a)||a instanceof Error)}b.isError=E;function F(a){return"function"==typeof a}b.isFunction=F;function G(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a}b.isPrimitive=G,b.isBuffer=c("./node_modules/util/support/isBufferBrowser.js");function H(a){return Object.prototype.toString.call(a)}function I(a){return a<10?"0"+a.toString(10):a.toString(10)}f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function J(){var a=new Date,b=[I(a.getHours()),I(a.getMinutes()),I(a.getSeconds())].join(":");return[a.getDate(),f[a.getMonth()],b].join(" ")}b.log=function(){console.log("%s - %s",J(),b.format.apply(b,arguments))},b.inherits=c("./node_modules/util/node_modules/inherits/inherits_browser.js"),b.Ia=function(a,b){var c,d;if(!b||!C(b))return a;for(c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a};function K(a,b){return Object.prototype.hasOwnProperty.call(a,b)}g="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0,b.promisify=function a(b){if("function"!=typeof b)throw new TypeError('The "original" argument must be of type Function');if(g&&b[g]){var c=b[g];if("function"!=typeof c)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(c,g,{value:c,enumerable:!1,writable:!1,configurable:!0}),c}function c(){var a,c,d,e=new Promise(function(b,d){a=b,c=d}),f=[];for(d=0;d