-
Notifications
You must be signed in to change notification settings - Fork 46
/
fusioncharts.timeseries.js
2 lines (2 loc) · 433 KB
/
fusioncharts.timeseries.js
1
2
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[11],{901:(e,t)=>{t.__esModule=!0,t.isWithinMinRange=t.clampWithinContextRange=void 0;t.isWithinMinRange=function(e,t){var n=3*t.getBinMin()[2],a=t.getRangeValue(n)-t.getRangeValue(0);return e[1]-e[0]>=a},t.clampWithinContextRange=function(e,t,n){var a=n.getDomain().map((function(e){return t.getRangeValue(e)}));return e[0]=Math.max(e[0],a[0]),e[1]=Math.min(e[1],a[1]),e}},884:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(273)),r=a(n(288)),o=n(274),l=a(n(540)),s=a(n(541)),c=n(290);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var d=function(e){return e},f=function(e){return null==e},h="tick-mark-major",g="tick-mark-minor",p="label-major",m="label-minor",v="label-context",y="start",b="top",x="right",k="bottom",S="left",_="major",C="minor",w="context",D=Math.floor,E=Math.max,T=function(e){return"t"+e+",0"},M=function(e){return"t0,"+e},I=function(e){return function(t){return+e.getRangeValue(t)}},F=function(e){return function(t){return+e.getRangeValue(t)+e.getBandwidth()/2}},L=function(e,t,n){if(e&&t)return e[t[n]]},O=function(e,t){return!(e.x>t.x+t.width||t.x>e.x+e.width)&&!(e.y>t.y+t.height||t.y>e.y+e.height)},P=function(e){e.text="",e.dim.width=0,e.dim.height=0},A=function(e){var t;switch(e){case S:t="end";break;case x:t=y;break;default:t="middle"}return t},B=function(e,t,n,a){var i;return(i=t===y?n.x:"end"===t?n.x-e.width:n.x-e.width/2)>=0&&i+e.width<=a.width},N=function(e,t){return e>=t.start&&e<=t.end},H=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.getType=function(){return"axis"},n.getName=function(){return"axis"},n.__setDefaultConfig=function(){var t;e.prototype.__setDefaultConfig.call(this);var n=this.config;this.setScale(new s["default"]),this.setAlignment(S),this.setTickArguments(),this.setTickValues(),this.setReverse(!1),this.setTickSize(12),this.setTickPadding(1),this.setDomainLine(!0),this.setTicksDraw(!0),this.setLabelOffset(),this.setDayInMajor(!1),this.setStickyContextLabel(!0),this.setTickVisibilityLimit({start:-Infinity,end:Infinity}),n.alignDiff=0,n.maxLabelSpace=0,n.axisDimension={},n.defaultStyle=n.style=((t={})[g]={stroke:"#d3d3d3","stroke-width":"1px"},t[h]={stroke:"#AAAAAA","stroke-width":"1px"},t[p]={fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},t[m]={fill:"#9A9A9A","font-size":"11px","font-weight":"normal","font-style":"normal"},t[v]={fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},t._ticks={minor:{stroke:"#d3d3d3"},major:{stroke:"#AAAAAA"},context:{}},t._text={major:{fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},minor:{fill:"#9A9A9A","font-size":"11px","font-weight":"normal","font-style":"normal"},context:{fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"}},t.line={fill:"#D6D6D6"},t.title={fill:"#5F5F5F","font-size":"12px","font-weight":"normal","font-style":"normal"},t),this.config.prevTicks||(this.config.prevTicks=[])},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var n=this;t.scale&&n.setScale(t.scale),t.align&&n.setAlignment(t.align,t.overlap),t.reverse&&n.setReverse(t.reverse),t.tickarguments&&n.setTickArguments.apply(n,t.tickarguments),t.title&&n.setAxisName((0,o.parseUnsafeString)(t.title)),t.skipinfo&&n.setSkipInfo(t.skipinfo),t.offset&&n.setLabelOffset(t.offset),t.dayinmajor&&n.setDayInMajor(t.dayinmajor),t.scalemode&&n.setScaleMode(t.scalemode),t.minspace&&n.setminSpace(t.minspace),"undefined"!=typeof t.stickycontextlabel&&n.setStickyContextLabel(t.stickycontextlabel),!f(t.ticksize)&&n.setTickSize(t.ticksize),!f(t.tickpadding)&&n.setTickPadding(t.tickpadding),n.setDomainLine(t.domainline),n.setTicksDraw(t.drawticks),!f(t.formatterFn)&&n.setTickFormat(t),t.outputtimeformat&&n.setTimeFormat(t.outputtimeformat),t.tickvisibilitylimit&&n.setTickVisibilityLimit(t.tickvisibilitylimit),t.style&&n.parseStyle(t.style),n.config.validateLabelDimensions=(0,o.pluckNumber)(t.validateLabelDimensions,0)},n.parseStyle=function(e){var t;void 0===e&&(e={});var n,a,i,r,o,l=this,s=l.config,c=s.defaultStyle,u=l.getFromEnv("getStyleDef"),d=l.getFromEnv("baseTextStyle"),f=u(e.label),y=u(e["tick-mark"]);n=Object.assign({},c["tick-mark-major"],y,u(e["tick-mark-major"])),a=Object.assign({},c["tick-mark-minor"],y,u(e["tick-mark-minor"])),i=Object.assign({},c["label-major"],d,f,u(e["label-major"])),r=Object.assign({},c["label-minor"],d,f,u(e["label-minor"])),o=Object.assign({},c["label-context"],d,f,u(e["label-context"])),s.style=((t={})[h]=n,t[g]=a,t[p]=i,t[m]=r,t[v]=o,t.title=Object.assign({},c.title,d,u(e.title)),t.line=Object.assign({},c.line,u(e.line)),t)},n.placeAxis=function(){var e,t,n,a,i,r,s,c,u,h,g,p,m,y,x,k,C=this,D=C.config,T=D.isVertical,M=(0,o.pluckNumber)(D.minspace,-1),I=C.getScale(),F=C.getSkipInfo()||{},O=C.getTickPadding(),P=C.getFromEnv("smartLabel"),A=[],B=0,N=0,H=C.getAxisName(),j=[],R=C.getFromEnv("dataSource");for((t=(C.getTickArguments()||[]).slice(0)).push(F),t.push(D.dayInMajor),n=f(C.getTickValues())?I.ticks?I.ticks.apply(I,t):I.getDomain():C.getTickValues(),a=f(C.getTickFormat())?I.tickFormat?I.tickFormat.apply(I,C.getTickArguments()):d:C.getTickFormat(),y=D.style[v],P.setStyle(Object.assign({},y)),x=y["font-size"]||y.fontSize,D.labelHeight=1.2*parseFloat(x,10),H&&(P.setStyle(Object.assign({},D.style.title)),B+=(D.axisNameDim=P.getOriSize(H,!1)).height),g=I._tickType||[],i=0,r=n.length;i<r;i++){var V;if(u=n[i],c=L(I._timeFormat,g,i),P.setStyle(Object.assign({},D.style["label-"+(g[i]||_)])),h=D.isVertical?a.formatFn({value:u,prefix:a.prefix,suffix:a.suffix,type:"axis"},c):a(u,c,g[i]),24===(R.navigator&&R.navigator.hourtimeformat?R.navigator.hourtimeformat:0)&&!D.timeFormat){var G=new Date(u),Y=1===G.getHours().toString().length?"0"+G.getHours().toString():G.getHours().toString(),U=1===G.getMinutes().toString().length?"0"+G.getMinutes().toString():G.getMinutes().toString();h="hour"===c||"minute"===c?Y+":"+U:h}h=(0,o.parseUnsafeString)(h),N=E(h.length,N),p=P.getOriSize(h,!1),T&&(p.width=D.vLabelWidth),s=C.getTickSize(g[i]),A.push(((V={text:h,value:u,dim:p,tickLen:s})[D.x]=O+s,V)),g[i]!==w&&j.push((T?p.width:p.height)+s)}if(T&&f(D.vLabelWidth))for(D.vLabelWidth=0,j=[],i=0,r=n.length;i<r;i++)P.setStyle(Object.assign({},D.style["label-"+(g[i]||_)])),+D.style["label-"+(g[i]||_)]["font-size"].toString().split("px")[0],(p=P.getOriSize(h,!1)).width=E(p.width+10,M-B),A[i].dim=p,D.vLabelWidth=E(p.width,D.vLabelWidth),g[i]!==w&&j.push((T?p.width:p.height)+s);for(D.values=A,k=C.getLabelOverlapBuffer(),B+=D.prevMaxLen=(0,o.pluckNumber)((0,l["default"])(j),D.prevMaxLen,0),m=T?0:D.labelHeight,D.maxLabelSpace=B+O+k+m,i=0,r=n.length;i<r;i++)u=A[i],D.orientation===b||D.orientation===S?u[D.x]=D.maxLabelSpace-O-k-u.tickLen:u[D.x]=O+u.tickLen;return D.axisDimension=((e={})[D.align]=D.maxLabelSpace,e),D.axisDimension},n.getLabelOverlapBuffer=function(){var e,t,n,a,i,r=this.config,o=r.values,l=this.getScale()._tickType||[],s=0;for(n=0,a=o.length;n<a&&(l[n]!==_&&l[n]?l[n]===C&&(t=o[n]):e=o[n],!e||!t);n++);if(t)switch(i={x:t.dim.width,y:t.dim.height},r.k){case 1:s=E(t[r.x]+i[r.x]-e[r.x],0);break;case-1:s=E(e[r.x]-(t[r.x]+i[r.x]),0)}return r.overlapBuffer=r.k*s/3},n.makeBBox=function(e,t){var n;void 0===t&&(t=5);var a=this.config,i=this.getScale(),r={x:e.dim.width,y:e.dim.height};return(n={})[a.x]=e[a.x]-t-r[a.x]/2,n[a.xInverse]=i.getRangeValue(e.value)-t-r[a.xInverse]/2,n.width=e.dim.width+t,n.height=e.dim.height+t,n},n.setMinorSkipIndex=function(){var e,t,n,a,i,r,l,s,c,u,d=this,f=d.config,h=d.getScale(),g=f.values,p=h._tickType||[],m=[],v=g.length,y=1,b=1,x=!1,k=!1;for(e=0;e<v;e++){if(p[e]===_||typeof p[e]===o.UNDEF)for(t=e+1;t<v;t++)if(p[t]===_||typeof p[t]===o.UNDEF){a=g[e],i=g[t],m=g.slice(e+1,t),x=!0;break}if(x)break}if(m.length)if(v=m.length,u=e,n=D(v/2),r=d.makeBBox(a),l=d.makeBBox(i),c=d.makeBBox(m[n]),O(c,r)||O(c,l))f.minorSkip=v;else{for(e=n-1;e>=0;e--)if(s=d.makeBBox(m[e]),!O(s,c)){y=n-e;break}for(e=n+1;e<v+u;e++)if(s=d.makeBBox(m[e]),!O(s,c)){b=e-n;break}for(v=m.length;!k;){for(k=!0,e=n+b;e<v;e+=b)if(O(d.makeBBox(m[e]),d.makeBBox(m[e-b]))){b++,k=!1;break}for(e=n-y;e>=0;e-=y)if(O(d.makeBBox(m[e]),d.makeBBox(m[e+y]))){y++,k=!1;break}}f.minorSkip=E(y,b)}},n.cleanseMinorTicks=function(){var e,t,n,a,i,r,o,l,s,c,u,d=this,f=d.config,h=d.getScale()._tickType||[],g=[],p=[],m=f.values,v=-1,y=f.isVertical?((e={})[f.xInverse]="height",e[f.x]="width",e):((t={})[f.xInverse]="width",t[f.x]="height",t);for(n=0,i=m.length;n<i;n++)h[n]!==_&&h[n]||g.push(n);for(n=0,i=g.length;n<i-1;n++)if(r=m.slice(g[n]+1,g[n+1]),p.push(r),u=r.length,v=-1,r.length){for(o=D(r.length/2),l=d.makeBBox(m[g[n]],0),s=d.makeBBox(m[g[n+1]],0),a=o;a>=0;a-=1)if(c=d.makeBBox(r[a],1),f.isVertical){if(l[f.xInverse]<=c[f.xInverse]+c[y[f.xInverse]]){v=E(v,a);break}}else if(c[f.xInverse]<=l[f.xInverse]+l[y[f.xInverse]]){v=E(v,a);break}for(a=o;a<r.length;a+=1)if(c=d.makeBBox(r[a],1),f.isVertical){if(s[f.xInverse]+s[y[f.xInverse]]>=c[f.xInverse]){u=Math.min(u,a);break}}else if(c[f.xInverse]+c[y[f.xInverse]]>=s[f.xInverse]){u=Math.min(u,a);break}for(a=0;a<r.length;a++)(a<=v||a>=u||Math.abs(o-a)%f.minorSkip)&&P(r[a])}},n.cleanseMajorTicks=function(){var e,t,n,a,i=this,r=i.config,o=i.getScale(),l=r.values,s=[],c=[],u=[],d=[],f=o._tickType||[],h=0,g=1,p=1,m=!1;if(a=l.length){for(n=0;n<a;n++)f[n]!==_&&f[n]?f[n]===w&&(u.push(l[n]),d.push(n)):(s.push(l[n]),c.push(n));if(d.length)for(n=0,a=s.length;n<a;n++)+u[0].value==+s[n].value&&(h=n);else h=0;for(e=i.makeBBox(s[0]),n=h+1,a=s.length;n<a;n++)if(!O(i.makeBBox(s[n]),e)){p=n-h;break}for(n=h-1;n>=0;n--)if(!O(i.makeBBox(s[n]),e)){g=h-n;break}for(;!m;){for(m=!0,n=h+p;n<a;n+=p)if(O(i.makeBBox(s[n]),i.makeBBox(s[n-p]))){p++,m=!1;break}for(n=h-g;n>=0;n-=p)if(O(i.makeBBox(s[n]),i.makeBBox(s[n+g]))){g++,m=!1;break}}for(r.majorSkip=t=E(g,p),n=0,a=s.length;n<a;n++)Math.abs(n-h)%t&&P(s[n])}},n.draw=function(){var e=this,t=e.config,n=e.getFromEnv("chart").config,a=e.getScale(),i=e.getLinkedParent(),r=a._tickType||[],l=(a.getBandwidth?F:I)(a),s=a.getRange(),c=a.getDomain(),u=Number(s[0]),d=Number(s[s.length-1]),f=e.getOrientation(),h=e.getFromEnv("smartLabel"),g=t.values,p=f===S||f===b?t.maxLabelSpace+2:0,m=t.isVertical,v=t.orientation,y=t.xInverse,x=t.x,D=t.k,T=t.style;e.addGraphicalElement({el:"group",attr:{name:"meso-axis",transform:t.groupTranslation},container:{id:"meso",label:"group",isParent:!0},id:"meso-axis",component:e,label:"group"}),e.addGraphicalElement({el:"group",attr:{name:"axis-"+v},container:{id:"meso-axis",label:"group"},id:"axisGroup",component:e,label:"group"});var M,L,O,P,H,j,R,V,G,Y,U,z,X,W,q,Z,$,K,Q=[],J=0,ee=e.getTickVisibilityLimit();if(e.setMinorSkipIndex(),e.cleanseMinorTicks(),e.cleanseMajorTicks(),(Z=e.getDomainLine())&&e.addGraphicalElement({el:"path",attr:{path:Z,stroke:"#d6d6d6",fill:"none","stroke-width":2},container:{id:"axisGroup",label:"group",isParent:!1},css:T.line,component:e,label:"path"}),(O=e.getAxisName())&&(q=parseFloat(t.style.title["font-size"]||t.style.title.fontSize,10),h.setStyle(Object.assign({},t.style.title)),P=h.getSmartText(O,Math.abs(u-d),1.2*q),m?(H=f===S?0+P.height/2:t.maxLabelSpace-P.height/2,j=(u-d)/2):(H=(d-u)/2,j=f===b?0+P.height/2:t.maxLabelSpace-P.height/2),e.addGraphicalElement({el:"text",attr:{text:P.text,x:H,y:j,opacity:T.title.opacity,"text-anchor":"middle",transform:m?(0,o.getSuggestiveRotation)(90*D,H,j):"t0,0"},container:{id:"axisGroup",label:"group",isParent:!1},tooltext:n.showTooltip?P.tooltext:o.UNDEF,css:T.title,component:e,id:"axis-name",label:"name"})),e.getTicksDraw()){for(J=r.length-r.indexOf(w),X=t.values.find((function(e,t){return e.value>=c[0]&&e.value<=c[1]&&r[t]===_})),R=0,V=g.length;R<V;R++)r[R]===_&&(g[R].value>=c[0]&&g[R].value<=c[1]&&(g[R][y]=l(g[R].value)),Q.push(R));for(U=Q[0],z=Q[1],Y=2,R=0,V=t.values.length;R<V;R++){var te;if(G=t.values[R],L=r[R]||_,(m||0!==G.text.length)&&(L===w||!(G.value<c[0]||G.value>c[1]))&&!(L===w&&J>1&&(G.value<c[0]||G.value>c[1]))&&(G[y]=L===w&&1===J?e.getStickyContextLabel()||void 0===X?E(l(G.value),G.dim.width/2):l(X.value):G[y]||l(G.value),R>=z&&(U=z,z=Q[Y],Y++),(L!==C||m||!(G[y]-g[U][y]<5||g[z][y]-G[y]<5))&&(G[x]+=t.alignDiff,M=G.value,e.addGraphicalElement({container:{id:"axisGroup",label:"group",isParent:!1},attr:{name:"tick",transform:t.translate(G[y])},data:{value:M},el:"group",id:"tick-group-"+R,component:this,label:"group"}),L!==w&&($=m?"M "+p+" 0 H "+(p+D*e.getTickSize(r[R])):"M 0 "+p+" V "+(p+D*e.getTickSize(r[R])),e.addGraphicalElement({el:"path",attr:{path:$},container:{id:"tick-group-"+R,label:"group",isParent:!1},id:"tick-"+R,css:T["tick-mark-"+(L||_)],component:e,label:"path"})),W=T["label-"+(L||_)]["text-anchor"]||A(f),(te={})[y]=G[y]+t[y+"Offset"],te[x]=G[x]+t[x+"Offset"]+(L!==C?t.overlapBuffer:0),K=te,!t.validateLabelDimensions||B(G.dim,W,K,i.getDimension())))){var ne;if(!N(G.value,ee)&&L!==w)continue;if(L===w&&"undefined"==typeof ee.start)continue;e.addGraphicalElement({el:"text",attr:(ne={text:G.text+""},ne[y]=0+t[y+"Offset"],ne[x]=G[x]+t[x+"Offset"]+(L!==C?t.overlapBuffer:0),ne["text-anchor"]=W,ne["vertical-align"]=v===b?"bottom":v===k?"top":"middle",ne.opacity=T["label-"+(L||_)].opacity,ne),container:{id:"tick-group-"+R,label:"group",isParent:!1},component:e,id:"tick-label-"+R,css:T["label-"+(L||_)],label:"text"})}}}},n.updateMaxLabelSpace=function(e){var t=this.config,n=this.getAlignment();return t.alignDiff=e-t.maxLabelSpace,t.maxLabelSpace=t.axisDimension[n]=e,t.axisDimension},n.setDayInMajor=function(e){this.config.dayInMajor=e},n.setSkipInfo=function(e){void 0===e&&(e={}),this.config.tickInfo=e},n.getSkipInfo=function(){return this.config.tickInfo},n.setStickyContextLabel=function(e){void 0===e&&(e=!0),this.config.stickyContextLabel=e},n.getStickyContextLabel=function(){return this.config.stickyContextLabel},n.setminSpace=function(e){this.config.minspace=e},n.getminSpace=function(){return this.config.minspace},n.setLabelOffset=function(e){void 0===e&&(e={});var t=this.config;t.xOffset=(0,o.pluckNumber)(e.x,0),t.yOffset=(0,o.pluckNumber)(e.y,0)},n.getLabelOffset=function(){return{x:this.config.xOffset,y:this.config.yOffset}},n.getAxisName=function(){return this.config.axisName},n.setAxisName=function(e){void 0===e&&(e=""),this.config.axisName=e},n.getAlignment=function(){return this.config.align},n.setAlignment=function(e,t){void 0===t&&(t=!1);var n,a,i=this.config;switch(e){case S:n=t?x:S;break;case x:n=t?S:x;break;case b:n=t?k:b;break;case k:n=t?b:k}i.align=e,i.orientation=n,i.isVertical=a=e===S||e===x,i.k=n===S||n===b?-1:1,i.x=a?"x":"y",i.xInverse=a?"y":"x",i.translate=a?M:T,i.translateInverse=a?T:M},n.getOrientation=function(){return this.config.orientation},n.setTranslation=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.config._translatedX=e,this.config._translatedY=t,this.config.groupTranslation="t"+e+", "+t},n.getTranslation=function(){return{x:this.config._translatedX,y:this.config._translatedY}},n.setDomainLine=function(e){return void 0===e&&(e=!0),this.config.drawDomainLine=e,this},n.getDomainLine=function(){var e,t,n=this.config,a=this.getScale().getRange(),i=n.isVertical,r=n.orientation,o=n.maxLabelSpace,l=+a[0],s=+a[1];return n.drawDomainLine&&(e=r===S||r===b?o+2:0,t=i?"M "+e+" "+l+" V "+s:"M "+l+" "+e+" H "+s),t},n.setTicksDraw=function(e){return void 0===e&&(e=!0),this.config.drawTicks=e,this},n.getTicksDraw=function(){return this.config.drawTicks},n.setScale=function(e){this.config.scale=e},n.getScale=function(){return this.config.scale},n.setReverse=function(e){this.config.isReverse=e},n.getReverse=function(){return this.config.isReverse},n.setTickArguments=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.config.tickArguments=t,this},n.getTickArguments=function(){return this.config.tickArguments.slice()},n.setTickSize=function(e){return this.config.tickSizeOuter=Number(e),this.config.tickSizeInner=this.config.tickSizeOuter*(2/3),this},n.getTickSize=function(e){void 0===e&&(e=_);var t=this.config;switch(e){case w:return t.tickSizeOuter+t.labelHeight;case C:return t.tickSizeInner;case _:return t.tickSizeOuter}},n.setTickPadding=function(e){return this.config.tickPadding=Number(e),this},n.getTickPadding=function(){return this.config.tickPadding},n.setTickValues=function(e){return this.config.tickValues=f(e)?null:e.slice(),this},n.getTickValues=function(){return this.config.tickValues&&this.config.tickValues.slice()},n.setTickFormat=function(e){return this.config.tickFormat={formatFn:e.formatterFn,prefix:e.formatLabelPrefix,suffix:e.formatLabelSuffix},this},n.getTickFormat=function(){return this.config.tickFormat},n.getAxisEndLabelDisplaySpace=function(){var e,t,n,a,i=+this.getFromEnv("chartWidth"),r=+this.getFromEnv("chartHeight"),o=this.config.values,l=this.getReverse(),s={};return this.config.isVertical?(n=l?o[o.length-1]:o[0],a=l?o[0]:o[o.length-1],s.top=0-Math.min(0,n.y-n.dim.height),s.bottom=E(a.y+a.dim.height,r)-r):(e=l?o[o.length-1]:o[0],t=l?o[0]:o[o.length-1],s.left=0-Math.min(0,e.x-e.dim.width),s.right=E(t.x+t.dim.width,i)-i),s},n.getDimension=function(){return this.config.axisDimension},n.setDimension=function(e){return this.placeAxis(e)},n.setScaleMode=function(e){this.config.scale.setMode(e)},n.getScaleMode=function(){return this.config.scale.getMode()},n.setTimeFormat=function(e){var t=this.config,n=t.scale;t.timeFormat=e,n.setTimeFormat&&n.setTimeFormat(e)},n.getTimeFormat=function(){return this.config.timeFormat},n.setTickVisibilityLimit=function(e){this.config.tickVisibilityLimit=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)},n.getTickVisibilityLimit=function(){return this.config.tickVisibilityLimit},t}(c.SmartRenderer),j=H;t["default"]=j},958:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){this.config.backgroundCss={fill:"#ffffff"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this,a=n.config,i=n.getFromEnv("chart-attrib"),r=i.style&&i.style.background;Object.keys(t).forEach((function(e){return a[e]=t[e]})),a.backgroundCss=Object.assign(a.backgroundCss,n.getFromEnv("getStyleDef")(r))},n.setDimension=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},n.draw=function(){var e=this,t=e.config;e.addGraphicalElement({el:"rect",attr:{x:0,y:0,height:t.height,width:t.width,transform:t.translate,opacity:t.backgroundCss.opacity},container:{id:"tropo",label:"group",isParent:!0},css:t.backgroundCss,component:e,id:"background",label:"rect"})},t}(n(290).SmartRenderer),o=r;t["default"]=o},965:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t._defaultHandleStyle={fill:"#dfdfdf",stroke:"none",cursor:"ew-resize"},t._defaultHandleGripStyle={cursor:"ew-resize",stroke:"#808080","stroke-width":1,"stroke-linecap":"round"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;n.style={handle:Object.assign({},n._defaultHandleStyle,t.style.handle),"handle-grip":Object.assign({},n._defaultHandleGripStyle,t.style["handle-grip"])},n.orientation=t.orientation,n.type=t.type},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,a,i,r,l,s,c=this,u=c.getLinkedParent(),d=u.getFromEnv("timeNavigator"),f=d.config,h=c.getFromEnv("chart"),g={timeFormatter:f.formatter},p=Object.assign({forceFire:!0},g),m={formatter:"%b %d, %Y",action:"scale"};c.addEventListener("fc-dragstart",c.dragstartHandler||(c.dragstartHandler=function(a){i=(0,o.getTouchEvent)(a).clientX,n=0,t=u.getCurrentBrushDimensions(),e=h.getFocusLimit(),h.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],m,p)})),c.addEventListener("fc-dragmove",c.dragmoveHandler||(c.dragmoveHandler=function(e){r=(0,o.getTouchEvent)(e).clientX-i,a=r>=n?"up":"down",n=r,"leftHandle"===c.config.type?(l=t.x+r,s=t.x+t.width):(l=t.x,s=t.x+t.width+r),c.getFromEnv("animationManager").setAnimationState("timenavSqueeze"),d.validateDomain([l,s],[a,a],{eventName:"timeNavBrush",eventArgs:m,options:g})})),c.addEventListener("fc-dragend",c.dragendHandler||(c.dragendHandler=function(t){e=h.getFocusLimit(),h.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],m,p)}))},n.draw=function(){var e=this,t=e.config,n=t.style.handle,a=t.style["handle-grip"],i=e.getDimension(),r=i.x,o=i.y,l=i.width,s=i.height;e.addGraphicalElement({el:"rect",attr:{x:r,y:o,width:l,height:s,opacity:n.opacity},css:n,label:"handleButton",component:e,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}),e.addGraphicalElement({el:"path",attr:{path:"M "+(r+3.5)+","+(o+6)+" v "+(s-12)+"\n M "+(r+6.5)+","+(o+6)+" v "+(s-12)},label:"handlePath",component:e,css:a,container:{id:"brushGroup",label:"brushGroup",isParent:!0}})},t}(r.SmartRenderer);t["default"]=l},964:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=a(n(965)),l=a(n(966)),s=a(n(967)),c=function(e){function t(){var t;return(t=e.call(this)||this)._maxDimensions={},t._currDimensions={},t}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(t){void 0===t&&(t={}),e.prototype.__setDefaultConfig.call(this,t);var n=this.config;n.handleWidth=12,n.handleHeight=20},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);this.config.style=t.style,this.createChildComponents()},n.setChildDimension=function(){var e=this,t=e.config,n=e.getChildren("selection")[0],a=e.getChildren("leftHandle")[0],i=e.getChildren("rightHandle")[0],r=e.getChildren("leftLabel")[0],o=e.getChildren("rightLabel")[0],l=e.getCurrentBrushDimensions(),s=l.x,c=l.x+l.width;n.setDimension({x:s,y:l.y,width:l.width,height:l.height}),a.setDimension({x:s-t.handleWidth,y:l.y+l.height/2-t.handleHeight/2,width:t.handleWidth,height:t.handleHeight}),i.setDimension({x:c,y:l.y+l.height/2-t.handleHeight/2,width:t.handleWidth,height:t.handleHeight}),r.setDimension({x:s,y:l.y}),o.setDimension({x:c,y:l.y})},n.getLabelSpace=function(){var e=this.getChildren("leftLabel")[0],t=this.getChildren("rightLabel")[0];return Math.max(e.getLabelDimension().height,t.getLabelDimension().height)},n.draw=function(){this.addGraphicalElement({el:"group",attr:{name:"brush-group"},id:"brushGroup",label:"brushGroup",component:this,container:{id:"exo",label:"group",isParent:!0}})},n.hideAllLabels=function(){var e=this,t=e.getChildren("leftLabel")[0],n=e.getChildren("rightLabel")[0];e.config.pointerReleasedOnParent||(t.config.showLabel=n.config.showLabel=!1,t.asyncDraw(),n.asyncDraw())},n.setBrushValue=function(e){var t=this.getChildren("leftLabel")[0],n=this.getChildren("rightLabel")[0];t.setValue(e[0]),n.setValue(e[1])},n.createChildComponents=function(){var e,t,n,a,i,r=this,c=r.config,u=r.getFromEnv("getStyleDef");(i=r.attachChild(s["default"],"selection")).attachHandlers(),i.configure({orientation:"horizontal",style:{mask:u(c.style.mask)}}),(e=r.attachChild(o["default"],"leftHandle")).attachHandlers(),e.configure({orientation:"horizontal",type:"leftHandle",style:{handle:u(c.style.handle),"handle-grip":u(c.style["handle-grip"])}}),(t=r.attachChild(o["default"],"rightHandle")).attachHandlers(),t.configure({orientation:"horizontal",type:"rightHandle",style:{handle:u(c.style.handle),"handle-grip":u(c.style["handle-grip"])}}),(n=r.attachChild(l["default"],"leftLabel")).attachHandlers(),n.configure({orientation:"horizontal",type:"leftLabel",style:{label:u(c.style.label),labelBg:u(c.style["label-background"])}}),(a=r.attachChild(l["default"],"rightLabel")).attachHandlers(),a.configure({orientation:"horizontal",type:"rightLabel",style:{label:u(c.style.label),labelBg:u(c.style["label-background"])}})},n.setMaxBrushDimensions=function(e){this._maxDimensions=e},n.getMaxBrushDimensions=function(){return this._maxDimensions},n.setCurrentBrushDimensions=function(e){this._currDimensions=e,this.setChildDimension()},n.getCurrentBrushDimensions=function(){return this._currDimensions},t}(r.SmartRenderer);t["default"]=c},966:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l="start",s=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,i["default"])(t,e);var n=t.prototype;return n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,a=this.getFromEnv("baseTextStyle");for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.style={label:Object.assign({},n._defaultLabelStyle,a,n.style.label),labelBg:Object.assign({},n._defaultLabelBgStyle,n.style.labelBg)}},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showLabel=!1,t._defaultLabelStyle={fill:"#f3f3f3","font-size":"11px","font-weight":600,"vertical-align":"middle",cursor:"move"},t._defaultLabelBgStyle={fill:"#5f5f5f",cursor:"move"},t["border-horizontal-padding"]=5,t["border-vertical-padding"]=3},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,a,i,r,l,s,c,u=this,d=u.getFromEnv("animationManager"),f=u.getLinkedParent(),h=f.getFromEnv("timeNavigator"),g=h.config,p=h.getFromEnv("chart"),m={timeFormatter:g.formatter},v=Object.assign({forceFire:!0},m),y={formatter:"%b %d, %Y",action:"scale"};u.addEventListener("fc-dragstart",u.dragstartHandler||(u.dragstartHandler=function(a){i=(0,o.getTouchEvent)(a).clientX,r=0,t=f.getCurrentBrushDimensions(),h.config.labelsGettingDragged=!0,n=a.originalEvent.target,f.config.pointerReleasedOnParent=!1,e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],y,v)})),u.addEventListener("fc-dragmove",u.dragmoveHandler||(u.dragmoveHandler=function(e){d.setAnimationState("timenavSqueeze"),l=(0,o.getTouchEvent)(e).clientX-i,a=l>=r?"up":"down",r=l,"leftLabel"===u.config.type?(s=t.x+l,c=t.x+t.width):(s=t.x,c=t.x+t.width+l),h.validateDomain([s,c],[a,a],{eventName:"timeNavBrush",eventArgs:y,options:m})})),u.addEventListener("fc-dragend",u.dragendHandler||(u.dragendHandler=function(t){d.setAnimationState("timenavSqueeze"),h.config.labelsGettingDragged=!1,n!==t.originalEvent.target&&f.hideAllLabels(),e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],y,v)}))},n.setValue=function(e){this.config.value=e},n.getValue=function(){return this.config.value},n.getLabelDimension=function(){var e=this,t=e.config,n=e.getFromEnv("smartLabel"),a=e.getFromEnv("timeNavigatorConfig").formatter;return n.setStyle(t.style.label),n.getOriSize(a.format(t.value))},n.draw=function(){var e,t,n,a,i,r,o,s,c,u=this,d=u.config,f=d.style.label,h=d.style.labelBg,g=u.getLinkedParent(),p=u.getFromEnv("timeNavigatorConfig"),m=u.getFromEnv("smartLabel"),v=g.getMaxBrushDimensions(),y=u.getDimension(),b=y.x,x=p.formatter,k=u.getValue(),S=x.format(k),_=y.y;m.setStyle(f),n=m.getOriSize(S),"leftLabel"===d.type?b-n.width>=v.x?(t="end",e=1):(t=l,e=-1):b+n.width<=v.x+v.width?(t=l,e=-1):(t="end",e=1),f["text-anchor"]=t,d.showLabel&&(r=n.width,o=n.height,s=r+2*d["border-horizontal-padding"],c=o+2*d["border-vertical-padding"],a=b-e*d["border-horizontal-padding"],i=_-(o+2*d["border-vertical-padding"])/2,u.addGraphicalElement({el:"rect",attr:{x:t===l?b:b-s,y:_-c,width:s,height:c},css:h,shadow:[!0,1],label:"dragableLabelBackground",id:d.type+"dragableLabelBackground",component:u,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}),u.addGraphicalElement({el:"text",attr:{x:a,y:i,text:S},css:f,id:d.type+"dragableLabel",label:"dragableLabel",component:u,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}))},t}(r.SmartRenderer);t["default"]=s},967:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l=["stroke","stroke-width","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-color"],s=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={fill:(0,o.toRaphaelColor)({FCcolor:{color:"#fdfdfd,#f7fffe",ratio:"0,100",angle:90,alpha:"50,50"}}),stroke:"#e3e3e3","stroke-width":1,opacity:1,"fill-opacity":.5,cursor:"move"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,a=n.defaultStyle;n.style=Object.assign({},a,t.style.mask),n.orientation=t.orientation},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,a,i,r,l,s,c=this,u=c.getFromEnv("animationManager"),d=c.getLinkedParent(),f=d.getFromEnv("timeNavigator").config,h=f.contextScale,g=c.getFromEnv("chart"),p={timeFormatter:f.formatter},m=Object.assign({forceFire:!0},p),v={formatter:"%b %d, %Y",action:"translate"};c.addEventListener("fc-dragstart",c.dragstartHandler||(c.dragstartHandler=function(i){n=(0,o.getTouchEvent)(i).clientX,a=0,t=d.getCurrentBrushDimensions(),e=g.getFocusLimit(),g.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],v,m)})),c.addEventListener("fc-dragmove",c.dragmoveHandler||(c.dragmoveHandler=function(e){u.setAnimationState("timenavScroll"),r=(0,o.getTouchEvent)(e).clientX-n,i=a>=r?"down":"up",a=r,l=t.x+r,s=l+t.width,g.setPixelLimit([l,s],h,[i,i],{name:"timeNavBrush",eventArgs:v,options:p})})),c.addEventListener("fc-dragend",c.dragendHandler||(c.dragendHandler=function(t){e=g.getFocusLimit(),g.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],v,m)}))},n.draw=function(){var e,t=this,n=t.config,a=Object.assign({},n.style),i=Object.assign({},n.style),r=l.length,o=t.getDimension();for(e=0;e<r;e++)delete a[l[e]];t.addGraphicalElement({el:"rect",attr:{x:o.x,y:o.y,width:Math.max(o.width,0),height:Math.max(o.height,0),opacity:a.opacity,stroke:"none"},css:a,id:"selectionBox",label:"selectionBox",component:t,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}),i.fill="none",t.addGraphicalElement({el:"path",attr:{path:["M",o.x,o.y,"v",o.height,"h",o.width,"v",-o.height],opacity:i.opacity},id:"selectionBoxBorder",label:"selectionBoxBorder",css:i,component:t,container:{id:"brushGroup",label:"brushGroup",isParent:!0}})},t}(r.SmartRenderer);t["default"]=s},885:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=a(n(294)),o=n(278),l=n(274),s=a(n(886)),c=a(n(890)),u=a(n(892)),d=a(n(894)),f=a(n(896)),h=a(n(898)),g=a(n(900)),p=a(n(902)),m=a(n(903)),v=a(n(904)),y=a(n(905)),b=a(n(941)),x=a(n(943)),k=a(n(944)),S="M",_=function(e,t){var n=e-2,a=e+2;return["\n M "+(n+4)+", "+(t-6)+" L "+(n-4)+", "+(t+6)+"\n M "+(a+4)+", "+(t-6)+" L "+(a-4)+", "+(t+6)+"\n ","\n M "+(e+4)+", "+(t-6)+" L "+(e-4)+", "+(t+6)+"\n "]},C=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",y["default"]),t.registerFactory("gridLine",d["default"]),t.registerFactory("gridBand",k["default"]),t.registerFactory("timeMarker",s["default"]),t.registerFactory("referenceLine",c["default"]),t.registerFactory("referenceZone",u["default"],["mouseTracker"]),t.registerFactory("mouseTracker",f["default"]),t.registerFactory("tooltip",h["default"],["mouseTracker"]),t.registerFactory("wheel",g["default"]),t.registerFactory("dbTap",p["default"]),t.registerFactory("swipe",m["default"]),t.registerFactory("pinchZoom",v["default"]),t.registerFactory("verticalCrossline",b["default"],["dataset"]),t.registerFactory("horizontalCrossline",x["default"],["dataset"]),t}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.padding={left:0,right:0,top:0,bottom:0},t.multiSeriesDatasetMap={},t.enableMouseTracking=1,t.enableMarkers=1,t.enableTimeMarkers=1,t.enableReferenceLine=1,t.enableReferenceZone=1,t.enableInteraction=0,t.includeLegend=1,t.gridLineDirection="horizontal",t.styleGridLines=1},n.getName=function(){return"canvas"},n.highlightDataPoints=function(e,t,n){var a,i=this.getChildren("dataset"),r=this.getChildren("mouseTracker")[0];i.filter((function(e){return e.getFromEnv("yScale")===t})).forEach((function(t){(a=t.getHighlightedIndices(n)).length&&(e?(r.deactivate(),t.setHoverInEffect(a)):(r.activate(),t.setHoverOutEffect(a)))}))},n.getType=function(){return"canvas"},n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,n=t.borderConfig||(t.borderConfig={});Object.assign(t,e);var a=t.canvasStyle;["leftBorder","topBorder","rightBorder","bottomBorder"].forEach((function(t){n[t]=e[t]?(0,l.pluckNumber)(a["stroke-width"],2):n[t]||0})),t.canvasBorderColor=(0,o.convertColor)((0,l.pluck)(a.stroke,"D6D6D6"),(0,l.pluckNumber)(100*a["stroke-opacity"],100)),t.canvasBGColor=(0,o.convertColor)((0,l.pluck)(a.fill,"ffffff"),(0,l.pluckNumber)(100*a["fill-opacity"],100)),t.opacity=a.opacity,t.showGridBand=t.gridBandSupported&&(0,l.pluckNumber)(t.yConfigs[0].showgridband,0),t.gridBandStyle=t.yConfigs[0].style?t.yConfigs[0].style["grid-band"]:{}},n.setDimension=function(e){void 0===e&&(e={});var t=this.config,n=t.borderConfig,a=this.getFromEnv("chartConfig");t.canvasTop=e.top||0,t.canvasLeft=e.left||0,t.canvasWidth=e.width||a.origRenderWidth,t.canvasHeight=e.height||a.origRenderHeight,t.canvasBGTop=t.canvasTop+n.topBorder,t.canvasBGLeft=t.canvasLeft+n.leftBorder,t.canvasBGWidth=Math.max(0,t.canvasWidth-n.rightBorder-n.leftBorder),t.canvasBGHeight=Math.max(0,t.canvasHeight-n.bottomBorder)},n.getDimension=function(){var e=this.config;return{top:e.canvasTop,left:e.canvasLeft,width:e.canvasWidth,height:e.canvasHeight}},n.isWithinCanvas=function(e,t){var n=e,a=t,i=this.config,r=i&&i.canvasBGLeft,o=Math.floor(r+i&&i.canvasBGWidth),l=i&&i.canvasBGTop,s=i&&i.padding,c=Math.floor(l+i&&i.canvasBGHeight),u=this.getTranslation();return n=n-(u.x||0)+(s&&s.left||0),a=a-(u.y||0)+(s&&s.top||0),n>r&&n<o&&a>l&&a<c},n.draw=function(){var e=this;e._createGroup(),e._drawCanvas(),!e.config.isContext&&e._setTooltipBounding()},n._setTooltipBounding=function(){var e=this,t=e.config,n=e.getTranslation(),a=e.getFromEnv("toolTipController"),i=t.canvasLeft+(n.x||0),r=t.canvasTop+(n.y||0);a._setRelativePosition({left:i,right:i+t.canvasWidth,top:r,bottom:r+t.canvasHeight,canvas:this})},n._drawCanvas=function(){var e,t,n=this,a=n.config,i=a.borderConfig,r=a.canvasTop+i.topBorder/2,o=a.canvasLeft+i.leftBorder/2,l=a.canvasWidth-(i.rightBorder/2+i.leftBorder/2),s=a.canvasHeight-(i.bottomBorder/2+i.topBorder/2),c={leftBorder:[S,o,r,"V",r+s],rightBorder:[S,o+l,r,"V",r+s],topBorder:[S,o,r,"H",o+l],bottomBorder:[S,o,r+s,"H",o+l]};for(e in n.addGraphicalElement({el:"rect",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{y:a.canvasBGTop,x:a.canvasBGLeft,width:a.canvasBGWidth,height:a.canvasBGHeight,fill:a.canvasBGColor,"stroke-width":0,stroke:"none",opacity:a.opacity},id:"background"},!0),i)"bottomBorder"===e?((t=this.getBottomBorderPaths()).normalLine.length&&n.addGraphicalElement({el:"path",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{path:t.normalLine.join(""),stroke:a.canvasBorderColor,"stroke-width":i[e],opacity:a.opacity},id:e+"-normal"},!0),t.dashedLine.length&&n.addGraphicalElement({el:"path",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{path:t.dashedLine.join(""),stroke:a.canvasBorderColor,"stroke-width":i[e],opacity:a.opacity,"stroke-dasharray":[3,4]},id:e+"-dashed"},!0),t.clippedLine.length&&(n.addGraphicalElement({el:"path",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{path:t.clippedLine.join(""),stroke:a.canvasBorderColor,"stroke-width":i[e],opacity:a.opacity},id:e+"-clipped"},!0),n.addGraphicalElement({el:"path",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{path:t.clippedLineMid.join(""),stroke:"#ffffff","stroke-width":i[e],opacity:a.opacity},id:e+"-clipped"},!0))):n.addGraphicalElement({el:"path",component:n,label:"canvas",container:{id:"tropo",label:"group",isParent:!1},attr:{path:c[e],stroke:a.canvasBorderColor,"stroke-width":i[e],opacity:a.opacity},id:e},!0)},n.getBottomBorderPaths=function(){var e,t,n,a,i,r,o=this.getFromEnv("focusScalesX")[0],s=this.config,c=s.borderConfig,u=o.bins,d=o.getDomain(),f=o.getRange(),h=(0,l.pluckNumber)(s.xConfigs[0].showclippingcue,1),g=s.canvasTop+c.topBorder/2,p=s.canvasHeight-(c.bottomBorder/2+c.topBorder/2),m=u.length,v=g+p,y=[],b=[],x=[],k=[];for(e=0,m=u.length;e<m;e++)if(u[e].end>+d[0]&&u[e].start<+d[1]&&(i="M "+o.getRangeValue(Math.max(+d[0],+u[e].start))+", "+v+" \n L "+o.getRangeValue(Math.min(+u[e].end,+d[1]))+", "+v,u[e].clipType&&h?1===u[e].clipType&&(b.push(i),t=e):(y.push(i),t=e)),2===u[e].clipType&&h){if(n===e-1){n=e;continue}if((a=t?(o.getRangeValue(u[t].start)+o.getRangeValue(u[e].end))/2:o.getRangeValue(u[e].end))<f[0]+2||a>f[1]-2)continue;r=_(a,v),x.push(r[0]),k.push(r[1]),n=e}return{normalLine:y,dashedLine:b,clippedLine:x,clippedLineMid:k}},n._createGroup=function(){var e=this,t=e.config,n=t.padding,a=t.canvasBGLeft-n.left,i=t.canvasBGTop-n.top,r=t.canvasBGWidth,o=t.canvasBGHeight,l=["M"+a+","+i,"L"+(a+r)+","+i,"L"+(a+r)+","+(i+o),"L"+a+","+(i+o)+"Z"];e.addGraphicalElement({el:"group",container:{id:"tropo",label:"group",isParent:!0},component:e,label:"group",attr:{name:"canvas-tropo",transform:t.canvasTranslation},id:"tropo"}),e.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:e,label:"strato",attr:{name:"canvas-strato",transform:t.translate},id:"strato"}),e.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:e,label:"meso",attr:{name:"canvas-meso",transform:t.translate,"clip-path":l},id:"meso"}),e.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:e,label:"thermo",attr:{name:"canvas-thermo",transform:t.translate},id:"thermo"}),e.addGraphicalElement({el:"group",container:{id:"exo",label:"group",isParent:!0},component:e,label:"exo",attr:{name:"canvas-exo",transform:t.translate},id:"exo"}),e.addToEnv("dsGroupclipPath",l)},n.setTranslation=function(e,t){var n=this.config,a=n.borderConfig,i=n.padding;n._translateX=e+a.leftBorder,n._translateY=t+a.topBorder,n.canvasTranslation="t"+n._translateX+","+n._translateY,n._translateX+=i.left,n._translateY+=i.top,n.translate="t"+n._translateX+","+n._translateY},n.getCanvasBorder=function(){return this.config.borderConfig},n.setPadding=function(e){void 0===e&&(e={}),Object.assign(this.config.padding,e)},t}(r["default"]);t["default"]=C},948:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r,o=a(n(288)),l=n(290),s=n(274),c="left",u="right",d="middle",f="start",h="font-style",g="font-size",p="font-weight",m="text-anchor",v="vertical-align",y="fill",b=((i={})[g]="16px",i[h]="normal",i[p]="bold",i[y]="#5F5F5F",i),x=((r={})[g]="12px",r[h]="normal",r[p]="normal",r[y]="#B1B1B1",r),k=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.captionCss=b,t.subCaptionCss=x,t.alignment=c,t.gap=0},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,a=this.getFromEnv("baseTextStyle");Object.keys(t).forEach((function(e){return n[e]=t[e]})),n.captionCss=Object.assign({},b,a,n.captionCss||{}),n.subCaptionCss=Object.assign({},x,a,n.subCaptionCss||{})},n.setDimension=function(e){var t,n,a,i,r=this.config,o=this.getFromEnv("smartLabel"),l=e.height-10,s=e.width,c=0,u=0;return r.subCaption?(c=.7*(t=l-(i=r.gap=.02*l)),u=r.caption?.3*t:l):t=c=l,o.useEllipsesOnOverflow(!0),o.setStyle(r.captionCss),n=r.captionDim=o.getSmartText(r.caption,s,c),o.setStyle(r.subCaptionCss),a=r.subCaptionDim=o.getSmartText(r.subCaption,s,u),l=n.height+(r.subCaption?i:0)+a.height,l+=0===l?0:10,r.spaceTaken={width:s,height:l},{height:l,width:s}},n.draw=function(){var e,t,n,a,i=this,r=i.config,o=i.getFromEnv("chart").config,l=r.captionDim,c=r.subCaptionDim,h=r.spaceTaken,g={text:l.text},p={text:c.text};switch(r.captionAlignment){case u:e=h.width,n="end";break;case d:e=h.width/2,n=d;break;default:e=0,n=f}switch(r.subCaptionAlignment){case u:t=h.width,a="end";break;case d:t=h.width/2,a=d;break;default:t=0,a=f}g.x=e,p.x=t,g[m]=n,p[m]=a,g[v]=p[v]="top",g.y=0,p.y=r.gap+l.height,i.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:i,label:"group",attr:{name:"caption-strato",transform:r.translate},id:"strato"}),r.caption&&i.addGraphicalElement({el:"text",attr:{x:g.x,y:g.y,text:g.text,"vertical-align":g[v],opacity:r.captionCss.opacity,"text-anchor":g[m]},css:r.captionCss,container:{id:"strato",label:"group",isParent:!1},tooltext:o.showTooltip?l.tooltext:s.UNDEF,component:i,id:"caption",label:"text"}),r.subCaption&&i.addGraphicalElement({el:"text",attr:{x:p.x,y:p.y,text:p.text,"vertical-align":p[v],opacity:r.subCaptionCss.opacity,"text-anchor":p[m]},css:r.subCaptionCss,container:{id:"strato",label:"group",isParent:!1},tooltext:o.showTooltip?c.tooltext:s.UNDEF,component:i,id:"subCaption",label:"text"})},t}(l.SmartRenderer),S=k;t["default"]=S},942:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l=a(n(856)),s="vertical",c="M",u="L",d="l",f="h",h="v",g=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.type=s,t.values=[],t._defaultLineStyle={stroke:"#9a9a9a","stroke-width":1,"stroke-opacity":1},t._defaultTextStyle={fill:"#ffffff","font-size":"10px","font-weight":"normal","font-style":"normal","text-anchor":"middle"},t._defaultTagStyle={fill:"#5f5f5f"},t._defaultPadding=2},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var n,a,i=this.config,r=this.getFromEnv("baseTextStyle"),o=this.getFromEnv("getStyleDef");for(var l in t)t.hasOwnProperty(l)&&(i[l]=t[l]);n=i.type,a=i.inputStyle,i._lineStyle=Object.assign({},i._defaultLineStyle,o(a.line),o(a[n+"-line"])),i._textStyle=Object.assign({},i._defaultTextStyle,r,o(a.label),o(a[n+"-label"])),i._tagStyle=Object.assign({},i._defaultTagStyle,o(a.tag),o(a[n+"-tag"]))},n.getPathArrs=function(){var e,t=this.config,n=t.type===s,a=t.scale,i=t.values,r=[],o=this.getLinkedParent().config,l=o.padding,u=o.canvasLeft-l.left,d=o.canvasTop-l.top,g=o.canvasWidth,p=o.canvasHeight;return i.forEach((function(t){var i=a.getRangeValue(t);i&&(e=n?[c,i,d,h,p]:[c,u,i,f,g],r.push(e))})),r},n.drawVerticalCrosslineText=function(){var e,t,n,a,i=this,r=i.config,s=r.dateRange,d=r.timeFormatterFn({dateRange:s,type:"crossline"}),g=r.values,p=r.scale,m=(0,o.pluckNumber)(r.padding,r._defaultPadding),v=i.getLinkedParent().config,y=v.padding,b=v.canvasLeft-y.left,x=v.canvasTop-y.top,k=v.canvasWidth,S=x+v.canvasHeight,_=b+k,C=i.getFromEnv("smartLabel"),w=0;g.forEach((function(o,s){(0,l["default"])(o)&&(C.setStyle(r._textStyle),n=C.getOriSize(d),t=p.getRangeValue(o),a="crossline-"+s,i.addGraphicalElement({el:"group",container:{id:"thermo",label:"thermo",isParent:!0},component:i,label:a,attr:{name:"veritcal-crossline-marker-group"},id:a}),t+n.width/2+2*m>_?(e=[c,t,S,u,t,S+m,h,n.height+2*m,f,-(n.width+4*m),h,-(n.height+2*m),u,t-m,S+m,"z"],r._textStyle["text-anchor"]="end",w=-2*m):t-n.width/2-2*m<b?(e=[c,t,S,u,t,S+m,h,n.height+2*m,f,n.width+4*m,h,-(n.height+2*m),u,t+m,S+m,"z"],r._textStyle["text-anchor"]="start",w=2*m):(e=[c,t,S,u,t-m,S+m,u,t-n.width/2-2*m,S+m,h,n.height+2*m,f,n.width+4*m,h,-(n.height+2*m),u,t+m,S+m,"z"],r._textStyle["text-anchor"]="middle"),i.addGraphicalElement({el:"path",attr:{path:e},css:r._tagStyle,id:"vertical-crossline-marker-"+s,container:{label:a}}),i.addGraphicalElement({el:"text",attr:{text:d,x:t+w,y:S+2*m+n.height/2},css:r._textStyle,id:"vertical-crossline-text-"+s,container:{label:a}}),C.setStyle(r._textStyle),n=C.getOriSize(d),t=p.getRangeValue(o))}))},n.drawHorizontalCrosslineText=function(){var e,t,n,a=this,i=this,r=i.config;r.values.forEach((function(s,c){(0,l["default"])(s)&&(e=r.formatterFn({value:r.texts[c],type:"crossline",prefix:r.prefix,suffix:r.suffix}),n=a.getHorizontalMarkerProps(s,c),t="crossline-"+c,i.addGraphicalElement({el:"group",container:{id:"thermo",label:"thermo",isParent:!0},component:i,label:t,attr:{name:"horizontal-crossline-marker-group"},id:t}),r._tagStyle.fill=(0,o.pluck)(r.markerFill,r._tagStyle.fill),r._tagStyle.stroke=(0,o.pluck)(r._tagStyle.stroke,r.markerFill),i.addGraphicalElement({el:"path",attr:{path:n.markerPath},css:r._tagStyle,id:"horizontal-crossline-marker-"+c,container:{label:t}}),i.addGraphicalElement({el:"text",attr:{text:e,x:n.markerText.x,y:n.markerText.y},css:r._textStyle,id:"horizontal-crossline-text-"+c,outlineText:r.showTextOutline,container:{label:t}}))}))},n.getHorizontalMarkerProps=function(e,t){var n,a,i,r=this,l=r.config,s=l.scale,u=l.yAxisAlignment,g=(0,o.pluckNumber)(l.padding,l._defaultPadding),p=r.getLinkedParent().config,m=l.formatterFn({value:l.texts[t],type:"crossline",prefix:l.prefix,suffix:l.suffix}),v=p.borderConfig,y=p.padding,b=p.canvasLeft+v.leftBorder-y.left,x=b+(p.canvasWidth-v.rightBorder+y.left),k=r.getFromEnv("smartLabel"),S={},_={};switch(k.setStyle(l._textStyle),a=k.getSmartText(m),n=s.getRangeValue(e),u){case"left":i=[c,b,n,f,-5,d,-5,-a.height/2-2*g,f,-(a.width+2*g),h,a.height+4*g,f,a.width+2*g,d,5,-a.height/2-2*g],S.x=b-10-(a.width+2*g)/2,S.y=n;break;case"right":i=[c,x,n,f,5,d,10,-a.height/2-2*g,f,a.width+2*g,h,a.height+4*g,f,-(a.width+2*g),d,-10,-a.height/2-2*g],S.x=x+10+(a.width+2*g)/2,S.y=n}return _.markerPath=i,_.markerText=S,_},n.draw=function(){var e=this,t=e.config;e.getPathArrs().forEach((function(n,a){e.addGraphicalElement({el:"group",container:{id:"strato",label:"strato",isParent:!0},component:e,label:"verticalcrossline-"+a,attr:{name:"vertical-crossline-group"},id:"crossline-"+a}),e.addGraphicalElement({el:"group",container:{id:"strato",label:"strato",isParent:!0},component:e,label:"horizontalcrossline-"+a,attr:{name:"horizontal-crossline-group"},id:"crossline-"+a}),n.length&&e.addGraphicalElement({el:"path",attr:{path:n},css:t._lineStyle,container:{label:t.type+"crossline-"+a},id:t.type+"-crossline-path-"+a,component:e}),t.showMarker&&(t.type===s?e.drawVerticalCrosslineText():e.drawHorizontalCrosslineText())}))},t}(r.SmartRenderer),p=g;t["default"]=p},975:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(273)),r=a(n(292)),o=a(n(288)),l=n(290);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var c=function(e){function t(t){var n;n=e.call(this,t)||this;var a=(0,r["default"])(n),i=a.config;return i.clickHandler=function(){a.getLinkedParent().submitData(i.type)},i.mouseoverHandler=function(){a.setData({buttonStyle:i["button:hover"]},!0)},i.mouseoutHandler=function(){a.config&&a.setData({buttonStyle:i["button:hoverout"]},!0)},a.addEventListener("fc-click",i.clickHandler),a.addEventListener("fc-mouseover",i.mouseoverHandler),a.addEventListener("fc-mouseout",i.mouseoutHandler),n}(0,o["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.height=10,e.width=20,e.label="Apply",e._buttonStyle={"-webkit-border-radius":"2px",backgroundColor:"#5648D4",border:"1px solid #5648D4",borderRadius:"2px",color:"#60634E",cursor:"pointer",paddingTop:"1px",textAlign:"center",zIndex:21,display:"flex",width:66,height:22,"line-height":"9px","justify-content":"center","align-items":"center","font-size":"11px"},e.clickHandler=function(){this.getLinkedParent().submitData()}},n.configureAttributes=function(e){void 0===e&&(e={});var t=this,n=t.config,a=t.getFromEnv("getStyleDef");Object.assign(n,e),n._finalStyle=Object.assign({},n._buttonStyle,t.getFromEnv("baseTextStyle"),a(n.customStyle),a(n.buttonStyle))},n.getDimension=function(){var e=this.config,t=e._finalStyle["font-size"],n=this.getFromEnv("fontParser");return e.width=Math.max(+e._finalStyle.width||0,6*n(t)),e.height=Math.max(+e._finalStyle.height||0,2*n(t)),{width:e.width,height:e.height}},n.setTranslation=function(e,t){this.config.position={x:e,y:t}},n.draw=function(){var e=this,t=e.config,n=t.position,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t._finalStyle);a["margin-bottom"]=window.innerWidth<576?"15px":"0px",e.addGraphicalElement({el:"html",attr:{text:t.label,type:"div",width:t.width,height:t.height,x:n.x,y:n.y},component:e,container:{id:"box-container",label:"box-container",isParent:!0},css:a,label:"button",id:"button"})},t}(l.SmartRenderer),u=c;t["default"]=u},976:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l="mobile",s=document.body,c=document.documentElement,u=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.visibility="hidden"},n.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},n.draw=function(){var e,t,n=this,a=+n.getFromEnv("chartHeight"),i=+n.getFromEnv("chartWidth"),r=window.innerWidth<576?l:"desktop",u=n.config.visibility,d=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight);r===l?(e={x:0,y:0,width:window.innerWidth,height:d,visibility:u,type:"div"},t={position:"fixed",opacity:.6,"background-color":"#cdcdcd"}):(e={x:0,y:0,width:i,height:a,visibility:u,type:"div"},t={opacity:1,"background-color":o.TRACKER_FILL}),n.addGraphicalElement({el:"html",attr:e,css:t,component:n,id:"cover",label:"cover"})},t}(r.SmartRenderer),d=u;t["default"]=d},973:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=n(274),s=[2,2,4],c=function(e){return(e<10?"0"+e:e)+""};function u(e){var t,n=this.getLinkedParent(),a=(e.originalEvent.target.value+"").split("/"),i=a.length;if(3===i){for(t=0;t<i;t++)if(isNaN(a[t])||a[t].length!==s[t])return;n.updateCalendar({day:+a[0],month:+a[1],year:+a[2]},this.config.id)}}var d=function(e){function t(t){var n;n=e.call(this,t)||this;var a=(0,i["default"])(n);return n.addEventListener("blur",u.bind((0,i["default"])(n))),n.addEventListener("keyup",(function(e){a.setData({tempDate:e.originalEvent.target.value})})),n}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.enabled=!0,t.inputBoxWidth=65,t.tempDate=!1,t._labelStyle={"font-size":"12px","font-weight":"normal","font-style":"normal",color:"#5F5F5F"},t._inputStyle={"font-size":"12px",border:"1px solid #efefef","background-color":"#fcfcfc",color:"#5F5F5F",width:t.inputBoxWidth+l.PXSTRING,padding:"2px"},t.date={day:8,month:10,year:2018}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,a=this,i=a.config,r=a.getFromEnv("getStyleDef"),o=a.getFromEnv("baseTextStyle");Object.assign(i,t),n=i.date,i.value=c(n.day)+"/"+c(n.month)+"/"+c(n.year),i._finalLabelStyle=Object.assign({},i._labelStyle,o,r(i.labelStyle)),i._finalInputStyle=Object.assign({},i._inputStyle,o,r(i.inputStyle)),delete i._finalInputStyle["line-height"]},n.getDimension=function(){var e,t=this,n=t.config,a=t.getFromEnv("smartLabel"),i=t.getFromEnv("fontParser")(n._finalInputStyle["font-size"]);return a.setStyle(Object.assign({},n._finalLabelStyle)),n.labelDim=e=a.getOriSize(n.label),a.setStyle(Object.assign({},n._finalInputStyle)),n.inputBoxWidth=a.getOriSize(n.value).width+10,n._finalInputStyle.width=Math.max(65,n.inputBoxWidth)+l.PXSTRING,{width:e.width+n.inputBoxWidth,height:Math.max(a._lineHeight,1.5*i)}},n.setTranslation=function(e,t){this.config.position={x:e,y:t}},n.draw=function(){var e=this,t=e.config,n=t.position,a=t.labelDim,i=t.date||{},r=c(i.day)+"/"+c(i.month)+"/"+c(i.year);e.addGraphicalElement({el:"html",attr:{x:n.x,y:n.y,type:"div",text:t.label},component:e,css:t._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"label",id:"label"}),t._finalInputStyle.width=t.inputBoxWidth+l.PXSTRING,e.addGraphicalElement({el:"html",attr:{x:n.x+a.width,y:n.y-a.height/3,type:"input",name:t.label,value:t.tempDate||r},component:e,css:t._finalInputStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"box",id:"box"})},t}(o.SmartRenderer);t["default"]=d},969:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=a(n(970)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},n.updateOnLimitChange=function(){this.setData({domain:this.getFromEnv("chart").getFocusLimit(),limitChanged:!0},!0)},n.getToolInfo=function(){var e=Object.assign({},this.config.style);return e["title:hoverout"]={title:e["title-text"],icon:e["title-icon"]},{"selector-0":{type:"tool",def:o["default"],configuration:{domain:this.config.domain,hAlign:"right",scale:1,marginTop:2,marginBottom:2,marginLeft:2,marginRight:2,extStyle:e,limitChanged:this.config.limitChanged}}}},t}(r.SmartRenderer),s=l;t["default"]=s},971:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=t.formatDate=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=a(n(972)),s=n(274),c=a(n(973)),u=a(n(974)),d=a(n(975)),f=a(n(481)),h=n(534),g="cal-",p="mobile",m="desktop",v="english",y=function(e){return(e<10?"0"+e:e)+""};t.formatDate=y;var b=function(e){function t(t){var n;return n=e.call(this,t)||this,(0,i["default"])(n).addToEnv("fontParser",(function(e){var t=parseFloat(e);return isNaN(t)?11:t})),n}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.paddingLeft=10,e.paddingRight=10,e.paddingTop=15,e.paddingBottom=15,e.prevVisibility="hidden",e.contextStart={year:1970,month:1,day:1},e.contextEnd={year:2070,month:1,day:1},e.calendarDim={height:191,width:163},this._calendars={},e._backgroundStyle={"font-size":11+s.PXSTRING,"font-family":"Verdana,sans-serif",border:"1px solid #cdcdcd",position:"absolute","border-radius":"0px","overflow-y":"visible","background-color":"#ffffff"},e._mobileBgStyle=Object.assign({},e._backgroundStyle,{position:"fixed","overflow-y":"scroll","border-radius":"10px"}),e._pointerStyle={"font-size":11+s.PXSTRING,"font-family":"Verdana,sans-serif","border-left":"1px solid #cdcdcd","border-right":"0px solid #cdcdcd","border-top":"1px solid #cdcdcd","border-bottom":"0px solid #cdcdcd",transform:"rotate(45deg)","background-color":"#ffffff"}},n.configureAttributes=function(e){var t;void 0===e&&(e={});var n,a,i,r,o,l,p=this,m=p.config,y=p.getCalendars(),b=p.getFromEnv("getStyleDef"),x=p.getFromEnv("baseTextStyle"),k=null!=(t=this.getFromEnv("language"))?t:v,S=h.dateBoxLabelMap[k].From,_=h.dateBoxLabelMap[k].To,C=h.crsButtonLabelsMap[k].apply,w=h.crsButtonLabelsMap[k].cancel;if(Object.assign(m,e),n=m.extStyle,m.visibility!==m.prevVisibility?(a=!1,m.blockUpdate=!1):m.blockUpdate=!0,m.prevVisibility=m.visibility,"visible"!==m.visibility)return y.left&&(y.left.dispose(),delete y.left),void(y.right&&(y.right.dispose(),delete y.right));i={label:S,date:m.leftCalSelectedDate,id:"left",labelStyle:n.label,inputStyle:n.input},r={label:_,date:m.rightCalSelectedDate,id:"right",labelStyle:n.label,inputStyle:n.input},void 0!==a&&(i.tempDate=r.tempDate=a),p.attachChild(c["default"],"left-date","left-date").configure(i),p.attachChild(c["default"],"right-date","right-date").configure(r),m.showTime&&(p.attachChild(u["default"],"left-time","left-time").configure({time:m.leftCalSelectedDate,labelStyle:n.label,selectStyle:n.select}),p.attachChild(u["default"],"right-time","right-time").configure({time:m.rightCalSelectedDate,labelStyle:n.label,selectStyle:n.select})),o=n["button-apply"]?Object.assign({},x,n["button-apply"]):Object.assign({color:"#ffffff","font-size":11+s.PXSTRING},x),p.attachChild(d["default"],"apply","apply").configure({label:C,type:"submit",customStyle:o,buttonStyle:o,"button:hoverout":o,"button:hover":n["button-apply:hover"]||{}}),l=n["button-cancel"]?Object.assign({},x,n["button-cancel"]):Object.assign({backgroundColor:"#ffffff",color:"#7A7A7A",border:"0px","font-size":11+s.PXSTRING},x),p.attachChild(d["default"],"cancel","cancel").configure({label:w,type:"cancel",customStyle:l,buttonStyle:l,"button:hoverout":l,"button:hover":n["button-cancel:hover"]||{}}),m._finalBackgroundStyle=Object.assign({},m._backgroundStyle,b(n.container)),m._finalMobileBgStyle=Object.assign({},m._mobileBgStyle,b(n.container)),m._finalPointerStyle=Object.assign({},m._pointerStyle,b(n.container)),m._finalPointerStyle.border&&(m._finalPointerStyle["border-left"]=m._finalPointerStyle["border-top"]=m._finalPointerStyle.border),m._finalPointerStyle["border-right"]=m._finalPointerStyle["border-bottom"]="0px",delete m._finalPointerStyle.border,m.calStyle=function(e,t){var n={};if((0,f["default"])(e))for(var a in e)e.hasOwnProperty(a)&&a.startsWith(g)&&(n[a.substring(4)]=t(e[a]));return n}(m.extStyle,p.getFromEnv("getStyleDef"))},n.manageSpace=function(e){void 0===e&&(e=m),e===m?this.manageSpaceLG():this.manageSpaceSM()},n.manageSpaceSM=function(){var e,t,n,a,i,r,o,l,s,c,u,d,f=this,h=f.config,g=document.documentElement.clientHeight,p=document.documentElement.clientWidth,m=.8*g,v={height:0,width:0},y={height:0,width:0},b=50,x=h.paddingTop,k=h.calendarDim;"visible"===h.visibility&&(e=f.getChildren("left-date")[0],t=f.getChildren("right-date")[0],n=f.getChildren("left-time"),a=f.getChildren("right-time"),o=f.getChildren("apply")[0],l=f.getChildren("cancel")[0],n&&(v=(n=n[0]).getDimension()),a&&(y=(a=a[0]).getDimension()),i=e.getDimension(),r=t.getDimension(),u=o.getDimension(),d=l.getDimension(),c=Math.max(k.width,i.width,r.width,v.width,y.width,u.width+d.width+8),e.setTranslation(b,x),s=b+c/2-k.width/2,x+=i.height+8,h.leftCalendarPosition={x:s,y:x},x+=k.height+8,n&&n.setTranslation(b,x),x+=v.height+16,t.setTranslation(b,x),s=b+c/2-k.width/2,x+=r.height+8,h.rightCalendarPosition={x:s,y:x},x+=k.height+8,a&&a.setTranslation(b,x),x+=y.height+8,o.setTranslation(b,x),l.setTranslation(b+u.width+8,x),m>x+u.height+h.paddingBottom?(h.height=x+u.height+h.paddingBottom,h.y=g/2-h.height/2):(h.height=m,h.y=.1*g),h.width=k.width+b+50,h.x=p/2-h.width/2)},n.manageSpaceLG=function(){var e,t,n,a,i,r,o,l,s,c,u,d,f=this,h=f.config,g=4,p={height:0,width:0},m={height:0,width:0},v=h.calendarDim,y=f.getLinkedParent().config.containerPos;"visible"===h.visibility&&(n=f.getChildren("left-date")[0],a=f.getChildren("right-date")[0],i=f.getChildren("left-time"),r=f.getChildren("right-time"),o=f.getChildren("apply")[0],l=f.getChildren("cancel")[0],i&&(p=(i=i[0]).getDimension()),r&&(m=(r=r[0]).getDimension()),!p.height&&(g=2),e=n.getDimension(),t=a.getDimension(),u=o.getDimension(),d=l.getDimension(),s=Math.max(p.width,e.width,v.width),h.leftCalendarPosition={x:h.paddingLeft,y:h.paddingTop+e.height+8},h.rightCalendarPosition={x:h.paddingLeft+s+25,y:h.paddingTop+t.height+8},n.setTranslation(h.paddingLeft,h.paddingTop),a.setTranslation(h.paddingLeft+s+25,h.paddingTop),i&&i.setTranslation(h.paddingLeft,h.leftCalendarPosition.y+v.height+16),r&&r.setTranslation(h.paddingLeft+s+25,h.rightCalendarPosition.y+v.height+16),o.setTranslation(h.paddingLeft,h.leftCalendarPosition.y+v.height+8*g+p.height),l.setTranslation(h.paddingLeft+u.width+5,h.leftCalendarPosition.y+v.height+8*g+p.height),c=Math.max(h.paddingLeft+u.width+5+d.width,h.rightCalendarPosition.x+v.width,h.paddingLeft+s+25+m.width,h.paddingLeft+s+25+t.width),h.width=c+h.paddingRight,h.height=h.leftCalendarPosition.y+v.height+u.height+8*g+p.height+h.paddingBottom,h.x=y.x-h.width/2,h.y=y.y+4)},n.isWithinWidget=function(e,t){var n=this.config,a=n.x,i=n.y,r=i+n.height,o=a+n.width;return e>a&&e<o&&t>i&&t<r},n.draw=function(){var e,t=this,n=t.config,a=n._finalMobileBgStyle,i=n._finalBackgroundStyle,r=n.visualMode=window.innerWidth<576?p:m,o=r===p?a:i;n.language=null!=(e=this.getFromEnv("language"))?e:v,"hidden"!==n.visibility&&(r===p&&(o["overflow-y"]="scroll"),t.manageSpace(r),t.addGraphicalElement({el:"html",attr:{x:n.x,y:n.y,width:n.width,height:n.height,type:"div",fill:"ffffff",display:"block","class":"fc-crs-widget",visibility:n.visibility},css:o,component:t,label:"box-container",id:"box-container"}),r!==p&&t.addGraphicalElement({el:"html",attr:{x:n.width/2-10,y:-9,width:15,height:15,type:"div",display:"block",visibility:n.visibility},css:n._finalPointerStyle,container:{label:"box-container",id:"box-container"},component:t,label:"box-pointer",id:"box-pointer"}),n.drawCalendars&&t.drawCalendars(),n.mode=r)},n.getCalendars=function(){return this._calendars},n.drawCalendars=function(){var e,t=this,n=t.config,a=t.getCalendars(),i=n.leftCalendarPosition,r=n.rightCalendarPosition,o=t.getGraphicalElement("box-container","box-container").element,c=window.innerWidth<576?p:m,u=n.calStyle,d=n.language;n.mode===c&&n.blockUpdate&&a.left&&a.right||(a.left?a.left.configure({weekLabel:h.weekLabelMap[d],monthLabel:h.monthsMap[d],selectedDate:n.leftCalSelectedDate,posX:i.x,posY:i.y,rangeStart:n.contextStart,rangeEnd:n.contextEnd,customCssClass:u,showInactiveMonths:!0,container:o,language:d}):a.left=new l["default"]({weekLabel:h.weekLabelMap[d],monthLabel:h.monthsMap[d],selectedDate:n.leftCalSelectedDate,posX:i.x,posY:i.y,container:o,id:"left",rangeStart:n.contextStart,rangeEnd:n.contextEnd,showInactiveMonths:!0,customCssClass:u,language:d,events:{onDateChange:function(e){t.updateDate(e,"left")},onMonthChange:function(e){t.updateDate(e,"left")},onYearChange:function(e){t.updateDate(e,"left")}},"font-family":s.DEFAULT_FT_FONT+" !important"}),a.right?a.right.configure({weekLabel:h.weekLabelMap[d],monthLabel:h.monthsMap[d],selectedDate:n.rightCalSelectedDate,posX:r.x,posY:r.y,rangeStart:n.contextStart,rangeEnd:n.contextEnd,customCssClass:u,showInactiveMonths:!0,container:o,language:d}):a.right=new l["default"]({weekLabel:h.weekLabelMap[d],monthLabel:h.monthsMap[d],selectedDate:n.rightCalSelectedDate,posX:r.x,posY:r.y,rangeStart:n.contextStart,rangeEnd:n.contextEnd,showInactiveMonths:!0,customCssClass:u,language:d,container:o,id:"right",events:{onDateChange:function(e){t.updateDate(e,"right")},onMonthChange:function(e){t.updateDate(e,"right")},onYearChange:function(e){t.updateDate(e,"right")}},"font-family":s.DEFAULT_FT_FONT+" !important"}),(e=a.left.getDimension()).width===n.calendarDim.width&&e.height===n.calendarDim.height||(n.calendarDim=e,t.asyncDraw()))},n.updateDate=function(e,t){var n=this.getChildren(t+"-date")[0],a=n.getGraphicalElement("box","box");n.setData({date:e,tempDate:!1},!0),a.element.value=y(e.day)+"/"+y(e.month)+"/"+y(e.year)},n.updateCalendar=function(e,t){var n=this,a=n.config,i=n.getCalendars(),r=a[t+"CalSelectedDate"];!function(e,t,n){var a=new Date(t.year,t.month,t.day),i=new Date(n.year,n.month,n.day),r=new Date(e.year,e.month,e.day);return+r>=+a&&+r<=+i}(e,a.contextStart,a.contextEnd)?n.getChildren(t+"-date")[0].setData({},!0):(a[t+"CalSelectedDate"]=e,r.day=e.day,r.month=e.month,r.year=e.year,i[t]&&i[t].configure({selectedDate:e}))},n.submitData=function(e){var t;void 0===e&&(e="cancel");var n,a,i,r,o=this,l=o.getLinkedParent(),s=l.getFromEnv("chart"),c=s.getFromEnv("contextScalesX")[0],u=[],d=o.getCalendars(),f=s.getFromEnv("UTC"),h=d.left.getDate(),g=d.right.getDate(),p=o.getChildren("left-time"),m=o.getChildren("right-time"),y=null!=(t=this.getFromEnv("language"))?t:v,b={hours:0,minutes:0,seconds:0},x={hours:0,minutes:0,seconds:0};p&&(b=p[0].getTime()),m&&(x=m[0].getTime()),l.setData({},!0),"submit"===e&&(i=f?Date.UTC(h.year,h.month-1,h.day,b.hours,b.minutes,b.seconds):new Date(h.year,h.month-1,h.day,b.hours,b.minutes,b.seconds),r=f?Date.UTC(g.year,g.month-1,g.day,x.hours,x.minutes,x.seconds):new Date(g.year,g.month-1,g.day,x.hours,x.minutes,x.seconds),u.push(+i),u.push(+r),s.setFocusLimit(u),a=l.decideTimeInLabel(),n=c.getFormattedTime({dateRange:{startDate:i,endDate:r},type:"CRS",showTimeInLabel:a,language:y}).split(" - "),s.fireChartInstanceEvent("customRangeSelect",{start:+i,end:+r,startText:n[0],endText:n[1],formatter:"%b %d, %Y"+(a?", %H:%M:%S":"")})),l.removeDocumentListener()},t}(o.SmartRenderer);t["default"]=b},970:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=a(n(971)),l=n(418),s=n(274),c=a(n(976)),u=a(n(319)),d=["hour","minute","second","millisecond"];function f(){var e=this.config.extStyle;this.setData({interactionStyle:{text:e["title-text:hover"],icon:e["title-icon:hover"]},hoverConfig:!0},!0)}function h(){!this.config.blockUpdate&&this.setData({interactionStyle:this.config.extStyle["title:hoverout"],hoverConfig:!0},!0)}function g(e){this.removeDocumentListener(),e.detachHandler()}var p=function(e){function t(t){var n;n=e.call(this,t)||this;var a=(0,i["default"])(n),r=a.config;return r.wrapper=new u["default"],r.documentClicked=function(e){var t,n,i=(0,s.getMouseCoordinate)(a.getFromEnv("chart-container"),e,a.getFromEnv("chart")),o=i.chartX,l=i.chartY,c=i.clientX,u=i.clientY,d=a.getChildren("manager")[0],f=e.target;("mobile"===d.config.visualMode?(t=c,n=u):(t=o,n=l),d.isWithinWidget(t,n))||("fc__crs__str"===(f instanceof SVGElement&&f.className.baseVal)||"fc__select__time"===f.className||f.parentElement&&"fc__select__time"===f.parentElement.className||(r.wrapper.off(document,"fc-click",r.documentClicked),a.setData({},!0)))},a.keyDownHandler=function(e){("key"in e?"Escape"===e.key||"Esc"===e.key:27===e.keyCode)&&n.setData({},!0)},a.clickHandler=function(e){var t,n,i=a,o=r.domain,l=i.getFromEnv("chart"),s=l.getFromEnv("UTC"),c=l.getFromEnv("dateAPI"),u=l.getContextLimit(),d=new Date(u[0]),f=new Date(u[1]),h=new Date(o[0]),g=new Date(o[1]);i.setData({blockUpdate:!0,interactionStyle:{text:r.extStyle["title-text:active"],icon:r.extStyle["title-icon:active"]}},!0),i.getChildren("cover")[0].setData({visibility:"visible"},!0),t={year:c(h,"FullYear",s),month:c(h,"Month",s)+1,day:c(h,"Date",s),hours:c(h,"Hours",s),minutes:c(h,"Minutes",s),seconds:c(h,"Seconds",s)},n={year:c(g,"FullYear",s),month:c(g,"Month",s)+1,day:c(g,"Date",s),hours:c(g,"Hours",s),minutes:c(g,"Minutes",s),seconds:c(g,"Seconds",s)},i.getChildren("manager")[0].setData({visibility:"visible",position:i.config.containerPos,drawCalendars:!0,startDate:t,endDate:n,leftCalSelectedDate:t,rightCalSelectedDate:n,contextStart:{year:c(d,"FullYear",s),month:c(d,"Month",s)+1,day:c(d,"Date",s)},contextEnd:{year:c(f,"FullYear",s),month:c(f,"Month",s)+1,day:c(f,"Date",s)}},!0),r.wrapper.on(document,"fc-click",a.config.documentClicked),r.wrapper.on(document,"keydown",a.keyDownHandler)},a.addEventListener("fc-click",a.clickHandler),a.addEventListener("fc-mouseover",f.bind((0,i["default"])(n))),a.addEventListener("fc-mouseout",h.bind((0,i["default"])(n))),a.addEventListener("beforeremove",g.bind((0,i["default"])(n))),n}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.containerState=0,t.showDate=!0,t.calendarIconPath="M15.604605,2.6231875 C15.3617479,2.39715625 15.0736134,2.284125 14.7409412,2.284125 L13.5126723,2.284125 L13.5126723,1.4275625 C13.5126723,1.0350625 13.3621849,0.69896875 13.0615126,0.41940625 C12.7606723,0.13984375 12.3993613,0 11.9769748,0 L11.3629244,0 C10.9405714,0 10.5791261,0.13984375 10.2784202,0.4194375 C9.97761345,0.69896875 9.8272605,1.03509375 9.8272605,1.42759375 L9.8272605,2.28415625 L6.14221849,2.28415625 L6.14221849,1.42759375 C6.14221849,1.03509375 5.99179832,0.699 5.69105882,0.4194375 C5.39038655,0.13984375 5.02890756,0 4.60655462,0 L3.99240336,0 C3.57015126,0 3.20863866,0.13984375 2.90789916,0.4194375 C2.60722689,0.69896875 2.45677311,1.03509375 2.45677311,1.42759375 L2.45677311,2.28415625 L1.22847059,2.28415625 C0.895697479,2.28415625 0.607831933,2.3971875 0.364705882,2.62321875 C0.121579832,2.84921875 0,3.11696875 0,3.42625 L0,14.8466563 C0,15.1557188 0.121579832,15.4234063 0.364705882,15.6495625 C0.607798319,15.8755312 0.895663866,15.9885937 1.22847059,15.9885937 L14.7407059,15.9885937 C15.0733782,15.9885937 15.3615462,15.8755625 15.6043697,15.6495625 C15.8475294,15.4235 15.9691429,15.1556875 15.9691429,14.8466563 L15.9691429,3.42621875 C15.9691092,3.11684375 15.8476303,2.84921875 15.604605,2.6231875 Z M11.0558319,1.4276875 C11.0558319,1.34434375 11.0843697,1.275875 11.1418824,1.22246875 C11.199395,1.169 11.2730084,1.14221875 11.3627227,1.14221875 L11.9767731,1.14221875 C12.066521,1.14221875 12.1398992,1.16890625 12.1976134,1.22246875 C12.2551597,1.27596875 12.2838992,1.3444375 12.2838992,1.4276875 L12.2838992,3.9971875 C12.2838992,4.0805 12.2551597,4.14884375 12.1976134,4.20240625 C12.1398655,4.2558125 12.066521,4.28265625 11.9767731,4.28265625 L11.3627227,4.28265625 C11.2730084,4.28265625 11.199395,4.2559375 11.1418824,4.20240625 C11.0843697,4.1488125 11.0558319,4.0805 11.0558319,3.9971875 L11.0558319,1.4276875 Z M3.68534454,1.4276875 C3.68534454,1.34434375 3.71408403,1.275875 3.77166387,1.22246875 C3.82927731,1.169 3.90278992,1.14221875 3.99240336,1.14221875 L4.60655462,1.14221875 C4.69620168,1.14221875 4.76984874,1.16890625 4.82729412,1.22246875 C4.88480672,1.27596875 4.91368067,1.3444375 4.91368067,1.4276875 L4.91368067,3.9971875 C4.91368067,4.0805 4.88494118,4.1489375 4.82729412,4.20240625 C4.76971429,4.2558125 4.69620168,4.28265625 4.60655462,4.28265625 L3.99240336,4.28265625 C3.90278992,4.28265625 3.82917647,4.2559375 3.77166387,4.20240625 C3.71421849,4.1488125 3.68534454,4.0805 3.68534454,3.9971875 L3.68534454,1.4276875 Z M14.7407059,14.8465 L1.22847059,14.8465 L1.22847059,5.71025 L14.7407059,5.71025 L14.7407059,14.8465 Z",t.calendarIconDim={width:16,height:16},t.containerPos={x:100,y:100},t.containerInfo={id:"group",label:"group",isParent:!0},t.spaceNotHardCoded=!0,t.hoveredState="normal",t._iconStyle={fill:"#5648D4",transform:"t0,0",opacity:1},t._textStyle={"font-size":"12px","font-style":"normal","font-weight":"600","text-anchor":"start",fill:"#5648D4",opacity:1},t.prevDim={height:0,width:0}},n.configureAttributes=function(e){void 0===e&&(e={});var t,n,a,i=this,r=i.config,l=i.getFromEnv("focusScalesX"),s=!1,u=i.getFromEnv("getStyleDef"),f=i.getFromEnv("baseTextStyle");Object.assign(r,e),!e.blockUpdate&&delete r.blockUpdate,!e.interactionStyle&&delete r.interactionStyle,!e.limitChanged&&delete r.limitChanged,t=r.extStyle||{},n=r.interactionStyle||{},i.setState("visible",!0!==r.isHidden),r.symbolName=r.name,l.forEach((function(e){d.includes(e.getBinMin()[0].name())&&(s=!0)})),i.attachChild(c["default"],"cover","cover").configure(r.limitChanged?{}:{visibility:"hidden"}),i.attachChild(o["default"],"manager","manager").configure(r.limitChanged?{}:{visibility:"hidden",position:r.containerPos,showTime:s,extStyle:t,drawCalendars:!1}),r.showTime=s,r._finalIconStyle=Object.assign({},r._iconStyle,u(t["title-icon"]),u(n.icon)),r._finalTextStyle=Object.assign({},r._textStyle,f,u(t["title-text"]),u(n.text)),r.scalingParam=(a=r._finalTextStyle["font-size"],.0278*(parseFloat(a)-12)+1),r._finalIconStyle.transform+=" s"+r.scalingParam},n.getLabel=function(){var e,t,n=this,a=n.config,i="",r=a.showTimeInLabel,o=+n.getFromEnv("chartWidth"),l=n.getLinkedParent(),s=n.getFromEnv("chart").getFromEnv("contextScalesX")[0],c=a.domain||s.getDomain(),u=n.getFromEnv("smartLabel"),d=new Date(c[0]),f=new Date(c[1]),h=Object.assign(a.prevDim),g=h,p=null!=(e=this.getFromEnv("language"))?e:"english";return u.setStyle(a._finalTextStyle),i=s.getFormattedTime({dateRange:{startDate:d,endDate:f},type:"CRS",showTimeInLabel:r,language:p}),t=u.getOriSize(i),Math.abs(t.width-h.width)>10&&(g=a.prevDim=Object.assign(t)),o<600&&(g.width+a.calendarIconDim.width)/l.props.width>.4&&(i="",g.width=0),a.label=i,{text:i,dim:g}},n.decideTimeInLabel=function(){var e,t=this,n=t.config;return t.getFromEnv("focusScalesX").forEach((function(a){d.includes(a.getBinMin()[0].name())&&(n.showTime=!0),d.includes(t.getFromEnv("focusBins")[0].getRangeThreshold()[0].name())&&(e=!0)})),e},n.getLogicalSpace=function(){var e,t=this,n=t.config,a=t.getChildren("manager")[0],i=n.width,r=n.height,o=n.marginTop,l=n.marginLeft,s=n.marginRight,c=n.marginBottom;return n.showTimeInLabel=t.decideTimeInLabel(),a.configure({showTime:n.showTime},!0),i=(e=t.getLabel().dim).width,r=e.height,(n.skipGraphics||n.isHidden||t.getState("removed"))&&(i=r=c=l=s=o=0),n.width=e.width,n.height=e.height,{width:i,height:r,marginLeft:l,marginBottom:c,marginRight:s,marginTop:o}},n.draw=function(){var e,t,n,a,i=this,r=i.config,o=i.getLinkedParent(),l=r.scalingParam;i.addGraphicalElement({el:"group",attr:{name:"range-selector-text",transform:"t"+r.x+", "+(r.y+o.props.height/2)},container:r.containerInfo,component:i,id:"group",label:"group"},!0),e=-1*(n=l*r.calendarIconDim.width)-5,t=3*(a=l*r.calendarIconDim.height)/4*-1,i.addGraphicalElement({el:"group",attr:{name:"range-selector-icon-group",transform:"t"+e+", "+t},container:{id:"group",label:"group"},component:i,label:"group",id:"icon-group"},!0),i.addGraphicalElement({el:"path",attr:{path:r.calendarIconPath,stroke:"none"},css:r._finalIconStyle,container:{id:"icon-group",label:"group"},component:i,label:"path",id:"icon"},!0),i.addGraphicalElement({el:"text",attr:{text:r.label,opacity:r._finalTextStyle.opacity},css:r._finalTextStyle,container:{id:"group",label:"group"},component:i,label:"text",id:"display"},!0),i.addGraphicalElement({el:"rect",attr:{"class":"fc__crs__str",fill:s.TRACKER_FILL,x:e-5,y:-1*o.props.height/2,width:n+10+r.width,height:o.props.height,stroke:"none"},component:i,container:{label:"group",id:"group"},css:{cursor:"pointer"},label:"rect",id:"rect"}),r.containerPos={x:r.x-n/2-5*l,y:r.y+o.props.height/2+a}},n.removeDocumentListener=function(){var e=this.config;e.wrapper.off(document,"fc-click",e.documentClicked),e.wrapper.off(document,"keydown",this.keyDownHandler)},t}(l.Tool);t["default"]=p},974:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l=a(n(299)),s=o.isIE11?38:32,c="url(data:image/svg+xml;base64,"+btoa('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.95 10"><defs><style>.cls-2 {fill: #444;}</style></defs><polygon class="cls-2" points="1.41 4.67 2.48 3.18 3.54 4.67 1.41 4.67" /><polygon class="cls-2" points="3.54 5.33 2.48 6.82 1.41 5.33 3.54 5.33" /></svg>')+") no-repeat 100% 100%",u=function(e){return(e<10?"0"+e:e)+""},d=function(e,t){void 0===t&&(t=-1);var n,a="";for(n=0;n<=e;n++)a+=n===t?'<option value="'+u(n)+'" selected>'+u(n)+"</option>":'<option value="'+u(n)+'">'+u(n)+"</option>";return a},f=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.enabled=!0,e.label="Time: ",e._labelStyle={"font-size":"12px","font-weight":"normal","font-style":"normal",color:"#5f5f5f"},e._selectStyle={"font-size":"12px",border:"0",outline:"1px solid #efefef","outline-offset":"-1px",color:"#5f5f5f",width:s+o.PXSTRING,"padding-left":o.isIE11||o.isFirefox?"0px":"5px","padding-right":o.isIE11||o.isFirefox?"0px":"5px","padding-top":"5px","padding-bottom":"5px",background:c,"background-color":"#FFFFFF","-webkit-appearance":"none","-moz-appearance":"none","-o-appearance":"none","border-radius":"0px",appearance:"none"},o.isIE11&&delete e._selectStyle.background},n.configureAttributes=function(e){void 0===e&&(e={});var t=this,n=t.config,a=t.getFromEnv("getStyleDef"),i=t.getFromEnv("baseTextStyle");Object.assign(n,e),n._finalLabelStyle=Object.assign({},n._labelStyle,i,a(n.labelStyle)),n._finalSelectStyle=Object.assign({},n._selectStyle,i,a(n.selectStyle)),delete n._finalSelectStyle["line-height"]},n.getDimension=function(){var e,t,n=this,a=n.config,i=n.getFromEnv("fontParser"),r=i(a._finalSelectStyle["font-size"]),l=n.getFromEnv("smartLabel"),s=function(e){return e<21?2:e<31?1.67:e<51?1.5:1.25}(r);return l.setStyle(a._finalLabelStyle),e=a.labelDim=l.getOriSize(a.label),t=l.getOriSize(":").width,a.inputBoxWidth=Math.max(i(a._finalSelectStyle.width),2.6*r),a.inputBoxHeight=r*s,a.spacingMultiplier=r>30?2:1,a._finalSelectStyle.width=a.inputBoxWidth+o.PXSTRING,{width:e.width+3*t+3*a.inputBoxWidth+20,height:Math.max(e.height,a.inputBoxHeight)}},n.setTranslation=function(e,t){this.config.position={x:e,y:t}},n.getTime=function(){var e,t,n,a=this;return e=a.getGraphicalElement("hour-box","hour-box"),t=a.getGraphicalElement("minute-box","minute-box"),n=a.getGraphicalElement("second-box","second-box"),{hours:+e.element.value,minutes:+t.element.value,seconds:+n.element.value}},n.draw=function(){var e=this,t=e.config,n=t.position,a=t.labelDim,i=t.time||{},r=n.x,o=Math.abs(a.height-t.inputBoxHeight)/2;e.addGraphicalElement({el:"html",attr:{x:r,y:n.y,type:"label",text:t.label},component:e,css:t._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"time-label",id:"time-label"}),r+=a.width+5,e.addGraphicalElement({el:"html",attr:{x:r,y:n.y-o,type:"select",innerHTML:l["default"].createHTML(d(23,i.hours)),"class":"fc__select__time"},component:e,css:t._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"hour-box",id:"hour-box"}),r+=t.inputBoxWidth,e.addGraphicalElement({el:"html",attr:{x:r+3,y:n.y,type:"label",text:":"},component:e,css:t._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"semicolon-minute",id:"semicolon-minute"}),r+=10*t.spacingMultiplier,e.addGraphicalElement({el:"html",attr:{x:r,y:n.y-o,type:"select",innerHTML:l["default"].createHTML(d(59,i.minutes)),"class":"fc__select__time"},component:e,css:t._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"minute-box",id:"minute-box"}),r+=t.inputBoxWidth,e.addGraphicalElement({el:"html",attr:{x:r+3,y:n.y,type:"label",text:":"},component:e,css:t._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"semicolon-second",id:"semicolon-second"}),r+=10*t.spacingMultiplier,e.addGraphicalElement({el:"html",attr:{x:r,y:n.y-o,type:"select",innerHTML:l["default"].createHTML(d(59,i.seconds)),"class":"fc__select__time"},component:e,css:t._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"second-box",id:"second-box"})},t}(r.SmartRenderer),h=f;t["default"]=h},924:(e,t,n)=>{t.__esModule=!0,t["default"]=void 0;var a=n(274),i=function(e){return[{initialAttr:{opacity:0},finalAttr:{opacity:(0,a.pluckNumber)(e.attr.opacity,1)},slot:"final"}]},r={"initial.dataMarker.dataMarker":function(){return{"*.appearing":i}}};t["default"]=r},925:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t,n){var a,i,r,o,l,s,c,u,d,f,h=e.config,g=h.markerInfo[t],p=h.dataInfo[t],m=e.getStyleInformation(t),v=n.flagHeight,y=n.stickLength,b=n.flagWidth;u=g.multipleMarkers,o=g.id,a=p.y,r=p.x+(p.width||0)/2,c=a-y,i=g.markers[0],d=m.marker.opacity,f=m.text.opacity,s={path:["M",r,a,"V",c],opacity:d},e.addGraphicalElement({el:"path",container:{label:"group"},id:o,component:e,attr:s,css:m.marker,label:"flagStick"},!0),s={path:"M12.4444444,0 L1.55555556,0 C0.7,0 0,0.654545455 0,1.45454545 L0,10.8363636 C0,11.3454545 0.233333333,11.7817897 0.7,12.0727273 L7,16 L13.3,12.0727273 C13.6888889,11.7818182 14,11.3454545 14,10.8363636 L14,1.45454545 C14,0.654545455 13.3,0 12.4444444,0 Z",transform:"t"+(r-b/2+1)+","+(c-v),opacity:d},e.addGraphicalElement({el:"path",container:{label:"group"},id:o,component:e,attr:s,css:m.marker,label:"flagTriangle"},!0),(u||(l=i.identifier))&&(s={text:u?g.markers.length:l.charAt(0),x:r,y:c-v/2,opacity:f},e.addGraphicalElement({el:"text",container:{label:"group"},id:o,component:e,attr:s,css:m.text,label:"markerText"},!0))}},923:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=a(n(294)),o=a(n(350)),l=n(274),s=n(278),c=n(874),u=n(282),d=a(n(924)),f=a(n(349)),h=a(n(481)),g=a(n(925)),p=a(n(926)),m=a(n(845)),v=a(n(927)),y={flagHeight:16,flagWidth:16,stickLength:10,pinHeight:23,pinWidth:23,totalFlagHeight:26},b="—",x="pin",k=function(e){if(void 0===e&&(e=[]),!(0,f["default"])(e))return{};var t,n,a,i={},r=(0,h["default"])(e[0])?e[0]:{},o=e.length;for(t in r)if(r.hasOwnProperty(t)){var l=!0;for(n=1;n<o;++n)if(a=e[n],!(0,h["default"])(a)||!a.hasOwnProperty(t)||a[t]!=r[t]){l=!1;break}l&&(i[t]=r[t])}return i};(0,u.addDep)({name:"dataMarkerAnimation",type:"animationRule",extension:d["default"]});var S=function(e){(0,i["default"])(n,e);var t=n.prototype;function n(){var t;return(t=e.call(this)||this).getClassName=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},t.getCSPNonce=function(){var e=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(e){var t=e.getAttribute("content");if(t){var n=t.match(/'nonce-([^']+)'/);if(n)return n[1]}}return null},t.config.styleInfo={},t}return t.configure=function(t){e.prototype.configure.call(this,t);var n,a,i=this.config,r=i.styleInfo;if((0,f["default"])(t.data)){var s=i.unsortedData;i.unsortedData=t.data.slice(),(0,m["default"])(s,i.unsortedData)||(i.data=t.data.slice(),i.data.sort((function(e,t){return o["default"].parser(e.timeformat).parse(e.time)-o["default"].parser(t.timeformat).parse(t.time)})))}if(i.isStock=(0,l.pluck)(t.isStock,i.isStock),i.isRange=(0,l.pluck)(t.isRange,i.isRange),a=t.style)for(var c in n=r[t.index]||(r[t.index]={}),a)a.hasOwnProperty(c)&&(n[c]=a[c]);i.skipGrouping=t.skipGrouping,(0,l.defined)(t.visibility)&&(i.visibility=t.visibility)},t.setHoverInEffect=function(e){var t=this,n=t.config,a=n.markerInfo[e].markers,i=a[0].style||{},r={},o={},l={},s={},c=t.getFromEnv("getStyleDef");a.multipleMarkers?(o=a.markers.map((function(e){return e.style&&c(e.style["marker:hover"])||{}})),s=a.markers.map((function(e){return e.style&&c(e.style["text:hover"])||{}})),Object.assign(r,n.defaultHoverStyle,k(o)),Object.assign(l,n.defaultHoverStyle,k(s))):(Object.assign(r,n.defaultHoverStyle,c(i["marker:hover"])),Object.assign(l,n.defaultHoverStyle,c(i["text:hover"]))),t.getFromEnv("animationManager").setAnimationState("mouseOver"),t.setData({style:{marker:r,text:l},index:e,skipGrouping:!0},!0)},t.setHoverOutEffect=function(e){this.getFromEnv("animationManager").setAnimationState("mouseOut"),this.setData({style:{marker:{},text:{}},index:e,skipGrouping:!0},!0)},t._firePlotEvent=function(e,t,n,a){var i=this.config.markerInfo,r=i[t]&&i[t].eventArgs||{},o=this.getFromEnv("chart"),s=(0,l.getMouseCoordinate)(o.getFromEnv("chart-container"),n,o),c=function(e){var t,n=!0;for(t in e)e.hasOwnProperty(t)&&(n=n&&!isNaN(e[t]));return n}(s),u=(0,l.extend2)(s,r);if(c&&t!==l.UNDEF)switch(e){case"fc-mouseover":o.fireChartInstanceEvent("DataMarkerRollOver",u);break;case"fc-mouseout":o.fireChartInstanceEvent("DataMarkerRollOut",u);break;case"fc-click":o.fireChartInstanceEvent("dataMarkerClick",u)}},t.__setDefaultConfig=function(){var e=this.config;e.isStock=!1,e.isRange=!1,e["default-stroke-width"]=1,e["default-fill-opacity"]=.5,e["default-stroke-opacity"]=.5,e["default-font-color"]="#ffffff",e["default-stroke-color-multiple"]="#8c8c8c",e["default-tooltip-background"]="#f2eded",e.defaultMarkerStyle={"stroke-width":1,"fill-opacity":.5,"stroke-opacity":.5},e.defaultTextStyle={fill:"#ffffff","font-size":"12px","line-height":"14.4px","fill-opacity":1,"stroke-opacity":1,"text-anchor":"middle","font-weight":"normal","font-style":"normal"},e.defaultHoverStyle={opacity:1,"fill-opacity":1,"stroke-opacity":1}},t.draw=function(){"visible"===this.config.visibility&&(this._createGroup(),this._drawMarkers())},t.getType=function(){return"dataMarker"},t.getName=function(){return"dataMarker"},t._checkPointOverMarker=function(e,t,n,a){for(var i,r,o,l,s,c,u,d,f,h=this,g=h.config,p=g.dataInfo,m=y,v=g.markerInfo,b=Math.ceil(e),k=Math.floor(e),S=a,_=[b,k];S<m.flagWidth||S<m.pinWidth;)_.unshift(++b),_.push(--k),S+=a;return _.forEach((function(e){r=v[e],!u&&r&&(i=p[e],o=i.x,l=i.y,s=(i.width||0)/2,c=o+s,r&&r.markers&&r.markers[0].type===x?(d=m.pinWidth,f=m.pinHeight):(d=m.flagWidth,f=m.totalFlagHeight),function(e,t,n,a,i,r){return n>=i-e/2&&n<=i+e/2&&a<=r&&a>=r-t}(d,f,t,n,c,l)&&(u={pointIndex:e,hovered:!0,pointObj:i,markerObj:r,component:h}))})),u},t._getTooltext=function(e){var t,n,a=this,i=this,r=i.config,o=r.markerInfo[e],s=o.markers,c=s.length,u=i.getFromEnv("yScale").tickFormat(4,".2s"),d=o.multipleMarkers,f={},h=this.getClassName("tooltip-header-class"),g=this.getCSPNonce();if(o.formatedTime||(o.formatedTime=i.getFromEnv("xScale").getFormattedTime({type:"tooltip",dateRange:o})),t='\n <style nonce="'+g+'">\n .'+h+' {\n margin-bottom: 6px;\n }\n </style>\n <div class="'+h+'">'+o.formatedTime+"</div>",r.isStock){var p=this.getClassName("tooltip-isStock-body1"),m=this.getClassName("tooltip-isStock-body2"),y=this.getClassName("tooltip-isStock-open1"),x=this.getClassName("tooltip-isStock-open2"),k=this.getClassName("tooltip-isStock-high1"),S=this.getClassName("tooltip-isStock-high2"),_=this.getClassName("tooltip-isStock-low1"),C=this.getClassName("tooltip-isStock-low2"),w=this.getClassName("tooltip-isStock-close");n='\n <style nonce="'+g+'">\n .'+p+" {\n display: grid; display: -ms-grid; grid-template-columns: auto auto auto auto 1fr; -ms-grid-columns: auto auto auto auto 1fr; grid-template-rows: auto auto; -ms-grid-rows: auto auto; margin-bottom:6px;\n }\n\n ."+m+' {\n grid-column-start: 1; -ms-grid-column: 1; grid-row-start: 1; -ms-grid-row: 1;\n }\n </style>\n <div class="'+p+'">\n <div class="'+m+'">\n Open:\n </div>\n <style nonce="'+g+'">\n .'+y+" {\n grid-column-start: 2; -ms-grid-column: 2; grid-row-start: 1; -ms-grid-row: 1; text-align: center; margin-left: 6px;\n }\n\n ."+x+' {\n grid-column-start: 3; -ms-grid-column: 3; grid-row-start: 1; -ms-grid-row: 1; margin-left: 12px;\n }\n </style>\n <div class="'+y+'">\n '+((0,v["default"])(o.openValue)?(0,l.parseUnsafeString)(u(o.openValue)):b)+'\n </div>\n <div class="'+x+'">\n High:\n </div>\n <style nonce="'+g+'">\n .'+k+" {\n grid-column-start: 4; -ms-grid-column: 4; grid-row-start: 1; -ms-grid-row: 1; text-align: center; margin-left: 6px;\n }\n\n ."+S+' {\n grid-column-start: 1; -ms-grid-column: 1; grid-row-start: 2; -ms-grid-row: 2;\n }\n </style>\n <div class="'+k+'">\n '+((0,v["default"])(o.highValue)?(0,l.parseUnsafeString)(u(o.highValue)):b)+'\n </div>\n <div class="'+S+'">\n Low:\n </div>\n <style nonce="'+g+'">\n .'+_+" {\n grid-column-start: 2; -ms-grid-column: 2; grid-row-start: 2; -ms-grid-row: 2; text-align: center; margin-left: 6px;\n }\n\n ."+C+' {\n grid-column-start: 3; -ms-grid-column: 3; grid-row-start: 2; -ms-grid-row: 2; margin-left: 12px;\n }\n </style>\n <div class="'+_+'">\n '+((0,v["default"])(o.lowValue)?(0,l.parseUnsafeString)(u(o.lowValue)):b)+'\n </div>\n <div class="'+C+'">\n Close:\n </div>\n <style nonce="'+g+'">\n .'+w+' {\n grid-column-start: 4; -ms-grid-column: 4; grid-row-start: 2; -ms-grid-row: 2; text-align: center; margin-left: 6px;\n }\n </style>\n <div class="'+w+'">\n '+((0,v["default"])(o.closeValue)?(0,l.parseUnsafeString)(u(o.closeValue)):b)+"\n </div>\n </div>"}else if(r.isRange){var D=this.getClassName("tooltip-isRange-body1"),E=this.getClassName("tooltip-isRange-body2"),T=this.getClassName("tooltip-isRange-high1"),M=this.getClassName("tooltip-isRange-high2"),I=this.getClassName("tooltip-isRange-low1");n='\n <style nonce="'+g+'">\n .'+D+" {\n display: grid; display: -ms-grid; grid-template-columns: auto auto auto auto 1fr; -ms-grid-columns: auto auto auto auto 1fr; grid-template-rows: auto auto; -ms-grid-rows: auto auto; margin-bottom:6px;\n }\n\n ."+E+' {\n grid-column-start: 1; -ms-grid-column: 1; grid-row-start: 1; -ms-grid-row: 1;\n }\n </style>\n <div class="'+D+'">\n <div class="'+E+'">\n High:\n </div>\n <style nonce="'+g+'">\n .'+T+" {\n grid-column-start: 2; -ms-grid-column: 2; grid-row-start: 1; -ms-grid-row: 1; text-align: center; margin-left: 6px;\n }\n\n ."+M+' {\n grid-column-start: 1; -ms-grid-column: 1; grid-row-start: 2; -ms-grid-row: 2;\n }\n </style>\n <div class="'+T+'">\n '+((0,v["default"])(o.highValue)?u(o.highValue):b)+'\n </div>\n <div class="'+M+'">\n Low:\n </div>\n <style nonce="'+g+'">\n .'+I+' {\n grid-column-start: 2; -ms-grid-column: 2; grid-row-start: 2; -ms-grid-row: 2; text-align: center; margin-left: 6px;\n }\n </style>\n <div class="'+I+'">\n '+((0,v["default"])(o.lowValue)?u(o.lowValue):b)+"\n </div>\n </div>"}else if(o.tooltipValue||(o.tooltipValue=u(o.value)),o.value<1&&o.value>-1){var F=this.getClassName("tooltip-markerObj-body1"),L=this.getClassName("tooltip-markerObj-body2"),O=this.getClassName("tooltip-markerObj-body3");n='\n <style nonce="'+g+'">\n .'+F+" {\n margin-bottom:6px; height: 14px;\n }\n\n ."+L+" {\n float: left;\n }\n\n ."+O+' {\n padding-left: 8px;\n }\n </style>\n <div class="'+F+'">\n <div class="'+L+'">'+(0,l.parseUnsafeString)(o.seriesname)+':<span class="'+O+'">\n '+o.value+"</span></div>\n </div>"}else{var P=this.getClassName("tooltip-markerObj-body1"),A=this.getClassName("tooltip-markerObj-body2"),B=this.getClassName("tooltip-markerObj-body3");n='\n <style nonce="'+g+'">\n .'+P+" {\n margin-bottom:6px; height: 14px;\n }\n\n ."+A+" {\n float: left;\n }\n\n ."+B+' {\n padding-left: 8px;\n }\n </style>\n <div class="'+P+'">\n <div class="'+A+'">'+(0,l.parseUnsafeString)(o.seriesname)+':<span class="'+B+'">\n '+(0,l.parseUnsafeString)(o.tooltipValue)+"</span></div>\n </div>"}return s.forEach((function(e,t){var i=6;if(d&&!f[e.time]){var r=a.getClassName("tooltip-multipleMarkers-body");f[e.time]=!0,n+='\n <style nonce="'+g+'">\n .'+r+' {\n clear: both; margin-bottom:2px; font-weight: 600;\n }\n </style>\n <div clas="'+r+'">'+e.time+"</div>",t+1<c&&f[s[t+1].time]&&(i=2)}var o=a.getClassName("tooltip-currMarker-body");n+=e.tooltext?'\n <style nonce="'+g+'">\n .'+o+" {\n clear: both; "+(t<c-1?"margin-bottom: "+i+"px":"")+';\n }\n </style>\n <div class="'+o+'">'+(0,l.parseUnsafeString)(e.tooltext,!1)+"</div>":""})),{header:t,body:n}},t.allocatePosition=function(){!this.config.skipGrouping&&this._groupMarkers()},t._groupMarkers=function(){var e,t,n,a,i,r,l,s,u=this,d=u.getLinkedParent()._getRelevantInfo(),f=d.dataInfo,g=u.config,p=g.markerInfo={},m=u.getFromEnv("binDecider").getRangeThreshold()[0].name(),v=d.firstTimeStamp,y=u.getFromEnv("xScale"),b=y.getDomain(),x=g.data;g.dataInfo=f,x.forEach((function(u,d){n=o["default"].parser(u.timeformat).parse(u.time),a=(0,c.getPlaceHolderIndex)(m)-(0,c.getPlaceHolderIndex)((0,c.getMinPlaceHolder)(u.timeformat)),n&&a>=0&&a<=2&&(n=n.getTime())>=v&&n>=b[0]&&n<=b[1]&&(t=y.getBinIndex(n,!1),(i=f[t])&&(r=u.series||{},l=Object.keys(r)[0],s=(g.isRange||g.isStock)&&((0,h["default"])(u.measures[0])?Object.keys(u.measures[0]).toString():u.measures[0]),p[t]||(p[t]={markers:[],id:(g.isStock||g.isRange?s:u.seriesname)+u.time,startDate:i.startDate,seriesname:u.seriesname,endDate:f[t].endDate,eventArgs:{timestamp:n,timeText:u.time,tooltipText:[u.tooltext],timeFormatter:u.timeformat,binStart:i.startDate,binEnd:i.endDate,binValue:i.eventArgs.binValue,binValueFormatted:i.eventArgs.binValueFormatted,measure:u.value,series:l,seriesName:l&&r[l],identifier:u.identifier}}),e=p[t],g.isStock?(e.openValue=i.openValue,e.highValue=i.highValue,e.lowValue=i.lowValue,e.closeValue=i.closeValue):g.isRange?(e.highValue=i.highValue,e.lowValue=i.lowValue):e.value=i.value,e.markers.push(u),e.markers.length>1&&(e.multipleMarkers=!0,e.eventArgs.tooltipText.push(u.tooltext),e.eventArgs.identifier=e.markers.length)))}))},t._createGroup=function(){var e=this;e.addGraphicalElement({el:"group",container:{label:"group",id:"thermo",isParent:!0},component:e,label:"group",attr:{name:"markerGroup-thermo"}}),e.addGraphicalElement({el:"group",container:{label:"group",id:"thermo",isParent:!0},component:e,label:"group-pin",attr:{name:"markerGroup-thermo-pin"}})},t._drawMarkers=function(){var e,t,n,a=this,i=!0,r=a.config.markerInfo,o=function(e){e.type!==x&&(i=!1)};for(t in r)e=r[t],n=!1,i=!0,e.multipleMarkers&&(e.markers.forEach(o),n=!i),e.markers[0].type!==x||n?(0,g["default"])(a,t,y):(0,p["default"])(a,t,y);a.styleInfo={}},t.getStyleInformation=function(e){var t,n,a,i,r,o,c,u,d,f=this,h=f.config,g=h.styleInfo,p=h.markerInfo[e],m=f.getFromEnv("getStyleDef"),v=h.defaultMarkerStyle,y=h.defaultTextStyle,b=f.getLinkedParent()._getRelevantInfo(e),x=f.getFromEnv("baseTextStyle");return r={},o={},n=(c=g[e]||{}).marker||{},i=p.markers[0].style||{},t=m(i.marker),a=m(i.text),p.multipleMarkers?(d=p.markers.map((function(e){return e.style&&m(e.style.marker)||{}})),u=p.markers.map((function(e){return e.style&&m(e.style.text)||{}})),t=k(d),a=k(u),t.fill||(t.fill=p.fill=h["default-stroke-color-multiple"]),t.stroke||(t.stroke=h["default-stroke-color-multiple"])):(!t.fill&&!a.fill&&h.isStock&&b.text&&(a=Object.assign({},a,b.text)),t.fill=p.fill=(0,s.convertColor)((0,l.pluck)(t.fill,b.fill),100*(0,l.pluck)(n["fill-opacity"],t["fill-opacity"],v["fill-opacity"])),t.stroke=p.stroke=(0,s.convertColor)((0,l.pluck)(t.stroke,b.stroke,b.fill),100*(0,l.pluck)(n["stroke-opacity"],t["stroke-opacity"],v["fill-opacity"]))),Object.assign(r,v,t,c.marker),Object.assign(o,y,x,a,c.text),{marker:r,text:o}},n}(r["default"]);t["default"]=S},926:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t,n){var a,i,r,o,l,s,c,u,d=e.config,f=d.markerInfo[t],h=d.dataInfo[t],g=e.getStyleInformation(t),p=n.pinHeight,m=n.pinWidth;u=f.multipleMarkers,o=f.id,a=h.y-(p+2),i=h.x+(h.width||0)/2-m/2,u||(r=f.markers[0]),s=g.marker.opacity,c=g.text.opacity,l={path:"M12.0047766,4 L12.2491793,4.00380682 C16.5521622,4.13545713 20,7.66508574 20,12 C20,16.418278 16.418278,20 12,20 C7.581722,20 4,16.418278 4,12 C4,11.9105612 4.0014677,11.8214651 4.00438034,11.7327347 L4,4 L12,4 L12.0047766,4 Z",transform:"t"+i+","+a+"r225",opacity:s},e.addGraphicalElement({el:"path",container:{label:"group-pin"},id:o,attr:l,css:g.marker,label:"pinMarker"},!0),(u||r.identifier)&&(l={text:u?f.markers.length:r.identifier.charAt(0),x:i+m/2,y:a+p/2+2,opacity:c},e.addGraphicalElement({el:"text",container:{label:"group-pin"},id:o,attr:l,css:g.text,label:"markerText"},!0))}},940:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(274),o=a(n(908)),l=n(282),s=n(278),c=a(n(856)),u=a(n(914)),d=a(n(917)),f=a(n(918)),h=a(n(916)),g=a(n(919)),p=a(n(350)),m=a(n(928)),v=a(n(907)),y=n(939),b=.0625,x="9194CC",k=function(e,t){return(e+t)/2},S=function(e){return void 0===e&&(e=""),""===e?"M0,0":e},_=function(e){var t=e.x,n=e.y,a=e.width;return{y:n,height:e.height,x:t-b,width:a+.125}},C=function(e,t){return e+"M"+t.x+","+t.y+"L"+(t.x+t.width)+","+t.y+"L"+(t.x+t.width)+","+(t.y+t.height)+"L"+t.x+","+(t.y+t.height)+"Z"},w="area";function D(e){return"line"===e||"smooth-line"===e||"step-line"===e}(0,l.addDep)({name:"continuousAnimation",type:"animationRule",extension:m["default"]});var E=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.getName=function(){return"continuous-range"},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach((function(t,a){t.base<=e.minValue&&t.y>=e.maxValue&&n.push(a)})),n},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-stroke"]=x,t["default-fill"]=x,t["default-anchor-stroke"]=(0,s.convertColor)("#ffffff"),t.type="line",t.isRange=!0,t.plotStyle={},t.nullPlotStyle={},t.linePlotStyle={},t.nullLinePlotStyle={},t.areaPlotStyle={},t.nullAreaPlotStyle={},t.anchorStyle={},t.anchorHoverInStyle={},t.anchorHoverOutStyle={},t.anchorHighlightObj={},t.defaultLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":"none",fill:"none"},t.defaultNullLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":[10,5],fill:"none"},t.defaultLinePredictiveStyle={"stroke-opacity":1,"stroke-width":1,"stroke-dasharray":5,fill:"none"},t.defaultAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.6},t.defaultNullAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.3},t.defaultAreaPredictiveStyle={"stroke-opacity":1,opacity:.5},t.defaultAnchorStyle={"fill-opacity":1,"stroke-width":1},t.willInjectNulls=!0},n.allocatePosition=function(){var e,t,n,a,i,l,s,m,v,y,b,x,D,E,T,M,I,F,L,O,P=this,A=P.config,B=A.indices,N=B[0],H=B[1],j=B[2],R=(A.seriesInfo,P.getFromEnv("dateColumn")),V=P.getFromEnv("UTC"),G=A.type,Y=A.data,U=A.dataInfo,z=[],X=P.getFromEnv("binDecider"),W=P.getFromEnv("xScale"),q=P.getFromEnv("yScale"),Z=X.getRangeThreshold()[2],$=Number.parseFloat(A.nullLinePlotStyle["stroke-width"]),K=Number.parseFloat(A.predictiveStyleAttributesLine["stroke-width"]),Q=Number.parseFloat(A.linePlotStyle["stroke-width"]),J=W.bins,ee=Y.length,te=W.getDomain(),ne=te[0],ae=te[1],ie=R.format,re=V?p["default"].utcFormatter(ie):p["default"].formatter(ie),oe=W.showPlotOverTick();if(A.firstTimeStamp=Y&&Y[0]&&Y[0][N]&&Y[0][N].start,A.repositioningDone=P._isRepositioningNeeded()){if("visible"!==A.visibility)return;for(U=A.dataInfo=[],A.timeStampGap=Z,A.availableWidth=0,E=0,T=J.length;E<T;E++)if(2!==J[E].clipType){A.availableWidth=W.getRangeValue(J[E].end)-W.getRangeValue(J[E].start);break}I=+W.getDomainValue(5.5)-+W.getDomainValue(0),A.actualStartDomain=+ne-I,A.actualEndDomain=+ae+I,Y.forEach((function(t,o,u){if(F=t[N],v=Math.max(t[H],t[j]),y=Math.min(t[j],t[H]),m=v,L=F.config.duration,n=F.start,a=F.end,i=k(n,a),l=u[o+1],M=y,x=q.getRangeValue(M||Math.max(q.getDomain()[0],0)),D=q.getRangeValue(m),o||(A.firstTimeStamp=n),G!==w||(0,c["default"])(x))if((0,c["default"])(m)&&(0,c["default"])(D))if(b=W.getBinIndex(n),e={startDate:n,endDate:a,highValue:v,lowValue:y,timeInstant:oe?n:i,value:m,paddingInTimestamp:I,yBaseValue:G===w?M:r.UNDEF,x:W.getRangeValue(new Date(n),new Date(a)),endXPosition:W.getRangeValue(new Date(n),new Date(a)),y:D,base:x},O={index:o,dataValue:m,highValue:v,lowValue:y,start:n,startText:re.format(n),end:a,endText:re.format(a),binUnit:L.Unit,binMultiplier:L.number,plotType:A.type,timeFormatter:ie,aggregation:A.aggregation,measure:A.measures[0],binValue:m,binValueFormatted:A.formatterFn&&A.formatterFn({value:m,type:"tooltip",prefix:A.prefix,suffix:A.suffix})},e.eventArgs=O,U[b]=e,l){var d=W.getBinIndex(l[N].start);z.push(e),s=k(l[N].start,l[N].end),A.willInjectNulls&&s-i-(W.clips[d]-W.clips[b])>1.5*Z&&z.push(null)}else ee-o==1&&z.push(e);else A.willInjectNulls&&z.push(null)})),t=new o["default"](function(e){switch(e){case"area":case"area-range":case"smooth-area":case"step-area":return u["default"];default:return d["default"]}}(G)).setConnectUndefineds(A.connectNullData).setChunks({def:{clipAdjustment:Q},undef:{clipAdjustment:$},predictive:{clipAdjustment:K}}).setCurve(function(e){switch(e){case"smooth-line":case"smooth-area":return g["default"];case"step-area":case"step-line":return f["default"];default:return h["default"]}}(G)).setDefined((function(e){return!!e})).setChunkDecider((function(e){return e.startDate>=A.prediction.dateMs?"predictive":"def"})).setXAccessor((function(e){return e.x})).setYAccessor((function(e){return e.y})),t.setYBaseAccessor((function(e){return e.base})),A.chunks=t.generate(z),A.path=S(A.chunks.def.path),A.clipPath=S(A.chunks.def.clipRects.map(_).reduce(C,"")),A.nullPath=S(A.chunks.undef.path),A.nullClipPath=S(A.chunks.undef.clipRects.map(_).reduce(C,"")),A.predictivePath=S(A.chunks.predictive.path),A.predictiveClipPath=S(A.chunks.predictive.clipRects.map(_).reduce(C,"")),A.topChunks=t.getLineChunkerYTop().generate(z),A.topPath=S(A.topChunks.def.path),A.topClipPath=S(A.topChunks.def.clipRects.map(_).reduce(C,"")),A.topNullPath=S(A.topChunks.undef.path),A.topNullClipPath=S(A.topChunks.undef.clipRects.map(_).reduce(C,"")),A.topPredictivePath=S(A.topChunks.predictive.path),A.topPredictiveClipPath=S(A.topChunks.predictive.clipRects.map(_).reduce(C,"")),A.bottomChunks=t.getLineChunkerYBase().generate(z),A.bottomPath=S(A.bottomChunks.def.path),A.bottomClipPath=S(A.bottomChunks.def.clipRects.map(_).reduce(C,"")),A.bottomNullPath=S(A.bottomChunks.undef.path),A.bottomNullClipPath=S(A.bottomChunks.undef.clipRects.map(_).reduce(C,"")),A.bottomPredictivePath=S(A.bottomChunks.predictive.path),A.bottomPredictiveClipPath=S(A.bottomChunks.predictive.clipRects.map(_).reduce(C,""))}},n._drawPlot=function(){var e,t=this,n=t.config,a=n.linePlotStyle,i=n.areaPlotStyle,o=n.nullLinePlotStyle,l=n.nullAreaPlotStyle,s=n.predictiveStyleAttributesLine,c=n.predictiveStyleAttributesArea,u=n.dataInfo;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-line",attr:{name:"line-common-meso",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"thermo",label:"group"},component:t,label:"group",id:"thermo-line",attr:{name:"line-common-thermo",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"meso-line",label:"group"},component:t,label:"group",id:"meso-plot",attr:{name:"line-plot-meso",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-plot",attr:{name:"line-plot-thermo",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-anchor",attr:{name:"line-anchor-thermo",visibility:n.visibility}},!0),n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.nullPath,"clip-path":n.nullClipPath},D(n.type)?o:l),label:"path",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.path,"clip-path":n.clipPath},D(n.type)?a:i),label:"path",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.predictivePath,"clip-path":n.predictiveClipPath},D(n.type)?s:c),label:"path",component:t},!0),n.topPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topNullPath,"clip-path":n.topNullClipPath},o),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topPath,"clip-path":n.topClipPath},a),label:"topPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.topPredictivePath,"clip-path":n.topPredictiveClipPath},s),label:"path",component:t},!0)),n.bottomPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.bottomNullPath,"clip-path":n.bottomNullClipPath},o),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.bottomPath,"clip-path":n.bottomClipPath},a),label:"bottomPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.bottomPredictivePath,"clip-path":n.bottomPredictiveClipPath},s),label:"path",component:t},!0)),"show"===n.mode?n.sharedAnchorIndices&&n.sharedAnchorIndices.length&&n.sharedAnchorIndices.forEach((function(a){e=u[a],n.lastShownIndices=n.sharedAnchorIndices,e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,r.polyPathToPath)([2,e.x,e.y,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+a,label:n.dsType+"-anchor"}),e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,r.polyPathToPath)([2,e.x,e.base,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+a,label:n.dsType+"-anchor"})})):n.hideIndices&&n.hideIndices.length&&n.hideIndices.forEach((function(a){(e=u[a])&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-anchor"},attr:{visibility:"hidden"},id:"shared-anchor-"+a,label:n.dsType+"-anchor"})}))},n._getHoveredPlot=function(e,t){var n,a,i,r,o,l,s=this,c=e,u=t,d=s.getFromEnv("xScale"),f=d.getRange(),h=[s.getChildren("dataMarker")],g=s.config,p="visible"===g.visibility,m=g.dataInfo,v=m.length,b=s.getLinkedParent().getTranslation(),x=b.x,k=b.y;if(u-=k,(c-=x)<f[0]||c>f[1])return{component:s};if(l=d.getBinIndex(d.getDomainValue(c)),a=Math.floor(Math.max(l,0)),i=Math.ceil(Math.min(l,v-1)),h.forEach((function(e){var t=e;!r&&t&&(t=t[0])&&(r=t._checkPointOverMarker(l,c,u,g.availableWidth))})),!r)for(o=i;o>=a&&(n=m[o],!(r=p?(0,y.isWithinShape)(n,o,c,u,s,5):{}).hovered);o--);return!r&&(r={}),r.hovered?r.binIndexHovered=r.pointIndex:(r.binIndexHovered=d.getBinIndex(d.getDomainValue(c)),r.pointObj=g.dataInfo[r.binIndexHovered]||d.getBinBounds(l),r.component=s),g.binIndexHovered=r.binIndexHovered,r},n._calculateLimits=function(){return(0,y.calculateLimits)(this)},n._getTooltext=function(e,t,n){return(0,y.getTooltext)(this,e,t,n)},t}(v["default"]),T=E;t["default"]=T},930:(e,t)=>{function n(e){var t=/M(.*)V(.*)/g.exec(e),n=t[1],a=t[2];return{MX:parseFloat(n.split(",")[0]),MY:parseFloat(n.split(",")[1]),VY:a=parseFloat(a)}}t.__esModule=!0,t["default"]=void 0;var a={"initial.dataset.timeseriesCandlestick":function(){var e=this.getFromEnv("yScale").getRangeValue(0),t=-1,a=null,i=function(e,n){if(e===t)return a;var i=function(e){return{start:2e-5*e,end:1}}(e);return t=e,a=i,i};return{"rect.appearing":function(t){var n=t.props.index;t.props.dataLength;return[{initialAttr:{y:e},startEnd:function(){return i(n)},effect:"easeInOutQuart",slot:"middle"}]},"line.appearing":function(t){var n=t.attr.path,a=t.props.index,r=(t.props.dataLength,function(e){var t=/M(.*)H(.*)/g.exec(e),n=t[1],a=t[2];return{MX:parseFloat(n.split(",")[0]),MY:parseFloat(n.split(",")[1]),HX:a=parseFloat(a)}}(n));return[{initialAttr:{path:"M"+r.MX+","+e+"H"+r.HX},finalAttr:{path:"M"+r.MX+","+r.MY+"H"+r.HX},startEnd:function(){return i(a)},effect:"easeInOutQuart",slot:"middle"}]},"high.appearing":function(t){var a=t.attr.path,r=t.props.index,o=(t.props.dataLength,n(a));return[{initialAttr:{path:"M"+o.MX+","+e+"V"+(o.VY+(e-o.MY))},finalAttr:{path:"M"+o.MX+","+o.MY+"V"+o.VY},startEnd:function(){return i(r)},effect:"easeInOutQuart",slot:"middle"}]},"low.appearing":function(t){var a=t.attr.path,r=t.props.index,o=(t.props.dataLength,n(a));return[{initialAttr:{path:"M"+o.MX+","+e+"V"+(o.VY+(e-o.MY))},finalAttr:{path:"M"+o.MX+","+o.MY+"V"+o.VY},startEnd:function(){return i(r)},effect:"easeInOutQuart",slot:"middle"}]}}}};t["default"]=a},929:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(274),o=a(n(540)),l=a(n(539)),s=a(n(538)),c=n(282),u=a(n(856)),d=a(n(350)),f=a(n(920)),h=a(n(930)),g=function(e,t){return Object.assign(e,t)};(0,c.addDep)({name:"timeseriesCandlestickAnimation",type:"animationRule",extension:h["default"]});var p=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).getClassName=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},t}(0,i["default"])(t,e);var n=t.prototype;return n.getHoverInConfig=function(e){var t=this.config;return{bullStyle:t.bullHoverInStyle,bearStyle:t.bearHoverInStyle,hoverIndices:e,hovered:!0}},n.getHighlightConfig=function(e){var t=this.config;return{bullStyle:t.bullHighlightStyle,bearStyle:t.bearHighlightStyle,hoverIndices:e,hovered:!0}},n.getHoverOutConfig=function(e){var t,n=this.config,a=Object.assign({},n.bullHoverOutStyle),i=Object.assign({},n.bearHoverOutStyle);for(t in a)a[t]=null;for(t in i)i[t]=null;return{bullStyle:a,bearStyle:i,hoverIndices:e,hovered:!1}},n.__setDefaultConfig=function(){var e=this.config;e.isStock=!0,e.bullStyle={},e.bullHoverInStyle={},e.bullHighlightStyle={},e.bullHoverOutStyle={},e.bearStyle={},e.bearHoverInStyle={},e.bearHighlightStyle={},e.bearHoverOutStyle={},e.plotSpacePercent=40,e.dataMarkerPadding=0,e.visibility=r.VISIBLE,e.prevBoundaryInfo={},e.defaultBullStyle={"stroke-width":1,opacity:1,stroke:"000000",fill:"ffffff"},e.defaultBearStyle={"stroke-width":1,opacity:1,stroke:"000000",fill:"868AC8"},e.defaultBullHighlightStyle={"stroke-width":2},e.defaultBearHighlightStyle={"stroke-width":2},e.defaultBearHoverInStyle={"stroke-width":2},e.defaultBullHoverInStyle={"stroke-width":2},e.legendDefaultTextStyle={"font-family":r.DEFAULT_FT_FONT,"font-weight":"normal","font-style":"normal","font-size":"12px",fill:"#5F5F5F"},e.defaultBearPredictiveStyle={fill:"#62B58F"},e.defaultBullPredictiveStyle={fill:"#F76363"},e.strokeColor="#464E56",e.hoverInfo=[],e.prevPerBinYExtents=[],e.dataIndices=[1,2,3,4]},n.configureAttributes=function(e){var t,n=this,a=n.getFromEnv("dataSource"),i=n.getFromEnv("getStyleDef"),o=a.legend,s=i(o&&o.item&&o.item.style&&o.item.style.text),c=n.config;if(c.mergedLegendStyle=(0,r.extend2)((0,r.extend2)({},c.legendDefaultTextStyle),s),e.hasOwnProperty("hoverIndices"))c.hoverInfo.push(e),c.hoverMode=!0;else{for(t in e)if("primaryColor"===t){var u=e.plotCosmetics,d=e.genericCosmetics,f=c.bullStyle,h=c.bearStyle,p=c.bullHoverInStyle,m=c.bearHoverInStyle,v=c.bullHighlightStyle,y=c.bearHighlightStyle,b=c.bullHoverOutStyle,x=c.bearHoverOutStyle,k=void 0,S=i(u.style&&u.style.bear),_=i(u.style&&u.style.bull),C=i(d.style&&d.style.plot),w=i(d.style&&d.style["plot:hover"]),D=i(d.style&&d.style["plot:highlight"]),E=i(d.style&&d.style.bull),T=i(d.style&&d.style["bull:hover"]),M=i(d.style&&d.style["bull:highlight"]),I=i(d.style&&d.style.bear),F=i(d.style&&d.style["bear:hover"]),L=i(d.style&&d.style["bear:highlight"]),O=i(u.style&&u.style["bear:hover"]),P=i(u.style&&u.style["bear:highlight"]),A=i(u.style&&u.style["bull:hover"]),B=i(u.style&&u.style["bull:highlight"]),N=i(e.styleConfig&&e.styleConfig.bear),H=i(e.styleConfig&&e.styleConfig.bull),j=i(e.styleConfig&&e.styleConfig["bear:hover"]),R=i(e.styleConfig&&e.styleConfig["bear:highlight"]),V=i(e.styleConfig&&e.styleConfig["bull:hover"]),G=i(e.styleConfig&&e.styleConfig["bull:highlight"]),Y=i(u.style&&u.style.plot),U=i(e.styleConfig&&e.styleConfig.plot),z=i(u.style&&u.style["generic:hover"]),X=i(u.style&&u.style["generic:highlight"]),W=i(e.styleConfig&&e.styleConfig["plot:hover"]),q=i(e.styleConfig&&e.styleConfig["plot:highlight"]);for(k in delete C.fill,delete Y.fill,delete U.fill,"timeseries-ohlc"===n.getName()&&(delete U.stroke,delete C.stroke,delete Y.stroke),[f,c.defaultBullStyle,C,Y,U,E,_,H].reduce(g),[h,c.defaultBearStyle,C,Y,U,I,S,N].reduce(g),[p,c.defaultBullHoverInStyle,w,z,W,T,A,V].reduce(g),[v,c.defaultBullHighlightStyle,D,X,q,M,B,G].reduce(g),[m,c.defaultBearHoverInStyle,w,z,W,F,O,j].reduce(g),[y,c.defaultBearHighlightStyle,D,X,q,L,P,R].reduce(g),f.stroke=(0,r.convertColor)(f.stroke,100*(0,r.pluckNumber)(f["stroke-opacity"],1)),f.fill=(0,r.convertColor)(f.fill,100*(0,r.pluckNumber)(f["fill-opacity"],1)),h.stroke=(0,r.convertColor)(h.stroke,100*(0,r.pluckNumber)(h["fill-opacity"],1)),h.fill=(0,r.convertColor)(h.fill,100*(0,r.pluckNumber)(h["fill-opacity"],1)),p.fill&&(p.fill=(0,r.convertColor)(p.fill,100*(0,r.pluckNumber)(p["fill-opacity"],f["fill-opacity"]))),p.stroke&&(p.stroke=(0,r.convertColor)(p.stroke,100*(0,r.pluckNumber)(p["stroke-opacity"],f["stroke-opacity"]))),m.fill&&(m.fill=(0,r.convertColor)(m.fill,100*(0,r.pluckNumber)(m["fill-opacity"],h["fill-opacity"]))),m.stroke&&(m.stroke=(0,r.convertColor)(m.stroke,100*(0,r.pluckNumber)(m["stroke-opacity"],h["stroke-opacity"]))),v.fill&&(v.fill=(0,r.convertColor)(v.fill,100*(0,r.pluckNumber)(v["fill-opacity"],f["fill-opacity"]))),v.stroke&&(v.stroke=(0,r.convertColor)(v.stroke,100*(0,r.pluckNumber)(v["stroke-opacity"],f["stroke-opacity"]))),m.fill&&(m.fill=(0,r.convertColor)(m.fill,100*(0,r.pluckNumber)(m["fill-opacity"],h["fill-opacity"]))),m.stroke&&(m.stroke=(0,r.convertColor)(m.stroke,100*(0,r.pluckNumber)(m["stroke-opacity"],h["stroke-opacity"]))),c.plotBorderThickness=h["stroke-width"]=f["stroke-width"]=(0,r.pluckNumber)((0,l["default"])([h["stroke-width"],f["stroke-width"]],Number.parseFloat)),Object.assign(Object.assign({},p),v))b[k]=(0,r.pluck)(f[k],"");for(k in(0,r.defined)(b["stroke-dasharray"])&&(b["stroke-dasharray"]=""),Object.assign(Object.assign({},m),y))x[k]=h[k]||"";(0,r.defined)(x["stroke-dasharray"])&&(b["stroke-dasharray"]=""),c.bullOpacity=f.opacity,c["bull-fill-opacity"]=f["fill-opacity"],c["bull-stroke-opacity"]=f["stroke-opacity"],c.bearOpacity=h.opacity,c["bear-fill-opacity"]=h["fill-opacity"],c["bear-stroke-opacity"]=h["stroke-opacity"],delete f.opacity,delete f["fill-opacity"],delete f["stroke-opacity"],delete h.opacity,delete h["fill-opacity"],delete h["stroke-opacity"]}else c[t]=e[t];c.limit=n._calculateLimits();var Z=n.getFromEnv("chart");Z.setYScaleLimit(c.scaleY.getId(),n.getId(),c.limit.y,c.limit.baseRequired),Z.setXScaleLimit(c.scaleX.getId(),n.getId(),c.limit.x)}this.parsePrediction(e)},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e={},t=this.config;t.predictiveStyleAttributesBear={},t.predictiveStyleAttributesBull={},t.prediction.enabled&&(Object.assign(e,t.prediction.style.plot),Object.assign(t.predictiveStyleAttributesBear,t.defaultBearPredictiveStyle,t.prediction.style.plot,t.prediction.style.bear),Object.assign(t.predictiveStyleAttributesBull,t.defaultBullPredictiveStyle,t.prediction.style.plot,t.prediction.style.bull)),t.predictiveStyleAttributes=e||{}},n._calculateLimits=function(){var e,t=this.config,n=t.indices,a=t.data,i=t.scaleY,s=t.scaleX,c=t.calculateFromContext,u=a[0],d=a[a.length-1],f=s.showPlotOverTick(),h="visible"===this.config.visibility,g="log"===i.getType(),p=this.getFromEnv("chart"),m=c?p.getContextLimit():p.getFocusLimit(),v=m[0],y=m[1],b={},x=function(e){return g&&e<=0?null:e};return e=this.getPadding(),b.x=[u&&u[n[0]].start-e,d&&d[n[0]][f?"start":"end"]+e],b.y=h?[(0,l["default"])(a,(function(e){if(!(e[0].end<v||e[0].start>y))return(0,l["default"])([e[n[1]],e[n[2]],e[n[3]],e[n[4]]],x)})),(0,o["default"])(a,(function(e){if(!(e[0].end<v||e[0].start>y))return(0,o["default"])([e[n[1]],e[n[2]],e[n[3]],e[n[4]]],x)}))]:r.UNDEF,b.baseRequired=!1,b},n._getRelevantInfo=function(e){var t,n,a,i=this.config;if(e!==r.UNDEF){var o="bull"===i.dataInfo[e].groupId?i.bullStyle:i.bearStyle;t=o.fill,a=o.stroke,"#ffffff"===(0,r.rgbaToHex)(t)&&(n={fill:a})}return{firstTimeStamp:i.firstTimeStamp,timeStampGap:i.timeStampGap,dataInfo:i.dataInfo,fill:t,stroke:a,text:n}},n._createContainer=function(){e.prototype._createContainer.call(this);var t=this,n=t.config,a=n.bullStyle,i=n.bearStyle;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:t,label:"group",id:"meso",attr:{name:"candlestick-dataset-meso"}}),t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-bull",attr:Object.assign({name:"bullGroup-meso",visibility:n.visibility},a)}),t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-bear",attr:Object.assign({name:"bearGroup-meso",visibility:n.visibility},i)}),t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-bull-predictive",attr:Object.assign({name:"predictive-bullGroup-meso",visibility:n.visibility},a,n.predictiveStyleAttributesBull)}),t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-bear-predictive",attr:Object.assign({name:"predictive-bearGroup-meso",visibility:n.visibility},i,n.predictiveStyleAttributesBear)})},n.getName=function(){return"timeseriesCandlestick"},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach((function(t,a){t.closeValuePx<=e.minValue&&t.closeValuePx>=e.maxValue&&n.push(a)})),n},n.allocatePosition=function(){var e,t,n,a,i,o,c,f,h,g,p,m,v,y,b,x,k,S,_,C,w,D,E,T,M,I,F,L,O,P,A,B=this,N=B.getFromEnv("binDecider"),H=B.getFromEnv("xScale"),j=B.getFromEnv("yScale"),R=B.config,V=R.measures[0],G=R.indices,Y=G[0],U=G[1],z=G[2],X=G[3],W=G[4],q=B.getFromEnv("dateColumn"),Z=B.getFromEnv("UTC"),$=R.dataInfo,K=q.format,Q=Z?d["default"].utcFormatter(K):d["default"].formatter(K),J=H.bins,ee=N.getRangeThreshold()[2],te=H.getDomain(),ne=te[0],ae=te[1],ie=R.data;if(R.repositioningDone=B._isRepositioningNeeded()){for(R.timeStampGap=ee,R.availableWidth=S=0,M=0,I=J.length;M<I;M++)if(2!==J[M].clipType){R.availableWidth=S=H.getRangeValue(J[M].end)-H.getRangeValue(J[M].start);break}t=Math.max(S*(1-R.plotSpacePercent/100)-R.plotBorderThickness,1),F=+H.getDomainValue(S*(R.plotSpacePercent/200))-+H.getDomainValue(0),R.actualStartDomain=+ne+F,R.actualEndDomain=+ae-F,$=R.dataInfo=[],ie.forEach((function(r,d){if(n=r[Y],g=r[U],p=r[W],m=r[z],v=r[X],D=n.config.duration,E=n.start,T=n.end,d||(R.firstTimeStamp=n.start),w=j.getRangeValue(p),C=j.getRangeValue(g),k=j.getRangeValue(m),x=j.getRangeValue(v),(0,u["default"])(C)||(0,u["default"])(w)||(0,u["default"])(k)||(0,u["default"])(x)){(0,u["default"])(C)&&(0,u["default"])(w)&&(g>p?(f=w,c=C,h="bear"):(c=w,f=C,h="bull"),e=Math.max(Math.abs(f-c),1),i=c>f?f:c),o=H.getRangeValue(new Date(n.start),new Date(n.end)),(y={startDate:E,endDate:T}).x=a=o-t/2,y.endXPosition=a+t,y.midX=o,y.colHeight=e||0,y.colY=i||C||w,y.highStickYExtend=k,y.y=(0,l["default"])([k,w,C,x]),y.closeValuePx=w,y.width=t,y.openValue=g,y.closeValue=p,y.highValue=m,y.lowValue=v,y.value=p,y.lowStickYEntend=x,L=R.formatterFn({value:g,type:"tooltip",prefix:R.prefix,suffix:R.suffix}),A=R.formatterFn({value:p,type:"tooltip",prefix:R.prefix,suffix:R.suffix}),O=R.formatterFn({value:m,type:"tooltip",prefix:R.prefix,suffix:R.suffix}),P=R.formatterFn({value:v,type:"tooltip",prefix:R.prefix,suffix:R.suffix}),y.eventArgs={index:d,start:E,startText:Q.format(E),end:T,endText:Q.format(T),binUnit:D.Unit,binMultiplier:D.number,plotType:R.type,timeFormatter:K,aggregation:R.aggregation,measure:V.close,measureHigh:V.high,measureLow:V.low,measureOpen:V.open,measuresClose:V.close,binValue:p,binOpen:g,binHigh:m,binLow:v,binClose:p,binValueFomatted:A,binOpenFormatted:L,binHighFormatted:O,binCloseFormatted:A,binLowFormatted:P};var S=(0,s["default"])([C,w,k,x]);y.height=Math.abs(S[0]-S[1])||0,y.groupId=h||"bull",y.groupConfig="bull"===h?"bullConfig":"bearConfig",b=H.getBinIndex(n.start),$[b]=y}}))}(_=R.hoverInfo)&&_.forEach((function(e){e.hoverIndices.forEach((function(t){"object"==typeof $[t]&&($[t].style=(0,r.extend2)($[t].style,e[$[t].groupId+"Style"]))}))}))},n._drawPlot=function(){var e,t,n=this,a=n.config,i=a.dataInfo,o=(0,r.defined)(a.bullOpacity),l=(0,r.defined)(a["bull-fill-opacity"]),s=(0,r.defined)(a["bull-stroke-opacity"]),c=a.predictiveStyleAttributesBull,u=(0,r.defined)(c.opacity),d=(0,r.defined)(c["fill-opacity"]),f=(0,r.defined)(c["stroke-opacity"]),h=(0,r.defined)(a.bearOpacity),g=(0,r.defined)(a["bear-fill-opacity"]),p=(0,r.defined)(a["bear-stroke-opacity"]),m=a.predictiveStyleAttributesBear,v=(0,r.defined)(m.opacity),y=(0,r.defined)(m["fill-opacity"]),b=(0,r.defined)(m["stroke-opacity"]),x={},k={},S=r.BLANKSTRING,_=!1,C=function(e,t){v&&(e.opacity=m.opacity),y&&(e.opacity=m["fill-opacity"]),b&&(e.opacity=m["stroke-opacity"]),u&&(t.opacity=c.opacity),d&&(t.opacity=c["fill-opacity"]),f&&(t.opacity=c["stroke-opacity"])};o&&(x.opacity=a.bullOpacity),l&&(x.opacity=a["bull-fill-opacity"]),s&&(x.opacity=a["bull-stroke-opacity"]),h&&(k.opacity=a.bearOpacity),g&&(k.opacity=a["bear-fill-opacity"]),p&&(k.opacity=a["bear-stroke-opacity"]),i.forEach((function(a,r){a.groupConfig&&(t="bull"===a.groupId?x:k,_=n.isPlotPredictive(a),S=_?a.groupId+"-predictive":a.groupId,a.colHeight>0?(e=Object.assign({x:a.x,y:a.colY,height:a.colHeight,width:a.width},t),a.style&&Object.assign(e,a.style),_&&C(k,x),n.addGraphicalElement({el:"rect",component:n,props:{index:r,dataLength:i.length},container:{label:"group",id:"meso-"+S},label:"rect",attr:e},!0)):(a.openValue||a.closeValue)&&(e=Object.assign({path:"M"+a.x+","+a.colY+",H"+(a.x+a.width)},t),a.style&&Object.assign(e,a.style),_&&C(k,x),n.addGraphicalElement({el:"path",component:n,props:{index:r,dataLength:i.length},container:{label:"group",id:"meso-"+S},label:"line",attr:e},!0)),a.highStickYExtend&&(e=Object.assign({path:"M"+a.midX+","+a.highStickYExtend+",V"+(a.colY||a.highStickYExtend+a.height),"stroke-linecap":"round"},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,props:{index:r,dataLength:i.length},container:{label:"group",id:"meso-"+a.groupId},label:"high",attr:e},!0)),a.lowStickYEntend&&(e=Object.assign({path:"M"+a.midX+","+a.lowStickYEntend+",V"+(a.colY+a.colHeight||a.lowStickYEntend-a.height),"stroke-linecap":"round"},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,props:{index:r,dataLength:i.length},container:{label:"group",id:"meso-"+a.groupId},label:"low",attr:e},!0)))})),a.hoverInfo=[]},n._getTooltext=function(e,t,n){var a,i,o,l,s,c,u,d=this,f=d.config,h=d.getFromEnv("dataSource"),g=d._linkedParent.getChildren("dataset"),p=h.tooltip?h.tooltip.tooltext:null,m=d._linkedParent._linkedParent._components.timeNavigator[0].config.formatter,v=f.dataInfo[n],y=(null==f?void 0:f.nonce)||"",b=e?t?1:.5:1;if(d._isInvalidTooltext(v))return"";if(c=(0,r.defined)(v.groupConfig),p)h.yaxis.find((function(e){return e.plot.find((function(e){return"Volume"===e.value}))}))?u="<div></div>":(i={series:h.yaxis.map((function(e){return{name:e.title}}))},o={series:g.map((function(e){return l=m.format(e.config.dataInfo[n].startDate),s=m.format(e.config.dataInfo[n].endDate),{bin:l+"-"+s,binStart:l,binEnd:s,openValue:e.config.dataInfo[n].eventArgs.binOpen,openDataValue:e.config.dataInfo[n].eventArgs.binOpenFormatted,highValue:e.config.dataInfo[n].eventArgs.binHigh,highDataValue:e.config.dataInfo[n].eventArgs.binHighFormatted,lowValue:e.config.dataInfo[n].eventArgs.binLow,lowDataValue:e.config.dataInfo[n].eventArgs.binLowFormatted,closeValue:e.config.dataInfo[n].eventArgs.binClose,closeDataValue:e.config.dataInfo[n].eventArgs.binCloseFormatted}}))},a=[154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],u="<div>"+(p=(0,r.parseTooltext)(p,a,i,o))+"</div>");else{var x=this.getClassName("tooltip-margin");if(u='\n <style nonce="'+y+'">\n .'+x+" {\n margin-bottom: 5px; \n opacity: "+b+';\n }\n </style>\n <div class="'+x+'">\n <div>'+(0,r.parseUnsafeString)(f.series)+"</div>\n </div>",c){var k=this.getClassName("tooltip-class"),S=this.getClassName("tooltip-float-right-class"),_=this.getClassName("tooltip-float-left-class");return(f.series?u:"")+["open","high","low","close"].reduce((function(e,t){var n=v[t+"TooltipValue"]||(v[t+"TooltipValue"]=v[t+"Value"]&&f.formatterFn({value:v[t+"Value"],type:"tooltip",prefix:f.prefix,suffix:f.suffix}));return e+(n!==r.UNDEF?'\n <style nonce="'+y+'">\n .'+k+" {\n overflow: hidden; margin-top:4px;\n }\n\n ."+_+" {\n float: left;\n }\n\n ."+S+' {\n float: right;\n }\n </style>\n <div class="'+k+'">\n <div class="'+_+'">'+t+'</div>\n <div class="'+S+'">'+n+"</div>\n </div>":"")}),"")}}return u},t}(f["default"]),m=p;t["default"]=m},938:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(282),o=a(n(920)),l=a(n(921)),s=a(n(350)),c=a(n(856)),u=n(274),d=n(939);(0,r.addDep)({name:"timeseriesColumnAnimation",type:"animationRule",extension:l["default"]});var f=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-plotSpacePercent"]=30,t.visibility="visible",t.isRange=!0,t.prevBoundaryInfo={},t.dataMarkerPadding=0,t.style={},t.hoverInStyle={},t.highlightStyle={},t.hoverOutStyle={},t.defaultStyle={"stroke-width":1,"fill-opacity":1,"stroke-opacity":1,opacity:1},t.defaultPredictedDataStyle={"stroke-width":1,"fill-opacity":.2,"stroke-opacity":1,"stroke-dasharray":5},t.defaultHoverInStyle={opacity:.8},t.defaultHighlightStyle={opacity:.8},t.dataInfo=[],t.prevPerBinYExtents=[],t.dataIndices=[1,2]},n.allocatePosition=function(){var e,t,n,a,i,r,o,l,d,f,h,g,p,m,v,y,b,x,k,S,_,C,w,D,E,T=this,M=T.config,I=M.indices,F=I[0],L=I[1],O=I[2],P=T.getFromEnv("binDecider"),A=T.getFromEnv("xScale"),B=T.getFromEnv("yScale"),N=M.dataInfo,H=(M.seriesInfo,T.getFromEnv("dateColumn")),j=T.getFromEnv("UTC"),R=M.groupIndex||0,V=M.totalGroups||1,G=M.data,Y=H.format,U=j?s["default"].utcFormatter(Y):s["default"].formatter(Y),z=A.bins,X=M.plotBorderThickness,W=M.fillColor===M.strokeColor&&X>0,q=P.getRangeThreshold()[2],Z=A.getDomain(),$=Z[0],K=Z[1];if(M.firstTimeStamp=G&&G[0]&&G[0][F]&&G[0][F].start,M.repositioningDone=T._isRepositioningNeeded()){if("visible"!==M.visibility)return;for(N=M.dataInfo=[],M.availableWidth=v=0,C=0,w=z.length;C<w;C++)if(2!==z[C].clipType){M.availableWidth=v=A.getRangeValue(z[C].end)-A.getRangeValue(z[C].start);break}M.timeStampGap=q,m=Math.max(v*(1-M.plotSpacePercent/100),1),t=m/V,S=Math.round(V/2),_=V%2==0?0:.5,g=S-R>0?-t*(S-R-_):t*(R-S+_),D=+A.getDomainValue(v*(M.plotSpacePercent/200))-+A.getDomainValue(0),M.actualStartDomain=+$+D,M.actualEndDomain=+K-D,W&&(t=Math.max(t-X,1)),G.forEach((function(s,u){n=s[F],i=Math.max(s[L],s[O]),r=Math.min(s[O],s[L]),y=n.config.duration,x=n.start,k=n.end,u||(M.firstTimeStamp=n.start),o=r,d=B.getRangeValue(o||Math.max(B.getDomain()[0],0)),l=B.getRangeValue(i),(0,c["default"])(i)&&(0,c["default"])(r)&&(0,c["default"])(d)&&(0,c["default"])(l)&&(a=A.getRangeValue(new Date(n.start),new Date(n.end)),W&&(a+=X/2),p=(a+=g)+t,e=Math.max(1,Math.abs(d-l)),E={startDate:x,endDate:k,high:i,low:r,highValue:i,lowValue:r,yBaseValue:o,yBase:d,x:a,endXPosition:p,y:l>d?d:l,width:t,height:e,eventArgs:{index:u,high:i,low:r,highValue:i,lowValue:r}},b={index:u,high:i,low:r,highValue:i,lowValue:r,start:x,startText:U.format(x),end:k,endText:U.format(k),binUnit:y.Unit,binMultiplier:y.number,plotType:M.type,timeFormatter:Y,aggregation:M.aggregation,measure:M.measures[0]},E.eventArgs=b,h=A.getBinIndex(n.start),N[h]=E)}))}(f=M.hoverInfo)&&f.forEach((function(e){e.hoverIndices.forEach((function(t){"object"==typeof N[t]&&"object"==typeof e.style&&(N[t].style=(0,u.extend2)(N[t].style,e.style))}))}))},n._calculateLimits=function(){return(0,d.calculateLimits)(this)},n.getName=function(){return"column-range"},n._getTooltext=function(e,t,n){return(0,d.getTooltext)(this,e,t,n)},t}(o["default"]),h=f;t["default"]=h},921:(e,t,n)=>{t.__esModule=!0,t["default"]=void 0;var a=n(274);function i(e,t,n){return{y:n?t:t+e,height:0}}function r(e,t){var n=1/t,a=n*e;return{start:a,end:a+n}}var o={"initial.dataset.timeseriesColumn":function(){var e=this,t="height",n=e.getFromEnv("yScale");return undefined!==e.config.indices[3]?function(e){var t=e.config.datasetIndex,n=e.config.seriesLength;return{"rect.appearing":function(a){var o=a.index,l=e.config.dataInfo[o].yBaseValue<0;return[{initialAttr:i(a.attr.height,a.attr.y,l),slot:"middle",startEnd:r(t,n),effect:"linear"}]}}}(e):{"rect.appearing":function(i){var r,o,l,s,c=i.props&&i.props.originalIndex||i.index,u=e.config.data[c],d=i.attr,f=n.getRangeValue(0);return r=d.y,o=d[t],s=Math.sign(r+o/2-f),l=1===s?r:r+o,u&&(u._posWRT0=s),[{initialAttr:function(){var e={};return e.y=l,e[t]=0,e},finalAttr:{},startEnd:function(){var e=a.animHelperFN.animByWeight(i.index,i.props.dataLength,.6);return e},hookFn:function(){this.attr({opacity:1})},effect:"easeInOutQuart",slot:"plot"}]},"*":null}}};t["default"]=o},920:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(274),l=a(n(539)),s=a(n(540)),c=n(282),u=a(n(856)),d=a(n(294)),f=a(n(350)),h=a(n(921)),g=a(n(922)),p=a(n(538)),m=a(n(362)),v="",y="visible",b=function(e,t){return Object.assign(e,t)},x=function(e){return[e.start,e.end]},k=function(e,t,n,a){return e&&t<=0||n[1]<a[0]||n[0]>a[1]},S=o.hasTouch?o.TOUCH_THRESHOLD_PIXELS:o.CLICK_THRESHOLD_PIXELS;(0,c.addDep)({name:"timeseriesColumnAnimation",type:"animationRule",extension:h["default"]});var _=function(e){function t(){var t;(t=e.call(this)||this).getClassName=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)};var n=(0,i["default"])(t),a=t.config;return t.registerFactory("markerFactory",g["default"]),t._getFirstValidData=function(e,t){var n,a=e.length;for(n=0;n<a;n++)if(e[0]&&e[0][t]!==o.UNDEF)return e[0][t];return o.UNDEF},a.hoverInfo=[],t.addEventListener("beforeremove",(function(){n.getFromEnv("chart").setXScaleLimit(a.scaleX.getId(),n.getId()),n.getFromEnv("chart").setYScaleLimit(a.scaleY.getId(),n.getId())})),t}(0,r["default"])(t,e);var n=t.prototype;return n.getHoverInConfig=function(e){return{style:this.config.hoverInStyle,hoverIndices:e,hovered:!0}},n.getHighlightConfig=function(e){return{style:this.config.highlightStyle,hoverIndices:e,hovered:!1}},n.getHoverOutConfig=function(e){return{style:this.config.hoverOutStyle,hoverIndices:e,hovered:!1}},n.getType=function(){return"dataset"},n.getName=function(){return"timeseriesColumn"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-plotSpacePercent"]=30,t.visibility=y,t.prevBoundaryInfo={},t.dataMarkerPadding=0,t.style={},t.hoverInStyle={},t.highlightStyle={},t.hoverOutStyle={},t.defaultStyle={"stroke-width":1,"fill-opacity":1,"stroke-opacity":1,opacity:1},t.defaultPredictedDataStyle={"stroke-width":1,"fill-opacity":.2,"stroke-opacity":1,"stroke-dasharray":5},t.defaultHoverInStyle={opacity:.8},t.defaultHighlightStyle={opacity:.8},t.dataInfo=[],t.prevPerBinYExtents=[],t.dataIndices=[1,2]},n.configureAttributes=function(e){var t,n=this,a=n.getFromEnv("chart-attrib"),i=n.config;if(e.hasOwnProperty("hoverIndices"))i.hoverInfo.push(e),i.hoverMode=!0;else{for(t in e)if("primaryColor"===t){var r=e.plotCosmetics,l=e.genericCosmetics,s=e[t],c=void 0,u=n.getFromEnv("getStyleDef"),d=u(l.style&&l.style.plot),f=u(l.style&&l.style["plot:hover"]),h=u(l.style&&l.style["plot:highlight"]),g=u(r.style&&r.style.plot),p=u(e.styleConfig&&e.styleConfig.plot),m=u(r.style&&r.style.column),v=u(e.styleConfig&&e.styleConfig.column),y=u(r.style&&r.style["plot:hover"]),x=u(r.style&&r.style["plot:highlight"]),k=u(e.styleConfig&&e.styleConfig["plot:hover"]),S=u(e.styleConfig&&e.styleConfig["plot:highlight"]),_=u(r.style&&r.style["column:hover"]),C=u(r.style&&r.style["column:highlight"]),w=u(e.styleConfig&&e.styleConfig["column:hover"]),D=u(e.styleConfig&&e.styleConfig["column:highlight"]),E=i.style,T=i.hoverOutStyle,M=i.hoverInStyle,I=i.highlightStyle;for(c in[E,i.defaultStyle,d,g,p,m,v].reduce(b),[M,i.defaultHoverInStyle,f,y,_,k,w].reduce(b),[I,i.defaultHighlightStyle,h,x,C,S,D].reduce(b),E.stroke=(0,o.convertColor)((0,o.pluck)(E.stroke,s,i["default-stroke"]),100*(0,o.pluckNumber)(E["stroke-opacity"],1)),E.fill=(0,o.convertColor)((0,o.pluck)(s,E.stroke,i["default-fill"]),100*(0,o.pluckNumber)(E["fill-opacity"],1)),M.fill&&(M.fill=(0,o.convertColor)(M.fill,100*(0,o.pluckNumber)(M["fill-opacity"],E["fill-opacity"]))),M.stroke&&(M.stroke=(0,o.convertColor)(M.stroke,100*(0,o.pluckNumber)(M["stroke-opacity"],E["stroke-opacity"]))),I.fill&&(I.fill=(0,o.convertColor)(I.fill,100*(0,o.pluckNumber)(I["fill-opacity"],E["fill-opacity"]))),I.stroke&&(I.stroke=(0,o.convertColor)(I.stroke,100*(0,o.pluckNumber)(I["stroke-opacity"],E["stroke-opacity"]))),Object.assign(Object.assign({},M),I))T[c]=(0,o.pluck)(E[c],"");(0,o.defined)(T["stroke-dasharray"])&&(T["stroke-dasharray"]=null),i.plotBorderThickness=E["stroke-width"],i.opacity=E.opacity,i["fill-opacity"]=E["fill-opacity"],i["stroke-opacity"]=E["stroke-opacity"],delete E.opacity,delete E["fill-opacity"],delete E["stroke-opacity"]}else i[t]=e[t];i.plotSpacePercent=(0,o.pluckNumber)(a.plotspacepercent,i["default-plotSpacePercent"]),i.limit=n._calculateLimits();var F=n.getFromEnv("chart");F.setYScaleLimit(i.scaleY.getId(),n.getId(),i.limit.y,i.limit.baseRequired),F.setXScaleLimit(i.scaleX.getId(),n.getId(),i.limit.x)}this.parsePrediction(e)},n.getValueFromPx=function(e){var t=this.getFromEnv("binDecider").getBinRange(),n=t[1]-t[0],a=this.getFromEnv("chart"),i=this.config.calculateFromContext?a.getContextLimit():a.getFocusLimit();return e*(i[1]-i[0])/(n-e)},n.getPadding=function(){var e=this.config,t=e.scaleX,n=this.getFromEnv("binDecider").getRangeThreshold(),a=0,i=this.getValueFromPx(e.dataMarkerPadding);return t.showPlotOverTick()&&(a=n[2]/2),Math.ceil(Math.max(a,i))},n._calculateLimits=function(){var e,t=this.config,n=t.indices,a=t.data,i=t.type,r=t.scaleY,c=t.scaleX,u=t.calculateFromContext,d=/continuous/.test(this.getName()),f=c.showPlotOverTick(),h={},g=a[0],p=a[a.length-1],m="log"===r.getType(),v="visible"===this.config.visibility,y=this.getFromEnv("chart"),b=u?y.getContextLimit():y.getFocusLimit();return e=this.getPadding(),h.x=f?[g&&g[n[0]].start-e,p&&p[n[0]].start+e]:d?[g&&(g[n[0]].start+g[n[0]].end)/2-e,p&&(p[n[0]].start+p[n[0]].end)/2+e]:[g&&g[n[0]].start-e,p&&p[n[0]].end-e],h.y=v?[(0,l["default"])(a,(function(e){var t=(0,o.pluckNumber)(e[n[2]],e[n[1]]),a=x(e[0]);return k(m,t,a,b)?null:t})),(0,s["default"])(a,(function(e){var t=e[n[1]],a=x(e[0]);return k(m,t,a,b)?null:t}))]:o.UNDEF,h.baseRequired=!/line/.test(i),h},n.draw=function(){var e=this;e._createContainer(),e._drawPlot(),e.config.hoverInfo=[],e.config.hoverMode=!1,e.config.repositioningDone=!1},n._createContainer=function(){var e=this;e.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:e,label:"group",id:"meso",attr:{name:"dataset-meso"}},!0),e.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:e,label:"group",id:"thermo",attr:{name:"dataset-thermo","clip-path":e.getFromEnv("dsGroupclipPath")}},!0)},n.isDrawingRequired=function(){var e=this.config;if(e.repositioningDone||e.hoverMode)return!0},n._drawPlot=function(){var e,t=this,n=t.config,a=n.style,i=(0,o.defined)(n.opacity),r=(0,o.defined)(n["stroke-opacity"]),l=(0,o.defined)(n["fill-opacity"]),s=!1,c=t.config.predictiveStyleAttributes,d=(0,o.defined)(c.predictiveOpacity),f=(0,o.defined)(c.predictiveStrokeOpacity),h=(0,o.defined)(c.predictiveFillOpacity),g=n.dataInfo;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-plot",attr:Object.assign({name:"column-plot-meso",visibility:n.visibility},a)},!0),t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-plot-predictive",attr:Object.assign({name:"column-predictive-plot-meso",visibility:n.visibility},a,c)},!0),g.forEach((function(a,p){((0,u["default"])(a.value)||(0,u["default"])(a.high)&&(0,u["default"])(a.low))&&(e={x:a.x,y:a.y,width:a.width,height:a.height},s=t.isPlotPredictive(a),i&&(e.opacity=n.opacity),r&&(e["stroke-opacity"]=n["stroke-opacity"]),l&&(e["fill-opacity"]=n["fill-opacity"]),a.style&&Object.assign(e,a.style),s&&(d&&(e.opacity=c.predictiveOpacity),f&&(e["stroke-opacity"]=c.predictiveStrokeOpacity),h&&(e["fill-opacity"]=c.predictiveFillOpacity)),t.addGraphicalElement({el:"rect",container:{label:"group",id:s?"meso-plot-predictive":"meso-plot"},props:{dataLength:g.length},label:"rect",attr:e,component:t,index:p},!0),a.style=o.UNDEF)})),n.hoverInfo=[]},n._isRepositioningNeeded=function(){var e,t=this,n=t.config,a=t.getFromEnv("xScale"),i=t.getFromEnv("yScale"),r=a.getDomain(),o=r[0],l=r[1],s=a.getRange(),c=s[0],u=s[1],d=i.getDomain(),f=d[0],h=d[1],g=i.getRange(),p=g[0],m=g[1],v=n.prevBoundaryInfo,y=this.hasDataYExtentChangedInAnyBin();return(+o!=+v.xDomainStart||+l!=+v.xDomainEnd||+f!=+v.yDomainStart||+h!=+v.yDomainEnd||c!==v.xRangeStart||u!==+v.xRangeEnd||p!==v.yRangeStart||m!==+v.yRangeEnd||n.prevVisibility!==n.visibility||n.legendInteracted||y)&&(n.legendInteracted=!1,e=!0,n.prevBoundaryInfo={xDomainStart:o,xDomainEnd:l,xRangeStart:c,xRangeEnd:u,yDomainStart:f,yDomainEnd:h,yRangeStart:p,yRangeEnd:m},n.prevVisibility=n.visibility),e},n.hasDataYExtentChangedInAnyBin=function(){var e=this.config,t=e.data,n=e.prevPerBinYExtents,a=this.config.dataIndices,i=t.map((function(e){return(0,p["default"])(a.map((function(t){return e[t]})),Number)}));if(i.length===n.length){var r=i.some((function(e,t){var a=n[t];return e[0]!==a[0]||e[1]!==a[1]}));return e.prevPerBinYExtents=i,r}return e.prevPerBinYExtents=i,!0},n.allocatePosition=function(){var e,t,n,a,i,r,l,s,c,d,h,g,p,v,y,b,x,k,S,_,C,w,D,E,T,M=this,I=M.config,F=I.indices,L=F[0],O=F[1],P=F[2],A=F[3],B=M.getFromEnv("binDecider"),N=M.getFromEnv("xScale"),H=M.getFromEnv("yScale"),j=I.dataInfo,R=I.seriesInfo,V=M.getFromEnv("dateColumn"),G=M.getFromEnv("UTC"),Y=I.groupIndex||0,U=I.totalGroups||1,z=I.data,X=V.format,W=G?f["default"].utcFormatter(X):f["default"].formatter(X),q=N.bins,Z=I.plotBorderThickness,$=I.fillColor===I.strokeColor&&Z>0,K=B.getRangeThreshold()[2],Q=N.getDomain(),J=Q[0],ee=Q[1];if(I.firstTimeStamp=z&&z[0]&&z[0][L]&&z[0][L].start,I.repositioningDone=M._isRepositioningNeeded()){if("visible"!==I.visibility)return;for(j=I.dataInfo=[],I.availableWidth=v=0,w=0,D=q.length;w<D;w++)if(2!==q[w].clipType){I.availableWidth=v=N.getRangeValue(q[w].end)-N.getRangeValue(q[w].start);break}I.timeStampGap=K,p=Math.max(v*(1-I.plotSpacePercent/100),1),t=p/U,_=Math.round(U/2),C=U%2==0?0:.5,h=_-Y>0?-t*(_-Y-C):t*(Y-_+C),E=+N.getDomainValue(v*(I.plotSpacePercent/200))-+N.getDomainValue(0),I.actualStartDomain=+J+E,I.actualEndDomain=+ee-E,$&&(t=Math.max(t-Z,1)),z.forEach((function(c,f){if(n=c[L],a=c[O],y=n.config.duration,k=n.start,S=n.end,!G){var p=new Date(k);new Date(p.getFullYear(),0).getTimezoneOffset()>new Date(p.getFullYear(),6).getTimezoneOffset()&&(k=m["default"].offset(k,1))}f||(I.firstTimeStamp=n.start),r=c[P],s=H.getRangeValue(r||Math.max(H.getDomain()[0],0)),l=H.getRangeValue(a),(0,u["default"])(a)&&(0,u["default"])(s)&&(0,u["default"])(l)&&(i=N.getRangeValue(new Date(n.start),new Date(n.end)),$&&(i+=Z/2),g=(i+=h)+t,e=Math.abs(s-l),T={startDate:k,endDate:S,value:a,yBaseValue:r,yBase:s,x:i,endXPosition:g,y:l>s?s:l,width:t,height:e,totalStackSum:(0,o.defined)(c[A])?c[A]:o.UNDEF,eventArgs:{index:f,dataValue:a}},b={index:f,dataValue:a,start:k,startText:W.format(k),end:S,endText:W.format(S),binUnit:y.Unit,binMultiplier:y.number,plotType:I.type,timeFormatter:X,aggregation:I.aggregation,measure:I.measures[0],binValue:a,binValueFormatted:I.formatterFn&&I.formatterFn({value:a,type:"tooltip",prefix:I.prefix,suffix:I.suffix})},(x=Object.keys(R)[0])&&(b.series=x,b.seriesValue=R[x]),T.eventArgs=b,d=N.getBinIndex(n.start),j[d]=T)}))}(c=I.hoverInfo)&&c.forEach((function(e){e.hoverIndices.forEach((function(t){"object"==typeof j[t]&&"object"==typeof e.style&&(j[t].style=(0,o.extend2)(j[t].style,e.style))}))}))},n._getRelevantInfo=function(){var e=this.config;return{firstTimeStamp:e.firstTimeStamp,timeStampGap:e.timeStampGap,dataInfo:e.dataInfo,fill:e.style.stroke}},n._getHoveredPlot=function(e,t){var n,a,i,r,o=this,l=e,s=t,c=o.getFromEnv("xScale"),u=c.getRange(),d=o.getLinkedParent(),f=o.config,h=f.visibility===y,g=[o.getChildren("dataMarker")],p=d.getTranslation(),m=p?p.x:0,v=p?p.y:0;return s-=v,(l-=m)<u[0]||l>u[1]?{component:o}:(r=c.getBinIndex(c.getDomainValue(l)),f.timeStampGap<=1&&-1===r&&(r=0),g.forEach((function(e){!a&&e&&(n=e[0],a=n._checkPointOverMarker(r,l,s,f.availableWidth))})),(i=a)||(i=h?o._checkPointerOverColumn(r,l,s):{}),i.hovered?i.binIndexHovered=i.pointIndex:(i.binIndexHovered=c.getBinIndex(c.getDomainValue(l)),i.pointObj=f.dataInfo[i.binIndexHovered]||c.getBinBounds(r),i.component=o),f.binIndexHovered=i.binIndexHovered,i)},n._getHoveredBin=function(){return this.config.binIndexHovered},n._getTooltext=function(e,t,n){var a,i,r,l,s,c,d,f,h,g=this,p=g.config,m=g.getFromEnv("dataSource"),y=g._linkedParent.getChildren("dataset"),b=m.tooltip?m.tooltip.tooltext:null,x=p.scaleX.formatters,k=p.scaleX._timeFormat,S=g.getName(),_=function(e){switch(e){case"line":case"smooth-line":case"step-line":return"line";case"area":case"smooth-area":case"step-area":case"area-range":return"area"}}(p.type),C=g.getFromEnv("tooltipStyle").body,w=g.getFromEnv("tooltipStyle").container["line-height"]||1,D=1===w?C["font-size"]:w,E=p.dataInfo,T=E[n],M=e?t?1:.5:1,I="continuous"===S?"line"===_?p.plotStyle.stroke:p.plotStyle.fill:p.style.fill;if(v=(null==m||null==(a=m.chart)?void 0:a.nonce)||"",g._isInvalidTooltext(T))return"";if(T.tooltipValue||(h=(0,u["default"])(T.yBaseValue)?T.value-T.yBaseValue:T.value,T.tooltipValue=(0,u["default"])(h)?p.formatterFn({value:h,type:"tooltip",prefix:p.prefix,suffix:p.suffix}):""),b)l=m.yaxis.length>1?{series:m.yaxis.map((function(e){return{name:e.plot[0].value}}))}:{series:m.yaxis[0].plot.map((function(e){return{name:e.value}}))},s={series:y.map((function(e){var t,a,i;m.xaxis[0].outputtimeformat?(a=k.minor?k.minor:k.major,d=x[a].major.format(E[n].startDate),f=x[a].major.format(E[n].endDate)):(c=p.timeFormatterFn({type:"tooltip",dateRange:e.config.dataInfo[n]}),d=c.split("-")[0],f=c.split("-")[1]),t=e.config.dataInfo[n].eventArgs;var r=this.getAmanName("tooltip-aman");return i='\n <style nonce="'+v+'">\n .'+r+" {\n height: 10px;\n width: 10px;\n background-color: "+e.config.style.fill+';\n }\n </style>\n <div class="'+r+'"></div>',{color:e.config.style?e.config.style.fill:o.UNDEF,plotIdentifier:i,value:e.config.dataInfo[n].eventArgs.binValue,bin:c,binStart:d,binEnd:f,dataValue:e.config.dataInfo[n].eventArgs.binValueFormatted,volumeValue:E[n].eventArgs.binValue,volumeDataValue:E[n].eventArgs.binValueFormatted,openValue:t.binOpen,openDataValue:t.binOpenFormatted,highValue:t.binHigh,highDataValue:t.binHighFormatted,lowValue:t.binLow,lowDataValue:t.binLowFormatted,closeValue:t.binClose,closeDataValue:t.binCloseFormatted}}))},r=[154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171],i="<div>"+(b=(0,o.parseTooltext)(b,r,l,s))+"</div>";else{var F=this.getClassName("tool-text-element"),L=this.getClassName("color-box-len"),O=this.getClassName("tooltip-shape-fill"),P=this.getClassName("config-series"),A=this.getClassName("tooltip-value");i='\n <style nonce="'+v+'">\n .'+F+" {\n margin-top: 6px;\n overflow: hidden;\n opacity: "+M+";\n }\n\n ."+L+" {\n float:left; \n height: "+D+"; \n width: "+D+"; \n position:relative;\n margin-right: 2px;\n }\n\n ."+O+" {\n display:block;\n height:64%;\n width:64%;\n position:absolute;\n top:50%;\n transform:translateY(-50%);\n background-color:"+I+";\n }\n\n ."+P+" {\n float: left;\n }\n\n ."+A+' {\n float: right;\n }\n </style>\n <div class="'+F+'">\n <span class="'+L+'">\n <span class="'+O+'"></span>\n </span>\n <div class="'+P+'">'+(0,o.parseUnsafeString)(p.series)+' </div>\n <div class="'+A+'"> '+(T.tooltipValue||"")+"</div>\n </div>"}return i},n._isInvalidTooltext=function(e){var t=this.config;if(!e||e.endDate<t.actualStartDomain||e.startDate>t.actualEndDomain)return!0},n._getDateForToolText=function(e){var t,n=this.config,a="",i=n.dataInfo[e];if(this._isInvalidTooltext(i))return{body:"",header:""};i.tooltextTime||(i.tooltextTime=n.timeFormatterFn({type:"tooltip",dateRange:i}));var r=i.eventArgs&&i.eventArgs.dataValue&&i.totalStackSum,o=this.getClassName("tooltext-time"),l=this.getClassName("tooltip-stack");return r&&i.eventArgs.dataValue!==i.totalStackSum&&(i.totalStackSum=i.eventArgs.dataValue),!i.totalStackSumTooltip&&(0,u["default"])(i.totalStackSum)&&(i.totalStackSumTooltip=n.formatterFn({value:i.totalStackSum,type:"tooltip",prefix:n.prefix,suffix:n.suffix})),t='\n <style nonce="'+v+'">\n .'+o+' {\n margin-bottom: 8px;\n }\n </style>\n <div class="'+o+'">'+i.tooltextTime+"</div>",i.totalStackSumTooltip&&(a='\n <style nonce="'+v+'">\n .'+l+' {\n margin-bottom: 2px;\n }\n </style>\n <div class="'+l+'">Total: '+i.totalStackSumTooltip+"</div>"),{header:t,body:a}},n._checkPointerOverColumn=function(e,t,n){var a,i,r,l,s,c,u,d=this,f=d.config,h=f.plotBorderThickness;return(a=f.dataInfo[e])?(s=a.height<S?S:a.height,l=a.width<S?S:a.width,u=a.height<S?a.y-(S-a.height):a.y,h!==o.UNDEF?c=h/2:h=c=0,r=n-u+c,{pointIndex:e,hovered:(i=t-a.x+c)>=0&&i<=l+h&&r>=0&&r<=s+h,pointObj:a,component:d}):{pointIndex:e,hovered:!1,component:d}},n._firePlotEvent=function(e,t,n){var a,i,r=this.config.dataInfo,l=r[t]&&r[t].eventArgs||{},s=this.getFromEnv("chart"),c=(0,o.getMouseCoordinate)(s.getFromEnv("chart-container"),n,s),u=function(e){var t,n=!0;for(t in e)e.hasOwnProperty(t)&&(n=n&&!isNaN(e[t]));return n}(c),d=(0,o.extend2)(c,l);if(t!==o.UNDEF&&u)switch(e){case"fc-mouseover":s.fireChartInstanceEvent("DataPlotRollOver",d,o.UNDEF,o.UNDEF,(function(e,t){n.FusionChartsPreventEvent=!0}));break;case"fc-mouseout":s.fireChartInstanceEvent("DataPlotRollOut",d);break;case"fc-click":case"touchend":case"mouseup":s.fireChartInstanceEvent("DataPlotClick",d),i=(a=s.getFromEnv())&&a.linkClickFN,d.link&&i&&i.call({link:d.link},!0)}},n.setHoverInEffect=function(e,t){var n,a=this,i=a.getFromEnv("chart"),r=a.config.dataInfo;a.getFromEnv("animationManager").setAnimationState("mouseOver"),t||e.forEach((function(e){r[e]&&(n=r[e].eventArgs,i.fireChartInstanceEvent("DataPlotHighlight",n))})),this.setData(t?this.getHoverInConfig(e):this.getHighlightConfig(e),!0)},n.setHoverOutEffect=function(e){this.getFromEnv("animationManager").setAnimationState("mouseOut"),this.setData(this.getHoverOutConfig(e),!0)},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach((function(t,a){t.yBase<=e.minValue&&t.y>=e.maxValue&&n.push(a)})),n},n.show=function(){this.setData({visibility:"visible"},!0)},n.hide=function(){this.setData({visibility:"hidden"},!0)},n.isPlotPredictive=function(e){return e.startDate>=this.config.prediction.dateMs},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e,t,n={},a=this.config;a.prediction.enabled&&(e=a.prediction.style.plot,t=a.prediction.style.column,Object.assign(n,a.defaultPredictedDataStyle),Object.assign(n,e),Object.assign(n,t)),n.predictiveOpacity=n.opacity,n.predictiveFillOpacity=n["fill-opacity"],n.predictiveStrokeOpacity=n["stroke-opacity"],delete n.opacity,delete n["fill-opacity"],delete n["stroke-opacity"],a.predictiveStyleAttributes=n||{}},t}(d["default"]);t["default"]=_},928:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n=function(e,t){var n=e.getFromEnv("yScale"),a=e.getFromEnv("xScale"),i=n.getDomain(),r=a.getDomain(),o=a.getRangeValue(r[0]),l=n.getRangeValue(i[0]),s=n.getRangeValue(i[1]),c=l-s,u=c<0?l:s,d="init"===t?0:Math.abs(a.getRangeValue(r[1])-o),f=Math.abs(c);return"M"+o+","+u+"L"+(o+d)+","+u+"L"+(o+d)+","+(u+f)+"L"+o+","+(u+f)+"Z"},a={"initial.dataset.continuous":function(){var e=this;return{"group.appearing":function(){return[{initialAttr:{"clip-path":n(e,"init")},finalAttr:{"clip-path":n(e,"canvas")},slot:"middle"}]},"*":null}}};t["default"]=a},907:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(273)),r=a(n(288)),o=a(n(845)),l=n(274),s=a(n(908)),c=n(282),u=n(278),d=a(n(856)),f=a(n(914)),h=a(n(917)),g=a(n(918)),p=a(n(916)),m=a(n(919)),v=a(n(350)),y=a(n(920)),b=a(n(928));function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=.0625,_="none",C="9194CC",w=function(e,t){return(e+t)/2},D=function(e,t){return Object.assign(e,t)},E=function(e){return void 0===e&&(e=""),""===e?"M0,0":e},T=function(e){var t=e.x,n=e.y,a=e.width;return{y:n,height:e.height,x:t-S,width:a+.125}},M=function(e,t){return e+"M"+t.x+","+t.y+"L"+(t.x+t.width+2)+","+t.y+"L"+(t.x+t.width+2)+","+(t.y+t.height+2)+"L"+t.x+","+(t.y+t.height+2)+"Z"},I="area",F=function(e,t,n,a,i){var r,o;return e?(r=n-e.x,o=a-e.y,{pointIndex:t,hovered:Math.sqrt(Math.pow(r,2)+Math.pow(o,2))<=5,pointObj:e,component:i}):{pointIndex:t,hovered:!1,component:i}};function L(e){return"area"===e||"smooth-area"===e||"step-area"===e}function O(e){return"line"===e||"smooth-line"===e||"step-line"===e}(0,c.addDep)({name:"continuousAnimation",type:"animationRule",extension:b["default"]});var P=function(e){function t(){var t;return(t=e.call(this)||this).getHoverInConfig=function(e,t,n){return void 0===n&&(n=!1),{hoverIndices:e,hovered:!0,radius:t?5.5:3.5,isDsHovered:t,isOtherDsHovered:n}},t.getHoverOutConfig=function(e){return{hoverIndices:e,hovered:!1}},t}(0,r["default"])(t,e);var n=t.prototype;return n.getName=function(){return"continuous"},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach((function(t,a){t.y<=e.minValue&&t.y>=e.maxValue&&n.push(a)})),n},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-stroke"]=C,t["default-fill"]=C,t["default-anchor-stroke"]=(0,u.convertColor)("#ffffff"),t.type="line",t.plotStyle={},t.nullPlotStyle={},t.linePlotStyle={},t.nullLinePlotStyle={},t.areaPlotStyle={},t.nullAreaPlotStyle={},t.anchorStyle={},t.anchorHoverInStyle={},t.anchorHoverOutStyle={},t.anchorHighlightObj={},t.defaultLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":"none",fill:"none"},t.defaultNullLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":[10,5],fill:"none"},t.defaultLinePredictiveStyle={"stroke-opacity":1,"stroke-width":1,"stroke-dasharray":5,fill:"none"},t.defaultAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.6},t.defaultNullAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.3},t.defaultAreaPredictiveStyle={"stroke-opacity":1,opacity:.5},t.defaultAnchorStyle={"fill-opacity":1,"stroke-width":1},t.willInjectNulls=!0},n.configureAttributes=function(e){var t=this,n=this.config,a=this.getId(),i=this.getFromEnv("getStyleDef"),r=!0;if(e.hasOwnProperty("hoverIndices"))e.hovered?(n.mode="show",n.sharedAnchorIndices=e.hoverIndices):(n.mode="hide",n.hideIndices=n.lastShownIndices),n.radius=e.radius,n.isDsHovered=e.isDsHovered,n.isOtherDsHovered=e.isOtherDsHovered,n.hoverMode=!0;else{Object.entries(e).forEach((function(a){var r=a[0],o=a[1];if("primaryColor"===r){t.parsePrediction(e);var s=o,c=e.plotCosmetics,d=e.genericCosmetics,f=e.styleConfig,h=e.type,g=n.plotStyle,p=n.style,m=n.predictiveStyleAttributes,v=n.nullPlotStyle,y=n.linePlotStyle,b=n.predictiveStyleAttributesLine,x=n.predictiveStyleAttributesArea,k=n.nullLinePlotStyle,S=n.areaPlotStyle,C=n.nullAreaPlotStyle,w=n.anchorStyle,E=n.anchorHoverInStyle,T=n.anchorHighlightObj,M=i(d.style&&d.style.plot),I=i(d.style&&d.style["plot.null"]),F=i(d.style&&d.style["plot:hover"]),O=i(d.style&&d.style["plot:highlight"]),P=i(d.style&&d.style.line),A=i(d.style&&d.style["line.null"]),B=i(d.style&&d.style.area),N=i(d.style&&d.style["area.null"]),H=i(d.style&&d.style.anchor),j=i(d.style&&d.style["anchor:hover"]),R=i(d.style&&d.style["anchor:highlight"]),V=i(c.style&&c.style.plot),G=i(c.style&&c.style["plot.null"]),Y=i(c.style&&c.style["plot.predictive"]),U=i(c.style&&c.style["plot:hover"]),z=i(c.style&&c.style["plot:highlight"]),X=i(c.style&&c.style.line),W=i(c.style&&c.style["line.null"]),q=i(c.style&&c.style["line.predictive"]),Z=i(c.style&&c.style.area),$=i(c.style&&c.style["area.null"]),K=i(c.style&&c.style["area.predictive"]),Q=i(c.style&&c.style.anchor),J=i(c.style&&c.style["anchor:hover"]),ee=i(c.style&&c.style["anchor:highlight"]),te=i(f.plot),ne=i(f["plot.null"]),ae=i(f["plot.predictive"]),ie=i(f["plot:hover"]),re=i(f["plot:highlight"]),oe=i(f.line),le=i(f["line.null"]),se=i(f["line.predictive"]),ce=i(f.area),ue=i(f["area.null"]),de=i(f["area.predictive"]),fe=i(f.anchor),he=i(f["anchor:hover"]),ge=i(f["anchor:highlight"]);n.defaultLineStyle["stroke-linecap"]="round",n.defaultNullLineStyle["stroke-linecap"]=L(h)?"butt":"round",n.defaultLinePredictiveStyle["stroke-linecap"]=L(h)?"butt":"round",[y,n.defaultLineStyle,M,P,te,V,X,oe].reduce(D),[k,n.defaultNullLineStyle,I,A,ne,G,W,le].reduce(D),[b,ae,Y,q,se].reduce(D),[S,n.defaultAreaStyle,M,B,te,V,Z,ce].reduce(D),[C,n.defaultNullAreaStyle,I,N,ne,G,$,ue].reduce(D),[x,ae,Y,K,de].reduce(D),[w,n.defaultAnchorStyle,M,H,te,V,Q,fe].reduce(D),g.fill=S.fill=(0,u.convertColor)((0,l.pluck)(s,n["default-fill"]),100*S["fill-opacity"]),p.fill=(0,u.convertColor)((0,l.pluck)(s,n["default-stroke"]),100*p["fill-opacity"]),v.fill=C.fill=(0,u.convertColor)((0,l.pluck)(C.fill,s,n["default-fill"]),100*C["fill-opacity"]),m.fill=x.fill=(0,u.convertColor)((0,l.pluck)(x.fill,s,n["default-fill"]),100*x["fill-opacity"]),y.fill=_,k.fill=_,b.fill=_,p.stroke=(0,u.convertColor)((0,l.pluck)(s,n["default-stroke"]),100*p["stroke-opacity"]),S.stroke=(0,u.convertColor)((0,l.pluck)(s,n["default-stroke"]),100*S["stroke-opacity"]),C.stroke=(0,u.convertColor)((0,l.pluck)(C.stroke,s,n["default-stroke"]),100*C["stroke-opacity"]),x.stroke=(0,u.convertColor)((0,l.pluck)(x.stroke,s,n["default-stroke"]),100*x["stroke-opacity"]),y.stroke=(0,u.convertColor)((0,l.pluck)(s,n["default-stroke"]),100*y["stroke-opacity"]),k.stroke=(0,u.convertColor)((0,l.pluck)(k.stroke,s,n["default-stroke"]),100*k["stroke-opacity"]),b.stroke=(0,u.convertColor)((0,l.pluck)(b.stroke,s,n["default-stroke"]),100*b["stroke-opacity"]),g.stroke=L(h)?S.stroke:y.stroke,v.stroke=L(h)?C.stroke:k.stroke,m.stroke=L(h)?x.stroke:b.stroke,w.fill=(0,u.convertColor)((0,l.pluck)(s,n["default-stroke"])),w.stroke=n["default-anchor-stroke"],[E,w,F,j,U,ie,J,he].reduce(D),[T,w,O,R,z,re,ee,ge].reduce(D),Object.keys(Object.assign(Object.assign({},E),T)).forEach((function(e){n.anchorHoverOutStyle[e]=w[e]||""})),Object.keys(T).length||(T=n.anchorHighlightObj=(0,l.extend2)({},n.anchorHoverOutStyle)),n.connectNullData=(0,l.pluckNumber)(n.connectNullData,c.connectnulldata,d.connectnulldata,0),delete S["fill-opacity"],delete C["fill-opacity"],delete S["stroke-opacity"],delete C["stroke-opacity"],delete y["stroke-opacity"],delete k["stroke-opacity"],delete n.predictiveStyleAttributesArea["fill-opacity"],delete n.predictiveStyleAttributesArea["stroke-opacity"],delete n.predictiveStyleAttributesLine["stroke-opacity"]}else n[r]=o})),n.useNullStyles||(n.nullAreaPlotStyle=Object.assign({},n.areaPlotStyle),n.nullLinePlotStyle=Object.assign({},n.linePlotStyle)),r=(0,o["default"])(n.areaPlotStyle,n.nullAreaPlotStyle)&&(0,o["default"])(n.linePlotStyle,n.nullLinePlotStyle),n.connectNullData&&r?n.willInjectNulls=!1:n.willInjectNulls=!0;var s=this.getFromEnv("chart");n.limit=this._calculateLimits(),s.setYScaleLimit(n.scaleY.getId(),a,n.limit.y,n.limit.baseRequired),s.setXScaleLimit(n.scaleX.getId(),a,n.limit.x)}},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e={},t=this.config;t.predictiveStyleAttributesLine={},t.predictiveStyleAttributesArea={},t.prediction.enabled&&(Object.assign(e,t.prediction.style.plot),Object.assign(t.predictiveStyleAttributesLine,t.defaultLinePredictiveStyle,t.prediction.style.plot,t.prediction.style.line),Object.assign(t.predictiveStyleAttributesArea,t.defaultAreaPredictiveStyle,t.prediction.style.plot,t.prediction.style.area)),t.predictiveStyleAttributes=e},n.getPadding=function(){var e,t,n=this,a=n.getLinkedParent().config,i=n.config;return e=n.getValueFromPx(5.5),t=a.enableMarkers?n.getValueFromPx(i.dataMarkerPadding):0,Math.ceil(Math.max(e,t))},n._getRelevantInfo=function(){var e=this.config;return{firstTimeStamp:e.firstTimeStamp,timeStampGap:e.timeStampGap,dataInfo:e.dataInfo,fill:e.plotStyle.stroke}},n.allocatePosition=function(){var e,t,n,a,i,r,o,c,u,y,b,x,k,S,_,C,D,F,O,P=this,A=P.config,B=A.indices,N=B[0],H=B[1],j=B[2],R=B[3],V=A.seriesInfo,G=P.getFromEnv("dateColumn"),Y=P.getFromEnv("UTC"),U=A.type,z=A.data,X=A.dataInfo,W=[],q=P.getFromEnv("binDecider"),Z=P.getFromEnv("xScale"),$=P.getFromEnv("yScale"),K=q.getRangeThreshold()[2],Q=Number.parseFloat(A.nullLinePlotStyle["stroke-width"]),J=Number.parseFloat(A.predictiveStyleAttributesLine["stroke-width"]),ee=Number.parseFloat(A.linePlotStyle["stroke-width"]),te=z.length,ne=Z.getDomain(),ae=ne[0],ie=ne[1],re=Z.bins,oe=G.format,le=Y?v["default"].utcFormatter(oe):v["default"].formatter(oe),se=Z.showPlotOverTick();if(A.firstTimeStamp=z&&z[0]&&z[0][N]&&z[0][N].start,A.repositioningDone=P._isRepositioningNeeded()){if("visible"!==A.visibility)return;for(X=A.dataInfo=[],A.timeStampGap=K,A.availableWidth=0,S=0,_=re.length;S<_;S++)if(2!==re[S].clipType){A.availableWidth=Z.getRangeValue(re[S].end)-Z.getRangeValue(re[S].start);break}k=+Z.getDomainValue(5.5)-+Z.getDomainValue(0),A.actualStartDomain=+ae-k,A.actualEndDomain=+ie+k,z.forEach((function(t,s,f){if(C=t[N],c=t[H],D=C.config.duration,n=C.start,a=C.end,!Y){var h=new Date(n);new Date(h.getFullYear(),0).getTimezoneOffset(),new Date(h.getFullYear(),6).getTimezoneOffset()}if(i=w(n,a),r=f[s+1],x=t[j],Math.abs(x)>Math.abs(c)&&(c=t[j],x=t[H]),y=$.getRangeValue(x||Math.max($.getDomain()[0],0)),b=$.getRangeValue(c),s||(A.firstTimeStamp=n),U!==I||(0,d["default"])(y))if((0,d["default"])(c)&&(0,d["default"])(b))if(u=Z.getBinIndex(n),e={startDate:n,endDate:a,timeInstant:se?n:i,value:c,paddingInTimestamp:k,yBaseValue:U===I?x:l.UNDEF,x:Z.getRangeValue(new Date(n),new Date(a)),endXPosition:Z.getRangeValue(new Date(n),new Date(a)),totalStackSum:(0,l.defined)(t[R])?t[R]:l.UNDEF,y:b,base:y},F={index:s,dataValue:c,start:n,startText:le.format(n),end:a,endText:le.format(a),binUnit:D.Unit,binMultiplier:D.number,plotType:A.type,timeFormatter:oe,aggregation:A.aggregation,measure:A.measures[0],binValue:c,binValueFormatted:A.formatterFn&&A.formatterFn({value:c,type:"tooltip",prefix:A.prefix,suffix:A.suffix})},(O=Object.keys(V)[0])&&(F.series=O,F.seriesValue=V[O]),e.eventArgs=F,X[u]=e,r){var g=Z.getBinIndex(r[N].start);W.push(e),o=w(r[N].start,r[N].end),A.willInjectNulls&&o-i-(Z.clips[g]-Z.clips[u])>1.5*K&&W.push(null)}else te-s==1&&W.push(e);else A.willInjectNulls&&W.push(null)})),t=new s["default"](function(e){switch(e){case"area":case"smooth-area":case"step-area":return f["default"];default:return h["default"]}}(U)).setConnectUndefineds(A.connectNullData).setChunks({def:{clipAdjustment:ee},undef:{clipAdjustment:Q},predictive:{clipAdjustment:J}}).setCurve(function(e){switch(e){case"smooth-line":case"smooth-area":return m["default"];case"step-area":case"step-line":return g["default"];default:return p["default"]}}(U)).setDefined((function(e){return!!e})).setChunkDecider((function(e){return e.startDate>=A.prediction.dateMs?"predictive":"def"})).setXAccessor((function(e){return e.x})).setYAccessor((function(e){return e.y})),L(U)&&t.setYBaseAccessor((function(e){return e.base})),A.chunks=t.generate(W),A.path=E(A.chunks.def.path),A.clipPath=E(A.chunks.def.clipRects.map(T).reduce(M,"")),A.nullPath=E(A.chunks.undef.path),A.nullClipPath=E(A.chunks.undef.clipRects.map(T).reduce(M,"")),A.predictivePath=E(A.chunks.predictive.path),A.predictiveClipPath=E(A.chunks.predictive.clipRects.map(T).reduce(M,"")),L(U)&&(A.topChunks=t.getLineChunkerYTop().generate(W),A.topPath=E(A.topChunks.def.path),A.topClipPath=E(A.topChunks.def.clipRects.map(T).reduce(M,"")),A.topNullPath=E(A.topChunks.undef.path),A.topNullClipPath=E(A.topChunks.undef.clipRects.map(T).reduce(M,"")),A.topPredictivePath=E(A.topChunks.predictive.path),A.topPredictiveClipPath=E(A.topChunks.predictive.clipRects.map(T).reduce(M,"")))}},n._isInvalidTooltext=function(e){var t=this.config;if(!e||e.timeInstant<t.actualStartDomain||e.timeInstant>t.actualEndDomain)return!0},n._drawPlot=function(){var e,t=this,n=t.config,a=k(k({},n.linePlotStyle),{},{fill:"none"}),i=n.areaPlotStyle,r=k(k({},n.nullLinePlotStyle),{},{fill:"none"}),o=n.nullAreaPlotStyle,s=k(k({},n.predictiveStyleAttributesLine),{},{fill:"none"}),c=n.predictiveStyleAttributesArea,u=n.dataInfo;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-line",attr:{name:"line-common-meso",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"thermo",label:"group"},component:t,label:"group",id:"thermo-line",attr:{name:"line-common-thermo",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"meso-line",label:"group"},component:t,label:"group",id:"meso-plot",attr:{name:"line-plot-meso",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-plot",attr:{name:"line-plot-thermo",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-anchor",attr:{name:"line-anchor-thermo",visibility:n.visibility}},!0),n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.nullPath,"clip-path":n.nullClipPath},O(n.type)?r:o),label:"path",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.path,"clip-path":n.clipPath},O(n.type)?a:i),label:"path",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.predictivePath,"clip-path":n.predictiveClipPath},O(n.type)?s:c),label:"path",component:t},!0),n.topPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topNullPath,"clip-path":n.topNullClipPath},r),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topPath,"clip-path":n.topClipPath},a),label:"topPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.topPredictivePath,"clip-path":n.topPredictiveClipPath},s),label:"path",component:t},!0)),"show"===n.mode?n.sharedAnchorIndices&&n.sharedAnchorIndices.length&&n.sharedAnchorIndices.forEach((function(a){e=u[a],n.lastShownIndices=n.sharedAnchorIndices,e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,l.polyPathToPath)([2,e.x,e.y,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+a,label:n.dsType+"-anchor"})})):n.hideIndices&&n.hideIndices.length&&n.hideIndices.forEach((function(a){(e=u[a])&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-anchor"},attr:{visibility:"hidden"},id:"shared-anchor-"+a,label:n.dsType+"-anchor"})}))},n.setHoverInEffect=function(e,t,n){var a,i=this,r=i.getFromEnv("chart"),o=i.config.dataInfo;i.getFromEnv("animationManager").setAnimationState("mouseOver"),t||e.forEach((function(e){o[e]&&(a=o[e].eventArgs,r.fireChartInstanceEvent("DataPlotHighlight",a))})),this.setData(this.getHoverInConfig(e,t,n),!0)},n._getHoveredPlot=function(e,t){var n,a,i,r,o,l,s=this,c=e,u=t,d=s.getFromEnv("xScale"),f=d.getRange(),h=[s.getChildren("dataMarker")],g=s.config,p="visible"===g.visibility,m=g.dataInfo,v=m.length,y=s.getLinkedParent().getTranslation(),b=y.x,x=y.y;if(u-=x,(c-=b)<f[0]||c>f[1])return{component:s};if(l=d.getBinIndex(d.getDomainValue(c)),a=Math.floor(Math.max(l,0)),i=Math.ceil(Math.min(l,v-1)),h.forEach((function(e){var t=e;!r&&t&&(t=t[0])&&(r=t._checkPointOverMarker(l,c,u,g.availableWidth))})),!r)for(o=i;o>=a&&(n=m[o],!(r=p?F(n,o,c,u,s):{}).hovered);o--);return!r&&(r={}),r.hovered?r.binIndexHovered=r.pointIndex:(r.binIndexHovered=d.getBinIndex(d.getDomainValue(c)),r.pointObj=g.dataInfo[r.binIndexHovered]||d.getBinBounds(l),r.component=s),g.binIndexHovered=r.binIndexHovered,r},t}(y["default"]);t["default"]=P},932:(e,t)=>{function n(e,t){var n,a,i,r,o,l,s=/M(.*)V(.*)/g;return t&&(s=/M(.*)H(.*)/g),a=(n=s.exec(e))[1],t&&(l=n[2])||(i=n[2]),r=parseFloat(a.split(",")[0]),o=parseFloat(a.split(",")[1]),i=parseFloat(i),l=parseFloat(l),t?{MX:r,MY:o,HX:l}:{MX:r,MY:o,VY:i}}t.__esModule=!0,t["default"]=void 0;var a={"initial.dataset.timeseries-ohlc":function(){var e=this.getFromEnv("yScale").getRangeValue(0),t=-1,a=null,i=function(e,n){if(e===t)return a;var i=function(e){return{start:2e-5*e,end:1}}(e);return t=e,a=i,i};return{"highlow.appearing":function(t){var a=n(t.attr.path),r=t.props.index;t.props.dataLength;return[{initialAttr:{path:"M"+a.MX+","+e+"V"+(a.VY+(e-a.MY))},startEnd:i(r),effect:"easeInOutQuart"}]},"open.appearing":function(t){var a=n(t.attr.path,!0),r=t.props.index;t.props.dataLength;return[{initialAttr:{path:"M"+a.MX+","+e+"H"+a.HX},startEnd:i(r),effect:"easeInOutQuart"}]},"close.appearing":function(t){var a=n(t.attr.path,!0),r=t.props.index;t.props.dataLength;return[{initialAttr:{path:"M"+a.MX+","+e+"H"+a.HX},startEnd:i(r),effect:"easeInOutQuart"}]}}}};t["default"]=a},931:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(288)),o=a(n(929)),l=a(n(856)),s=n(274),c=n(282),u=a(n(932)),d=a(n(539)),f=a(n(538)),h=a(n(350));(0,c.addDep)({name:"ohlcAnimation",type:"animationRule",extension:u["default"]});var g=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var t=this.config;e.prototype.__setDefaultConfig.call(this),t.defaultBearStyle.stroke="868AC8",t.defaultBearPredictiveStyle={},t.defaultBullPredictiveStyle={}},n._getRelevantInfo=function(e){var t=this.config;return{firstTimeStamp:t.firstTimeStamp,timeStampGap:t.timeStampGap,dataInfo:t.dataInfo,fill:e!==i&&"bull"===t.dataInfo[e].groupId?t.bullStyle.stroke:t.bearStyle.stroke}},n._drawPlot=function(){var e,t,n=this,a=n.config,r=a.dataInfo,o=(0,s.defined)(a.bullOpacity),l=(0,s.defined)(a["bull-fill-opacity"]),c=(0,s.defined)(a["bull-stroke-opacity"]),u=a.predictiveStyleAttributesBull,d=(0,s.defined)(u.opacity),f=(0,s.defined)(u["fill-opacity"]),h=(0,s.defined)(u["stroke-opacity"]),g=(0,s.defined)(a.bearOpacity),p=(0,s.defined)(a["bear-fill-opacity"]),m=(0,s.defined)(a["bear-stroke-opacity"]),v=a.predictiveStyleAttributesBear,y=(0,s.defined)(v.opacity),b=(0,s.defined)(v["fill-opacity"]),x=(0,s.defined)(v["stroke-opacity"]),k={},S={},_="",C=!1;o&&(k.opacity=a.bullOpacity),l&&(k.opacity=a["bull-fill-opacity"]),c&&(k.opacity=a["bull-stroke-opacity"]),g&&(S.opacity=a.bearOpacity),p&&(S.opacity=a["bear-fill-opacity"]),m&&(S.opacity=a["bear-stroke-opacity"]),r.forEach((function(a,o){var l,s;a.groupConfig&&(C=n.isPlotPredictive(a),_=C?a.groupId+"-predictive":a.groupId,C&&(l=S,s=k,y&&(l.opacity=v.opacity),b&&(l.opacity=v["fill-opacity"]),x&&(l.opacity=v["stroke-opacity"]),d&&(s.opacity=u.opacity),f&&(s.opacity=u["fill-opacity"]),h&&(s.opacity=u["stroke-opacity"])),t="bull"===a.groupId?k:S,!!a.lowStickYEntend+!!a.highStickYExtend+!!a.open+!!a.close>1?"bull"===a.groupId?(e=Object.assign({path:"M"+a.midX+","+(a.highStickYExtend||a.open||a.close)+",V"+(a.lowStickYEntend||a.close||a.open),"stroke-linecap":"round"},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+_},props:{index:o,dataLength:r.length},label:"highlow",attr:e},!0)):(e=Object.assign({path:"M"+a.midX+","+(a.highStickYExtend||a.close)+",V"+(a.lowStickYEntend||a.open),"stroke-linecap":"round"},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+_},props:{index:o,dataLength:r.length},label:"highlow",attr:e},!0)):(a.lowStickYEntend||a.highStickYExtend)&&(e=Object.assign({path:"M"+a.midX+","+(a.lowStickYEntend||a.highStickYExtend)+",V"+(a.lowStickYEntend||a.highStickYExtend),"stroke-linecap":"round"},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+a.groupId},props:{index:o,dataLength:r.length},label:"highlow",attr:e},!0)),a.open&&(e=Object.assign({path:"M"+a.midX+","+a.open+",H"+a.leftExtend},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+_},props:{index:o,dataLength:r.length},label:"open",attr:e},!0)),a.close&&(e=Object.assign({path:"M"+a.midX+","+a.close+",H"+a.rightExtend},t),a.style&&Object.assign(e,a.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+_},props:{index:o,dataLength:r.length},label:"close",attr:e},!0),a.style=i))})),a.hoverInfo=[]},n.allocatePosition=function(){var e,t,n,a,i,r,o,c,u,g,p,m,v,y,b,x,k,S,_,C,w,D,E,T,M,I=this,F=I.getFromEnv("binDecider"),L=I.getFromEnv("xScale"),O=I.getFromEnv("yScale"),P=I.config,A=P.indices,B=A[0],N=A[1],H=A[2],j=A[3],R=A[4],V=P.dataInfo,G=I.getFromEnv("dateColumn"),Y=I.getFromEnv("UTC"),U=L.bins,z=P.data,X=G.format,W=P.measures[0],q=Y?h["default"].utcFormatter(X):h["default"].formatter(X);if(P.repositioningDone=I._isRepositioningNeeded()){for(P.timeStampGap=F.getRangeThreshold()[2],P.availableWidth=y=0,_=0,C=U.length;_<C;_++)if(2!==U[_].clipType){P.availableWidth=y=L.getRangeValue(U[_].end)-L.getRangeValue(U[_].start);break}e=y*(1-P.plotSpacePercent/100),V=P.dataInfo=[],z.forEach((function(h,p){if(t=h[B],n=L.getRangeValue(new Date(t.start),new Date(t.end)),a=h[N],i=h[R],r=h[H],o=h[j],w=t.config.duration,k=t.start,S=t.end,p||(P.firstTimeStamp=t.start),b=O.getRangeValue(i),x=O.getRangeValue(a),v=O.getRangeValue(r),m=O.getRangeValue(o),(0,l["default"])(x)||(0,l["default"])(b)||(0,l["default"])(v)||(0,l["default"])(m)){(0,l["default"])(x)&&(0,l["default"])(b)&&(g=a>i?"bear":"bull"),(u={startDate:k,endDate:S}).rightExtend=n+e/2,u.leftExtend=u.x=n-e/2,u.endXPosition=u.x+e,u.y=(0,d["default"])([v,x,b,m]),u.closeValuePx=O.getRangeValue(i),u.width=e,u.close=b,u.openValue=a,u.closeValue=i,u.highValue=r,u.lowValue=o,u.value=i,u.open=x,u.midX=n,u.groupId=g||"bull",u.lowStickYEntend=m,u.highStickYExtend=v,D=P.formatterFn({value:a,type:"tooltip",prefix:P.prefix,suffix:P.suffix}),M=P.formatterFn({value:i,type:"tooltip",prefix:P.prefix,suffix:P.suffix}),E=P.formatterFn({value:r,type:"tooltip",prefix:P.prefix,suffix:P.suffix}),T=P.formatterFn({value:o,type:"tooltip",prefix:P.prefix,suffix:P.suffix}),u.eventArgs={index:p,start:k,startText:q.format(k),end:S,endText:q.format(S),binUnit:w.Unit,binMultiplier:w.number,plotType:P.type,timeFormatter:X,aggregation:P.aggregation,measure:W.close,measureHigh:W.high,measureLow:W.low,measureOpen:W.open,measuresClose:W.close,binValue:i,binOpen:a,binHigh:r,binLow:o,binClose:i,binValueFomatted:M,binOpenFormatted:D,binHighFormatted:E,binCloseFormatted:M,binLowFormatted:T};var y=(0,f["default"])([x,b,v,m]);u.height=Math.abs(y[0]-y[1])||0,u.colY=u.height/2+v-10,u["stroke-width"]=(0,s.pluckNumber)(P["default-stroke-width"],1),u.groupConfig="bull"===g?"bullConfig":"bearConfig",c=L.getBinIndex(t.start),V[c]=u}}))}(p=P.hoverInfo)&&p.forEach((function(e){e.hoverIndices.forEach((function(t){"object"==typeof V[t]&&(V[t].style=e[V[t].groupId+"Style"])}))}))},n.getName=function(){return"timeseries-ohlc"},t}(o["default"]),p=g;t["default"]=p},939:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.isWithinShape=function(e,t,n,a,i,r){var o,l,s,c,u,d;if(!e)return{pointIndex:t,hovered:!1,component:i};return o=e.x,s=e.x,l=e.y,c=e.base,u=Math.sqrt(Math.pow(n-o,2)+Math.pow(a-l,2)),d=Math.sqrt(Math.pow(n-s,2)+Math.pow(a-c,2)),{pointIndex:t,hovered:u<=r||d<r,pointObj:e,component:i}},t.calculateLimits=function(e){var t,n=e.config,a=n.indices,l=n.data,s=n.type,c=n.scaleY,u=n.scaleX,d=n.calculateFromContext,f=/continuous/.test(e.getName()),h=u.showPlotOverTick(),g={},p=l[0],m=l[l.length-1],v="log"===c.getType(),y="visible"===e.config.visibility,b=e.getFromEnv("chart"),x=d?b.getContextLimit():b.getFocusLimit(),k=x[0],S=x[1],_=function(e){return v&&e<=0?null:e};t=e.getPadding(),g.x=h?[p&&p[a[0]].start-t,m&&m[a[0]].start+t]:f?[p&&(p[a[0]].start+p[a[0]].end)/2-t,m&&(m[a[0]].start+m[a[0]].end)/2+t]:[p&&p[a[0]].start-t,m&&m[a[0]].end-t];return g.y=y?[(0,r["default"])(l,(function(e){if(!(e[0].end<k||e[0].start>S))return(0,r["default"])([e[a[1]],e[a[2]],e[a[3]],e[a[4]]],_);return null})),(0,o["default"])(l,(function(e){if(!(e[0].end<k||e[0].start>S))return(0,o["default"])([e[a[1]],e[a[2]],e[a[3]],e[a[4]]],_);return null}))]:i.UNDEF,g.baseRequired=!0,g.type=s,g},t.getTooltext=function(e,t,n,a){var r,o=e.config,c=o.dataInfo[a],u=t?n?1:.5:1,d=s();if(e._isInvalidTooltext(c))return"";r=["high","low"].reduce((function(e,t){var n=l("current-value-overflow"),a=l("-tooltip-current-value"),r=l("tooltip-class-value"),s=c[t+"TooltipValue"]||(c[t+"TooltipValue"]=c[t+"Value"]&&o.formatterFn({value:c[t+"Value"],type:"tooltip",prefix:o.prefix,suffix:o.suffix}));return e+(s!==i.UNDEF?'\n <style nonce="'+d+'">\n .'+n+" {\n overflow: hidden;\n margin-top: 4px;\n }\n\n ."+a+" {\n float: left;\n padding-right: 5px;\n }\n\n ."+r+' {\n float: right;\n padding-right: 5px;\n }\n </style>\n <div class="'+n+'">\n <div class="'+a+'">'+t+'</div>\n <div class="'+r+'">'+s+"</div>\n </div>":"")}),"");var f=l("tooltip-opacity-class");return r='\n <style nonce="'+d+'">\n .'+f+" {\n margin-top:6px;\n overflow: hidden;\n opacity:"+u+';\n }\n </style>\n <div class="'+f+'">\n '+r+"\n </div>"};var i=n(274),r=a(n(539)),o=a(n(540));var l=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},s=function(){var e=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(e){var t=e.getAttribute("content");if(t){var n=t.match(/'nonce-([^']+)'/);if(n)return n[1]}}return null}},945:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.direction="horizontal",this.config.style={},this.config.defaultStyle={stroke:"#EFEFEF","stroke-width":"0",fill:"#EFEFEF","fill-opacity":"1"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a])},n.getBands=function(){var e,t,n,a,i,r,o,l,s,c,u,d=this.getLinkedParent().config,f=[],h=[];for(l=(t=d.yConfigs[0]).scale,n=d.canvasBGLeft,i=l.getRangeValue.bind(l),r=d.canvasBGLeft+d.canvasBGWidth,t.tickarguments&&(h=t.tickarguments),h.push(t.skipinfo||{}),h.push(t.dayinmajor||!1),o=i((s=(e=l).ticks.apply(e,h))[0])-i(s[1]),c=0,u=s.length;c<u;c+=2)a=i(s[c])-o,f.push({x:n,y:a,width:r,height:o});return f},n.draw=function(){var e,t=this,n=t.config,a=t.getLinkedParent().config,i=a.canvasLeft,r=a.canvasTop,l=a.canvasWidth,s=a.canvasHeight,c=["M"+i+","+(r-a.padding.top),"h"+l,"v"+s,"h"+-l,"Z"];n.style=t.getFromEnv("getStyleDef")(n.style),(e=(0,o.extend2)((0,o.extend2)({},n.defaultStyle),n.style))["stroke-width"]=0,t.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:t,label:"gridBand",attr:{name:"grid-band-group","clip-path":c},id:"gridBand"}),t.getBands().forEach((function(n,a){n.opacity=e.opacity,t.addGraphicalElement({el:"rect",attr:n,css:e,container:{label:"gridBand"},id:"grid-band-"+a,component:t,label:"band"})}))},t}(r.SmartRenderer),s=l;t["default"]=s},895:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=n(274),l="vertical",s=/\S/,c="stroke-dasharray",u=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.direction="horizontal",this.config.showgridlines=1,this.config.showboundarygridlines=1,this.config.style={},this.config.defaultStyle={stroke:"#EFEFEF","stroke-width":"1","stroke-opacity":"1"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;for(var a in t)t.hasOwnProperty(a)&&"undefined"!=typeof t[a]&&(n[a]=t[a])},n.getPathArr=function(){var e,t,n,a,i,r,o,s,c,u,d,f,h,g,p,m=this,v=m.config,y=m.getFromEnv("getStyleDef"),b=m.getLinkedParent().config,x=v.direction,k=[],S=[];if(x!==l)s=(n=b.yConfigs[0]).scale,o="H",a=b.canvasBGLeft,i=s.getRangeValue,r=b.canvasBGLeft+b.canvasBGWidth;else{var _=this.getLinkedParent().getLinkedParent();_.getChildren("timeAxis")&&Array.isArray(_.getChildren("timeAxis"))&&(f=_.getChildren("timeAxis")[0]),o="V",a=(s=(n=b.xConfigs[0]).scale).getRangeValue,i=b.canvasBGTop+b.canvasBGHeight-b.padding.top,r=b.canvasBGTop-b.padding.top}if(n.tickarguments&&(S=n.tickarguments),t=n.style||{},v.style=y(t["grid-line"]||{}),S.push(n.skipinfo||{}),S.push(n.dayinmajor||!1),u=(e=s).ticks.apply(e,S),v.showgridlines)for(c=s.getDomain(),d=0,h=u.length;d<h;d++)(v.showboundarygridlines||0!==d&&d!==h-1)&&(+(g=u[d])>=+(p=c)[0]&&+g<=+p[1])&&(x===l&&0===f.config.values[d].text.length||k.push(["M","function"==typeof a?a.call(s,u[d]):a,"function"==typeof i?i.call(s,u[d]):i,o,r]));return k},n.draw=function(){var e=this,t=e.config,n=t.styleGridLines,a=e.getPathArr(),i=(0,o.extend2)((0,o.extend2)({},t.defaultStyle),n&&t.style);i[c]&&(i[c]="string"==typeof i[c]?i[c].split(" ").filter((function(e){return s.test(e)})).map((function(e){return+e})):i[c]),e.addGraphicalElement({el:"group",container:{id:"strato",label:"strato",isParent:!0},component:e,label:"gridLine",attr:{name:"grid-line-group"},id:"gridLine"}),a.forEach((function(t,n){e.addGraphicalElement({el:"path",attr:{path:t},css:i,container:{label:"gridLine"},id:"grid-line-"+n,component:e,label:"line"})}))},t}(r.SmartRenderer),d=u;t["default"]=d},897:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(292)),o=a(n(288)),l=a(n(593)),s=n(274),c=function(e){return function(){e.deactivate(),e.fireEvent("canvasHovered",{hoveredInfo:{},e:{}}),clearTimeout(e.domainValidationTimer),e.domainValidationTimer=setTimeout((function(){e.activate()}),100)}},u=function(e){function t(){var t,n;return(t=e.call(this)||this).handler=(n=(0,r["default"])(t),function(e){n.mouseEvtHandler(e)}),t.eventsList.push("fc-mouseout"),t.active=!0,t}(0,o["default"])(t,e);var n=t.prototype;return n.mouseEvtHandler=function(e){if(this.active){var t,n,a,r,o,l,c,u,d=this,f=e.originalEvent,h=d.getLinkedParent(),g=h.getChild(i,"dataset")||[],p=h.getChild(i,"timeInstanceMarker")[0],m=h.getChild(i,"timeSpanMinMarker")[0],v=h.getChild(i,"timeSpanFullMarker")[0],y=g.length;if(y)if(n=(t=(0,s.getMouseCoordinate)(d.getFromEnv("chart-container"),f,d.getFromEnv("chart"))).chartX,a=t.chartY,(l=p.getHoveredMarker(n,a))&&l.hovered)d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a});else if(l&&l.previouslyHoveredIndex!==i&&(d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a}),p.config.previouslyHoveredIndex=i),(l=m.getHoveredMarker(n,a))&&l.hovered)d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a});else{for(l&&l.previouslyHoveredIndex!==i&&(d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a}),m.config.previouslyHoveredIndex=i);y--;)(o=(r=g[y])._getHoveredPlot&&r._getHoveredPlot(n,a))&&o.hovered&&(c=o,u=y);if(!c){if((l=v.getHoveredMarker(n,a))&&l.hovered)return void d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a});l&&l.previouslyHoveredIndex!==i&&(d.fireEvent("canvasHovered",{hoveredInfo:l,e:e,i:y,chartX:n,chartY:a}),v.config.previouslyHoveredIndex=i)}d.fireEvent("canvasHovered",{hoveredInfo:c||o,e:e,i:u,chartX:n,chartY:a})}}},n.addEvents=function(){var e,t=this,n=t.getLinkedParent(),a=t.eventsList;for(e in t._removeListners(),a)n.addEventListener(a[e],t.handler);this.config.onDomainValidated=c(t),t.addExtEventListener("focusLimitChanged",this.config.onDomainValidated,t.getFromEnv("chart"))},n._removeListners=function(){var e,t=this,n=t.getLinkedParent(),a=t.eventsList;for(e in a)n.removeEventListener(a[e],t.handler);t.removeExtEventListener("domainValidated",this.config.onDomainValidated,t.getFromEnv("chart"))},n.remove=function(){var t;this._removeListners();for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];(t=e.prototype.remove).call.apply(t,[this].concat(a))},n.activate=function(){this.active=!0},n.deactivate=function(){this.active=!1,c()},t}(l["default"]),d=u;t["default"]=d},983:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=n(278),s=n(274),c=a(n(856)),u=n(899);function d(e){var t,n;for(t=0,n=e.length;t<n;t++)if(e[t]!==f&&"none"!==e[t])return(0,l.convertColor)(e[t])}var f,h={},g=function(e){function t(){var t;t=e.call(this)||this;var n,a,r,o,l,g,p,m,v,y,b,x=(0,i["default"])(t);return x.canvases=[],x._handler=function(e){m=x.config.multiCanvasTooltip,n=e.sender.getLinkedParent(),v=n.config&&n.config.xConfigs[0].scale,b=n.isWithinCanvas(e.data.chartX,e.data.chartY);var t,i,k,S,_,C,w,D,E,T,M,I,F,L=e.data.hoveredInfo||{},O=x.getFromEnv("tooltipStyle"),P=x.getFromEnv("dataSource"),A=P.tooltip?P.tooltip.tooltext:null;b&&L.pointObj?(F=x.getFromEnv("chart").config.focusAxesX[0].scale.getDomain(),C=L.pointObj.startDate,w=L.pointObj.endDate,(+(r=v.getDomainValue(v.getRangeValue(C,w)))<+F[0]||+r>+F[1]||+C==+w)&&(r=f)):r=f,x.canvases.forEach((function(t){if(l=t===n,p=t.getTranslation(),T=f,t.getChildren("verticalCrossLine")[0].setData({values:r?[r]:[],showMarker:l,dateRange:{startDate:C,endDate:w}},!0),(i=t.getChildren("dataset")||[]).length&&("column"!==i[0].getName()||1===i.length)&&L.component&&("dataset"===L.component.getType()||"dataMarker"===L.component.getType())?i.forEach((function(t){t._getHoveredPlot(e.data.chartX,e.data.chartY),E=b&&t._getHoveredBin(),y=h[t.getId()],(0,s.defined)(y)&&y!==E&&t.setHoverOutEffect([y]),h[t.getId()]=E,L.hovered&&l?L.component===t?t.setHoverInEffect([E],!0):"continuous"===t.getName()?t.setHoverInEffect([E],!1,!0):t.setHoverOutEffect([E]):t.setHoverInEffect([E],!1)})):b||i.forEach((function(e){e.setHoverOutEffect([h[e.getId()]])})),m&&!l&&(k=t.getChildren("tooltipHover")[0],(S=k.config).showTooltip))if(g="",a=t.getFromEnv("toolTipController"),b&&L.component&&"dataset"===L.component.getType())if(i.forEach((function(e,t){E=e._getHoveredBin(),"visible"===e.config.visibility&&e.config.dataInfo[E]&&(T=e.config.dataInfo[E],g+=e._getTooltext(!1,!1,E),_=t)})),T){E=i[_]._getHoveredBin();var o=i[_]._getDateForToolText(E),c=o.header,d=o.body,v=L.component.getFromEnv("xScale").getRange();""!==(g=A?(0,u.createDivString)("",d+g):(0,u.createDivString)(O.headerStyleString,c)+(0,u.createDivString)(O.bodyStyleString,d+g))&&T.endXPosition>v[0]&&T.x<v[1]?S.currentToolTip=a.drawAt(T.x+(T.width||0)/2+5+p.x,(T.colY||T.y)+p.y,g,S.currentToolTip,t):a.hide(S.currentToolTip)}else a.hide(S.currentToolTip);else a.hide(S.currentToolTip)})),t=n.getChildren("horizontalCrossLine")&&n.getChildren("horizontalCrossLine")[0],L.hovered&&"dataset"===L.component.getType()&&b?(D=L.pointObj.eventArgs.highValue&&L.pointObj.eventArgs.lowValue?[L.pointObj.eventArgs.highValue,L.pointObj.eventArgs.lowValue]:(0,c["default"])(L.pointObj.yBaseValue)?Math.abs(L.pointObj.yBaseValue)<=Math.abs(L.pointObj.value)?[L.pointObj.value]:[L.pointObj.yBaseValue]:[L.pointObj.value],o=L.component.config,n.config.yConfigs.forEach((function(e){e.scale===L.component.config.scaleY&&(M=e.scale,I=e.align)})),"hidden"!==o.visibility&&t.setData({values:D,scale:M,yAxisAlignment:I,showMarker:!0,texts:D,suffix:o.suffix,prefix:o.prefix,formatterFn:o.formatterFn,markerFill:d([o.style&&o.style.fill,o.plotStyle&&o.plotStyle.fill,o.plotStyle&&o.plotStyle.stroke])},!0)):t&&t.setData({values:[]},!0)},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultFormat="%A, %b %d, %Y",this.canvases=[]},n.configure=function(){e.prototype.configure.call(this);var t,n,a,i=this,r=i.getLinkedParent(),o=r.config.focusPanels.length;for(i.config.multiCanvasTooltip=(0,s.pluckNumber)(i.getFromEnv("chart-attrib").multicanvastooltip,1),a=0;a<o;a++)n=r.getChildren("canvas_"+a)[0],i.canvases.push(n),t=n.getFromEnv("mouseTracker"),i.addExtEventListener("canvasHovered",i._handler,t)},t}(o.SmartRenderer);t["default"]=g},891:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=n(274),s=a(n(856)),c="L",u="h",d=function(e){return e.toString()},f=function(e){function t(){var t;t=e.call(this)||this;var n,a,r=(0,i["default"])(t);return r.hoverInHandler=function(e){e.stopPropagation(),r.setData({isHovered:!0},!0),a=r.config,(n=r.getFromEnv("chart")).fireChartInstanceEvent("referenceLineRollOver",{label:a.label,value:a.value,valueFormatted:a.formattedMakerText})},r.moveHandler=function(e){e.stopPropagation()},r.hoverOutHandler=function(e){e.stopPropagation(),r.setData({isHovered:!1},!0),n.fireChartInstanceEvent("referenceLineRollOut",{label:a.label,value:a.value,valueFormatted:a.formattedMakerText})},r.clickHandler=function(e){e.stopPropagation(),n.fireChartInstanceEvent("referenceLineClick",{label:a.label,value:a.value,valueFormatted:a.formattedMakerText})},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={text:{fill:"#5F5F5F","vertical-align":"top",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"},marker:{fill:"#B70000",stroke:"#B70000","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":"1"}},this.config.isHovered=!1,this.config.formatterFn=d,this.config.direction="right"},n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,n=this.getFromEnv("getStyleDef");if(e.referenceLine){var a=e.referenceLine||{};a.style?(t.markerStyle=n(a.style.marker||{}),t.textStyle=n(a.style.text||{}),t.alwaysVisible=a.alwaysvisible||!1):(t.markerStyle={},t.textStyle={}),t.label=(0,l.pluck)(a.label,""),t.value=(0,l.pluckNumber)(a.value,0)}e.yScale&&(t.yScale=e.yScale),e.formatterFn&&(t.formatterFn=e.formatterFn),e.prefix&&(t.prefix=e.prefix),e.suffix&&(t.suffix=e.suffix),e.direction&&(t.direction=e.direction),null!=e.isHovered&&(t.isHovered=e.isHovered),t.formattedValue=t.formatterFn({value:t.value,type:"referenceline",prefix:t.prefix,suffix:t.suffix})},n.getPathArr=function(){var e,t=this.config,n=t.direction,a=this.getLinkedParent().config,i=t.yScale,r=i.getDomain(),o=t.value,l=[];if((0,s["default"])(r[0])&&(0,s["default"])(r[1])&&o>=r[0]&&o<=r[1])switch(e=i.getRangeValue(o),n){case"left":l=["M",a.canvasLeft+a.canvasWidth-a.borderConfig.rightBorder,e,"h",-a.canvasWidth];break;case"top":case"bottom":l=["M",e,a.canvasTop,"v",a.canvasHeight-a.borderConfig.bottomBorder];break;default:l=["M",a.canvasLeft+a.borderConfig.leftBorder,e,"h",a.canvasWidth]}return l},n.getLabelsProps=function(e,t){var n=this.config,a=n.direction,i={isValidLabel:!1};if(e.length&&n.label)switch(i.isValidLabel=!0,a){case"top":i.x=e[1],i.y=e[2],i.textAnchor="start";break;case"bottom":i.x=e[1],i.y=e[4],i.textAnchor="start";break;case"left":i.x=e[1]+e[4]+3,i.y=e[2]+t.borderpadding,i.textAnchor="start";break;default:i.x=e[1]+e[4]-t.borderpadding-1,i.y=e[2]+t.borderpadding,i.textAnchor="end"}return i},n.getBulbPoints=function(e){var t=this.config.direction,n={};if(e)if("left"===t)n.cx=e[1]+e[4]-3,n.cy=e[2];else n.cx=e[1]+e[4]+3,n.cy=e[2];return n},n.getTagProps=function(e,t,n){var a,i,r,o,l=this.config,s=l.value,d=l.yScale,f=l.direction,h=l.formattedValue,g=this.getFromEnv("smartLabel"),p=this.getLinkedParent().config,m=p.canvasLeft,v=p.canvasWidth,y=p.borderConfig.leftBorder,b=m+v,x={},k={value:h};if(i=d.getRangeValue(s),g.setStyle({fontFamily:n["font-family"],fontWeight:n["font-weight"],fontSize:n["font-size"],fontStyle:n["font-style"]}),r=(a=g.getSmartText(h)).width+2*e.borderpadding,"left"===f)o=["M",b,i,c,b+5,i,c,b+10,i-a.height/2-2*t.marker.borderpadding,u,r,"v",a.height+4*t.marker.borderpadding,u,-r,c,b+5,i,"z"],x.x=b+10+r/2,x.y=i;else o=["M",m+y,i,c,m-5,i,c,m-10,i-a.height/2-2*t.marker.borderpadding,u,-r,"v",a.height+4*t.marker.borderpadding,u,r,c,m-5,i,"z"],x.x=m-10-r/2,x.y=i;return k.value=h,k.tagPath=o,k.tagTextPosition=x,k},n.draw=function(){var e,t,n,a,i,r,o,s,c,u,d,f,h=this,g=h.config,p=g.defaultStyle,m=g.textStyle,v=g.markerStyle,y=g.label,b=g.value,x=g.isHovered,k=g.alwaysVisible,S=h.getFromEnv("baseTextStyle");h.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:h,label:"refLine",attr:{name:"reference-line-thermo"},id:"thermo"},!0),h.addGraphicalElement({el:"group",container:{id:"thermo",label:"refLine"},component:h,label:"refLine-thermo-hover-group",attr:{name:"reference-line-hover-elem-group"},id:"thermo"},!0),h.addGraphicalElement({el:"group",container:{id:"thermo",label:"refLine"},component:h,label:"refLine-thermo-group",attr:{name:"reference-line-group"},id:"thermo"},!0),Object.assign(p.text,S),e=(0,l.extend2)((0,l.extend2)({},p.text),m),t=(0,l.extend2)((0,l.extend2)({},p.marker),v),a=(0,l.extend2)({},t),o=h.getPathArr(),s=h.getLabelsProps(o,t),c=h.getBulbPoints(o),o.length&&(h.addGraphicalElement({el:"path",attr:{path:o,stroke:t.stroke||t.fill,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["stroke-opacity"],"stroke-width":t["stroke-width"],"stroke-linecap":t["stroke-linecap"],opacity:t.opacity*(x||k?1:.4),"stroke-dasharray":t["stroke-dasharray"]||"none"},container:{label:"refLine-thermo-group"},component:h,label:"line"},!0),a["stroke-width"]=x||k?t["stroke-width"]||1:0,a.stroke=v&&v.stroke||"#595959",h.addGraphicalElement({el:"circle",attr:{cx:c.cx,cy:c.cy,r:3},container:{label:"refLine-thermo-group"},css:a,component:h,label:"anchor"}),g.formattedMakerText=g.formatterFn({value:b,type:"referenceline",prefix:g.prefix,suffix:g.suffix}),(x||k)&&(n=(0,l.extend2)((0,l.extend2)((0,l.extend2)({},p),{text:{fill:"#f3f3f3"}}),{text:m,marker:v}),s.isValidLabel&&h.addGraphicalElement({el:"text",attr:{text:y,x:s.x,y:s.y-t.borderpadding*("top"===e["vertical-align"]?-1:1),opacity:e.opacity,"text-anchor":s.textAnchor,"text-bound":[t.fill,t.fill,t.borderthickness,t.borderpadding,t.borderradius,t.borderdash,.2]},css:e,container:{label:"refLine-thermo-hover-group"},component:h,label:"label"},!0),d=(u=h.getTagProps(t,n,e)).tagPath,f=u.tagTextPosition,!(i=(0,l.extend2)({},n.marker)).stroke&&(i.stroke="none"),h.addGraphicalElement({el:"path",attr:{path:d},container:{label:"refLine-thermo-hover-group"},css:i,component:h,label:"tag"},!0),!(r=(0,l.extend2)({},n.text))["text-anchor"]&&(r["text-anchor"]="middle"),r["vertical-align"]="middle",h.addGraphicalElement({el:"text",attr:{text:g.formattedValue,x:f.x,y:f.y},css:r,container:{label:"refLine-thermo-hover-group"},component:h,label:"tag-text"},!0)))},t}(o.SmartRenderer);t["default"]=f},893:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=n(274),s="M",c="h",u="v",d="Z",f="L",h=function(e,t){return e>=t[1]&&e<=t[0]},g={marker:{fill:"#f76260",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":1},"marker-zone":{stroke:"#f76260","fill-opacity":.2,fill:"#f76260","stroke-opacity":1,"stroke-width":0},"marker-zone:hover":{stroke:"#f76260","fill-opacity":.3,fill:"#f76260","stroke-opacity":1,"stroke-width":1},"marker-notch":{"stroke-width":0,stroke:"#f76260",fill:"#f76260","fill-opacity":1},"marker-notch:hover":{"stroke-width":1,stroke:"#f76260",fill:"#f76260","fill-opacity":.5},"marker-tag":{fill:"#f76260",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":1},"marker-notch-connector":{fill:"none",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1","stroke-width":1},text:{fill:"#5F5F5F","vertical-align":"top",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"},"marker-text":{fill:"#f3f3f3","vertical-align":"middle","text-anchor":"middle",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"}},p=function(e){function t(){var t;t=e.call(this)||this;var n,a,r,o,l=(0,i["default"])(t),s=l.config;return l.hoverInHandler=function(e){e.stopPropagation(),n=l.getFromEnv("chart"),a=s.yScale,l.setState("hovered",!0),l.asyncDraw(),l.fireEvent("referenceZoneHovered",{hovered:!0,scale:s.yScale,range:{minValue:a.getRangeValue(s.minValue),maxValue:a.getRangeValue(s.maxValue)}}),r=s.formatterFn({value:s.maxValue,type:"referenceline",prefix:s.prefix,suffix:s.suffix}),o=s.formatterFn({value:s.minValue,type:"referenceline",prefix:s.prefix,suffix:s.suffix}),n.fireChartInstanceEvent("referenceZoneRollOver",{label:s.label,valueMax:s.maxValue,valueMin:s.minValue,valueMaxFormatted:r,valueMinFormatted:o})},l.moveHandler=function(e){e.stopPropagation()},l.hoverOutHandler=function(e){e.stopPropagation(),l.setState("hovered",!1),l.asyncDraw(),l.fireEvent("referenceZoneHovered",{hovered:!1,scale:s.yScale,range:{minValue:a.getRangeValue(s.minValue),maxValue:a.getRangeValue(s.maxValue)}}),n.fireChartInstanceEvent("referenceZoneRollOut",{label:s.label,valueMax:s.maxValue,valueMin:s.minValue,valueMaxFormatted:r,valueMinFormatted:o})},l.clickHandler=function(e){e.stopPropagation(),n.fireChartInstanceEvent("referenceZoneClick",{label:s.label,valueMax:s.maxValue,valueMin:s.minValue,valueMaxFormatted:r,valueMinFormatted:o})},l.referenceZoneHoveredHandler=function(e){var t=e.data;l.getLinkedParent().highlightDataPoints(t.hovered,t.scale,t.range)},l.canvasHoveredHandler=function(e){var t=l.getLinkedParent(),n=l.config,a=n.yScale,i=n.minValue,r=n.maxValue;l.getState("hovered")&&(l.setState("hovered",!1),l.asyncDraw(),t.highlightDataPoints(!1,a,{minValue:a.getRangeValue(i),maxValue:a.getRangeValue(r)}))},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.extStyle={}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,a,i=this.config,r=t.referenceLine||{};if(n=(0,l.pluckNumber)(r.valuemin,0),a=(0,l.pluckNumber)(r.valuemax,0),i.label=(0,l.pluck)(r.label,""),n>a){var o=[a,n];n=o[0],a=o[1]}for(var s in i.minValue=n,i.maxValue=a,t)t.hasOwnProperty(s)&&(this.config[s]=t[s]);i.formattedMinValue=i.formatterFn({value:i.minValue,type:"referenceline",prefix:i.prefix,suffix:i.suffix}),i.formattedMaxValue=i.formatterFn({value:i.maxValue,type:"referenceline",prefix:i.prefix,suffix:i.suffix}),this.createStyleDefinition()},n.createStyleDefinition=function(){var e=this,t=e.config,n=t.extStyle,a=e.getFromEnv("getStyleDef"),i=e.getFromEnv("baseTextStyle"),r=a(n.marker),o=a(n["marker:hover"]),l=a(n["marker-zone"]),s=a(n["marker-zone:hover"]),c=a(n["marker-tag"]),u=a(n.text),d=a(n["marker-text"]),f=a(n["marker-notch"]),h=a(n["marker-notch:hover"]),p=a(n["marker-notch-connector"]),m=a(n["marker-notch-connector:hover"]);t.styleDefinition={marker:Object.assign({},g.marker,r),"marker:hover":Object.assign({},g.marker,o),"marker-zone":Object.assign({},g["marker-zone"],r,l),"marker-zone:hover":Object.assign({},r,l,g["marker-zone:hover"],o,s),"marker-tag":Object.assign({},g["marker-tag"],r,c),text:Object.assign({},i,g.text,u),"marker-text":Object.assign({},i,g["marker-text"],u,d),"marker-notch":Object.assign({},g["marker-notch"],r,f),"marker-notch:hover":Object.assign({},r,f,g["marker-notch:hover"],o,h),"marker-notch-connector":Object.assign({},g["marker-notch-connector"],r,p),"marker-notch-connector:hover":Object.assign({},g["marker-notch-connector"],r,p,o,m)}},n.getMarkerPath=function(){var e,t,n,a=this.config,i=a.direction,r=this.getLinkedParent().config,o=r.canvasLeft,l=r.canvasWidth,f=r.canvasTop,h=r.canvasHeight,g=o+l,p=f+h,m=r.borderConfig.rightBorder,v=r.borderConfig.leftBorder,y=r.borderConfig.topBorder,b=r.borderConfig.bottomBorder,x=a.yScale,k=a.minValue,S=a.maxValue,_=[],C=[];switch(n=(e=x.getRangeValue(k))-(t=x.getRangeValue(S)),i){case"left":_=[s,g-m,t,c,-l,u,n,c,l,d],C=[s,g-m-l,t,u,n];break;case"right":_=[s,o+v,t,c,l,u,n,c,-l,d],C=[s,o+v+l,t,u,n];break;case"top":_=[s,e,p-b,u,-h,c,n,u,h,d],C=[s,e,p-b-h,c,n];break;case"bottom":_=[s,e,f+y,u,h,c,n,u,-h,d],C=[s,e,f+y+h,c,n]}return{connectorPath:C,zonePath:_}},n.getLabelsProps=function(e,t){var n=t.marker,a=t.text,i=this.config,r=this.getLinkedParent().config,o=i.direction,l={isValidLabel:!1};if(e.length&&i.label){switch(l.isValidLabel=!0,o){case"top":case"bottom":l.x=e[1],l.y=e[2]+e[4],l.textAnchor="start";break;case"left":l.x=e[1]+e[4]+3,l.y=e[2]+e[6]+n.borderpadding,l.textAnchor="start";break;case"right":l.x=e[1]+e[4]-n.borderpadding-1,l.y=e[2]+e[6]+n.borderpadding,l.textAnchor="end"}r.canvasBGHeight<l.y?(l.y=r.canvasBGHeight-2*n.borderpadding,a["vertical-align"]="bottom"):a["vertical-align"]="top"}return l},n.getBulbPoints=function(e){var t=this.config,n=t.direction,a=t.yScale.getRange(),i=[];if(e)switch(n){case"left":case"right":h(e[2],a)&&i.push({cx:e[1]+e[4],cy:e[2]}),h(e[2]+e[6],a)&&i.push({cx:e[1]+e[4],cy:e[2]+e[6]})}return i},n.getTagProps=function(e,t,n){var a,i,r,o,l,g=this.config,p=g.yScale,m=g.minValue,v=g.maxValue,y=g.direction,b=g.formattedMinValue,x=g.formattedMaxValue,k=p.getRange(),S=this.getFromEnv("smartLabel"),_=2*t.borderpadding,C=2*(e.borderpadding+1),w=this.getLinkedParent().config,D=w.canvasLeft,E=w.canvasWidth,T=w.borderConfig.leftBorder,M=D+E,I=[];if(r=p.getRangeValue(m),o=p.getRangeValue(v),S.setStyle({fontFamily:n["font-family"],fontWeight:n["font-weight"],fontSize:n["font-size"],fontStyle:n["font-style"]}),"left"===y)a=S.getSmartText(b),i=S.getSmartText(x),l=Math.max(a.width,i.width)+C,h(r,k)&&I.push({tagPath:[s,M,r,f,M+5,r,f,M+10,r-a.height/2-_,c,l,u,a.height+4*t.borderpadding,c,-l,f,M+5,r,d],tagTextProps:{x:M+10+l/2,y:r,value:b}}),h(o,k)&&I.push({tagPath:[s,M,o,f,M+5,o,f,M+10,o-i.height/2-_,c,l,u,i.height+4*t.borderpadding,c,-l,f,M+5,o,d],tagTextProps:{x:M+10+l/2,y:o,value:x}});else a=S.getSmartText(b),i=S.getSmartText(x),l=Math.max(a.width,i.width)+C,h(r,k)&&I.push({tagPath:[s,D+T,r,f,D-5,r,f,D-10,r-a.height/2-_,c,-l,u,a.height+4*t.borderpadding,c,l,f,D-5,r,d],tagTextProps:{x:D-10-l/2,y:r,value:b}}),h(o,k)&&I.push({tagPath:[s,D+T,o,f,D-5,o,f,D-10,o-i.height/2-_,c,-l,u,i.height+4*t.borderpadding,c,l,f,D-5,o,d],tagTextProps:{x:D-10-l/2,y:o,value:x}});return I},n.draw=function(){var e,t,n,a,i,r,o=this,l=o.config,s=l.styleDefinition,c=l.label,u=o.getState("hovered"),d=o.getLinkedParent().config,f=d.padding,h=u?s["marker-notch-connector:hover"]:s["marker-notch-connector"],g=Number.parseFloat(h["stroke-width"])+1,p=d.canvasBGLeft-f.left-3-("left"===l.direction?g:0),m=d.canvasBGTop-f.top-3,v=d.canvasBGWidth+6+g,y=d.canvasBGHeight+6,b=["M"+p+","+m,"L"+(p+v)+","+m,"L"+(p+v)+","+(m+y),"L"+p+","+(m+y)+"Z"];o.addGraphicalElement({el:"group",container:{id:"exo",label:"group",isParent:!0},component:o,label:"refZone",attr:{name:"reference-zone-exo"},id:"exo"},!0),o.addGraphicalElement({el:"group",container:{id:"exo",label:"refZone"},component:o,label:"refZone-exo-group",attr:{name:"reference-zone-group","clip-path":b},id:"exo"},!0),o.addGraphicalElement({el:"group",container:{id:"exo",label:"refZone"},component:o,label:"refZone-exo-hover-group",attr:{name:"reference-zone-hover-elem-group"},id:"exo"},!0),t=(e=o.getMarkerPath()).zonePath,n=o.getLabelsProps(t,s),a=o.getBulbPoints(t),t.length&&(o.addGraphicalElement({el:"path",attr:{path:t},container:{label:"refZone-exo-group"},css:u?s["marker-zone:hover"]:s["marker-zone"],component:o,label:"line"},!0),a.forEach((function(e){o.addGraphicalElement({el:"circle",attr:{cx:e.cx,cy:e.cy,r:3},container:{label:"refZone-exo-hover-group"},css:u?s["marker-notch:hover"]:s["marker-notch"],component:o,label:"anchor"})})),o.addGraphicalElement({el:"path",attr:{path:e.connectorPath},container:{label:"refZone-exo-group"},css:h,component:o,label:"anchorConnector"}),u&&(n.isValidLabel&&o.addGraphicalElement({el:"text",attr:{text:c,x:n.x,y:n.y-s.marker.borderpadding*("top"===s.text["vertical-align"]?-1:1),"text-anchor":n.textAnchor},css:s.text,container:{label:"refZone-exo-hover-group"},outlineText:l.showTextOutline,component:o,label:"label"},!0),o.getTagProps(s.marker,s["marker-tag"],s.text).forEach((function(e){i=e.tagPath,r=e.tagTextProps,o.addGraphicalElement({el:"path",attr:{path:i},container:{label:"refZone-exo-hover-group"},css:s["marker-tag"],component:o,label:"tag"},!0),o.addGraphicalElement({el:"text",attr:{text:r.value,x:r.x,y:r.y},css:s["marker-text"],container:{label:"refZone-exo-hover-group"},component:o,label:"tag-text"},!0)}))))},t}(o.SmartRenderer);t["default"]=p},981:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(418),o=n(274),l=function(e){function t(){return e.apply(this,arguments)||this}return(0,i["default"])(t,e),t.prototype.configureAttributes=function(e){void 0===e&&(e={});var t,n,a,i,r,l=this,s=l.config,c=l.getFromEnv("chartConfig");if(this.props.width=(0,o.pluckNumber)(e.width,this.props.width,0),this.props.height=(0,o.pluckNumber)(e.height,this.props.height,0),s.orientation=(0,o.pluck)(e.toolbarorientation,s.orientation),s.hPadding=(0,o.pluck)(e.toolbarhpadding,s.hPadding),s.vPadding=(0,o.pluck)(e.toolbarvpadding,s.vPadding),s.backgroundcolor=(0,o.pluck)(e.toolbarbackgroundcolor,s.backgroundcolor),s.backgroundalpha=(0,o.pluck)(e.toolbarbackgroundalpha,s.backgroundalpha),s.bordercolor=(0,o.pluck)(e.toolbarbordercolor,s.bordercolor),s.borderalpha=(0,o.pluck)(e.toolbarborderalpha,s.borderalpha),s.borderthickness=(0,o.pluck)(e.toolbarborderthickness,s.borderthickness),s.hDirection=(0,o.pluckNumber)(e.toolbarhdirection,"r"===c.toolbarHAlign?-1:1),s.vDirection=(0,o.pluckNumber)(e.toolbarvdirection,"b"===c.toolbarBAlign?-1:1),s.hAlign=(0,o.pluck)(e.hAlign,"center").toLowerCase(),s.vAlign=(0,o.pluck)(e.vAlign,"middle").toLowerCase(),s.marginTop=(0,o.pluckNumber)(e.marginTop,e.spacing,s.marginTop),s.marginLeft=(0,o.pluckNumber)(e.marginLeft,e.spacing,s.marginLeft),s.marginRight=(0,o.pluckNumber)(e.marginRight,e.spacing,s.marginRight),s.marginBottom=(0,o.pluckNumber)(e.marginBottom,e.spacing,s.marginBottom),s.child=e.child||s.child,s.child)for(t=s.child,a=0,i=(n=Object.keys(s.child)).length;a<i;a++)(r=l.attachChild(t[n[a]].def,t[n[a]].type,n[a])).setData(t[n[a]].configuration,!0),r.setState("visible",!0)},t}(r.ToolBar),s=l;t["default"]=s},986:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(419),l="normal",s="visible";function c(){this.setData({hoveredState:"hover"},!0)}function u(){this.setData({hoveredState:l},!0)}var d=function(e){function t(t){var n;return(n=e.call(this,t)||this).addEventListener("fc-mouseover",c.bind((0,i["default"])(n))),n.addEventListener("fc-mouseout",u.bind((0,i["default"])(n))),n}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.containerInfo={id:"group",label:"group",isParent:!0},t.spaceNotHardCoded=!0,t.hoveredState=l},n.configureAttributes=function(e){void 0===e&&(e={});var t,n=this,a=n.config;for(t in e)a[t]=e[t];for(t in a.listener)n.addEventListener(t,a.listener[t]);n.setState(s,!0!==a.isHidden),a.symbolName=a.name},n.getHoveredState=function(){return this.config.hoveredState},n.draw=function(){var e=this,t=e.config,n=t.x+t.width/2,a=t.y+t.height/2,i=t.width,r=t.height,o=t.css,l=e.getCurrentState(),c=e.getHoveredState(),u=o[l].config[c],d=o[l].config[c+"Background"];e.getState(s)&&(e.addGraphicalElement({el:"group",attr:{name:"srs-tool"},container:t.containerInfo,component:e,id:"group",label:"group"}),e.addGraphicalElement({el:"rect",attr:{x:n-i/2-2,y:a-r/2-2,width:i+4,height:r+4,opacity:d.opacity},css:d,container:{id:"group",label:"group"},component:e,id:"rect",label:"rect"},!0),e.addGraphicalElement({el:"text",attr:{x:n,y:a,text:t.text,opacity:u.opacity},container:{id:"group",label:"group"},css:u,component:e,id:"text",label:"text"},!0),"pressed"===l&&e.addGraphicalElement({el:"path",attr:{path:"M"+(n-i/2-1)+", "+(a+r/2+1.5)+" h "+(i+1),opacity:u.opacity},container:{id:"group",label:"group"},css:{stroke:u.fill,"stroke-linecap":"round","stroke-opacity":u["fill-opacity"]},component:e,id:"path",label:"path"},!0))},t}(o.Tool);t["default"]=d},985:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=n(290),l=a(n(986)),s=n(419),c=n(274),u=n(497),d=n(490),f=a(n(981)),h=n(864),g=n(534),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=m(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}a["default"]=e,n&&n.set(e,a);return a}(n(987));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}var v,y=g.intervalMapEn,b="pressed",x="activated",k=31536e6,S=26784e5,_=864e5,C=36e5,w="#dfdfdf",D=[31536e7,15768e7,94608e6,63072e6,k,160704e5,80352e5,S,1296e6,6048e5,_,432e5,216e5,108e5,C,18e5],E="english",T="language",M=function(e){return e.getFromEnv(T)?e.getFromEnv(T).toLowerCase():E},I=function(e,t,n,a,i){void 0===a&&(a=!1);var r=this.config.language,o=F(y[e].unit,this.getFromEnv("UTC"),r),l=3*n[2];return y=L(r),a?i-o.every(y[e].multiplier).floor(i)>=l:D[e]>=t[2]&&D[e]>=l},F=function(e,t,n){void 0===n&&(n=E);var a,i,r=e;n in g.timeUnitsMap&&(a=g.timeUnitsMap[n].findIndex((function(e){return e===r})),r=-1!==a&&null!=(i=null==g.timeUnitsMap?void 0:g.timeUnitsMap.english[a])?i:r);switch(r){case"year":return t?u.utcYear:d.timeYear;case"quarter":return t?u.utcQuarter:d.timeQuarter;case"month":return t?u.utcMonth:d.timeMonth;case"week":return t?u.utcWeek:d.timeWeek;case"day":return t?u.utcDay:d.timeDay;case"hour":return t?u.utcHour:d.timeHour;case"minute":return t?u.utcMinute:d.timeMinute;case"second":return t?u.utcSecond:d.timeSecond}},L=function(e){var t={};switch(e){case E:t=g.intervalMapEn;break;case"german":t=g.intervalMapDe;break;case"french":t=g.intervalMapFr;break;case"spanish":t=g.intervalMapEs;break;case"portuguese":t=g.intervalMapPt;break;case"italian":t=g.intervalMapIt;break;default:t=g.intervalMapEn}return t},O=function(e){function t(){var t;t=e.call(this)||this;var n=(0,i["default"])(t);return t._handler=function(){var e,t,a,i=this,r=i.getFromEnv("chart"),o=r.getFromEnv("focusScalesX")[0].applicableClippings,l=o.repeatClips,s=o.singleClips,c=i.config,u=c.multiplier,d=i.getFromEnv("UTC"),f=c.unit,g=c.fixedAtEnd,p=c.fixedAtStart,m=c.text,v=r.getFocusLimit(),y=r.getContextLimit(),b=M(this);n.config.clickedButtonDetails=c,i.getFromEnv("animationManager").setAnimationState("selectedRange"),a=g?y[1]:v[1],f&&u?(e=F(f,d,b),t=g?e.every(u).floor(a):e.offset(a,-u)):p&&(t=y[0]),+t<y[0]&&(a=e.offset(y[0],u)),n.config.lastSelectedButtonConfig={fixedAtEnd:c.fixedAtEnd,fixedAtStart:c.fixedAtStart,unit:c.unit,multiplier:c.multiplier},n.config.updatedThroughButton=!0,t=(0,h.getUnclippedValue)(t,l,s,{clampDirection:"up"}),a=(0,h.getUnclippedValue)(a,l,s,{clampDirection:"down"}),r.setFocusLimit([t,a]),r.fireChartInstanceEvent("standardRangeSelect",{unit:f,multiplier:u,text:m})},t._toolbars={},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.lastSelectedButtonConfig=v,t.clickedButtonDetails={},t.labelFontSize="12px",t.takeMaxSize=!1,t.defaultStateStyle={activated:{config:{normal:{fill:"#9e9e9e",stroke:"none","stroke-width":2,cursor:"pointer","stroke-opacity":1,"fill-opacity":1,opacity:"1","font-weight":400,"font-size":"12","line-height":14.4,"text-anchor":"middle"},hover:{fill:"#5648D4",stroke:"none","stroke-width":2,cursor:"pointer","stroke-opacity":1,"fill-opacity":1,opacity:"1","font-weight":400,"font-size":"12","line-height":14.4,"text-anchor":"middle"},normalBackground:{fill:"none","fill-opacity":1,stroke:"none",cursor:"pointer",r:"2px","stroke-width":"1","stroke-dasharray":"none","stroke-opacity":"1",opacity:1},hoverBackground:{fill:"none","fill-opacity":1,stroke:"none",cursor:"pointer",r:"2px","stroke-width":"1","stroke-dasharray":"none","stroke-opacity":"1",opacity:1}}},pressed:{config:{normal:{fill:"#5648D4","stroke-width":2,stroke:"none","symbol-stroke":"#343434",cursor:"pointer","fill-opacity":1,"stroke-opacity":1,opacity:"1","font-weight":400,"font-size":"12","line-height":14.4,"text-anchor":"middle"},hover:{fill:"#5648D4","stroke-width":2,stroke:"none","symbol-stroke":"#5648D4",cursor:"pointer","fill-opacity":1,"stroke-opacity":1,opacity:"1","font-weight":400,"font-size":"12","line-height":14.4,"text-anchor":"middle"},normalBackground:{fill:"none","fill-opacity":1,stroke:"none",cursor:"pointer",r:"2px","stroke-width":"1","stroke-dasharray":"none","stroke-opacity":"1",opacity:1},hoverBackground:{fill:"none","fill-opacity":1,stroke:"none",cursor:"pointer",r:"2px","stroke-width":"1","stroke-dasharray":"none","stroke-opacity":"1",opacity:1}}}},t.stateStyle={}},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var n,a,i,r,o,l,s,u,d=this,f=d.config,h=d.getFromEnv("getStyleDef"),g=d.getFromEnv("baseTextStyle");f.contextRangeThreshold=d.getFromEnv("contextBins")[0].getRangeThreshold(),f.focusRangeThreshold=d.getFromEnv("focusBins")[0].getRangeThreshold(),f.contextMinBin=d.getFromEnv("contextBins")[0].getBinMin(),f.focusMinBin=d.getFromEnv("focusBins")[0].getBinMin(),f.language=M(this),Object.assign(f,t),s=f.style,n=Object.assign({},g,h(s["button-text"])),a=Object.assign({},g,h(s["button-text:hover"])),i=Object.assign({},g,h(s["button-text:active"])),r=h(s["button-background"]),o=h(s["button-background:hover"]),l=h(s["button-background:active"]),(r.fill||r.stroke)&&(f.takeMaxSize=!0),u={activated:{config:{normal:n,hover:Object.assign({},n,a),normalBackground:r,hoverBackground:Object.assign({},r,o)}},pressed:{config:{normal:Object.assign({},n,i),hover:Object.assign({},n,i,a),normalBackground:Object.assign({},r,l),hoverBackground:Object.assign({},r,l,o)}}},f.stateStyle=(0,c.extend2)((0,c.extend2)({},f.defaultStateStyle),u),f.stateStyle.separator=h(s.separator&&s.separator)},n.areTillDateButtonsPossible=function(){var e=this.getFromEnv("UTC"),t=this.getFromEnv("dateAPI"),n=new Date,a=this.getFromEnv("chart").getContextLimit()[1],i=new Date(a);return t(i,"FullYear",e)===t(n,"FullYear",e)&&t(i,"Month",e)===t(n,"Month",e)&&t(i,"Date",e)===t(n,"Date",e)},n.getTillDateButtons=function(e,t,n){var a,i,r,o=[],l=this.getFromEnv("chart").getContextLimit()[1];if(this.areTillDateButtonsPossible())for(i=0,r=D.length;i<r;i++)e>=D[i]&&y[i].tilldateName&&I.call(this,i,t,n,!0,l)&&((a=(0,c.extend2)({},y[i])).fixedAtEnd=!0,a.fixedAtStart=!1,o.push(a));return o},n.getSelectionButtonConfig=function(){var e,t,n,a=this,i=a.config,r=a.getFromEnv("UTC"),o=i.currentDomain,l=i.totalDomain,s=+o[1]-+o[0];if(t=r?u.utcYear:d.timeYear,e=r?u.utcMonth:d.timeMonth,n=r?u.utcDay:d.timeDay,i.lastSelectedButtonConfig)return{isTillDate:i.lastSelectedButtonConfig.fixedAtEnd&&!i.lastSelectedButtonConfig.fixedAtStart,isAllButton:i.lastSelectedButtonConfig.fixedAtEnd&&i.lastSelectedButtonConfig.fixedAtStart,isIntervalButton:!i.lastSelectedButtonConfig.fixedAtEnd&&!i.lastSelectedButtonConfig.fixedAtStart,multiplier:i.lastSelectedButtonConfig.multiplier,unit:i.lastSelectedButtonConfig.unit};if(s===+l[1]-+l[0])return{isAllButton:!0};if(this.areTillDateButtonsPossible()){if(s===+o[1]-+t.floor(o[1]))return{isTillDate:!0,multiplier:"1",unit:"year"};if(s===+o[1]-+e.floor(o[1]))return{isTillDate:!0,multiplier:"1",unit:"month"};if(s===+o[1]-+e.every(3).floor(o[1]))return{isTillDate:!0,multiplier:"3",unit:"month"};if(s===+o[1]-+n.every(7).floor(o[1]))return{isTillDate:!0,multiplier:"7",unit:"day"}}return a.getHighlightedIntervalButton(s)},n.getIntervalButtons=function(e,t,n,a,i){var r,o=[],l=D.length,s=[],c=[];if(i>0)for(r=0;r<5;r++){var u=Math.min(i,1+Math.floor(Number(y[r].multiplier)/4));c[r]=u,o.push(k*y[r].multiplier+c[r]*_)}for(r=l-1;r>0&&!(i>0&&r<5&&o[r]>=e)&&!(D[r]>=e);r--);return e&&(r<=0?((i>0?o[0]<=t:D[0]<=t)&&I.call(this,0,n,a)&&s.push(y[0]),(i>1?o[1]<=t:D[1]<=t)&&I.call(this,1,n,a)&&s.push(y[1])):r===l-1?(D[r-1]<=t&&I.call(this,r-1,n,a)&&s.push(y[r-1]),D[r]<=t&&I.call(this,r,n,a)&&s.push(y[r])):((i>0&&r<5?o[r-1]<=t:D[r-1]<=t)&&I.call(this,r-1,n,a)&&s.push(y[r-1]),(i>0&&r<5?o[r]<=t:D[r]<=t)&&I.call(this,r,n,a)&&s.push(y[r]),D[r+1]<=t&&I.call(this,r+1,n,a)&&s.push(y[r+1]))),s},n.getHighlightedIntervalButton=function(e){var t,n,a=this.config,i=a.language,r=a.intervalButtons,o=a.currentDomain,l=this.getFromEnv("UTC"),s={};for(t=r.length-1;t>=0&&(n=F(r[t].unit,l,i),+o[1]!=+n.offset(o[0],r[t].multiplier));t--);return-1!==t&&(s=(0,c.extend2)({isIntervalButton:!0},y[t]),s={isIntervalButton:!0,unit:r[t].unit,multiplier:r[t].multiplier},a.lastSelectedButtonConfig=s),s},n.getToolInfo=function(){var e,t,n,a,i,r,o,c,u,d,h=this,m=h.config,v=m.language,y=h.getFromEnv("chart"),k=h.getFromEnv("selectorToolbar"),S={},_=h.getFromEnv("smartLabel"),C=m.stateStyle,D=(c=(o=C).activated.config.normal["font-size"]||0,u=o.activated.config.hover["font-size"]||0,d=o.pressed.config.normal["font-size"]||0,Math.max(parseFloat(c),parseFloat(u),parseFloat(d))+"px"||m.labelFontSize),E=C.activated.config.normal["font-family"],T=C.activated.config.normal["font-weight"],M=m.currentDomain,I=y.getContextLimit(),F=m.contextRangeThreshold,L=m.focusRangeThreshold,O=m.contextMinBin,P=m.focusMinBin,A=0,B=0,N=m.takeMaxSize,H=+M[1]-+M[0],j=function(e,t){var n,a,i=new Date(e),r=new Date(t),o=i.getFullYear(),l=r.getFullYear(),s=i.getMonth(),c=r.getMonth(),u=r.getDate(),d=0;for(s>1&&o++,(0===c||1===c&&u<29)&&l--,n=o;n<=l;)((a=n)%4==0&&a%100!=0||a%400==0)&&d++,n++;return d}(+M[0],+M[1]),R=+I[1]-+I[0],V="intervalToolBar-"+k.getId()+"-"+y.getId(),G="businessToolBar-"+k.getId()+"-"+y.getId(),Y="allToolBar-"+k.getId()+"-"+y.getId(),U=m.intervalButtons=h.getIntervalButtons(H,R,L,P,j),z=m.tillDateButtons=h.getTillDateButtons(R,F,O);for(_.setStyle({fontSize:D,fontFamily:E,fontWeight:T}),U.forEach((function(e){var t=_.getOriSize(e.intervalName,!1),n=t.height,a=t.width;e.height=n,e.width=a,A=Math.max(n,A),B=Math.max(a,B)})),z.forEach((function(e){var t=_.getOriSize(e.tilldateName,!1),n=t.height,a=t.width;e.height=n,e.width=a,A=Math.max(n,A),B=Math.max(a,B)})),r=p.propOr("All",v,g.allButtonMap),a=_.getOriSize(r,!1),A=Math.max(a.height,A),B=Math.max(a.width,B),i=h.getSelectionButtonConfig(),S[V]={type:"tool",def:f["default"],configuration:{hAlign:"left",toolbarhdirection:1,child:{}}},e=0,t=U.length;e<t;e++)n=i.isIntervalButton&&i.unit===U[e].unit&&i.multiplier===U[e].multiplier?b:x,S[V].configuration.child["intervalButton-"+k.getId()+"-"+y.getId()+"-"+e]={type:"tool",def:l["default"],configuration:{text:U[e].intervalName,name:"interval",width:N?B:U[e].width,height:N?A:U[e].height,scale:1,marginLeft:e?3:0,marginRight:e===t-1?0:3,hAlign:"left",symbolStrokeWidth:"2",hoveredState:"normal",state:n,multiplier:U[e].multiplier,unit:U[e].unit,strokeWidth:0,listener:{"fc-click":h._handler},css:C}};if(t&&(S["separator-"+k.getId()+"-"+y.getId()+"-0"]={type:"tool",def:s.Separator,configuration:{marginLeft:0,marginRight:0,scale:1,height:A<16?16:A,width:8,hAlign:"left",stroke:C.separator.stroke||w,css:C.separator}}),t=z.length){for(S[G]={type:"tool",def:f["default"],configuration:{hAlign:"left",toolbarhdirection:1,child:{}}},e=0;e<t;e++)n=i.isTillDate&&i.unit===z[e].unit&&i.multiplier===z[e].multiplier&&+M[1]==+I[1]?b:x,S[G].configuration.child["tillDateButton-"+k.getId()+"-"+y.getId()+"-"+e]={type:"tool",def:l["default"],configuration:{text:z[e].tilldateName,name:"interval",scale:1,width:N?B:z[e].width,height:N?A:z[e].height,state:n,multiplier:z[e].multiplier,unit:z[e].unit,symbolStrokeWidth:"2",hoveredState:"normal",fixedAtStart:z[e].fixedAtStart,fixedAtEnd:z[e].fixedAtEnd,marginLeft:e?3:0,marginRight:e===t-1?0:3,hAlign:"left",strokeWidth:0,listener:{"fc-click":h._handler},css:C}};S["separator-"+k.getId()+"-"+y.getId()+"-1"]={type:"tool",def:s.Separator,configuration:{marginLeft:0,marginRight:0,scale:1,height:A<16?16:A,classIndex:3,itemIndex:0,width:8,hAlign:"left",stroke:C.separator.stroke||w,css:C.separator}}}return n=i.isAllButton?b:x,S[Y]={type:"tool",def:f["default"],configuration:{hAlign:"left",toolbarhdirection:1,child:{}}},S[Y].configuration.child["allButton-"+k.getId()+"-"+y.getId()+"-0"]={type:"tool",def:l["default"],configuration:{state:n,width:N?B:a.width,height:N?A:a.height,scale:1,text:r,name:"interval",marginLeft:0,marginRight:0,hAlign:"left",hoveredState:"normal",symbolStrokeWidth:"2",strokeWidth:0,fixedAtStart:!0,fixedAtEnd:!0,fill:"#00ff00",labelFill:"#00ff00",symbolFill:"#00ff00",listener:{"fc-click":h._handler},css:C}},S},n.updateOnLimitChange=function(){var e=this,t=e.config,n=e.getFromEnv("chart"),a=n.getFocusLimit()||[0,1],i=a[1]-a[0];t.lastSelectedRange&&t.lastSelectedRange!==i&&!t.updatedThroughButton&&(t.lastSelectedButtonConfig=v),t.lastSelectedRange=i,t.updatedThroughButton=!1,e.setData({currentDomain:a,totalDomain:n.getContextLimit()||[0,1]},!0)},t}(o.SmartRenderer);t["default"]=O},889:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(288)),o=n(290),l=n(497),s=n(490),c=n(274),u=a(n(350)),d=n(864);function f(e){switch(e){case"year":case"quarter":case"month":case"week":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}}function h(e,t){switch(e){case"year":return t?l.utcYear:s.timeYear;case"quarter":case"month":return t?l.utcMonth:s.timeMonth;case"week":return t?l.utcWeek:s.timeWeek;case"day":return t?l.utcDay:s.timeDay;case"hour":return t?l.utcHour:s.timeHour;case"minute":return t?l.utcMinute:s.timeMinute;case"second":return t?l.utcSecond:s.timeSecond;case"millisecond":return t?l.utcMillisecond:s.timeMillisecond}}function g(e,t,n,a){var i,r,o,l=!1,s=a.markerDim;for(r=0,o=s.length;r<o;r++)if(t>=s[r].x&&t<=s[r].x+s[r].width&&n>=s[r].y&&n<=s[r].y+s[r].height){l=!0,e.config.previouslyHoveredIndex=a.index,i=s[r];break}return{pointIndex:a.index,hovered:l,pointObj:{hoveredMarkerDim:i,index:l&&r},previouslyHoveredIndex:e.config.previouslyHoveredIndex,component:e}}var p=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).getClassName=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},t.getCSPNonce=function(){var e=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(e){var t=e.getAttribute("content");if(t){var n=t.match(/'nonce-([^']+)'/);if(n)return n[1]}}return null},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={text:{fill:"#808080","font-size":"11px","font-weight":"normal","font-style":"normal","vertical-align":"middle","text-anchor":"middle","fill-opacity":"1","stroke-opacity":"1",opacity:1},marker:{fill:"#f8b8b7",opacity:1,stroke:"#666666",r:2,"stroke-width":"1","stroke-dasharray":"none","fill-opacity":"1","stroke-opacity":"1"}},this.config.hoveredMarkerIndex=i,this.config.hoveredDomainIndex=i,this.config.lastHoveredMarkerIndex=i,this.config.lastHoveredDomainIndex=i,this.config.previouslyHoveredIndex=i,this.config.hoveredFromOutside=!1,this.config.hoveredLabelFill="#ffffff",this.config.hoveredMarkerRadius="1.5",this.config.valueArr=[],this.config.textArr=[],this.config.styleArr=[],this.config.domainArr=[],this.config.repeatationArr=[],this.config.markerDetails=[],this.config.type="minimal"},n.getHoveredMarker=function(e,t){var n,a,i=this,r=e,o=t,l=i.config,s=i.getLinkedParent().getTranslation(),c=l.markerDetails;for(r-=s.x,o-=s.y,a=c.length-1;a>=0&&!(n=g(i,r,o,c[a])).hovered;a--);return n},n.setHoverInEffect=function(e,t,n){var a=this,i=a.getFromEnv("chart");a.setData({hoveredMarkerIndex:e,hoveredDomainIndex:t,hoveredFromOutside:n},!0),i.fireEvent("timeInstanceMarkerHovered",{senderTimeMarker:a,hoveredMarkerIndex:e,hoveredDomainIndex:t,hoveredFromOutside:!0})},n.setHoverOutEffect=function(){var e=this,t=e.config,n=e.getFromEnv("chart");e.setData({lastHoveredMarkerIndex:t.hoveredMarkerIndex,lastHoveredDomainIndex:t.hoveredDomainIndex,hoveredMarkerIndex:i,hoveredDomainIndex:i},!0),n.fireEvent("timeInstanceMarkerHovered",{senderTimeMarker:e,hoveredMarkerIndex:i,hoveredDomainIndex:i,hoveredFromOutside:!0})},n.fireMarkerEvents=function(e,t,n){var a,r,o,l,s,d,f=this,h=f.config,g=h.valueArr,p=h.domainArr,m=h.repeatationArr,v=f.getFromEnv("chart"),y=f.getFromEnv("UTC");switch(e){case"fc-mouseover":d="timeMarkerRollOver",a=t,r=n;break;case"fc-mouseout":a=h.lastHoveredMarkerIndex,r=h.lastHoveredDomainIndex,a!==i&&r!==i&&(d="timeMarkerRollOut");break;case"fc-click":d="timeMarkerClick",a=t,r=n}d&&(s=g[a].timeFormat,o=y?u["default"].utcFormatter(s):u["default"].formatter(s),l=+p[a][r],v.fireChartInstanceEvent(d,{start:l,startText:o.format(l),end:i,endText:c.BLANKSTRING,formatter:s,type:g[a].type,label:m[a][r].labels}))},n.getToolTextConfiguration=function(e){var t,n,a,i=this.getFromEnv("tooltipStyle"),r=i.header,o=i.body,l=40,s=46,c=this.getFromEnv("smartLabel"),u={};c.setStyle({"font-size":r["font-size"],"font-family":r["font-family"],"font-weight":r["font-weight"]}),l+=(a=c.getOriSize(e[0])).width,s+=a.height;var d=this.getClassName("tooltip-text-margin"),f=this.getCSPNonce();if(u.header='\n <style nonce="'+f+'">.'+d+' {margin: 5px;}</style><div class="'+d+'">\n '+e[0]+"</div>",u.body="<div>",c.setStyle({"font-size":o["font-size"],"font-family":o["font-family"],"font-weight":o["font-weight"]}),e.length>2)for(u.body+="</br>",t=1,n=e.length;t<n;t++)e[t]&&(s+=(a=c.getOriSize(e[t])).height,l=Math.max(l,a.width),u.body+='<style nonce="'+f+'">.'+d+" {margin: 5px;}</style>\n <div class="+d+"'>"+t+". "+e[t]+"</div>");else 2===e.length&&e[1]&&(s+=(a=c.getOriSize(e[1])).height,l=Math.max(l,a.width),u.body+='<style nonce="'+f+'">.'+d+' {margin: 5px;}</style><div class="'+d+'">'+e[1]+"</div>");return u.body+="</div>",u.dimensions={width:l,height:s},u},n.reCalculateDimension=function(e,t,n){var a=this,i=a.config,r=i.domainArr[e][t],o=a.config.xScale,l=a.getLinkedParent().config,s=l.padding,c=s.left,u=s.right,d=s.top,f=s.bottom,h=o.getRangeValue(r),g=i.markerDetails[e].markerDim[t],p=h-n/2-c+u,m=l.canvasBGTop+l.canvasBGHeight-n/2-d+f,v=2*n/2,y=2*n/2;g.x=p,g.y=m,g.width=v,g.height=y,g.thresholdX=p<l.canvasBGLeft?p-l.canvasBGLeft:p+v>l.canvasBGLeft+l.canvasBGWidth?p+v-(l.canvasBGLeft+l.canvasBGWidth):0,g.thresholdY=n/2},n.getMarkerDimension=function(e,t){var n=this.config.xScale,a=this.getLinkedParent().config,i=a.padding,r=i.left,o=i.right,l=i.top,s=i.bottom,c=n.getRangeValue(e)-t/2-r+o,u=2*t/2;return{x:c,y:a.canvasBGTop+a.canvasBGHeight-t/2-l+s,width:u,height:2*t/2,thresholdX:c<a.canvasBGLeft?c-a.canvasBGLeft:c+u>a.canvasBGLeft+a.canvasBGWidth?c+u-(a.canvasBGLeft+a.canvasBGWidth):0,thresholdY:t/2}},n.getMarkerAndLabelConfiguration=function(e,t){var n,a=this,i=a.config,r=a.config.xScale,o=r.applicableClippings,l=o.repeatClips,s=o.singleClips,c=r.getDomain(),u=i.valueArr[e],f=u.repeat,h=parseFloat(t.text["line-height"]);i.markerDetails[e].markerDim=[],i.markerDetails[e].index=e,i.domainArr[e]=[],isNaN(+u.start)||(0,d.getUnclippedValue)(+u.start,l,s)!==+u.start||(!f&&+u.start>=+c[0]&&+u.start<=+c[1]?(i.domainArr[e].push(u.start),i.markerDetails[e].markerDim.push(a.getMarkerDimension(u.start,h))):f&&(i.domainArr[e]=n=a.getAllValidDomains(u.start,u.repeat),n.length&&n.forEach((function(t){i.markerDetails[e].markerDim.push(a.getMarkerDimension(t,h))}))))},n.getAllValidDomains=function(e,t){var n=e,a=this.config.xScale.getDomain(),i=[];if(+n<+a[0]&&t.multiplier>0)for(;+n<+a[0];)n=t.interval.offset(n,t.multiplier);for(;+n<=+a[1];)i.push(n),n=t.interval.offset(n,t.multiplier);return i},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,a,i,r,o,l,s,d,g,p,m,v,y,b,x,k=this,S=k.config,_=[],C=[],w=k.getFromEnv("UTC"),D=[],E=k.getFromEnv("getStyleDef"),T=k.getFromEnv("textStyle"),M=k.getFromEnv("baseTextStyle"),I=t.timeMarker||[],F=Object.assign({},T,S.defaultStyle.text,M);for(o=0,l=I.length;o<l;o++)(s=I[o]).start&&s.start!==c.BLANKSTRING&&(r=(0,c.pluck)(s.timeformat,t.defaultFormat),(a=(w?u["default"].utcParser(r):u["default"].parser(r)).parse(s.start))&&(n={start:a,startString:s.start,timeFormat:r,type:s.type||S.type},s.repeat&&s.repeat.unit&&0!==Math.floor(+s.repeat.multiplier)&&f(i=s.repeat.unit.toLowerCase())&&(n.repeat={interval:h(i,w),multiplier:("quarter"===i?3:1)*(0,c.pluckNumber)(s.repeat.multiplier,1)}),d=s.style||{},D.push(n),g=Object.assign({},F,{},E(d.text)),p=Object.assign({},S.defaultStyle.marker,E(d.marker)),x=E(d["marker:hover"]),m=Object.assign({},p,x),v=Object.assign({},p,E(d["marker-box"])),y=Object.assign({},p,E(d["marker-notch"])),b=Object.assign({},p,E(d["marker-line"])),_.push({text:g,"text:hover":Object.assign({},g,E(d["text:hover"])),marker:p,"marker:hover":m,"marker-box":v,"marker-box:hover":Object.assign({},v,x,E(d["marker-box:hover"])),"marker-notch":y,"marker-notch:hover":Object.assign({},y,x,E(d["marker-notch:hover"])),"marker-line":b,"marker-line:hover":Object.assign({},b,x,E(d["marker-line:hover"]))}),C.push((0,c.pluck)((0,c.parseUnsafeString)(s.label,!1),""))));t.xScale&&(S.xScale=t.xScale),S.hoveredMarkerIndex=t.hoveredMarkerIndex,S.hoveredDomainIndex=t.hoveredDomainIndex,S.lastHoveredMarkerIndex=t.lastHoveredMarkerIndex,S.lastHoveredDomainIndex=t.lastHoveredDomainIndex,S.hoveredFromOutside=t.hoveredFromOutside,t.timeMarker&&(S.valueArr=D,S.styleArr=_,S.textArr=C)},n.createToolipConfiguration=function(){var e,t,n,a,i,r,o=this.config,l=o.markerDetails,s=o.domainArr,c=o.repeatationArr,d=o.valueArr,f=this.getFromEnv("UTC"),h=[];for(i=0;i<s.length;i++)for(e=s[i],t=d[i].timeFormat,n=f?u["default"].utcFormatter(t):u["default"].formatter(t),r=0;r<e.length;r++)h=[],a=n.format(e[r]),h=h.concat([a],c[i][r].labels),l[i].markerDim[r].toolTextArr=h},n.getRepeatationArr=function(){var e,t,n,a,i,r,o,l=this.config,s=l.domainArr,c=l.textArr,u=l.markerDetails,d=[];for(r=0;r<s.length;r++)for(a=s[r],d[r]=[],o=0;o<a.length;o++)for(e=r,i=a[o],d[r][o]={domainValue:i,labels:[],markerDimIndex:o},c[r]&&d[r][o].labels.push(c[r]);e+1<s.length;)n=s[e+1].map((function(e){return+e})),-1!==(t=n.indexOf(+i))&&(c[e+1]&&d[r][o].labels.push(c[e+1]),s[e+1]=s[e+1].filter((function(e){return+e!=+i})),u[e+1].markerDim=u[e+1].markerDim.filter((function(e,n){return n!==t}))),e++;return d},n.draw=function(){var e,t,n=this,a=n.config,i=a.valueArr,r=a.styleArr;for(n.addGraphicalElement({el:"group",container:{id:"thermo",label:"thermo",isParent:!0},component:n,label:"timeMarkerHoverGroup",attr:{name:"time-marker-hover-elem-group"},id:"timeMarker"}),n.addGraphicalElement({el:"group",container:{id:"thermo",label:"thermo",isParent:!0},component:n,label:"timeMarker",attr:{name:"time-marker-group"},id:"timeMarker"}),a.markerDetails=[],e=0,t=i.length;e<t;e++)a.markerDetails[e]={},n.getMarkerAndLabelConfiguration(e,r[e]);a.repeatationArr=n.getRepeatationArr(),n.createToolipConfiguration(),n.drawTimeMarkers(),n.drawTimeMarkerLabels()},n.drawTimeMarkers=function(){var e,t,n,a,i,r,o,l,s=this,c=s.config,u=c.markerDetails,d=s.getLinkedParent().config,f=d.padding,h=c.styleArr;for(o=0;o<u.length;o++)for(e=u[o].markerDim,a=c.valueArr[o].type,l=0;l<e.length;l++)n=o===c.hoveredMarkerIndex&&l===c.hoveredDomainIndex,r=h[o],(i=parseFloat(n?r["text:hover"]["line-height"]:r.text["line-height"],10))!==parseFloat(r.text["line-height"],10)&&s.reCalculateDimension(o,l,i),t=e[l],(n||"full"===a)&&(s.addGraphicalElement({el:"path",attr:{path:["M",t.x+t.width/2,t.y+t.height/2,"v",-d.canvasBGHeight],opacity:n?r["marker-line:hover"].opacity:r["marker-line"].opacity},container:{label:"timeMarkerHoverGroup"},id:"time-instance-marker-path-"+o+l,css:n?r["marker-line:hover"]:r["marker-line"],component:s,label:"path"}),s.addGraphicalElement({el:"circle",attr:{cx:t.x+t.width/2,cy:d.canvasTop+c.hoveredMarkerRadius+f.bottom-f.top,r:c.hoveredMarkerRadius,opacity:n?r["marker-notch:hover"].opacity:r["marker-notch"].opacity},container:{label:"timeMarkerHoverGroup"},css:n?r["marker-notch:hover"]:r["marker-notch"],id:"time-instance-marker-circle-"+o+l,component:s,label:"path"})),s.addGraphicalElement({el:"rect",attr:{x:t.x,y:t.y,width:t.width,height:t.height,opacity:n?r["marker-box:hover"].opacity:r["marker-box"].opacity},container:{label:"timeMarker"},css:n?r["marker-box:hover"]:r["marker-box"],id:"time-instance-marker-rect-"+o+l,component:s,label:"rect"})},n.drawTimeMarkerLabels=function(){var e,t,n,a,i,r,o,l=this,s=l.config,c=s.markerDetails,u=s.repeatationArr,d=s.styleArr;for(r=0;r<u.length;r++)for(t=u[r],o=0;o<t.length;o++)a=t[o],n=r===s.hoveredMarkerIndex&&o===s.hoveredDomainIndex,(i=a.labels.length)>1&&(e=c[r].markerDim[a.markerDimIndex],l.addGraphicalElement({el:"text",attr:{x:e.x+e.width/2,y:e.y+e.height/2,text:i,opacity:n?d[r]["text:hover"].opacity:d[r].text.opacity},container:{label:"timeMarker"},css:n?d[r]["text:hover"]:d[r].text,id:"time-instance-marker-text-"+r+o,component:l,label:"text"},!0))},n.getType=function(){return"timeMarker"},n.getName=function(){return"timeInstanceMarker"},t}(o.SmartRenderer),m=p;t["default"]=m},960:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(290),o=a(n(885)),l=a(n(907)),s=a(n(961)),c=a(n(962)),u=a(n(963)),d=a(n(350)),f=n(274),h={stroke:"#F1F1F1","stroke-width":"1","stroke-opacity":"1"},g=function(e){var t=e.config,n=e.getFromEnv("getStyleDef"),a=e.getFromEnv("chart-attrib"),i=t.xConfigs[0].style?t.xConfigs[0].style:{},r=Object.assign({},h,n(i["grid-line"]));e.attachChild(o["default"],"canvas").configure({xConfigs:t.xConfigs,yConfigs:t.yConfigs,plotConfigs:t.plotConfigs,tableMap:t.tableMap,enableGridLines:!0,gridBandSupported:!1,gridLineDirection:"vertical",enableMarkers:!1,enableReferenceLine:!1,enableReferenceZone:!1,leftBorder:t.border.left,bottomBorder:t.border.bottom,topBorder:t.border.top,rightBorder:t.border.right,enableTimeMarkers:!1,styleGridLines:0,includeLegend:0,enableMouseTracking:0,isContext:!0,dataTable:t.dataTable,gridLineStyle:r,legendInteracted:t.legendInteracted,canvasStyle:n(a.style&&a.style.canvas)})},p=function(e){return e.scale},m=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t._translation={},t._scrollbarConfig={},t.registerFactory("timeNavigatorAxis",s["default"]),t.registerFactory("scrollbar",c["default"]),t.registerFactory("brush",u["default"]),t.registerFactory("canvas",g),t}(0,i["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(t){void 0===t&&(t={}),e.prototype.__setDefaultConfig.call(this,t);var n=this.config;n.startX=0,n.startY=0,n.scrollbarHeight=18,n.scrollbarStart=-17.5,n.scrollbarButtonWidth=17,n.yScalePadding=20,n.formatter=d["default"].formatter("%b %d, %Y"),n.border={left:1,right:1,top:1,bottom:0},n.labels={}},n.setContextScaleLimit=function(){var e=this,t=e.getFromEnv("contextBins")[0];e.config.contextScale.setBinMin(t.getBinMin()).setRangeThreshold(t.getRangeThreshold()).setDomain(e.getFromEnv("chart").getContextLimit())},n.setDimension=function(e){var t=this;void 0===e&&(e={});var n=this,a=n.config,i=n.getChildren("canvas")[0],r=n.getChildren("brush")[0],o=a.border;n._dimensions.width=(0,f.pluckNumber)(e.width,n._dimensions.width),n._dimensions.height=(0,f.pluckNumber)(e.height,n._dimensions.height),a.xConfigs.map(p).forEach((function(e){e.setRange([o.left,t._dimensions.width-(o.left+o.right)/2])})),a.contextScale.setRange(a.xConfigs[0].scale.getRange()),r.setBrushValue(n.getFromEnv("chart").getFocusLimit());var l=r.getLabelSpace();i.setDimension({left:a.startX,top:l,width:this._dimensions.width,height:Math.max(this._dimensions.height-l-a.scrollbarHeight,0)}),n.getChildren("timeAxis").forEach((function(e){e.setTranslation(0,l),e.placeAxis()})),a.yConfigs.map(p).forEach((function(e){return e.setRange([t._dimensions.height-a.scrollbarHeight-o.top-o.bottom,l])})),n.setChildDimension()},n.getPosition=function(){return{x:this.config._translateX,y:this.config._translateY}},n.setChildDimension=function(){var e=this,t=e.config,n=e.getChildren("brush")[0],a=n.getLabelSpace(),i=e.getChildren("scrollbar")[0],r=t.contextScale,o=r.getRange(),l=e.getFromEnv("chart").getFocusLimit().map((function(e){return r.getRangeValue(e)}));n.setMaxBrushDimensions({x:o[0],y:a,width:o[1]-o[0],height:this._dimensions.height-a-t.scrollbarHeight}),n.setCurrentBrushDimensions({x:l[0],y:a,width:l[1]-l[0],height:this._dimensions.height-a-t.scrollbarHeight}),i.setDimension({x:t.scrollbarStart,y:this._dimensions.height-t.scrollbarHeight,height:t.scrollbarHeight,width:this._dimensions.width+2*t.scrollbarButtonWidth+1}),e.setScrollbarConfig("width",this._dimensions.width+2*t.scrollbarButtonWidth+1),i.config.scrollRatio=e.getScrollRatio(),e.setScrollbarConfig("scrollRatio",i.config.scrollRatio),i.config.scrollPosition=e.getScrollPosition(),e.setScrollbarConfig("scrollPosition",i.config.scrollPosition),e.setScrollbarConfig("height",t.scrollbarHeight)},n.getDimension=function(){return this._dimensions},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this,a=n.config;Object.assign(a,t),n.setContextScaleLimit(),n.addToEnv("timeNavigator",n),n.addToEnv("timeNavigatorConfig",a)},n.attachHandlers=function(){var e,t,n,a=this;a.addEventListener("fc-mouseover",a.mouseoverHandler||(a.mouseoverHandler=function(){clearTimeout(a.mouseoutTimer),e=this.getChildren("brush")[0],t=e.getChildren("leftLabel")[0],n=e.getChildren("rightLabel")[0],t.config.showLabel||n.config.showLabel||(t.setData({showLabel:!0},!0),n.setData({showLabel:!0},!0))})),a.addEventListener("fc-mouseup",a.mouseupHandler||(a.mouseupHandler=function(){e.config.pointerReleasedOnParent=!0})),a.addEventListener("fc-mouseout",a.mouseoutHandler||(a.mouseoutHandler=function(){a.config.labelsGettingDragged||(a.mouseoutTimer=setTimeout((function(){t.setData({showLabel:!1},!0),n.setData({showLabel:!1},!0)}),20))}))},n.draw=function(){var e=this;e.addGraphicalElement({el:"group",container:{id:"tropo",label:"group",isParent:!0},component:e,label:"group",attr:{name:"timenav-tropo",transform:e.config.translate},id:"tropo"}),e.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:e,label:"group",attr:{name:"timenav-strato",transform:e.config.translate},id:"strato"}),e.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:e,label:"group",attr:{name:"timenav-meso",transform:e.config.translate},id:"meso"}),e.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:e,label:"group",attr:{name:"timenav-thermo",transform:e.config.translate},id:"thermo"}),e.addGraphicalElement({el:"group",container:{id:"exo",label:"group",isParent:!0},component:e,label:"group",attr:{name:"timenav-exo",transform:e.config.translate},id:"exo"}),e.addGraphicalElement({el:"group",attr:{name:"time-axis-group"},id:"axisTopGroup",label:"group",container:{id:"strato",label:"group"},component:e},!0),e.addGraphicalElement({el:"group",attr:{name:"scrollbar-group"},id:"scrollbarContainer",label:"scrollbar",container:{id:"thermo",label:"group"},component:e},!0)},n.setScrollbarConfig=function(e,t){this._scrollbarConfig[e]=t},n.getScrollbarConfig=function(e){return e?this._scrollbarConfig[e]:this._scrollbarConfig},n.validateDomain=function(e,t,n){var a=e[0],i=e[1],r=this.config.contextScale,o=r.getRange(),l=this.getFromEnv("chart");if(a>i){var s=[i,a];a=s[0],i=s[1]}a=f.clampNumber.apply(void 0,[a].concat(o)),i=f.clampNumber.apply(void 0,[i].concat(o)),l.setPixelLimit([a,i],r,[].concat(t),{name:n.eventName,eventArgs:n.eventArgs,options:n.eventArgs})},n.getScrollRatio=function(){var e=this,t=e.getChildren("scrollbar")[0].config,n=e.getChildren("canvas")[0].config,a=n.leftBorder,i=n.rightBorder,r=t.width,o=t.height,l=2*Math.min(o,.5*r),s=(a+i)/r,c=(e.getChildren("brush")[0].getCurrentBrushDimensions().width+1)/Math.max(.001,r-l);return c>=1-s?1:c},n.getScrollPosition=function(){var e=this,t=e.getChildren("scrollbar")[0].config,n=t.width,a=t.height,i=2*Math.min(a,.5*n),r=e.getChildren("brush")[0],o=r.getCurrentBrushDimensions().x,l=r.getCurrentBrushDimensions().width,s=e.getScrollbarConfig("scrollRatio")*(n-i),c=n-(i+s);return(o+l/2-(i/2+s/2-e.config.scrollbarButtonWidth))/c},n.getDSdef=function(){return l["default"]},n.getName=function(){return"TimeNavigator"},t}(r.SmartRenderer);t["default"]=m},888:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(288)),o=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.setHoverInEffect=function(e,t){var n=this,a=n.getFromEnv("chart");n.setData({hoveredIndex:e,hoveredDomainIndex:t},!0),a.fireEvent("timeSpanFullMarkerHovered",{senderTimeMarker:n,hoveredIndex:e,hoveredFromOutside:!0})},n.setHoverOutEffect=function(){var e=this,t=e.config,n=e.getFromEnv("chart");e.setData({hoveredIndex:i,lastHoveredMarkerIndex:t.hoveredIndex,lastHoveredDomainIndex:t.hoveredDomainIndex},!0),n.fireEvent("timeSpanFullMarkerHovered",{senderTimeMarker:e,hoveredIndex:i,hoveredFromOutside:!0})},n.createGroup=function(){var e=this,t=e.getLinkedParent().config,n=t.padding,a=t.canvasBGLeft-n.left,i=t.canvasBGTop-n.top,r=t.canvasBGWidth,o=t.canvasBGHeight,l=["M"+a+","+i,"L"+(a+r)+","+i,"L"+(a+r)+","+(i+o),"L"+a+","+(i+o)+"Z"];e.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:e,label:"timeMarker",attr:{name:"time-marker-full-group","clip-path":l},id:"timeMarker"})},n.getName=function(){return"timeSpanFullMarker"},t}(a(n(887))["default"]),l=o;t["default"]=l},887:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(288)),o=n(290),l=n(497),s=n(490),c=n(274),u=a(n(350)),d=n(864);function f(e){switch(e){case"year":case"quarter":case"month":case"week":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}}function h(e,t){switch(e){case"year":return t?l.utcYear:s.timeYear;case"quarter":case"month":return t?l.utcMonth:s.timeMonth;case"week":return t?l.utcWeek:s.timeWeek;case"day":return t?l.utcDay:s.timeDay;case"hour":return t?l.utcHour:s.timeHour;case"minute":return t?l.utcMinute:s.timeMinute;case"second":return t?l.utcSecond:s.timeSecond;case"millisecond":return t?l.utcMillisecond:s.timeMillisecond}}function g(e,t,n,a){var i,r,o,l=!1,s=a.markerDim,c=e.getLinkedParent().getDimension(),u=e.config.showTimeSpanMarkerTooltipAt;for(r=0,o=s.length;r<o;r++){var d=s[r],f=Math.min(d.x+d.width,c.left+c.width)-Math.max(d.x,c.left);if(t>=d.x&&t<=d.x+d.width&&(1===u||f<=c.width*u)&&n>=d.y&&n<=d.y+d.height){l=!0,e.config.previouslyHoveredIndex=a.index,i=d;break}}return{pointIndex:a.index,hovered:l,pointObj:{hoveredMarkerDim:i,index:l&&r,type:a.type},previouslyHoveredIndex:e.config.previouslyHoveredIndex,component:e}}function p(e,t,n,a){return e>=n&&e<=a||t<=a&&t>=n||n>=e&&a<=t}var m=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).getClassName=function(e){return void 0===e&&(e=""),e+"-"+Math.random().toString(36).substring(2)},t.getCSPNonce=function(){var e=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(e){var t=e.getAttribute("content");if(t){var n=t.match(/'nonce-([^']+)'/);if(n)return n[1]}}return null},t}(0,r["default"])(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultStyle={text:{fill:"#808080",opacity:1,"font-size":"10px","font-weight":"normal","font-style":"normal","text-anchor":"middle","fill-opacity":1,"stroke-opacity":1},marker:{fill:"#62b58f",opacity:.2,"fill-opacity":1,"stroke-opacity":1,"border-thickness":0,"border-padding":1,"border-radius":0,"border-dash":"none","stroke-width":1,"stroke-dasharray":"none",stroke:"none"}},this.config.lastHoveredMarkerIndex=i,this.config.lastHoveredDomainIndex=i,t.hoveredIndex=i,t.previouslyHoveredIndex=i,t.hoveredOpacity=.5,t.valueArr=[],t.textArr=[],t.styleArr=[],t.domainArr=[],t.markerDetails=[],t.type="minimal",t.showTimeSpanMarkerTooltipAt=1},n.getHoveredMarker=function(e,t){var n,a,i=this,r=e,o=t,l=i.config,s=i.getLinkedParent().getTranslation(),c=l.markerDetails;for(r-=s.x,o-=s.y,a=c.length-1;a>=0&&!(n=g(i,r,o,c[a])).hovered;a--);return n},n.setHoverInEffect=function(e,t){var n=this,a=n.getFromEnv("chart");n.setData({hoveredIndex:e,hoveredDomainIndex:t},!0),a.fireEvent("timeSpanMinMarkerHovered",{senderTimeMarker:n,hoveredIndex:e,hoveredFromOutside:!0})},n.setHoverOutEffect=function(){var e=this,t=e.config,n=e.getFromEnv("chart");e.setData({hoveredIndex:i,lastHoveredMarkerIndex:t.hoveredIndex,lastHoveredDomainIndex:t.hoveredDomainIndex},!0),n.fireEvent("timeSpanMinMarkerHovered",{senderTimeMarker:e,hoveredIndex:i,hoveredFromOutside:!0})},n.fireMarkerEvents=function(e,t,n){var a,r,o,l,s,c,d,f=this,h=f.config,g=h.valueArr,p=h.textArr,m=h.domainArr,v=f.getFromEnv("UTC"),y=f.getFromEnv("chart");switch(e){case"fc-mouseover":d="timeMarkerRollOver",a=t,r=n;break;case"fc-mouseout":a=h.lastHoveredMarkerIndex,r=h.lastHoveredDomainIndex,a!==i&&r!==i&&(d="timeMarkerRollOut");break;case"fc-click":d="timeMarkerClick",a=t,r=n}d&&(c=g[a].timeFormat,o=v?u["default"].utcFormatter(c):u["default"].formatter(c),l=+m[a][r].start,s=+m[a][r].end,y.fireChartInstanceEvent(d,{start:l,startText:o.format(l),end:s,endText:o.format(s),formatter:c,type:g[a].type,label:p[a]}))},n.getToolTextConfiguration=function(e,t){var n,a=this.getFromEnv("tooltipStyle"),i=a.header,r=a.body,o=40,l=26,s=this.getFromEnv("smartLabel");s.setStyle({"font-size":i["font-size"],"font-family":i["font-family"],"font-weight":i["font-weight"]}),o+=(n=s.getOriSize(e[0])).width,l+=n.height;var c=this.getClassName("tooltip-text-margin"),u=this.getClassName("tooltip-text-padding"),d=this.getCSPNonce();return e[1]?(s.setStyle({"font-size":r["font-size"],"font-family":r["font-family"],"font-weight":r["font-weight"]}),l+=(n=s.getOriSize(e[1])).height,o=Math.max(o,n.width),{header:'<style nonce="'+d+'">.'+c+' {margin: 5px;}</style><div class="'+c+'">'+e[0]+"</div>",body:'<style nonce="'+d+'">.'+c+' {margin: 5px;}</style><div class="'+c+'">'+e[1]+"</div>",dimensions:{width:o,height:"full"!==t?l:0}}):{header:'<style nonce="'+d+'">.'+u+' {padding: 5px;}</style><div class="'+u+'">'+e[0]+"</div>",body:"",dimensions:{width:o,height:"full"!==t?l:0}}},n.getMarkerAndLabelConfiguration=function(e,t){var n,a,i,r,o,l,s,c,u,d,f=this,h=f.config,g=f.getLinkedParent().config,m=g.padding,v=m.left,y=m.right,b=m.top,x=m.bottom,k=f.config.xScale,S=k.getDomain(),_=h.valueArr[e],C=_.repeat;return n=k.getRangeValue(_.start),d=k.getRangeValue(_.end),i="full"===(r=_.type)?g.canvasTop+2+b:g.canvasTop+g.canvasHeight-2-b+x,o="full"===r?g.canvasTop-g.padding.top:g.canvasTop+g.canvasHeight-(t+4)-b+x,l="full"===r?g.canvasHeight:t+4,h.markerDetails[e].markerDim=[],h.domainArr[e]=[],h.markerDetails[e].index=e,!C&&p(+_.start,+_.end,+S[0],+S[1])?(h.domainArr[e].push({start:_.start,end:_.end}),h.markerDetails[e].markerDim.push({x:n-v+y,y:o,width:d-n,height:l}),a=n-v+y,c=_.start,u=_.end):C&&(h.domainArr[e]=s=f.getAllValidDomains(_.start,_.end,_.repeat),s.length&&(a=k.getRangeValue(s[0].start)-v+y,c=s[0].start,u=s[0].end,s.forEach((function(t){n=k.getRangeValue(t.start),d=k.getRangeValue(t.end),h.markerDetails[e].markerDim.push({x:n-v+y,y:o,width:d-n,height:l}),C.multiplier<0&&(a=n-v+y,c=t.start,u=t.end)})))),h.markerDetails[e].type=r,{labelConfiguration:{x:a,y:i,width:d-n-4,startDomain:c,endDomain:u}}},n.getAllValidDomains=function(e,t,n){var a=this.config.xScale.getDomain(),i=e,r=t,o=[],l=Number(r)-Number(i);if(+i<+a[0]&&n.multiplier>0)for(;!p(+i,+r,+a[0],+a[1])&&+i<=+a[1];)i=n.interval.offset(i,n.multiplier),r=new Date(Number(i)+l);for(;p(+i,+r,+a[0],+a[1]);)o.push({start:i,end:r}),i=n.interval.offset(i,n.multiplier),r=new Date(Number(i)+l);return o},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,a,i,r,o,l,s,g,p,m,v,y,b=this,x=b.config,k=[],S=[],_=b.getFromEnv("UTC"),C=b.getFromEnv("focusScalesX")[0].applicableClippings,w=C.repeatClips,D=C.singleClips,E=[],T=b.getFromEnv("getStyleDef"),M=b.getFromEnv("textStyle"),I=b.getFromEnv("baseTextStyle"),F=t.timeMarker||[],L=Object.assign({},M,x.defaultStyle.text,I);for(F.sort((function(e,t){return+new Date(e.start)-+new Date(t.start)})),s=0,g=F.length;s<g;s++)if((p=F[s]).start&&p.start!==c.BLANKSTRING&&(r=(0,c.pluck)(p.timeformat,t.defaultFormat),i=(a=_?u["default"].utcParser(r):u["default"].parser(r)).parse(p.start),o=a.parse(p.end),i&&o)){if(+i>+o){var O=[o,i];i=O[0],o=O[1]}(i=(0,d.getUnclippedValue)(+i,w,D,{clampDirection:"up"}))>(o=(0,d.getUnclippedValue)(+o,w,D,{clampDirection:"down"}))||(n={start:new Date(i),end:new Date(o),startString:p.start,endString:p.end,timeFormat:r,type:p.type||x.type},p.repeat&&p.repeat.unit&&0!==Math.floor(+p.repeat.multiplier)&&f(l=p.repeat.unit.toLowerCase())&&(n.repeat={interval:h(l,_),multiplier:("quarter"===l?3:1)*(0,c.pluckNumber)(p.repeat.multiplier,1)}),y=p.style||{},v=Object.assign({},L,{"vertical-align":"full"===n.type?"top":"bottom"},T(y.text)),m=Object.assign({},x.defaultStyle.marker,T(y.marker)),E.push(n),k.push({text:v,"text:hover":Object.assign({},v,T(y["text:hover"])),marker:m,"marker:hover":Object.assign({},m,T(y["marker:hover"]))}),S.push((0,c.pluck)(p.label,"")))}t.xScale&&(x.xScale=t.xScale),x.hoveredIndex=t.hoveredIndex,x.hoveredDomainIndex=t.hoveredDomainIndex,x.lastHoveredMarkerIndex=t.lastHoveredMarkerIndex,x.lastHoveredDomainIndex=t.lastHoveredDomainIndex,t.timeMarker&&(x.valueArr=E,x.styleArr=k,x.textArr=S,x.showTimeSpanMarkerTooltipAt=t.showTimeSpanMarkerTooltipAt)},n.getAllLabelsProps=function(e,t){var n,a,i,r,o,l,s,f,h,g=this,p=g.config,m=g.getFromEnv("smartLabel"),v=p.valueArr,y=p.domainArr[e],b=p.markerDetails[e],x=this.getFromEnv("focusScalesX")[0].applicableClippings,k=x.repeatClips,S=x.singleClips,_=(0,d.getUnclippedValue)(+t.startDomain,k,S),C=(0,d.getUnclippedValue)(+t.endDomain,k,S),w=g.getFromEnv("UTC"),D=t.x,E=t.y,T=t.width,M=m._lineHeight,I=[],F=p.textArr[e];if(C<=_)return[];for(F&&(r=m.getSmartText((0,c.parseUnsafeString)(F),T,M),I.push({dim:{x:D+T/2+2,y:E-2},text:(0,c.parseUnsafeString)(r.text)})),a=v[e].timeFormat,f=0,h=y.length;f<h;f++)s=[],n=y[f],i=b.markerDim[f],o=(l=w?u["default"].utcFormatter(a):u["default"].formatter(a)).format(n.start)+" - "+l.format(n.end),s.push(o),F&&s.push(r.oriText),i.toolTextArr=s;return I},n.createGroup=function(){var e=this,t=e.getLinkedParent().config,n=t.padding,a=t.canvasBGLeft-n.left,i=t.canvasBGTop-n.top,r=t.canvasBGWidth,o=t.canvasBGHeight,l=["M"+a+","+i,"L"+(a+r)+","+i,"L"+(a+r)+","+(i+o),"L"+a+","+(i+o)+"Z"];e.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:e,label:"timeMarker",attr:{name:"time-marker-min-group","clip-path":l},id:"timeMarker"})},n.drawAllLabels=function(e,t){var n=this;e.forEach((function(e,a){n.addGraphicalElement({el:"text",attr:{text:e.text,x:e.dim.x,y:e.dim.y,opacity:t.opacity},css:t,container:{label:"timeMarker"},id:"time-marker-label-"+a,component:n,label:"label"},!0)}))},n.draw=function(){var e,t,n,a,i,r,o,l,s,u,d=this,f=d.config,h=d.getFromEnv("smartLabel"),g=f.valueArr,p=f.styleArr;for(d.createGroup(),f.markerDetails=[],i=0,u=g.length;i<u;i++)if(o=i===f.hoveredIndex,f.markerDetails[i]={},l=o?p[i]["text:hover"]:p[i].text,s=o?p[i]["marker:hover"]:p[i].marker,h.setStyle({"font-size":l["font-size"]||p[i].text["font-size"],"font-family":l["font-family"]||p[i].text["font-family"],"font-weight":l["font-weight"]||p[i].text["font-weight"]}),h.getOriSize((0,c.parseUnsafeString)(f.textArr[i])),t=d.getMarkerAndLabelConfiguration(i,f.textArr[i]?h._lineHeight:13),n=f.markerDetails[i].markerDim,a=t.labelConfiguration,n.length){for(e=d.getAllLabelsProps(i,a),r=0;r<n.length;r++)d.addGraphicalElement({el:"rect",attr:{x:n[r].x,y:n[r].y,width:n[r].width,height:n[r].height,opacity:s.opacity},container:{label:"timeMarker"},css:s,id:"time-span-marker-"+i+r,component:d,label:"line"});d.drawAllLabels(e,l)}},n.getType=function(){return"timeMarker"},n.getName=function(){return"timeSpanMinMarker"},t}(o.SmartRenderer),v=m;t["default"]=v},978:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=function(e){function t(t){var n;n=e.call(this,t)||this;var a=(0,i["default"])(n);return n._registry={},n._limitChangeHandler=function(e){var t,n=a.getRegistry();for(t in n)n.hasOwnProperty(t)&&n[t].updateOnLimitChange&&n[t].updateOnLimitChange(e);a.setData({},!0)},n}(0,r["default"])(t,e);var n=t.prototype;return n.configureAttributes=function(e){void 0===e&&(e={});var t,n=this,a=n.getRegistry(),i=[{}];for(t in a)a.hasOwnProperty(t)&&a[t]&&i.push(a[t].getToolInfo());n.getFromEnv("selectorToolbar").setData({child:Object.assign.apply(Object,i),toolbarhdirection:1},!0),n.addExtEventListener("focusLimitChanged",n._limitChangeHandler,n.getFromEnv("chart")),n.addExtEventListener("contextLimitChanged",n._limitChangeHandler,n.getFromEnv("chart"))},n.getRegistry=function(){return this._registry},n.register=function(e,t){this._registry[e]=t},n.deRegister=function(e){delete this._registry[e]},t}(n(290).SmartRenderer);t["default"]=o},899:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.createDivString=t["default"]=void 0;var i,r=a(n(288)),o=a(n(294)),l="fc-mouseover",s="fc-mousedown",c="fc-mouseup",u="fc-mousemove",d="fc-mouseout",f="fc-click",h=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n=e.replaceAll("style","").replaceAll("'","").replaceAll("=",""),a="styleStrClass-"+Math.random().toString(36).substring(2);return'\n <style nonce="'+function(){var e=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(e){var t=e.getAttribute("content");if(t){var n=t.match(/'nonce-([^']+)'/);if(n)return n[1]}}return null}()+'">\n .'+a+" {\n "+n+"\n }\n </style>\n "+'<div class="'+a+'">'+t+"</div>"};t.createDivString=h;var g=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var n=t.prototype;return n.configure=function(){e.prototype.configure.call(this);var t,n=this,a=n.config,i=n.getFromEnv("chartConfig"),r=n.getFromEnv("mouseTracker");a.showTooltip=i.showTooltip,!a.eventAdded&&n.addExtEventListener("canvasHovered",(t=n,a.eventAdded=!0,function(){"timeMarker"===(arguments[1].hoveredInfo&&arguments[1].hoveredInfo.component&&arguments[1].hoveredInfo.component.getType())?(arguments[1].e.type===l&&t._triggerMouseActions({data:{hoveredInfo:{},e:{}}}),t._triggerMarkerMouseActions.apply(t,arguments)):t._triggerMouseActions.apply(t,arguments)}),r)},n.mouseoutHandler=function(e,t,n,a){var i=this.config;a&&a.config&&(a.setHoverOutEffect([n]),a._firePlotEvent&&a._firePlotEvent(d,n,e)),i.showTooltip&&this.getFromEnv("toolTipController").hide(i.currentToolTip),delete i._lastDatasetIndex,delete i._lastPointIndex},n._triggerMarkerMouseActions=function(e){var t,n,a,r,o,l=this,s=e.data,c=s.e,u=l.getFromEnv("toolTipController"),f=l.getFromEnv("tooltipStyle"),g=s.chartX,p=s.chartY,m=l.getLinkedParent(),v=m.getTranslation(),y=s.hoveredInfo,b=y.hovered,x=l.config,k=x.showTooltip,S=y.component,_=y.pointObj.hoveredMarkerDim||{},C="",w=y.hovered&&S.getToolTextConfiguration(_.toolTextArr,y.pointObj.type),D=m.isWithinCanvas(g-(_.thresholdX||0),p-(_.thresholdY||0));if(b&&D){var E=w.header,T=w.body;if(C=h(f.headerStyleString,E)+h(f.bodyStyleString,T),t=g,n=_.y-w.dimensions.height+v.y,k&&(x.currentToolTip=u.drawAt(t,n,C,x.currentToolTip,m)),S.setHoverInEffect(y.pointIndex,y.pointObj.index,!1),o=(a=l.getMakerMouseEvents(c,y.pointIndex,y.pointObj.index)).length)for(x._lastMarkerIndex=y.pointIndex,x._lastDomainIndex=y.pointObj.index,r=0;r<o;r++)S.fireMarkerEvents(a[r],y.pointIndex,y.pointObj.index)}else k&&u.hide(x.currentToolTip),S.setHoverOutEffect(),x._lastMarkerIndex!==i&&x._lastDomainIndex!==i&&S.fireMarkerEvents(d,y.pointIndex,y.pointObj.index),x._lastMarkerIndex=i,x._lastDomainIndex=i},n._triggerMouseActions=function(e){var t,n,a,r,o,l,s,c,u,d,f=this,g=e.data,p=f.getFromEnv("toolTipController"),m=f.getFromEnv("tooltipStyle"),v=f.getFromEnv("dataSource"),y=v.tooltip?v.tooltip.tooltext:null,b=g.i,x=g.e,k=g.chartX,S=g.chartY,_=g.hoveredInfo,C=b>=0,w=f.getLinkedParent(),D=w.getChild(i,"dataset"),E=f.config,T=E._lastDatasetIndex,M=E._lastPointIndex,I=w.getTranslation(),F="",L="",O="",P=_&&_.pointIndex,A=w.isWithinCanvas(k,S);if(_){if(C&&(_.datasetIndex=b,d=f.getMouseEvents(x,_.datasetIndex,P,_.component.getName(),_.markerObj)),(!A||(!C||d&&d.fireOut)&&void 0!==T)&&(d&&!d.events.length?E.mouseoutTimer=setTimeout((function(){f.mouseoutHandler(x,T,M,E._lastComponentHovered)}),20):(f.mouseoutHandler(x,T,M,E._lastComponentHovered),clearTimeout(E.mouseoutTimer))),A&&D.length&&E.showTooltip){if(l=_.component.getFromEnv("xScale").getRange(),D.forEach((function(e,t){"visible"===(u=e.config).visibility&&(r=e._getTooltext(C,b===t,e._getHoveredBin()),y?O=r:O+=r,u.dataInfo[e._getHoveredBin()]&&r&&(o=u.dataInfo[e._getHoveredBin()],c=e))})),c){var B=c._getDateForToolText(c._getHoveredBin());F=B.header,L=B.body}O=y?h("",L+O):h(m.headerStyleString,F)+h(m.bodyStyleString,L+O),(t=C?_.pointObj:o)&&""!==O&&t.endXPosition>l[0]&&t.x<l[1]?E.currentToolTip=p.drawAt(t.x+(t.width||0)/2+5+I.x,(t.colY||t.y)+I.y,O,E.currentToolTip,w):p.hide(E.currentToolTip)}if(C&&(n=d.events&&d.events.length)){if(E._lastDatasetIndex=_.datasetIndex,E._lastPointIndex=P,s=E._lastComponentHovered=_.component,E._lastComponentHoveredName=s&&s.getName(),s.setHoverInEffect([P]),E.showTooltip&&"dataMarker"===s.getType()){var N=s._getTooltext(P);F=N.header,L=N.body,O=h(m.headerStyleString,F)+h(m.bodyStyleString,L),E.currentToolTip=p.draw(x,O,E.currentToolTip)}for(a=0;a<n;a+=1)s&&s._firePlotEvent&&s&&s._firePlotEvent&&s._firePlotEvent(d.events[a],P,x)}}},n.getMouseEvents=function(e,t,n,a){var i=this.config,r=i._lastDatasetIndex,o=i._lastPointIndex,h=i._lastComponentHoveredName,g={fireOut:!1,events:[]};switch(e.type){case f:g.events.push(f);break;case u:h===a&&r===t&&o===n?(clearTimeout(i.mouseoutTimer),g.events.push(u)):(g.events.push(l),g.fireOut=!0);break;case s:h===a&&r===t&&o===n||(g.fireOut=!0,g.events.push(l)),g.events.push(s);break;case l:h===a&&r===t&&o===n?clearTimeout(i.mouseoutTimer):(g.fireOut=!0,g.events.push(l));break;case c:g.events.push(c);break;case d:g.fireOut=!0}return g},n.getMakerMouseEvents=function(e,t,n){var a=this.config,i=a._lastMarkerIndex,r=a._lastDomainIndex,o=[];switch(e.type){case f:o.push(f);break;case u:i===t&&r===n?o.push(u):o.push(l);break;case l:i!==t&&r!==n&&o.push(l)}return o},t}(o["default"]),p=g;t["default"]=p},905:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(906)),r=a(n(907)),o=a(n(920)),l=a(n(929)),s=a(n(931)),c=a(n(933)),u=a(n(936)),d=a(n(937)),f=n(274),h=a(n(938)),g=a(n(940)),p=a(n(504)),m=function(e){return e.split(p["default"])[0]},v=function(e){return e.split(p["default"]).slice(1).join(p["default"])},y=function(e){return e?"visible":"hidden"},b=function(e){return"ohlc"===e||"candlestick"===e},x=function(e){return"column-range"===e||"area-range"===e},k=function(e){return"avg"===e?"average":e},S=function(e){var t,n={};return"string"==typeof e?(t=e.split(p["default"]),k(t[t.length-1])):(e.forEach((function(e){e&&(t=e.split(p["default"]),n[t[0].trim()]=k(t[1].trim()))})),n)},_=function(e){var t,n;return e.stack||!e.tableInfo.filterItem?((n={})[e.value[0]]=m(e.value[0]),n):((t={})[e.value[0]]=e.tableInfo.filterItem,t)};t["default"]=function(e){var t=e.getFromEnv("chart"),n=e.getFromEnv("legendMap"),a=e.config,k=e.getFromEnv("dataSource").plotconfig||{},C=e.getFromEnv("ordinalScale"),w=a.isContext,D=a.multiSeriesDatasetMap,E=a.enableMarkers,T=w?t.config.contextAxesX:t.config.focusAxesX,M=w?t.config.contextAxesY:t.config.focusAxesY,I=e.getFromEnv("prediction"),F=I?e.getFromEnv("baseTimeConverter").parse(I.date):f.UNDEF;I.dateMs=I.enabled?F?F.getTime():Date.now():f.UNDEF,w&&a.plotConfigs.forEach((function(e){var t=e.plots,n=t.filter((function(e){return"column"===e.plottype})).length>1?"area":null;t.forEach((function(e){x(e.plottype)?(e.value=e.high,e.isRange=!0,e.plottype="string"==typeof e.typeinnavigator&&e.typeinnavigator||"line"):b(e.plottype)?(e.value=e.close||e.low||e.high||e.open||[],e.plottype="string"==typeof e.typeinnavigator&&e.typeinnavigator||"line"):"column"===e.plottype&&(e.plottype=e.typeinnavigator||n||(e.value.length>1?"area":"line"))}))})),a.plotConfigs.forEach((function(t,F){var L=T[t.x],O=M[t.y],P=L.binDecider,A=L.scale,B=O.scale,N=O.plotstyle||{},H=t.plots.filter((function(e){return"column"===e.plottype})),j=H.length,R=H.map(_),V=0;t.plots.forEach((function(t,_){var T,M,H,G,Y,U,z,X,W=t.tableInfo,q=W.table,Z=W.filterItem,$=O.plot[t.plotInAxisIndex],K=$.style||{},Q=$.connectnulldata,J=q.getData().data,ee=q,te=L.timeFormatterFn,ne=[$.value],ae={};if($.group&&(ae[$.group]=Z),T=(0,f.extend2)((0,f.extend2)({},N),K),!w&&(b(t.plottype)||x(t.plottype))){var ie=t.close||t.open||t.high||t.low;(ie.length>1||Z)&&(t.plottype="line",t.value=ie)}if(G=t.plottype,M=k[G]||{},H=k.generic||{},z=function(e){switch(e){case"column":return o["default"];case"candlestick":return l["default"];case"column-range":return h["default"];case"area-range":return g["default"];case"ohlc":return s["default"];default:return r["default"]}}(G),"column"===G&&(Y=V++,U=j),b(G)){var re=(0,i["default"])([t.open||[t.open],t.high||[t.high],t.low||[t.low],t.close||[t.close]].filter((function(e){return!!e}))),oe=$.open,le=$.high,se=$.low,ce=$.close;(oe||le||se||ce)&&(ne[0]={open:oe,high:le,low:se,close:ce}),re.forEach((function(n,a){var i=e.attachChild(z,"dataset",""+t.value+G+a+_+F);i.addToEnv("binDecider",P),i.addToEnv("xScale",A),i.addToEnv("yScale",B),i.configure({data:J,scaleX:A,scaleY:B,formatterFn:O.formatterFn,timeFormatterFn:te,yAxisAlign:(0,f.pluck)(O.align,"left"),styleConfig:T,plotCosmetics:M,genericCosmetics:H,aggregation:S(n),prefix:O.formatLabelPrefix,suffix:O.formatLabelSuffix,indices:[ee.indexOf(W.position)].concat(n.map((function(e){return ee.indexOf(e)}))),enableMarkers:E,primaryColor:!0,type:G,series:t.value,measures:ne,calculateFromContext:w,prediction:I,useNullStyles:!w})}))}else if(x(G)){var ue=(0,i["default"])([t.high||[t.high],t.low||[t.low]].filter((function(e){return!!e}))),de=$.high,fe=$.low;(de||fe)&&(ne[0]={high:de,low:fe}),t.name?(X=n[t.name]&&n[t.name].visibility)===f.UNDEF&&(X=!0):X=!0,ue.forEach((function(n,a){var i=e.attachChild(z,"dataset",""+t.value+G+a+_+F);i.addToEnv("binDecider",P),i.addToEnv("xScale",A),i.addToEnv("yScale",B),i.configure({data:J,scaleX:A,scaleY:B,visibility:y(X),formatterFn:O.formatterFn,timeFormatterFn:te,yAxisAlign:(0,f.pluck)(O.align,"left"),styleConfig:T,plotCosmetics:M,genericCosmetics:H,aggregation:S(n),prefix:O.formatLabelPrefix,suffix:O.formatLabelSuffix,connectNullData:Q,indices:[ee.indexOf(W.position)].concat(n.map((function(e){return ee.indexOf(e)}))),enableMarkers:E,primaryColor:t.name?C.getRangeValue(t.name):C.getRangeValue(t.high[0]+p["default"]+t.low[0]),type:G,series:t.value,measures:ne,calculateFromContext:w,prediction:I,useNullStyles:!w})}))}else if(t.stack&&function(e){return"area"===e||"smooth-area"===e||"step-area"===e||"column"===e}(G)){var he=ee.indexOf(W.position),ge=""+v(t.value[0])+p["default"]+"sum",pe=(new c["default"]).setValueAccessor((function(e,t){return(n[m(t)]||{}).visibility?e[ee.indexOf(t)]:0})).setKeysAccessor((function(){return t.value.filter((function(e){return ee.indexOf(e)>=0}))})).setOffset("log"===B.getType()?d["default"]:u["default"]);ee.addColumns({name:ge,type:"number",calcFn:function(e,a){return t.value.reduce((function(t,i){return(n[m(i)]||{}).visibility?t+e[a[i]]:t}),0)}});var me=pe.generate(ee.getData().data),ve=me.length;me.forEach((function(t,i){var r=e.attachChild(z,"dataset",t.key+G+i+_+F),o=m(t.key),l=t.map((function(e){return[e.data[he],e[0],e[1],e.data[ee.indexOf(ge)]]}));(X=n[o]&&n[o].visibility)===f.UNDEF&&(X=!0),$.stack&&(ae[$.stack]=o),r.addToEnv("binDecider",P),r.addToEnv("xScale",A),r.addToEnv("yScale",B),Z?D[""+Z+p["default"]+t.key]=r:D[t.key]=r,r.configure({data:l,datasetIndex:i,seriesLength:ve,aggregation:S(t.key),visibility:y(X),scaleX:A,scaleY:B,timeFormatterFn:te,legendInteracted:a.legendInteracted,groupIndex:Y,yAxisAlign:(0,f.pluck)(O.align,"left"),totalGroups:U,formatterFn:O.formatterFn,prefix:O.formatLabelPrefix,suffix:O.formatLabelSuffix,styleConfig:T,plotCosmetics:M,genericCosmetics:H,connectNullData:Q,indices:[0,2,1,3],primaryColor:C.getRangeValue(o),type:G,series:o,enableMarkers:E,measures:ne,calculateFromContext:w,seriesInfo:Object.assign({},ae),prediction:I,useNullStyles:!w})}))}else{var ye;if(t.isRange){var be,xe=(0,i["default"])([t.high||[t.high],t.low||[t.low]].filter((function(e){return!!e})));ye=""+v(t.high[0])+p["default"]+v(t.low[0])+p["default"]+"mean",xe.forEach((function(e){be=e.map((function(e){return ee.indexOf(e)})),ee.addColumns({type:"number",name:ye,calcFn:function(e){return(e[be[0]]+e[be[1]])/2}})}))}t.value.forEach((function(i,r){var o,l,s,c=t.stack?m(i):t.isRange?t.name?t.name:t.high[0]+p["default"]+t.low[0]:Z||m(i),u=e.attachChild(z,"dataset",c+G+r+_+F);(X=n[c]&&n[c].visibility)===f.UNDEF&&(X=!0),"column"===G&&(-1!==(l=(o=R.filter((function(e){return n[Object.values(e)[0]].visibility}))).findIndex((function(e){var t=Object.keys(e)[0];return Z?t===i&&e[t]===Z:t===i})))?s=o.length:l=f.UNDEF),t.stack&&(ae[t.stack]=c),u.addToEnv("binDecider",P),u.addToEnv("xScale",A),u.addToEnv("yScale",B),u.configure({data:J,scaleX:A,scaleY:B,timeFormatterFn:te,legendInteracted:a.legendInteracted,groupIndex:l,totalGroups:s,visibility:y(X),yAxisAlign:(0,f.pluck)(O.align,"left"),formatterFn:O.formatterFn,prefix:O.formatLabelPrefix,suffix:O.formatLabelSuffix,styleConfig:T,aggregation:S(i),plotCosmetics:M,genericCosmetics:H,connectNullData:Q,indices:[ee.indexOf(W.position),t.isRange?ee.indexOf(ye):ee.indexOf(i)],primaryColor:C.getRangeValue(c),type:G,series:c,enableMarkers:E,measures:ne,calculateFromContext:w,seriesInfo:Object.assign({},ae),prediction:I,useNullStyles:!w})}))}}))}))}},944:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(945));t["default"]=function(e){var t=e.config;t.gridBandSupported&&t.showGridBand&&e.attachChild(i["default"],"gridBand").configure({style:t.gridBandStyle})}},894:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(895));t["default"]=function(e){e.config.enableGridLines&&e.attachChild(i["default"],"gridLine").configure({direction:e.config.gridLineDirection,styleGridLines:e.config.styleGridLines,defaultStyle:e.config.gridLineStyle})}},943:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(942)),r=n(274);t["default"]=function(e){var t=e.getFromEnv("dataSource"),n=e.getFromEnv("chart-attrib");e.attachChild(i["default"],"horizontalCrossLine").configure({type:"horizontal",inputStyle:t.crossline&&t.crossline.style||{},showTextOutline:(0,r.pluckNumber)(n.textoutline,0)})}},902:(e,t,n)=>{t.__esModule=!0,t["default"]=function(e){var t=e.config;t.enableInteraction&&!t.dbTapEventAdded&&(e.addEventListener("fc-dbclick",i(e)),t.dbTapEventAdded=!0)};var a=n(901),i=function(e){return function(t){var n,i=e.getLinkedParent(),o=e.config.xConfigs[0].scale,l=o.getRange(),s=l[0],c=l[1];s+=r,c-=r,n=(0,a.clampWithinContextRange)([s,c],o,e.getFromEnv("contextScalesX")[0]),i.setPixelLimit([].concat(n),o,["up","down"],{name:"canvasDblTap"})}},r=20},904:(e,t,n)=>{t.__esModule=!0,t["default"]=function(e){var t=e.config;t.enableInteraction&&!t.pinchEventAdded&&(e.addEventListener("fc-pinchstart",o),e.addEventListener("fc-pinchmove",l(e)),t.pinchEventAdded=!0)};var a,i=n(274),r=n(901),o=function(e){a=e.originalEvent.data.distanceX},l=function(e){return function(t){var n,o=e.getLinkedParent(),l=e.config.xConfigs[0].scale,s=l.getRange(),c=s[0],u=s[1],d=t.originalEvent.data.distanceX,f=d-a,h=(0,i.getMouseCoordinate)(e.getFromEnv("chart-container"),t.originalEvent,o),g=e.getTranslation(),p=g?g.x:0,m=h.chartX-p,v=m-c,y=u-m,b=v+y;a=d,c+=2*f*v/b,u-=2*f*y/b,n=(0,r.clampWithinContextRange)([c,u],l,e.getFromEnv("contextScalesX")[0]),o.setPixelLimit([].concat(n),l,["down","up"])}}},903:(e,t)=>{t.__esModule=!0,t["default"]=function(e){var t=e.config;t.enableInteraction&&!t.swipeEventAdded&&(e.addEventListener("fc-dragstart",a(e)),e.addEventListener("fc-dragmove",i(e)),e.addEventListener("fc-dragend",r(e)),t.swipeEventAdded=!0)};var n,a=function(e){return function(){var t=e.getFromEnv("chart"),a=t.getFocusLimit();n=0,e.getChildren("mouseTracker")[0].deactivate(),t.fireChartInstanceEvent("canvasDragStart",{start:+a[0],end:+a[1]})}},i=function(e){return function(t){var a,i=e.getLinkedParent(),r=e.config.xConfigs[0].scale,o=r.getRange(),l=o[0],s=o[1],c=t.originalEvent.data,u=c[0]-n;s-=u,l-=u,a=u<0?"up":"down",i.setPixelLimit([l,s],r,[a,a],{name:"canvasDrag"})&&(n=c[0])}},r=function(e){return function(){var t=e.getFromEnv("chart"),n=t.getFocusLimit();e.getChildren("mouseTracker")[0].activate(),t.fireChartInstanceEvent("canvasDragEnd",{start:+n[0],end:+n[1]})}}},900:(e,t,n)=>{t.__esModule=!0,t["default"]=function(e){var t=e.config;t.enableInteraction&&!t.wheelEventAdded&&(e.addEventListener("fc-wheel",c(e)),t.wheelEventAdded=!0)};var a=n(274),i=n(901),r="vertical",o="up",l="down",s=function(e,t){switch(e){case WheelEvent.DOM_DELTA_LINE:return 17*t;case WheelEvent.DOM_DELTA_PAGE:return 53*t;default:return t}},c=function(e){return function(t){var n,c,u,d,f,h,g,p,m,v,y,b=e.getLinkedParent(),x=e.config.xConfigs[0].scale,k=x.getRange(),S=k[0],_=k[1],C=t.originalEvent;if(Math.abs(C.deltaY)>Math.abs(C.deltaX)?(n=r,d=s(C.originalEvent.deltaMode,C.deltaY)):(n="horizontal",d=s(C.originalEvent.deltaMode,C.deltaX)),n===r){f=(0,a.getMouseCoordinate)(e.getFromEnv("chart-container"),t.originalEvent,b),g=(h=e.getTranslation())?h.x:0,S-=2*d*(m=(p=f.chartX-g)-S)/(y=m+(v=_-p)),_+=2*d*v/y;var w=(0,i.clampWithinContextRange)([S,_],x,e.getFromEnv("contextScalesX")[0]);S=w[0],_=w[1],c=d<0?o:l,u=d>=0?o:l,b.setPixelLimit([S,_],x,[c,u],{name:"canvasWheel"})}else _+=d,S+=d,u=c=d>=0?o:l,b.setPixelLimit([S,_],x,[c,u],{name:"canvasWheel"})}}},979:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(630)),r=n(274);t["default"]=function(e){var t,n=e.config.showLegend,a=e.config.mergedLegendStyle,o=a.color=(0,r.pluck)(a.fill,"#5f5f5f"),l=(0,r.pluckNumber)(a.opacity,1),s=(0,r.pluckNumber)(a["fill-opacity"],1),c=Object.assign({},e.getFromEnv("baseTextStyle"),a);if(c["font-size"]=+(c["font-size"]+"").replace(/px/,""),n){(0,r.componentFactory)(e,i["default"],"legend",1,[{drawcustomlegendicon:1,legendiconsides:4,alignlegendwithcanvas:1,legendborderthickness:0,legendiconscale:1.3,legendbgalpha:0,legendFontColor:o,style:{text:c}}]),t=e.getChildren("legend")[0],e.addToEnv("legend",t),t.setStateCosmetics("hover",(function(e,t){return t.hasState("hidden")||(e.text||(e.text={}),e.text.fill=(0,r.convertColor)(o,l*s*100),e.text.cursor="inherit"),e}));!function n(t){for(var a in void 0===t&&(t={}),t)if(t.hasOwnProperty(a)){var i=t[a];i.hasOwnProperty("visibility")?e._addLegend(i):n(i)}}(e.getFromEnv("legendMap"))}else(t=e.getChildren("legend")&&e.getChildren("legend")[0])&&t.remove()}},922:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=function(e){var t,n=e.getFromEnv("dataSource"),a=e.config.series,d=e.getFromEnv("focusScalesX")[0].applicableClippings,f=d.repeatClips,h=d.singleClips,g=e.config,p=g.measures,m=g.seriesInfo,v=void 0===m?{}:m,y=g.enableMarkers,b=g.visibility,x=g.isStock,k=g.isRange,S=[];y&&(t=n.datamarker)&&(t.forEach((function(e){var t=Object.assign({},e),n=t.value,i=t.series,d=!0,g=c["default"].parser(e.timeformat).parse(e.time);if(!isNaN(+g)&&(0,u.getUnclippedValue)(g,f,h)===+g){if(n&&((0,r["default"])(n)&&(n=[n]),(0,o["default"])(n)))if(n=n.filter(r["default"]),(k||x)&&(0,s["default"])(p[0]))for(var m=Object.values(p[0]),y=0;y<n.length&&d;++y)d=m.includes(n[y]);else d=(0,l["default"])(n,p);if(Object.keys(v).length&&(0,s["default"])(i))for(var b,_=Object.keys(i),C=_.length;d&&C--;)b=_[C],(0,r["default"])(i[b])&&i[b]!==v[b]&&(d=!1);d&&(x||k?t.measures=p:t.seriesname=a,S.push(t))}})),0!==S.length&&e.attachChild(i["default"],"dataMarker").configure({data:S,isStock:x,isRange:k,visibility:b}))};var i=a(n(923)),r=a(n(857)),o=a(n(446)),l=a(n(845)),s=a(n(481)),c=a(n(350)),u=n(864)},896:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=function(e){var t;e.config.enableMouseTracking&&(t=e.attachChild(i["default"],"mouseTracker"),e.addToEnv("mouseTracker",t),t.config.mouseTrackerEventAdded||(t.addEvents(),t.config.mouseTrackerEventAdded=!0))};var i=a(n(897))},982:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(983)),r=n(274);t["default"]=function(e){(0,r.componentFactory)(e,i["default"],"multicanvasCrosslineManager",1),e.getChildren("multicanvasCrosslineManager")[0].configure()}},890:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(891));t["default"]=function(e){e.config.yConfigs.forEach((function(t){var n=t.scale;e.config.enableReferenceLine&&Array.isArray(t.referenceline)&&t.referenceline.forEach((function(a){var r=e.attachChild(i["default"],"referenceLine");r.addEventListener("fc-mouseover",r.hoverInHandler),r.addEventListener("fc-mousemove",r.moveHandler),r.addEventListener("fc-mouseout",r.hoverOutHandler),r.addEventListener("fc-click",r.clickHandler),r.configure({yScale:n,direction:"left"===t.align?"right":"left",formatterFn:t.formatterFn,prefix:t.formatLabelPrefix,suffix:t.formatLabelSuffix,referenceLine:a})}))}))}},892:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(893)),o=n(274),l=function(e){return e===i?i:1};t["default"]=function(e){e.config.yConfigs.forEach((function(t){var n=t.scale,a=e.getFromEnv("chart-attrib");e.config.enableReferenceZone&&Array.isArray(t.referencezone)&&t.referencezone.forEach((function(i){if(l(i.valuemin)&&l(i.valuemax)){var s=e.attachChild(r["default"],"referenceZone");s.addEventListener("fc-mouseover",s.hoverInHandler),s.addEventListener("fc-mousemove",s.moveHandler),s.addEventListener("fc-mouseout",s.hoverOutHandler),s.addEventListener("fc-click",s.clickHandler),s.configure({yScale:n,direction:"left"===t.align?"right":"left",formatterFn:t.formatterFn,prefix:t.formatLabelPrefix,suffix:t.formatLabelSuffix,referenceLine:i,extStyle:i.style||{},yAxisAlign:t.align,showTextOutline:(0,o.pluckNumber)(a.textoutline,0)}),e.addExtEventListener("referenceZoneHovered",s.referenceZoneHoveredHandler,s),s.addExtEventListener("canvasHovered",s.canvasHoveredHandler,e.getFromEnv("mouseTracker"))}}))}))}},962:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(420)),r=n(274),o="#e3e3e3",l="none",s="#f8f8f8",c="none",u="#e3e3e3",d="none",f="#"+(0,r.getDarkColor)(o,60),h="#"+(0,r.getDarkColor)(u,60);t["default"]=function(e){var t,n,a=e.attachChild(i["default"],"scrollbar"),r=e.getFromEnv("chart"),g=e.config,p=g.contextScale,m=a.getFromEnv("dataSource"),v=a.getFromEnv("getStyleDef"),y=m.navigator&&m.navigator.scrollbar&&m.navigator.scrollbar.style||{},b={timeFormatter:g.formatter},x=Object.assign({forceFire:!0},b),k={formatter:"%b %d, %Y",action:"translate"};n={button:Object.assign({stroke:l,fill:o},v(y.button)),arrow:Object.assign({fill:f},v(y.arrow)),scroller:Object.assign({stroke:d,fill:u},v(y.scroller)),grip:Object.assign({stroke:h},v(y.grip)),track:Object.assign({stroke:c,fill:s},v(y.track))},a.configure({isHorizontal:!0,displayFlat:!0,width:e.getScrollbarConfig("width"),height:e.getScrollbarConfig("height"),style:n,drawStripes:1,restrictScrollAnchor:0,scrollRatio:e.getScrollbarConfig("scrollRatio")}),a.attachEventHandlers({scroll:function(t){var n,a=e.getChildren("scrollbar")[0].config,i=a.width,o=a.height,l=e.getScrollbarConfig("scrollRatio"),s=Math.min(o,.5*i),c=(i-2*s)*l-1,u=a.x+s+.5+(i-2*s-c)*t;n=undefined>t?"down":"up",r.setPixelLimit([u,u+c],p,[n,n],{name:"timeNavBrush"})},scrollStart:function(){t=r.getFocusLimit(),r.getFromEnv("fireChartEvents")("timeNavBrushStart",[+t[0],+t[1]],k,x)},scrollEnd:function(){t=r.getFocusLimit(),r.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+t[0],+t[1]],k,x)}})}},984:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(985)),r=n(274);t["default"]=function(e){var t=e.getFromEnv("dataSource").extensions;(0,r.pluckNumber)(t&&t.standardrangeselector&&t.standardrangeselector.enabled,1)?((0,r.componentFactory)(e,i["default"],"standardRangeSelector",1),e.getChildren("standardRangeSelector")[0].configure({currentDomain:e.getFocusLimit(),totalDomain:e.getContextLimit(),style:t&&t.standardrangeselector&&t.standardrangeselector.style||{}})):(0,r.componentFactory)(e,i["default"],"standardRangeSelector",0)}},886:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(887)),r=a(n(888)),o=a(n(889)),l=a(n(280));t["default"]=function(e){var t=e.config.xConfigs;e.config.enableTimeMarkers&&t.forEach((function(t){var n,a,s,c=t.timemarker||[],u=(0,l["default"])(t.showtimespanmarkertooltipat,1),d=t.plot[0].value,f=e.getFromEnv("chartConfig").dataTable.getSchema().find((function(e){return e.name===d})).format,h=[],g=[],p=[],m=e.getFromEnv("chart"),v=e.config.xConfigs[0].scale;c.forEach((function(e){e.end?"full"===e.type?g.push(e):h.push(e):p.push(e)})),n=e.attachChild(i["default"],"timeSpanMinMarker"),a=e.attachChild(r["default"],"timeSpanFullMarker"),n.configure({timeMarker:h,defaultFormat:f,xScale:v,showTimeSpanMarkerTooltipAt:u}),n.addExtEventListener("timeSpanMinMarkerHovered",(function(e){e.data.senderTimeMarker!==n&&n.setData({hoveredIndex:e.data.hoveredIndex,hoveredFromOutside:!0},!0)}),m),a.configure({timeMarker:g,defaultFormat:f,xScale:v,showTimeSpanMarkerTooltipAt:u}),a.addExtEventListener("timeSpanFullMarkerHovered",(function(e){e.data.senderTimeMarker!==a&&a.setData({hoveredIndex:e.data.hoveredIndex,hoveredFromOutside:!0},!0)}),m),(s=e.attachChild(o["default"],"timeInstanceMarker")).configure({timeMarker:p,defaultFormat:f,xScale:v}),s.addExtEventListener("timeInstanceMarkerHovered",(function(e){e.data.senderTimeMarker!==s&&s.setData({hoveredMarkerIndex:e.data.hoveredMarkerIndex,hoveredDomainIndex:e.data.hoveredDomainIndex,hoveredFromOutside:!0},!0)}),m)}))}},961:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(884));t["default"]=function(e){var t=e.getFromEnv("baseTextStyle");e.attachChild(r["default"],"timeAxis"),e.getChildren("timeAxis").forEach((function(n){n.configure({skipinfo:{minor:!0},overlap:!0,validateLabelDimensions:1,offset:{x:2,y:2},style:{"label-major":Object.assign({fill:"#5f5f5f","font-size":11,"text-anchor":"start"},t),"label-minor":Object.assign({"text-anchor":"start"},t),"label-context":Object.assign({"text-anchor":"start"},t)},ticksize:0,domainline:!1,align:"top",dayinmajor:!0,stickycontextlabel:!1,scalemode:"random",scale:e.config.xConfigs[0].scale,tickvisibilitylimit:{start:i,end:i}})}))}},963:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(964));t["default"]=function(e){var t=e.attachChild(i["default"],"brush"),n=e.getFromEnv("dataSource");t.configure({values:e.config.values,style:n.navigator&&n.navigator.window&&n.navigator.window.style||{}})}},980:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=n(274),r=a(n(981));t["default"]=function(e){var t,n=e.getFromEnv("dataSource").chart;(0,i.componentFactory)(e,r["default"],"selectorToolbar",1,[Object.assign({toolbarhdirection:1},n)]),t=e.getChildren("selectorToolbar")[0],e.addToEnv("selectorToolbar",t)}},898:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=function(e){e.config.enableMouseTracking&&e.attachChild(i["default"],"tooltipHover").configure()};var i=a(n(899))},941:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(942));t["default"]=function(e){var t=e.attachChild(i["default"],"verticalCrossLine"),n=e.getFromEnv("dataSource");t.configure({scale:e.config.xConfigs[0].scale,type:"vertical",timeFormatterFn:e.config.xConfigs[0].timeFormatterFn,inputStyle:n.crossline&&n.crossline.style||{}})}},804:(e,t,n)=>{var a=n(269);t.__esModule=!0;var i=a(n(805));t.TimeSeries=i["default"]},972:e=>{var t;self,t=function(){return function(){var e=[,function(e,t,n){e.exports=n(2)},function(e,t,n){n(3);var a=n(51);e.exports=a("String","startsWith")},function(e,t,n){var a=n(4),i=n(40),r=n(46),o=n(14),l=n(50),s="".startsWith,c=Math.min;a({target:"String",proto:!0,forced:!l("startsWith")},{startsWith:function(e){var t=String(o(this));r(e);var n=i(c(arguments.length>1?arguments[1]:undefined,t.length)),a=String(e);return s?s.call(t,a,n):t.slice(n,n+a.length)===a}})},function(e,t,n){var a=n(5),i=n(6).f,r=n(20),o=n(23),l=n(25),s=n(33),c=n(45);e.exports=function(e,t){var n,u,d,f,h,g=e.target,p=e.global,m=e.stat;if(n=p?a:m?a[g]||l(g,{}):(a[g]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(p?u:g+(m?".":"#")+u,e.forced)&&d!==undefined){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&r(f,"sham",!0),o(n,u,f,e)}}},function(e,t,n){var a="object",i=function(e){return e&&e.Math==Math&&e};e.exports=i(typeof globalThis==a&&globalThis)||i(typeof window==a&&window)||i(typeof self==a&&self)||i(typeof n.g==a&&n.g)||Function("return this")()},function(e,t,n){var a=n(7),i=n(9),r=n(10),o=n(11),l=n(15),s=n(17),c=n(18),u=Object.getOwnPropertyDescriptor;t.f=a?u:function(e,t){if(e=o(e),t=l(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var a=n(8);e.exports=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var a=n(12),i=n(14);e.exports=function(e){return a(i(e))}},function(e,t,n){var a=n(8),i=n(13),r="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(16);e.exports=function(e,t){if(!a(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!a(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!a(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!a(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,t,n){var a=n(7),i=n(8),r=n(19);e.exports=!a&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var a=n(5),i=n(16),r=a.document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var a=n(7),i=n(21),r=n(10);e.exports=a?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var a=n(7),i=n(18),r=n(22),o=n(15),l=Object.defineProperty;t.f=a?l:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return l(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var a=n(16);e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var a=n(5),i=n(24),r=n(20),o=n(17),l=n(25),s=n(27),c=n(28),u=c.get,d=c.enforce,f=String(s).split("toString");i("inspectSource",(function(e){return s.call(e)})),(e.exports=function(e,t,n,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),d(n).source=f.join("string"==typeof t?t:"")),e!==a?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=n:r(e,t,n)):c?e[t]=n:l(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s.call(this)}))},function(e,t,n){var a=n(5),i=n(25),r=n(26),o="__core-js_shared__",l=a[o]||i(o,{});(e.exports=function(e,t){return l[e]||(l[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.1.3",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var a=n(5),i=n(20);e.exports=function(e,t){try{i(a,e,t)}catch(n){a[e]=t}return t}},function(e){e.exports=!1},function(e,t,n){var a=n(24);e.exports=a("native-function-to-string",Function.toString)},function(e,t,n){var a,i,r,o=n(29),l=n(5),s=n(16),c=n(20),u=n(17),d=n(30),f=n(32),h=l.WeakMap;if(o){var g=new h,p=g.get,m=g.has,v=g.set;a=function(e,t){return v.call(g,e,t),t},i=function(e){return p.call(g,e)||{}},r=function(e){return m.call(g,e)}}else{var y=d("state");f[y]=!0,a=function(e,t){return c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:a,get:i,has:r,enforce:function(e){return r(e)?i(e):a(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var a=n(5),i=n(27),r=a.WeakMap;e.exports="function"==typeof r&&/native code/.test(i.call(r))},function(e,t,n){var a=n(24),i=n(31),r=a("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++t+n).toString(36)}},function(e){e.exports={}},function(e,t,n){var a=n(17),i=n(34),r=n(6),o=n(21);e.exports=function(e,t){for(var n=i(t),l=o.f,s=r.f,c=0;c<n.length;c++){var u=n[c];a(e,u)||l(e,u,s(t,u))}}},function(e,t,n){var a=n(35),i=n(37),r=n(44),o=n(22);e.exports=a("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){var a=n(36),i=n(5),r=function(e){return"function"==typeof e?e:undefined};e.exports=function(e,t){return arguments.length<2?r(a[e])||r(i[e]):a[e]&&a[e][t]||i[e]&&i[e][t]}},function(e,t,n){e.exports=n(5)},function(e,t,n){var a=n(38),i=n(43).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,i)}},function(e,t,n){var a=n(17),i=n(11),r=n(39).indexOf,o=n(32);e.exports=function(e,t){var n,l=i(e),s=0,c=[];for(n in l)!a(o,n)&&a(l,n)&&c.push(n);for(;t.length>s;)a(l,n=t[s++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var a=n(11),i=n(40),r=n(42),o=function(e){return function(t,n,o){var l,s=a(t),c=i(s.length),u=r(o,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var a=n(41),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},function(e,t,n){var a=n(41),i=Math.max,r=Math.min;e.exports=function(e,t){var n=a(e);return n<0?i(n+t,0):r(n,t)}},function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var a=n(8),i=/#|\.prototype\./,r=function(e,t){var n=l[o(e)];return n==c||n!=s&&("function"==typeof t?a(t):!!t)},o=r.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=r.data={},s=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},function(e,t,n){var a=n(47);e.exports=function(e){if(a(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var a=n(16),i=n(13),r=n(48)("match");e.exports=function(e){var t;return a(e)&&((t=e[r])!==undefined?!!t:"RegExp"==i(e))}},function(e,t,n){var a=n(5),i=n(24),r=n(31),o=n(49),l=a.Symbol,s=i("wks");e.exports=function(e){return s[e]||(s[e]=o&&l[e]||(o?l:r)("Symbol."+e))}},function(e,t,n){var a=n(8);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())}))},function(e,t,n){var a=n(48)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var a=n(5),i=n(52),r=Function.call;e.exports=function(e,t,n){return i(r,a[e].prototype[t],n)}},function(e,t,n){var a=n(53);e.exports=function(e,t,n){if(a(e),t===undefined)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,i){return e.call(t,n,a,i)}}return function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){e.exports=n(55)},function(e,t,n){n(56);var a=n(51);e.exports=a("String","endsWith")},function(e,t,n){var a=n(4),i=n(40),r=n(46),o=n(14),l=n(50),s="".endsWith,c=Math.min;a({target:"String",proto:!0,forced:!l("endsWith")},{endsWith:function(e){var t=String(o(this));r(e);var n=arguments.length>1?arguments[1]:undefined,a=i(t.length),l=n===undefined?a:c(i(n),a),u=String(e);return s?s.call(t,u,l):t.slice(l-u.length,l)===u}})},function(e,t,n){e.exports=n(58)},function(e,t,n){n(59);var a=n(36);e.exports=a.Object.assign},function(e,t,n){var a=n(4),i=n(60);a({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var a=n(7),i=n(8),r=n(61),o=n(44),l=n(9),s=n(62),c=n(12),u=Object.assign;e.exports=!u||i((function(){var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||r(u({},t)).join("")!=a}))?function(e,t){for(var n=s(e),i=arguments.length,u=1,d=o.f,f=l.f;i>u;)for(var h,g=c(arguments[u++]),p=d?r(g).concat(d(g)):r(g),m=p.length,v=0;m>v;)h=p[v++],a&&!f.call(g,h)||(n[h]=g[h]);return n}:u},function(e,t,n){var a=n(38),i=n(43);e.exports=Object.keys||function(e){return a(e,i)}},function(e,t,n){var a=n(14);e.exports=function(e){return Object(a(e))}},function(e,t,n){n.r(t);var a=n(64),i=n.n(a),r=n(65),o=n.n(r),l=n(66),s=n.n(l),c=n(67),u=n.n(c),d=n(68),f=n.n(d),h=n(69),g=n.n(h),p=n(70),m=n.n(p),v={};for(var y in p)"default"!==y&&(v[y]=function(e){return p[e]}.bind(0,y));n.d(t,v);var b={attributes:{id:"fc__calendar__style"}};b.styleTagTransform=g(),b.setAttributes=u(),b.insert=s(),b.domAPI=o(),b.insertStyleElement=f(),i()(m(),b),t["default"]=m()&&m().locals?m().locals:undefined},function(e){var t=[];function n(e){for(var n=-1,a=0;a<t.length;a++)if(t[a].identifier===e){n=a;break}return n}function a(e,a){for(var r={},o=[],l=0;l<e.length;l++){var s=e[l],c=a.base?s[0]+a.base:s[0],u=r[c]||0,d="".concat(c," ").concat(u);r[c]=u+1;var f=n(d),h={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var g=i(h,a);a.byIndex=l,t.splice(l,0,{identifier:d,updater:g,references:1})}o.push(d)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=a(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<r.length;o++){var l=n(r[o]);t[l].references--}for(var s=a(e,i),c=0;c<r.length;c++){var u=n(r[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=s}}},function(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var i="undefined"!=typeof n.layer;i&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,i&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},function(e){e.exports=function(e){var t=document.querySelector("head"),n=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(n){var a=n.getAttribute("content");if(a){var i=a.match(/'nonce-([^']+)'/);i&&e.setAttribute("nonce",i[1])}}var r=window._lastElementInsertedByStyleLoader;r?r.nextSibling?t.insertBefore(e,r.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e}},function(e){e.exports=function(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}},function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},function(e,t,n){(e.exports=n(71)(!1)).push([e.id,"",""])},function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,a,i,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var l=(n=o,a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(i," */")),s=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot).concat(e," */")}));return[r].concat(s).concat([l]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},i=0;i<this.length;i++){var r=this[i][0];null!=r&&(a[r]=!0)}for(var o=0;o<e.length;o++){var l=e[o];null!=l[0]&&a[l[0]]||(n&&!l[2]?l[2]=n:n&&(l[2]="(".concat(l[2],") and (").concat(n,")")),t.push(l))}},t}},function(e,t){var n;t.__esModule=!0,t["default"]=void 0,window.trustedTypes&&(n=window.trustedTypes.createPolicy("fusionChartsPolicy",{createHTML:function(e){return e}})),t["default"]=n||{createHTML:function(e){return e}}}],t={};function n(a){var i=t[a];if(i!==undefined)return i.exports;var r=t[a]={id:a,exports:{}};return e[a](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){n.r(a),n(1),n(54),n(57),n(63);var e=n(72);function t(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r=0,o=undefined,l=new Map,s=[31,28,31,30,31,30,31,31,30,31,30,31],c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],u=["January","February","March","April","May","June","July","August","September","October","November","December"],d=["container","container:hover","header-container","header-container:hover","header","header:hover","year","year:hover","headername","headername:hover","yearname","yearname:hover","nav","nav:hover","navprev","navprev:hover","navnext","navnext:hover","navinactive","navinactive:hover","navmonth","navmonth:hover","navyear","navyear:hover","subheader","subheader:hover","body","body:hover","days","days:hover","indexeddays","indexeddays:hover","dateLI","dateLI:hover","date","date:hover","daycol","daycol:hover","normaldatedefault","normaldatedefault:hover","activedate","activedate:hover","disableddatedefault","disableddatedefault:hover","disableddate","disableddate:hover","weekenddefault","weekenddefault:hover","weekend","weekend:hover","selecteddatedefault","selecteddatedefault:hover","selecteddate","selecteddate:hover","highlighteddatedefault","highlighteddatedefault:hover","highlighteddate","highlighteddate:hover"],f={dateLI:{"box-sizing":"border-box!important",float:"left!important","list-style-type":"none!important",width:"14.28571%!important",height:"auto!important",padding:"2px 0 2px !important",margin:"0 !important","background-color":"#fff !important"},navinactive:{opacity:0,cursor:"default !important"},weekenddefault:{"background-color":"#F7F6FF!important"},normaldatedefault:{cursor:"pointer!important"},"normaldatedefault:hover":{color:"#5F5F5F!important","background-color":"#dcdcdc!important"},selecteddatedefault:{"background-color":"#5648D4!important",color:"#F3F3F3!important"},"selecteddatedefault:hover":{"background-color":"#5648D4!important",color:"#F3F3F3!important"},disableddatedefault:{color:"#cacaca!important"}},h={container:"fc-cal-container","header-container":"fc-cal-header-container",header:"fc-cal-month-header",year:"fc-cal-year-header",headername:"fc-cal-month",yearname:"fc-cal-year",nav:"fc-cal-nav",navprev:"fc-cal-nav-prev",navnext:"fc-cal-nav-next",navinactive:"fc-cal-nav-inactive",navmonth:"fc-cal-nav-month",navyear:"fc-cal-nav-year",subheader:"fc-cal-sub-header",body:"fc-cal-body",days:"fc-cal-day",indexeddays:"fc-cal-day-",dateLI:"fc-cal-date-li",date:"fc-cal-date",daycol:"fc-cal-day-col",normaldatedefault:"fc-cal-date-normal-default",activedate:"fc-cal-date-normal",disableddatedefault:"fc-cal-date-disabled-default",disableddate:"fc-cal-date-disabled",weekenddefault:"fc-cal-weekend-default",weekend:"fc-cal-weekend",selecteddatedefault:"fc-cal-date-selected-default",selecteddate:"fc-cal-date-selected",highlighteddatedefault:"fc-cal-date-highlight-default",highlighteddate:"fc-cal-date-highlight"},g={container:"box-sizing: border-box !important; -webkit-touch-callout: none !important; -webkit-user-select: none !important; -khtml-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; text-align: center !important; vertical-align: top !important; padding-bottom: 0 !important; margin: 0px 0px 0px 0px !important; float: left;font-size: 11px !important; max-width: 163px !important; background-color: #fff !important; border: 1px solid #a5a4a4;",header:"box-sizing: border-box !important; overflow: hidden !important; height: 26px !important; line-height: 2.4 !importantfont-size: 12px !important; background-color: #5648D4 !important;",month:"display: block !important; width: 100% !important; float: left !important; height: 100% !important;font-weight: bold !important; color: #F3F3F3 !important; font-size: 13px !important;",year:"display: block !important; width: 35% !important; float: right !important;",monthname:"display: inline-block !important; padding: 4px !important;",yearname:"display: inline-block !important; padding-right: 5px !important; padding-left: 5px !important;",nav:"display: inline-block !important; cursor: pointer !important; padding: 4px;",navprev:"float: left !important; padding-left: 8px !important;",navnext:"float: right !important; padding-right: 8px !important;",navinactive:"cursor: default !important;",navmonth:"",navyear:"",subheader:"text-transform: uppercase !important; overflow: hidden !important; color: #666 !important;",days:"box-sizing: border-box !important; display: block !important; float: left !important; width: 14.28571% !important; line-height: 2.3 !important;",indexeddays:"",body:"width: 100% !important;",date:"box-sizing: border-box !important; text-align: center !important; display: block !important; margin: 0 auto !important;border: 0px solid transparent !important; width: 14.2857% !important; padding: 0px !important;",dateLI:"box-sizing: border-box !important; float: left !important; list-style-type: none !important; width: 14.28571% !important; height: auto!important;",selecteddate:"",disableddate:"",normaldate:"cursor: pointer !important;",highlightedDate:"",daycol:"",weekenddefault:"background-color: #F7F6FF!important;",weekend:""},p={padding:"0",margin:0},m="px",v=" ",y="",b=" ",x={top:0,middle:-.5,bottom:-1},k={left:0,center:-.5,right:-1},S=function(e,t){if(t&&e&&e.style)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},_=function(e,t){var n=t&&t.className;n&&e&&(t.className=n.replace(new RegExp("(?:^|\\s*)"+e.trim()+"(?:\\s*|$)")," "))},C=function(e,t){var n,a,i,r,o;if(e&&e.getElementsByClassName)for(i=0,r=(o=t.trim().split(v)).length;i<r;i+=1)for(t=o[i],a=(n=e.getElementsByClassName(t)).length-1;a>=0;a--)_(t,n[a])},w=function(t){var n,a=t.info,i=a.weekStartingDay,r=t.graphic.dayElements;for(n=0;n<7;n++)r[n].innerHTML=e["default"].createHTML(a.weekLabel[(n+i)%7])},D=function(e){var t=e.classNames,n=e.info,a=n.selectedDate,i=n.active,r=n.startingPos,o=e.graphic,l=o.container,s=o.dateLiElements,c=o.dateElements;a.month===i.month&&a.year===i.year&&(C(l,t.selecteddatedefault),C(l,t.selecteddate),s[a.day+r-1].className+=v+t.selecteddatedefault,c[a.day+r-1].className+=v+t.selecteddate)},E=function(e,t){var n=t.appendTo,a=t.className,i=t.inline,r=t.id,o=t.innerHTML,l=t.events,s=document.createElement(e),c="",u=document.querySelector('meta[http-equiv="Content-Security-Policy"]');if(u){var d=u.getAttribute("content");if(d){var f=d.match(/'nonce-([^']+)'/);f&&(c=f[1])}}var h="styleStrClass-".concat(Math.random().toString(36).substring(2)),g=document.createElement("style");if(g.setAttribute("nonce",c),g.textContent="\n .".concat(h," {\n ").concat(i,"\n }\n "),document.head.appendChild(g),a&&(s.className=a),r&&(s.id=r),o&&(s.innerHTML=o),l)for(var p in l)s.addEventListener(p,l[p]),"click"===p&&(s["_"+p+"Handler"]=l[p],s.eventAttached=!0);return s.setAttribute("class","".concat(a," ").concat(h)),n&&n.appendChild(s),s},T=function(e,t){var n=e.day,a=e.month,i=e.year;return!(t&&(t.year>i||t.year===i&&(t.month>a||t.month===a&&t.day>n)))},M=function(e,t){var n=e.day,a=e.month,i=e.year;return!(t&&(t.year<i||t.year===i&&(t.month<a||t.month===a&&t.day<n)))},I=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t={},n=document.getElementById("fc__calendar__style"),a=n&&n.sheet;return a?(d.forEach((function(n){if(e.hasOwnProperty(n)||f[n]){var r=e[n]||f[n];if("string"==typeof r)t[n]=r;else if(null!==(d=r)&&"object"===i(d)&&!Array.isArray(d)){var o=function(e,t){var n="fc-cal-user-".concat(e),a="";for(e in t)t.hasOwnProperty(e)&&(a+="".concat(e,": ").concat(t[e],"; "));return{className:n,cssString:".".concat(n," { ").concat(a,"}")}}(n,r),s=o.className,c=o.cssString;if(!n.endsWith(":hover")&&(t[n]=s),!l.has(s)||l.get(s).cssStr!==c){var u=a.cssRules.length;l.has(s)&&(u=l.get(s).index,a.deleteRule(u)),l.set(s,{cssStr:c,index:u}),a.insertRule(c,u)}}}var d})),t):t},F=function(){function n(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var a=this,i=new Date,o={day:i.getDate(),month:i.getMonth()+1,year:i.getFullYear()};a._customCssClass={},a.graphic={parentElement:t.container||document.body,dateElements:[],dateLiElements:[],dayElements:[]},a.style={position:"absolute",top:"0px",left:"0px",width:300+m,overflow:"hidden"},a.id=t.id||"fc_calendar-".concat(r++),a.events={},a.info={selectedDate:o,active:{month:o.month,year:o.year},weekLabel:[].concat(c),monthLabel:[].concat(u),weekStartingDay:1,posX:0,posY:0,height:300,width:300,vAlignment:"top",hAlignment:"left",highlightClasses:[]},a._customCssClass=I(t.customCssClass),function(t,n){var a,i,r,o,l=t.graphic,s=t.info.weekLabel,c=l.dateElements,u=l.dayElements,d=l.dateLiElements,f=n["font-family"]&&" font-family: ".concat(n["font-family"],";")||"",m=t.classNames=Object.assign({},h,t._customCssClass),x=l.container=E("div",{appendTo:l.parentElement,inline:g.container+f,className:m.container,id:t.id}),k=l.calendarHeader=E("div",{appendTo:x,inline:g.header}),C=l.headerUl=E("ul",{appendTo:k,className:m["header-container"],inline:"height: 100% !important;"}),w=l.headerMonthLi=E("li",{appendTo:C,inline:g.month}),I=l.headerMonthUl=E("ul",{appendTo:w,className:m.header,inline:"height: 100% !important;"}),F=l.calendarSubHeader=E("div",{appendTo:x,inline:g.subheader}),L=l.weekDays=E("ul",{appendTo:F,className:m.subheader}),O=l.calendarBody=E("div",{appendTo:x,inline:g.body}),P=l.days=l.dayCell=E("ul",{appendTo:O,inline:"padding: 1px !important; margin: 0px !important;",className:m.body});for(S(x,t.style),S(C,p),S(L,p),S(P,p),S(I,p),l.prevMonth=E("li",{appendTo:I,inline:g.nav+v+g.navprev+v,events:{click:function(){var e=t.info,n=t.graphic,a=(e.active&&e.active.month)-1,i=e.active&&e.active.year,r=e.rangeStart;a<1&&(a=12,i--),!r||i>r.year?(_(m.navinactive,n.prevMonth),_(m.navinactive,n.nextMonth),t.configure({active:{month:a,year:i},doNotUpdateStyle:!0})):i===r.year&&a>=r.month&&(_(m.navinactive,n.nextMonth),a===r.month&&(n.prevMonth.className+=v+m.navinactive),t.configure({active:{month:a,year:i},doNotUpdateStyle:!0}))}}}),l.prevMonthPointer=E("span",{appendTo:l.prevMonth,className:m.navprev,innerHTML:e["default"].createHTML("❮")}),l.monthStrLi=E("li",{appendTo:I,inline:g.monthname}),l.monthStr=E("span",{appendTo:l.monthStrLi,className:m.headername}),l.nextMonth=E("li",{appendTo:I,inline:g.nav+v+g.navnext+v,events:{click:function(){var e=t.info,n=t.graphic,a=(e.active&&e.active.month)+1,i=e.active&&e.active.year,r=e.rangeEnd;a>12&&(a=1,i++),!r||i<r.year?(_(m.navinactive,n.prevMonth),_(m.navinactive,n.nextMonth),t.configure({active:{month:a,year:i},doNotUpdateStyle:!0})):i===r.year&&a<=r.month&&(a===r.month&&(n.nextMonth.className+=v+m.navinactive),_(m.navinactive,n.prevMonth),t.configure({active:{month:a,year:i},doNotUpdateStyle:!0}))}}}),l.nextMonthPointer=E("span",{appendTo:l.nextMonth,className:m.navnext,innerHTML:e["default"].createHTML("❯")}),i=1;i<8;i++)r=v+(i>5?m.weekend:y),o=v+(i>5?m.weekenddefault:y),a=E("li",{appendTo:L,inline:g.days,className:o}),a=E("span",{appendTo:a,innerHTML:e["default"].createHTML(s[i%7]),inline:"display: block !important;",className:m.days+v+m.indexeddays+i%7+r}),u.push(a);for(var A=function(n){o=v+(n%7==5||n%7==6?m.weekenddefault:y),r=v+(n%7==5||n%7==6?m.weekend:y),a=E("li",{appendTo:P,inline:g.date,className:m.dateLI+o}),d.push(a),a=E("span",{appendTo:a,className:m.date+v+m.daycol+"-"+n%7+r,inline:"display: block !important; padding: 4px 0px !important;",innerHTML:e["default"].createHTML(b),events:{click:function(){var e=t.info,a=t.events,i=e.selectedDate,r=e.active,o={day:n-e.startingPos+1,month:r.month,year:r.year};o.day>=1&&o.day<=e.curMonthInfo.end-e.startingPos&&T(o,e.rangeStart)&&M(o,e.rangeEnd)&&(i.day=o.day,i.month=o.month,i.year=o.year,D(t),a.onDateChange&&a.onDateChange(i))}}}),c.push(a)},B=0;B<42;B++)A(B)}(a,t),t.doNotUpdateStyle=!0,a.configure(t,!0)}var a,i,l;return a=n,(i=[{key:"configure",value:function(t,n){var a,i,r=this,l=r.graphic,c=r.events,u=r.info,d=r.style,f=t&&t.events,g=!1;t&&(t.doNotUpdateStyle||(r._customCssClass=I(t.customCssClass)),r.classNames=Object.assign({},h,r._customCssClass),t.container&&(a=document.getElementById(t.container))?(l.parentElement=a,a.appendChild(l.container)):t.container instanceof Element&&(l.parentElement=t.container),t.style&&t.style.position&&(d.position=t.style.position,S(l.container,d)),isNaN(i=Number(t.posX))||(u.posX=i,g=!0),isNaN(i=Number(t.posY))||(u.posY=i,g=!0),!isNaN(i=Number(t.width))&&i>300&&(u.width=i,d.width=i+m,g=!0),t.vAlignment&&(i=t.vAlignment.toLowerCase())&&x[i]!==o&&(u.vAlignment=i,g=!0),t.hAlignment&&(i=t.hAlignment.toLowerCase())&&k[i]!==o&&(u.hAlignment=i,g=!0),f&&("function"==typeof f.onDateChange&&(c.onDateChange=f.onDateChange),"function"==typeof f.onYearChange&&(c.onYearChange=f.onYearChange),"function"==typeof f.onMonthChange&&(c.onMonthChange=f.onMonthChange)),t.highlight?(u.highlight=t.highlight,n=!0):null===t.highlight&&(delete u.highlight,n=!0),(i=t.selectedDate)&&!isNaN(Date.parse(i.month+"/"+i.day+"/"+i.year))&&(u.selectedDate=t.selectedDate,u.active.month=u.selectedDate.month,u.active.year=u.selectedDate.year,n=!0),t.showInactiveMonths!==o&&(u.showInactiveMonths=!!t.showInactiveMonths),t.active&&(i={month:t.active.month||u.active.month,year:t.active.year||u.active.year},u.active.month===i.month&&u.active.year===i.year||!(u.showInactiveMonths||T(i,u.rangeStart)&&M(i,u.rangeEnd))||(u.active.month=i.month,u.active.year=i.year,n=!0)),t.monthLabel&&12===t.monthLabel.length&&(u.monthLabel=t.monthLabel,n=!0),t.weekLabel&&7===t.weekLabel.length&&(u.weekLabel=t.weekLabel,w(r)),t.weekStart!==o&&u.weekStartingDay!==t.weekStart&&(u.weekStartingDay=t.weekStart,w(r)),t.rangeStart&&T(u.selectedDate,t.rangeStart)?(u.rangeStart=t.rangeStart,n=!0):null===t.rangeStart&&(delete u.rangeStart,n=!0),t.rangeEnd&&M(u.selectedDate,t.rangeEnd)?(u.rangeEnd=t.rangeEnd,n=!0):null===t.rangeEnd&&(delete u.rangeEnd,n=!0),n&&function(t){var n,a,i,r,o,l,c,u,d,f,h=t.info,g=t.graphic,p=t.classNames,m=h.active,x=h.rangeStart,k=h.rangeEnd,S=h.weekStartingDay,w=h.highlight,I=h.highlightClasses,F=(h.showInactiveMonths,g.monthStr),L=(g.yearStr,g.dateElements),O=g.dateLiElements,P=g.container,A=g.prevMonth,B=g.prevMonthPointer,N=g.nextMonth,H=g.nextMonthPointer,j=(g.prevYear,g.nextYear,m.month),R=m.year,V=w&&w[R]&&w[R][j],G=new Date("".concat(j,"/1/").concat(R)).getDay(),Y=h.startingPos=G-S+(S<=G?0:7),U=s[j-1]+(function(e){return e%4==0&&e%100!=0||e%400==0}(R)&&2===j?1:0),z=U+Y,X=T({day:1,month:j,year:R},x),W=M({day:U,month:j,year:R},k),q=X?0:x.month===j&&x.year===R?x.day-1:U,Z=W?U+1:k.month===j&&k.year===R?k.day+1:1,$=x&&x.year===m.year&&x.month===m.month,K=k&&k.year===m.year&&k.month===m.month;for(h.curMonthInfo={start:G,end:z},c=g.calendarBody.children[0],C(P,p.normaldatedefault),C(P,p.selecteddatedefault),C(P,p.disableddatedefault),C(P,p.activedate),C(P,p.selecteddate),C(P,p.disableddate),C(P,p.navinactive),K?H.className+=v+p.navinactive:_(p.navinactive,N),$?B.className+=v+p.navinactive:_(p.navinactive,A);I.length;)l=I.pop(),C(P,l);if(c.childElementCount<42)for(;c.childElementCount<42;)n=c.childElementCount,u=v+(n%7==5||n%7==6?p.weekenddefault:y),d=v+(n%7==5||n%7==6?p.weekend:y),f=E("li",{appendTo:c,className:u,events:{click:function(){var e=t.info,a=t.events,i=e.selectedDate,r=e.active,o={day:n-e.startingPos+1,month:r.month,year:r.year};o.day>=1&&o.day<=e.curMonthInfo.end-e.startingPos&&T(o,e.rangeStart)&&M(o,e.rangeEnd)&&(i.day=o.day,i.month=o.month,i.year=o.year,D(t),a.onDateChange&&a.onDateChange(i))}}}),O.push(f),f=E("span",{appendTo:f,className:p.date+v+p.daycol+"-"+n%7+d,innerHTML:e["default"].createHTML(b)}),L.push(f);for(F.innerHTML=e["default"].createHTML(h.monthLabel[j-1]+v+R),n=0,i=L.length;n<i;n++)n<Y?(L[n].innerHTML=e["default"].createHTML(new Date(R,j-1,n-Y+1).getDate()),O[n].className+=v+p.disableddatedefault,L[n].className+=v+p.disableddate,O[n].eventAttached&&O[n].removeEventListener("click",L[n]._clickHandler),O[n].eventAttached=!1):n>=z?(r=new Date(R,j-1,n-Y+1).getDate(),L[n].innerHTML=e["default"].createHTML(r<10?"0"+r:r),O[n].className+=v+p.disableddatedefault,L[n].className+=v+p.disableddate,O[n].eventAttached&&O[n].removeEventListener("click",L[n]._clickHandler),O[n].eventAttached=!1):(a=n-Y+1,L[n].innerHTML=e["default"].createHTML(a<10?"0"+a:a),(o=V&&V[a])&&(l=v+p.highlightedDate,!0!==o&&(l+=v+o),I.push(l)),!O[n].eventAttached&&O[n].addEventListener("click",O[n]._clickHandler),O[n].eventAttached=!0,L[n].className+=v+(a<=q||a>=Z?p.disableddate:p.activedate)+(o?l:y),O[n].className+=v+(a<=q||a>=Z?p.disableddatedefault:p.normaldatedefault)+(o?l:y));D(t)}(r),g&&(d.left=u.posX+u.width*(k[u.hAlignment]||0)+m,u.height=l.container&&l.container.offsetHeight||300,d.top=u.posY+u.height*(x[u.vAlignment]||0)+m,S(l.container,d)))}},{key:"show",value:function(){var e=this.graphic.container;e.style.visibility="visible",e.style.opacity="1"}},{key:"hide",value:function(){var e=this.graphic.container;e.style.visibility="hidden",e.style.opacity="0"}},{key:"getDate",value:function(){return this.info.selectedDate}},{key:"addEventListner",value:function(e,t){"function"==typeof t&&this.events&&(this.events[e]=t)}},{key:"removeEventListner",value:function(e){this.events&&this.events[e]&&delete this.events[e]}},{key:"getDimension",value:function(){var e=this.graphic;return{width:e.container.offsetWidth,height:e.container.offsetHeight}}},{key:"dispose",value:function(){var e=this.graphic,t=e.parentElement,n=e.container;t.removeChild(n)}}])&&t(a.prototype,i),l&&t(a,l),n}();a["default"]=F}(),a}()},e.exports=t()},859:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.getFormatStore=t.getAtomicity=void 0;var i=n(358),r=a(n(860));t.getAtomicity=function(e){var t,n,a,i,o,l,s,c=e.timeUnits,u=void 0===c?[]:c,d=e.store,f=void 0===d?{}:d,h=e.index,g=e.data,p=void 0===g?[]:g,m=e.bins,v=e.intervalIndexMap,y=e.ms,b={count:0},x=p.length;if(!u.length)return[];if(1===x||0===x)return[u[0].ms,1,u[0].ms];for(u.forEach((function(e){var t=e.name,n=f[t];n&&Object.keys(n).forEach((function(e){var a=n[e];b.count<=a&&(b.count=a,Object.assign(b,{multiplier:Number(e),unit:{name:t,ms:m[v[t.toLowerCase()]][2]}}))}))})),t=1;t<x;++t)a=p[t-1][h],i=p[t][h],n=y.count(a,i),Math.max(0,n)&&(o=(0,r["default"])(m,v,u,n),(s=f[o.unit.name])[o.multiplier]||(s[o.multiplier]=0),l=++s[o.multiplier],(b.count<l||b.count===l&&b.unit.ms*b.multiplier>o.unit.ms*o.multiplier)&&(b.count=l,Object.assign(b,o)));return b.count?[b.unit.ms,b.multiplier,b.multiplier*b.unit.ms]:[u[0].ms,1,u[0].ms]},t.getFormatStore=function(e){void 0===e&&(e="");var t=[],n={};return/%[_ -]?[cfLQ]/.test(e)&&(t.push(i.DatetimeUnits.Millisecond),n[i.DatetimeUnits.Millisecond.name]={}),/%[_ -]?[sSX]/.test(e)&&(t.push(i.DatetimeUnits.Second),n[i.DatetimeUnits.Second.name]={}),/%[_ -]?M/.test(e)&&(t.push(i.DatetimeUnits.Minute),n[i.DatetimeUnits.Minute.name]={}),/%[_ -]?[HI]/.test(e)&&(t.push(i.DatetimeUnits.Hour),n[i.DatetimeUnits.Hour.name]={}),/%[_ -]?[dejuwx]/.test(e)&&(t.push(i.DatetimeUnits.Day),n[i.DatetimeUnits.Day.name]={}),/%[_ -]?[dejuwxbBmyY]/.test(e)&&(t.push(i.DatetimeUnits.Week),n[i.DatetimeUnits.Week.name]={}),/%[_ -]?[bBm]/.test(e)&&(t.push(i.DatetimeUnits.Month),n[i.DatetimeUnits.Month.name]={}),/%[_ -]?[yY]/.test(e)&&(t.push(i.DatetimeUnits.Year),n[i.DatetimeUnits.Year.name]={}),{timeUnits:t,store:n}}},949:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i,r=a(n(337)),o=a(n(446)),l=a(n(349)),s=a(n(481)),c=a(n(858)),u=a(n(857)),d=a(n(838)),f=a(n(950)),h=["column","line","step-line","smooth-line","area","step-area","smooth-area","candlestick","ohlc","column-range","area-range"],g={millisecond:!0,second:!0,minute:!0,hour:!0,day:!0,month:!0,year:!0},p=(0,f["default"])(r["default"]),m="line",v=function(){return!0},y=function(e){return h.includes(e)},b=function(e){return(0,s["default"])(e)&&(t=e,(0,u["default"])(t.plot)||(0,o["default"])(t.plot)||(0,s["default"])(t.plot)||function(e){return(0,o["default"])(e.clip)}(e));var t},x=function(e,t,n){void 0===n&&(n={});var a=[];if((0,u["default"])(e)&&t(e)){var i=(0,s["default"])(n.plot)?Object.assign({},n.plot):{},r=i.type||n.plottype;i.type=y(r)?r:m,i.value=e,i.aggregation=p(i.aggregation||n.aggregation),a.push(Object.assign({},n,{plot:[i]}))}return a},k=function(e,t){var n,a,r,o,l,c=y(e.type)?e.type:m,u="candlestick"===c||"ohlc"===c,d="column-range"===c||"area-range"===c,f=function(e){return t(e)?e:i},h={};return n=(0,s["default"])(e.value)?f(e.value.value):f(e.value),u?((0,s["default"])(e.value)&&(a=f(e.value.open),r=f(e.value.close),o=f(e.value.high),l=f(e.value.low)),h=a&&o&&l&&r||a||o||l||r?Object.assign({},e,{type:c,high:o,low:l,open:a,close:r,value:null}):Object.assign({},e,{type:c,high:n,low:n,open:n,close:n,value:n})):d?((0,s["default"])(e.value)&&(o=f(e.value.high),l=f(e.value.low)),o&&l?h=Object.assign({},e,{type:c,high:o,low:l,value:null}):o||l||(h=Object.assign({},e,{type:c,high:n,low:n,value:n}))):h=Object.assign({},e,{type:c,value:n}),h.typeinnavigator=y(h.typeinnavigator)?h.typeinnavigator:i,u&&(n||a||r||o||l)||n||d&&o&&l?h:void 0},S=function(e,t){var n=[],a=e.plot,i=(0,s["default"])(a),r=e.hasOwnProperty("plot")&&!(i&&!a.hasOwnProperty("value"))&&"axis",d=function(e){return(0,u["default"])(e)&&t(e)};if(b(e)){var f=[],h=(0,o["default"])(e.clip)?e.clip.map((function(e){return(0,c["default"])(e.to)||(e.to=e.from),e.hasOwnProperty("format")&&!(0,c["default"])(e.format)&&delete e.format,(0,s["default"])(e.repeat)&&(0,c["default"])(e.repeat.unit)&&g[e.repeat.unit.toLowerCase()]?(e.repeat.unit=e.repeat.unit.toLowerCase(),e.repeat.multiplier=Number(e.repeat.multiplier),e.repeat.multiplier||(e.repeat.multiplier=1)):delete e.repeat,e})).filter((function(e){return(0,c["default"])(e.from)&&(0,s["default"])(e.repeat)&&(0,c["default"])(e.repeat.unit)})):[];if(n.push(Object.assign({},e,e.aggregation?h.length?{plot:f,aggregation:p(e.aggregation),clip:h}:{plot:f,aggregation:p(e.aggregation)}:(0,l["default"])(e.clips)?{plot:f,clip:h}:{plot:f})),(i||(0,u["default"])(a))&&(a=[a]),(0,o["default"])(a))a.filter((function(e){return!!e})).forEach((function(t){var n;if((0,s["default"])(t)){var a=t.type||e.plottype;n=k(Object.assign({},t,{aggregation:p(t.aggregation||e.aggregation),type:a}),d)}else d(t)&&(n=k({value:t,type:e.plottype,aggregation:p(e.aggregation)},d));n&&f.push(n)}))}return n[0]&&n[0].plot.length?{output:n,action:!!((0,l["default"])(a)&&a.length>n[0].plot.length)&&"plot"}:{output:[],action:r}},_=function(e,t,n){var a=[],i=[];if((0,c["default"])(e))a=x(e,t);else if((0,s["default"])(e)){var r,o=S(e,t);a=o.output,(r=o.action)&&i.push(r)}else if((0,l["default"])(e)){var u=function(e,t,n){var a,i=[],r=[];return e.forEach((function(e){(0,c["default"])(e)?i=i.concat(x(e,t,n)):(0,s["default"])(e)&&(a=S(e,t),i=i.concat(a.output),a.action&&r.push(a.action))})),{output:i,actions:r}}(e,t,n);a=u.output,i=u.actions}return{output:a,actions:i}},C=function(e,t,n){void 0===e&&(e=[]),void 0===n&&(n=!0);var a=[],i=[],r=0,o=(0,s["default"])(t);if(t){var u=_(t,(function(t){return e.indexOf(t)>=0}));a=u.output,i=u.actions,r=a.length;var f=i.includes("axis");o?f&&(i=["fullaxis"]):(0,l["default"])(t)&&r<t.length&&(r?!f&&i.push("axis"):i=["fullaxis"])}a.length||(a=_(e,v,o&&t).output);return n&&a.forEach((function(e){if(!(0,c["default"])(e.title)){for(var t=[],n=0;n<e.plot.length;n++)e.plot[n].value&&t.push(e.plot[n].value);e.title=t.join(" - ")}})),{expandedAxis:a,actions:(0,d["default"])(i)}};t["default"]=C},952:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(882)),r=a(n(953)),o=a(n(481)),l=a(n(349)),s=a(n(927)),c=function(e,t){return(0,s["default"])(t)&&function(e,t){return t>=0&&t<e.length}(e,t)},u=function(e,t){return c(e,+t)||function(e,t){return(0,o["default"])(t)&&c(e,+t.index)}(e,t)},d=function(e){return(0,o["default"])(e)?(0,i["default"])(e,{index:+e.index}):{index:+e}},f=function(e){return(0,i["default"])(e,{x:(0,l["default"])(e.x)?e.x.map(d):[d(e.x)],y:(0,l["default"])(e.y)?e.y.map(d):[d(e.y)]})},h=function(e,t){return(0,l["default"])(t)?(0,r["default"])((function(t){return u(e,t)}),t):u(e,t)};t["default"]=function(e,t,n,a){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]);var i,r=function(n){return(0,o["default"])(n)&&h(e,n.x)&&h(t,n.y)},s=(i=n,(0,l["default"])(i)&&i.length>0?i.filter(r).map(f):r(i)?[f(i)]:[]);return s.length?s:a(e,t)}},950:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return function(t){var n=null==t?"avg":t,a=n.toLowerCase();return e.getDefaultAggregations()[a]?a:e.getRegisteredAggregations()[n]?n:"avg"}}},956:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(857)),r=n(274);t["default"]=function(e,t,n,a,o){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=""),void 0===a&&(a=""),void 0===o&&(o="");var l=function(t){return(0,i["default"])(t)&&e.indexOf(t)>=0?t:r.UNDEF},s=l(n),c=l(a),u=l(o);return t.map((function(e){var t=l(e.series)||s,n=l(e.stack)||c,a=l(e.group)||u;return e.plot=e.plot.map((function(e){var i=e.type;return"column"===i||/area/.test(i)?(e.stack=l(e.stack)||n||t,e.group=l(e.group)||a):(e.stack=l(e.stack)||n,e.group=l(e.group)||a||t),e})),e}))}},951:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.validateFocusLimit=function(e,t,n){var a=n.getFromEnv("contextBins")[0].getBinDomain(),i=a[1].getTime(),r=a[0].getTime(),o=e.start,l=e.end;if(null==o&&null==l)return!1;if(isNaN(o)&&isNaN(l))return!1;isNaN(o)||!isNaN(l)&&null!==l?!isNaN(o)&&null!==o||isNaN(l)||(o=t.start):l=t.end;o>l&&(o+=l,o-=l=o-l);return o=Math.max(r,o),l=Math.min(i,l),[o,l]},t.filterStandarBinsToUserConfig=function(e){for(var t={},n=0;n<e.length;n++){var a=e[n],i=a[0].name();t[i]?t[i].push(a[1]):t[i]=[a[1]]}return t},t.setBinningRules=function(e){var t=this,n=t.getJSONData();null==n.xaxis&&(n.xaxis={});return n.xaxis.binning=e,t.setJSONData(n),t},t.validateUserBin=function(e,t){var n=e.unit,a=e.multiplier,r=t.getFromEnv("contextBins")[0],o=r.getBinMin()[2],l=r.getStandardBins(),s=r.intervalIndexMap;if(a=(0,i["default"])(a,1),n=n.toLowerCase(),null==s[n])return!1;for(var c=s[n];c<l.length;c++){var u=l[c];if(u[0].name()!==n||u[2]<o)break;if(u[1]===a)return{unit:n,multiplier:a,duration:u[2]}}return!1},t.calculateDomainForUserCustomBin=function(e,t){var n=e.duration,a=t.getFromEnv("contextBins")[0],i=a.getBinDomain(),r=a.getBinRange(),o=t.getFocusLimit()[1],l=i[0].getTime(),s=i[1].getTime(),c=o-n*r[1]/a.thresholdPixels,u=o+(l-c);if(c>=l)return[c,o];if(u<=s)return[l,u];return[l,s]};var i=a(n(280))},860:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t,n,a){var i,r,o,l,s=n.length,c=2592e6,u=a;for(u>c&&u<=157248e5&&u/30%1<.067&&(u=c*Math.floor(u/c)),i=0;i<s;i++)for(r=t[(o=n[i]).name.toLowerCase()];e[r]&&e[r][0].name()===o.name.toLowerCase();){if(u<=(l=e[r])[2])return{unit:o,multiplier:l[1]};r++}return{unit:n[i-1],multiplier:Math.round(u/n[i-1].ms)}}},946:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=e[t];return Object.assign({},n,{columnname:n.columnname})}},957:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(958)),r=n(274);t["default"]=function(e){(0,r.componentFactory)(e,i["default"],"background",1,[{}])}},947:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=n(274),r=a(n(948)),o="middle",l="left",s=["left","center","right"];t["default"]=function(e){var t,n,a,c,u=e.getFromEnv("dataSource"),d=u.caption||{},f=u.subcaption||{},h=e.getFromEnv("getStyleDef");a=(d.position||"").toLowerCase(),s.indexOf(a)<0&&(a=l),"center"===a&&(a=o),c=(f.position||"").toLowerCase(),s.indexOf(c)<0&&(c=l),"center"===c&&(c=o),t=(0,i.parseUnsafeString)(d.text)||"",n=h(d.style&&d.style.text);var g={caption:t,subCaption:f.text&&(0,i.parseUnsafeString)(f.text),captionAlignment:a,subCaptionAlignment:c,captionCss:n,subCaptionCss:h(f.style&&f.style.text)};(0,i.componentFactory)(e,r["default"],"caption",1,[g])}},968:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=n(274),r=a(n(969));t["default"]=function(e){var t=e.getFromEnv("dataSource").extensions||{},n=(0,i.pluckNumber)(t.customrangeselector&&t.customrangeselector.enabled,1);(0,i.componentFactory)(e,r["default"],"customRangeSelector",+n,[{domain:e.getFocusLimit(),style:t.customrangeselector&&t.customrangeselector.style||{}}])}},959:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(882)),r=a(n(960)),o=n(274),l=a(n(946)),s=(0,i["default"])({orientation:"bottom",align:"bottom",visible:!0,overlap:!0,dayinmajor:!0,stickycontextlabel:!1,scalemode:"random",skipinfo:{minor:!0},offset:{x:2,y:2}}),c=(0,i["default"])({orientation:"left",align:"left",visible:!0,overlap:!1});t["default"]=function(e){var t,n,a=e.config,u=a.contextAxesX,d=a.contextAxesY,f=a.contextPanels.map((function(e){return(0,i["default"])(e,{x:e.x.map((function(e){return(0,i["default"])(s(e),(0,l["default"])(u,e.index))})),y:e.y.map((function(e){return(0,i["default"])(c(e),(0,i["default"])((0,l["default"])(d,e.index),{plottype:"line"}))}))})})),h=a.contextTableMap;if(t=f.map((function(t,n){var l=(0,i["default"])(t,{tableMap:h});return(0,o.componentFactory)(e,r["default"],"timeNavigator",a.navigatorEnabled?1:0,[{contextScale:l.x[n].scale.copy(),xConfigs:l.x,yConfigs:l.y,plotConfigs:l.plots,dataTable:l.dataTable,tableMap:l.tableMap,focusScale:e.getFromEnv("focusScalesX")[0]}]),l})),a.contextPanels=t,n=e.getChildren("timeNavigator")&&e.getChildren("timeNavigator")[0]){if(!n||n.getState("removed"))return;n.attachHandlers(),n.addExtEventListener("focusLimitChanged",(function(){n.asyncDraw()}),e)}}},881:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(882)),r=n(274),o=a(n(884)),l=a(n(885)),s=a(n(946)),c=a(n(546)),u=a(n(856)),d=n(547),f=a(n(551)),h=function(e){return e.match(/^canvas/)},g=function(e){return e.remove()},p=function(e,t){var n=t.type,a=t.converter;if("function"==typeof e.formatter)return function(t){return e.formatter(t)+""};var i=function(e){if("string"==typeof e){var t=parseInt(e,10);return Number.isNaN(t)?null:t}return(0,u["default"])(e)?e:null}(e.round);return function(t){var r="string"==typeof e.formatter?e.formatter:function(e){var t,n=e.value,a=e.type,i=(e.subType,e.defaultformat),r=void 0===i||i,o=e.round;if(null!=o&&(t=o>=0?o:Math.max(1,Math.floor(n).toString().length+o+1)),r){var l=Math.abs(n);return 0!==l&&l<1e-4?"axis"===a?null==o?"$e":o<0?"$."+t+"~e":"$."+t+"e":null==o?"$.2e":o<0?"$."+t+"~e":"$."+t+"e":l>=1e-4&&l<1||0===l?"axis"===a?null==o?"$":o<0?"$."+t+"~":"$."+t:null==o?"$.2":o<0?"$."+t+"~":"$."+t:"axis"===a?null==o?"$~s":o<0?"$."+t+"~s":"$."+t+"s":null==o?"$.2~s":o<0?"$."+t+"~s":"$."+t+"s"}return null==o?"$.12~r":o>=0?"$."+t+"f":"$."+t+"~r"}(Object.assign({},e,{subType:n,value:t.value,type:t.type,round:i}));return"s"===new f["default"](r).type&&(null==i||i>=0)?a.formatPrefix(r,t.value).format(t.value):a.formatter(r).format(t.value)}},m=function(e){return!!e.visible},v=function(e){return"left"===e.align},y=function(e){return"right"===e.align},b=function(e){return"top"===e.align},x=function(e){return"bottom"===e.align};t["default"]=function(e){var t=[],n=e.getFromEnv("baseTextStyle"),a=e.getFromEnv("dataSource"),u={orientation:"bottom",align:"bottom",tickpadding:2,visible:!0,overlap:!1,domainline:!1,outputtimeformat:{},style:{"label-major":Object.assign({fill:"#818181"},n),"label-context":Object.assign({fill:"#818181"},n)}},f={tickarguments:[4,"s"],ticksize:5,tickpadding:7,visible:!0,overlap:!1,domainline:!1,style:{"label-major":Object.assign({"font-size":"11px"},n),"tick-mark-major":{stroke:"#efefef"}}},k=(0,i["default"])(u),S=(0,i["default"])(f),_=e.config,C=_.canvasAxisMap,w=_.focusAxesX,D=_.focusAxesY,E=e.getFromEnv("chart-attrib"),T=e.getFromEnv("getStyleDef")(E.style&&E.style.canvas),M=_.focusPanels.map((function(e){return(0,i["default"])(e,{x:e.x.map((function(e){var t=w[e.index],n=(0,r.pluck)(w[e.index].format,{});return t.timeFormatterFn="function"==typeof n.formatter?function(e){return n.formatter.call(t.scale,e)}:function(e){return t.scale.getFormattedTime&&t.scale.getFormattedTime(e,a.tooltip&&a.tooltip.outputtimeformat)},(0,i["default"])(k(e),(0,s["default"])(w,e.index))})),y:e.y.map((function(e){var t,n=D[e.index],a=Object.assign({defaultformat:!0},(0,r.pluck)(D[e.index].format,{}));return n.formatLabelPrefix=a.prefix||r.BLANKSTRING,n.formatLabelSuffix=a.suffix||r.BLANKSTRING,t=Object.assign({},c["default"],{prefix:n.formatLabelPrefix,suffix:n.formatLabelSuffix}),n.scale.setLocale(t),n.formatterFn=p(a,{converter:new d.NumberConverter(t),type:n.type}),(0,i["default"])(S(e),(0,s["default"])(D,e.index))}))})}));M.forEach((function(n,a){var s,c,u,d,f=n.x,h=n.y,g=n.plots,p="canvas_"+a,k={left:0,right:0};C[p]||(C[p]={x:[],y:[]}),f.filter(m).forEach((function(t,n){var i="axesX_"+a+"_"+n;t.align=t.align.toLowerCase(),["bottom","top"].includes(t.align)||(t.align="bottom"),t.tickvisibilitylimit={start:r.UNDEF,end:r.UNDEF},(0,r.componentFactory)(e,o["default"],i,1,[t]),C[p].x.includes(i)||C[p].x.push(i)})),h.filter(m).forEach((function(t,n){var i,l="axesY_"+a+"_"+n;("left"===(i=t.orientation)||"right"===i)&&(t.align=t.orientation),t.orientation=t.align,t.domainline=k[t.align]>0,"log"===t.type&&(t.tickarguments=[4,"~s"]),k[t.align]++,t.tickvisibilitylimit={start:r.UNDEF,end:r.UNDEF},(0,r.componentFactory)(e,o["default"],l,1,[t]),C[p].y.includes(l)||C[p].y.push(l)})),t.push(p),(0,r.componentFactory)(e,l["default"],p,1,[(s={plotConfigs:g,tableMap:_.focusTableMap,xConfigs:f,yConfigs:h,enableGridLines:!0,gridBandSupported:"log"!==h[0].type,enableMouseTracking:1,enableMarkers:1,enableInteraction:1,canvasStyle:T},c={leftBorder:!1,rightBorder:!1,topBorder:!1,bottomBorder:!1},u=s.xConfigs,d=s.yConfigs,(u.find(v)||d.find(v))&&(c.leftBorder=!0),(u.find(y)||d.find(y))&&(c.rightBorder=!0),(u.find(b)||d.find(b))&&(c.topBorder=!0),(u.find(x)||d.find(x))&&(c.bottomBorder=!0),(0,i["default"])(s,c))])})),Object.keys(e.getChildren()).filter(h).filter((function(e){return!t.includes(e)})).forEach((function(t){e.getChildren(t).forEach(g)})),_.focusPanels=M}},977:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=n(274),r=a(n(978));t["default"]=function(e){var t,n=e.getChildren("standardRangeSelector"),a=e.getChildren("customRangeSelector");(0,i.componentFactory)(e,r["default"],"toolbar-manager"),t=e.getChildren("toolbar-manager")[0],n&&n[0]&&!n[0].getState("removed")?t.register("srs",n[0]):t.deRegister("srs"),a&&a[0]&&!a[0].getState("removed")?t.register("crs",a[0]):t.deRegister("crs"),t.configure()}},863:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(273)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=E(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}a["default"]=e,n&&n.set(e,a);return a}(n(861)),o=n(274),l=n(864),s=n(490),c=n(497),u=a(n(865)),d=a(n(538)),f=a(n(541)),h=a(n(481)),g=a(n(868)),p=a(n(350)),m=a(n(876)),v=a(n(862)),y=n(877),b=n(859),x=n(875),k=n(483),S=n(874),_=a(n(355)),C=a(n(878)),w=a(n(879)),D=a(n(349));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I={time:g["default"],utctime:m["default"],scaletime:C["default"],scaleutctime:w["default"],numeric:f["default"],log:u["default"]};t["default"]=function(e){var t,n,a,i,u,f,g,m,C,w,E,T,F,L,O,P,A,B,N,H,j,R=e.config,V=R.contextAxesX,G=(0,D["default"])(V[0].clip)?V[0].clip:[],Y=R.focusAxesX,U=R.focusAxesY,z=e.getFromEnv("dateColumn").name,X=Y[0].binning,W=R.dataTable,q=W.getData(),Z=q.data,$=q.schema,K=e.getFromEnv("UTC"),Q=V[0].autoclipnulldata?V[0].autoclipnulldata.toLowerCase():null,J=V[0].autoclipmultiplier||1,ee=K?{Year:new _["default"](c.utcYearObj),Month:new _["default"](c.utcMonthObj),Week:new _["default"](c.utcWeekObj),Day:new _["default"](c.utcDayObj),Hour:new _["default"](c.utcHourObj),Minute:new _["default"](c.utcMinuteObj),Second:new _["default"](s.secondObj),Millisecond:new _["default"](s.millisecondObj)}:{Year:new _["default"](s.yearObj),Month:new _["default"](s.monthObj),Week:new _["default"](s.weekObj),Day:new _["default"](s.dayObj),Hour:new _["default"](s.hourObj),Minute:new _["default"](s.minuteObj),Second:new _["default"](s.secondObj),Millisecond:new _["default"](s.millisecondObj)},te={week:0},ne=K?{Day:c.utcDay,Hour:c.utcHour,Week:c.utcWeek,Year:c.utcYear,Month:c.utcMonth,Minute:c.utcMinute,Second:c.utcSecond,Millisecond:c.utcMillisecond}:{Day:s.timeDay,Hour:s.timeHour,Week:s.timeWeek,Year:s.timeYear,Month:s.timeMonth,Minute:s.timeMinute,Second:s.timeSecond,Millisecond:s.timeMillisecond},ae=[0,.8*e.getFromEnv("chartWidth")/Y.length],ie=function(e,t){var n,a,i=e.type,o=void 0===i?"time":i,l=(e.plot,new(("time"===o&&K?I["scaleutc"+o]:I["scale"+o])||I.scaletime)),s=null==R?void 0:R.dateColumnIndex,c=undefined!==s?null==(n=$[s])?void 0:n.format:null;return!X&&c&&function(e){return/^(%w[^%y]*%y)$/i.test(e)}(c)&&(X=te),(a=X?new r["default"]((0,y.getCustomBins)(ee.Year,ee.Month,ee.Week,ee.Day,ee.Hour,ee.Minute,ee.Second,ee.Millisecond,X)):new r["default"]((0,y.getDefaultBins)(ee.Year,ee.Month,ee.Week,ee.Day,ee.Hour,ee.Minute,ee.Second,ee.Millisecond))).setScale(l),a.setBinRange(ae),a.setRangeThreshold(R.pixelMultiplier*r.DEFAULT_THRESHOLD_PIXELS),a},re=function(e){var t,n,a,r,o=[],l=[],s=e.length;for(t=0;t<s;t++)o[t]=(n=e[t],a=void 0,r=void 0,a=n.type,new(("time"===(r=void 0===a?"time":a)&&K?I["utc"+r]:I[r])||I.time)),o[t].setTimeInterval(ee),o[t].setUnclippedTimeIntervals(ne),l[t]=ie(e[t]),i.length&&o[t].setClippings(i),o[t].setThresholdIntervals((0,y.getDefaultBins)(ee.Year,ee.Month,ee.Week,ee.Day,ee.Hour,ee.Minute,ee.Second,ee.Millisecond));return{scales:o,bins:l}},oe=function(e){var t=e.value;return[W.min(t),W.max(t)]},le=function(e){var t,n,a,i,r;return n=(t=new Date(e)).getHours()-0,a=t.getMinutes(),i=t.getSeconds(),r=t.getMilliseconds(),t.toDateString().slice(4)+" "+n+":"+a+":"+i+":"+r},se=function(e){return"year"===Q?e.setFullYear(e.getFullYear()+J)-1:"month"===Q?e.setMonth(e.getMonth()+J)-1:void 0},ce=function(e,t,a){var i,r=0,o=Z.length,l=E,s=i=l+n*J-t;for(26784e5!==e&&31536e6!==e||se(new Date(l));s<=T;)if(r<o)if(Z[r][0]>=l&&Z[r][0]<=s&&(0===Z[r][a]||Z[r][a]))for(i=s;l<=i;){var c=new Date(l);for(26784e5===e?(l=c.setMonth(c.getMonth()+1),s=se(new Date(l))):31536e6===e?(l=c.setFullYear(c.getFullYear()+1),s=se(new Date(l))):(l+=e,s+=e);Z[r][0]<l&&++r!==o&&(0===Z[r][a]||Z[r][a]););if(Z[r][0]>s||l===T||0!==Z[r][a]&&!Z[r][a]){i=s;break}}else if(Z[r][0]<l||Z[r][0]>=l&&Z[r][0]<=s)r++;else{var u={format:"%b %d %Y %H:%M:%S:%L",from:le(l),to:le(s)};G.push(u),l=s+t,26784e5===e||31536e6===e?s=se(new Date(l)):s+=n*J,i=s}},ue=[];if(L=V[0].plot.map(oe),F=(0,d["default"])((t=[]).concat.apply(t,L),Number),E=F[0],T=F[1],Q&&(function(){switch(Q){case"year":n=31536e6;break;case"month":n=26784e5;break;case"day":n=864e5;break;case"hour":n=36e5;break;case"minute":n=6e4;break;case"second":n=1e3;break;case"millisecond":n=1;break;default:n=0}}(),0!==n&&"number"==typeof J&&isFinite(J)&&Math.floor(J)===J&&J>0))for(var de=(P=6e4,-1!==(A=$[0].format).search(/%[-,_,0]?[L]/)?P=1:-1!==A.search(/%[-,_,0]?[s,S]/)?P=1e3:-1!==A.search(/%[-,_,0]?[M]/)?P=6e4:-1!==A.search(/%[-,_,0]?[H,I]/)?P=36e5:-1!==A.search(/%[-,_,0]?[d,a,A,j]/)?P=864e5:-1!==A.search(/%[-,_,0]?[b,B,m]/)?P=26784e5:-1!==A.search(/%[-,_,0]?[y,Y]/)&&(P=31536e6),{intervalRange:P,timeDelta:1}),fe=0;fe<U.length;fe++)for(var he=0;he<$.length;he++)if(U[fe].plot[0].value===$[he].name){ce(de.intervalRange,de.timeDelta,he);break}if(i=G.map((function(e){var t,n,a,i,r,l=R.baseTimeConverter,s=o.BLANKSTRING;if(e.format&&(l=K?p["default"].utcParser(e.format):p["default"].parser(e.format)),s=(0,S.getMinPlaceHolder)(l.toString()),a=ee[(0,v["default"])(s)],e.repeat&&((t=M({},e.repeat)).multiplier=Math.abs(parseInt(t.multiplier,10))),(i=+l.parse(e.from))>(r=+l.parse(e.to))){var c=[r,i];i=c[0],r=c[1]}return r=+a.offset(r),n=M(M({},e),{},{format:l.toString(),to:r,from:i,level:(0,S.getMinPlaceHolder)(l.toString())}),t&&(n.repeat=t),n})),O=(0,l.segregateClips)(i),u=O.repeatClips,f=O.singleClips,g=function(e,t){var n=e[t[z]];return n!==(0,l.getUnclippedValue)(n,u,f)},i.length){ue=[(0,k.filter)(g)],B=E,N=T,H=i,(j=ee).Day.setClipDates(H),j.Day.setTimeUniverse([B,N]),j.Hour.setClipDates(H),j.Hour.setTimeUniverse([B,N]),j.Week.setClipDates(H),j.Week.setTimeUniverse([B,N]),j.Year.setClipDates(H),j.Year.setTimeUniverse([B,N]),j.Month.setClipDates(H),j.Month.setTimeUniverse([B,N]),j.Minute.setClipDates(H),j.Minute.setTimeUniverse([B,N]),j.Second.setClipDates(H),j.Second.setTimeUniverse([B,N]),j.Millisecond.setClipDates(H),j.Millisecond.setTimeUniverse([B,N]),e.cloneTable();var ge=(W=R.dataTable).getData();Z=ge.data,$=ge.schema}if(m=re(V),C=re(Y),W.getDataStore().on("itemsAdded",e._onDataUpdate),e.addEventListener("beforeremove",e._offDataUpdate),e.addToEnv("timeIntervals",ee),e.addToEnv("unclippedTimeIntervals",ne),R.timeSpread&&R.timeSpread.duration&&(a=Z.length?Z[Z.length-1][R.dateColumnIndex]:+x.TIME_SPAN[0],ue=ue.concat((0,k.less)(z,Math.min(R.timeSpread.interval.offset(a,-R.timeSpread.multiplier),m.bins[0].getRangeThreshold()[0].offset(a,-2))))),ue.length&&W.getDataStore().deleteRows(k.pipe.apply(void 0,ue),W.getID()),Z=W.getData().data,!R.atomicity){var pe=R.atomicity=M({},(0,b.getFormatStore)($[R.dateColumnIndex].format));pe.minBin=(0,b.getAtomicity)(M(M({},pe),{},{index:R.dateColumnIndex,data:Z,bins:m.bins[0].getStandardBins(),intervalIndexMap:m.bins[0].intervalIndexMap,ms:ee.Millisecond}))}C.bins[0].setBinMin(R.atomicity.minBin),C.scales[0].setBinMin(C.bins[0].getBinMin()).setRangeThreshold(C.bins[0].getRangeThreshold()),m.bins[0].setBinMin(R.atomicity.minBin),m.scales[0].setBinMin(m.bins[0].getBinMin()).setRangeThreshold(m.bins[0].getRangeThreshold()),w=function(e){var t,n,a,i,r,o,l,s,c=e.plot.map(oe),u=(0,d["default"])((t=[]).concat.apply(t,c),Number),f=m.bins[0].getBinMin()[2],g=e.plot[0].value,v=e.format||$.find((function(e){return e.name===g})).format,y=K?p["default"].utcParser(v):p["default"].parser(v),b=(0,h["default"])(e.initialinterval)?e.initialinterval:{};return R.rawDataXStart=u[0],Z.length||"undefined"!=typeof u[0]&&"undefined"!=typeof u[1]||(u[0]=+x.TIME_SPAN[0],u[1]=+x.TIME_SPAN[1]),R.timeSpread&&R.timeSpread.duration>=3*f?u[0]=+ee[R.timeSpread.unit.name].offset(u[1],-R.timeSpread.multiplier):Z.length<3&&(0===Z.length?(u[0]=+x.TIME_SPAN[0],u[1]=u[0]+3*f):u[0]=u[1]-2*f),(n=u.slice())[0]=(a=b.from,i=n[0],null===(r=y.parse(a))?i:r>i?+r:i),n[1]=(o=b.to,l=n[1],null===(s=y.parse(o))?l:s<l?+s:l),{focus:n=(0,d["default"])(n),context:u}}(V[0]),m.scales.forEach((function(e){e.setFirstData(R.rawDataXStart)})),C.scales.forEach((function(e){e.setFirstData(R.rawDataXStart)})),e.addToEnv("contextScalesX",m.scales),e.addToEnv("focusScalesX",C.scales),e.addToEnv("contextBins",m.bins),e.addToEnv("focusBins",C.bins),R.clipDates=i,e.setContextLimit(w.context),e.setFocusLimit(w.focus)}},880:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(868)),r=a(n(541)),o=a(n(865)),l={time:i["default"],linear:r["default"],log:o["default"]};t["default"]=function(e){var t=e.config,n=t.focusAxesY,a=t.contextAxesY||[],i=function(e){var t=e.type,n=e.base,a=l[t]||l.linear;return a===o["default"]&&+n>0?(new a).setBase(n):new a};e.addToEnv("contextScalesY",a.map(i)),e.addToEnv("focusScalesY",n.map(i))}},805:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(292)),r=a(n(288)),o=a(n(273)),l=a(n(806)),s=a(n(834)),c=a(n(838)),u=a(n(852)),d=a(n(845)),f=a(n(853)),h=n(274),g=n(483),p=a(n(538)),m=a(n(540)),v=n(490),y=n(497),b=a(n(481)),x=a(n(855)),k=a(n(856)),S=a(n(446)),_=n(358),C=a(n(857)),w=a(n(520)),D=a(n(531)),E=n(859),T=n(861),M=a(n(569)),I=a(n(862)),F=a(n(863)),L=a(n(880)),O=a(n(881)),P=a(n(947)),A=a(n(949)),B=n(951),N=a(n(952)),H=a(n(956)),j=a(n(957)),R=a(n(907)),V=a(n(959)),G=a(n(968)),Y=a(n(977)),U=a(n(979)),z=a(n(980)),X=a(n(982)),W=a(n(984)),q=a(n(349)),Z=a(n(350)),$=n(864),K=a(n(504));function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee={day:v.timeDay,hour:v.timeHour,week:v.timeWeek,year:v.timeYear,month:v.timeMonth,minute:v.timeMinute,second:v.timeSecond,millisecond:v.timeMillisecond},te={day:y.utcDay,hour:y.utcHour,week:y.utcWeek,year:y.utcYear,month:y.utcMonth,minute:y.utcMinute,second:y.utcSecond,millisecond:y.utcMillisecond},ne=h.regex.dropHash,ae="aggregate",ie=function(e){return void 0===e&&(e=0),new Date(e)},re=function(e){return void 0===e&&(e=""),e.toString()},oe=function(e,t){return e.getSchema().filter(t).map((function(e){return e.name}))},le=function(e){return e.map((function(e){return{x:e.x,y:e.y,plots:(0,u["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]}}))}}))},se=function(e,t){return e+t},ce=function(e){return Object.assign({},e,{filter:e.plot.map((function(e){return e.value})),filterInfo:{}})},ue=function(e){return+e.split("_").pop()},de=function(e){return"date"===e.type},fe=function(e){return de(e)||function(e){return"interval"===e.type}(e)},he=function(e){return"number"===e.type},ge=function(e){return"string"===e.type},pe=(0,f["default"])(l["default"]),me=function(e,t){void 0===e&&(e=new Set),void 0===t&&(t=[]);var n=Array.from(e);(0,M["default"])(n,t).forEach((function(t){return e["delete"](t)})),t.forEach((function(t){return e.add(t)}))},ve=function(e,t){return pe((function(e,n){return t.map((function(e,t,a){return{x:[{index:n,visible:t===a.length-1}],y:[{index:t,align:"left"}]}}))}),e)},ye=function(e,t){return pe((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)},be=function(e,t){for(var n in e)e.hasOwnProperty(n)&&(e[n]._fc_info.table||(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),we(e[n]))},xe=function(e,t){for(var n in e)e.hasOwnProperty(n)&&(e[n]._fc_info.table=t.table,e[n]._fc_info.group=n,we(e[n]))},ke=function(e,t){for(var n in e)e.hasOwnProperty(n)&&(e[n]._fc_info.table=t.table,e[n]._fc_info.groupItems=t.groupItems,e[n]._fc_info.group=t.group,we(e[n]))},Se=function(e){var t=e.operands,n=[];if(e.filter){for(var a in t)if(t.hasOwnProperty(a))for(var i in t[a])t[a].hasOwnProperty(i)&&(0,q["default"])(t[a][i])&&(n.push(i),t[a][i].length=0);n=(0,c["default"])(n)}else for(var r in t)t.hasOwnProperty(r)&&(0,q["default"])(t[r])&&(n.push(r),t[r].length=0);return n.map((function(t){return{column:t,operation:e.op}}))},_e=function(e,t,n,a){void 0===t&&(t=[]);var i=function(i){if("plottype"!==i){var r=function(e){return e.column===i&&e.operation===a};(t.length>0?(0,l["default"])((function(e){return n.filter(r).map((function(t){return[e,t.column,t.operation]}))}),t).map((function(e){return e.join(K["default"])})):n.filter(r).map((function(e){return[e.column,e.operation].join(K["default"])}))).forEach((function(t){return e[i].push(t)}))}};for(var r in e)i(r)},Ce=function(e,t){for(var n in e)e.hasOwnProperty(n)&&function(){var a=e[n]._fc_info,i=a.binDecider,r=a.chart,o=i.getRangeThreshold(),s=[{column:a.bin,timeUnit:_.DatetimeUnits[(0,I["default"])(o[0].name())],binSize:o[1],startValue:a.totalStart,weekStartFrom:r.config.startOfWeek}],c=t.group,u=t.groupItems,f=t.pivot,h=t.table,p=ae;if(e[n][p]){var m,v,y=e[n][p]._fc_info,b=[],x=[],k=[],S=[],C=[],w=!1;for(var D in y)y.hasOwnProperty(D)&&b.push({op:D,operands:y[D],filter:c});if(m=(0,l["default"])(Se,b),c){var E=u.map((function(e){for(var t,n,a=0;a<b.length&&!t;++a)b[a].operands[e].table&&(n=(t=b[a].operands[e].table)._parentTable);return{table:t,filterQuery:!t&&(0,g.filter)((function(t,n){return t[n[c]]===e})),parentTable:n}})).map((function(e){var t=e.table,n=e.filterQuery,a=e.parentTable;return{newTable:!t,table:t||h.query([n]),parentTable:a}}));f?(v=(0,g.pivot)(s,f,m),E.forEach((function(e){var n,a=e.table,i=e.newTable,o=e.parentTable;if(i)w=!0,n=a.unique(f),S.push(new Set(n)),k.push(n),x.push(a.query([v]));else{var l=Array.from(a.__set);me(a.__set,o.unique(f)),n=Array.from(a.__set),k.push(n),(0,d["default"])(n,l)?x.push(a):(a.disposed||(o.disposeChildren(),r.removeEventListener("focusLimitChanged",t.query)),x.push(o.query([v])),w=!0)}}))):(v=(0,g.groupBy)(s,m),x=E.map((function(e){var t=e.table,n=e.newTable;return n&&(w=!0),n?t.query([v]):t})))}else if(f?(v=(0,g.pivot)(s,f,m),C=h.unique(f)):v=(0,g.groupBy)(s,m),b[0].operands.table){var T=b[0].operands.table.__set,M=Array.from(T);me(T,C),C=Array.from(T),S.push(T),(0,d["default"])(M,C)&&!b[0].operands.table.diposed?x=[b[0].operands.table]:(b[0].operands.table.dispose(),x=[h.query([v])],w=!0)}else S.push(new Set(C)),x=[h.query([v])],w=!0;w&&r.addEventListener("focusLimitChanged",t.query=function(e){x.filter((function(e){return e&&!e.disposed})).length?(o=i.getRangeThreshold(),s=[{column:a.bin,timeUnit:_.DatetimeUnits[(0,I["default"])(o[0].name())],binSize:o[1],startValue:a.totalStart,weekStartFrom:r.config.startOfWeek}],f?v._updateArgs(s,f,m):(s.startValue=a.totalStart,v._updateArgs(s,m))):e.detachHandler()}),b.forEach((function(e){var t=e.operands;c?u.forEach((function(n,i){var r=t[n];r.table=x[i],r.position=a.bin,r.filterItem=n,r.table.__set=S[i],_e(r,k[i],m,e.op)})):(t.table=x[0],t.position=a.bin,t.table.__set=S[0],_e(t,C,m,e.op))}))}}()},we=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];"filter"===t?be(n,e._fc_info):"group"===t?xe(n,e._fc_info):"pivot"===t?ke(n,e._fc_info):"bin"===t&&Ce(n,e._fc_info)}},De=function(e,t){var n,a,i,r,o,l,s,c=e.config;t?(n=c.contextPanels,a=c.contextAxesX,i=c.contextAxesY,r=e.getFromEnv("contextBins"),o=e.getFromEnv("contextScalesX"),l=e.getFromEnv("contextScalesY"),s=c.contextTableMap):(n=c.focusPanels,a=c.focusAxesX,i=c.focusAxesY,r=e.getFromEnv("focusBins"),o=e.getFromEnv("focusScalesX"),l=e.getFromEnv("focusScalesY"),s=c.focusTableMap);for(var u=0,d=n.length;u<d;u++)for(var f=n[u].plots,p=function(t,n){var u=f[t],d=a[u.x],p=i[u.y],m=r[u.x],y=m.getRangeThreshold(),b=m.getBinDomain().map(Number),x=o[u.x],k=l[u.y],S=s;u.plots=[],d.binDecider=m,d.scale=x,p.scale=k,d.filter&&(S.filter||(S.filter={}),S=S.filter,d.filterInfo.query||(d.filterInfo.query=(0,g.between)(d.filter[0],b[0]-2*y[2],b[1]+2*y[2])),S["x__FC_OP_SEP__"+u.x]||(S["x__FC_OP_SEP__"+u.x]={_fc_info:{filter:d.filter[0],filterInfo:d.filterInfo,start:b[0],end:b[1]}}),S=S["x__FC_OP_SEP__"+u.x]),p.filter&&(S||(S.filter={}),(S=S.filter)["y__FC_OP_SEP__"+u.y]||(S["y__FC_OP_SEP__"+u.y]={_fc_info:{filter:p.filter[0]}}),S=S["y__FC_OP_SEP__"+u.y]),p.plot.forEach((function(t,n){var a=S,i=[];if(t.group){var r=t.group;if(S.group||(S.group={}),(S=S.group)[r]||(S[r]={_fc_info:{}}),i=c.dataTable.unique(r),S[r]._fc_info.groupItemsSet){var o=S[r]._fc_info.groupItemsSet;me(o,i),S[r]._fc_info.groupItems=i=Array.from(o)}else S[r]._fc_info.groupItemsSet=new Set(i),S[r]._fc_info.groupItems=i;S=S[r]}if(t.stack){var l=t.stack;S.pivot||(S.pivot={}),(S=S.pivot)[l]||(S[l]={_fc_info:{pivot:l}}),S=S[l]}if(d.bin&&(S.bin||(S.bin={}),(S=S.bin)["x__FC_OP_SEP__"+u.x]||(S["x__FC_OP_SEP__"+u.x]={_fc_info:{chart:e,bin:d.bin[0],binDecider:m}}),(S=S["x__FC_OP_SEP__"+u.x])._fc_info.totalStart=+v.timeYear.floor(c.rawDataXStart)),p.bin&&(S.bin||(S.bin={}),(S=S.bin)["y__FC_OP_SEP__"+u.y]||(S["y__FC_OP_SEP__"+u.y]={_fc_info:{bin:p.bin[0]}}),S=S["y__FC_OP_SEP__"+u.y]),S.aggregate||(S.aggregate={_fc_info:{}}),"candlestick"===t.type||"ohlc"===t.type)for(var s=t.group?i.length:1,f=0;f<s;++f){var g={plottype:t.type,typeinnavigator:t.typeinnavigator},y=t.group?i[f]:h.UNDEF;if(t.open){S.aggregate._fc_info.first||(S.aggregate._fc_info.first={});var b=S.aggregate._fc_info.first;y&&!b[y]&&(b[y]={}),y?b[y][t.open]||(b[y][t.open]=[]):b[t.open]||(b[t.open]=[]),g.open=y?b[y][t.open]:b[t.open]}if(t.high){S.aggregate._fc_info.max||(S.aggregate._fc_info.max={});var x=S.aggregate._fc_info.max;y&&!x[y]&&(x[y]={}),y?x[y][t.high]||(x[y][t.high]=[]):x[t.high]||(x[t.high]=[]),g.high=y?x[y][t.high]:x[t.high]}if(t.low){S.aggregate._fc_info.min||(S.aggregate._fc_info.min={});var k=S.aggregate._fc_info.min;y&&!k[y]&&(k[y]={}),y?k[y][t.low]||(k[y][t.low]=[]):k[t.low]||(k[t.low]=[]),g.low=y?k[y][t.low]:k[t.low]}if(t.close){S.aggregate._fc_info.last||(S.aggregate._fc_info.last={});var _=S.aggregate._fc_info.last;y&&!_[y]&&(_[y]={}),y?_[y][t.close]||(_[y][t.close]=[]):_[t.close]||(_[t.close]=[]),g.close=y?_[y][t.close]:_[t.close]}var C=S.aggregate._fc_info;g.tableInfo=(y?[C.first[y],C.max[y],C.min[y],C.last[y]]:[C.first,C.max,C.min,C.last]).filter((function(e){return!!e}))[0],g.value=t.value,g.plotInAxisIndex=n,u.plots.push(g)}else if("column-range"===t.type||"area-range"===t.type)for(var w=t.group?i.length:1,D=0;D<w;++D){var E={plottype:t.type,typeinnavigator:t.typeinnavigator,name:t.name},T=t.group?i[D]:h.UNDEF;if(t.high){S.aggregate._fc_info.max||(S.aggregate._fc_info.max={});var M=S.aggregate._fc_info.max;T&&!M[T]&&(M[T]={}),T?M[T][t.high]||(M[T][t.high]=[]):M[t.high]||(M[t.high]=[]),E.high=T?M[T][t.high]:M[t.high]}if(t.low){S.aggregate._fc_info.min||(S.aggregate._fc_info.min={});var I=S.aggregate._fc_info.min;T&&!I[T]&&(I[T]={}),T?I[T][t.low]||(I[T][t.low]=[]):I[t.low]||(I[t.low]=[]),E.low=T?I[T][t.low]:I[t.low]}var F=S.aggregate._fc_info;E.tableInfo=(T?[F.max[T],F.min[T]]:[F.max,F.min]).filter((function(e){return!!e}))[0],E.plotInAxisIndex=n,u.plots.push(E)}else{S.aggregate._fc_info[t.aggregation]||(S.aggregate._fc_info[t.aggregation]={});var L=S.aggregate._fc_info[t.aggregation];if(t.group)for(var O=0;O<i.length;++O){var P=i[O];L[P]||(L[P]={}),L[P][t.value]||(L[P][t.value]=[]),u.plots.push({plottype:t.type,typeinnavigator:t.typeinnavigator,tableInfo:L[P],value:L[P][t.value],stack:t.stack,plotInAxisIndex:n})}else L[t.value]||(L[t.value]=[]),u.plots.push({plottype:t.type,typeinnavigator:t.typeinnavigator,tableInfo:L,value:L[t.value],stack:t.stack,plotInAxisIndex:n})}S=a}))},m=0,y=f.length;m<y;m++)p(m)},Ee=function(e,t,n,a,i,r){var o=i;(0,k["default"])(o)&&0!==o||(o=10);var l=e>0&&isFinite(e)?function(e,t){var n=.9*e;return t?Math.min(n,1):n}(e,r):1,s=(0,k["default"])(n)&&n>0&&n<e?n:l,c=t>0&&isFinite(t)?t:l+ +o;return[s,(0,k["default"])(a)&&a>s?a:1.2*c]},Te=function(e,t,n,a,i){var r,o,l,s=t,c=e,u=n,d=a;!isFinite(c)&&(c=h.UNDEF),!isFinite(s)&&(s=h.UNDEF),!isFinite(u)&&(u=h.UNDEF),!isFinite(d)&&(d=h.UNDEF),o=c===s?c-Math.abs(.1*c):c-Math.abs(.2*(s-c)),l=c===s?s+Math.abs(.2*s):s+Math.abs(.2*(s-c));var f=u<c?u:c!==h.UNDEF?function(e,t,n){var a=e-Math.abs(.1*e);return(a=a<n?n:a)>0&&t?0:a}(c,i,o):0,g=f<0&&(d<0||s<0);return[f,r=d>s?d:s!==h.UNDEF?g&&i?0:l<(r=s+Math.abs(.2*s))?l:r:f+1]},Me=function Ye(e){for(var t in e)if(e.hasOwnProperty(t)){var n="stroke-dasharray"===t;"object"==typeof e[t]?Ye(e[t]):n&&("string"==typeof(a=e[t])&&"none"!==a)&&(e[t]=e[t].replace(/^\s+|\s+$/g,"").replace(/,/g," ").split(" ").map((function(e){return+e})))}var a},Ie=function Ue(e){for(var t in e)e.hasOwnProperty(t)&&("object"==typeof e[t]?Ue(e[t]):"opacity"!==t&&"stroke-opacity"!==t&&"fill-opacity"!==t||(e[t]=Math.max(0,Math.min(1,+e[t]))))},Fe=function(e,t){var n=e.bin;for(var a in n){if(n.hasOwnProperty(a)&&/x__FC_OP_SEP__/.test(a))n[a]._fc_info.totalStart=t}},Le=function(e,t){var n=+v.timeYear.floor(t);if(e.filter){var a=e.filter;for(var i in a)a.hasOwnProperty(i)&&/x__FC_OP_SEP__/.test(i)&&Fe(a[i],n)}else Fe(e,n)},Oe=function(e){e.dispose&&e.dispose()},Pe=function ze(e,t,n){void 0===e&&(e={}),void 0===n&&(n=h.stubFN);for(var a=Object.keys(e),i=a.length,r=!0,o=0;o<i&&r;++o){var l=a[o],s=e[l];if("_fc_info"===l||"table"===l){var c="table"===l?s:s.table;c&&c!==t&&(n(c),r=!1)}else l===ae?ze(s._fc_info,t,n):(0,b["default"])(s)&&ze(s,t,n)}},Ae=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.")}},Be=function(e){void 0===e&&(e={});var t,n="style='";for(t in e)e.hasOwnProperty(t)&&(n+=t+": "+e[t]+"; ");return n+="'"};function Ne(e,t,n){return e["get"+n+t]()}function He(e,t,n){var a,i,r,o,l,s,c=e._getRangeThreshold(),u=e.showPlotOverTick(),d=u?Math.round:Math.floor,f=new Date(n),h=new Date(t),g=c[2];return"year"===c[0].name()?d(c[0].count(n,t)/c[1]):"month"===c[0].name()?(o=Ne(f,"FullYear",e.getType()),l=Ne(h,"FullYear",e.getType()),i=Ne(f,"Month",e.getType()),r=Ne(h,"Month",e.getType()),a=Math.max(0,l-o-1),o===l?s=Math.floor(r/c[1])-Math.floor(i/c[1]):(s=12*a/c[1],s+=12/c[1]-Math.floor(i/c[1]),s+=Math.floor(r/c[1])),u&&h.getDate()>14&&s++,s):d((t-n)/g)}function je(e){var t=e.data,n=t.parsedRows,a=void 0===n?[]:n,i=t.tableID,r=this,o=r.config,l=o.focusAxesX[0],s=o.clipDates,c=this.getFromEnv("dateColumn").name,u=r.getFromEnv("contextBins"),f=r.getFromEnv("focusBins"),h=r.getFromEnv("focusScalesX"),m=r.getFromEnv("contextScalesX"),y=o.dataTable.getData().data,b=(0,p["default"])(a,(function(e){return(0,S["default"])(e)&&e[o.dateColumnIndex]})),x=[],k=this.getContextLimit(),_=v.timeYear.floor(k[0]),C=this.getFocusLimit(),w=C.slice(),D=C[1]-C[0],M=Math.min(y[0][o.dateColumnIndex],b[0]),I=!1,F=[];if(o.dataTable.getID()===i){if(s.length&&(F=[(0,g.filter)((function(e,t){var n=e[t[c]];return s.some((function(e){var t=e.from,a=e.to;return n>=t&&n<=a}))}))]),m.some((function(e){var t,n=He(e,k[1],_);return He(e,b[1],_)-n>0&&(t=u[0].getRangeThreshold()[0],M=+t.offset(k[0],t.count(k[1],b[1])),F=F.concat((0,g.less)(c,M-(1===u[0].getRangeThreshold()[2]?0:1))),I=!0,!0)})),F.length&&(o.dataTable.getDataStore().deleteRows(g.pipe.apply(void 0,F),o.dataTable.getID()),y=o.dataTable.getData().data,M=Math.max(M,Math.min(y[0][o.dateColumnIndex],b[0]))),o.contextAxesX.forEach((function(e){var t=e.binDecider,n=e.scale;o.atomicity.minBin=(0,E.getAtomicity)(J(J({},o.atomicity),{},{index:o.dateColumnIndex,data:y.slice(-a.length-1),bins:t.getStandardBins(),intervalIndexMap:t.intervalIndexMap,ms:n.getTimeInterval().Millisecond})),t.setBinMin(o.atomicity.minBin),n.setRangeThreshold(t.getRangeThreshold())})),o.focusAxesX.forEach((function(e){var t=e.binDecider,n=e.scale;t.setBinMin(o.atomicity.minBin),n.setRangeThreshold(t.getRangeThreshold())})),I||y.length-a.length==0){var L=u[0].getBinMin(),O=u[0].getRangeThreshold();o.timeSpread?(x[1]=b[1],x[0]=Math.min(o.timeSpread.interval.offset(b[1],-o.timeSpread.multiplier),O[0].offset(b[1],-2))):I||y.length-a.length==0?(x[1]=b[1],x[0]=Math.min(b[1]-(k[1]-k[0]),b[1]-(b[1]-M),L[0].offset(b[1],-3))):x=(0,p["default"])([].concat(k,b),Number)}else if(o.timeSpread){var P=Math.min(k[0],b[0]),A=Math.max(k[1],b[1]);x=[P+Math.max(0,b[1]-k[1]),A]}else x=(0,p["default"])([].concat(k,b),Number);var B=o.rawDataXStart!==M&&!o.hasSeries;if(B&&(Le(o.focusTableMap,M),Le(o.contextTableMap,M)),o.rawDataXStart=M,r.setContextLimit(x),C[0]<=k[0]&&(w[0]=x[0],C[1]!==k[1]&&(w[1]=w[0]+D)),C[1]>=k[1]&&(w[1]=x[1],C[0]!==k[0]&&(w[0]=w[1]-D)),w[0]<x[0]&&(w[0]=x[0],w[1]=w[0]+D),w[1]>x[1]&&(w[1]=x[1],w[0]=w[1]-D),o.hasSeries){(0,d["default"])(w,C)||f[0].setBinDomain(w);var N=f[0].getRangeThreshold();h[0].setRangeThreshold(N),l.filterInfo&&l.filterInfo.query&&l.filterInfo.query._updateArgs(+N[0].offset(+w[0],-2*N[1]),+N[0].offset(+w[1],2*N[1])),De(r),De(r,!0),we(o.focusTableMap),we(o.contextTableMap),r._createLegendMap(!0);for(var H=0;H<u.length;++H){var j=o.pixelMultiplier*T.DEFAULT_THRESHOLD_PIXELS;u[H].setRangeThreshold(j),f[H].setRangeThreshold(j),m[H].setRangeThreshold(u[H].getRangeThreshold()),h[H].setRangeThreshold(f[H].getRangeThreshold())}}r.setFocusLimit(w,!1)||(o.focusAxesX[0].filterInfo.table.flushResults(),B&&r.fireEvent("focusLimitChanged"),r._updateAffectedVisuals({legendInteracted:null}))}}function Re(){this.config.dataTable.getDataStore().off("itemsAdded",this._onDataUpdate)}var Ve=function(e){function t(){var t;t=e.call(this)||this;var n=(0,i["default"])(t);return t._onDataUpdate=je.bind((0,i["default"])(t)),t._offDataUpdate=Re.bind((0,i["default"])(t)),n.eiMethods={getYAxis:function(){return n.getFromEnv("chartInstance").getJSONData().yaxis},setYAxis:function(){var e=n.getFromEnv("chartInstance");if(arguments.length){var t=e.getJSONData();t.yaxis=arguments.length<=0?undefined:arguments[0],e.setJSONData(t)}return e},getCurrentBin:function(){var e=n.getFromEnv("focusBins")[0].getRangeThreshold();return{unit:e[0].name(),multiplier:e[1]}},setCurrentBin:function(e){var t=(0,B.validateUserBin)(e,n);return t&&n.setFocusLimit((0,B.calculateDomainForUserCustomBin)(t,n)),this},getTimeSelection:function(){var e=n.getFocusLimit();return{start:e[0],end:e[1]}},setTimeSelection:function(e){var t=(0,B.validateFocusLimit)(e,this.getTimeSelection(),n);return t&&n.setFocusLimit(t),this},getBinning:function(){return(0,B.filterStandarBinsToUserConfig)(n.getFromEnv("contextBins")[0].getStandardBins())},setBinning:B.setBinningRules,feedData:function(e){if((0,S["default"])(e)){var t=n.config,a=n.getContextLimit(),i=t.baseTimeConverter,r=t.dateColumnIndex;n.cloneTable()&&(t.focusTableMap={_fc_info:{table:t.dataTable}},t.contextTableMap={_fc_info:{table:t.dataTable}},De(n),De(n,!0),we(t.focusTableMap),we(t.contextTableMap),t.dataTable.getDataStore().on("itemsAdded",n._onDataUpdate));var o=e.filter((function(e){return+i.parse(e[r])>=a[0]}));o.length&&t.dataTable.getDataStore().appendRows(o,t.dataTable.getID())}return n}},n.addToEnv("getStyleDef",(function(e){void 0===e&&(e={});var t,a,i,r=e,o=n.getFromEnv("textStyle");if("string"==typeof r){var l=n.getFromEnv("dataSource").styledefinition;t={},l&&r.split(/\s+/g).forEach((function(e){return(0,h.extend2)(t,l[e])}))}return t&&(r=t),Me(r),Ie(r),(r["font-size"]||0===r["font-size"])&&(a=r,i=o["font-size"],"object"==typeof a&&(a["line-height"]||(a["line-height"]=1.2*(parseFloat(a["font-size"])||i||10)+h.PXSTRING))),r})),n.deregisterFactory("canvas"),n.registerFactory("background",j["default"]),n.registerFactory("caption",P["default"]),n.registerFactory("legend",U["default"]),n.registerFactory("panel",O["default"]),n.registerFactory("selectorToolbar",z["default"],["timeNavigator","canvas"]),n.registerFactory("timeNavigator",V["default"]),n.registerFactory("standardRangeSelector",W["default"],["selectorToolbar"]),n.registerFactory("customRangeSelector",G["default"],["selectorToolbar"]),n.registerFactory("multicanvasCrosslineManager",X["default"],["mouseTracker"]),n.registerFactory("toolbarManager",Y["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.scaleDsMap={},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=[],e.contextLimit=e.focusLimit=h.UNDEF,e.legendMap={},e.isXMLUnsupported=!0,e.uniqueItemsMap={},e.isTableCloned=!1,e.hasSeries=!1,e.clipDates=h.UNDEF},n.cloneTable=function(){var e=this.config,t=e.dataTable.getData(),n=t.data,a=t.schema;if(!e.isTableCloned){var i=e.dataTable.getDataStore().createDataTable(n.map((function(t){return t.map((function(t,n){return de(a[n])?e.baseTimeConverter.format(t):t}))})),a);return Pe(e.focusTableMap,e.dataTable,Oe),Pe(e.contextTableMap,e.dataTable,Oe),e.dataTable=i,e.isTableCloned=!0,!0}return!1},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=Be(e.header),e.bodyStyleString=Be(e.body)},n.sanitizeData=function(t){var n=this;t.yaxis&&t.yaxis.format&&(t.yaxis.format.suffix&&(t.yaxis.format.suffix=(0,h.parseUnsafeString)(t.yaxis.format.suffix)),t.yaxis.format.prefix&&(t.yaxis.format.prefix=(0,h.parseUnsafeString)(t.yaxis.format.prefix))),e.prototype.sanitizeData.call(this,t);var a=(0,A["default"])(oe(t.data,fe),t.xaxis,!1),i=a.expandedAxis,r=a.actions,o=(0,A["default"])(oe(t.data,he),t.yaxis),l=o.expandedAxis,s=o.actions;t.xaxis=i,t.yaxis=l,r.forEach((function(e){return Ae(e,"x",n)})),s.forEach((function(e){return Ae(e,"y",n)}))},n.getDSdef=function(){return R["default"]},n._updateVisuals=function(){e.prototype._updateVisuals.call(this),this.getFromEnv("paper").config.noDefaultAttribs=!0},n.setPixelLimit=function(e,t,n,a){void 0===n&&(n=["up","up"]);var i,r=e[0],o=e[1],l=t.applicableClippings,s=l.repeatClips,c=l.singleClips,u=(0,$.getUnclippedValue)(t.getDomainValue(r),s,c,{clampDirection:n[0]}),d=(0,$.getUnclippedValue)(t.getDomainValue(o),s,c,{clampDirection:n[1]});return(i=this.setFocusLimit([u,d]))&&a&&this.getFromEnv("fireChartEvents")(a.name,[u,d],a.eventArgs,a.options),i},n.domainValidator=function(e,t,n){void 0===n&&(n=[]);var a,i,r=this,o=r.getFromEnv("contextBins")[0].getBinMin(),l=r.getFromEnv("focusScalesX")[0],s=e[0],c=e[1],u=t[0],d=t[1],f=+e[0],g=+e[1],p=+t[0],m=+t[1],v=0;if(n.length&&(a=Math.abs(g-f-(+n[1]-+n[0]))>1?"squeeze":"drag"),f<p&&(s=u,c="drag"===a?new Date(g+(p-f)):c),g>m&&(c=d,s="drag"===a?new Date(f-(g-m)):s),g<p&&(c=u),f>m&&(s=d),f>g){var y=[c,s];s=y[0],c=y[1]}return i=Object.keys(l.applicableClippings).length?l.distance(s,c):c-s,"month"===o[0].name()&&1===o[1]&&(v=864e5),i>=3*o[2]-v?(r.fireEvent("domainValidated"),[+(s=(0,h.clampNumber)(+s,p,m)),+(c=(0,h.clampNumber)(+c,p,m))]):r.getFocusLimit()||r.getContextLimit()},n.configureAttributes=function(e){var t=this,n=t.config,a=new D["default"](t),i=new x["default"],r=e.chart,o=function(e){void 0===e&&(e=[]);var t=[];return(0,S["default"])(e)?t=e.slice():(0,C["default"])(e)&&(t=e.split(/\s*,\s*/)),(t=t.filter((function(e){return!!e}))).map((function(e){return(0,h.hashify)(e)}))}(r.palettecolors),l=r.canvasheightproportion,c=t.getFromEnv("getStyleDef"),u=e.legend,d=c(r.style&&r.style.text),f=Object.assign({},r.timespread),g=_.DatetimeUnits[(0,I["default"])(String(f.unit))],p=t.getFromEnv("dataSource"),v=(0,h.extend2)(t.getFromEnv("textStyle"),d),y=(0,b["default"])(e.tooltip)?e.tooltip:{},k=(0,b["default"])(y.style)?y.style:{},w=this.getFromEnv("dataSource");n.startOfWeek=0===parseInt(e.chart.startofweek,10)?_.Weekdays.Sunday:_.Weekdays.Monday;var E,T,M,O,P=c(u&&u.style&&u.style.text),A=[];t.addToEnv("baseTextStyle",Object.assign({"font-family":h.DEFAULT_FT_FONT,stroke:"none"},d)),P=Object.assign({},t.getFromEnv("baseTextStyle"),P),n.mergedLegendStyle=(0,h.extend2)((0,h.extend2)({},n.defaultLegendTextStyle),P),n.focusTableMap&&(Pe(n.focusTableMap,n.focusTableMap._fc_info.table,Oe),n.focusTableMap=h.UNDEF),n.contextTableMap&&(Pe(n.contextTableMap,n.contextTableMap._fc_info.table,Oe),n.contextTableMap=h.UNDEF),t.addToEnv("chart-attrib",r),a.configure(),t.addToEnv("color-manager",a),o.length&&(n.palettecolors=o);var B=w.data.getData().schema;for(var j in B)if(B.hasOwnProperty(j)){var R=B[j];"string"==typeof R.paletteColor&&""!==R.paletteColor&&(n.palettecolors[j-1]=R.paletteColor)}i.setRange(n.palettecolors),t.addToEnv("ordinalScale",i),n.dataTable=e.data,n.showLegend=(0,h.pluckNumber)(u&&u.enabled,r.showlegend,1),n.navigatorEnabled=(0,h.pluckNumber)(p.navigator&&p.navigator.enabled,r.enablenavigator,1),n.navigatorHeight=(0,h.pluckNumber)(p.navigator&&p.navigator.height),n.showTooltip=(0,h.pluckNumber)(y.enabled,r.showtooltip,1),n.interCanvasSpace=(0,h.pluckNumber)(r.intercanvasspace,20),n.multiCanvas=(0,h.pluckNumber)(r.multicanvas,1),n.applycsstransform=(0,h.pluckNumber)(r.applycsstransform,0),T=(0,h.pluck)(r.enableutc,!1),t.addToEnv("UTC",T),t.addToEnv("dateAPI",(function(e,t,n){return e["get"+(n?"UTC":"")+t]()})),A=e.xaxis.slice(0,1).map((function(e){return Object.assign({},e,{bin:e.plot.map((function(e){return e.value}))})})),n.focusAxesX=A.map(ce),n.focusAxesY=(0,H["default"])(oe(n.dataTable,ge),e.yaxis,e.series,e.stack,e.group),n.contextAxesX=(0,s["default"])(A),n.contextAxesY=(0,s["default"])(n.focusAxesY),n.dateColumnIndex=n.dataTable.indexOf(n.contextAxesX[0].plot[0].value),E=n.dataTable.getSchema()[n.dateColumnIndex],O=E.format?T?Z["default"].utcParser(E.format):Z["default"].parser(E.format):{parse:ie},M=E.format?T?Z["default"].utcFormatter(E.format):Z["default"].formatter(E.format):{format:re},n.baseTimeConverter={toString:function(){return O.toString()},parse:function(e){return O.parse(e)},format:function(e){return M.format(e)}},t.addToEnv("baseTimeConverter",n.baseTimeConverter),t.addToEnv("dateColumn",E),g&&(f.unit=g,f.multiplier=(0,m["default"])([(0,h.pluckNumber)(f.multiplier-1),1],Number),f.duration=f.unit.ms*f.multiplier,f.interval=T?te[g.name.toLowerCase()]:ee[g.name.toLowerCase()],n.timeSpread=f),n.focusPanels=le((0,N["default"])(n.focusAxesX,n.focusAxesY,e.canvas,n.multiCanvas?ve:ye)),n.canvasHeightProportion=function(e,t){for(var n={},a=e,i=[],r=0;r<t;r++)i.push(1);return n.proportions=i,n.totalProportions=t,"string"==typeof a&&(a=a.split(":")),Array.isArray(a)&&(a=a.filter((function(e){return e&&!isNaN(Number(e))&&Number(e)>0}))).length===t&&(a=a.map((function(e){return Number(e)})),n.proportions=a,n.totalProportions=a.reduce(se,0)),n}(l,n.focusPanels.length),t._createLegendMap(),t.addToEnv("fireChartEvents",(function(e,n,a,i){void 0===a&&(a={}),void 0===i&&(i={});var r,o,l=t.getFocusLimit(),s=t.getContextLimit(),c=t.domainValidator(n,s,l);r={start:c[0],end:c[1]},(o=i.timeFormatter)&&(r.startText=o.format(c[0]),r.endText=o.format(c[1])),(0,h.extend2)(r,a),t.fireChartInstanceEvent(e,r)})),(0,F["default"])(t),(0,L["default"])(t),n.focusTableMap={_fc_info:{table:n.dataTable}},De(t),n.contextPanels=le((0,N["default"])(n.contextAxesX,n.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}}))}}))}))),n.contextTableMap={_fc_info:{table:n.dataTable}},De(t,!0),we(n.focusTableMap),we(n.contextTableMap),n.printOption={enabled:(0,h.pluckNumber)(r.printshowbutton,r.showprintmenuitem,0)},n.toolbarPosition=function(e){var t=e;switch(t){case"tr":case"rt":case"top right":case"right top":default: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"}return t}((0,h.pluck)(r.toolbarposition,"tr").toLowerCase()),n.toolbarHAlign="left"===(""+r.toolbarhalign).toLowerCase()?"l":n.toolbarPosition.charAt(1),n.toolbarVAlign="bottom"===(""+r.toolbarvalign).toLowerCase()?"b":n.toolbarPosition.charAt(0),n.link=r.clickurl,t.addToEnv("linkClickFN",(0,h.getLinkAction)(t.getFromEnv("dataSource"),t)),t.addToEnv("chartConfig",n),t.addToEnv("tooltipStyle",{container:c(k.container),text:c(k.text),header:c(k.header),body:c(k.body)}),t.addToEnv("style",{outCancolor:v.fill,fontSize:v["font-size"],outCanfontFamily:v["font-family"]}),t.createBaseComponent(),t.getFromEnv("animationManager").setAnimationState(t._firstConfigure?"initial":"update"),n.prediction=function(e,t){var n={},a={};if(e.extensions&&(0,b["default"])(e.extensions.prediction)?(n=e.extensions.prediction).enabled=!0:n={enabled:!1},(0,b["default"])(n.style))for(a in n.style)n.style.hasOwnProperty(a)&&(n.style[a]=t(n.style[a]));else n.style={};return n}(p,c),t.addToEnv("prediction",n.prediction),t.configureChildren(),t.setTooltipStyle()},n._createLegendMap=function(e){void 0===e&&(e=!1);var t=this,n=t.config,a=n.legendMap={},i=t.getFromEnv("dataSource").legend,r={},o=t.getFromEnv("legendMap"),l=t.getChildren("legend")&&t.getChildren("legend")[0];for(var s in n.pixelMultiplier=1,n.focusAxesY.forEach((function(e){var t,a=e.plot,i=0;a.forEach((function(e){var a=e.stack,o=e.group,l=e.value,s=e.type,c=e.name,u="column"===s;u&&(t=o?n.dataTable.unique(o):new Array(1),i+=t.length),a?(r[a]=n.dataTable.unique(a),n.hasSeries=!0):o?(r[o]=u?t:n.dataTable.unique(o),n.hasSeries=!0):"column-range"===s||"area-range"===s?c&&(r[c]=[c]):"ohlc"!==s&&"candlestick"!==s&&(r[l]=[l])})),n.pixelMultiplier=Math.max(i,n.pixelMultiplier)})),r){if(r.hasOwnProperty(s))r[s].forEach((function(e){if(!a[e]){var t=n.showLegend&&i&&i.item&&Array.isArray(i.item)&&i.item.find((function(t){return t.value===e})),r=(0,h.pluckNumber)(t&&t.initiallyhidden,0);a[e]={visibility:!r,initiallyhidden:!!r,series:e}}}))}if(t.addToEnv("legendMap",a),o){!function t(n,a){for(var i in n)if(n.hasOwnProperty(i)){var r=a&&a[i],o=n[i];o.hasOwnProperty("visibility")?r?(e||(o.visibility||(l&&l.getItem(o.legendItemId).removeLegendState("hidden"),o.visibility=!0),r.initiallyhidden?r.initiallyhidden&&(l&&l.getItem(o.legendItemId).setLegendState("hidden"),o.visibility=!1,o.initiallyhidden=!0):(l&&l.getItem(o.legendItemId).removeLegendState("hidden"),o.visibility=!0,o.initiallyhidden=!1)),a[i]=o):l&&l.disposeItem(o.legendItemId):t(o,r)}}(o,a)}l&&(!function c(e){for(var n in void 0===e&&(e={}),e)if(e.hasOwnProperty(n)){var a=e[n];a.hasOwnProperty("visibility")?t._addLegend(a):c(a)}}(t.getFromEnv("legendMap")),l.asyncDraw())},n._updateAffectedVisuals=function(e){void 0===e&&(e={});var t=this,n=t.config,a=t.getChildren();Object.keys(n.canvasAxisMap).forEach((function(t){return a[t].forEach((function(t){return!t.getState("removed")&&t.setData(e,!0)}))})),a.timeNavigator&&a.timeNavigator.forEach((function(t){t.getState("removed")||(t.setData(e,!0),t.setDimension())})),t.manageSpace()},n._addLegend=function(e){var t,n,a,i,r=this,o=r.config,l=o.mergedLegendStyle,s=e.series,c=r.getFromEnv("ordinalScale").getRangeValue(s),u=r.getFromEnv("legend"),d=(0,h.getLightColor)(c,60).replace(ne,h.HASHSTRING);o.showLegend&&(t={FCcolor:{color:c,angle:0,ratio:"0",alpha:"100"}},a=u.getItem(e.legendItemId),n={label:s,eventArguments:{datasetName:s,visible:e.visibility}},a||(e.legendItemId=u.createItem(),a=u.getItem(e.legendItemId),e.initiallyhidden&&(e.visibility=!1,a.config.eventArguments.visible=!1,a.setLegendState("hidden")),r.addExtEventListener("fc-click",(function(){var t=e.visibility;i=a.config,t?(e.visibility=!1,i.eventArguments.visible=!1,a.setLegendState("hidden")):(e.visibility=!0,i.eventArguments.visible=!0,a.removeLegendState("hidden")),r._updateAffectedVisuals({legendInteracted:!0})}),a)),a.configure(n),a.setStateCosmetics("default",{symbol:{fill:(0,h.toRaphaelColor)(t),rawFillColor:c,stroke:(0,h.toRaphaelColor)(d)},text:Object.assign({},l,{fill:(0,h.convertColor)(l.fill,l.opacity*l["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.checkValidLegendPosition=function(){var e=this.getFromEnv("dataSource").legend,t=e.position?e.position.toLowerCase():"",n=e.alignment?e.alignment.toLowerCase():"";if(t){if(t===h.POSITION_TOP||t===h.POSITION_BOTTOM||t===h.POSITION_LEFT||t===h.POSITION_RIGHT){if(!n)return!0;if(n===h.POSITION_START||n===h.POSITION_MIDDLE||n===h.POSITION_END)return!0}}else if(n===h.POSITION_START||n===h.POSITION_MIDDLE||n===h.POSITION_END)return!0;return!1},n.manageSpace=function(){var e,t,n,a,i,r,o,l,s,c,u,d,f,g,p,v,y,b,x,k,S,_=this,C=_.config,w=C.focusPanels,D=C.canvasAxisMap,E=_.getFromEnv("focusScalesX"),T=_.getChildren("caption"),M=_.getFromEnv("selectorToolbar"),I=_.getFromEnv("toolbar"),F=I.getLogicalSpace(),L=_.getChildren("legend")&&_.getChildren("legend")[0],O=_.getChildren("background")[0],P=_.getChildren("canvas_0"),A=_.getChildren("timeNavigator"),B=_.getFromEnv("dataSource"),N=B.legend,H=C.navigatorHeight,j=0,R={left:0,right:0},V=0,G=0,Y=e=+_.getFromEnv("chartWidth"),U=t=+_.getFromEnv("chartHeight"),z=0,X=0,W=.03*e,q=0,$=h.POSITION_BOTTOM,K=h.POSITION_START,Q={topBorder:0,bottomBorder:0,leftBorder:0,rightBorder:0},J=C.canvasHeightProportion,ee=C.interCanvasSpace;G+=(0,h.pluckNumber)(C.marginTop,16),U-=(0,h.pluckNumber)(C.marginBottom,37),V+=(0,h.pluckNumber)(C.marginLeft,W),Y-=(0,h.pluckNumber)(C.marginRight,W),O.setDimension({height:t,width:e}),O.setTranslation(0,0),w.forEach((function(e,t){var n=D["canvas_"+t].y,a=.6*(Y-V)/(n.length||1);n.map((function(t){var n=ue(t),i=_.getChildren(t)[0].setDimension({width:a});return e.y[n].overlap?{}:i})).forEach((function(e){"number"==typeof e.left?R.left=Math.max(R.left,e.left):R.right=Math.max(R.right,e.right)}))})),w.forEach((function(e,t){var n,a,i,r=D["canvas_"+t].y,o=0,l=0;r.forEach((function(e){n=_.getChildren(e)[0],i=n.getAlignment(),a=n.updateMaxLabelSpace(R[i]),o+=(0,h.pluckNumber)(a.left,0),l+=(0,h.pluckNumber)(a.right,0)})),z=(0,m["default"])([z,o]),X=(0,m["default"])([X,l])})),w.forEach((function(e,t){var n=D["canvas_"+t].x,a=.6*(U-G)/(n.length||1);n.map((function(t){var n=ue(t),i=_.getChildren(t)[0].setDimension({height:a});return e.x[n].overlap?{}:i})).forEach((function(e){q+=(0,h.pluckNumber)(e.top,e.bottom,0)}))})),n=U-G,i=Math.max(0,Y-V),N&&(N.position||N.alignment)&&(b=this.checkValidLegendPosition()),b&&($=N.position?N.position.toLowerCase():h.POSITION_BOTTOM,K=N.alignment?N.alignment.toLowerCase():h.POSITION_START),!L||$!==h.POSITION_LEFT&&$!==h.POSITION_RIGHT||(L.config.numColumns=1,g=Math.max(0,L.setDimension({height:"auto",width:i}).width),f=L.config.height,$===h.POSITION_LEFT?(v=V,V+=z>0?g:g+(0,h.pluckNumber)(C.marginLeft,W)):$===h.POSITION_RIGHT&&(v=X>0?Y-=g:(Y-=g+(0,h.pluckNumber)(C.marginRight,W))+(0,h.pluckNumber)(C.marginRight,W))),V+=z,Y-=X,F.height&&(I.setDimension({x:Y-F.width,y:G}),I.manageSpace()),"right"===T[0].config.captionAlignment||"right"===T[0].config.subCaptionAlignment?(G+=F.height,S=Y-V):S=Y-V-F.width,T&&T.length?(o=T[0].setDimension({width:S,height:.3*n}),T[0].setTranslation(V,G),k=Math.max(o.height,F.height)):k=F.height,G+=k,i=Math.max(0,Y-V),!L||$!==h.POSITION_TOP&&($!==h.POSITION_RIGHT&&$!==h.POSITION_LEFT||K!==h.POSITION_START)||(L.setDimension({height:"auto",width:i}),g=L.config.width,f=L.config.height,y=G,$===h.POSITION_TOP&&(G+=f)),L&&$===h.POSITION_BOTTOM&&(L.setDimension({height:.1*n,width:i}),g=L.config.width,f=L.config.height),x=M.getLogicalSpace().height,M.setDimension({x:V,y:G,width:i}),M.manageSpace(),G+=x,l=q+(w.length-1)*ee,n=Math.max(0,U-G-l),L&&(f=f||Math.max(0,L.setDimension({height:.1*n,width:i}).height),g=g||L.config.width,$===h.POSITION_TOP?K===h.POSITION_END?L.setTranslation(Y-g+6,y):K===h.POSITION_MIDDLE?(p=(V+Y-g)/2,L.setTranslation(p,y)):L.setTranslation(V-6,y):$===h.POSITION_RIGHT||$===h.POSITION_LEFT?K===h.POSITION_END?(U-=f,L.setTranslation(v,U),U+=f):K===h.POSITION_MIDDLE?(p=(G+U-f)/2,L.setTranslation(v,p)):L.setTranslation(v,y):(U-=f,n-=f,K===h.POSITION_END?L.setTranslation(Y-g+6,U):K===h.POSITION_MIDDLE?(p=(V+Y-g)/2,L.setTranslation(p,U)):L.setTranslation(V-6,U))),A&&A.length&&(r=.7*n/(w.length||1),s=.3*n/(A.length||1),A.forEach((function(e,t){e.config.formatter=Z["default"].formatter(B.navigator&&B.navigator.outputtimeformat?(0,h.pluck)(B.navigator.outputtimeformat):e.config.formatter),e.getState("removed")||(d=e.getChildren("brush")[0],a=d.getLabelSpace()+e.config.scrollbarHeight,c=H?Math.min(Math.max(H,44),84):Math.min(Math.max(Math.min(s,.8*r),48),60),u=c+a,e.setDimension({width:i,height:u}),e.setTranslation(V,U-(A.length-t)*u),j+=u)})),j>n?A.forEach((function(e){return e.setDimension({width:0,height:0})})):n-=j),P&&P[0]&&(Q=P[0].getCanvasBorder()),E.forEach((function(e){return e.setRange([Q.leftBorder,i-(Q.leftBorder+Q.rightBorder)/2])})),w.forEach((function(e,t){var a="canvas_"+t,r=D[a],o=r.x,l=r.y,s=e.x,c=e.y,u=V,d=V+i,f=_.getChildren(a)[0],h=G+Q.topBorder,g=h+n/J.totalProportions*J.proportions[t],p=[];c.forEach((function(e,a){e.scale.setRange([n/J.totalProportions*J.proportions[t]-Q.bottomBorder-6,Q.topBorder])})),f.getState("removed")||(Q=f.getCanvasBorder(),f.setPadding({top:6}),f.setDimension({width:i,height:n/J.totalProportions*J.proportions[t]}),o.forEach((function(e){var t=s[ue(e)],n=_.getChildren(e)[0],a=n.getDimension();t.overlap?p.push(e):"top"===t.align?(n.setTranslation(V+Q.leftBorder,h),h+=a.top):"bottom"===t.align&&(n.setTranslation(V+Q.leftBorder,g),g+=a.bottom)})),f.setTranslation(V,h),p.forEach((function(e){var a=s[ue(e)],i=_.getChildren(e)[0],r=i.getDimension();"top"===a.align?i.setTranslation(V+Q.leftBorder,h):"bottom"===a.align&&i.setTranslation(V+Q.leftBorder,h+n/J.totalProportions*J.proportions[t]-r.bottom)})),l.forEach((function(e){var t=h+6,n=c[ue(e)],a=_.getChildren(e)[0],r=a.getDimension();n.overlap?"left"===n.align?a.setTranslation(V,t):"right"===n.align&&a.setTranslation(V+i-r.right,t):"left"===n.align?(u-=r.left,a.setTranslation(u,t)):"right"===n.align&&(a.setTranslation(d,t),d+=r.right)})),G=g+ee)}))},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().schema;return!(Array.isArray(t)&&t.filter((function(e){return"date"===e.type})).length&&t.filter((function(e){return"number"===e.type})).length)}return!0},n.setYScaleLimit=function(e,t,n,a){void 0===a&&(a=!0);var i,r,o,l,s=this,c=s.config,u=c.scaleDsMap,d=u[e],f={start:h.UNDEF,end:h.UNDEF},g=function(t){var n=t.scale;return n&&n.getId()===e},m=c.focusAxesY.find(g),v=c.contextAxesY.find(g),y=m||v,b=y&&y.scale;if(b){for(var x in d||(d=u[e]={}),(i=d[t])||(i=d[t]={}),i.limit=n,i.baseRequired=a,d)if(d.hasOwnProperty(x)){var k=d[x],S=(0,p["default"])([r,o].concat(k.limit));r=S[0],o=S[1],l=l||k.baseRequired}"log"===b.getType()?b.setDomain(Ee(r,o,y.min,y.max,y.base,l)):b.setDomain(Te(r,o,y.min,y.max,l)),(0,h.defined)(r)&&(f.start=-Infinity,f.end=Infinity),m&&c.focusPanels.forEach((function(e,t){var n="canvas_"+t,a=c.canvasAxisMap[n],i=a&&a.y;i&&i.forEach((function(e){s.getChildren(e).forEach((function(e){e.getScale()===b&&(e.setTickVisibilityLimit(f),e.placeAxis(),e.asyncDraw())}))}))}))}},n.setXScaleLimit=function(e,t,n){var a,i,r,o,l,s=this,c=s.config,u=c.scaleDsMap,d=u[e],f=s.getFromEnv("UTC")?te:ee,g={start:c.rawDataXStart,end:Infinity},m=s.getContextLimit(),v=m[0],y=m[1],b=function(t){var n=t.scale;return n&&n.getId()===e},x=c.focusAxesX.find(b),S=c.contextAxesX.find(b),_=x||S,C=this.getFromEnv("contextBins")[0],w=C.getBinMin()[2],D=C.getRangeThreshold(),E=D[0]._name,T=_&&_.scale;if(T){for(var M in d||(d=u[e]={}),(a=d[t])||(a=d[t]={}),a.limit=n,d)if(d.hasOwnProperty(M)){var I=d[M],F=(0,p["default"])([i,r].concat(I.limit));i=F[0],r=F[1]}if((0,h.defined)(i)&&(g.start=Math.min(i,c.rawDataXStart),g.end=Infinity),x){var L=s.getFocusLimit();o=L[0],l=L[1],+o===v&&(0,k["default"])(i)&&(o=Math.min(o,i)),+l===y&&(0,k["default"])(r)&&(l=Math.max(l,r)),Math.ceil((l-o)/D[2])<3&&w===D[2]&&(o=+f[E].offset(l,-3*D[1])),T.setDomain([o,l]),c.focusPanels.forEach((function(e,t){var n="canvas_"+t,a=s.getChildren(n),i=a&&a[0],r=c.canvasAxisMap[n],o=r&&r.x;o&&i&&(i.asyncDraw(),o.forEach((function(e){s.getChildren(e).forEach((function(e){e.getScale()===T&&(e.setTickVisibilityLimit(g),e.placeAxis(),e.asyncDraw())}))})))}))}else o=(0,k["default"])(i)?Math.min(v,i):v,l=(0,k["default"])(r)?Math.max(y,r):y,Math.ceil((l-o)/D[2])<3&&w===D[2]&&(o=+f[E].offset(l,-3*D[1])),T.setDomain([o,l]),s.getChildren("timeNavigator")&&s.getChildren("timeNavigator").forEach((function(e){if(!e.getState("removed")){var t=e.getChildren("timeAxis")&&e.getChildren("timeAxis")[0];t.getState("removed")||(t.setTickVisibilityLimit(g),t.placeAxis(),t.asyncDraw())}}))}},n.setFocusLimit=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=!0);var n=this,a=n.config,i=t?this.domainValidator(e,this.getContextLimit(),a.focusLimit):e,r=a.focusAxesX[0],o=this.getFromEnv("focusBins")[0],l=this.getFromEnv("focusScalesX")[0],s=n.getFocusLimit(),c=o.getRangeThreshold();if(a.focusLimit=i,n.fireChartInstanceEvent("selectionChange",{start:+i[0],end:+i[1],binUnit:c[0].name(),binMuliplier:c[1]}),(0,d["default"])(i,s))return!1;o.setBinDomain(i);var u=o.getRangeThreshold();return l.setRangeThreshold(u),n.fireEvent("focusLimitChanged"),r.filterInfo&&r.filterInfo.query&&(r.filterInfo.query._updateArgs(+u[0].offset(+i[0],-2*u[1]),+u[0].offset(+i[1],2*u[1])),r.filterInfo.table.flushResults(),n.updateVerticalAxesWidth()),s!==h.UNDEF&&n._updateAffectedVisuals({legendInteracted:null}),!0},n.updateVerticalAxesWidth=function(){var e,t=this,n=t.config.canvasAxisMap,a=Object.keys(n),i={left:0,right:0};a.forEach((function(a){n[a].y.forEach((function(n){t.getChildren(n).forEach((function(t){"number"==typeof(e=t.getDimension()).left?i.left=Math.max(i.left,e.left):"number"==typeof e.right&&(i.right=Math.max(i.right,e.right))}))}))})),a.forEach((function(e){n[e].y.forEach((function(e){t.getChildren(e).forEach((function(e){e.updateMaxLabelSpace(i[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.config,n=this.getFromEnv("contextScalesX")[0],a=this.getFromEnv("contextBins");(0,d["default"])(e,this.getContextLimit())||(t.contextLimit=e.slice(),a[0].setBinDomain(e),n.setRangeThreshold(a[0].getRangeThreshold()),!t.navigatorEnabled&&n.setDomain(t.contextLimit),this.fireEvent("contextLimitChanged"))},n.getContextLimit=function(){return(this.config.contextLimit||[]).slice()},t}(w["default"]),Ge=Ve;t["default"]=Ge},872:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n=function(e){return function(t,n){return a=e(t),i=n,r=NaN,a<i?r=-1:a>i?r=1:a>=i&&(r=0),r;var a,i,r}},a=function(e){var t=e;return 1===t.length&&(t=n(t)),{left:function(e,n,a,i){void 0===e&&(e=[]),void 0===a&&(a=0),void 0===i&&(i=e.length);for(var r=a,o=i;r<o;){var l=Math.abs(Math.floor((r+o)/2));t(e[l],n)<0?r=l+1:o=l}return r},right:function(e,n,a,i){void 0===e&&(e=[]),void 0===a&&(a=0),void 0===i&&(i=e.length);for(var r=a,o=i;r<o;){var l=Math.abs(Math.floor((r+o)/2));t(e[l],n)>0?o=l:r=l+1}return r}}};t["default"]=a},861:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.DEFAULT_THRESHOLD_PIXELS=t._calculateIndexOfIntervals=t["default"]=void 0;var i=a(n(577)),r=function(e){return new Date(e)},o=function(e,t){for(var n=0,a=e.length-1,i=a,r=Math.floor((a+n)/2),o=t instanceof Array?t[2]:t.unit.ms*t.multiplier;n<a;){if(o<e[r][2])i=a=r-1;else{if(!(o>e[r][2])){i=r;break}n=r+1}r=Math.floor((a+n)/2)}return t instanceof Array||e[i][2]===o?e[i]:[e[i-1][0],t.multiplier,o]},l=function(e){var t,n={};for(t=e.length-1;t>=0;t--)n[e[t][0].name()]=t;return n};t._calculateIndexOfIntervals=l,t.DEFAULT_THRESHOLD_PIXELS=4;var s=function(){function e(e){this.setStandardBins(e),this.binRange=[0,1],this.binDomain=[0,1],this.thresholdPixels=4,this.intervalIndexMap=l(this.getStandardBins()),this.minBin=[]}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,a,i=this.getBinRange(),r=i[0],o=i[1],l=(t=e,n=1,a=Math.abs(r-o),Math.min(Math.max(t,n),a)),s=+this.getScale().getDomainValue(0),c=+this.getScale().getDomainValue(l),u=Math.abs(c-s),d=this.getBinMin(),f=this.getBinMax(),h=this.standardBins.findIndex((function(e){return e[2]>=u})),g=-1===h?this.standardBins.length-1:h;this.standardBins[g][2]<d[2]?this._threshold=d:f&&this.standardBins[g][2]>f[2]&&f[2]>=d[2]?this._threshold=f:this._threshold=this.standardBins[g]},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(r)},t.setBinMin=function(e){var t=o(this.standardBins,e);return(0,i["default"])(t,e)||(this.minBin=t,this._computeRangeThreshold(this.thresholdPixels)),this},t.getBinMin=function(){return this.minBin},t.setBinMax=function(e){this.maxBin=o(this.standardBins,e)},t.getBinMax=function(){return this.maxBin},t.setRangeThreshold=function(e){return void 0===e&&(e=4),e!==this.thresholdPixels&&this._computeRangeThreshold(this.thresholdPixels=e),this},t.getRangeThreshold=function(){return this._threshold},e}();t["default"]=s},877:(e,t,n)=>{t.__esModule=!0,t.getDefaultBins=p,t.getCustomBins=function(e,t,n,i,r,o,l,s,c){var u=c,d=Object.keys(u).indexOf("week")>-1,m=h(e,t,n,i,r,o,l,s,d),v=[];u=function(e){if(!e)return[];var t=e,n={millisecond:a.MILLISECONDS_IN_SECOND,second:a.SECONDS_IN_MINUTE,minute:a.MINUTES_IN_HOUR,hour:a.HOURS_IN_DAY,day:a.DAYS_IN_MONTH,month:a.MONTHS_IN_YEAR};for(var i in n)n.hasOwnProperty(i)&&(Array.isArray(e[i])?t[i]=f(n[i],e[i]):t[i]=!1);Array.isArray(e.year)?t.year=function(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];a&&parseInt(a,10)==a&&a>0&&t.push(Number(a))}return t.sort((function(e,t){return e-t}))}(e.year):t.year=!1;return t}(Object.assign({},c));for(var y=0;y<m.length;y++){var b=m[y];u[b.binUnitName.name()]?u[b.binUnitName.name()].length>0&&(v=v.concat(g(b.binUnitName,u[b.binUnitName.name()],b.duration))):v=v.concat(b.standardBinVal)}0===v.length&&(v=p(e,t,n,i,r,o,l,s,d));return v.sort((function(e,t){return e[2]-t[2]})),v};var a=n(873),i=1,r=a.MILLISECONDS_IN_SECOND*i,o=r*a.SECONDS_IN_MINUTE,l=o*a.MINUTES_IN_HOUR,s=l*a.HOURS_IN_DAY,c=s*a.DAYS_IN_WEEK,u=s*a.DAYS_IN_MONTH,d=s*a.DAYS_IN_YEAR;function f(e,t){for(var n=[],a=0;a<t.length;a++){var i=t[a];i&&parseInt(i,10)==i&&i>0&&i<=e/2&&e%i==0&&n.push(Number(i))}return n.sort((function(e,t){return e-t}))}function h(e,t,n,a,f,h,g,p,m){var v=[[n,1,c,!0],[n,2,2*c],[n,3,3*c],[n,4,4*c],[n,5,5*c],[n,6,6*c],[n,8,8*c],[n,10,10*c],[n,12,12*c],[n,15,15*c]],y=[{binUnitName:p,duration:i,standardBinVal:[[p,1,i],[p,2,2*i],[p,4,4*i],[p,5,5*i],[p,10,10*i],[p,20,20*i],[p,25,25*i],[p,40,40*i],[p,50,50*i],[p,100,100*i],[p,200,200*i],[p,250,250*i],[p,500,500*i]]},{binUnitName:g,duration:r,standardBinVal:[[g,1,r,!0],[g,2,2*r],[g,3,3*r],[g,4,4*r],[g,5,5*r],[g,6,6*r],[g,10,10*r],[g,12,12*r],[g,15,15*r],[g,20,20*r],[g,30,30*r]]},{binUnitName:h,duration:o,standardBinVal:[[h,1,o,!0],[h,2,2*o],[h,3,3*o],[h,4,4*o],[h,5,5*o],[h,6,6*o],[h,10,10*o],[h,12,12*o],[h,15,15*o],[h,20,20*o],[h,30,30*o]]},{binUnitName:f,duration:l,standardBinVal:[[f,1,l,!0],[f,2,2*l],[f,3,3*l],[f,4,4*l],[f,6,6*l],[f,8,8*l],[f,12,12*l]]},{binUnitName:a,duration:s,standardBinVal:[[a,1,s,!0],[a,2,2*s],[a,3,3*s],[a,5,5*s],[a,6,6*s],[a,10,10*s],[a,15,15*s]]},{binUnitName:t,duration:u,standardBinVal:[[t,1,u],[t,2,2*u],[t,3,3*u],[t,4,4*u],[t,6,6*u]]},{binUnitName:e,duration:d,standardBinVal:[[e,1,d],[e,2,2*d],[e,3,3*d],[e,5,5*d]]}];return m&&y.push({binUnitName:n,duration:c,standardBinVal:v}),y}function g(e,t,n){for(var a=[],i=0;i<t.length;i++){var r=t[i];a.push([e,r,r*n])}return a}function p(e,t,n,a,i,r,o,l,s){for(var c=h(e,t,n,a,i,r,o,l,s),u=[],d=0;d<c.length;d++)u=u.concat(c[d].standardBinVal);return u.sort((function(e,t){return e[2]-t[2]})),u}},908:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(806)),r=a(n(909)),o=a(n(538)),l=a(n(540)),s=a(n(539)),c=a(n(544)),u=a(n(867)),d=a(n(914)),f=a(n(917)),h=function(e){return"undef"!==e[0]},g=(0,i["default"])((function(e){e[0];return e[1].clipRects})),p=function(e,t){return e.x-t.x},m=function(e){var t=e[0],n=e[1];return{x:t.x+t.width,y:(0,s["default"])([t.y,n.y,t.y+t.height,n.y+n.height]),width:n.x-(t.x+t.width),height:(0,l["default"])([t.y,n.y,t.y+t.height,n.y+n.height])-(0,s["default"])([t.y,n.y,t.y+t.height,n.y+n.height])}},v=function(e){return!(e.width<1||e.height<1)},y=function(e){var t=e[0],n=e[1];return[t,Object.assign(n,{clipRects:n.clipRects.filter(v)})]},b=(0,c["default"])("def"),x=function(e,t,n){return n.indexOf(e)>n.indexOf(t)?e:t},k={def:{},undef:{}},S=function(){function e(e){void 0===e&&(e=d["default"]),this.generator=new e,this.defined=(0,c["default"])(!0),this.chunkDecider=b,this.chunks=k,this.connectUndefineds=!1}var t=e.prototype;return t.generate=function(e){var t,n=this,a=this._getChunks(),i=Object.entries(a).filter(h),r=this.getDefined(),l=e.filter(r),s=this.getConnectUndefineds(),c=this._computeDefinedSegments(s?e:l),d=this.getXAccessor(),f=this.getYAccessor(),b=this.getYBaseAccessor(),x="",k=[];return x=s?this.generator.generate(l):this.generator.setDefined(r).generate(e),k=i.map((function(e){var t=e[0],a=e[1];return[t,{path:x,clipRects:n._computeSegmentChunks(t,c).map((function(e){return function(e,t){var n=t.clipAdjustment,a=void 0===n?0:n,i=(0,o["default"])(e,f),r=i[0],l=i[1],s=(0,o["default"])(e,d),c=s[0],u=s[1],h=(0,o["default"])(e,b),g=h[0],p=h[1],m=(0,o["default"])([c,u]),v=m[0],y=m[1],x=(0,o["default"])([r,l,g,p]),k=x[0],S=x[1],_=k-a;return{x:v,y:_,width:Math.abs(y-v),height:Math.abs(S+a-_)}}(e,a)}))}]})),t=s?(0,u["default"])(g(k).sort(p)).map(m).filter(v):[],Object.fromEntries(k.map(y).concat([["undef",{path:s&&t.length>0?x:"",clipRects:t}]]))},t.setXAccessor=function(e){return this.generator.setXAccessor(e),this},t.getXAccessor=function(){return this.generator.getXAccessor()},t.setYAccessor=function(e){return this.generator.setYAccessor(e),this},t.getYAccessor=function(){return this.generator.getYAccessor()},t.setYTopAccessor=function(e){return this.generator.setYTopAccessor?this.generator.setYTopAccessor(e):this.generator.setYAccessor(e),this},t.getYTopAccessor=function(){return this.generator.getYTopAccessor?this.generator.getYTopAccessor():this.generator.getYAccessor()},t.setYBaseAccessor=function(e){return this.generator.setYBaseAccessor?this.generator.setYBaseAccessor(e):this.generator.setYAccessor(e),this},t.getYBaseAccessor=function(){return this.generator.getYBaseAccessor?this.generator.getYBaseAccessor():this.generator.getYAccessor()},t.setDefined=function(e){return void 0===e&&(e=(0,c["default"])(!0)),this.defined="function"==typeof e?e:(0,c["default"])(!!e),this},t.getDefined=function(){return this.defined},t.setCurve=function(e){return this.generator.setCurve(e),this},t.getCurve=function(){return this.generator.getCurve()},t.getLineChunkerYTop=function(){return this._areaLineChunker().setXAccessor(this.getXAccessor()).setYAccessor(this.getYTopAccessor())},t.getLineChunkerYBase=function(){return this._areaLineChunker().setXAccessor(this.getXAccessor()).setYAccessor(this.getYBaseAccessor())},t.setChunkDecider=function(e){return void 0===e&&(e=b),this.chunkDecider=e,this},t.getChunkDecider=function(){return this.chunkDecider},t.setChunks=function(e){return void 0===e&&(e=k),this._userChunks=Object.assign({},e),this.chunks=(0,r["default"])(e,k),this},t.getChunks=function(){return this._userChunks||this.chunks},t._getChunks=function(){return this.chunks},t.setConnectUndefineds=function(e){return void 0===e&&(e=!1),this.connectUndefineds=e,this},t.getConnectUndefineds=function(){return this.connectUndefineds},t._areaLineChunker=function(){return new e(f["default"]).setChunkDecider(this.getChunkDecider()).setChunks(this.getChunks()).setConnectUndefineds(this.getConnectUndefineds()).setCurve(this.getCurve()).setDefined(this.getDefined())},t._computeDefinedSegments=function(e){var t=this,n=!0;return e.reduce((function(e,a){if(!t.defined(a))return n=!0,e;n?(e.push([a]),n=!1):e[e.length-1].push(a);return e}),[])},t._computeSegmentChunks=function(e,t){var n=this,a=Object.keys(this.chunks);return t.reduce((function(t,i){var r=!0,o=i.reduce((function(t,o,l){var s=n.getChunkDecider()(o),c=i[l-1],u=i[l+1];if(s===e)r?(t.push([o]),r=!1):t[t.length-1].push(o);else{var d=!1;if(null!=c)x(n.getChunkDecider()(c),s,a)===e&&(r?(t.push([o]),r=!1):t[t.length-1].push(o),d=!0,r=!1);if(d||null==u)d||(r=!0);else x(s,n.getChunkDecider()(u),a)===e?(t.push([o]),d=!0,r=!1):r=!0}return t}),[]);return o&&o.length?t.concat(o):t}),[])},e}();t["default"]=S},864:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.segregateClips=function(e){void 0===e&&(e=[]);var t,n,a=[],i=[],r=e.length;for(n=0;n<r;n++)(t=e[n]).repeat?a.push(t):i.push(t);return{repeatClips:a,singleClips:i}},t.getUnclippedValue=g,t.getClipType=function(e,t,n){void 0===e&&(e=[]);void 0===t&&(t=[]);void 0===n&&(n=[]);var a,i,r,o,l,s=+e[0],c=+e[1];if(g(s,t,n,{upperLimit:c})>=c)return 2;for(a=0,i=n.length;a<i;a++)if(s<=+(r=n[a]).from&&+r.from<c||s<+r.to&&+r.to<c)return 1;for(a=0,i=t.length;a<i;a++){if(l=d(s,r=t[a])[1],d(c-1,r)[1]-l>1)return 1;if(s<=(o=f(s,r))[0]&&o[0]<c||s<o[1]&&o[1]<c)return 1;if(s<=(o=f(c-1,r))[0]&&o[0]<c||s<o[1]&&o[1]<c)return 1}return 0};var i=a(n(355)),r=n(496),o=n(363),l=5,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,year:31536e6},c=new i["default"](r.monthObj),u=new i["default"](o.yearObj);function d(e,t,n){void 0===n&&(n=s);var a=t.repeat.multiplier*n[t.repeat.unit.toLowerCase()],i=Math.floor((e-t.from)/a);return[a,i=+t.repeat.duration<0?Math.min(0,i):Math.max(0,i)]}function f(e,t,n){void 0===n&&(n=s);var a,i,r,o,l=t.repeat.unit.toLowerCase(),f=t.repeat.multiplier||1,h=d(e,t,n),g=h[0],p=h[1];if("month"===l||"year"===l){if(p*=f,i=+(o="year"===l?u:c).offset(new Date(t.from),p),r=+o.offset(new Date(t.to),p),p>=0)if(+i>e)for(;+i>e&&!((a=o.offset(i,-1*f))<=e);)i=a,r=o.offset(r,-1*f);else for(;+i<e&&!((a=o.offset(i,f))>e);)i=a,r=o.offset(r,f);else+i<e&&(i=o.offset(i,-1*f),r=o.offset(r,-1*f));return[+i,+r]}return[+t.from+g*p,+t.to+g*p]}function h(e,t,n){void 0===t&&(t={}),void 0===n&&(n="up");var a=+t.from,i=+t.to;if(t.repeat){var r=f(e,t);a=r[0],i=r[1]}return e>=a&&e<i?"up"===n?i:a-1:e}function g(e,t,n,a){if(void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a={}),isNaN(+e))return e;for(var i,r,o,s,c=a,u=c.upperLimit,d=c.lowerLimit,f=c.clampDirection,g=+e,p=g,m=g,v=l,y=n.length||1;y>0||v>0;){for(i=0,o=t.length;i<o;i++){for(r=0;r<o;r++)if((m=h(g,t[r],f))!==g)if("down"===f){if((p=Math.min(p,m))<=d)return d}else if((p=Math.max(p,m))>=u)return u;if(p===g)break;g=p}if(s===g)break;for(i=0,o=n.length;i<o;i++){if((g=h(g,n[i],f))>=u)return u;if(g<=d)return d}for(i=0;i<o;i++)"down"===f?g<n[i].from&&y--:g>=n[i].to&&y--;p===g&&(y=0),s=g,v--}return g}window.getUnclippedValue=g},875:(e,t)=>{t.__esModule=!0,t.UTC_TIME_SPAN=t.TIME_SPAN=void 0;var n=[new Date(2e3,0,1),new Date(2e3,0,2)],a=[Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)];t.UTC_TIME_SPAN=a,t.TIME_SPAN=n},873:(e,t)=>{t.__esModule=!0,t.getFloorOfDate=function(e,t,b,x){void 0===t&&(t="day");void 0===b&&(b=1);void 0===x&&(x="");var k,S=new Date(e.valueOf()),_=b;switch(t){case a:k=S[d+x+"Milliseconds"](),_=Math.min(_,h),S[f+x+"Milliseconds"](Math.floor(k/_)*_);break;case i:k=S[d+x+"Seconds"](),_=Math.min(_,g),S[f+x+"Seconds"](Math.floor(k/_)*_,0);break;case r:k=S[d+x+"Minutes"](),_=Math.min(_,p),S[f+x+"Minutes"](Math.floor(k/_)*_,0,0);break;case o:k=S[d+x+"Hours"](),_=Math.min(_,v),S[f+x+"Hours"](Math.floor(k/_)*_,0,0,0);break;case l:k=S[d+x+"Date"](),_=Math.min(_,y+1),S[f+x+"Date"](Math.max(Math.floor(k/_)*_,1)),S[f+x+"Hours"](0,0,0,0);break;case s:k=S[d+x+"Date"](),_=Math.min(_,m),S[f+x+"Date"](Math.max(Math.floor(k/_)*_,1)),S[f+x+"Hours"](0,0,0,0);break;case c:k=S[d+x+"Month"](),_=Math.min(_,n),S[f+x+"Month"](Math.floor(k/_)*_,1),S[f+x+"Hours"](0,0,0,0);break;case u:S[f+x+"Month"](0,1),S[f+x+"Hours"](0,0,0,0)}return S},t.modifyDate=function(e,t,n,s,h){void 0===t&&(t="day");void 0===n&&(n=1);void 0===s&&(s=!1);void 0===h&&(h="");var g=new Date(e.valueOf());switch(t){case a:g[f+h+"Milliseconds"](g[d+h+"Milliseconds"]()+n);break;case i:g[f+h+"Seconds"](g[d+h+"Seconds"]()+n),s&&g[f+h+"Milliseconds"](0);break;case r:g[f+h+"Minutes"](g[d+h+"Minutes"]()+n),s&&g[f+h+"Seconds"](0,0);break;case o:g[f+h+"Hours"](g[d+h+"Hours"]()+n),s&&g[f+h+"Minutes"](0,0,0);break;case l:g[f+h+"Date"](g[d+h+"Date"]()+n),s&&g[f+h+"Hours"](0,0,0,0);break;case c:g[f+h+"Month"](g[d+h+"Month"]()+n),s&&g[f+h+"Date"](0,0,0,0,0);break;case u:g[f+h+"FullYear"](g[d+h+"FullYear"]()+n),s&&g[f+h+"Month"](0,0,0,0,0,0)}return g},t.DAYS_IN_YEAR=t.DAYS_IN_MONTH=t.HOURS_IN_DAY=t.MONTHS_IN_YEAR=t.DAYS_IN_WEEK=t.MINUTES_IN_HOUR=t.SECONDS_IN_MINUTE=t.MILLISECONDS_IN_SECOND=void 0;var n=12,a="millisecond",i="second",r="minute",o="hour",l="day",s="week",c="month",u="year",d="get",f="set",h=1e3,g=60,p=60,m=7,v=24,y=30;t.DAYS_IN_YEAR=365,t.DAYS_IN_MONTH=y,t.HOURS_IN_DAY=v,t.DAYS_IN_WEEK=m,t.MINUTES_IN_HOUR=p,t.SECONDS_IN_MINUTE=g,t.MILLISECONDS_IN_SECOND=h,t.MONTHS_IN_YEAR=n},869:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=t.copyScaleBin=void 0;var i=a(n(288)),r=a(n(870)),o=n(873);t.getFloorOfDate=o.getFloorOfDate,t.modifyDate=o.modifyDate;var l=a(n(280)),s=n(874),c=a(n(350)),u=a(n(363)),d=n(864),f=a(n(862)),h=a(n(362)),g=n(534),p="major",m="minor",v=864e5,y=30*v,b=365*v,x=["millisecond","second","minute","hour","day","month","year"],k=[{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}],S=function(e,t,n,a){var i,r;return e[0]>e[1]?(i=n(e[1],e[0]),r=a(t[1],t[0])):(i=n(e[0],e[1]),r=a(t[0],t[1])),function(e){return r(i(e))}},_=function(e,t){return t.setInterpolate(e.getInterpolate()).setClamp(e.getClamp()).setRangeThreshold(e._threshold).setRange(e.getRange()).setThresholdIntervals(e.thresholdIntervals).setBinMin(e.getBinMin()).setClippings(e.clippings).setFirstData(e.getFirstData()).setDomain(e.getDomain())},C=function(e){return null!==e&&!isNaN(e)},w=function(e,t,n){return e["get"+n+t]()},D=function(e){return(e<10?"0"+e:e)+""},E=function(e,t,n){return g.abbreviatedMonthsMap[n][w(e,"Month",t)]+" "+D(w(e,"Date",t))+", "+w(e,"FullYear",t)},T=function(e,t){return D(w(e,"Hours",t))+":"+D(w(e,"Minutes",t))+":"+D(w(e,"Seconds",t))},M=function(e,t,n){var a;for(a=t;a-1>=0&&"year"===e[a-1][0].name()&&e[a-1][2]>=n;)a--;return a};t.copyScaleBin=_;var I=function(e){function t(t,n,a,i,r,o,l,s){var c;return(c=e.call(this,t,n,a,i,r,o,l,s)||this)._type="",c.bins=[],c.clippings=[],c.clipIndices=[],c.clips=[],c.clippedDomain=[0,1],c.applicableClippings={},c}(0,i["default"])(t,e);var n=t.prototype;return n.getType=function(){return this._type},n.setTimeInterval=function(t){this.timeIntervals=t,e.prototype.setTimeInterval.call(this,t)},n.setUnclippedTimeIntervals=function(t){this.unclippedTimeIntervals=t,e.prototype.setUnclippedTimeIntervals.call(this,t)},n._rescale=function(){return this.output=null,this.input=null,this},n.setClippings=function(e){return this.clippings=e,this},n.getClippings=function(){return this.clippings},n.showPlotOverTick=function(){var e=this._getRangeThreshold();return"millisecond"===this.getBinMin()[0].name()||x.indexOf(e[0].name())>-1},n.getBinBounds=function(e){var t=this._getBinBounds(e);return{startDate:+t.start,endDate:+t.end}},n.getBinIndex=function(e,t){void 0===t&&(t=!0);var n=this._getBinIndex(e),a=this._getBinBounds(n),i=this.bins.length,r=+a.start+(a.end-a.start)/2,o=this.showPlotOverTick();if(t&&o&&e>=r)for(n++;n<i&&2===this.bins[n].clipType;)n++;return n},n.calculateRangeValue=function(e){var t,n=this.getDomain(),a=this.bins;return t=e<a[0].start||e>=a[a.length-1].end?e:+n[0]+this.distance(+n[0],+e),this.output||(this.output=S(this.clippedDomain,this.getRange(),this.deInterpolate,this.interpolate)),this.output(Number(t))},n.getRangeValue=function(e,t){if(void 0!==e||void 0!==t)return void 0===t||this.showPlotOverTick()?this.calculateRangeValue(e):(this.calculateRangeValue(e)+this.calculateRangeValue(t))/2},n.getDomainValue=function(e){if(isNaN(e))return e;var t,n,a=this.getDomain();return this.input||(this.input=S(this.getRange(),this.clippedDomain,this.deInterpolate,this.interpolate)),t=this.input(Number(e)),n=this.offset(+a[0],t-a[0]),new Date(n)},n.calculateIndexOfIntervals=function(){var e,t,n=this.thresholdIntervals,a=n.length;for(this.intervalIndexMap=e={},t=a-1;t>=0;t--)e[n[t][0].name()]=t},n.getNiceMinorTickInterval=function(e,t,n){if(0===e)return-1;var a,i,r,o,s=this.thresholdIntervals,c=this._getRangeThreshold(),u=c[2],d=s[e-1][0].name(),f=[];for(a=0,r=s.length;a<r;a++)if(s[a][2]>=u){u="week"===c[0].name()?s[a][2]:u,o=a;break}for(a=e-1;a>=o&&s[a][0].name()===d;a--)s[a][2]%u||"year"===d||f.push(a);return i=Math.min(function(e){var t,n=k.length,a=1/e;if(a>4)return Infinity;for(t=0;t<n;t++)if(a>k[t].ratio)return k[t].index}(n/t),f.length-1),(0,l["default"])(f[i],-1)},n.getNiceMajorTickInterval=function(e,t){void 0===t&&(t=!1);var n,a=this,i=a.thresholdIntervals,r=i.length,o=a._getRangeThreshold()[2];if("random"===a.getMode())if(!t&&"day"===i[e][0].name()&&(i[e][1]>1||i[e][2]>o)){for(n=e;n<r;n++)if("day"!==i[n][0].name()&&o<i[n][2])return n}else{if("year"===i[e][0].name())return M(i,e,o);for(n=e;n<r;n++)if(i[n][2]>o)return n}else if(1!==i[e][1]||i[e][2]<=o){if("year"===i[e][0].name())return M(i,e,o);for(n=e;n<r;n++)if(1===i[n][1]&&i[n][2]>o)return n}return e},n.generateContextTicks=function(e,t){void 0===t&&(t=!1);var n,a,i,r,l=this,s=l.thresholdIntervals,c=l.intervalIndexMap,u=l.getDomain(),d=u[0],f=u[1],h=s[e][0].name(),g=x[x.indexOf(h)+1],p=s.length,m=c.day,v=-1,y=[];if(t)v=e;else for("day"===h&&(g="year"),n=Math.max(e,m);n<p;n++)if(s[n][0].name()===g){v=n;break}if(v>-1){if(a=(0,o.getFloorOfDate)(new Date(d),s[v][0].name(),s[v][1],l.getType()),r=function(e,t,n,a,i){var r=(0,o.getFloorOfDate)(new Date(e),a[n][0].name(),a[n][1],i),l=(0,o.getFloorOfDate)(new Date(t),a[n][0].name(),a[n][1],i);return+r!=+l&&[r,l]}(new Date(d),new Date(f),v,s,l.getType())){for(r=(i=r[1])-s[v][2];r>=+d;)y.push(new Date(r)),r-=s[v][2];+d!=+a&&y.push(new Date(a)),y.reverse(),y.push(new Date(i))}else y.push(a);l._timeFormat.context=s[v][0].name()}return y},n.getClippedMinorTicks=function(e,t,n){var a,i,r,o,l,s,c=this.bins,u=this._getRangeThreshold(),h=c[0],g=c[c.length-1],p=this.applicableClippings,m=p.repeatClips,v=p.singleClips,y=this.thresholdIntervals[n],b=this.unclippedTimeIntervals[(0,f["default"])(u[0].name())]||this.unclippedTimeIntervals[u[0].name()],x=[],k=0,S=y[0].range(e,t,y[1]).length,_=-1,C=[];for(l=h.start,s=h.end;l>e;)l=b.offset(l,-1*u[1]),s=b.offset(s,-1*u[1]),o=(0,d.getClipType)([l,s],m,v),x.push({start:l,end:s,clipType:o}),2!==o&&k++;for(x.reverse(),a=0,i=c.length;a<i;a++)c[a].end<e||c[a].start>t||(x.push(c[a]),2!==c[a].clipType&&k++);for(l=g.start,s=g.end;s<t;)l=b.offset(l,u[1]),s=b.offset(s,u[1]),x.push({start:l,end:s,clipType:(0,d.getClipType)([l,s],m,v)}),2!==o&&k++;for(S=Math.min(S,k)+1,r=Math.floor(k/S)||1,a=0,i=x.length;a<i;a++)2!==x[a].clipType&&(!++_||_%r||C.push(x[a].start));return C},n.getMajorIntervalGap=function(e,t,n){var a=this.thresholdIntervals;return this.getClippings().length?this.distance(e,t):"month"===a[n][0].name()?y:"year"===a[n][0].name()?b:t-e},n.ticks=function(e,t){void 0===e&&(e={});var n,a,i,r,l,s,c,u,h,g,v,y,b,x,k=this,S=k.thresholdIntervals,_=k.getUnclippedTimeIntervals(),w=k.applicableClippings,D=w.repeatClips,E=w.singleClips,T=k.getDomain(),M=this._getRangeThreshold(),I=!1,F=[],L=T[0],O=T[1],P=[],A=[],B=[],N=k.getType();if(!C(L)||!C(O))return k._tickType=[],[];for(k._timeFormat=x={},b=this.distance(L,O),n=i=S.length-1;n>=0;n--)if(Math.floor(b/S[n][2])>1){for(s=S[l=k.getNiceMajorTickInterval(n,t)][0].name(),r=_[(0,f["default"])(s)]||_[s],L=(0,o.getFloorOfDate)(new Date(L),s,S[l][1],N),O=(0,o.modifyDate)(new Date(O),s,S[l][1],!1,N),O=(0,o.getFloorOfDate)(new Date(O),s,S[l][1],N),h=r.range(+L,+O+S[l][2],S[l][1]),x.major=s,a=0;a<h.length;a++)+h[a]>=+T[0]&&+h[a]<=+T[1]&&(I=!0);F=k.generateContextTicks(l,!I)||[];break}if(!h)return k._tickType=[],P;for(n=0,i=h.length;n<i-1;n++)if(P.push(h[n]),A.push(p),(u="year"===S[l][0].name()&&h.length>10?-1:k.getNiceMinorTickInterval(l,k.getMajorIntervalGap(h[n],h[n+1],l),b))>-1&&!e.minor)for(c=S[u][0].name(),r=_[(0,f["default"])(c)]||_[c],g=((D||[]).length||(E||[]).length)&&1===M[1]&&M[0].name()===S[u][0].name()?this.getClippedMinorTicks(h[n],h[n+1],u):r.range(+h[n],+h[n+1]+1,S[u][1]),x.minor=S[u][0].name(),a=0,v=g.length;a<v;a++)y=+g[a],a===v-1&&v>1&&+this.distance(h[n+1],y)/this.distance(y,+g[a-1])<.5||y!==+h[n]&&y!==+h[n+1]&&(P.push(g[a]),A.push(m));if(P.push(h[i-1]),A.push(p),F.length&&!e.context)for(n=0,i=F.length;n<i;n++)P.push(F[n]),A.push("context");for(k._tickType=[],n=0,i=P.length;n<i;n++)A[n]!==m&&(P[n]=(0,d.getUnclippedValue)(P[n],D,E));for(n=0,i=P.length;n<i;n++)A[n]===p?P[n]!==P[n-1]&&(B.push(P[n]),k._tickType.push(A[n])):(B.push(P[n]),k._tickType.push(A[n]));return B},n.setDomain=function(t){var n;void 0===t&&(t=[]);var a=this.getDomain();return t[0]>t[1]&&(n=[t[0],t[1]],t[1]=n[0],t[0]=n[1]),+a[0]==+t[0]&&+a[1]==+t[1]||(e.prototype.setDomain.call(this,t),this.calculateBins(t)),this},n.calculateBins=function(e){void 0===e&&(e=[]);var t,n,a,i,r,o,s,c,g,p,m=+e[0],v=+e[1],y=this._getRangeThreshold(),b=this.getUnclippedTimeIntervals(),x=y&&y[2],k=[],S=this.getFirstData(),_=this.getClippings(),C=[],w=[],D=[];if(x){for(g=y[0].name(),o=0,c=_.length;o<c;o++)(p=_[o]).to-p.from>=x&&C.push(p);if(i=b[(0,f["default"])(g)]||b[g],C=this.applicableClippings=(0,d.segregateClips)(C),a=t=+u["default"].floor((0,l["default"])(S,m)),m=i.offset(new Date(e[0]),-3*y[1]),v=i.offset(new Date(e[1]),3*y[1]),"year"===i.name()||"month"===i.name())if(t>m)for(;t>m;)t=i.offset(t,-1*y[1]);else for(;i.offset(t,y[1])<m;)t=i.offset(t,y[1]);else if(t=new Date(Math.floor((m-a)/x)*x+a),"UTC"!==this.getType())new Date(t.getFullYear(),0,0).getTimezoneOffset()<new Date(t.getFullYear(),6).getTimezoneOffset()&&(t=h["default"].offset(t,1));for(n=i.offset(t,y[1]),s=0;t<=v;s++)r=(0,d.getClipType)([+t,+n],C.repeatClips,C.singleClips),k.push({clipType:r,start:t,end:n}),2===r&&w.push(s),D[s]=(D[s-1]||0)+(2===r?n-t:0),t=i.offset(t,y[1]),n=i.offset(n,y[1]);this.clips=D,this.clipIndices=w,this.bins=k,this.clippedDomain=[+e[0],+e[0]+this.distance(+e[0],+e[1])]}return this.clips=D,this.clipIndices=w,this.bins=k,this},n._getBinIndex=function(e){var t,n,a=+e,i=this.bins,r=this.clips,o=!1;if(i[n=t=function(e,t){for(var n,a=0,i=e.length-1;a<=i;){if(t>=e[n=a+Math.ceil((i-a)/2)].start&&t<e[n].end)return n;e[n].end<=t?a=n+1:i=n-1}return-1}(i,a)]&&2===i[n].clipType){for(;n<r.length;)if(r[++n]===r[n-1]){o=!0;break}if(!o)for(n=t;n>=0;)if(r[--n]===r[n+1]){n+=1,o=!0;break}}return n},n._getBinBounds=function(e){return this.bins[e]||{}},n.distance=function(e,t){var n,a,i,r,o,l,s,c,u=Math.min(+e,+t),h=Math.max(+e,+t),g=this.bins,p=[],m=[],v=this.applicableClippings,y=this.getUnclippedTimeIntervals(),b=this._getRangeThreshold(),x=this.clips,k=this._getBinIndex(u),S=this._getBinIndex(h),_=e>t?-1:1,C=[],w=0;if(r=g[0],o=g[g.length-1],!b.length)return _*(h-u);if(-1===k||-1===S){if(l=y[(0,f["default"])(b[0].name())]||y[b[0].name()],-1===k&&(u=(0,d.getUnclippedValue)(+u,v.repeatClips,v.singleClips)),-1===S&&(h=(0,d.getUnclippedValue)(+h,v.repeatClips,v.singleClips)),u<r.start){for(i=r;u<i.start;)(i={start:l.offset(i.start,-1*b[1]),end:i.start}).clipType=(0,d.getClipType)([+i.start,+i.end],v.repeatClips,v.singleClips),p.push(i);n=i,k=p.length-1}else if(u>=o.end){for(i=o;h>=i.end;)(i={end:l.offset(i.end,b[1]),start:i.end}).clipType=(0,d.getClipType)([+i.start,+i.end],v.repeatClips,v.singleClips),m.push(i);n=i,k=m.length-1}else n=this._getBinBounds(k);if(s=-1,h<r.start){for(i=r;h<i.start;)p[++s]||((i={start:l.offset(i.start,-1*b[1]),end:i.start}).clipType=(0,d.getClipType)([+i.start,+i.end],v.repeatClips,v.singleClips),p.push(i)),i=p[s];a=i,S=s}else if(h>=o.end){for(i=o;h>=i.end;)m[++s]||((i={start:i.end,end:l.offset(i.end,b[1])}).clipType=(0,d.getClipType)([+i.start,+i.end],v.repeatClips,v.singleClips),m.push(i)),i=m[s];a=i,S=s}else a=this._getBinBounds(S);for(p.reverse(),C=u,s=0,c=p.length;s<c;s++){if(u>=(i=p[s]).start&&u<i.end){if(h<i.end){w+=h-u,C=i.end;break}w+=i.end-u}else{if(h>=i.start&&h<i.end){w+=h-i.start,C=i.end;break}w+=2===i.clipType?0:i.end-i.start}C=i.end}if(C<h&&C<o.end)for(s=0,c=g.length;s<c;s++)if(u>=(i=g[s]).start&&u<i.end){if(h<i.end){w+=h-u,C=i.end;break}w+=i.end-u}else{if(h>=i.start&&h<i.end){w+=h-i.start,C=i.end;break}i.start>=u&&(w+=2===i.clipType?0:i.end-i.start,C=i.end)}if(C<h)for(s=0,c=m.length;s<c;s++)if(u>=(i=m[s]).start&&u<i.end){if(h<i.end){w+=h-u,C=i.end;break}w+=i.end-u}else{if(h>=i.start&&h<i.end){w+=h-i.start,C=i.end;break}i.start>=u&&(w+=2===i.clipType?0:i.end-i.start,C=i.end)}}else{if(n=this._getBinBounds(k),a=this._getBinBounds(S),n.start>u?u=n.start:n.end<u&&(u=n.end),a.start>h?h=a.start:a.end<h&&(h=a.end),S-k<=1)return(h-u)*_;w+=n.end-u,w+=h-a.start,w+=a.start-n.end,w-=x[S]-x[k]}return w*_},n.offset=function(e,t){var n,a,i,r,o=Math.abs(+t),l=+e,s=this._getBinIndex(l),c=this._getBinBounds(s),u=this.bins,h=this.getUnclippedTimeIntervals(),g=this.applicableClippings,p=this._getRangeThreshold();if(!this.clipIndices.length)return Number(e)+Number(t);if(t>=0){if(+c.start>l&&(l=+c.start),l+o<c.end)return l+o;for(o-=+c.end-l,l=+c.end,s++;s<u.length;s++)if(2!==(r=u[s]).clipType){if(!(o>=r.end-r.start)){l+=o,o=0;break}o-=r.end-r.start,l=+r.end}else l=+r.end}else{if(+c.end<l&&(l=+c.end),l-o>=c.start)return l-o;for(o-=l-c.start,l=c.start,n=h[(0,f["default"])(p[0].name())]||h[p[0].name()],r=c;o;)2!==(r={start:a=n.offset(r.start,-1*p[1]),end:i=r.start,clipType:(0,d.getClipType)([+a,+i],g.repeatClips,g.singleClips)}).clipType?o>=r.end-r.start?(o-=r.end-r.start,l=+r.start):(l-=o,o=0):l=+r.start}return l},n.nice=function(t,n){var a=e.prototype.nice.call(this,t,n);return this._computeRangeThreshold(4),a},n.getFormattedTime=function(e,t){void 0===e&&(e={});var n,a,i,r,o,l,u,d,f,h=this._getRangeThreshold(),g=e.dateRange,p=e.type,m=e.language,v=h[1],y=this.getType();return"crossline"===p||"tooltip"===p?(n=h[0].name(),t&&t[n]?(a=i=t[n],l=("UTC"===y?c["default"].utcFormatter(a):c["default"].formatter(a)).format(new Date(g.startDate)),v>1?l+" - "+("UTC"===y?c["default"].utcFormatter(i):c["default"].formatter(a)).format(new Date(g.endDate)):l):(a=i=(0,s.getFilterdTimeFormat)("%b %d, %Y, %I:%M:%S.%L %p",n),"hour"===n&&(a=a.replace(/%M/,""),i=i.replace(/%M/,"")),a=a.replace(/[:|.]*[\s]/g," "),i=i.replace(/[:|.]*[\s]/g," "),a.match(/%I/)||(g.endDate-=1,a=a.replace(/%p/,""),i=i.replace(/%p/,"")),r=new Date(g.startDate),o=new Date(g.endDate),u=w(r,"Date",y)===w(o,"Date",y),d=w(r,"Month",y)===w(o,"Month",y),f=w(r,"FullYear",y)===w(o,"FullYear",y),v>1?f&&(d?u?a.match(/%I/)?(a=a.replace(/%p/,""),i=(i=(i=i.replace(/%b/,"")).replace(/%d/,"")).replace(/%Y/,"")):(a=a.replace(/%b/,"%B"),i=""):(a=a.replace(/%Y/,"")).match(/%I/)||(i=i.replace(/%b/,""),a=a.replace(/%b/,"%B")):1!==v&&(a=a.replace(/%Y/,""))):a.match(/%I/)||(a=a.replace(/%b/,"%B")),a=a.trim(),i=i.trim(),a=a.replace(/^[,|\s|:]*/,"").replace(/(\W+$)/,"").replace(/([,]+[\s]*[,]+)|([\s]+[,]+)/g,","),(i=i.replace(/^[,|\s|:]*/,"").replace(/(\W+$)/,"").replace(/([,]+[\s]*[,]+)|([\s]+[,]+)/g,","))&&1!==v?((l=("UTC"===y?c["default"].utcFormatter(a):c["default"].formatter(a)).format(new Date(g.startDate)))+" - "+("UTC"===y?c["default"].utcFormatter(i):c["default"].formatter(i)).format(new Date(g.endDate))).trim():(l=("UTC"===y?c["default"].utcFormatter(a):c["default"].formatter(a)).format(new Date(g.startDate))).trim())):"CRS"===p?((l=E(g.startDate,y,m)+(e.showTimeInLabel?", "+T(g.startDate,y):""))+" - "+(E(g.endDate,y,m)+(e.showTimeInLabel?", "+T(g.endDate,y):""))).trim():void 0},n.setBinMin=function(e){return this.minBin=e,this},n.getBinMin=function(){return this.minBin},n.setRangeThreshold=function(e){return this._threshold=e,this},n._getRangeThreshold=function(){return this._threshold||[]},n.setMode=function(e){this.mode=e},n.getMode=function(){return this.mode},n.setThresholdIntervals=function(e){return this.thresholdIntervals=e,this.calculateIndexOfIntervals(),this},n.setFirstData=function(e){return this.binStart=e,this},n.getFirstData=function(){return this.binStart},n.copy=function(){return _(this,new t)},t}(r["default"]);t["default"]=I},870:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=d(n(542)),o=a(n(535)),l=d(n(871)),s=a(n(367)),c=n(350);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=u(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}return a["default"]=e,n&&n.set(e,a),a}var f=1e3,h=6e4,g=36e5,p=864e5,m=2592e6,v=function(e){return new Date(e)},y=function(e){return e instanceof Date?+e:+new Date(+e)},b=function(e){function t(t,n,a,i,l,u,d,v){var y;return(y=e.call(this,r.deInterpolateLinear,o["default"])||this).timeIntervals={year:t,month:n,week:a,day:i,hour:l,minute:u,second:d,millisecond:v},y.unclippedTimeIntervals={year:t,month:n,week:a,day:i,hour:l,minute:u,second:d,millisecond:v},y.tickIntervals=[[y.timeIntervals.second,1,f],[y.timeIntervals.second,5,5e3],[y.timeIntervals.second,15,15e3],[y.timeIntervals.second,30,3e4],[y.timeIntervals.minute,1,h],[y.timeIntervals.minute,5,3e5],[y.timeIntervals.minute,15,9e5],[y.timeIntervals.minute,30,18e5],[y.timeIntervals.hour,1,g],[y.timeIntervals.hour,3,108e5],[y.timeIntervals.hour,6,216e5],[y.timeIntervals.hour,12,432e5],[y.timeIntervals.day,1,p],[y.timeIntervals.day,2,1728e5],[y.timeIntervals.week,1,6048e5],[y.timeIntervals.month,1,m],[y.timeIntervals.month,3,7776e6],[y.timeIntervals.year,1,31536e6]],y.locale=s["default"],y._localeConverter=new c.TimeConverter(s["default"]),y}(0,i["default"])(t,e);var n=t.prototype;return n.setDomain=function(t){return e.prototype.setDomain.call(this,t.map(y))},n.setTimeInterval=function(e){this.timeIntervals=e},n.setUnclippedTimeIntervals=function(e){this.unclippedTimeIntervals=e},n.getDomain=function(){return e.prototype.getDomain.call(this).map(v)},n.ticks=function(t,n){var a=e.prototype.getDomain.call(this);return(0,l["default"])(a[0],a[a.length-1],t,n,this.tickIntervals,this.timeIntervals)},n.nice=function(t,n){var a=e.prototype.getDomain.call(this),i=(0,l.tickInterval)(a[0],a[a.length-1],t,n,this.tickIntervals,this.timeIntervals);return i?e.prototype.setDomain.call(this,function(e,t){var n,a=e.slice(),i=0,r=a.length-1,o=a[i],l=a[r];return l<o&&(n=i,i=r,r=n,n=o,o=l,l=n),a[i]=t.floor(o),a[r]=t.ceil(l),a}(a,i)):this},n.getDomainValue=function(t){return new Date(e.prototype.getDomainValue.call(this,t))},n.setLocale=function(e){return void 0===e&&(e=s["default"]),this.locale=e,this._localeConverter=new c.TimeConverter(this.locale),this},n.copy=function(){var e=this.timeIntervals,n=e.year,a=e.month,i=e.week,o=e.day,l=e.hour,s=e.minute,c=e.second,u=e.millisecond;return(0,r.copyScale)(this,new t(n,a,i,o,l,s,c,u))},t}(r["default"]);t["default"]=b},865:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=a(n(866)),o=a(n(558)),l=function(e){function t(){return e.apply(this,arguments)||this}return(0,i["default"])(t,e),t.prototype.ticks=function(e){var t,n,a,i,r,l,s,c,u,d,f,h=this.getDomain(),g=h[0],p=h[1],m=0,v=[],y=[],b=0,x=this.base,k=x>1?-1:1,S=Math.log(x)/Math.log(10)%1?4:8;if(g<=0||p<=0)return v;if(g>p){var _=this.getDomain();p=_[0],g=_[1],m=1}for(x>1?(i=t=Math.ceil(Math.log(p)/Math.log(x)),a=n=Math.floor(Math.log(g)/Math.log(x))):x>0&&x<1&&(t=Math.floor(Math.log(p)/Math.log(x)),i=n=Math.ceil(Math.log(g)/Math.log(x)),a=t),l=n,s=a;s<=i;++s){if(r=this.pows(l),void 0!==f)for(x>1?t=Math.ceil(Math.log(r)/Math.log(x)):x>0&&x<1&&(t=Math.floor(Math.log(r)/Math.log(x))),u=(Math.pow(x,t)-Math.pow(x,t+k))/(S+1),c=1;c<=S;++c)d=Math.pow(x,t+k)+u*c,v.push(d),y.push("minor"),(g>d||p<d)&&++b;v.push(r),y.push("major"),(g>r||p<r)&&++b,f=r,x>1?l++:l--}return this._tickType=y,v.length-b<=2&&(v=(0,o["default"])(g,p,e),this._tickType=undefined),this.majorTicks=m?v.reverse():v},t}(r["default"]),s=l;t["default"]=s},855:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n="implicit",a=function(){function e(){this.unknown=n,this.domain=[],this.ordinalRange=[],this.map=new Map}var t=e.prototype;return t.setDomain=function(e){var t,n,a;for(void 0===e&&(e=[]),this.domain=[],this.map.clear(),t=0;t<e.length;++t)a=(n=e[t]).toString(),this.map.has(n)||this.map.set(a,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,a=e.toString(),i=this.getRange(),r=t.get(a);if(!r){if(this.getUnknown()!==n)return this.getUnknown();r=this.domain.push(e),t.set(a,r)}return i[(r-1)%i.length]},t.getType=function(){return"ordinal"},e}();t["default"]=a},868:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(490),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=s(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}a["default"]=e,n&&n.set(e,a);return a}(n(869)),l=n(875);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var c=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([].concat(l.TIME_SPAN)),t}(0,i["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,a=n.millisecond,i=n.second,r=n.minute,o=n.hour,l=n.day,s=n.week,c=n.month,u=n.year;this.formatters={millisecond:{major:t.formatter(a||"%I:%M:%S.%L %p"),minor:t.formatter(a||"%L ms"),context:t.formatter(a||"%b %d, %Y, %I:%M:%S.%L %p")},second:{major:t.formatter(i||"%I:%M:%S %p"),minor:t.formatter(i||"%S s"),context:t.formatter(i||"%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(l||"%b %d"),minor:t.formatter(l||"%d"),context:t.formatter(l||"%b %d, %Y")},week:{major:t.formatter(s||"%b %d"),minor:t.formatter(s||"%d"),context:t.formatter(s||"%b %d, %Y")},month:{major:t.formatter(c||"%b"),minor:t.formatter(c||"%b"),context:t.formatter(c||"%b %Y")},year:{major:t.formatter(u||"%Y"),minor:t.formatter(u||"%Y"),context:t.formatter(u||"%Y")}}},n.setTimeInterval=function(t){this.timeIntervals=t,e.prototype.setTimeInterval.call(this,t)},n.setUnclippedTimeIntervals=function(t){this.unclippedTimeIntervals=t,e.prototype.setUnclippedTimeIntervals.call(this,t)},n.getTimeInterval=function(){return this.timeIntervals},n.getUnclippedTimeIntervals=function(){return this.unclippedTimeIntervals},n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.formatter(e).format(n)}:function(e,n,a){return t._timeFormat[n]?t._localeConverter.formatter(t._timeFormat[n]).format(e):t.formatters[n][a].format(e)}},n.copy=function(){return(0,o.copyScaleBin)(this,new t)},t}(o["default"]);t["default"]=c},878:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(542),o=n(490),l=a(n(870)),s=n(871),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,i["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,s.tickFormat)(t.timeIntervals,t.formatters,e)}},n.copy=function(){return(0,r.copyScale)(this,new t)},t}(l["default"]);t["default"]=c},876:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(497),o=n(542),l=a(n(869)),s=n(875),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).setTimeFormat(),t.setDomain([].concat(s.UTC_TIME_SPAN)),t}(0,i["default"])(t,e);var n=t.prototype;return n.getType=function(){return"UTC"},n.setTimeInterval=function(t){this.timeIntervals=t,e.prototype.setTimeInterval.call(this,t)},n.setTimeFormat=function(e){void 0===e&&(e={});var t=this._localeConverter,n=e,a=n.millisecond,i=n.second,r=n.minute,o=n.hour,l=n.day,s=n.week,c=n.month,u=n.year;this.formatters={millisecond:{major:t.utcFormatter(a||"%I:%M:%S.%L %p"),minor:t.utcFormatter(a||"%L ms"),context:t.utcFormatter(a||"%b %d, %Y, %I:%M:%S.%L %p")},second:{major:t.utcFormatter(i||"%I:%M:%S %p"),minor:t.utcFormatter(i||"%S s"),context:t.utcFormatter(i||"%b %d, %Y, %I:%M:%S %p")},minute:{major:t.utcFormatter(r||"%I:%M %p"),minor:t.utcFormatter(r||"%M m"),context:t.utcFormatter(r||"%b %d, %Y, %I:%M %p")},hour:{major:t.utcFormatter(o||"%I %p"),minor:t.utcFormatter(o||"%I %p"),context:t.utcFormatter(o||"%b %d, %Y, %I %p")},day:{major:t.utcFormatter(l||"%b %d"),minor:t.utcFormatter(l||"%d"),context:t.utcFormatter(l||"%b %d, %Y")},week:{major:t.formatter(s||"%b %d"),minor:t.formatter(s||"%d"),context:t.formatter(s||"%b %d, %Y")},month:{major:t.utcFormatter(c||"%b"),minor:t.utcFormatter(c||"%b"),context:t.utcFormatter(c||"%b %Y")},year:{major:t.utcFormatter(u||"%Y"),minor:t.utcFormatter(u||"%Y"),context:t.utcFormatter(u||"%Y")}}},n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.utcFormatter(e).format(n)}:function(e,n,a){return t._timeFormat[n]?t._localeConverter.utcFormatter(t._timeFormat[n]).format(e):t.formatters[n][a].format(e)}},n.getUnclippedTimeIntervals=function(){return this.unclippedTimeIntervals},n.setUnclippedTimeIntervals=function(t){this.unclippedTimeIntervals=t,e.prototype.setUnclippedTimeIntervals.call(this,t)},n.copy=function(){return(0,o.copyScale)(this,new t)},t}(l["default"]);t["default"]=c},879:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(288)),r=n(497),o=a(n(870)),l=n(542),s=n(871),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,i["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,s.tickFormat)(t.timeIntervals,t.formatters,e)}},n.copy=function(){return(0,l.copyScale)(this,new t)},t}(o["default"]);t["default"]=c},914:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(915)),r=a(n(544)),o=a(n(916)),l=a(n(917)),s=function(){function e(){this.xTopAccessor=function(e){return e[0]},this.xBaseAccessor=null,this.yTopAccessor=(0,r["default"])(0),this.yBaseAccessor=function(e){return e[1]},this.isDefined=(0,r["default"])(!0),this.Curve=o["default"],this.ctx=null,this._output=null}var t=e.prototype;return t.generate=function(e){void 0===e&&(e=[]);var t,n,a,r,o,l=e.length,s=!1,c=new Array(l),u=new Array(l);for(null!==this.ctx&&"undefined"!=typeof this.ctx||(o=new i["default"],this._output=new this.Curve(o)),t=0;t<=l;++t){if(r=e[t],!(t<l&&this.isDefined(r,t,e))===s)if(s=!s)n=t,this._output.areaStart(),this._output.lineStart();else{for(this._output.lineEnd(),this._output.lineStart(),a=t-1;a>=n;--a)this._output.point(c[a],u[a]);this._output.lineEnd(),this._output.areaEnd()}s&&(c[t]=+this.xTopAccessor(r,t,e),u[t]=+this.yTopAccessor(r,t,e),this._output.point(this.xBaseAccessor?+this.xBaseAccessor(r,t,e):c[t],this.yBaseAccessor?+this.yBaseAccessor(r,t,e):u[t]))}if(o)return this._output=null,o.toString()},t.setXAccessor=function(e){return void 0===e&&(e=function(e){return e[0]}),this.xTopAccessor="function"==typeof e?e:(0,r["default"])(+e),this.xBaseAccessor=null,this},t.getXAccessor=function(){return this.xTopAccessor},t.setXTopAccessor=function(e){return void 0===e&&(e=function(e){return e[0]}),this.xTopAccessor="function"==typeof e?e:(0,r["default"])(+e),this},t.getXTopAccessor=function(){return this.xTopAccessor},t.setXBaseAccessor=function(e){return this.xBaseAccessor=null==e?null:"function"==typeof e?e:(0,r["default"])(+e),this},t.getXBaseAccessor=function(){return this.xBaseAccessor},t.setYAccessor=function(e){return void 0===e&&(e=function(e){return e[1]}),this.yTopAccessor="function"==typeof e?e:(0,r["default"])(+e),this.yBaseAccessor=null,this},t.getYAccessor=function(){return this.yTopAccessor},t.setYTopAccessor=function(e){return void 0===e&&(e=function(e){return e[1]}),this.yTopAccessor="function"==typeof e?e:(0,r["default"])(+e),this},t.getYTopAccessor=function(){return this.yTopAccessor},t.setYBaseAccessor=function(e){return this.yBaseAccessor=null==e?null:"function"==typeof e?e:(0,r["default"])(+e),this},t.getYBaseAccessor=function(){return this.yBaseAccessor},t.setDefined=function(e){return void 0===e&&(e=(0,r["default"])(!0)),this.isDefined="function"==typeof e?e:(0,r["default"])(!!e),this},t.getDefined=function(){return this.isDefined},t.setCurve=function(e){return void 0===e&&(e=o["default"]),this.Curve=e,null!==this.ctx&&"undefined"!=typeof this.ctx&&(this._output=new this.Curve(this.ctx)),this},t.getCurve=function(){return this.Curve},t.setContext=function(e){return null==e?(this.ctx=null,this._output=this._ctx):(this.ctx=e,this._output=new this.Curve(this.ctx)),this},t.getContext=function(){return this.ctx},t._areaLine=function(){return(new l["default"]).setDefined(this.isDefined).setCurve(this.Curve).setContext(this.ctx)},t.getLineXBase=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineYBase=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineYTop=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineXTop=function(){return this._areaLine().setXAccessor(this.xBaseAccessor).setYAccessor(this.yBaseAccessor)},e}();t["default"]=s},916:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n=function(){function e(e){this._ctx=e}var t=e.prototype;return t.areaStart=function(){this._line=0},t.areaEnd=function(){this._line=NaN},t.lineStart=function(){this._point=0},t.lineEnd=function(){(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line=1-this._line},t.point=function(e,t){var n=+e,a=+t;switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(n,a):this._ctx.moveTo(n,a);break;case 1:this._point=2;default:this._ctx.lineTo(n,a)}},e}();t["default"]=n},919:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n=function(e){return e<0?-1:1},a=function(){function e(e){this._ctx=e}var t=e.prototype;return t.areaStart=function(){this._line=0},t.areaEnd=function(){this._line=NaN},t.lineStart=function(){this._x0=this._x1=NaN,this._y0=this._y1=NaN,this._t0=NaN,this._point=0},t.lineEnd=function(){switch(this._point){case 2:this._ctx.lineTo(this._x1,this._y1);break;case 3:this._monotoneCurveTo(this._t0,this._slope2(this._t0))}(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line=1-this._line},t.point=function(e,t){var n=NaN,a=+e,i=+t;if(a!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(a,i):this._ctx.moveTo(a,i);break;case 1:this._point=2;break;case 2:this._point=3,n=this._slope3(a,i),this._monotoneCurveTo(this._slope2(n),n);break;default:n=this._slope3(a,i),this._monotoneCurveTo(this._t0,n)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=i,this._t0=n}},t._monotoneCurveTo=function(e,t){var n=this._x0,a=this._y0,i=this._x1,r=this._y1,o=(i-n)/3;this._ctx.bezierCurveTo(n+o,a+o*e,i-o,r-o*t,i,r)},t._slope2=function(e){var t=this._x1-this._x0;return t?(3*(this._y1-this._y0)/t-e)/2:e},t._slope3=function(e,t){var a=this._x1-this._x0,i=e-this._x1,r=(this._y1-this._y0)/(a||i<0&&-0),o=(t-this._y1)/(i||a<0&&-0),l=(r*i+o*a)/(a+i);return(n(r)+n(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(l))||0},e}();t["default"]=a},918:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=t.StepAfter=t.StepBefore=void 0;var i=a(n(288)),r=function(){function e(e,t){void 0===t&&(t=.5),this._ctx=e,this._factor=t}var t=e.prototype;return t.areaStart=function(){this._line=0},t.areaEnd=function(){this._line=NaN},t.lineStart=function(){this._x=this._y=NaN,this._point=0},t.lineEnd=function(){this._factor>0&&this._factor<1&&2===this._point&&this._ctx.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line>=0&&(this._factor=1-this._factor,this._line=1-this._line)},t.point=function(e,t){var n=+e,a=+t;switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(n,a):this._ctx.moveTo(n,a);break;case 1:this._point=2;default:if(this._factor<=0)this._ctx.lineTo(this._x,a),this._ctx.lineTo(n,a);else{var i=this._x*(1-this._factor)+n*this._factor;this._ctx.lineTo(i,this._y),this._ctx.lineTo(i,a)}}this._x=n,this._y=a},e}(),o=function(e){function t(t){return e.call(this,t,1)||this}return(0,i["default"])(t,e),t}(r);t.StepAfter=o;var l=function(e){function t(t){return e.call(this,t,0)||this}return(0,i["default"])(t,e),t}(r);t.StepBefore=l;var s=r;t["default"]=s},917:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(915)),r=a(n(544)),o=a(n(916)),l=function(){function e(){this.xAccessor=function(e){return e[0]},this.yAccessor=function(e){return e[1]},this.isDefined=(0,r["default"])(!0),this.Curve=o["default"],this.ctx=null,this._output=null}var t=e.prototype;return t.generate=function(e){void 0===e&&(e=[]);var t,n,a,r=0,o=e.length;for(null!==this.ctx&&"undefined"!=typeof this.ctx||(a=new i["default"],this._output=new this.Curve(a)),r=0;r<=o;++r)t=e[r],n?r<o&&this.isDefined(t,r,e)?this._output.point(this.xAccessor(t,r,e),this.yAccessor(t,r,e)):(this._output.lineEnd(),n=!1):r<o&&this.isDefined(t,r,e)&&(n=!0,this._output.lineStart(),this._output.point(this.xAccessor(t,r,e),this.yAccessor(t,r,e)));if(a)return this._output=null,a.toString()},t.setXAccessor=function(e){return void 0===e&&(e=function(e){return e[0]}),this.xAccessor="function"==typeof e?e:(0,r["default"])(+e),this},t.getXAccessor=function(){return this.xAccessor},t.setYAccessor=function(e){return void 0===e&&(e=function(e){return e[1]}),this.yAccessor="function"==typeof e?e:(0,r["default"])(+e),this},t.getYAccessor=function(){return this.yAccessor},t.setDefined=function(e){return void 0===e&&(e=(0,r["default"])(!0)),this.isDefined="function"==typeof e?e:(0,r["default"])(!!e),this},t.getDefined=function(){return this.isDefined},t.setCurve=function(e){return void 0===e&&(e=o["default"]),this.Curve=e,"undefined"==typeof this.ctx&&null===this.ctx||(this._output=new this.Curve(this.ctx)),this},t.getCurve=function(){return this.Curve},t.setContext=function(e){return null==e?(this.ctx=null,this._output=this.ctx):(this.ctx=e,this._output=new this.Curve(this.ctx)),this},t.getContext=function(){return this.ctx},e}();t["default"]=l},915:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var n=1e-6,a=Math.PI,i=2*a,r=i-n,o=function(){function e(){this._clear()}var t=e.prototype;return t.moveTo=function(e,t){this._x0=this._x1=+e,this._y0=this._y1=+t,this.pathStr+="M"+this._x0+","+this._y0},t.lineTo=function(e,t){this._x1=+e,this._y1=+t,this.pathStr+="L"+this._x1+","+this._y1},t.quadraticCurveTo=function(e,t,n,a){this._x1=+n,this._y1=+a;var i=+e,r=+t;this.pathStr+="Q"+i+","+r+","+this._x1+","+this._y1},t.bezierCurveTo=function(e,t,n,a,i,r){this._x1=+i,this._y1=+r;var o=+e,l=+t,s=+n,c=+a;this.pathStr+="C"+o+","+l+","+s+","+c+","+this._x1+","+this._y1},t.rect=function(e,t,n,a){var i=this,r=+n,o=+a;i._x0=i._x1=+e,i._y0=i._y1=+t,i.pathStr+="M"+i._x0+","+i._y0+"h"+r+"v"+o+"h"+-r+"Z"},t.arcTo=function(e,t,i,r,o){var l,s,c,u,d,f,h,g,p,m,v,y,b,x,k,S,_=+e,C=+i,w=+t,D=+r,E=+o;c=C-_,u=D-w,h=(d=(k=this._x1)-_)*d+(f=(S=this._y1)-w)*f,E=Math.max(E,0),null===this._x1?(this._x1=_,this._y1=w,this.pathStr+="M"+this._x1+","+this._y1):h>n&&(Math.abs(f*c-u*d)>n&&E?(m=c*c+u*u,p=(l=C-k)*l+(s=D-S)*s,v=Math.sqrt(m),g=Math.sqrt(h),y=(x=E*Math.tan((a-Math.acos((m+h-p)/(2*v*g)))/2))/g,b=x/v,Math.abs(y-1)>n&&(this.pathStr+="L"+(_+y*d)+","+(w+y*f)),this._x1=_+b*c,this._y1=w+b*u,this.pathStr+="A"+E+","+E+",0,0,"+ +(f*l>d*s)+","+this._x1+","+this._y1):(this._x1=_,this._y1=w,this.pathStr+="L"+this._x1+","+this._y1))},t.arc=function(e,t,o,l,s,c){void 0===c&&(c=!1);var u=+e,d=+t,f=+o,h=+l,g=+s,p=!!c,m=this,v=f*Math.cos(h),y=f*Math.sin(h),b=u+v,x=d+y,k=Number(!p),S=p?h-g:g-h;Math.max(f,0),null===m._x1?m.pathStr+="M"+b+","+x:(Math.abs(m._x1-b)>n||Math.abs(m._y1-x)>n)&&(m.pathStr+="L"+b+","+x),f&&(S<0&&(S=S%i+i),S>r?(m._x1=b,m._y1=x,m.pathStr+="A"+f+","+f+",0,1,"+k+","+(u-v)+","+(d-y),m.pathStr+="A"+f+","+f+",0,1,"+k+","+m._x1+","+m._y1):S>n&&(m._x1=u+f*Math.cos(g),m._y1=d+f*Math.sin(g),m.pathStr+="A"+f+","+f+",0,"+ +(S>=a)+","+k+","+m._x1+","+m._y1))},t.closePath=function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this.pathStr+="Z")},t.toString=function(){return this.pathStr},t._clear=function(){this._x0=this._y0=this._x1=this._y1=null,this.pathStr=""},e}();t["default"]=o},933:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(349)),r=a(n(544)),o=a(n(934)),l=a(n(935)),s=function(e,t){return e[t]},c=function(){function e(){this.keysAccessor=(0,r["default"])([]),this.order=o["default"],this.offset=l["default"],this.valueAccessor=s}var t=e.prototype;return t.generate=function(e){var t,n,a=this.keysAccessor(e),i=e.length,r=a.length,o=new Array(r);for(t=0;t<r;++t){var l=a[t],s=new Array(i),c=void 0,u=void 0;for(o[t]=s,u=0;u<i;++u)(c=[0,+this.valueAccessor(e[u],l,u,e)]).data=e[u],s[u]=c;s.key=l}for(n=this.order(o),t=0;t<r;++t)o[n[t]].index=t;return this.offset(o,n),o},t.setKeysAccessor=function(e){return void 0===e&&(e=(0,r["default"])([])),this.keysAccessor="function"==typeof e?e:(0,r["default"])((0,i["default"])(e)?e.slice():[]),this},t.getKeysAccessor=function(){return this.keysAccessor},t.setValueAccessor=function(e){return void 0===e&&(e=s),this.valueAccessor="function"==typeof e?e:(0,r["default"])(+e),this},t.getValueAccessor=function(){return this.valueAccessor},t.setOrder=function(e){return void 0===e&&(e=o["default"]),this.order="function"==typeof e?e:(0,r["default"])((0,i["default"])(e)?e.slice():[]),this},t.getOrder=function(){return this.order},t.setOffset=function(e){return void 0===e&&(e=l["default"]),this.offset=e,this},t.getOffset=function(){return this.offset},e}();t["default"]=c},935:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=e.length;if(n>1){var a,i,r,o=e[t[0]],l=o.length;for(i=1;i<n;++i)for(a=o,o=e[t[i]],r=0;r<l;++r)o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1],o[r][1]+=o[r][0]}}},936:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=e.length;if(n>1){var a,i,r,o,l=e[t[0]].length,s=0,c=0;for(c=0;c<l;++c)for(r=o=0,s=0;s<n;++s)(i=(a=e[t[s]][c])[1]-a[0])>=0?(a[0]=r,r+=i,a[1]=r):i<0?(a[1]=o,o+=i,a[0]=o):a[0]=r}}},937:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e,t){var n=e.length;if(n>1){var a,i,r,o=e[t[0]],l=o.length;for(i=0;i<o.length;i++)o[i][0]=null;for(i=1;i<n;++i)for(a=o,o=e[t[i]],r=0;r<l;++r)o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1],o[r][1]+=o[r][0]}}},934:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}},862:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return void 0===e&&(e=""),e.charAt(0).toUpperCase()+e.slice(1)}},874:(e,t,n)=>{var a=n(269);t.__esModule=!0,t.getMinPlaceHolder=function(e){void 0===e&&(e="");var t,n,a,i;for(t=0;t<d;t++)for(i=(a=u[l[t]]).length,n=0;n<i;n++)if(e.match(a[n]))return l[t]},t.getPlaceHolderIndex=function(e){return s[e]},t.getFilterdTimeFormat=function(e,t){void 0===e&&(e="");var n,a=c[t],i=e,r=function(e){i=i.replace(e,"")};for(n=0;n<a;n++)u[l[n]].forEach(r);return i.replace(/(\W+$)/,"").replace(/^,/,"")};var i=a(n(352)),r="%["+Object.keys(i["default"]).sort((function(e,t){return"-"===e?1:"-"===t?-1:0})).join("")+"]?",o=function(e){return new RegExp(""+r+e)},l=["millisecond","second","minute","hour","day","week","month","year"],s={millisecond:0,second:1,minute:2,hour:3,day:4,week:5,month:5,year:6},c={millisecond:0,second:1,minute:2,hour:2,day:4,week:4,month:5,year:6},u=function(e){var t={},n="";for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n].map(o));return t}({millisecond:["L","Q"],second:["S","s"],minute:["M"],hour:["H","I","p"],day:["d","e","j","a","A"],week:["d","e","j","a","A"],month:["b","B","m"],year:["y","Y"]}),d=l.length},871:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=t.tickFormat=t.tickInterval=void 0;var i=a(n(872)),r=n(559),o=31536e6,l=function(e,t,n,a,l,s){void 0===n&&(n=10);var c,u,d=n,f=a;return"number"==typeof d&&(c=Math.abs(t-e)/d,(u=(0,i["default"])((function(e){return e[2]})).right(l,c))===l.length?(f=(0,r.tickStep)(e/o,t/o,d),d=s.year):u?(f=(u=l[c/l[u-1][2]<l[u][2]/c?u-1:u])[1],d=u[0]):(f=Math.max((0,r.tickStep)(e,t,d),1),d=s.millisecond)),null==f?d:d.every(f)};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=l;var s=function(e,t,n,a,i,r){var o,s,c=e,u=t,d=u<c;return d&&(o=c,c=u,u=o),s=(s=l(c,u,n,a,i,r))?s.range(c,u+1):[],d?s.reverse():s};t["default"]=s},927:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return"number"==typeof e&&!isNaN(e)}},858:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return"string"==typeof e}},856:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]=function(e){return""!==e&&"number"==typeof+e&&!isNaN(+e)&&e!==Infinity&&e!==-Infinity}},857:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(858));t["default"]=function(e){return(0,i["default"])(e)&&e.length}},802:(e,t,n)=>{var a=n(269);t.__esModule=!0,t["default"]=void 0;var i=a(n(803));t.TimeSeries=i["default"];var r=a(n(271)),o=a(n(470)),l=n(482),s=n(508),c=n(509);r["default"].DataStore=o["default"],r["default"].DataStore.Operators={between:l.between,equals:l.equals,less:l.less,lessEquals:l.lessEquals,greater:l.greater,greaterEquals:l.greaterEquals,filter:l.filter,select:l.select,groupBy:l.groupBy,pipe:l.pipe,sort:l.sort,pivot:l.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:s.aggregatorStore};var u={name:"timeseries",type:"package",requiresFusionCharts:!0,extension:function(e){return e.addDep(i["default"])}};t["default"]=u},803:(e,t,n)=>{t.__esModule=!0,t["default"]=void 0;var a=n(804).TimeSeries;t["default"]=a}}])}));
//# sourceMappingURL=http://localhost:3052/4.1.0/map/eval/fusioncharts.timeseries.js.map