fusioncharts
Version:
FusionCharts JavaScript charting framework
1 lines • 441 kB
JavaScript
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[3],{660:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(661));t.TimeSeries=a["default"];var r=i(n(183)),o=i(n(340)),s=n(365),l=n(394),c=n(395);r["default"].DataStore=o["default"],r["default"].DataStore.Operators={between:s.between,equals:s.equals,less:s.less,lessEquals:s.lessEquals,greater:s.greater,greaterEquals:s.greaterEquals,filter:s.filter,select:s.select,groupBy:s.groupBy,pipe:s.pipe,sort:s.sort,pivot:s.pivot},r["default"].Utils={duration:c.duration,before:c.before,after:c.after,parseDate:c.parseDate,formatDate:c.formatDate,DatetimeUnits:c.DatetimeUnits,Weekdays:c.Weekdays},r["default"].DataStore.Aggregators={aggregatorStore:l.aggregatorStore};var d={name:"timeseries",type:"package",requiresFusionCharts:!0,extension:function(e){return e.addDep(a["default"])}};t["default"]=d},661:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var i=n(662).TimeSeries;t["default"]=i},662:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0;var a=i(n(663));t.TimeSeries=a["default"]},663:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(204)),r=i(n(201)),o=i(n(664)),s=i(n(690)),l=i(n(694)),c=i(n(707)),d=i(n(701)),u=i(n(708)),h=n(187),f=n(366),p=i(n(423)),g=i(n(425)),m=i(n(710)),v=i(n(711)),y=n(373),b=i(n(712)),_=i(n(713)),x=n(386),k=i(n(714)),S=i(n(407)),w=i(n(417)),E=i(n(716)),C=i(n(734)),j=i(n(735)),D=i(n(793)),M=i(n(795)),T=i(n(796)),I=i(n(801)),L=i(n(802)),A=i(n(761)),F=i(n(804)),O=i(n(813)),P=i(n(822)),N=i(n(824)),B=i(n(825)),R=i(n(827)),H=i(n(829)),G=h.regex.dropHash,U=function(e,t){return e.getSchema().filter(t).map(function(e){return e.name})},q=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Y=function(e){return e.map(function(e){return{x:e.x,y:e.y,plots:(0,c["default"])(e.x.map(function(e){return e.index}),e.y.map(function(e){return e.index})).map(function(e){return{x:e[0],y:e[1]}})}})},V=function(e){return+e.split("_").pop()},z=function(e){return"date"===e.type||"interval"===e.type},W=function(e){return"number"===e.type},X=function(e){return"string"===e.type},J=(0,u["default"])(o["default"]),K=function(e,t){return J(function(e,n){return t.map(function(e,t,i){return{x:[{index:n,visible:t===i.length-1}],y:[{index:t,align:"left"}]}})},e)},Z=function(e,t){return J(function(e,n){return{x:[{index:n,visible:!0}],y:t.map(function(e,t){return{index:t,align:t%2==0?"left":"right"}})}},e)},$=function(e,t){"object"==typeof e&&(e["line-height"]||(e["line-height"]=1.2*(parseFloat(e["font-size"])||t||10)+h.PXSTRING))},Q=function(e,t){for(var n in e)e[n]._fc_info.table=e[n]._fc_info.filter?t.table.query([e[n]._fc_info.filterInfo.query]):t.table,e[n]._fc_info.filterInfo.table=e[n]._fc_info.table,re(e[n])},ee=function(e,t){for(var n in e)e[n]._fc_info.table=t.table,e[n]._fc_info.group=n,re(e[n])},te=function(e,t){for(var n in e)e[n]._fc_info.table=t.table,e[n]._fc_info.groupItems=t.groupItems,e[n]._fc_info.group=t.group,re(e[n])},ne=function(e){var t=e.op,n=e.operands,i=[];if(e.filter){for(var a in n){var r;if(n.hasOwnProperty(a))(r=i).push.apply(r,Object.keys(n[a]))}i=(0,l["default"])(i)}else i=Object.keys(n);return i.map(function(e){return{column:e,operation:t}})},ie=function(e,t,n,i){void 0===t&&(t=[]);var a=function(a){if("plottype"!==a){var r=function(e){return e.column===a&&e.operation===i};(t.length>0?(0,o["default"])(function(e){return n.filter(r).map(function(t){return[e,t.column,t.operation]})},t).map(function(e){return e.join(" - ")}):n.filter(r).map(function(e){return[e.column,e.operation].join(" - ")})).forEach(function(t){return e[a].push(t)})}};for(var r in e)a(r)},ae=function(e,t){var n=function(n){var i=e[n]._fc_info.binDecider,a=e[n]._fc_info.chart,r=i.getRangeThreshold(),s=[{column:e[n]._fc_info.bin,timeUnit:x.DatetimeUnits[q(r[0].name())],binSize:r[1],startValue:e[n]._fc_info.totalStart}],l=t.group,c=t.groupItems,d=t.pivot,u=t.table,h=function(e){return(0,f.filter)(function(t,n){return t[n[l]]===e})};for(var p in e[n])"aggregate"===p&&function(){var t,g=e[n][p]._fc_info,m=[],v=void 0,y=[],b=[],_=[];for(var k in g)m.push({op:k,operands:g[k],filter:l});if(t=(0,o["default"])(ne,m),l){var S=c.map(h).map(function(e){return u.query([e])});d?(v=(0,f.pivot)(s,d,t),S.forEach(function(e){y.push(e.query([v])),b.push(e.unique(d))})):(v=(0,f.groupBy)(s,t),y=S.map(function(e){return e.query([v])}))}else d?(v=(0,f.pivot)(s,d,t),_=u.unique(d)):v=(0,f.groupBy)(s,t),y=[u.query([v])];a.addEventListener("focusLimitChanged",function(){r=i.getRangeThreshold(),s=[{column:e[n]._fc_info.bin,timeUnit:x.DatetimeUnits[q(r[0].name())],binSize:r[1],startValue:e[n]._fc_info.totalStart}],d?v._updateArgs(s,d,t):v._updateArgs(s,t)}),m.forEach(function(i){var a=i.operands;l?c.forEach(function(r,o){var s=a[r];s.table=y[o],s.position=e[n]._fc_info.bin,s.filterItem=r,ie(s,b[o],t,i.op)}):(a.table=y[0],a.position=e[n]._fc_info.bin,ie(a,_,t,i.op))})}()};for(var i in e)n(i)},re=function(e){for(var t in e){var n=e[t];"filter"===t?Q(n,e._fc_info):"group"===t?ee(n,e._fc_info):"pivot"===t?te(n,e._fc_info):"bin"===t&&ae(n,e._fc_info)}},oe=function(e,t){var n,i,a,r,o,s,l;t?(n=e.config.contextPanels,i=e.config.contextAxesX,a=e.config.contextAxesY,r=e.getFromEnv("contextBins"),o=e.getFromEnv("contextScalesX"),s=e.getFromEnv("contextScalesY"),l=e.config.contextTableMap):(n=e.config.focusPanels,i=e.config.focusAxesX,a=e.config.focusAxesY,r=e.getFromEnv("focusBins"),o=e.getFromEnv("focusScalesX"),s=e.getFromEnv("focusScalesY"),l=e.config.focusTableMap);for(var c=0,d=n.length;c<d;c++)for(var u=n[c].plots,p=function(t,n){var c=u[t],d=i[c.x],p=a[c.y],g=r[c.x],m=g.getRangeThreshold(),v=g.getBinDomain().map(Number),b=o[c.x],_=s[c.y],x=l;c.plots||(c.plots=[]),d.binDecider=g,d.scale=b,p.scale=_,d.filter&&(x.filter||(x.filter={}),x=x.filter,d.filterInfo.query=(0,f.between)(d.filter[0],v[0]-2*m[2],v[1]+2*m[2]),x["x__FC_OP_SEP__"+c.x]||(x["x__FC_OP_SEP__"+c.x]={_fc_info:{filter:d.filter[0],filterInfo:d.filterInfo,start:v[0],end:v[1]}}),x=x["x__FC_OP_SEP__"+c.x]),p.filter&&(x||(x.filter={}),(x=x.filter)["y__FC_OP_SEP__"+c.y]||(x["y__FC_OP_SEP__"+c.y]={_fc_info:{filter:p.filter[0]}}),x=x["y__FC_OP_SEP__"+c.y]),p.plot.forEach(function(t,n){var i=x,a=[];if(t.group){var r=t.group;x.group||(x.group={}),(x=x.group)[r]||(x[r]={_fc_info:{}}),x[r]._fc_info.groupItems=a=e.config.dataTable.unique(r),x=x[r]}if(t.stack){var o=t.stack;x.pivot||(x.pivot={}),(x=x.pivot)[o]||(x[o]={_fc_info:{pivot:o}}),x=x[o]}if(d.bin&&(x.bin||(x.bin={}),(x=x.bin)["x__FC_OP_SEP__"+c.x]||(x["x__FC_OP_SEP__"+c.x]={_fc_info:{chart:e,bin:d.bin[0],binDecider:g,totalStart:+y.timeYear.floor(new Date(e.config.dataTable.min(d.bin[0])))}}),x=x["x__FC_OP_SEP__"+c.x]),p.bin&&(x.bin||(x.bin={}),(x=x.bin)["y__FC_OP_SEP__"+c.y]||(x["y__FC_OP_SEP__"+c.y]={_fc_info:{bin:p.bin[0]}}),x=x["y__FC_OP_SEP__"+c.y]),x.aggregate||(x.aggregate={_fc_info:{}}),"candlestick"===t.type||"ohlc"===t.type)for(var s=t.group?a.length:1,l=0;l<s;++l){var u={plottype:t.type,typeinnavigator:t.typeinnavigator},f=t.group?a[l]:h.UNDEF;if(t.open){x.aggregate._fc_info.first||(x.aggregate._fc_info.first={});var m=x.aggregate._fc_info.first;f&&!m[f]&&(m[f]={}),f?m[f][t.open]||(m[f][t.open]=[]):m[t.open]||(m[t.open]=[]),u.open=f?m[f][t.open]:m[t.open]}if(t.high){x.aggregate._fc_info.max||(x.aggregate._fc_info.max={});var v=x.aggregate._fc_info.max;f&&!v[f]&&(v[f]={}),f?v[f][t.high]||(v[f][t.high]=[]):v[t.high]||(v[t.high]=[]),u.high=f?v[f][t.high]:v[t.high]}if(t.low){x.aggregate._fc_info.min||(x.aggregate._fc_info.min={});var b=x.aggregate._fc_info.min;f&&!b[f]&&(b[f]={}),f?b[f][t.low]||(b[f][t.low]=[]):b[t.low]||(b[t.low]=[]),u.low=f?b[f][t.low]:b[t.low]}if(t.close){x.aggregate._fc_info.last||(x.aggregate._fc_info.last={});var _=x.aggregate._fc_info.last;f&&!_[f]&&(_[f]={}),f?_[f][t.close]||(_[f][t.close]=[]):_[t.close]||(_[t.close]=[]),u.close=f?_[f][t.close]:_[t.close]}var k=x.aggregate._fc_info;u.tableInfo=(f?[k.first[f],k.max[f],k.min[f],k.last[f]]:[k.first,k.max,k.min,k.last]).filter(function(e){return!!e})[0],u.value=t.value,u.plotInAxisIndex=n,c.plots.push(u)}else{x.aggregate._fc_info[t.aggregation]||(x.aggregate._fc_info[t.aggregation]={});var S=x.aggregate._fc_info[t.aggregation];if(t.group)for(var w=0;w<a.length;++w){var E=a[w];S[E]||(S[E]={}),S[E][t.value]||(S[E][t.value]=[]),c.plots.push({plottype:t.type,typeinnavigator:t.typeinnavigator,tableInfo:S[E],value:S[E][t.value],stack:t.stack,plotInAxisIndex:n})}else S[t.value]||(S[t.value]=[]),c.plots.push({plottype:t.type,typeinnavigator:t.typeinnavigator,tableInfo:S,value:S[t.value],stack:t.stack,plotInAxisIndex:n})}x=i})},g=0,m=u.length;g<m;g++)p(g)},se=function(e,t,n,i,a,r){var o=a;(0,b["default"])(o)&&0!==o||(o=10);var s=e>0&&isFinite(e)?function(e,t){var n=.9*e;return t?Math.min(n,1):n}(e,r):1,l=(0,b["default"])(n)&&n>0&&n<e?n:s,c=t>0&&isFinite(t)?t:s+ +o;return[l,(0,b["default"])(i)&&i>l?i:1.2*c]},le=function(e,t,n,i,a){var r=t,o=e,s=n,l=i;!isFinite(o)&&(o=h.UNDEF),!isFinite(r)&&(r=h.UNDEF),!isFinite(s)&&(s=h.UNDEF),!isFinite(l)&&(l=h.UNDEF);var c=s<o?s:o!==h.UNDEF?function(e,t){var n=e-Math.abs(.1*e);return n>0&&t?0:n}(o,a):0,d=c<0&&(l<0||r<0);return[c,l>r?l:r!==h.UNDEF?d&&a?0:r+Math.abs(.2*r):c+1]},ce=function me(e){for(var t in e)if(e.hasOwnProperty(t)){var n="stroke-dasharray"===t;"object"==typeof e[t]?me(e[t]):n&&("string"==typeof(i=e[t])&&"none"!==i)&&(e[t]=e[t].replace(/^\s+|\s+$/g,"").replace(/,/g," ").split(" ").map(function(e){return+e}))}var i},de=function ve(e){for(var t in e)e.hasOwnProperty(t)&&("object"==typeof e[t]?ve(e[t]):"opacity"!==t&&"stroke-opacity"!==t&&"fill-opacity"!==t||(e[t]=Math.max(0,Math.min(1,+e[t]))))},ue=function(e){e.dispose&&e.dispose()},he=function ye(e,t,n){void 0===n&&(n=h.stubFN);for(var i=Object.keys(e),a=i.length,r=!0,o=0;o<a&&r;++o){var s=i[o],l=e[s];if("_fc_info"===s||"table"===s){var c="table"===s?l:l.table;c&&c!==t&&(n(c),r=!1)}else"aggregate"===s?ye(l._fc_info,t,n):(0,m["default"])(l)&&ye(l,t,n)}},fe=function(e,t,n){switch(e){case"plot":n.showWarning("02362480","param"," Timeseries"," Some plot configurations were ignored. Please provide valid values to the plot attribute within a "+t+"Axis configuration.");break;case"axis":n.showWarning("08927060","param"," Timeseries","Some "+t+"Axis configurations were ignored. Please provide a valid value to the plot attribute within the "+t+"Axis configurations.");break;case"fullaxis":n.showWarning("08963401","param"," Timeseries","All "+t+"Axis configurations were ignored. Please provide a valid value to the plot attribute within the "+t+"Axis configurations. Defaulting to showing all numeric columns in separate canvases.")}},pe=function(e){void 0===e&&(e={});var t,n="style='";for(t in e)n+=t+": "+e[t]+"; ";return n+="'"},ge=function(e){function t(){var t;t=e.call(this)||this;var n=(0,a["default"])(t);return n.addToEnv("getStyleDef",function(e){void 0===e&&(e={});var t,i=e,a=n.getFromEnv("textStyle");if("string"==typeof i){var r=n.getFromEnv("dataSource").styledefinition;t={},r&&i.split(/\s+/g).forEach(function(e){return(0,h.extend2)(t,r[e])})}return t&&(i=t),ce(i),de(i),(i["font-size"]||0===i["font-size"])&&$(i,a["font-size"]),i}),n.deregisterFactory("canvas"),n.registerFactory("background",L["default"]),n.registerFactory("caption",D["default"]),n.registerFactory("legend",N["default"]),n.registerFactory("panel",j["default"]),n.registerFactory("selectorToolbar",B["default"],["timeNavigator","canvas"]),n.registerFactory("timeNavigator",F["default"]),n.registerFactory("standardRangeSelector",H["default"],["selectorToolbar"]),n.registerFactory("customRangeSelector",O["default"],["selectorToolbar"]),n.registerFactory("multicanvasCrosslineManager",R["default"],["mouseTracker"]),n.registerFactory("toolbarManager",P["default"],["standardRangeSelector","customRangeSelector"]),t}(0,r["default"])(t,e),t.getName=function(){return"timeseries"};var n=t.prototype;return n.getName=function(){return"timeseries"},n.__setDefaultConfig=function(){var e=this.config;e.skipConfigureIteration={},e.canvasAxisMap={},e.scaleYDsMap={},e.palettecolors=["#5D62B5","#29C3BE","#F2726F","#FFC533","#62B58F","#BC95DF","#67CDF2"],e.defaultLegendTextStyle={"font-family":h.DEFAULT_FT_FONT,"font-weight":"normal","font-style":"normal","font-size":"12px",fill:"#5F5F5F","line-height":"14px",opacity:"1","fill-opacity":"1"},e.defaultTooltipStyle={"background-color":(0,h.convertColor)("#ffffff","90"),color:"#5f5f5f","border-color":"#e8e8e8","border-width":"1px","border-radius":"0px","line-height":1,"font-family":h.DEFAULT_FT_FONT,padding:"3px",opacity:.9},this.addToEnv("textStyle",{"font-family":"sans-serif","font-size":"10",fill:"#000000","line-height":"12"}),e.contextPanels=h.UNDEF,e.contextLimit=e.focusLimit=h.UNDEF,e.legendMap={}},n.setTooltipStyle=function(){var e=this.getFromEnv("tooltipStyle"),t=this.getFromEnv("baseTextStyle"),n=this.getFromEnv("toolTipController");e.container=Object.assign({},this.config.defaultTooltipStyle,t,e.text,e.container),e.header=Object.assign({"font-size":(0,h.pluck)(e.container["font-size"],"12px"),"font-weight":(0,h.pluck)(e.container["font-weight"],"bold"),"font-family":e.container["font-family"],padding:"5px 5px 0",color:(0,h.getLightColor)("#5f5f5f",76)},e.header),e.body=Object.assign({"font-size":(0,h.pluck)(e.container["font-size"],"11px"),"font-weight":(0,h.pluck)(e.container["font-weight"],"normal"),"font-family":e.container["font-family"],padding:"0 5px 5px"},e.body),n.setStyle(e.container),n.setRestrictionWithinCanvas({bottom:!0}),e.headerStyleString=pe(e.header),e.bodyStyleString=pe(e.body)},n.sanitizeData=function(t){var n=this;e.prototype.sanitizeData.call(this,t);var i=(0,M["default"])(U(t.data,z),t.xaxis,!1),a=i.expandedAxis,r=i.actions,o=(0,M["default"])(U(t.data,W),t.yaxis),s=o.expandedAxis,l=o.actions;t.xaxis=a,t.yaxis=s,r.forEach(function(e){return fe(e,"x",n)}),l.forEach(function(e){return fe(e,"y",n)})},n.getDSdef=function(){return A["default"]},n._updateVisuals=function(){e.prototype._updateVisuals.call(this),this.getFromEnv("paper").config.noDefaultAttribs=!0},n.domainValidator=function(e,t,n){void 0===n&&(n=[]);var i,a=this.getFromEnv("contextBins")[0].getBinMin(),r=e[0],o=e[1],s=t[0],l=t[1],c=+e[0],d=+e[1],u=+t[0],h=+t[1];if(n.length&&(i=Math.abs(d-c-(+n[1]-+n[0]))>1?"squeeze":"drag"),c<u&&(r=s,o="drag"===i?new Date(d+(u-c)):o),d>h&&(o=l,r="drag"===i?new Date(c-(d-h)):r),d<u&&(o=s),c>h&&(r=l),c>d){var f=[o,r];r=f[0],o=f[1]}return o-r>=3*a[2]?(this.fireEvent("domainValidated"),[+r,+o]):this.getFocusLimit()||this.getContextLimit()},n.configureAttributes=function(e){var t=this.config,n=new w["default"](this),i=new v["default"],a=e.chart,r=function(e){void 0===e&&(e=[]);var t=[];return(0,_["default"])(e)?t=e.slice():(0,k["default"])(e)&&(t=e.split(/\s*,\s*/)),(t=t.filter(function(e){return!!e})).map(function(e){return(0,h.hashify)(e)})}(a.palettecolors),o=this.getFromEnv("getStyleDef"),l=e.legend,c=o((a.style||{}).text),d=t.legendMap,u={},f=this.getFromEnv("legendMap"),p=this.getFromEnv("dataSource"),g=(0,h.extend2)(this.getFromEnv("textStyle"),c),y=(0,m["default"])(e.tooltip)?e.tooltip:{},b=(0,m["default"])(y.style)?y.style:{},x=this.getChildren("legend")&&this.getChildren("legend")[0],S=o(l&&l.item&&l.item.style&&l.item.style.text),j=[];for(var D in this.addToEnv("baseTextStyle",Object.assign({"font-family":h.DEFAULT_FT_FONT},c)),S=Object.assign({},this.getFromEnv("baseTextStyle"),S),t.mergedLegendStyle=(0,h.extend2)((0,h.extend2)({},t.defaultLegendTextStyle),S),t.focusTableMap&&he(t.focusTableMap,t.focusTableMap._fc_info.table,ue),t.contextTableMap&&(he(t.contextTableMap,t.contextTableMap._fc_info.table,ue),t.contextTableMap=h.UNDEF),this.addToEnv("chart-attrib",a),n.configure(),this.addToEnv("color-manager",n),r.length&&(t.palettecolors=r),i.setRange(t.palettecolors),this.addToEnv("ordinalScale",i),t.dataTable=e.data,t.showLegend=(0,h.pluckNumber)(a.showlegend,1),t.navigatorEnabled=(0,h.pluckNumber)(p.navigator&&p.navigator.enabled,a.enablenavigator,1),t.showTooltip=(0,h.pluckNumber)(y.enabled,a.showtooltip,1),t.interCanvasSpace=(0,h.pluckNumber)(a.intercanvasspace,20),t.multiCanvas=(0,h.pluckNumber)(a.multicanvas,1),this.addToEnv("UTC",(0,h.pluck)(a.enableutc,!1)),this.addToEnv("dateAPI",function(e,t,n){return e["get"+(n?"UTC":"")+t]()}),j=e.xaxis.slice(0,1).map(function(e){return Object.assign({},e,{bin:e.plot.map(function(e){return e.value})})}),t.focusAxesX=j.map(function(e){return Object.assign({},e,{filter:e.plot.map(function(e){return e.value}),filterInfo:{}})}),t.focusAxesY=(0,I["default"])(U(t.dataTable,X),e.yaxis,e.series,e.stack,e.group),t.focusPanels=Y((0,T["default"])(t.focusAxesX,t.focusAxesY,e.canvas,t.multiCanvas?K:Z)),t.pixelMultiplier=1,t.focusAxesY.forEach(function(e){var n,i=e.plot,a=0;i.forEach(function(e){var i=e.stack,r=e.group,o=e.value,s=e.type,l="column"===s;if(l&&(n=r?t.dataTable.unique(r):new Array(1),a+=n.length),i){if(u[i])return;u[i]=t.dataTable.unique(i)}else if(r){if(u[r])return;u[r]=l?n:t.dataTable.unique(r)}else if("ohlc"!==s&&"candlestick"!==s){if(u[o])return;u[o]=[o]}}),t.pixelMultiplier=Math.max(a,t.pixelMultiplier)}),u){u[D].forEach(function(e){d[e]||(d[e]={visibility:!0,series:e})})}if(this.addToEnv("legendMap",d),f){!function e(t,n){for(var i in t)if(t.hasOwnProperty(i)){var a=n&&n[i],r=t[i];r.hasOwnProperty("visibility")?a?(r.visibility||(x.getItem(r.legendItemId).removeLegendState("hidden"),r.visibility=!0),n[i]=r):x&&x.disposeItem(r.legendItemId):e(r,a)}}(f,d)}t.contextAxesX=(0,s["default"])(j),t.contextAxesY=(0,s["default"])(t.focusAxesY),(0,E["default"])(this),(0,C["default"])(this),t.focusTableMap={_fc_info:{table:t.dataTable}},oe(this),t.navigatorEnabled&&(t.contextPanels=Y((0,T["default"])(t.contextAxesX,t.contextAxesY,[],function(e,t){return e.map(function(e,n){return{x:[{index:n}],y:t.map(function(e,t){return{index:t,visible:!1}})}})})),t.contextTableMap={_fc_info:{table:t.dataTable}},oe(this,!0)),re(t.focusTableMap),re(t.contextTableMap),t.printOption={enabled:(0,h.pluckNumber)(a.printshowbutton,a.showprintmenuitem,0)},t.toolbarPosition=function(e){var t=e;switch(t){case"tr":case"rt":case"top right":case"right top":t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl";break;default:t="tr"}return t}((0,h.pluck)(a.toolbarposition,"tr").toLowerCase()),t.toolbarHAlign="left"===(""+a.toolbarhalign).toLowerCase()?"l":t.toolbarPosition.charAt(1),t.toolbarVAlign="bottom"===(""+a.toolbarvalign).toLowerCase()?"b":t.toolbarPosition.charAt(0),t.link=a.clickurl,this.addToEnv("linkClickFN",(0,h.getLinkAction)(this.getFromEnv("dataSource"),this)),this.addToEnv("chartConfig",t),this.addToEnv("tooltipStyle",{container:o(b.container),text:o(b.text),header:o(b.header),body:o(b.body)}),this.addToEnv("style",{outCancolor:g.fill,fontSize:g["font-size"],outCanfontFamily:g["font-family"]}),this.createBaseComponent(),this.getFromEnv("animationManager").setAnimationState(this._firstConfigure?"initial":"update"),t.prediction=function(e,t){var n={},i={};if(e.extensions&&(0,m["default"])(e.extensions.prediction)?(n=e.extensions.prediction).enabled=!0:n={enabled:!1},(0,m["default"])(n.style))for(i in n.style)n.style.hasOwnProperty(i)&&(n.style[i]=t(n.style[i]));else n.style={};return n}(p,o),this.addToEnv("prediction",t.prediction),this._createToolBox(),this.configureChildren(),this.setTooltipStyle()},n._addLegend=function(e){var t,n,i,a=this.config,r=a.mergedLegendStyle,o=e.series,s=this.getFromEnv("ordinalScale").getRangeValue(o),l=this.getFromEnv("legend"),c=(0,h.getLightColor)(s,60).replace(G,h.HASHSTRING);a.showLegend&&(t={FCcolor:{color:s,angle:0,ratio:"0",alpha:"100"}},n={label:o},(i=l.getItem(e.legendItemId))||(e.legendItemId=l.createItem(),i=l.getItem(e.legendItemId),this.addExtEventListener("fc-click",function(){var t=function(e){return e._flushResult&&e._flushResult({legendInteracted:!0})};e.visibility?(e.visibility=!1,i.setLegendState("hidden")):(e.visibility=!0,i.removeLegendState("hidden")),a.focusTableMap&&he(a.focusTableMap,a.focusTableMap._fc_info.table,t),a.contextTableMap&&he(a.contextTableMap,a.contextTableMap._fc_info.table,t)},i)),i.configure(n),i.setStateCosmetics("default",{symbol:{fill:(0,h.toRaphaelColor)(t),rawFillColor:s,stroke:(0,h.toRaphaelColor)(c)},text:Object.assign({},r,{fill:(0,h.convertColor)(r.fill,r.opacity*r["fill-opacity"]*100)})}))},n._createGroup=function(e,t){return void 0===e&&(e={}),this.getFromEnv("animationManager").setAnimation({attr:e,container:t,el:"group",component:this,label:"group"})},n._createLayers=function(){var e,t=this.getFromEnv("animationManager"),n=this.getContainer("parentgroup");!n&&(n=this.addContainer("parentgroup",t.setAnimation({el:n||"group",attr:{name:"parentgroup"},component:this}))),this.getChildContainer("tropo")||this.addChildContainer("tropo",this._createGroup({name:"chart-tropo"},n)),this.getChildContainer("strato")||this.addChildContainer("strato",this._createGroup({name:"chart-strato"},n)),this.getChildContainer("meso")||this.addChildContainer("meso",this._createGroup({name:"chart-meso"},n)),this.getChildContainer("thermo")||this.addChildContainer("thermo",this._createGroup({name:"chart-thermo"},n)),this.getChildContainer("exo")||(e=this.addChildContainer("exo",this._createGroup({name:"chart-exo"},n))),this.getChildContainer("toolbar-master")||this.addChildContainer("toolbar-master",this._createGroup({name:"toolbar-master"},e)),this.getChildContainer("legendGroup")||this.addChildContainer("legendGroup",this._createGroup({name:"legend-group"},e))},n.manageSpace=function(){var e,t,n,i,a,r,o,s,l,c,d,u,f,p,m,v,y=this,b=y.config,_=b.focusPanels,x=b.canvasAxisMap,k=y.getFromEnv("focusScalesY"),S=y.getFromEnv("focusScalesX"),w=y.getChildren("caption"),E=y.getFromEnv("selectorToolbar"),C=y.getFromEnv("toolbar"),j=C.getLogicalSpace(),D=y.getChildren("legend")&&y.getChildren("legend")[0],M=y.getChildren("background")[0],T=y.getChildren("canvas_0"),I=0,L=0,A=y.getChildren("timeNavigator"),F=0,O={left:0,right:0},P=0,N=0,B=e=+y.getFromEnv("chartWidth"),R=t=+y.getFromEnv("chartHeight"),H=0,G=0,U=.03*e,q=.03*t,Y=0,z=b.interCanvasSpace;if(N+=(0,h.pluckNumber)(b.marginTop,q),R-=(0,h.pluckNumber)(b.marginBottom,q),P+=(0,h.pluckNumber)(b.marginLeft,U),B-=(0,h.pluckNumber)(b.marginRight,U),M.setDimension({height:t,width:e}),M.setTranslation(0,0),_.forEach(function(e,t){var n=x["canvas_"+t].y,i=.6*(B-P)/(n.length||1);n.map(function(t){var n=V(t),a=y.getChildren(t)[0].setDimension({width:i});return e.y[n].overlap?{}:a}).forEach(function(e){"number"==typeof e.left?O.left=Math.max(O.left,e.left):O.right=Math.max(O.right,e.right)})}),_.forEach(function(e,t){var n,i,a,r=x["canvas_"+t].y,o=0,s=0;r.forEach(function(e){n=y.getChildren(e)[0],a=n.getAlignment(),i=n.updateMaxLabelSpace(O[a]),o+=(0,h.pluckNumber)(i.left,0),s+=(0,h.pluckNumber)(i.right,0)}),H=(0,g["default"])([H,o]),G=(0,g["default"])([G,s])}),_.forEach(function(e,t){var n=x["canvas_"+t].x,i=.6*(R-N)/(n.length||1);n.map(function(t){var n=V(t),a=y.getChildren(t)[0].setDimension({height:i});return e.x[n].overlap?{}:a}).forEach(function(e){Y+=(0,h.pluckNumber)(e.top,e.bottom,0)})}),P+=H,B-=G,n=R-N,w&&w.length?(s=w[0].setDimension({width:B-P-j.width,height:.3*n}),w[0].setTranslation(P,N),v=Math.max(s.height,j.height)):v=j.height,j.height&&(C.setDimension({x:B-j.width,y:N}),C.manageSpace()),N+=v,a=Math.max(0,B-P),m=E.getLogicalSpace().height,E.setDimension({x:P,y:N,width:a}),E.manageSpace(),N+=m,l=Y+(_.length-1)*z,n=Math.max(0,R-N-l),D&&(p=Math.max(0,D.setDimension({height:.1*n,width:a}).height),R-=p,n-=p,D.setTranslation(P,R)),A&&A.length&&(o=.7*n/(_.length||1),c=.3*n/(A.length||1),A.forEach(function(e,t){f=e.getChildren("brush")[0],i=f.getLabelSpace()+e.config.scrollbarHeight,d=Math.min(Math.max(Math.min(c,.8*o),48),60),u=d+i,e.setDimension({width:a,height:u}),e.setTranslation(P,R-(A.length-t)*u),F+=u}),F>n?A.forEach(function(e){return e.setDimension({width:0,height:0})}):n-=F),r=Math.max(0,n/(_.length||1)),T&&T[0]){var W=T[0].getCanvasBorder();I=W.topBorder+W.bottomBorder,L=W.leftBorder+W.rightBorder}k.forEach(function(e){return e.setRange([r-I-6,0])}),S.forEach(function(e){return e.setRange([0,a-L])}),_.forEach(function(e,t){var n="canvas_"+t,i=x[n],o=i.x,s=i.y,l=e.x,c=e.y,d=P,u=P+a,h=y.getChildren(n)[0],f=h.getCanvasBorder(),p=N+f.topBorder,g=p+r,m=[];h.setPadding({top:6}),h.setDimension({width:a,height:r}),o.forEach(function(e){var t=l[V(e)],n=y.getChildren(e)[0],i=n.getDimension();t.overlap?m.push(e):"top"===t.align?(n.setTranslation(P+f.leftBorder,p),p+=i.top):"bottom"===t.align&&(n.setTranslation(P+f.leftBorder,g),g+=i.bottom)}),h.setTranslation(P,p),m.forEach(function(e){var t=l[V(e)],n=y.getChildren(e)[0],i=n.getDimension();"top"===t.align?n.setTranslation(P+f.leftBorder,p):"bottom"===t.align&&n.setTranslation(P+f.leftBorder,p+r-i.bottom)}),s.forEach(function(e){var t=p+6,n=c[V(e)],i=y.getChildren(e)[0],r=i.getDimension();n.overlap?"left"===n.align?i.setTranslation(P,t):"right"===n.align&&i.setTranslation(P+a-r.right,t):"left"===n.align?(d-=r.left,i.setTranslation(d,t)):"right"===n.align&&(i.setTranslation(u,t),u+=r.right)}),N=g+z})},n._setDataLabelStyle=function(){return this},n._checkInvalidData=function(){var e=this.getFromEnv("dataSource"),t=this.getFromEnv("chartInstance");return!e.data&&(t.__state.dataReady=!1,t.jsVars.hasNativeMessage=!0,t.jsVars.drawCount+=1,!0)},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource");if(e.data&&"function"==typeof e.data.getData){var t=e.data.getData(),n=t.data,i=t.schema;return!(Array.isArray(n)&&0!==n.length&&Array.isArray(i)&&i.filter(function(e){return"date"===e.type}).length&&i.filter(function(e){return"number"===e.type}).length)}return!0},n.setYScaleLimit=function(e,t,n,i){void 0===i&&(i=!0);var a,r,o,s,l=this,c=l.config,d=c.scaleYDsMap,u=d[e],h=function(t){var n=t.scale;return n&&n.getId()===e},f=c.focusAxesY.find(h),g=c.contextAxesY.find(h),m=f||g,v=m&&m.scale;if(v){for(var y in u||(u=d[e]={}),(a=u[t])||(a=u[t]={}),a.limit=n,a.baseRequired=i,u)if(u.hasOwnProperty(y)){var b=u[y],_=(0,p["default"])([r,o].concat(b.limit));r=_[0],o=_[1],s=s||b.baseRequired}"log"===v.getType()?v.setDomain(se(r,o,m.min,m.max,m.base,s)):v.setDomain(le(r,o,m.min,m.max,s)),l.config.focusPanels.forEach(function(e,t){var n="canvas_"+t,i=l.getChildren(n),a=i&&i[0],r=l.config.canvasAxisMap[n],o=r&&r.y;o&&a&&(a.asyncDraw(),o.forEach(function(e){l.getChildren(e).forEach(function(e){e.getScale()===v&&(e.placeAxis(),e.asyncDraw())})}))})}},n.setXScaleLimit=function(e,t,n){var i,a,r,o,s,l=this,c=l.config,d=c.scaleYDsMap,u=d[e],h=l.getContextLimit(),f=h[0],g=h[1],m=function(t){var n=t.scale;return n&&n.getId()===e},v=c.focusAxesX.find(m),y=c.contextAxesX.find(m),_=v||y,x=_&&_.scale;if(x){for(var k in u||(u=d[e]={}),(i=u[t])||(i=u[t]={}),i.limit=n,u)if(u.hasOwnProperty(k)){var S=u[k],w=(0,p["default"])([a,r].concat(S.limit));a=w[0],r=w[1]}if(v){var E=l.getFocusLimit();o=E[0],s=E[1],+o===f&&(0,b["default"])(a)&&(o=Math.min(o,a)),+s===g&&(0,b["default"])(r)&&(s=Math.max(s,r)),x.setDomain([o,s])}else o=(0,b["default"])(a)?Math.min(f,a):f,s=(0,b["default"])(r)?Math.max(g,r):g,x.setDomain([o,s]);l.config.focusPanels.forEach(function(e,t){var n="canvas_"+t,i=l.getChildren(n),a=i&&i[0],r=l.config.canvasAxisMap[n],o=r&&r.x;o&&a&&(a.asyncDraw(),o.forEach(function(e){l.getChildren(e).forEach(function(e){e.getScale()===x&&(e.placeAxis(),e.asyncDraw())})}))})}},n.setFocusLimit=function(e){void 0===e&&(e=[]);var t=this.config,n=this.domainValidator(e,this.getContextLimit(),t.focusLimit),i=t.focusAxesX[0],a=this.getFromEnv("focusBins")[0],r=this.getFromEnv("focusScalesX")[0],o=this.getFocusLimit();t.focusLimit=n,a.setBinDomain(n);var s=a.getRangeThreshold();r.setRangeThreshold(s),this.fireEvent("focusLimitChanged"),(0,d["default"])(n,o)||i.filterInfo&&i.filterInfo.query&&(i.filterInfo.query._updateArgs(+n[0]-2*+s[2],+n[1]+2*+s[2]),i.filterInfo.table._flushResult(),this.updateVerticalAxesWidth())},n.updateVerticalAxesWidth=function(){var e,t=this,n=t.config.canvasAxisMap,i=Object.keys(n),a={left:0,right:0};i.forEach(function(i){n[i].y.forEach(function(n){t.getChildren(n).forEach(function(t){"number"==typeof(e=t.getDimension()).left?a.left=Math.max(a.left,e.left):a.right=Math.max(a.right,e.right)})})}),i.forEach(function(e){n[e].y.forEach(function(e){t.getChildren(e).forEach(function(e){e.updateMaxLabelSpace(a[e.getAlignment()])})})})},n.getFocusLimit=function(){var e=this.config.focusLimit;return e&&e.slice()},n.setContextLimit=function(e){void 0===e&&(e=[]);var t=this.getFromEnv("contextBins");this.config.contextLimit=e.slice(),t[0].setBinDomain(e),this.getFromEnv("contextScalesX")[0].setRangeThreshold(t[0].getRangeThreshold())},n.getContextLimit=function(){return this.config.contextLimit.slice()},t}(S["default"]);t["default"]=ge},710:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}},711:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var i="implicit",a=function(){function e(){this.unknown=i,this.domain=[],this.ordinalRange=[],this.map=new Map}var t=e.prototype;return t.setDomain=function(e){var t,n,i;for(void 0===e&&(e=[]),this.domain=[],this.map.clear(),t=0;t<e.length;++t)i=(n=e[t]).toString(),this.map.has(n)||this.map.set(i,this.domain.push(n));return this},t.getDomain=function(){return this.domain.slice()},t.setRange=function(e){return this.ordinalRange=e.slice(),this},t.getRange=function(){return this.ordinalRange.slice()},t.setUnknown=function(e){return this.unknown=e,this},t.getUnknown=function(){return this.unknown},t.copy=function(){return(new e).setDomain(this.getDomain()).setRange(this.getRange()).setUnknown(this.geUnknownn())},t.getRangeValue=function(e){var t=this.map,n=e.toString(),a=this.getRange(),r=t.get(n);if(!r){if(this.getUnknown()!==i)return this.getUnknown();r=this.domain.push(e),t.set(n,r)}return a[(r-1)%a.length]},t.getType=function(){return"ordinal"},e}();t["default"]=a},712:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return""!==e&&"number"==typeof+e&&!isNaN(+e)&&e!==Infinity&&e!==-Infinity}},713:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(419));t["default"]=function(e){return(0,a["default"])(e)&&e.length}},714:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(715));t["default"]=function(e){return(0,a["default"])(e)&&e.length}},715:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return"string"==typeof e}},716:function(e,t,n){"use strict";var i=n(181),a=n(185);t.__esModule=!0,t["default"]=void 0;var r=a(n(717)),o=n(373),s=n(381),l=i(n(718)),c=i(n(423)),d=i(n(426)),u=i(n(721)),h=i(n(725)),f=i(n(710)),p=i(n(726)),g=i(n(349)),m=i(n(730)),v=i(n(731)),y=i(n(732)),b={time:p["default"],utctime:m["default"],scaletime:u["default"],scaleutctime:h["default"],numeric:d["default"],log:l["default"]};t["default"]=function(e){var t=e.config,n=t.focusAxesX,i=n[0].binning,a=t.contextAxesX||[],l=t.dataTable,d=l.getData(),u=d.schema,h=d.data,p=e.getFromEnv("UTC"),m=[0,.8*e.getFromEnv("chartWidth")/n.length],_=function(e){var n=e.typeArg,a=e.plot,c=e.maxbinArg,d=n||"time",f=e.minbinArg,g=c,_="time"===d&&p?new r["default"]((0,v["default"])(s.utcYear,s.utcMonth,s.utcWeek,s.utcDay,s.utcHour,s.utcMinute,s.utcSecond,s.utcMillisecond,i)):new r["default"]((0,v["default"])(o.timeYear,o.timeMonth,o.timeWeek,o.timeDay,o.timeHour,o.timeMinute,o.timeSecond,o.timeMillisecond,i)),x=new(("time"===d&&p?b["scaleutc"+d]:b["scale"+d])||b.time);return _.setScale(x),(g=g?g.ms?{unit:g,multiplier:1}:g.unit?{unit:g.unit,multiplier:+g.multiplier||1}:void 0:void 0)&&_.setBinMax(g),(f=f?f.ms?{unit:f,multiplier:1}:f.unit?{unit:f.unit,multiplier:+f.multiplier||1}:void 0:void 0)&&_.setBinMin(f)||_.setBinMin((0,y["default"])(u[l.indexOf(a[0].value)].format,l.indexOf(a[0].value),h,_.getStandardBins(),_.intervalIndexMap)),_.setBinRange(m),_.setRangeThreshold(t.pixelMultiplier*r.DEFAULT_THRESHOLD_PIXELS),_},x=function(e){var t,n,i,a,r=[],o=[],s=e.length;for(t=0;t<s;t++)r[t]=(n=e[t],i=void 0,a=void 0,i=n.typeArg,n.plot,new(("time"===(a=i||"time")&&p?b["utc"+a]:b[a])||b.time)),o[t]=_(e[t]),r[t].setThresholdIntervals(o[t].getStandardBins()),r[t].setBinMin(o[t].getBinMin()),r[t].setRangeThreshold(o[t].getRangeThreshold());return{scales:r,bins:o}},k=function(e){var t=e.value;return[l.min(t),l.max(t)]},S=x(a),w=x(n),E=function(e){var t,n,i=e.plot.map(k),a=(0,c["default"])((t=[]).concat.apply(t,i),Number),r=e.plot[0].value,o=e.format||u.find(function(e){return e.name===r}).format,s=g["default"].parser(o),l=(0,f["default"])(e.initialinterval)?e.initialinterval:{},d=function(e,t){var n=s.parse(e);return null===n?t:n<t?+n:t},h=function(e,t){var n=s.parse(e);return null===n?t:n>t?+n:t};return a[0]=d(e.min,a[0]),a[1]=h(e.max,a[1]),(n=a.slice())[0]=h(l.from,n[0]),n[1]=d(l.to,n[1]),{focus:n=(0,c["default"])(n),context:a}}(a[0]),C=E.focus,j=E.context;e.addToEnv("contextScalesX",S.scales),e.addToEnv("focusScalesX",w.scales),e.addToEnv("contextBins",S.bins),e.addToEnv("focusBins",w.bins),e.setContextLimit(j),e.setFocusLimit(C)}},717:function(e,t,n){"use strict";t.__esModule=!0,t.DEFAULT_THRESHOLD_PIXELS=t._calculateIndexOfIntervals=t["default"]=void 0;var i=4,a=function(e){return new Date(e)},r=function(e,t){for(var n=0,i=e.length-1,a=i,r=Math.floor((i+n)/2),o=t instanceof Array?t[2]:t.unit.ms*t.multiplier;n<i;){if(o<e[r][2])a=i=r-1;else{if(!(o>e[r][2])){a=r;break}n=r+1}r=Math.floor((i+n)/2)}return t instanceof Array?e[a]:e[a][2]===o?e[a]:[e[a-1][0],t.multiplier,o]},o=function(e){var t,n={};for(t=e.length-1;t>=0;t--)n[e[t][0].name()]=t;return n};t._calculateIndexOfIntervals=o,t.DEFAULT_THRESHOLD_PIXELS=i;var s=function(){function e(e){this.setStandardBins(e),this.binRange=[0,1],this.binDomain=[0,1],this.thresholdPixels=i,this.intervalIndexMap=o(this.getStandardBins())}var t=e.prototype;return t.setStandardBins=function(e){this.standardBins=e},t.getStandardBins=function(){return this.standardBins},t.setScale=function(e){this.scale=e},t.getScale=function(){return this.scale},t._computeRangeThreshold=function(e){var t,n,i,a=this.getBinRange(),r=a[0],o=a[1],s=(t=e,n=1,i=Math.abs(r-o),Math.min(Math.max(t,n),i)),l=+this.getScale().getDomainValue(0),c=+this.getScale().getDomainValue(s),d=Math.abs(c-l),u=this.getBinMin(),h=this.getBinMax(),f=this.standardBins.findIndex(function(e){return e[2]>=d}),p=-1===f?this.standardBins.length-1:f;this.standardBins[p][2]<u[2]?this._threshold=u:h&&this.standardBins[p][2]>h[2]&&h[2]>=u[2]?this._threshold=h:this._threshold=this.standardBins[p]},t.setBinRange=function(e){return this.binRange=e.slice(),this.getScale().setRange(this.binRange),this.getScale().setDomain(this.binDomain),this._computeRangeThreshold(this.thresholdPixels),this},t.getBinRange=function(){return this.binRange},t.setBinDomain=function(e){return this.binDomain=e.slice(),this.getScale().setRange(this.binRange),this.getScale().setDomain(this.binDomain),this._computeRangeThreshold(this.thresholdPixels),this},t.getBinDomain=function(){return this.binDomain.slice().map(a)},t.setBinMin=function(e){var t=r(this.standardBins,e);return this.minBin=t,this},t.getBinMin=function(){return this.minBin},t.setBinMax=function(e){var t=r(this.standardBins,e);this.maxBin=t},t.getBinMax=function(){return this.maxBin},t.setRangeThreshold=function(e){return void 0===e&&(e=i),e!==this.thresholdPixels&&this._computeRangeThreshold(this.thresholdPixels=e),this},t.getRangeThreshold=function(){return this._threshold},e}();t["default"]=s},718:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(201)),r=i(n(719)),o=i(n(444)),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,a["default"])(t,e),t.prototype.ticks=function(e){var t,n,i,a,r,s,l,c,d,u,h,f=this.getDomain(),p=f[0],g=f[1],m=0,v=[],y=[],b=0,_=this.base,x=_>1?-1:1,k=Math.log(_)/Math.log(10)%1?4:8;if(p<=0||g<=0)return v;if(p>g){var S=this.getDomain();g=S[0],p=S[1],m=1}for(_>1?(a=t=Math.ceil(Math.log(g)/Math.log(_)),i=n=Math.floor(Math.log(p)/Math.log(_))):_>0&&_<1&&(t=Math.floor(Math.log(g)/Math.log(_)),a=n=Math.ceil(Math.log(p)/Math.log(_)),i=t),s=n,l=i;l<=a;++l){if(r=this.pows(s),void 0!==h)for(_>1?t=Math.ceil(Math.log(r)/Math.log(_)):_>0&&_<1&&(t=Math.floor(Math.log(r)/Math.log(_))),d=(Math.pow(_,t)-Math.pow(_,t+x))/(k+1),c=1;c<=k;++c)u=Math.pow(_,t+x)+d*c,v.push(u),y.push("minor"),(p>u||g<u)&&++b;v.push(r),y.push("major"),(p>r||g<r)&&++b,h=r,_>1?s++:s--}return this._tickType=y,v.length-b<=2&&(v=(0,o["default"])(p,g,e),this._tickType=void 0),this.majorTicks=m?v.reverse():v},t}(r["default"]);t["default"]=s},721:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(201)),r=n(427),o=n(373),s=i(n(722)),l=n(723),c=function(e){function t(){var t;return(t=e.call(this,o.timeYear,o.timeMonth,o.timeWeek,o.timeDay,o.timeHour,o.timeMinute,o.timeSecond,o.timeMillisecond)||this).formatters={millisecond:t._localeConverter.formatter(".%L"),second:t._localeConverter.formatter(":%S"),minute:t._localeConverter.formatter("%I:%M"),hour:t._localeConverter.formatter("%I %p"),day:t._localeConverter.formatter("%a %d"),week:t._localeConverter.formatter("%b %d"),month:t._localeConverter.formatter("%B"),year:t._localeConverter.formatter("%Y")},t.setDomain([new Date(2e3,0,1),new Date(2e3,0,2)]),t}(0,a["default"])(t,e);var n=t.prototype;return n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.formatter(e).format(n)}:function(e){return(0,l.tickFormat)(t.timeIntervals,t.formatters,e)}},n.copy=function(){return(0,r.copyScale)(this,new t)},t}(s["default"]);t["default"]=c},722:function(e,t,n){"use strict";var i=n(185),a=n(181);t.__esModule=!0,t["default"]=void 0;var r=a(n(201)),o=i(n(427)),s=a(n(429)),l=i(n(723)),c=a(n(363)),d=n(349),u=1e3,h=60*u,f=60*h,p=24*f,g=7*p,m=30*p,v=365*p,y=function(e){return new Date(e)},b=function(e){return e instanceof Date?+e:+new Date(+e)},_=function(e){function t(t,n,i,a,r,l,y,b){var _;return(_=e.call(this,o.deInterpolateLinear,s["default"])||this).timeIntervals={year:t,month:n,week:i,day:a,hour:r,minute:l,second:y,millisecond:b},_.tickIntervals=[[_.timeIntervals.second,1,u],[_.timeIntervals.second,5,5*u],[_.timeIntervals.second,15,15*u],[_.timeIntervals.second,30,30*u],[_.timeIntervals.minute,1,h],[_.timeIntervals.minute,5,5*h],[_.timeIntervals.minute,15,15*h],[_.timeIntervals.minute,30,30*h],[_.timeIntervals.hour,1,f],[_.timeIntervals.hour,3,3*f],[_.timeIntervals.hour,6,6*f],[_.timeIntervals.hour,12,12*f],[_.timeIntervals.day,1,p],[_.timeIntervals.day,2,2*p],[_.timeIntervals.week,1,g],[_.timeIntervals.month,1,m],[_.timeIntervals.month,3,3*m],[_.timeIntervals.year,1,v]],_.locale=c["default"],_._localeConverter=new d.TimeConverter(c["default"]),_}(0,r["default"])(t,e);var n=t.prototype;return n.setDomain=function(t){return e.prototype.setDomain.call(this,t.map(b))},n.getDomain=function(){return e.prototype.getDomain.call(this).map(y)},n.ticks=function(t,n){var i=e.prototype.getDomain.call(this);return(0,l["default"])(i[0],i[i.length-1],t,n,this.tickIntervals,this.timeIntervals)},n.nice=function(t,n){var i=e.prototype.getDomain.call(this),a=(0,l.tickInterval)(i[0],i[i.length-1],t,n,this.tickIntervals,this.timeIntervals);return a?e.prototype.setDomain.call(this,function(e,t){var n,i=e.slice(),a=0,r=i.length-1,o=i[a],s=i[r];return s<o&&(n=a,a=r,r=n,n=o,o=s,s=n),i[a]=t.floor(o),i[r]=t.ceil(s),i}(i,a)):this},n.getDomainValue=function(t){return new Date(e.prototype.getDomainValue.call(this,t))},n.setLocale=function(e){return void 0===e&&(e=c["default"]),this.locale=e,this._localeConverter=new d.TimeConverter(this.locale),this},n.copy=function(){var e=this.timeIntervals,n=e.year,i=e.month,a=e.week,r=e.day,s=e.hour,l=e.minute,c=e.second,d=e.millisecond;return(0,o.copyScale)(this,new t(n,i,a,r,s,l,c,d))},t}(o["default"]);t["default"]=_},723:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=t.tickFormat=t.tickInterval=void 0;var a=i(n(724)),r=n(445),o=function(e,t,n,i,o,s){void 0===n&&(n=10);var l,c,d=n,u=i;return"number"==typeof d&&(l=Math.abs(t-e)/d,(c=(0,a["default"])(function(e){return e[2]}).right(o,l))===o.length?(u=(0,r.tickStep)(e/31536e6,t/31536e6,d),d=s.year):c?(u=(c=o[l/o[c-1][2]<o[c][2]/l?c-1:c])[1],d=c[0]):(u=Math.max((0,r.tickStep)(e,t,d),1),d=s.millisecond)),null==u?d:d.every(u)};t.tickFormat=function(e,t,n){return(e.second.floor(n)<n?t.millisecond:e.minute.floor(n)<n?t.second:e.hour.floor(n)<n?t.minute:e.day.floor(n)<n?t.hour:e.month.floor(n)<n?e.week.floor(n)<n?t.day:t.week:e.year.floor(n)<n?t.month:t.year).format(n)},t.tickInterval=o;var s=function(e,t,n,i,a,r){var s,l,c=e,d=t,u=d<c;return u&&(s=c,c=d,d=s),l=(l=o(c,d,n,i,a,r))?l.range(c,d+1):[],u?l.reverse():l};t["default"]=s},724:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var i=function(e){return function(t,n){return i=e(t),a=n,r=NaN,i<a?r=-1:i>a?r=1:i>=a&&(r=0),r;var i,a,r}},a=function(e){var t=e;return 1===t.length&&(t=i(t)),{left:function(e,n,i,a){void 0===e&&(e=[]),void 0===i&&(i=0),void 0===a&&(a=e.length);for(var r=i,o=a;r<o;){var s=Math.abs(Math.floor((r+o)/2));t(e[s],n)<0?r=s+1:o=s}return r},right:function(e,n,i,a){void 0===e&&(e=[]),void 0===i&&(i=0),void 0===a&&(a=e.length);for(var r=i,o=a;r<o;){var s=Math.abs(Math.floor((r+o)/2));t(e[s],n)>0?o=s:r=s+1}return r}}};t["default"]=a},725:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(201)),r=n(381),o=i(n(722)),s=n(427),l=n(723),c=function(e){function t(){var t;return(t=e.call(this,r.utcYear,r.utcMonth,r.utcWeek,r.utcDay,r.utcHour,r.utcMinute,r.utcSecond,r.utcMillisecond)||this).formatters={millisecond:t._localeConverter.utcFormatter(".%L"),second:t._localeConverter.utcFormatter(":%S"),minute:t._localeConverter.utcFormatter("%I:%M"),hour:t._localeConverter.utcFormatter("%I %p"),day:t._localeConverter.utcFormatter("%a %d"),week:t._localeConverter.utcFormatter("%b %d"),month:t._localeConverter.utcFormatter("%B"),year:t._localeConverter.utcFormatter("%Y")},t.setDomain([[Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]]),t}(0,a["default"])(t,e);var n=t.prototype;return n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.utcFormatter(e).format(n)}:function(e){return(0,l.tickFormat)(t.timeIntervals,t.formatters,e)}},n.copy=function(){return(0,s.copyScale)(this,new t)},t}(o["default"]);t["default"]=c},726:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(201)),r=n(373),o=i(n(727)),s=n(427),l=function(e){function t(){var t;return(t=e.call(this,r.timeYear,r.timeMonth,r.timeWeek,r.timeDay,r.timeHour,r.timeMinute,r.timeSecond,r.timeMillisecond)||this).setTimeFormat(),t.setDomain([new Date(2e3,0,1),new Date(2e3,0,2)]),t}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return""},n.setTimeFormat=function(e){void 0===e&&(e={});var t=this._localeConverter,n=e,i=n.millisecond,a=n.second,r=n.minute,o=n.hour,s=n.day,l=n.month,c=n.year;this.formatters={millisecond:{major:t.formatter(i||"%I:%M:%S.%L %p"),minor:t.formatter(i||"%L ms"),context:t.formatter(i||"%b %d, %Y, %I:%M:%S.%L %p")},second:{major:t.formatter(a||"%I:%M:%S %p"),minor:t.formatter(a||"%S s"),context:t.formatter(a||"%b %d, %Y, %I:%M:%S %p")},minute:{major:t.formatter(r||"%I:%M %p"),minor:t.formatter(r||"%M m"),context:t.formatter(r||"%b %d, %Y, %I:%M %p")},hour:{major:t.formatter(o||"%I %p"),minor:t.formatter(o||"%I %p"),context:t.formatter(o||"%b %d, %Y, %I %p")},day:{major:t.formatter(s||"%b %d"),minor:t.formatter(s||"%d"),context:t.formatter(s||"%b %d, %Y")},month:{major:t.formatter(l||"%b"),minor:t.formatter(l||"%b"),context:t.formatter(l||"%b %Y")},year:{major:t.formatter(c||"%Y"),minor:t.formatter(c||"%Y"),context:t.formatter(c||"%Y")}}},n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.formatter(e).format(n)}:function(e,n,i){return t._timeFormat[n]?t._localeConverter.formatter(t._timeFormat[n]).format(e):t.formatters[n][i].format(e)}},n.copy=function(){return(0,s.copyScale)(this,new t)},t}(o["default"]);t["default"]=l},727:function(e,t,n){"use strict";var i=n(181);t.__esModule=!0,t["default"]=void 0;var a=i(n(201)),r=i(n(722)),o=n(728);t.getFloorOfDate=o.getFloorOfDate,t.modifyDate=o.modifyDate;var s=i(n(193)),l=n(729),c=i(n(349)),d="",u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=["day","month","year"],f=[31,28,31,30,31,30,31,31,30,31,30,31],p=[{ratio:4,index:8},{ratio:3,index:7},{ratio:2.5,index:6},{ratio:2,index:5},{ratio:1.5,index:4},{ratio:1,index:3},{ratio:.67,index:2},{ratio:.33,index:1},{ratio:0,index:0}],g=function(e){return null!==e&&!isNaN(e)},m=function(e,t,n){return e["get"+n+t]()},v=function(e){return(e<10?"0"+e:e)+""},y=function(e,t){return u[m(e,"Month",t)]+" "+v(m(e,"Date",t))+", "+m(e,"FullYear",t)},b=function(e,t){return v(m(e,"Hours",t))+":"+v(m(e,"Minutes",t))+":"+v(m(e,"Seconds",t))},_=function(e){function t(t,n,i,a,r,o,s,l){var c;return(c=e.call(this,t,n,i,a,r,o,s,l)||this)._type=d,c}(0,a["default"])(t,e);var n=t.prototype;return n.getType=function(){return this._type},n.showPlotOverTick=function(){var e=this._getRangeThreshold();return("millisecond"===this.getBinMin()[0].name()||h.indexOf(e[0].name())>-1)&&1===e[1]},n.getBinBounds=function(e,t){void 0===t&&(t=0);var n,i,a,r,o,s,l,c=this.getType(),d=this._getRangeThreshold(),u=d[2],h=this.getDomainValue(e),p=(h.getTime()-t)/u,g=m(h,"FullYear",c),v=m(h,"Month",c),y=m(h,"Date",c),b=m(h,"Hours",c);if("month"===d[0].name()){for(n=0;n<12;n+=d[1])if(v>=n&&v<n+d[1]){this.showPlotOverTick()&&y>14&&(n+=1);break}a=+new Date(h.getFullYear()+0,n,1),r=+new Date(h.getFullYear()+0,n+d[1],1)}else if("day"===d[0].name()&&this.showPlotOverTick()){for(n=0,o=g,l=void 0,i=1!==(s=v)||(l=o)%4!=0||l%100==0&&l%400!=0?f[s]:29;n<=i;n++)if(n===y){b>11&&(n+=1);break}a=+new Date(h.getFullYear(),v,n),r=+new Date(h.getFullYear(),v,n+1)}else u<=1&&-1===p&&(p=0),a=t+Math.floor(p)*u,r=t+Math.ceil(p)*u;return{startDate:a,endDate:r}},n.getBinIndex=function(e,t){var n,i,a,r,o,s,l=this._getRangeThreshold(),c=this.showPlotOverTick(),d=c?Math.round:Math.floor,u=new Date(t),h=new Date(e),f=l[2];return"year"===l[0].name()?d(l[0].count(t,e)/l[1]):"month"===l[0].name()?(r=m(u,"FullYear",this.getType()),o=m(h,"FullYear",this.getType()),i=m(u,"Month",this.getType()),a=m(h,"Month",this.getType()),n=Math.max(0,o-r-1),r===o?s=Math.floor(a/l[1])-Math.floor(i/l[1]):(s=12*n/l[1],s+=12/l[1]-Math.floor(i/l[1]),s+=Math.floor(a/l[1])),c&&h.getDate()>14&&s++,s):d((e-t)/f)},n.getRangeValue=function(t,n){return void 0===n?e.prototype.getRangeValue.call(this,t):this.showPlotOverTick()?e.prototype.getRangeValue.call(this,t):(e.prototype.getRangeValue.call(this,t)+e.prototype.getRangeValue.call(this,n))/2},n.calculateIndexOfIntervals=function(){var e,t,n=this.thresholdIntervals,i=n.length;for(this.intervalIndexMap=e={},t=i-1;t>=0;t--)e[n[t][0].name()]=t},n.getNiceMinorTickInterval=function(e,t){if(0===e)return-1;var n,i,a,r,o=this.thresholdIntervals,l=this.getDomain(),c=this._getRangeThreshold()[2],d=o[e-1][0].name(),u=[];for(n=0,a=o.length;n<a;n++)if(o[n][2]>=c){r=n;break}for(n=e-1;n>=r&&o[n][0].name()===d;n--)o[n][2]%c||u.push(n);return i=Math.min(function(e){var t,n=p.length,i=1/e;if(i>4)return Infinity;for(t=0;t<n;t++)if(i>p[t].ratio)return p[t].index}((l[1]-l[0])/t),u.length-1),(0,s["default"])(u[i],-1)},n.getNiceMajorTickInterval=function(e,t){void 0===t&&(t=!1);var n,i=this.thresholdIntervals,a=i.length,r=this._getRangeThreshold()[2];if("random"===this.getMode()){if(!t&&"day"===i[e][0].name()&&(i[e][1]>1||i[e][2]>r)){for(n=e;n<a;n++)if("day"!==i[n][0].name()&&r<i[n][2])return n}else for(n=e;n<a;n++)if(i[n][2]>r)return n}else if(1!==i[e][1]||i[e][2]<=r)for(n=e;n<a;n++)if(1===i[n][1]&&i[n][2]>r)return n;return e},n.generateContextTicks=function(e,t){void 0===t&&(t=!1);var n,i,a,r,s=this.thresholdIntervals,l=this.intervalIndexMap,c=this.getDomain(),d=c[0],u=c[1],f=s[e][0].name(),p=h[h.indexOf(f)+1],g=s.length,m=l.day,v=-1,y=[];if(t)v=e;else for("day"===f&&(p="year"),n=Math.max(e,m);n<g;n++)if(s[n][0].name()===p){v=n;break}if(v>-1){if(i=(0,o.getFloorOfDate)(new Date(d),s[v][0].name(),s[v][1],this.getType()),r=function(e,t,n,i,a){var r=(0,o.getFloorOfDate)(new Date(e),i[n][0].name(),i[n][1],a),s=(0,o.getFloorOfDate)(new Date(t),i[n][0].name(),i[n][1],a);return+r!=+s&&[r,s]}(new Date(d),new Date(u),v,s,this.getType())){for(r=(a=r[1])-s[v][2];r>=+d;)y.push(new Date(r)),r-=s[v][2];+d!=+i&&y.push(new Date(i)),y.reverse(),y.push(new Date(a))}else y.push(i);this._timeFormat.context=s[v][0].name()}return y},n.getMajorIntervalGap=function(e,t){var n=this.thresholdIntervals;return"month"===n[e][0].name()?2592e6:"year"===n[e][0].name()?31536e6:t[1]-t[0]},n.ticks=function(e,t){void 0===e&&(e={});var n,i,a,r,s,l,c,d,u,h,f,p,m=this.thresholdIntervals,v=this.getDomain(),y=!1,b=[],_=v[0],x=v[1],k=[],S=[],w=this.getType();if(!g(_)||!g(x))return this._tickType=[],[];for(this._timeFormat=p={},f=x-_+1,n=a=m.length-1;n>=0;n--)if(Math.floor(f/m[n][2])>1){for(s=m[r=this.getNiceMajorTickInterval(n,t)][0].name(),_=(0,o.getFloorOfDate)(new Date(_),s,m[r][1],w),x=(0,o.modifyDate)(new Date(x),s,m[r][1],!1,w),x=(0,o.getFloorOfDate)(new Date(x),s,m[r][1],w),c=m[r][0].range(+_,+x+m[r][2],m[r][1]),p.major=s,i=0;i<c.length;i++)+c[i]>=+v[0]&&+c[i]<=+v[1]&&(y=!0);b=this.generateContextTicks(r,!y)||[];break}if(!c)return this._tickType=[],k;for(l="year"===m[r][0].name()&&c.length>10?-1:this.getNiceMinorTickInterval(r,this.getMajorIntervalGap(r,c)),n=0,a=c.length;n<a-1;n++)if(k.push(