marketplacepos 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/213.d00d0a3f05c831f7.js +1 -0
- package/Marketplace/{369.be88af4326c1a287.js → 369.a12060880985ee8f.js} +1 -1
- package/Marketplace/378.7f743ac9660ec6e6.js +1 -0
- package/Marketplace/379.aad8784dbdb3dd33.js +1 -0
- package/Marketplace/395.2943aa5a44308399.js +1 -0
- package/Marketplace/397.8ba047b91801962d.js +1 -0
- package/Marketplace/53.3655b31ecb37ade9.js +1 -0
- package/Marketplace/655.ae475c8285604367.js +1 -0
- package/Marketplace/{767.aef1dd980b626ef7.js → 767.d939ac65d1cb16fb.js} +1 -1
- package/Marketplace/common.af67cc08f47a8d44.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.6966bb7fcafbe0e4.js +1 -0
- package/Marketplace/runtime.5db60124bb5bf7cb.js +1 -0
- package/package.json +1 -1
- package/Marketplace/213.cb4351cfb44ca3bf.js +0 -1
- package/Marketplace/379.611029ed9b632dca.js +0 -1
- package/Marketplace/397.482996341e2502bf.js +0 -1
- package/Marketplace/408.c94b4441303091c4.js +0 -1
- package/Marketplace/53.8cb269bb04087434.js +0 -1
- package/Marketplace/655.c3fe092dbd4ce86c.js +0 -1
- package/Marketplace/72.d59410fd71caf119.js +0 -1
- package/Marketplace/common.7ce512ca9d1674b7.js +0 -1
- package/Marketplace/main.daad5e6622008ab4.js +0 -1
- package/Marketplace/runtime.67fa2c46977dc458.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[655],{9655:(Ot,bt,vt)=>{"use strict";vt.r(bt),vt.d(bt,{DashboardModule:()=>rt});var wt=vt(6895),At=vt(3470),ct=vt(4782),U=vt(4004),G=vt(9694),F=vt(1889),M=vt(4650),it=vt(4461);class et{constructor(Q){this.Chart=Q.Chart,this.PerformanceChannel=Q.PerformanceChannel,this.lineChartOptions=this.generateLineChartOptions(),this.pieChartOptions=this.generatePieChartOptions()}generateLineChartOptions(){let Q=0;return{chart:{type:"spline",inverted:!1},credits:{enabled:!1},yAxis:{title:{text:""}},xAxis:{categories:this.Chart.XAxis,labels:{style:{fontSize:"10px"}}},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},tooltip:{pointFormatter:function(){return'<span style="color:'+this.color+'">\u25cf</span> '+this.series.name+": <b>"+At.numberFormat(this.y,0,",",".")+" IDR</b><br/>"}},series:this.Chart.Area.filter(E=>(Q=0,E?.Data.forEach(j=>{0==j&&(Q+=1)}),Q!=E.Data.length)).map(E=>({name:E.Name,data:E.Data,type:"spline",color:F.g.getCssChannelColor(E.TypeID)}))}}generatePieChartOptions(){return{credits:{enabled:!1},title:{text:""},legend:{itemMarginTop:2,itemMarginBottom:2,itemStyle:{fontSize:"10px"}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.y} Orders"},showInLegend:!0}},series:[{type:"pie",name:"Total",data:this.Chart.Pie.filter(z=>z.Order>0).map(z=>({name:z.Name,y:z.Order,color:F.g.getCssChannelColor(z.TypeID)}))}]}}}var tt=vt(529);class ${constructor(Q){this.http=Q}getDashboardData(Q){return this.http.post("/api/dashboard/GetDashboardData",{range:"Week"==Q.range?0:1,type:Q.type}).pipe((0,U.U)(j=>new et(j)))}getChannelShortcuts(){return[{name:"Tokopedia",class:"btn-tokopedia",typeId:G.x.Tokopedia,campaign:"https://seller.tokopedia.com/promo",chat:"https://seller.tokopedia.com/chat",logo:it.$.TOKOPEDIA,sellerCenter:"https://seller.tokopedia.com"},{name:"Shopee",class:"btn-shopee",typeId:G.x.ShopeeV2,campaign:"https://seller.shopee.co.id/portal/marketing",chat:"https://seller.shopee.co.id/webchat/conversations",logo:it.$.SHOOPE,sellerCenter:"https://seller.shopee.co.id/"},{name:"Tiktok",class:"btn-tiktok",typeId:G.x.Tiktok,campaign:"https://seller-id.tiktok.com",chat:"https://seller-id.tiktok.com/chat?lang=id-ID&from=seller_center_navigation_im",logo:it.$.TIKTOK,sellerCenter:"https://seller-id.tiktok.com"},{name:"Lazada",class:"btn-lazada",typeId:G.x.Lazada,campaign:"https://sellercenter.lazada.co.id/apps/promotion/home?",chat:"https://sellercenter.lazada.co.id/apps/im/chat",logo:it.$.LAZADA,sellerCenter:"https://sellercenter.lazada.co.id"}]}}$.\u0275fac=function(Q){return new(Q||$)(M.LFG(tt.eN))},$.\u0275prov=M.Yz7({token:$,factory:$.\u0275fac});var N=vt(7481),_=vt(4006);let O=(()=>{class V{constructor(z,E){this.el=z,this._zone=E,this.updateChange=new M.vpe(!0),this.chartInstance=new M.vpe}ngOnChanges(z){const E=z.update&&z.update.currentValue;(z.options||E)&&(this.wrappedUpdateOrCreateChart(),E&&this.updateChange.emit(!1))}wrappedUpdateOrCreateChart(){this.runOutsideAngular?this._zone.runOutsideAngular(()=>{this.updateOrCreateChart()}):this.updateOrCreateChart()}updateOrCreateChart(){this.chart&&this.chart.update?this.chart.update(this.options,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.options,this.callbackFunction||null),this.chartInstance.emit(this.chart))}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=null)}}return V.\u0275fac=function(z){return new(z||V)(M.Y36(M.SBq),M.Y36(M.R0b))},V.\u0275cmp=M.Xpm({type:V,selectors:[["highcharts-chart"]],inputs:{Highcharts:"Highcharts",constructorType:"constructorType",callbackFunction:"callbackFunction",oneToOne:"oneToOne",runOutsideAngular:"runOutsideAngular",options:"options",update:"update"},outputs:{updateChange:"updateChange",chartInstance:"chartInstance"},features:[M.TTD],decls:0,vars:0,template:function(z,E){},encapsulation:2}),V})(),g=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275mod=M.oAB({type:V}),V.\u0275inj=M.cJS({}),V})();var f=vt(8796),y=vt(2693),C=vt(1281),v=vt(9521),x=vt(3238),w=vt(7579),A=vt(6451),T=vt(7340);const R=["mat-sort-header",""];function k(V,Q){if(1&V){const z=M.EpF();M.TgZ(0,"div",3),M.NdJ("@arrowPosition.start",function(){M.CHM(z);const j=M.oxw();return M.KtG(j._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){M.CHM(z);const j=M.oxw();return M.KtG(j._disableViewStateAnimation=!1)}),M._UZ(1,"div",4),M.TgZ(2,"div",5),M._UZ(3,"div",6)(4,"div",7)(5,"div",8),M.qZA()()}if(2&V){const z=M.oxw();M.Q6J("@arrowOpacity",z._getArrowViewState())("@arrowPosition",z._getArrowViewState())("@allowChildren",z._getArrowDirectionState()),M.xp6(2),M.Q6J("@indicator",z._getArrowDirectionState()),M.xp6(1),M.Q6J("@leftPointer",z._getArrowDirectionState()),M.xp6(1),M.Q6J("@rightPointer",z._getArrowDirectionState())}}const r=["*"],c=new M.OlP("MAT_SORT_DEFAULT_OPTIONS"),i=(0,x.dB)((0,x.Id)(class{}));let s=(()=>{class V extends i{get direction(){return this._direction}set direction(z){this._direction=z}get disableClear(){return this._disableClear}set disableClear(z){this._disableClear=(0,C.Ig)(z)}constructor(z){super(),this._defaultOptions=z,this.sortables=new Map,this._stateChanges=new w.x,this.start="asc",this._direction="",this.sortChange=new M.vpe}register(z){this.sortables.set(z.id,z)}deregister(z){this.sortables.delete(z.id)}sort(z){this.active!=z.id?(this.active=z.id,this.direction=z.start?z.start:this.start):this.direction=this.getNextSortDirection(z),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(z){if(!z)return"";let j=function d(V,Q){let z=["asc","desc"];return"desc"==V&&z.reverse(),Q||z.push(""),z}(z.start||this.start,z?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),K=j.indexOf(this.direction)+1;return K>=j.length&&(K=0),j[K]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return V.\u0275fac=function(z){return new(z||V)(M.Y36(c,8))},V.\u0275dir=M.lG2({type:V,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[M.qOj,M.TTD]}),V})();const a=x.mZ.ENTERING+" "+x.yN.STANDARD_CURVE,m={indicator:(0,T.X$)("indicator",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"translateY(0px)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"translateY(10px)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(a))]),leftPointer:(0,T.X$)("leftPointer",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"rotate(-45deg)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"rotate(45deg)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(a))]),rightPointer:(0,T.X$)("rightPointer",[(0,T.SB)("active-asc, asc",(0,T.oB)({transform:"rotate(45deg)"})),(0,T.SB)("active-desc, desc",(0,T.oB)({transform:"rotate(-45deg)"})),(0,T.eR)("active-asc <=> active-desc",(0,T.jt)(a))]),arrowOpacity:(0,T.X$)("arrowOpacity",[(0,T.SB)("desc-to-active, asc-to-active, active",(0,T.oB)({opacity:1})),(0,T.SB)("desc-to-hint, asc-to-hint, hint",(0,T.oB)({opacity:.54})),(0,T.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,T.oB)({opacity:0})),(0,T.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,T.jt)("0ms")),(0,T.eR)("* <=> *",(0,T.jt)(a))]),arrowPosition:(0,T.X$)("arrowPosition",[(0,T.eR)("* => desc-to-hint, * => desc-to-active",(0,T.jt)(a,(0,T.F4)([(0,T.oB)({transform:"translateY(-25%)"}),(0,T.oB)({transform:"translateY(0)"})]))),(0,T.eR)("* => hint-to-desc, * => active-to-desc",(0,T.jt)(a,(0,T.F4)([(0,T.oB)({transform:"translateY(0)"}),(0,T.oB)({transform:"translateY(25%)"})]))),(0,T.eR)("* => asc-to-hint, * => asc-to-active",(0,T.jt)(a,(0,T.F4)([(0,T.oB)({transform:"translateY(25%)"}),(0,T.oB)({transform:"translateY(0)"})]))),(0,T.eR)("* => hint-to-asc, * => active-to-asc",(0,T.jt)(a,(0,T.F4)([(0,T.oB)({transform:"translateY(0)"}),(0,T.oB)({transform:"translateY(-25%)"})]))),(0,T.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,T.oB)({transform:"translateY(0)"})),(0,T.SB)("hint-to-desc, active-to-desc, desc",(0,T.oB)({transform:"translateY(-25%)"})),(0,T.SB)("hint-to-asc, active-to-asc, asc",(0,T.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,T.X$)("allowChildren",[(0,T.eR)("* <=> *",[(0,T.IO)("@*",(0,T.pV)(),{optional:!0})])])};let b=(()=>{class V{constructor(){this.changes=new w.x}}return V.\u0275fac=function(z){return new(z||V)},V.\u0275prov=M.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const B={provide:b,deps:[[new M.FiY,new M.tp0,b]],useFactory:function Y(V){return V||new b}},e=(0,x.Id)(class{});let l=(()=>{class V extends e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(z){this._updateSortActionDescription(z)}get disableClear(){return this._disableClear}set disableClear(z){this._disableClear=(0,C.Ig)(z)}constructor(z,E,j,K,J,ot,at,ht){super(),this._intl=z,this._changeDetectorRef=E,this._sort=j,this._columnDef=K,this._focusMonitor=J,this._elementRef=ot,this._ariaDescriber=at,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",ht?.arrowPosition&&(this.arrowPosition=ht?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(z=>{const E=!!z;E!==this._showIndicatorHint&&(this._setIndicatorHintVisible(E),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(z){this._isDisabled()&&z||(this._showIndicatorHint=z,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(z){this._viewState=z||{},this._disableViewStateAnimation&&(this._viewState={toState:z.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(z){!this._isDisabled()&&(z.keyCode===v.L_||z.keyCode===v.K5)&&(z.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const z=this._viewState.fromState;return(z?`${z}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(z){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,z)),this._sortActionDescription=z}_handleStateChanges(){this._rerenderSubscription=(0,A.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return V.\u0275fac=function(z){return new(z||V)(M.Y36(b),M.Y36(M.sBO),M.Y36(s,8),M.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),M.Y36(y.tE),M.Y36(M.SBq),M.Y36(y.$s,8),M.Y36(c,8))},V.\u0275cmp=M.Xpm({type:V,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(z,E){1&z&&M.NdJ("click",function(){return E._handleClick()})("keydown",function(K){return E._handleKeydown(K)})("mouseenter",function(){return E._setIndicatorHintVisible(!0)})("mouseleave",function(){return E._setIndicatorHintVisible(!1)}),2&z&&(M.uIk("aria-sort",E._getAriaSortAttribute()),M.ekj("mat-sort-header-disabled",E._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[M.qOj],attrs:R,ngContentSelectors:r,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(z,E){1&z&&(M.F$t(),M.TgZ(0,"div",0)(1,"div",1),M.Hsn(2),M.qZA(),M.YNc(3,k,6,6,"div",2),M.qZA()),2&z&&(M.ekj("mat-sort-header-sorted",E._isSorted())("mat-sort-header-position-before","before"===E.arrowPosition),M.uIk("tabindex",E._isDisabled()?null:0)("role",E._isDisabled()?null:"button"),M.xp6(3),M.Q6J("ngIf",E._renderArrow()))},dependencies:[wt.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[m.indicator,m.leftPointer,m.rightPointer,m.arrowOpacity,m.arrowPosition,m.allowChildren]},changeDetection:0}),V})(),P=(()=>{class V{}return V.\u0275fac=function(z){return new(z||V)},V.\u0275mod=M.oAB({type:V}),V.\u0275inj=M.cJS({providers:[B],imports:[wt.ez,x.BQ]}),V})();var I=vt(266);class L{transform(Q,z,E,j){let K=0;return Q&&!E&&!j&&Q.forEach(J=>K+=J[z]-0),E&&j&&Q.forEach(J=>{J[E]==j&&(K+=J[z]-0)}),K}}function n(V,Q){if(1&V&&(M.TgZ(0,"span",8),M._UZ(1,"img",9),M.qZA(),M._uU(2)),2&V){const z=Q.item;M.xp6(1),M.Q6J("src",z.logo,M.LSH),M.xp6(1),M.hij(" ",z.name," ")}}function S(V,Q){if(1&V&&(M.TgZ(0,"tr",39)(1,"td"),M._UZ(2,"img",40),M.qZA(),M.TgZ(3,"td",41),M._uU(4),M.qZA(),M.TgZ(5,"td",42),M._uU(6),M.ALo(7,"number"),M.qZA(),M.TgZ(8,"td",43),M._uU(9),M.ALo(10,"number"),M.qZA(),M.TgZ(11,"td",44),M._uU(12),M.ALo(13,"number"),M.qZA()()),2&V){const z=Q.$implicit;M.xp6(2),M.Q6J("src",z.logo,M.LSH),M.xp6(2),M.Oqu(z.Name),M.xp6(2),M.Oqu(M.lcZ(7,5,z.Products)),M.xp6(3),M.Oqu(M.lcZ(10,7,z.Order)),M.xp6(3),M.Oqu(M.lcZ(13,9,z.Amount))}}L.\u0275fac=function(Q){return new(Q||L)},L.\u0275pipe=M.Yjl({name:"sum",type:L,pure:!0});const u=function(V){return{"border-color":V}};function H(V,Q){if(1&V&&(M.TgZ(0,"tr",45)(1,"td",46),M._UZ(2,"img",40),M.qZA(),M.TgZ(3,"td",47)(4,"a",48),M._uU(5,"Seller Center"),M.qZA()(),M.TgZ(6,"td",47)(7,"a",49),M._uU(8,"Chat"),M.qZA()(),M.TgZ(9,"td",47)(10,"a",48),M._uU(11,"Campaign"),M.qZA()()()),2&V){const z=Q.$implicit,E=Q.index,j=M.oxw(2);M.Q6J("ngStyle",M.VKq(11,u,j.channelShortcut.length-1==E?"white":"")),M.xp6(2),M.Q6J("src",z.logo,M.LSH),M.xp6(2),M.Tol(z.class),M.Q6J("href",z.sellerCenter,M.LSH),M.xp6(3),M.Tol(z.class),M.Q6J("href",z.chat,M.LSH),M.xp6(3),M.Tol(z.class),M.Q6J("href",z.campaign,M.LSH)}}function D(V,Q){if(1&V){const z=M.EpF();M.ynx(0),M.TgZ(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div",14)(6,"h1",15),M._uU(7,"Daily Sales"),M.qZA()(),M.TgZ(8,"div",16),M._UZ(9,"highcharts-chart",17),M.qZA()()()(),M.TgZ(10,"div",11)(11,"div",12)(12,"div",13)(13,"div",14)(14,"h1",15),M._uU(15),M.qZA()(),M.TgZ(16,"div",16),M._UZ(17,"highcharts-chart",17),M.qZA()()()()(),M.TgZ(18,"div",18)(19,"div",19)(20,"div",12)(21,"div",20)(22,"h1",21),M._uU(23),M.qZA()(),M.TgZ(24,"div",13)(25,"div",22)(26,"table",23),M.NdJ("matSortChange",function(j){const J=M.CHM(z).ngIf,ot=M.oxw();return M.KtG(ot.onSort(j,J))}),M.TgZ(27,"thead")(28,"tr",24),M._UZ(29,"th",25),M.TgZ(30,"th",26),M._uU(31,"Store Name"),M.qZA(),M.TgZ(32,"th",27)(33,"span",28),M._uU(34,"Products"),M.qZA()(),M.TgZ(35,"th",29),M._uU(36,"Order "),M.qZA(),M.TgZ(37,"th",30),M._uU(38,"Amount "),M.qZA()()(),M.TgZ(39,"tbody"),M.YNc(40,S,14,11,"tr",31),M.qZA(),M.TgZ(41,"tfoot")(42,"tr",32),M._UZ(43,"td",33),M.TgZ(44,"td",34),M._uU(45,"Total"),M.qZA(),M.TgZ(46,"td",35),M._uU(47),M.ALo(48,"number"),M.ALo(49,"sum"),M.qZA(),M.TgZ(50,"td",35),M._uU(51),M.ALo(52,"number"),M.ALo(53,"sum"),M.qZA(),M.TgZ(54,"td",35),M._uU(55),M.ALo(56,"number"),M.ALo(57,"sum"),M.qZA()()()()()()()(),M.TgZ(58,"div",36)(59,"div",12)(60,"div",20)(61,"h1",21),M._uU(62,"Seller Center Shortcut"),M.qZA()(),M.TgZ(63,"div",13)(64,"div",22)(65,"table",37)(66,"tbody"),M.YNc(67,H,12,13,"tr",38),M.qZA()()()()()()(),M.BQk()}if(2&V){const z=Q.ngIf,E=M.oxw();M.xp6(9),M.Q6J("Highcharts",E.Highcharts)("options",z.lineChartOptions),M.xp6(6),M.hij("Order Count (",E.dateTitle,")"),M.xp6(2),M.Q6J("Highcharts",E.Highcharts)("options",z.pieChartOptions),M.xp6(6),M.hij("Channel Sales (",E.dateTitle,")"),M.xp6(17),M.Q6J("ngForOf",z.PerformanceChannel),M.xp6(7),M.Oqu(M.lcZ(48,11,M.xi3(49,13,z.PerformanceChannel,"Products"))),M.xp6(4),M.hij("",M.lcZ(52,16,M.xi3(53,18,z.PerformanceChannel,"Order"))," "),M.xp6(4),M.hij("",M.lcZ(56,21,M.xi3(57,23,z.PerformanceChannel,"Amount"))," "),M.xp6(12),M.Q6J("ngForOf",E.channelShortcut)}}const W=function(){return["Week","Month"]};class X{constructor(Q,z){this.dashboardService=Q,this.datePipe=z,this.Highcharts=At,this.filter={range:0,type:null},this.channelType=G.x,this.channelShortcut=Q.getChannelShortcuts(),this.channelOptions=structuredClone(this.channelShortcut),this.filter.range="Week"}ngOnInit(){this.initDashboardData()}initDashboardData(){this.dashboardData$=this.dashboardService.getDashboardData(this.filter).pipe((0,ct.d)(),(0,U.U)(Q=>(Q.PerformanceChannel=Q.PerformanceChannel.map(z=>(z.logo=F.g.getChannelLogoByTypeId(z.TypeID),z)),this.performanceChannelSource=JSON.parse(JSON.stringify(Q.PerformanceChannel)),Q.PerformanceChannel=this.sorting(Q.PerformanceChannel,"Amount","desc"),this.filterChannelShortcut(Q.PerformanceChannel),this.generateDateTitle(),Q)))}generateDateTitle(){const Q=new Date,z=this.datePipe.transform(Q,"dd MMMM"),E=new Date;let j;E.setDate("Week"==this.filter?E.getDate()-6:E.getDate()-30),j=E.getMonth()==Q.getMonth()?this.datePipe.transform(E,"dd"):this.datePipe.transform(E,"dd MMMM"),this.dateTitle=`${j}-${z}`}filterChannelShortcut(Q){const z=this.dashboardService.getChannelShortcuts(),E=Q.filter((j,K,J)=>J.findIndex(ot=>ot.TypeID==j.TypeID)===K);this.channelShortcut=z.filter(j=>-1!==E.findIndex(K=>K.TypeID==j.typeId))}sorting(Q,z,E){return Q.sort((j,K)=>F.g.compare(j[z],K[z],"asc"==E))}onFilter(){this.initDashboardData()}onSort(Q,z){z.PerformanceChannel=Q.active&&""!==Q.direction?z.PerformanceChannel.sort((E,j)=>{const K="asc"===Q.direction;switch(Q.active){case"Products":return F.g.compare(E.Products,j.Products,K);case"Order":return F.g.compare(E.Order,j.Order,K);case"Amount":return F.g.compare(E.Amount,j.Amount,K);default:return 0}}):JSON.parse(JSON.stringify(this.performanceChannelSource))}}X.\u0275fac=function(Q){return new(Q||X)(M.Y36($),M.Y36(wt.uU))},X.\u0275cmp=M.Xpm({type:X,selectors:[["app-dashboard"]],decls:16,vars:10,consts:[["headerTitle","Dashboard",3,"hideSearchBox","onSubmit"],["container",""],[1,"mb-3","fw-normal"],["bindLabel","Name","name","channelid","bindValue","ID",1,"center-text",3,"items","ngModel","ngModelChange"],["bindLabel","name","name","channel","bindValue","typeId","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],[1,"container-fluid"],[4,"ngIf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[1,"row","mt-6"],[1,"col-6"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-start"],[1,"card-title","ms-4","mt-6"],[1,"mt-5"],[2,"display","block","width","100%","height","100%",3,"Highcharts","options"],[1,"row"],[1,"col-8"],[1,"d-flex","justify-content-start","border-bottom"],[1,"card-title","my-6","ms-10"],[1,"table-responsive","mt-2"],["matSort","",1,"table",3,"matSortChange"],[1,"table-light",2,"border","none !important"],[2,"width","10px"],[2,"width","200px","padding-left","0px"],["arrowPosition","before","mat-sort-header","Products",1,"text-end",2,"width","70px"],["matTooltip","Number of SKUs that have been mapped between omni and POS","matTooltipPosition","above"],["arrowPosition","before","mat-sort-header","Order",1,"text-end",2,"width","70px"],["arrowPosition","before","mat-sort-header","Amount",1,"text-end",2,"width","70px"],["class","py-4",4,"ngFor","ngForOf"],[1,"fw-bold","fs-5","border-bottom-0"],[1,"border-bottom-0",2,"width","10px"],[1,"border-bottom-0",2,"width","210px","padding-left","0px"],[1,"text-end","border-bottom-0"],[1,"col-4"],[1,"table"],[3,"ngStyle",4,"ngFor","ngForOf"],[1,"py-4"],["alt","",2,"width","25px",3,"src"],[2,"width","210px","padding-left","0px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","115px"],[1,"text-end",2,"width","70px"],[3,"ngStyle"],[1,"text-end",2,"width","45px"],[1,"text-center"],["role","button","target","_blank","type","button",1,"btn","btn-sm","rounded",3,"href"],["role","button","type","button","target","_blank",1,"btn","btn-sm","rounded",3,"href"]],template:function(Q,z){1&Q&&(M.TgZ(0,"mainpanel",0),M.NdJ("onSubmit",function(){return z.onFilter()}),M.TgZ(1,"filters")(2,"div",1)(3,"div")(4,"h5",2),M._uU(5,"Select a Period"),M.qZA(),M.TgZ(6,"ng-select",3),M.NdJ("ngModelChange",function(j){return z.filter.range=j}),M.qZA()(),M.TgZ(7,"div")(8,"h5",2),M._uU(9,"Type"),M.qZA(),M.TgZ(10,"ng-select",4),M.NdJ("ngModelChange",function(j){return z.filter.type=j}),M.YNc(11,n,3,2,"ng-template",5),M.qZA()()()(),M.TgZ(12,"content")(13,"div",6),M.YNc(14,D,68,26,"ng-container",7),M.ALo(15,"async"),M.qZA()()()),2&Q&&(M.Q6J("hideSearchBox",!0),M.xp6(6),M.Q6J("items",M.DdM(9,W))("ngModel",z.filter.range),M.xp6(4),M.Q6J("clearable",!0)("items",z.channelOptions)("ngModel",z.filter.type),M.xp6(4),M.Q6J("ngIf",M.lcZ(15,7,z.dashboardData$)))},dependencies:[wt.sg,wt.O5,wt.PC,N.p,_.JJ,_.On,O,f.w9,f.ir,s,l,I.gM,wt.Ov,wt.JJ,L],styles:[".btn-shopee[_ngcontent-%COMP%]{background-color:#ee4d2d;color:#fff}.btn-lazada[_ngcontent-%COMP%]{background-color:#ff00b2;color:#fff}.btn-tokopedia[_ngcontent-%COMP%]{background-color:var(--G500, #03AC0E);color:#fff}.btn-tiktok[_ngcontent-%COMP%]{background-color:#000;color:#fff}.btn-woocommerce[_ngcontent-%COMP%]{background-color:#674399;color:#fff}.btn-kalcare[_ngcontent-%COMP%]{background-color:#80bc00;color:#fff}.btn-sm[_ngcontent-%COMP%]{font-size:12px!important}.card-title[_ngcontent-%COMP%]{font-weight:300;color:#4d4d4d;margin:0}.card.shortcut[_ngcontent-%COMP%]{margin-bottom:10px!important}"]});var Z=vt(284);class q{}q.\u0275fac=function(Q){return new(Q||q)},q.\u0275mod=M.oAB({type:q}),q.\u0275inj=M.cJS({providers:[L],imports:[wt.ez]});var st=vt(1108);const nt=[{path:"",component:X}];class rt{}rt.\u0275fac=function(Q){return new(Q||rt)},rt.\u0275mod=M.oAB({type:rt}),rt.\u0275inj=M.cJS({providers:[$],imports:[wt.ez,Z.Bz.forChild(nt),N.R,_.u5,g,f.A0,q,st.f,P,I.AV]})},3470:function(Ot,bt,vt){var wt,At,ct;At=typeof window<"u"?window:this,ct=function(At){function ct(G,F,M,it){G.hasOwnProperty(F)||(G[F]=it.apply(null,M),"function"==typeof CustomEvent&&At.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:F,module:G[F]}})))}var U={};return ct(U,"Core/Globals.js",[],function(){var G,F;return(F=G||(G={})).SVG_NS="http://www.w3.org/2000/svg",F.product="Highcharts",F.version="10.3.3",F.win=typeof At<"u"?At:{},F.doc=F.win.document,F.svg=F.doc&&F.doc.createElementNS&&!!F.doc.createElementNS(F.SVG_NS,"svg").createSVGRect,F.userAgent=F.win.navigator&&F.win.navigator.userAgent||"",F.isChrome=-1!==F.userAgent.indexOf("Chrome"),F.isFirefox=-1!==F.userAgent.indexOf("Firefox"),F.isMS=/(edge|msie|trident)/i.test(F.userAgent)&&!F.win.opera,F.isSafari=!F.isChrome&&-1!==F.userAgent.indexOf("Safari"),F.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(F.userAgent),F.isWebKit=-1!==F.userAgent.indexOf("AppleWebKit"),F.deg2rad=2*Math.PI/360,F.hasBidiBug=F.isFirefox&&4>parseInt(F.userAgent.split("Firefox/")[1],10),F.hasTouch=!!F.win.TouchEvent,F.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],F.noop=function(){},F.supportsPassiveEvents=function(){var M=!1;if(!F.isMS){var it=Object.defineProperty({},"passive",{get:function(){M=!0}});F.win.addEventListener&&F.win.removeEventListener&&(F.win.addEventListener("testPassive",F.noop,it),F.win.removeEventListener("testPassive",F.noop,it))}return M}(),F.charts=[],F.dateFormats={},F.seriesTypes={},F.symbolSizes={},F.chartCount=0,G}),ct(U,"Core/Utilities.js",[U["Core/Globals.js"]],function(G){function F(i,s,d,a){var m=s?"Highcharts error":"Highcharts warning";32===i&&(i=m+": Deprecated member");var b=O(i),Y=b?m+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(typeof a<"u"){var B="";b&&(Y+="?"),T(a,function(e,l){B+="\n - ".concat(l,": ").concat(e),b&&(Y+=encodeURI(l)+"="+encodeURI(e))}),Y+=B}k(G,"displayError",{chart:d,code:i,message:Y,params:a},function(){if(s)throw Error(Y);o.console&&-1===F.messages.indexOf(Y)&&console.warn(Y)}),F.messages.push(Y)}function it(i,s){return parseInt(i,s||10)}function et(i){return"string"==typeof i}function tt(i){return"[object Array]"===(i=Object.prototype.toString.call(i))||"[object Array Iterator]"===i}function $(i,s){return!(!i||"object"!=typeof i||s&&tt(i))}function N(i){return $(i)&&"number"==typeof i.nodeType}function _(i){var s=i&&i.constructor;return!(!$(i,!0)||N(i)||!s||!s.name||"Object"===s.name)}function O(i){return"number"==typeof i&&!isNaN(i)&&1/0>i&&-1/0<i}function g(i){return typeof i<"u"&&null!==i}function f(i,s,d){var m,a=et(s)&&!g(d),b=function(Y,B){g(Y)?i.setAttribute(B,Y):a?(m=i.getAttribute(B))||"class"!==B||(m=i.getAttribute(B+"Name")):i.removeAttribute(B)};return et(s)?b(d,s):T(s,b),m}function y(i,s){var d;for(d in i||(i={}),s)i[d]=s[d];return i}function C(){for(var i=arguments,s=i.length,d=0;d<s;d++){var a=i[d];if(typeof a<"u"&&null!==a)return a}}function v(i,s){G.isMS&&!G.svg&&s&&g(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),y(i.style,s)}function x(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function w(i,s){return 1e14<i?i:parseFloat(i.toPrecision(s||14))}function T(i,s,d){for(var a in i)Object.hasOwnProperty.call(i,a)&&s.call(d||i[a],i[a],a,i)}function R(i,s,d){function a(B,e){var l=i.removeEventListener||G.removeEventListenerPolyfill;l&&l.call(i,B,e,!1)}function m(B){var e;if(i.nodeName){if(s){var l={};l[s]=!0}else l=B;T(l,function(P,I){if(B[I])for(e=B[I].length;e--;)a(I,B[I][e].fn)})}}var b="function"==typeof i&&i.prototype||i;if(Object.hasOwnProperty.call(b,"hcEvents")){var Y=b.hcEvents;s?(b=Y[s]||[],d?(Y[s]=b.filter(function(B){return d!==B.fn}),a(s,d)):(m(Y),Y[s]=[])):(m(Y),delete b.hcEvents)}}function k(i,s,d,a){if(d=d||{},p.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==G)){var m=p.createEvent("Events");m.initEvent(s,!0,!0),d=y(m,d),i.dispatchEvent?i.dispatchEvent(d):i.fireEvent(s,d)}else if(i.hcEvents){d.target||y(d,{preventDefault:function(){d.defaultPrevented=!0},target:i,type:s}),m=[];for(var b=i,Y=!1;b.hcEvents;)Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents[s]&&(m.length&&(Y=!0),m.unshift.apply(m,b.hcEvents[s])),b=Object.getPrototypeOf(b);Y&&m.sort(function(B,e){return B.order-e.order}),m.forEach(function(B){!1===B.fn.call(i,d)&&d.preventDefault()})}a&&!d.defaultPrevented&&a.call(i,d)}var r=G.charts,p=G.doc,o=G.win;(F||(F={})).messages=[],Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var h=Array.prototype.find?function(i,s){return i.find(s)}:function(i,s){var d,a=i.length;for(d=0;d<a;d++)if(s(i[d],d))return i[d]};T({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,s){G[s]=function(d){var a;return F(32,!1,void 0,((a={})["Highcharts.".concat(s)]="use Array.".concat(i),a)),Array.prototype[i].apply(d,[].slice.call(arguments,1))}});var t,i,s,c=(i=Math.random().toString(36).substring(2,9)+"-",s=0,function(){return"highcharts-"+(t?"":i)+s++});return o.jQuery&&(o.jQuery.fn.highcharts=function(){var i=[].slice.call(arguments);if(this[0])return i[0]?(new(G[et(i[0])?i.shift():"Chart"])(this[0],i[0],i[1]),this):r[f(this[0],"data-highcharts-chart")]}),h={addEvent:function(i,s,d,a){void 0===a&&(a={});var m="function"==typeof i&&i.prototype||i;Object.hasOwnProperty.call(m,"hcEvents")||(m.hcEvents={}),m=m.hcEvents,G.Point&&i instanceof G.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var b=i.addEventListener||G.addEventListenerPolyfill;return b&&b.call(i,s,d,!!G.supportsPassiveEvents&&{passive:void 0===a.passive?-1!==s.indexOf("touch"):a.passive,capture:!1}),m[s]||(m[s]=[]),m[s].push({fn:d,order:"number"==typeof a.order?a.order:1/0}),m[s].sort(function(Y,B){return Y.order-B.order}),function(){R(i,s,d)}},arrayMax:function(i){for(var s=i.length,d=i[0];s--;)i[s]>d&&(d=i[s]);return d},arrayMin:function(i){for(var s=i.length,d=i[0];s--;)i[s]<d&&(d=i[s]);return d},attr:f,clamp:function(i,s,d){return i>s?i<d?i:d:s},cleanRecursively:function M(i,s){var d={};return T(i,function(a,m){$(i[m],!0)&&!i.nodeType&&s[m]?(a=M(i[m],s[m]),Object.keys(a).length&&(d[m]=a)):($(i[m])||i[m]!==s[m]||m in i&&!(m in s))&&(d[m]=i[m])}),d},clearTimeout:function(i){g(i)&&clearTimeout(i)},correctFloat:w,createElement:function(i,s,d,a,m){return i=p.createElement(i),s&&y(i,s),m&&v(i,{padding:"0",border:"none",margin:"0"}),d&&v(i,d),a&&a.appendChild(i),i},css:v,defined:g,destroyObjectProperties:function(i,s){T(i,function(d,a){d&&d!==s&&d.destroy&&d.destroy(),delete i[a]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,s){for(var d=i.length;d--;)if(i[d]===s){i.splice(d,1);break}},error:F,extend:y,extendClass:function(i,s){var d=function(){};return y(d.prototype=new i,s),d},find:h,fireEvent:k,getMagnitude:x,getNestedProperty:function(i,s){for(i=i.split(".");i.length&&g(s);){var d=i.shift();if(typeof d>"u"||"__proto__"===d||!g(s=s[d])||"function"==typeof s||"number"==typeof s.nodeType||s===o)return}return s},getStyle:function A(i,s,d){var a=G.getStyle||A;if("width"===s)return s=Math.min(i.offsetWidth,i.scrollWidth),(d=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&d>=s-1&&(s=Math.floor(d)),Math.max(0,s-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if("height"===s)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(o.getComputedStyle||F(27,!0),i=o.getComputedStyle(i,void 0)){var m=i.getPropertyValue(s);C(d,"opacity"!==s)&&(m=it(m))}return m},inArray:function(i,s,d){return F(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(i,d)},isArray:tt,isClass:_,isDOMElement:N,isFunction:function(i){return"function"==typeof i},isNumber:O,isObject:$,isString:et,keys:function(i){return F(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,s=arguments,d={},a=function(b,Y){return"object"!=typeof b&&(b={}),T(Y,function(B,e){"__proto__"!==e&&"constructor"!==e&&(b[e]=!$(B,!0)||_(B)||N(B)?Y[e]:a(b[e]||{},B))}),b};!0===s[0]&&(d=s[1],s=Array.prototype.slice.call(s,2));var m=s.length;for(i=0;i<m;i++)d=a(d,s[i]);return d},normalizeTickInterval:function(i,s,d,a,m){var b=i,Y=i/(d=C(d,x(i)));for(s||(s=m?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===a&&(1===d?s=s.filter(function(B){return B%1==0}):.1>=d&&(s=[1/d]))),a=0;a<s.length&&(b=s[a],!(m&&b*d>=i||!m&&Y<=(s[a]+(s[a+1]||s[a]))/2));a++);return w(b*d,-Math.round(Math.log(.001)/Math.LN10))},objectEach:T,offset:function(i){var s=p.documentElement;return{top:(i=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(o.pageYOffset||s.scrollTop)-(s.clientTop||0),left:i.left+(o.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:i.width,height:i.height}},pad:function(i,s,d){return Array((s||2)+1-String(i).replace("-","").length).join(d||"0")+i},pick:C,pInt:it,relativeLength:function(i,s,d){return/%$/.test(i)?s*parseFloat(i)/100+(d||0):parseFloat(i)},removeEvent:R,splat:function(i){return tt(i)?i:[i]},stableSort:function(i,s){var a,m,d=i.length;for(m=0;m<d;m++)i[m].safeI=m;for(i.sort(function(b,Y){return 0===(a=s(b,Y))?b.safeI-Y.safeI:a}),m=0;m<d;m++)delete i[m].safeI},syncTimeout:function(i,s,d){return 0<s?setTimeout(i,s,d):(i.call(0,d),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:c,useSerialIds:function(i){return t=C(i,t)},wrap:function(i,s,d){var a=i[s];i[s]=function(){var m=arguments,b=this;return d.apply(this,[function(){return a.apply(b,arguments.length?arguments:m)}].concat([].slice.call(arguments)))}}},h}),ct(U,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),ct(U,"Core/Color/Color.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=F.isNumber,it=F.merge,et=F.pInt;return function(){function tt($){this.rgba=[NaN,NaN,NaN,NaN],this.input=$;var N=G.Color;return N&&N!==tt?new N($):this instanceof tt?void this.init($):new tt($)}return tt.parse=function($){return $?new tt($):tt.None},tt.prototype.init=function($){var N;if("object"==typeof $&&typeof $.stops<"u")this.stops=$.stops.map(function(f){return new tt(f[1])});else if("string"==typeof $){if(this.input=$=tt.names[$.toLowerCase()]||$,"#"===$.charAt(0)){var _=$.length,O=parseInt($.substr(1),16);7===_?N=[(16711680&O)>>16,(65280&O)>>8,255&O,1]:4===_&&(N=[(3840&O)>>4|(3840&O)>>8,(240&O)>>4|240&O,(15&O)<<4|15&O,1])}if(!N)for(O=tt.parsers.length;O--&&!N;){var g=tt.parsers[O];(_=g.regex.exec($))&&(N=g.parse(_))}}N&&(this.rgba=N)},tt.prototype.get=function($){var N=this.input,_=this.rgba;if("object"==typeof N&&typeof this.stops<"u"){var O=it(N);return O.stops=[].slice.call(O.stops),this.stops.forEach(function(g,f){O.stops[f]=[O.stops[f][0],g.get($)]}),O}return _&&M(_[0])?"rgb"===$||!$&&1===_[3]?"rgb("+_[0]+","+_[1]+","+_[2]+")":"a"===$?"".concat(_[3]):"rgba("+_.join(",")+")":N},tt.prototype.brighten=function($){var N=this.rgba;if(this.stops)this.stops.forEach(function(O){O.brighten($)});else if(M($)&&0!==$)for(var _=0;3>_;_++)N[_]+=et(255*$),0>N[_]&&(N[_]=0),255<N[_]&&(N[_]=255);return this},tt.prototype.setOpacity=function($){return this.rgba[3]=$,this},tt.prototype.tweenTo=function($,N){var _=this.rgba,O=$.rgba;return M(_[0])&&M(O[0])?(($=1!==O[3]||1!==_[3])?"rgba(":"rgb(")+Math.round(O[0]+(_[0]-O[0])*(1-N))+","+Math.round(O[1]+(_[1]-O[1])*(1-N))+","+Math.round(O[2]+(_[2]-O[2])*(1-N))+($?","+(O[3]+(_[3]-O[3])*(1-N)):"")+")":$.input||"none"},tt.names={white:"#ffffff",black:"#000000"},tt.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function($){return[et($[1]),et($[2]),et($[3]),parseFloat($[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function($){return[et($[1]),et($[2]),et($[3]),1]}}],tt.None=new tt(""),tt}()}),ct(U,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),ct(U,"Core/Time.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=G.win,it=F.defined,et=F.error,tt=F.extend,$=F.isObject,N=F.merge,_=F.objectEach,O=F.pad,g=F.pick,f=F.splat,y=F.timeUnits,C=G.isSafari&&M.Intl&&M.Intl.DateTimeFormat.prototype.formatRange,v=G.isSafari&&M.Intl&&!M.Intl.DateTimeFormat.prototype.formatRange;return F=function(){function x(w){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=M.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(w)}return x.prototype.get=function(w,A){if(this.variableTimezone||this.timezoneOffset){var T=A.getTime(),R=T-this.getTimezoneOffset(A);return A.setTime(R),w=A["getUTC"+w](),A.setTime(T),w}return this.useUTC?A["getUTC"+w]():A["get"+w]()},x.prototype.set=function(w,A,T){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===w||"Seconds"===w||"Minutes"===w&&this.getTimezoneOffset(A)%36e5==0)return A["setUTC"+w](T);var R=this.getTimezoneOffset(A);return R=A.getTime()-R,A.setTime(R),A["setUTC"+w](T),w=this.getTimezoneOffset(A),R=A.getTime()+w,A.setTime(R)}return this.useUTC||C&&"FullYear"===w?A["setUTC"+w](T):A["set"+w](T)},x.prototype.update=function(w){void 0===w&&(w={});var A=g(w.useUTC,!0);this.options=w=N(!0,this.options,w),this.Date=w.Date||M.Date||Date,this.timezoneOffset=(this.useUTC=A)&&w.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=A&&!(!w.getTimezoneOffset&&!w.timezone)},x.prototype.makeTime=function(w,A,T,R,k,r){if(this.useUTC){var p=this.Date.UTC.apply(0,arguments),o=this.getTimezoneOffset(p),h=this.getTimezoneOffset(p+=o);o!==h?p+=h-o:o-36e5!==this.getTimezoneOffset(p-36e5)||v||(p-=36e5)}else p=new this.Date(w,A,g(T,1),g(R,0),g(k,0),g(r,0)).getTime();return p},x.prototype.timezoneOffsetFunction=function(){var w=this,A=this.options,T=A.getTimezoneOffset,R=A.moment||M.moment;if(!this.useUTC)return function(k){return 6e4*new Date(k.toString()).getTimezoneOffset()};if(A.timezone){if(R)return function(k){return 6e4*-R.tz(k,A.timezone).utcOffset()};et(25)}return this.useUTC&&T?function(k){return 6e4*T(k.valueOf())}:function(){return 6e4*(w.timezoneOffset||0)}},x.prototype.dateFormat=function(w,A,T){if(!it(A)||isNaN(A))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";w=g(w,"%Y-%m-%d %H:%M:%S");var R=this,k=new this.Date(A),r=this.get("Hours",k),p=this.get("Day",k),o=this.get("Date",k),h=this.get("Month",k),t=this.get("FullYear",k),c=G.defaultOptions.lang,i=c&&c.weekdays,s=c&&c.shortWeekdays;return k=tt({a:s?s[p]:i[p].substr(0,3),A:i[p],d:O(o),e:O(o,2," "),w:p,b:c.shortMonths[h],B:c.months[h],m:O(h+1),o:h+1,y:t.toString().substr(2,2),Y:t,H:O(r),k:r,I:O(r%12||12),l:r%12||12,M:O(this.get("Minutes",k)),p:12>r?"AM":"PM",P:12>r?"am":"pm",S:O(k.getSeconds()),L:O(Math.floor(A%1e3),3)},G.dateFormats),_(k,function(d,a){for(;-1!==w.indexOf("%"+a);)w=w.replace("%"+a,"function"==typeof d?d.call(R,A):d)}),T?w.substr(0,1).toUpperCase()+w.substr(1):w},x.prototype.resolveDTLFormat=function(w){return $(w,!0)?w:{main:(w=f(w))[0],from:w[1],to:w[2]}},x.prototype.getTimeTicks=function(w,A,T,R){var c,k=this,r=[],p={},o=new k.Date(A),h=w.unitRange,t=w.count||1;if(R=g(R,1),it(A)){if(k.set("Milliseconds",o,h>=y.second?0:t*Math.floor(k.get("Milliseconds",o)/t)),h>=y.second&&k.set("Seconds",o,h>=y.minute?0:t*Math.floor(k.get("Seconds",o)/t)),h>=y.minute&&k.set("Minutes",o,h>=y.hour?0:t*Math.floor(k.get("Minutes",o)/t)),h>=y.hour&&k.set("Hours",o,h>=y.day?0:t*Math.floor(k.get("Hours",o)/t)),h>=y.day&&k.set("Date",o,h>=y.month?1:Math.max(1,t*Math.floor(k.get("Date",o)/t))),h>=y.month){k.set("Month",o,h>=y.year?0:t*Math.floor(k.get("Month",o)/t));var i=k.get("FullYear",o)}h>=y.year&&k.set("FullYear",o,i-i%t),h===y.week&&(i=k.get("Day",o),k.set("Date",o,k.get("Date",o)-i+R+(i<R?-7:0))),i=k.get("FullYear",o),R=k.get("Month",o);var s=k.get("Date",o),d=k.get("Hours",o);for(A=o.getTime(),!k.variableTimezone&&k.useUTC||!it(T)||(c=T-A>4*y.month||k.getTimezoneOffset(A)!==k.getTimezoneOffset(T)),A=o.getTime(),o=1;A<T;)r.push(A),A=h===y.year?k.makeTime(i+o*t,0):h===y.month?k.makeTime(i,R+o*t):!c||h!==y.day&&h!==y.week?c&&h===y.hour&&1<t?k.makeTime(i,R,s,d+o*t):A+h*t:k.makeTime(i,R,s+o*t*(h===y.day?1:7)),o++;r.push(A),h<=y.hour&&1e4>r.length&&r.forEach(function(a){a%18e5==0&&"000000000"===k.dateFormat("%H%M%S%L",a)&&(p[a]="day")})}return r.info=tt(w,{higherRanks:p,totalRange:h*t}),r},x.prototype.getDateFormat=function(w,A,T,R){var k=this.dateFormat("%m-%d %H:%M:%S.%L",A),r={millisecond:15,second:12,minute:9,hour:6,day:3},p="millisecond";for(o in y){if(w===y.week&&+this.dateFormat("%w",A)===T&&"00:00:00.000"===k.substr(6)){var o="week";break}if(y[o]>w){o=p;break}if(r[o]&&k.substr(r[o])!=="01-01 00:00:00.000".substr(r[o]))break;"week"!==o&&(p=o)}return this.resolveDTLFormat(R[o]).main},x}(),F}),ct(U,"Core/Defaults.js",[U["Core/Chart/ChartDefaults.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Color/Palettes.js"],U["Core/Time.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt){F=F.parse;var $=tt.merge,N={colors:it.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:M.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:M.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:F("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};N.chart.styledMode=!1;var _=new et($(N.global,N.time));return{defaultOptions:N,defaultTime:_,getOptions:function(){return N},setOptions:function(O){return $(!0,N,O),(O.time||O.global)&&(M.time?M.time.update($(N.global,N.time,O.global,O.time)):M.time=_),N}}}),ct(U,"Core/Animation/Fx.js",[U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var it=G.parse,et=F.win,tt=M.isNumber,$=M.objectEach;return function(){function N(_,O,g){this.pos=NaN,this.options=O,this.elem=_,this.prop=g}return N.prototype.dSetter=function(){var _=this.paths,O=_&&_[0];_=_&&_[1];var g=this.now||0,f=[];if(1!==g&&O&&_)if(O.length===_.length&&1>g)for(var y=0;y<_.length;y++){for(var C=O[y],v=_[y],x=[],w=0;w<v.length;w++){var A=C[w],T=v[w];x[w]=tt(A)&&tt(T)&&("A"!==v[0]||4!==w&&5!==w)?A+g*(T-A):T}f.push(x)}else f=_;else f=this.toD||[];this.elem.attr("d",f,void 0,!0)},N.prototype.update=function(){var _=this.elem,O=this.prop,g=this.now,f=this.options.step;this[O+"Setter"]?this[O+"Setter"]():_.attr?_.element&&_.attr(O,g,null,!0):_.style[O]=g+this.unit,f&&f.call(_,g,this)},N.prototype.run=function(_,O,g){var f=this,y=f.options,C=function(w){return!C.stopped&&f.step(w)},v=et.requestAnimationFrame||function(w){setTimeout(w,13)},x=function(){for(var w=0;w<N.timers.length;w++)N.timers[w]()||N.timers.splice(w--,1);N.timers.length&&v(x)};_!==O||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=_,this.end=O,this.unit=g,this.now=this.start,this.pos=0,C.elem=this.elem,C.prop=this.prop,C()&&1===N.timers.push(C)&&v(x)):(delete y.curAnim[this.prop],y.complete&&0===Object.keys(y.curAnim).length&&y.complete.call(this.elem))},N.prototype.step=function(_){var O=+new Date,g=this.options,f=this.elem,y=g.complete,C=g.duration,v=g.curAnim;if(f.attr&&!f.element)_=!1;else if(_||O>=C+this.startTime){this.now=this.end,this.pos=1,this.update();var x=v[this.prop]=!0;$(v,function(w){!0!==w&&(x=!1)}),x&&y&&y.call(f),_=!1}else this.pos=g.easing((O-this.startTime)/C),this.now=this.start+(this.end-this.start)*this.pos,this.update(),_=!0;return _},N.prototype.initPath=function(_,O,g){function f(k,r){for(;k.length<R;){var p=k[0],o=r[R-k.length];o&&"M"===p[0]&&(k[0]="C"===o[0]?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),k.unshift(p),x&&(p=k.pop(),k.push(k[k.length-1],p))}}function y(k,r){for(;k.length<R;)if("C"===(r=k[Math.floor(k.length/w)-1].slice())[0]&&(r[1]=r[5],r[2]=r[6]),x){var p=k[Math.floor(k.length/w)].slice();k.splice(k.length/2,0,r,p)}else k.push(r)}var C=_.startX,v=_.endX;g=g.slice();var x=_.isArea,w=x?2:1;if(!(O=O&&O.slice()))return[g,g];if(C&&v&&v.length){for(_=0;_<C.length;_++){if(C[_]===v[0]){var A=_;break}if(C[0]===v[v.length-C.length+_]){A=_;var T=!0;break}if(C[C.length-1]===v[v.length-C.length+_]){A=C.length-_;break}}typeof A>"u"&&(O=[])}if(O.length&&tt(A)){var R=g.length+A*w;T?(f(O,g),y(g,O)):(f(g,O),y(O,g))}return[O,g]},N.prototype.fillSetter=function(){N.prototype.strokeSetter.apply(this,arguments)},N.prototype.strokeSetter=function(){this.elem.attr(this.prop,it(this.start).tweenTo(it(this.end),this.pos),void 0,!0)},N.timers=[],N}()}),ct(U,"Core/Animation/AnimationUtilities.js",[U["Core/Animation/Fx.js"],U["Core/Utilities.js"]],function(G,F){function M(y){return _(y)?O({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function it(y,C){for(var v=G.timers.length;v--;)G.timers[v].elem!==y||C&&C!==G.timers[v].prop||(G.timers[v].stopped=!0)}var et=F.defined,tt=F.getStyle,$=F.isArray,N=F.isNumber,_=F.isObject,O=F.merge,g=F.objectEach,f=F.pick;return{animate:function(y,C,v){var x,A,T,w="";if(!_(v)){var R=arguments;v={duration:R[2],easing:R[3],complete:R[4]}}N(v.duration)||(v.duration=400),v.easing="function"==typeof v.easing?v.easing:Math[v.easing]||Math.easeInOutSine,v.curAnim=O(C),g(C,function(k,r){it(y,r),T=new G(y,v,r),A=void 0,"d"===r&&$(C.d)?(T.paths=T.initPath(y,y.pathArray,C.d),T.toD=C.d,x=0,A=1):y.attr?x=y.attr(r):(x=parseFloat(tt(y,r))||0,"opacity"!==r&&(w="px")),A||(A=k),"string"==typeof A&&A.match("px")&&(A=A.replace(/px/g,"")),T.run(x,A,w)})},animObject:M,getDeferredAnimation:function(y,C,v){var x=M(C),w=0,A=0;return(v?[v]:y.series).forEach(function(T){T=M(T.options.animation),w=C&&et(C.defer)?x.defer:Math.max(w,T.duration+T.defer),A=Math.min(x.duration,T.duration)}),y.renderer.forExport&&(w=0),{defer:Math.max(0,w-A),duration:Math.min(w,A)}},setAnimation:function(y,C){C.renderer.globalAnimation=f(y,C.options.chart.animation,!0)},stop:it}}),ct(U,"Core/Renderer/HTML/AST.js",[U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F){var M=G.SVG_NS,it=F.attr,et=F.createElement,tt=F.css,$=F.error,N=F.isFunction,_=F.isString,O=F.objectEach,g=F.splat,f=(F=G.win.trustedTypes)&&N(F.createPolicy)&&F.createPolicy("highcharts",{createHTML:function(v){return v}}),y=f?f.createHTML(""):"";try{var C=!!(new DOMParser).parseFromString(y,"text/html")}catch{C=!1}return function(){function v(x){this.nodes="string"==typeof x?this.parseMarkup(x):x}return v.filterUserAttributes=function(x){return O(x,function(w,A){var T=!0;-1===v.allowedAttributes.indexOf(A)&&(T=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(A)&&(T=_(w)&&v.allowedReferences.some(function(R){return 0===w.indexOf(R)})),T||($(33,!1,void 0,{"Invalid attribute in config":"".concat(A)}),delete x[A]),_(w)&&x[A]&&(x[A]=w.replace(/</g,"<"))}),x},v.parseStyle=function(x){return x.split(";").reduce(function(w,A){var T=(A=A.split(":").map(function(R){return R.trim()})).shift();return T&&A.length&&(w[T.replace(/-([a-z])/g,function(R){return R[1].toUpperCase()})]=A.join(":")),w},{})},v.setElementHTML=function(x,w){x.innerHTML=v.emptyHTML,w&&new v(w).addToDOM(x)},v.prototype.addToDOM=function(x){return function w(A,T){var R;return g(A).forEach(function(k){var r=k.tagName,p=k.textContent?G.doc.createTextNode(k.textContent):void 0,o=v.bypassHTMLFiltering;if(r)if("#text"===r)var h=p;else if(-1!==v.allowedTags.indexOf(r)||o){r=G.doc.createElementNS("svg"===r?M:T.namespaceURI||M,r);var t=k.attributes||{};O(k,function(c,i){"tagName"!==i&&"attributes"!==i&&"children"!==i&&"style"!==i&&"textContent"!==i&&(t[i]=c)}),it(r,o?t:v.filterUserAttributes(t)),k.style&&tt(r,k.style),p&&r.appendChild(p),w(k.children||[],r),h=r}else $(33,!1,void 0,{"Invalid tagName in config":r});h&&T.appendChild(h),R=h}),R}(this.nodes,x)},v.prototype.parseMarkup=function(x){var w=[];if(x=x.trim().replace(/ style=(["'])/g," data-style=$1"),C)x=(new DOMParser).parseFromString(f?f.createHTML(x):x,"text/html");else{var A=et("div");A.innerHTML=x,x={body:A}}var T=function(R,k){var r=R.nodeName.toLowerCase(),p={tagName:r};if("#text"===r&&(p.textContent=R.textContent||""),r=R.attributes){var o={};[].forEach.call(r,function(t){"data-style"===t.name?p.style=v.parseStyle(t.value):o[t.name]=t.value}),p.attributes=o}if(R.childNodes.length){var h=[];[].forEach.call(R.childNodes,function(t){T(t,h)}),h.length&&(p.children=h)}k.push(p)};return[].forEach.call(x.body.childNodes,function(R){return T(R,w)}),w},v.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),v.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),v.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),v.emptyHTML=y,v.bypassHTMLFiltering=!1,v}()}),ct(U,"Core/FormatUtilities.js",[U["Core/Defaults.js"],U["Core/Utilities.js"]],function(G,F){function M(O,g,f,y){g=+g;var C=it.lang,v=((O=+O||0).toString().split(".")[1]||"").split("e")[0].length,x=O.toString().split("e"),w=g;if(-1===g)g=Math.min(v,20);else if($(g)){if(g&&x[1]&&0>x[1]){var A=g+ +x[1];0<=A?(x[0]=(+x[0]).toExponential(A).split("e")[0],g=A):(x[0]=x[0].split(".")[0]||0,O=20>g?(x[0]*Math.pow(10,x[1])).toFixed(g):0,x[1]=0)}}else g=2;A=(Math.abs(x[1]?x[0]:O)+Math.pow(10,-Math.max(g,v)-1)).toFixed(g);var T=3<(v=String(_(A))).length?v.length%3:0;return f=N(f,C.decimalPoint),y=N(y,C.thousandsSep),O=(0>O?"-":"")+(T?v.substr(0,T)+y:""),O=0>+x[1]&&!w?"0":O+v.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+y),g&&(O+=f+A.slice(-g)),x[1]&&0!=+O&&(O+="e"+x[1]),O}var it=G.defaultOptions,et=G.defaultTime,tt=F.getNestedProperty,$=F.isNumber,N=F.pick,_=F.pInt;return{dateFormat:function(O,g,f){return et.dateFormat(O,g,f)},format:function(O,g,f){var y="{",C=!1,v=/f$/,x=/\.([0-9])/,w=it.lang,A=f&&f.time||et;f=f&&f.numberFormatter||M;for(var T=[];O;){var R=O.indexOf(y);if(-1===R)break;var k=O.slice(0,R);if(C){if(k=k.split(":"),y=tt(k.shift()||"",g),k.length&&"number"==typeof y)if(k=k.join(":"),v.test(k)){var r=parseInt((k.match(x)||["","-1"])[1],10);null!==y&&(y=f(y,r,w.decimalPoint,-1<k.indexOf(",")?w.thousandsSep:""))}else y=A.dateFormat(k,y);T.push(y)}else T.push(k);O=O.slice(R+1),y=(C=!C)?"}":"{"}return T.push(O),T.join("")},numberFormat:M}}),ct(U,"Core/Renderer/RendererUtilities.js",[U["Core/Utilities.js"]],function(G){var et,F=G.clamp,M=G.pick,it=G.stableSort;return(et||(et={})).distribute=function $(N,_,O){var v,g=N,f=g.reducedLen||_,y=function(T,R){return(R.rank||0)-(T.rank||0)},C=function(T,R){return T.target-R.target},x=!0,w=[],A=0;for(v=N.length;v--;)A+=N[v].size;if(A>f){for(it(N,y),A=v=0;A<=f;)A+=N[v].size,v++;w=N.splice(v-1,N.length)}for(it(N,C),N=N.map(function(T){return{size:T.size,targets:[T.target],align:M(T.align,.5)}});x;){for(v=N.length;v--;)f=N[v],y=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=F(y-f.size*f.align,0,_-f.size);for(v=N.length,x=!1;v--;)0<v&&N[v-1].pos+N[v-1].size>N[v].pos&&(N[v-1].size+=N[v].size,N[v-1].targets=N[v-1].targets.concat(N[v].targets),N[v-1].align=.5,N[v-1].pos+N[v-1].size>_&&(N[v-1].pos=_-N[v-1].size),N.splice(v,1),x=!0)}return g.push.apply(g,w),v=0,N.some(function(T){var R=0;return(T.targets||[]).some(function(){return g[v].pos=T.pos+R,typeof O<"u"&&Math.abs(g[v].pos-g[v].target)>O?(g.slice(0,v+1).forEach(function(k){return delete k.pos}),g.reducedLen=(g.reducedLen||_)-.1*_,g.reducedLen>.1*_&&$(g,_,O),!0):(R+=g[v].size,v++,!1)})}),it(g,C),g},et}),ct(U,"Core/Renderer/SVG/SVGElement.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M,it){var et=G.animate,tt=G.animObject,$=G.stop,N=M.deg2rad,_=M.doc,O=M.svg,g=M.SVG_NS,f=M.win,y=it.addEvent,C=it.attr,v=it.createElement,x=it.css,w=it.defined,A=it.erase,T=it.extend,R=it.fireEvent,k=it.isArray,r=it.isFunction,p=it.isString,o=it.merge,h=it.objectEach,t=it.pick,c=it.pInt,i=it.syncTimeout,s=it.uniqueKey;return G=function(){function d(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return d.prototype._defaultGetter=function(a){return a=t(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},d.prototype._defaultSetter=function(a,m,b){b.setAttribute(m,a)},d.prototype.add=function(a){var m=this.renderer,b=this.element;if(a&&(this.parentGroup=a),typeof this.textStr<"u"&&"text"===this.element.nodeName&&m.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var Y=this.zIndexSetter();return Y||(a?a.element:m.box).appendChild(b),this.onAdd&&this.onAdd(),this},d.prototype.addClass=function(a,m){var b=m?"":this.attr("class")||"";return(a=(a||"").split(/ /g).reduce(function(Y,B){return-1===b.indexOf(B)&&Y.push(B),Y},b?[b]:[]).join(" "))!==b&&this.attr("class",a),this},d.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},d.prototype.align=function(a,m,b){var l,P,I,Y={},B=this.renderer,e=B.alignedObjects;a?(this.alignOptions=a,this.alignByTranslate=m,(!b||p(b))&&(this.alignTo=l=b||"renderer",A(e,this),e.push(this),b=void 0)):(a=this.alignOptions,m=this.alignByTranslate,l=this.alignTo),b=t(b,B[l],"scrollablePlotBox"===l?B.plotBox:void 0,B);var L=a.verticalAlign;return B=(b.x||0)+(a.x||0),e=(b.y||0)+(a.y||0),"right"===(l=a.align)?P=1:"center"===l&&(P=2),P&&(B+=(b.width-(a.width||0))/P),Y[m?"translateX":"x"]=Math.round(B),"bottom"===L?I=1:"middle"===L&&(I=2),I&&(e+=(b.height-(a.height||0))/I),Y[m?"translateY":"y"]=Math.round(e),this[this.placed?"animate":"attr"](Y),this.placed=!0,this.alignAttr=Y,this},d.prototype.alignSetter=function(a){var m={left:"start",center:"middle",right:"end"};m[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",m[a]))},d.prototype.animate=function(a,m,b){var Y=this,B=tt(t(m,this.renderer.globalAnimation,!0));return m=B.defer,t(_.hidden,_.msHidden,_.webkitHidden,!1)&&(B.duration=0),0!==B.duration?(b&&(B.complete=b),i(function(){Y.element&&et(Y,a,B)},m)):(this.attr(a,void 0,b||B.complete),h(a,function(e,l){B.step&&B.step.call(this,e,{prop:l,pos:1,elem:this})},this)),this},d.prototype.applyTextOutline=function(a){var m=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(m.style.fill)));var b=a.split(" ");if(a=b[b.length-1],(b=b[0])&&"none"!==b&&M.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(e,l,P){return 2*Number(l)+P}),this.removeTextOutline();var Y=_.createElementNS(g,"tspan");C(Y,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":b,"stroke-linejoin":"round"}),a=m.querySelector("textPath")||m,[].forEach.call(a.childNodes,function(e){var l=e.cloneNode(!0);l.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(P){return l.removeAttribute(P)}),Y.appendChild(l)});var B=0;[].forEach.call(a.querySelectorAll("text tspan"),function(e){B+=Number(e.getAttribute("dy"))}),(b=_.createElementNS(g,"tspan")).textContent="\u200b",C(b,{x:Number(m.getAttribute("x")),dy:-B}),Y.appendChild(b),a.insertBefore(Y,a.firstChild)}},d.prototype.attr=function(a,m,b,Y){var l,I,L,B=this.element,e=this.symbolCustomAttribs,P=this;if("string"==typeof a&&typeof m<"u"){var n=a;(a={})[n]=m}return"string"==typeof a?P=(this[a+"Getter"]||this._defaultGetter).call(this,a,B):(h(a,function(S,u){I=!1,Y||$(this,u),this.symbolName&&-1!==e.indexOf(u)&&(l||(this.symbolAttr(a),l=!0),I=!0),!this.rotation||"x"!==u&&"y"!==u||(this.doTransform=!0),I||((L=this[u+"Setter"]||this._defaultSetter).call(this,S,u,B),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(u)&&this.updateShadows(u,S,L))},this),this.afterSetters()),b&&b.call(this),P},d.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},d.prototype.crisp=function(a,m){m=m||a.strokeWidth||0;var b=Math.round(m)%2/2;return a.x=Math.floor(a.x||this.x||0)+b,a.y=Math.floor(a.y||this.y||0)+b,a.width=Math.floor((a.width||this.width||0)-2*b),a.height=Math.floor((a.height||this.height||0)-2*b),w(a.strokeWidth)&&(a.strokeWidth=m),a},d.prototype.complexColor=function(a,m,b){var B,e,l,P,I,L,n,S,u,H,W,Y=this.renderer,D=[];R(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?e="radialGradient":a.linearGradient&&(e="linearGradient"),e){if(I=Y.gradients,L=a.stops,u=b.radialReference,k(l=a[e])&&(a[e]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===e&&u&&!w(l.gradientUnits)&&(l=o(l,Y.getRadialAttr(u,P=l),{gradientUnits:"userSpaceOnUse"})),h(l,function(Z,q){"id"!==q&&D.push(q,Z)}),h(L,function(Z){D.push(Z)}),D=D.join(","),I[D])H=I[D].attr("id");else{l.id=H=s();var X=I[D]=Y.createElement(e).attr(l).add(Y.defs);X.radAttr=P,X.stops=[],L.forEach(function(Z){0===Z[1].indexOf("rgba")?(B=F.parse(Z[1]),n=B.get("rgb"),S=B.get("a")):(n=Z[1],S=1),Z=Y.createElement("stop").attr({offset:Z[0],"stop-color":n,"stop-opacity":S}).add(X),X.stops.push(Z)})}b.setAttribute(m,W="url("+Y.url+"#"+H+")"),b.gradient=D,a.toString=function(){return W}}})},d.prototype.css=function(a){var m=this.styles,b={},Y=this.element,B=!m;if(a.color&&(a.fill=a.color),m&&h(a,function(P,I){m&&m[I]!==P&&(b[I]=P,B=!0)}),B){if(m&&(a=T(m,b)),null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===Y.nodeName.toLowerCase()&&a.width)var e=this.textWidth=c(a.width);this.styles=a,e&&!O&&this.renderer.forExport&&delete a.width;var l=o(a);Y.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(P){return l&&delete l[P]}),x(Y,l),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},d.prototype.dashstyleSetter=function(a){var m=this["stroke-width"];if("inherit"===m&&(m=1),a=a&&a.toLowerCase()){var b=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=b.length;a--;)b[a]=""+c(b[a])*t(m,NaN);a=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},d.prototype.destroy=function(){var a=this,m=a.element||{},b=a.renderer,Y=m.ownerSVGElement,B=b.isSVG&&"SPAN"===m.nodeName&&a.parentGroup||void 0;if(m.onclick=m.onmouseout=m.onmouseover=m.onmousemove=m.point=null,$(a),a.clipPath&&Y){var e=a.clipPath;[].forEach.call(Y.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){-1<l.getAttribute("clip-path").indexOf(e.element.id)&&l.removeAttribute("clip-path")}),a.clipPath=e.destroy()}if(a.stops){for(Y=0;Y<a.stops.length;Y++)a.stops[Y].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(m),b.styledMode||a.destroyShadows();B&&B.div&&0===B.div.childNodes.length;)m=B.parentGroup,a.safeRemoveChild(B.div),delete B.div,B=m;a.alignTo&&A(b.alignedObjects,a),h(a,function(l,P){a[P]&&a[P].parentGroup===a&&a[P].destroy&&a[P].destroy(),delete a[P]})},d.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},d.prototype.dSetter=function(a,m,b){k(a)&&("string"==typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(Y,B,e){return B&&B.join?(e?Y+" ":"")+B.join(" "):(B||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[m]!==a&&(b.setAttribute(m,a),this[m]=a)},d.prototype.fadeOut=function(a){var m=this;m.animate({opacity:0},{duration:t(a,150),complete:function(){m.hide()}})},d.prototype.fillSetter=function(a,m,b){"string"==typeof a?b.setAttribute(m,a):a&&this.complexColor(a,m,b)},d.prototype.getBBox=function(a,m){var b=this.alignValue,Y=this.element,B=this.renderer,e=this.styles,l=this.textStr,P=B.cache,I=B.cacheKeys,L=Y.namespaceURI===this.SVG_NS;m=t(m,this.rotation,0);var S,n=B.styledMode?Y&&d.prototype.getStyle.call(Y,"font-size"):e&&e.fontSize;if(w(l)){var u=l.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0")),u+=["",m,n,this.textWidth,b,e&&e.textOverflow,e&&e.fontWeight].join()}if(u&&!a&&(S=P[u]),!S){if(L||B.forExport){try{var H=this.fakeTS&&function(W){var X=Y.querySelector(".highcharts-text-outline");X&&x(X,{display:W})};r(H)&&H("none"),S=Y.getBBox?T({},Y.getBBox()):{width:Y.offsetWidth,height:Y.offsetHeight,x:0,y:0},r(H)&&H("")}catch{}(!S||0>S.width)&&(S={x:0,y:0,width:0,height:0})}else S=this.htmlGetBBox();if(B.isSVG&&(B=S.width,a=S.height,L&&(S.height=a={"11px,17":14,"13px,20":16}[""+(n||"")+",".concat(Math.round(a))]||a),m)){L=Number(Y.getAttribute("y")||0)-S.y,b={right:1,center:.5}[b||0]||0,e=m*N,n=(m-90)*N;var D=B*Math.cos(e);m=B*Math.sin(e),H=Math.cos(n),e=Math.sin(n),D=(H=(n=(B=S.x+b*(B-D)+L*H)+D)-a*H)-D,m=(a=(b=(L=S.y+L-b*m+L*e)+m)-a*e)-m,S.x=Math.min(B,n,H,D),S.y=Math.min(L,b,a,m),S.width=Math.max(B,n,H,D)-S.x,S.height=Math.max(L,b,a,m)-S.y}if(u&&(""===l||0<S.height)){for(;250<I.length;)delete P[I.shift()];P[u]||I.push(u),P[u]=S}}return S},d.prototype.getStyle=function(a){return f.getComputedStyle(this.element||this,"").getPropertyValue(a)},d.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)},d.prototype.hide=function(){return this.attr({visibility:"hidden"})},d.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},d.prototype.init=function(a,m){this.element="span"===m?v(m):_.createElementNS(this.SVG_NS,m),this.renderer=a,R(this,"afterInit")},d.prototype.on=function(a,m){var b=this.onEvents;return b[a]&&b[a](),b[a]=y(this.element,a,m),this},d.prototype.opacitySetter=function(a,m,b){this.opacity=a=Number(Number(a).toFixed(3)),b.setAttribute(m,a)},d.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(p(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},d.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},d.prototype.safeRemoveChild=function(a){var m=a.parentNode;m&&m.removeChild(a)},d.prototype.setRadialReference=function(a){var m=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,m&&m.radAttr&&m.animate(this.renderer.getRadialAttr(a,m.radAttr)),this},d.prototype.setTextPath=function(a,m){var b=this;m=o(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},m);var Y=this.renderer.url,B=this.text||this,e=B.textPath,l=m.attributes,P=m.enabled;return a=a||e&&e.path,e&&e.undo(),a&&P?(m=y(B,"afterModifyTree",function(I){if(a&&P){var L=a.attr("id");L||a.attr("id",L=s());var n={x:0,y:0};w(l.dx)&&(n.dx=l.dx,delete l.dx),w(l.dy)&&(n.dy=l.dy,delete l.dy),B.attr(n),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),n=I.nodes.slice(0),I.nodes.length=0,I.nodes[0]={tagName:"textPath",attributes:T(l,{"text-anchor":l.textAnchor,href:""+Y+"#".concat(L)}),children:n}}}),B.textPath={path:a,undo:m}):(B.attr({dx:0,dy:0}),delete B.textPath),this.added&&(B.textCache="",this.renderer.buildText(B)),this},d.prototype.shadow=function(a,m,b){var Y=[],B=this.element,e=this.oldShadowOptions,l=this.parentGroup,P=l&&90===l.rotation;l={color:"#000000",offsetX:P?-1:1,offsetY:P?-1:1,opacity:.15,width:3};var L,I=!1;if(!0===a?L=l:"object"==typeof a&&(L=T(l,a)),L&&(L&&e&&h(L,function(H,D){H!==e[D]&&(I=!0)}),I&&this.destroyShadows(),this.oldShadowOptions=L),L){if(!this.shadows){l=L.opacity/L.width;var n=P?"translate(".concat(L.offsetY,", ").concat(L.offsetX,")"):"translate(".concat(L.offsetX,", ").concat(L.offsetY,")");for(P=1;P<=L.width;P++){var S=B.cloneNode(!1),u=2*L.width+1-2*P;C(S,{stroke:a.color||"#000000","stroke-opacity":l*P,"stroke-width":u,transform:n,fill:"none"}),S.setAttribute("class",(S.getAttribute("class")||"")+" highcharts-shadow"),b&&(C(S,"height",Math.max(C(S,"height")-u,0)),S.cutHeight=u),m?m.element.appendChild(S):B.parentNode&&B.parentNode.insertBefore(S,B),Y.push(S)}this.shadows=Y}}else this.destroyShadows();return this},d.prototype.show=function(a){return void 0===a&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},d.prototype["stroke-widthSetter"]=function(a,m,b){this[m]=a,b.setAttribute(m,a)},d.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),m=0;if(a.indexOf("px")===a.length-2)m=c(a);else if(""!==a){var b=_.createElementNS(g,"rect");C(b,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(b),m=b.getBBox().width,b.parentNode.removeChild(b)}return m},d.prototype.symbolAttr=function(a){var m=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){m[b]=t(a[b],m[b])}),m.attr({d:m.renderer.symbols[m.symbolName](m.x,m.y,m.width,m.height,m)})},d.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},d.prototype.titleSetter=function(a){var m=this.element,b=m.getElementsByTagName("title")[0]||_.createElementNS(this.SVG_NS,"title");m.insertBefore?m.insertBefore(b,m.firstChild):m.appendChild(b),b.textContent=String(t(a,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},d.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},d.prototype.translate=function(a,m){return this.attr({translateX:a,translateY:m})},d.prototype.updateShadows=function(a,m,b){var Y=this.shadows;if(Y)for(var B=Y.length;B--;)b.call(Y[B],"height"===a?Math.max(m-(Y[B].cutHeight||0),0):"d"===a?this.d:m,a,Y[B])},d.prototype.updateTransform=function(){var a=this.element,m=this.matrix,b=this.rotation;b=void 0===b?0:b;var Y=this.scaleX,B=this.scaleY,e=this.translateX,l=this.translateY;e=["translate("+(void 0===e?0:e)+","+(void 0===l?0:l)+")"],w(m)&&e.push("matrix("+m.join(",")+")"),b&&e.push("rotate("+b+" "+t(this.rotationOriginX,a.getAttribute("x"),0)+" "+t(this.rotationOriginY,a.getAttribute("y")||0)+")"),(w(Y)||w(B))&&e.push("scale("+t(Y,1)+" "+t(B,1)+")"),e.length&&!(this.text||this).textPath&&a.setAttribute("transform",e.join(" "))},d.prototype.visibilitySetter=function(a,m,b){"inherit"===a?b.removeAttribute(m):this[m]!==a&&b.setAttribute(m,a),this[m]=a},d.prototype.xGetter=function(a){return"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy")),this._defaultGetter(a)},d.prototype.zIndexSetter=function(a,m){var b=this.renderer,Y=this.parentGroup,B=(Y||b).element||b.box,e=this.element;b=B===b.box;var I,l=!1,P=this.added;if(w(a)?(e.setAttribute("data-z-index",a),this[m]===(a=+a)&&(P=!1)):w(this[m])&&e.removeAttribute("data-z-index"),this[m]=a,P){for((a=this.zIndex)&&Y&&(Y.handleZ=!0),I=(m=B.childNodes).length-1;0<=I&&!l;I--){P=(Y=m[I]).getAttribute("data-z-index");var L=!w(P);Y!==e&&(0>a&&L&&!b&&!I?(B.insertBefore(e,m[I]),l=!0):(c(P)<=a||L&&(!w(a)||0<=a))&&(B.insertBefore(e,m[I+1]||null),l=!0))}l||(B.insertBefore(e,m[b?3:0]||null),l=!0)}return l},d}(),G.prototype.strokeSetter=G.prototype.fillSetter,G.prototype.yGetter=G.prototype.xGetter,G.prototype.matrixSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.rotationSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.verticalAlignSetter=function(d,a){this[a]=d,this.doTransform=!0},G}),ct(U,"Core/Renderer/RendererRegistry.js",[U["Core/Globals.js"]],function(G){var F,M,it;return(M=F||(F={})).rendererTypes={},M.getRendererType=function(et){return void 0===et&&(et=it),M.rendererTypes[et]||M.rendererTypes[it]},M.registerRendererType=function(et,tt,$){M.rendererTypes[et]=tt,(!it||$)&&(it=et,G.Renderer=tt)},F}),ct(U,"Core/Renderer/SVG/SVGLabel.js",[U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F){var O,M=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),it=F.defined,et=F.extend,tt=F.isNumber,$=F.merge,N=F.pick,_=F.removeEvent;return function(O){function g(f,y,C,v,x,w,A,T,R,k){var p,r=O.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(f,"g"),r.textStr=y,r.x=C,r.y=v,r.anchorX=w,r.anchorY=A,r.baseline=R,r.className=k,r.addClass("button"===k?"highcharts-no-tooltip":"highcharts-label"),k&&r.addClass("highcharts-"+k),r.text=f.text(void 0,0,0,T).attr({zIndex:1}),"string"==typeof x&&((p=/^url\((.*?)\)$/.test(x))||r.renderer.symbols[x])&&(r.symbolKey=x),r.bBox=g.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=f.styledMode||p,r.deferredAttr={},r.alignFactor=0,r}return M(g,O),g.prototype.alignSetter=function(f){(f={left:0,center:.5,right:1}[f])!==this.alignFactor&&(this.alignFactor=f,this.bBox&&tt(this.xSetting)&&this.attr({x:this.xSetting}))},g.prototype.anchorXSetter=function(f,y){this.anchorX=f,this.boxAttr(y,Math.round(f)-this.getCrispAdjust()-this.xSetting)},g.prototype.anchorYSetter=function(f,y){this.anchorY=f,this.boxAttr(y,f-this.ySetting)},g.prototype.boxAttr=function(f,y){this.box?this.box.attr(f,y):this.deferredAttr[f]=y},g.prototype.css=function(f){if(f){var y={};f=$(f),g.textProps.forEach(function(C){typeof f[C]<"u"&&(y[C]=f[C],delete f[C])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return G.prototype.css.call(this,f)},g.prototype.destroy=function(){_(this.element,"mouseenter"),_(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},g.prototype.fillSetter=function(f,y){f&&(this.needsBox=!0),this.fill=f,this.boxAttr(y,f)},g.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var f=this.padding,y=N(this.paddingLeft,f);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-f}},g.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},g.prototype.heightSetter=function(f){this.heightSetting=f},g.prototype.onAdd=function(){this.text.add(this),this.attr({text:N(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&it(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},g.prototype.paddingSetter=function(f,y){tt(f)?f!==this[y]&&(this[y]=f,this.updateTextPadding()):this[y]=void 0},g.prototype.rSetter=function(f,y){this.boxAttr(y,f)},g.prototype.shadow=function(f){return f&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(f)),this},g.prototype.strokeSetter=function(f,y){this.stroke=f,this.boxAttr(y,f)},g.prototype["stroke-widthSetter"]=function(f,y){f&&(this.needsBox=!0),this["stroke-width"]=f,this.boxAttr(y,f)},g.prototype["text-alignSetter"]=function(f){this.textAlign=f},g.prototype.textSetter=function(f){typeof f<"u"&&this.text.attr({text:f}),this.updateTextPadding()},g.prototype.updateBoxSize=function(){var f=this.text,y=f.element.style,C={},v=this.padding,x=this.bBox=tt(this.widthSetting)&&tt(this.heightSetting)&&!this.textAlign||!it(f.textStr)?g.emptyBBox:f.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||x.height||0)+2*v,y=this.renderer.fontMetrics(y&&y.fontSize,f),this.baselineOffset=v+Math.min((this.text.firstLineMetrics||y).b,x.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!f.textPath&&(this.box||((f=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),f.add(this)),f=this.getCrispAdjust(),C.x=f,C.y=(this.baseline?-this.baselineOffset:0)+f,C.width=Math.round(this.width),C.height=Math.round(this.height),this.box.attr(et(C,this.deferredAttr)),this.deferredAttr={})},g.prototype.updateTextPadding=function(){var f=this.text;if(!f.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,C=N(this.paddingLeft,this.padding);it(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(C+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(C!==f.x||y!==f.y)&&(f.attr("x",C),f.hasBoxWidthChanged&&(this.bBox=f.getBBox(!0)),typeof y<"u"&&f.attr("y",y)),f.x=C,f.y=y}},g.prototype.widthSetter=function(f){this.widthSetting=tt(f)?f:void 0},g.prototype.getPaddedWidth=function(){var f=this.padding,y=N(this.paddingLeft,f);return f=N(this.paddingRight,f),(this.widthSetting||this.bBox.width||0)+y+f},g.prototype.xSetter=function(f){this.x=f,this.alignFactor&&(f-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(f),this.attr("translateX",this.xSetting)},g.prototype.ySetter=function(f){this.ySetting=this.y=Math.round(f),this.attr("translateY",this.ySetting)},g.emptyBBox={width:0,height:0,x:0,y:0},g.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),g}(G)}),ct(U,"Core/Renderer/SVG/Symbols.js",[U["Core/Utilities.js"]],function(G){function F(N,_,O,g,f){var y=[];if(f){var C=f.start||0,v=$(f.r,O);O=$(f.r,g||O);var x=(f.end||0)-.001;g=f.innerR;var w=$(f.open,.001>Math.abs((f.end||0)-C-2*Math.PI)),A=Math.cos(C),T=Math.sin(C),R=Math.cos(x),k=Math.sin(x);C=$(f.longArc,.001>x-C-Math.PI?0:1),y.push(["M",N+v*A,_+O*T],["A",v,O,0,C,$(f.clockwise,1),N+v*R,_+O*k]),et(g)&&y.push(w?["M",N+g*R,_+g*k]:["L",N+g*R,_+g*k],["A",g,g,0,C,et(f.clockwise)?1-f.clockwise:0,N+g*A,_+g*T]),w||y.push(["Z"])}return y}function M(N,_,O,g,f){return f&&f.r?it(N,_,O,g,f):[["M",N,_],["L",N+O,_],["L",N+O,_+g],["L",N,_+g],["Z"]]}function it(N,_,O,g,f){return[["M",N+(f=f&&f.r||0),_],["L",N+O-f,_],["C",N+O,_,N+O,_,N+O,_+f],["L",N+O,_+g-f],["C",N+O,_+g,N+O,_+g,N+O-f,_+g],["L",N+f,_+g],["C",N,_+g,N,_+g,N,_+g-f],["L",N,_+f],["C",N,_,N,_,N+f,_]]}var et=G.defined,tt=G.isNumber,$=G.pick;return{arc:F,callout:function(N,_,O,g,f){var y=Math.min(f&&f.r||0,O,g),C=y+6,v=f&&f.anchorX;f=f&&f.anchorY||0;var x=it(N,_,O,g,{r:y});return tt(v)&&(N+v>=O?f>_+C&&f<_+g-C?x.splice(3,1,["L",N+O,f-6],["L",N+O+6,f],["L",N+O,f+6],["L",N+O,_+g-y]):x.splice(3,1,["L",N+O,g/2],["L",v,f],["L",N+O,g/2],["L",N+O,_+g-y]):0>=N+v?f>_+C&&f<_+g-C?x.splice(7,1,["L",N,f+6],["L",N-6,f],["L",N,f-6],["L",N,_+y]):x.splice(7,1,["L",N,g/2],["L",v,f],["L",N,g/2],["L",N,_+y]):f&&f>g&&v>N+C&&v<N+O-C?x.splice(5,1,["L",v+6,_+g],["L",v,_+g+6],["L",v-6,_+g],["L",N+y,_+g]):f&&0>f&&v>N+C&&v<N+O-C&&x.splice(1,1,["L",v-6,_],["L",v,_-6],["L",v+6,_],["L",O-y,_])),x},circle:function(N,_,O,g){return F(N+O/2,_+g/2,O/2,g/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(N,_,O,g){return[["M",N+O/2,_],["L",N+O,_+g/2],["L",N+O/2,_+g],["L",N,_+g/2],["Z"]]},rect:M,roundedRect:it,square:M,triangle:function(N,_,O,g){return[["M",N+O/2,_],["L",N+O,_+g],["L",N,_+g],["Z"]]},"triangle-down":function(N,_,O,g){return[["M",N,_],["L",N+O,_],["L",N+O/2,_+g],["Z"]]}}}),ct(U,"Core/Renderer/SVG/TextBuilder.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var it=F.doc,et=F.SVG_NS,tt=F.win,$=M.attr,N=M.extend,_=M.fireEvent,O=M.isString,g=M.objectEach,f=M.pick;return function(){function y(C){var v=C.styles;this.renderer=C.renderer,this.svgElement=C,this.width=C.textWidth,this.textLineHeight=v&&v.lineHeight,this.textOutline=v&&v.textOutline,this.ellipsis=!(!v||"ellipsis"!==v.textOverflow),this.noWrap=!(!v||"nowrap"!==v.whiteSpace),this.fontSize=v&&v.fontSize}return y.prototype.buildSVG=function(){var C=this.svgElement,v=C.element,x=C.renderer,w=f(C.textStr,"").toString(),A=-1!==w.indexOf("<"),T=v.childNodes;x=this.width&&!C.added&&x.box;var k=[w,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(k!==C.textCache){for(C.textCache=k,delete C.actualWidth,k=T.length;k--;)v.removeChild(T[k]);A||this.ellipsis||this.width||C.textPath||-1!==w.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(w))?""!==w&&(x&&x.appendChild(v),w=new G(w),this.modifyTree(w.nodes),w.addToDOM(v),this.modifyDOM(),this.ellipsis&&-1!==(v.textContent||"").indexOf("\u2026")&&C.attr("title",this.unescapeEntities(C.textStr||"",["<",">"])),x&&x.removeChild(v)):v.appendChild(it.createTextNode(this.unescapeEntities(w))),O(this.textOutline)&&C.applyTextOutline&&C.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var w,C=this,v=this.svgElement,x=$(v.element,"x");for(v.firstLineMetrics=void 0;(w=v.element.firstChild)&&/^[\s\u200B]*$/.test(w.textContent||" ");)v.element.removeChild(w);[].forEach.call(v.element.querySelectorAll("tspan.highcharts-br"),function(k,r){k.nextSibling&&k.previousSibling&&(0===r&&1===k.previousSibling.nodeType&&(v.firstLineMetrics=v.renderer.fontMetrics(void 0,k.previousSibling)),$(k,{dy:C.getLineHeight(k.nextSibling),x}))});var A=this.width||0;if(A){var R=function(k){[].slice.call(k.childNodes).forEach(function(r){r.nodeType===tt.Node.TEXT_NODE?function(k,r){var p=k.textContent||"",o=p.replace(/([^\^])-/g,"$1- ").split(" "),h=!C.noWrap&&(1<o.length||1<v.element.childNodes.length),t=C.getLineHeight(r),c=0,i=v.actualWidth;if(C.ellipsis)p&&C.truncate(k,p,void 0,0,Math.max(0,A-parseInt(C.fontSize||12,10)),function(s,d){return s.substring(0,d)+"\u2026"});else if(h){for(p=[],h=[];r.firstChild&&r.firstChild!==k;)h.push(r.firstChild),r.removeChild(r.firstChild);for(;o.length;)o.length&&!C.noWrap&&0<c&&(p.push(k.textContent||""),k.textContent=o.join(" ").replace(/- /g,"-")),C.truncate(k,void 0,o,0===c&&i||0,A,function(s,d){return o.slice(0,d).join(" ").replace(/- /g,"-")}),i=v.actualWidth,c++;h.forEach(function(s){r.insertBefore(s,k)}),p.forEach(function(s){r.insertBefore(it.createTextNode(s),k),(s=it.createElementNS(et,"tspan")).textContent="\u200b",$(s,{dy:t,x}),r.insertBefore(s,k)})}}(r,k):(-1!==r.className.baseVal.indexOf("highcharts-br")&&(v.actualWidth=0),R(r))})};R(v.element)}},y.prototype.getLineHeight=function(C){var v;return C=C.nodeType===tt.Node.TEXT_NODE?C.parentElement:C,this.renderer.styledMode||(v=C&&/(px|em)$/.test(C.style.fontSize)?C.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(v,C||this.svgElement.element).h},y.prototype.modifyTree=function(C){var v=this,x=function(w,A){var T=w.attributes;T=void 0===T?{}:T;var R=w.children,k=w.style;k=void 0===k?{}:k;var r=w.tagName,p=v.renderer.styledMode;"b"===r||"strong"===r?p?T.class="highcharts-strong":k.fontWeight="bold":("i"===r||"em"===r)&&(p?T.class="highcharts-emphasized":k.fontStyle="italic"),k&&k.color&&(k.fill=k.color),"br"===r?(T.class="highcharts-br",w.textContent="\u200b",(A=C[A+1])&&A.textContent&&(A.textContent=A.textContent.replace(/^ +/gm,""))):"a"===r&&R&&R.some(function(o){return"#text"===o.tagName})&&(w.children=[{children:R,tagName:"tspan"}]),"#text"!==r&&"a"!==r&&(w.tagName="tspan"),N(w,{attributes:T,style:k}),R&&R.filter(function(o){return"#text"!==o.tagName}).forEach(x)};C.forEach(x),_(this.svgElement,"afterModifyTree",{nodes:C})},y.prototype.truncate=function(C,v,x,w,A,T){var c,R=this.svgElement,k=R.renderer,r=R.rotation,p=[],o=x?1:0,h=(v||x||"").length,t=h,i=function(d,a){a=a||d;var m=C.parentNode;if(m&&typeof p[a]>"u")if(m.getSubStringLength)try{p[a]=w+m.getSubStringLength(0,x?a+1:a)}catch{}else k.getSpanWidth&&(C.textContent=T(v||x,d),p[a]=w+k.getSpanWidth(R,C));return p[a]};R.rotation=0;var s=i(C.textContent.length);if(w+s>A){for(;o<=h;)t=Math.ceil((o+h)/2),x&&(c=T(x,t)),s=i(t,c&&c.length-1),o===h?o=h+1:s>A?h=t-1:o=t;0===h?C.textContent="":v&&h===v.length-1||(C.textContent=c||T(v||x,t))}x&&x.splice(0,t),R.actualWidth=s,R.rotation=r},y.prototype.unescapeEntities=function(C,v){return g(this.renderer.escapes,function(x,w){v&&-1!==v.indexOf(x)||(C=C.toString().replace(new RegExp(x,"g"),w))}),C},y}()}),ct(U,"Core/Renderer/SVG/SVGRenderer.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGLabel.js"],U["Core/Renderer/SVG/Symbols.js"],U["Core/Renderer/SVG/TextBuilder.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt,$,N,_){var B,O=M.charts,g=M.deg2rad,f=M.doc,y=M.isFirefox,C=M.isMS,v=M.isWebKit,x=M.noop,w=M.SVG_NS,A=M.symbolSizes,T=M.win,R=_.addEvent,k=_.attr,r=_.createElement,p=_.css,o=_.defined,h=_.destroyObjectProperties,t=_.extend,c=_.isArray,i=_.isNumber,s=_.isObject,d=_.isString,a=_.merge,m=_.pick,b=_.pInt,Y=_.uniqueKey;return M=function(){function e(l,P,I,L,n,S,u){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(l,P,I,L,n,S,u)}return e.prototype.init=function(l,P,I,L,n,S,u){var W,H=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),D=H.element;u||H.css(this.getStyle(L)),l.appendChild(D),k(l,"dir","ltr"),-1===l.innerHTML.indexOf("xmlns")&&k(D,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=D,this.boxWrapper=H,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=S,this.forExport=n,this.styledMode=u,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(P,I,!1),y&&l.getBoundingClientRect&&((P=function(){p(l,{left:0,top:0}),W=l.getBoundingClientRect(),p(l,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})})(),this.unSubPixelFix=R(T,"resize",P))},e.prototype.definition=function(l){return new G([l]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((y||v)&&f.getElementsByTagName("base").length){if(!o(B)){var l=Y();l=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:l},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(l,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body),p(l,{position:"fixed",top:0,left:0,zIndex:9e5});var P=f.elementFromPoint(6,6);B="hitme"===(P&&P.id),f.body.removeChild(l)}if(B)return T.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(l){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},l)},e.prototype.setStyle=function(l){this.boxWrapper.css(this.getStyle(l))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var l=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,l&&(this.defs=l.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(l){var P=new this.Element;return P.init(this,l),P},e.prototype.getRadialAttr=function(l,P){return{cx:l[0]-l[2]/2+(P.cx||0)*l[2],cy:l[1]-l[2]/2+(P.cy||0)*l[2],r:(P.r||0)*l[2]}},e.prototype.buildText=function(l){new N(l).buildSVG()},e.prototype.getContrast=function(l){return 1.05/(.05+(l=.2126*(l=F.parse(l).rgba.map(function(P){return.03928>=(P/=255)?P/12.92:Math.pow((P+.055)/1.055,2.4)}))[0]+.7152*l[1]+.0722*l[2]))>(l+.05)/.05?"#FFFFFF":"#000000"},e.prototype.button=function(l,P,I,L,n,S,u,H,D,W){void 0===n&&(n={});var X=this.label(l,P,I,D,void 0,void 0,W,void 0,"button"),Z=this.styledMode;l=n.states||{};var q=0;delete(n=a(n)).states;var st=a({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var nt=G.filterUserAttributes(n);if(X.attr(a({padding:8,r:2},nt)),!Z){nt=a({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},nt);var rt=(S=a(nt,{fill:"#e6e6e6"},G.filterUserAttributes(S||l.hover||{}))).style;delete S.style;var V=(u=a(nt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(u||l.select||{}))).style;delete u.style;var Q=(H=a(nt,{style:{color:"#cccccc"}},G.filterUserAttributes(H||l.disabled||{}))).style;delete H.style}return R(X.element,C?"mouseover":"mouseenter",function(){3!==q&&X.setState(1)}),R(X.element,C?"mouseout":"mouseleave",function(){3!==q&&X.setState(q)}),X.setState=function(z){1!==z&&(X.state=q=z),X.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][z||0]),Z||(X.attr([nt,S,u,H][z||0]),s(z=[st,rt,V,Q][z||0])&&X.css(z))},Z||(X.attr(nt).css(t({cursor:"default"},st)),W&&X.text.css({pointerEvents:"none"})),X.on("touchstart",function(z){return z.stopPropagation()}).on("click",function(z){3!==q&&L.call(X,z)})},e.prototype.crispLine=function(l,P,I){void 0===I&&(I="round");var L=l[0],n=l[1];return o(L[1])&&L[1]===n[1]&&(L[1]=n[1]=Math[I](L[1])-P%2/2),o(L[2])&&L[2]===n[2]&&(L[2]=n[2]=Math[I](L[2])+P%2/2),l},e.prototype.path=function(l){var P=this.styledMode?{}:{fill:"none"};return c(l)?P.d=l:s(l)&&t(P,l),this.createElement("path").attr(P)},e.prototype.circle=function(l,P,I){return l=s(l)?l:typeof l>"u"?{}:{x:l,y:P,r:I},(P=this.createElement("circle")).xSetter=P.ySetter=function(L,n,S){S.setAttribute("c"+n,L)},P.attr(l)},e.prototype.arc=function(l,P,I,L,n,S){return s(l)?(P=(L=l).y,I=L.r,l=L.x):L={innerR:L,start:n,end:S},(l=this.symbol("arc",l,P,I,I,L)).r=I,l},e.prototype.rect=function(l,P,I,L,n,S){n=s(l)?l.r:n;var u=this.createElement("rect");return l=s(l)?l:typeof l>"u"?{}:{x:l,y:P,width:Math.max(I,0),height:Math.max(L,0)},this.styledMode||(typeof S<"u"&&(l["stroke-width"]=S,l=u.crisp(l)),l.fill="none"),n&&(l.r=n),u.rSetter=function(H,D,W){u.r=H,k(W,{rx:H,ry:H})},u.rGetter=function(){return u.r||0},u.attr(l)},e.prototype.setSize=function(l,P,I){this.width=l,this.height=P,this.boxWrapper.animate({width:l,height:P},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:m(I,!0)?void 0:0}),this.alignElements()},e.prototype.g=function(l){var P=this.createElement("g");return l?P.attr({class:"highcharts-"+l}):P},e.prototype.image=function(l,P,I,L,n,S){var u={preserveAspectRatio:"none"},H=function(W,X){W.setAttributeNS?W.setAttributeNS("http://www.w3.org/1999/xlink","href",X):W.setAttribute("hc-svg-href",X)};i(P)&&(u.x=P),i(I)&&(u.y=I),i(L)&&(u.width=L),i(n)&&(u.height=n);var D=this.createElement("image").attr(u);return P=function(W){H(D.element,l),S.call(D,W)},S?(H(D.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),I=new T.Image,R(I,"load",P),I.src=l,I.complete&&P({})):H(D.element,l),D},e.prototype.symbol=function(l,P,I,L,n,S){var Z,u=this,H=/^url\((.*?)\)$/,D=H.test(l),W=!D&&(this.symbols[l]?l:"circle"),X=W&&this.symbols[W];if(X){"number"==typeof P&&(Z=X.call(this.symbols,Math.round(P||0),Math.round(I||0),L||0,n||0,S));var q=this.path(Z);u.styledMode||q.attr("fill","none"),t(q,{symbolName:W||void 0,x:P,y:I,width:L,height:n}),S&&t(q,S)}else if(D){var st=l.match(H)[1],nt=q=this.image(st);nt.imgwidth=m(A[st]&&A[st].width,S&&S.width),nt.imgheight=m(A[st]&&A[st].height,S&&S.height);var rt=function(V){return V.attr({width:V.width,height:V.height})};["width","height"].forEach(function(V){nt[V+"Setter"]=function(Q,z){this[z]=Q,Q=this.alignByTranslate;var E=this.element,j=this.width,K=this.height,J=this.imgwidth,ot=this.imgheight,at=this["img"+z];if(o(at)){var ht=1;S&&"within"===S.backgroundSize&&j&&K?(ht=Math.min(j/J,K/ot),at=Math.round(at*ht),k(E,{width:Math.round(J*ht),height:Math.round(ot*ht)})):E&&E.setAttribute(z,at),Q||this.translate(((j||0)-at*ht)/2,((K||0)-at*ht)/2)}}}),o(P)&&nt.attr({x:P,y:I}),nt.isImg=!0,o(nt.imgwidth)&&o(nt.imgheight)?rt(nt):(nt.attr({width:0,height:0}),r("img",{onload:function(){var V=O[u.chartIndex];0===this.width&&(p(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),A[st]={width:this.width,height:this.height},nt.imgwidth=this.width,nt.imgheight=this.height,nt.element&&rt(nt),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,!u.imgCount&&V&&!V.hasLoaded&&V.onload()},src:st}),this.imgCount++)}return q},e.prototype.clipRect=function(l,P,I,L){var n=Y()+"-",S=this.createElement("clipPath").attr({id:n}).add(this.defs);return(l=this.rect(l,P,I,L,0).add(S)).id=n,l.clipPath=S,l.count=0,l},e.prototype.text=function(l,P,I,L){var n={};return!L||!this.allowHTML&&this.forExport?(n.x=Math.round(P||0),I&&(n.y=Math.round(I)),o(l)&&(n.text=l),l=this.createElement("text").attr(n),(!L||this.forExport&&!this.allowHTML)&&(l.xSetter=function(S,u,H){for(var Z,D=H.getElementsByTagName("tspan"),W=H.getAttribute(u),X=0;X<D.length;X++)(Z=D[X]).getAttribute(u)===W&&Z.setAttribute(u,S);H.setAttribute(u,S)}),l):this.html(l,P,I)},e.prototype.fontMetrics=function(l,P){return l=!this.styledMode&&/px/.test(l)||!T.getComputedStyle?l||P&&P.style&&P.style.fontSize||this.style&&this.style.fontSize:P&&et.prototype.getStyle.call(P,"font-size"),{h:P=24>(l=/px/.test(l)?b(l):12)?l+3:Math.round(1.2*l),b:Math.round(.8*P),f:l}},e.prototype.rotCorr=function(l,P,I){var L=l;return P&&I&&(L=Math.max(L*Math.cos(P*g),4)),{x:-l/3*Math.sin(P*g),y:L}},e.prototype.pathToSegments=function(l){for(var P=[],I=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n<l.length;n++)d(I[0])&&i(l[n])&&I.length===L[I[0].toUpperCase()]&&l.splice(n,0,I[0].replace("M","L").replace("m","l")),"string"==typeof l[n]&&(I.length&&P.push(I.slice(0)),I.length=0),I.push(l[n]);return P.push(I.slice(0)),P},e.prototype.label=function(l,P,I,L,n,S,u,H,D){return new tt(this,l,P,I,L,n,S,u,H,D)},e.prototype.alignElements=function(){this.alignedObjects.forEach(function(l){return l.align()})},e}(),t(M.prototype,{Element:et,SVG_NS:w,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:$,draw:x}),it.registerRendererType("svg",M,!0),M}),ct(U,"Core/Renderer/HTML/HTMLElement.js",[U["Core/Globals.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F,M){var C,it=this&&this.__extends||(C=function(v,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,A){w.__proto__=A}||function(w,A){for(var T in A)A.hasOwnProperty(T)&&(w[T]=A[T])})(v,x)},function(v,x){function w(){this.constructor=v}C(v,x),v.prototype=null===x?Object.create(x):(w.prototype=x.prototype,new w)}),et=G.isFirefox,tt=G.isMS,$=G.isWebKit,N=G.win,_=M.css,O=M.defined,g=M.extend,f=M.pick,y=M.pInt;return function(C){function v(){return null!==C&&C.apply(this,arguments)||this}return it(v,C),v.compose=function(x){if(-1===v.composedClasses.indexOf(x)){v.composedClasses.push(x);var w=v.prototype,A=x.prototype;A.getSpanCorrection=w.getSpanCorrection,A.htmlCss=w.htmlCss,A.htmlGetBBox=w.htmlGetBBox,A.htmlUpdateTransform=w.htmlUpdateTransform,A.setSpanRotation=w.setSpanRotation}return x},v.prototype.getSpanCorrection=function(x,w,A){this.xCorr=-x*A,this.yCorr=-w},v.prototype.htmlCss=function(x){var w="SPAN"===this.element.tagName&&x&&"width"in x,A=f(w&&x.width,void 0);if(w){delete x.width,this.textWidth=A;var T=!0}return x&&"ellipsis"===x.textOverflow&&(x.whiteSpace="nowrap",x.overflow="hidden"),this.styles=g(this.styles,x),_(this.element,x),T&&this.htmlUpdateTransform(),this},v.prototype.htmlGetBBox=function(){var x=this.element;return{x:x.offsetLeft,y:x.offsetTop,width:x.offsetWidth,height:x.offsetHeight}},v.prototype.htmlUpdateTransform=function(){if(this.added){var x=this.renderer,w=this.element,A=this.translateX||0,T=this.translateY||0,R=this.x||0,k=this.y||0,r=this.textAlign||"left",p={left:0,center:.5,right:1}[r],o=this.styles;if(o=o&&o.whiteSpace,_(w,{marginLeft:A,marginTop:T}),!x.styledMode&&this.shadows&&this.shadows.forEach(function(d){_(d,{marginLeft:A+1,marginTop:T+1})}),this.inverted&&[].forEach.call(w.childNodes,function(d){x.invertChild(d,w)}),"SPAN"===w.tagName){var h=this.rotation,t=this.textWidth&&y(this.textWidth),c=[h,r,w.innerHTML,this.textWidth,this.textAlign].join(),i=void 0;if(i=!1,t!==this.oldTextWidth){if(this.textPxLength)var s=this.textPxLength;else _(w,{width:"",whiteSpace:o||"nowrap"}),s=w.offsetWidth;(t>this.oldTextWidth||s>t)&&(/[ \-]/.test(w.textContent||w.innerText)||"ellipsis"===w.style.textOverflow)&&(_(w,{width:s>t||h?t+"px":"auto",display:"block",whiteSpace:o||"normal"}),this.oldTextWidth=t,i=!0)}this.hasBoxWidthChanged=i,c!==this.cTT&&(i=x.fontMetrics(w.style.fontSize,w).b,!O(h)||h===(this.oldRotation||0)&&r===this.oldAlign||this.setSpanRotation(h,p,i),this.getSpanCorrection(!O(h)&&this.textPxLength||w.offsetWidth,i,p,h,r)),_(w,{left:R+(this.xCorr||0)+"px",top:k+(this.yCorr||0)+"px"}),this.cTT=c,this.oldRotation=h,this.oldAlign=r}}else this.alignOnAdd=!0},v.prototype.setSpanRotation=function(x,w,A){var T={},R=tt&&!/Edge/.test(N.navigator.userAgent)?"-ms-transform":$?"-webkit-transform":et?"MozTransform":N.opera?"-o-transform":void 0;R&&(T[R]=T.transform="rotate("+x+"deg)",T[R+(et?"Origin":"-origin")]=T.transformOrigin=100*w+"% "+A+"px",_(this.element,T))},v.composedClasses=[],v}(F)}),ct(U,"Core/Renderer/HTML/HTMLRenderer.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Utilities.js"]],function(G,F,M,it){var O,et=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),tt=it.attr,$=it.createElement,N=it.extend,_=it.pick;return function(O){function g(){return null!==O&&O.apply(this,arguments)||this}return et(g,O),g.compose=function(f){return-1===g.composedClasses.indexOf(f)&&(g.composedClasses.push(f),f.prototype.html=g.prototype.html),f},g.prototype.html=function(f,y,C){var v=this.createElement("span"),x=v.element,w=v.renderer,A=w.isSVG,T=function(R,k){["opacity","visibility"].forEach(function(r){R[r+"Setter"]=function(p,o,h){var t=R.div?R.div.style:k;F.prototype[r+"Setter"].call(this,p,o,h),t&&(t[o]=p)}}),R.addedSetters=!0};return v.textSetter=function(R){R!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,_(R,"")),this.textStr=R,v.doTransform=!0)},A&&T(v,v.element.style),v.xSetter=v.ySetter=v.alignSetter=v.rotationSetter=function(R,k){"align"===k?v.alignValue=v.textAlign=R:v[k]=R,v.doTransform=!0},v.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},v.attr({text:f,x:Math.round(y),y:Math.round(C)}).css({position:"absolute"}),w.styledMode||v.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),x.style.whiteSpace="nowrap",v.css=v.htmlCss,A&&(v.add=function(R){var k=w.box.parentNode,r=[];if(this.parentGroup=R){var p=R.div;if(!p){for(;R;)r.push(R),R=R.parentGroup;r.reverse().forEach(function(o){function h(s,d){o[d]=s,"translateX"===d?i.left=s+"px":i.top=s+"px",o.doTransform=!0}var s,t=tt(o.element,"class"),c=o.styles||{},i=(p=o.div=o.div||$("div",t?{className:t}:void 0,{position:"absolute",left:(o.translateX||0)+"px",top:(o.translateY||0)+"px",display:o.display,opacity:o.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:o.visibility},p||k)).style;N(o,{classSetter:(s=p,function(d){this.element.setAttribute("class",d),s.className=d}),on:function(){return r[0].div&&v.on.apply({element:r[0].div,onEvents:o.onEvents},arguments),o},translateXSetter:h,translateYSetter:h}),o.addedSetters||T(o)})}}else p=k;return p.appendChild(x),v.added=!0,v.alignOnAdd&&v.htmlUpdateTransform(),v}),v},g.composedClasses=[],g}(M)}),ct(U,"Core/Axis/AxisDefaults.js",[],function(){var G=(()=>{return(F=G||(G={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},F.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},F.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},F.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},F.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},F.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},G;var F})();return G}),ct(U,"Core/Foundation.js",[U["Core/Utilities.js"]],function(G){var tt,F=G.addEvent,M=G.isFunction,it=G.objectEach,et=G.removeEvent;return(tt||(tt={})).registerEventOptions=function(N,_){N.eventOptions=N.eventOptions||{},it(_.events,function(O,g){N.eventOptions[g]!==O&&(N.eventOptions[g]&&(et(N,g,N.eventOptions[g]),delete N.eventOptions[g]),M(O)&&(N.eventOptions[g]=O,F(N,g,O)))})},tt}),ct(U,"Core/Axis/Tick.js",[U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Utilities.js"]],function(G,F,M){var it=F.deg2rad,et=M.clamp,tt=M.correctFloat,$=M.defined,N=M.destroyObjectProperties,_=M.extend,O=M.fireEvent,g=M.isNumber,f=M.merge,y=M.objectEach,C=M.pick;return function(){function v(x,w,A,T,R){this.isNewLabel=this.isNew=!0,this.axis=x,this.pos=w,this.type=A||"",this.parameters=R||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,O(this,"init"),A||T||this.addLabel()}return v.prototype.addLabel=function(){var x=this,w=x.axis,A=w.options,T=w.chart,R=w.categories,k=w.logarithmic,r=w.names,p=x.pos,o=C(x.options&&x.options.labels,A.labels),h=w.tickPositions,t=p===h[0],c=p===h[h.length-1],i=(!o.step||1===o.step)&&1===w.tickInterval;h=h.info;var d,s=x.label;if(R=this.parameters.category||(R?C(R[p],r[p],p):p),k&&g(R)&&(R=tt(k.lin2log(R))),w.dateTime)if(h)var a=T.time.resolveDTLFormat(A.dateTimeLabelFormats[!A.grid&&h.higherRanks[p]||h.unitName]),m=a.main;else g(R)&&(m=w.dateTime.getXDateFormat(R,A.dateTimeLabelFormats||{}));x.isFirst=t,x.isLast=c;var b={axis:w,chart:T,dateTimeLabelFormat:m,isFirst:t,isLast:c,pos:p,tick:x,tickPositionInfo:h,value:R};O(this,"labelFormat",b);var Y=function(e){return o.formatter?o.formatter.call(e,e):o.format?(e.text=w.defaultLabelFormatter.call(e,e),G.format(o.format,e,T)):w.defaultLabelFormatter.call(e,e)};A=Y.call(b,b);var B=a&&a.list;x.shortenLabel=B?function(){for(d=0;d<B.length;d++)if(_(b,{dateTimeLabelFormat:B[d]}),s.attr({text:Y.call(b,b)}),s.getBBox().width<w.getSlotWidth(x)-2*o.padding)return;s.attr({text:""})}:void 0,i&&w._addedPlotLB&&x.moveLabel(A,o),$(s)||x.movedLabel?s&&s.textStr!==A&&!i&&(!s.textWidth||o.style.width||s.styles.width||s.css({width:null}),s.attr({text:A}),s.textPxLength=s.getBBox().width):(x.label=s=x.createLabel({x:0,y:0},A,o),x.rotation=0)},v.prototype.createLabel=function(x,w,A){var T=this.axis,R=T.chart;return(x=$(w)&&A.enabled?R.renderer.text(w,x.x,x.y,A.useHTML).add(T.labelGroup):null)&&(R.styledMode||x.css(f(A.style)),x.textPxLength=x.getBBox().width),x},v.prototype.destroy=function(){N(this,this.axis)},v.prototype.getPosition=function(x,w,A,T){var R=this.axis,k=R.chart,r=T&&k.oldChartHeight||k.chartHeight;return(x={x:x?tt(R.translate(w+A,void 0,void 0,T)+R.transB):R.left+R.offset+(R.opposite?(T&&k.oldChartWidth||k.chartWidth)-R.right-R.left:0),y:x?r-R.bottom+R.offset-(R.opposite?R.height:0):tt(r-R.translate(w+A,void 0,void 0,T)-R.transB)}).y=et(x.y,-1e5,1e5),O(this,"afterGetPosition",{pos:x}),x},v.prototype.getLabelPosition=function(x,w,A,T,R,k,r,p){var o=this.axis,h=o.transA,t=o.isLinked&&o.linkedParent?o.linkedParent.reversed:o.reversed,c=o.staggerLines,i=o.tickRotCorr||{x:0,y:0},s=T||o.reserveSpaceDefault?0:-o.labelOffset*("center"===o.labelAlign?.5:1),d={};return A=0===o.side?A.rotation?-8:-A.getBBox().height:2===o.side?i.y+8:Math.cos(A.rotation*it)*(i.y-A.getBBox(!1,0).height/2),$(R.y)&&(A=0===o.side&&o.horiz?R.y+A:R.y),x=x+R.x+s+i.x-(k&&T?k*h*(t?-1:1):0),w=w+A-(k&&!T?k*h*(t?1:-1):0),c&&(T=r/(p||1)%c,o.opposite&&(T=c-T-1),w+=o.labelOffset/c*T),d.x=x,d.y=Math.round(w),O(this,"afterGetLabelPosition",{pos:d,tickmarkOffset:k,index:r}),d},v.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},v.prototype.getMarkPath=function(x,w,A,T,R,k){return k.crispLine([["M",x,w],["L",x+(R?0:-A),w+(R?A:0)]],T)},v.prototype.handleOverflow=function(x){var w=this.axis,A=w.options.labels,T=x.x,R=w.chart.chartWidth,k=w.chart.spacing,r=C(w.labelLeft,Math.min(w.pos,k[3]));k=C(w.labelRight,Math.max(w.isRadial?0:w.pos+w.len,R-k[1]));var a,p=this.label,o=this.rotation,h={left:0,center:.5,right:1}[w.labelAlign||p.attr("align")],t=p.getBBox().width,c=w.getSlotWidth(this),i={},s=c,d=1;o||"justify"!==A.overflow?0>o&&T-h*t<r?a=Math.round(T/Math.cos(o*it)-r):0<o&&T+h*t>k&&(a=Math.round((R-T)/Math.cos(o*it))):(R=T+(1-h)*t,T-h*t<r?s=x.x+s*(1-h)-r:R>k&&(s=k-x.x+s*h,d=-1),(s=Math.min(c,s))<c&&"center"===w.labelAlign&&(x.x+=d*(c-s-h*(c-Math.min(t,s)))),(t>s||w.autoRotation&&(p.styles||{}).width)&&(a=s)),a&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(a)+"px",(A.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))},v.prototype.moveLabel=function(x,w){var A=this,T=A.label,R=A.axis,k=R.reversed,r=!1;if(T&&T.textStr===x?(A.movedLabel=T,r=!0,delete A.label):y(R.ticks,function(o){r||o.isNew||o===A||!o.label||o.label.textStr!==x||(A.movedLabel=o.label,r=!0,o.labelPos=A.movedLabel.xy,delete o.label)}),!r&&(A.labelPos||T)){var p=A.labelPos||T.xy;A.movedLabel=A.createLabel({x:T=R.horiz?k?0:R.width+R.left:p.x,y:R=R.horiz?p.y:k?R.width+R.left:0},x,w),A.movedLabel&&A.movedLabel.attr({opacity:0})}},v.prototype.render=function(x,w,A){var T=this.axis,R=T.horiz,k=this.pos,r=C(this.tickmarkOffset,T.tickmarkOffset);r=(k=this.getPosition(R,k,r,w)).x,T=R&&r===T.pos+T.len||!R&&k.y===T.pos?-1:1,R=C(A,this.label&&this.label.newOpacity,1),A=C(A,1),this.isActive=!0,this.renderGridLine(w,A,T),this.renderMark(k,A,T),this.renderLabel(k,w,R,x),this.isNew=!1,O(this,"afterRender")},v.prototype.renderGridLine=function(x,w,A){var T=this.axis,R=T.options,k={},r=this.pos,p=this.type,o=C(this.tickmarkOffset,T.tickmarkOffset),h=T.chart.renderer,t=this.gridLine,c=R.gridLineWidth,i=R.gridLineColor,s=R.gridLineDashStyle;"minor"===this.type&&(c=R.minorGridLineWidth,i=R.minorGridLineColor,s=R.minorGridLineDashStyle),t||(T.chart.styledMode||(k.stroke=i,k["stroke-width"]=c||0,k.dashstyle=s),p||(k.zIndex=1),x&&(w=0),this.gridLine=t=h.path().attr(k).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(T.gridGroup)),t&&(A=T.getPlotLinePath({value:r+o,lineWidth:t.strokeWidth()*A,force:"pass",old:x,acrossPanes:!1}))&&t[x||this.isNew?"attr":"animate"]({d:A,opacity:w})},v.prototype.renderMark=function(x,w,A){var T=this.axis,R=T.options,k=T.chart.renderer,r=this.type,p=T.tickSize(r?r+"Tick":"tick"),o=x.x;x=x.y;var h=C(R["minor"!==r?"tickWidth":"minorTickWidth"],!r&&T.isXAxis?1:0);R=R["minor"!==r?"tickColor":"minorTickColor"];var t=this.mark,c=!t;p&&(T.opposite&&(p[0]=-p[0]),t||(this.mark=t=k.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(T.axisGroup),T.chart.styledMode||t.attr({stroke:R,"stroke-width":h})),t[c?"attr":"animate"]({d:this.getMarkPath(o,x,p[0],t.strokeWidth()*A,T.horiz,k),opacity:w}))},v.prototype.renderLabel=function(x,w,A,T){var R=this.axis,k=R.horiz,r=R.options,p=this.label,o=r.labels,h=o.step;R=C(this.tickmarkOffset,R.tickmarkOffset);var t=x.x;x=x.y;var c=!0;p&&g(t)&&(p.xy=x=this.getLabelPosition(t,x,p,k,o,R,T,h),this.isFirst&&!this.isLast&&!r.showFirstLabel||this.isLast&&!this.isFirst&&!r.showLastLabel?c=!1:!k||o.step||o.rotation||w||0===A||this.handleOverflow(x),h&&T%h&&(c=!1),c&&g(x.y)?(x.opacity=A,p[this.isNewLabel?"attr":"animate"](x).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))},v.prototype.replaceMovedLabel=function(){var x=this.label,w=this.axis,A=w.reversed;x&&!this.isNew&&(x.animate({x:w.horiz?A?w.left:w.width+w.left:x.xy.x,y:A=w.horiz?x.xy.y:A?w.width+w.top:w.top,opacity:0},void 0,x.destroy),delete this.label),w.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},v}()}),ct(U,"Core/Axis/Axis.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/AxisDefaults.js"],U["Core/Color/Color.js"],U["Core/Defaults.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Axis/Tick.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt,$,N){var _=G.animObject,O=it.defaultOptions,g=et.registerEventOptions,f=tt.deg2rad,y=N.arrayMax,C=N.arrayMin,v=N.clamp,x=N.correctFloat,w=N.defined,A=N.destroyObjectProperties,T=N.erase,R=N.error,k=N.extend,r=N.fireEvent,p=N.isArray,o=N.isNumber,h=N.isString,t=N.merge,c=N.normalizeTickInterval,i=N.objectEach,s=N.pick,d=N.relativeLength,a=N.removeEvent,m=N.splat,b=N.syncTimeout,Y=function(B,e){return c(e,void 0,void 0,s(B.options.allowDecimals,.5>e||void 0!==B.tickAmount),!!B.tickAmount)};return function(){function B(e,l){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(e,l)}return B.prototype.init=function(e,l){var P=l.isX;this.chart=e,this.horiz=e.inverted&&!this.isZAxis?!P:P,this.isXAxis=P,this.coll=this.coll||(P?"xAxis":"yAxis"),r(this,"init",{userOptions:l}),this.opposite=s(l.opposite,this.opposite),this.side=s(l.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(l);var I=this.options,L=I.labels,n=I.type;this.userOptions=l,this.minPixelPadding=0,this.reversed=s(I.reversed,this.reversed),this.visible=I.visible,this.zoomEnabled=I.zoomEnabled,this.hasNames="category"===n||!0===I.categories,this.categories=I.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=w(I.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=I.minRange||I.maxZoom,this.range=I.range,this.offset=I.offset||0,this.min=this.max=null,l=s(I.crosshair,m(e.options.tooltip.crosshairs)[P?0:1]),this.crosshair=!0===l?{}:l,-1===e.axes.indexOf(this)&&(P?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),e[this.coll].push(this)),this.series=this.series||[],e.inverted&&!this.isZAxis&&P&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=o(L.rotation)?L.rotation:void 0,g(this,I),r(this,"afterInit")},B.prototype.setOptions=function(e){this.options=t(F.defaultXAxisOptions,"yAxis"===this.coll&&F.defaultYAxisOptions,[F.defaultTopAxisOptions,F.defaultRightAxisOptions,F.defaultBottomAxisOptions,F.defaultLeftAxisOptions][this.side],t(O[this.coll],e)),r(this,"afterSetOptions",{userOptions:e})},B.prototype.defaultLabelFormatter=function(e){var l=this.axis;e=this.chart.numberFormatter;var P=o(this.value)?this.value:NaN,I=l.chart.time,L=this.dateTimeLabelFormat,n=O.lang,S=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;var u=l.logarithmic?Math.abs(P):l.tickInterval,H=S&&S.length;if(l.categories)var D="".concat(this.value);else if(L)D=I.dateFormat(L,P);else if(H&&1e3<=u)for(;H--&&typeof D>"u";)u>=(l=Math.pow(n,H+1))&&10*P%l==0&&null!==S[H]&&0!==P&&(D=e(P/l,-1)+S[H]);return typeof D>"u"&&(D=1e4<=Math.abs(P)?e(P,-1):e(P,-1,void 0,"")),D},B.prototype.getSeriesExtremes=function(){var P,e=this,l=e.chart;r(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(I){if(I.visible||!l.options.chart.ignoreHiddenSeries){var L=I.options,n=L.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=n&&(n=null),e.isXAxis){if((L=I.xData).length){L=e.logarithmic?L.filter(e.validatePositiveValue):L;var S=(P=I.getXExtremes(L)).min,u=P.max;o(S)||S instanceof Date||(L=L.filter(o),S=(P=I.getXExtremes(L)).min,u=P.max),L.length&&(e.dataMin=Math.min(s(e.dataMin,S),S),e.dataMax=Math.max(s(e.dataMax,u),u))}}else I=I.applyExtremes(),o(I.dataMin)&&(S=I.dataMin,e.dataMin=Math.min(s(e.dataMin,S),S)),o(I.dataMax)&&(u=I.dataMax,e.dataMax=Math.max(s(e.dataMax,u),u)),w(n)&&(e.threshold=n),(!L.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),r(this,"afterGetSeriesExtremes")},B.prototype.translate=function(e,l,P,I,L,n){var S=this.linkedParent||this,u=I&&S.old?S.old.min:S.min;if(!o(u))return NaN;var H=S.minPixelPadding;L=(S.isOrdinal||S.brokenAxis&&S.brokenAxis.hasBreaks||S.logarithmic&&L)&&S.lin2val;var D=1,W=0;return(I=I&&S.old?S.old.transA:S.transA)||(I=S.transA),P&&(D*=-1,W=S.len),S.reversed&&(W-=(D*=-1)*(S.sector||S.len)),l?(n=(e*D+W-H)/I+u,L&&(n=S.lin2val(n))):(L&&(e=S.val2lin(e)),e=D*(e-u)*I,n=(S.isRadial?e:x(e))+W+D*H+(o(n)?I*n:0)),n},B.prototype.toPixels=function(e,l){return this.translate(e,!1,!this.horiz,void 0,!0)+(l?0:this.pos)},B.prototype.toValue=function(e,l){return this.translate(e-(l?0:this.pos),!0,!this.horiz,void 0,!0)},B.prototype.getPlotLinePath=function(e){function l(z,E,j){return"pass"!==q&&(z<E||z>j)&&(q?z=v(z,E,j):Q=!0),z}var st,nt,rt,V,Q,P=this,I=P.chart,L=P.left,n=P.top,S=e.old,u=e.value,H=e.lineWidth,D=S&&I.oldChartHeight||I.chartHeight,W=S&&I.oldChartWidth||I.chartWidth,X=P.transB,Z=e.translatedValue,q=e.force;return r(this,"getPlotLinePath",e={value:u,lineWidth:H,old:S,force:q,acrossPanes:e.acrossPanes,translatedValue:Z},function(z){Z=s(Z,P.translate(u,void 0,void 0,S)),Z=v(Z,-1e5,1e5),st=rt=Math.round(Z+X),nt=V=Math.round(D-Z-X),o(Z)?P.horiz?(nt=n,V=D-P.bottom,st=rt=l(st,L,L+P.width)):(st=L,rt=W-P.right,nt=V=l(nt,n,n+P.height)):(Q=!0,q=!1),z.path=Q&&!q?null:I.renderer.crispLine([["M",st,nt],["L",rt,V]],H||1)}),e.path},B.prototype.getLinearTickPositions=function(e,l,P){var I=x(Math.floor(l/e)*e);P=x(Math.ceil(P/e)*e);var n,L=[];if(x(I+e)===I&&(n=20),this.single)return[l];for(l=I;l<=P&&(L.push(l),(l=x(l+e,n))!==S);)var S=l;return L},B.prototype.getMinorTickInterval=function(){var e=this.options;return!0===e.minorTicks?s(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval},B.prototype.getMinorTickPositions=function(){var e=this.options,l=this.tickPositions,P=this.minorTickInterval,I=this.pointRangePadding||0,L=this.min-I,n=(I=this.max+I)-L,S=[];if(n&&n/P<this.len/3){var u=this.logarithmic;if(u)this.paddedTicks.forEach(function(H,D,W){D&&S.push.apply(S,u.getLogTickPositions(P,W[D-1],W[D],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())S=S.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(P),L,I,e.startOfWeek));else for(e=L+(l[0]-L)%P;e<=I&&e!==S[0];e+=P)S.push(e)}return 0!==S.length&&this.trimTicks(S),S},B.prototype.adjustForMinRange=function(){var n,S,u,H,e=this.options,l=this.logarithmic,P=this.min,I=this.max,L=0;if(this.isXAxis&&typeof this.minRange>"u"&&!l&&(w(e.min)||w(e.max)||w(e.floor)||w(e.ceiling)?this.minRange=null:(this.series.forEach(function(Z){if(u=Z.xData,H=Z.xIncrement?1:u.length-1,1<u.length)for(n=H;0<n;n--)S=u[n]-u[n-1],(!L||S<L)&&(L=S)}),this.minRange=Math.min(5*L,this.dataMax-this.dataMin))),I-P<this.minRange){var D=this.dataMax-this.dataMin>=this.minRange,W=this.minRange,X=(W-I+P)/2;X=[P-X,s(e.min,P-X)],D&&(X[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),I=[(P=y(X))+W,s(e.max,P+W)],D&&(I[2]=l?l.log2lin(this.dataMax):this.dataMax),(I=C(I))-P<W&&(X[0]=I-W,X[1]=s(e.min,I-W),P=y(X))}this.min=P,this.max=I},B.prototype.getClosest=function(){var e;return this.categories?e=1:this.series.forEach(function(l){var P=l.closestPointRange,I=l.visible||!l.chart.options.chart.ignoreHiddenSeries;!l.noSharedTooltip&&w(P)&&I&&(e=w(e)?Math.min(e,P):P)}),e},B.prototype.nameToX=function(e){var l=p(this.options.categories),P=l?this.categories:this.names,I=e.options.x;if(e.series.requireSorting=!1,w(I)||(I=this.options.uniqueNames&&P?l?P.indexOf(e.name):s(P.keys[e.name],-1):e.series.autoIncrement()),-1===I){if(!l&&P)var L=P.length}else L=I;return typeof L<"u"?(this.names[L]=e.name,this.names.keys[e.name]=L):e.x&&(L=e.x),L},B.prototype.updateNames=function(){var e=this,l=this.names;0<l.length&&(Object.keys(l.keys).forEach(function(P){delete l.keys[P]}),l.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(P){P.xIncrement=null,(!P.points||P.isDirtyData)&&(e.max=Math.max(e.max,P.xData.length-1),P.processData(),P.generatePoints()),P.data.forEach(function(I,L){if(I&&I.options&&typeof I.name<"u"){var n=e.nameToX(I);typeof n<"u"&&n!==I.x&&(I.x=n,P.xData[L]=n)}})}))},B.prototype.setAxisTranslation=function(){var H,e=this,l=e.max-e.min,P=e.linkedParent,I=!!e.categories,L=e.isXAxis,n=e.axisPointRange||0,S=0,u=0;if(L||I||n){var D=e.getClosest();P?(S=P.minPointOffset,u=P.pointRangePadding):e.series.forEach(function(W){var X=I?1:L?s(W.options.pointRange,D,0):e.axisPointRange||0,Z=W.options.pointPlacement;n=Math.max(n,X),(!e.single||I)&&(W=W.is("xrange")?!L:L,S=Math.max(S,W&&h(Z)?0:X/2),u=Math.max(u,W&&"on"===Z?0:X))}),e.minPointOffset=S*=P=e.ordinal&&e.ordinal.slope&&D?e.ordinal.slope/D:1,e.pointRangePadding=u*=P,e.pointRange=Math.min(n,e.single&&I?1:l),L&&(e.closestPointRange=D)}e.translationSlope=e.transA=H=e.staticScale||e.len/(l+u||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=H*S,r(this,"afterSetAxisTranslation")},B.prototype.minFromRange=function(){return this.max-this.range},B.prototype.setTickInterval=function(e){var l=this.chart,P=this.logarithmic,I=this.options,L=this.isXAxis,n=this.isLinked,S=I.tickPixelInterval,u=this.categories,H=this.softThreshold,D=I.maxPadding,W=I.minPadding,X=o(I.tickInterval)&&0<=I.tickInterval?I.tickInterval:void 0,Z=o(this.threshold)?this.threshold:null;this.dateTime||u||n||this.getTickAmount();var q=s(this.userMin,I.min),st=s(this.userMax,I.max);if(n){this.linkedParent=l[this.coll][I.linkedTo];var nt=this.linkedParent.getExtremes();this.min=s(nt.min,nt.dataMin),this.max=s(nt.max,nt.dataMax),I.type!==this.linkedParent.options.type&&R(11,1,l)}else{if(H&&w(Z))if(this.dataMin>=Z)nt=Z,W=0;else if(this.dataMax<=Z){var rt=Z;D=0}this.min=s(q,nt,this.dataMin),this.max=s(st,rt,this.dataMax)}if(P&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,s(this.dataMin,this.min))&&R(10,1,l),this.min=x(P.log2lin(this.min),16),this.max=x(P.log2lin(this.max),16)),this.range&&w(this.max)&&(this.userMin=this.min=q=Math.max(this.dataMin,this.minFromRange()),this.userMax=st=this.max,this.range=null),r(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(u||this.axisPointRange||this.stacking&&this.stacking.usePercentage||n)&&w(this.min)&&w(this.max)&&(l=this.max-this.min)&&(!w(q)&&W&&(this.min-=l*W),!w(st)&&D&&(this.max+=l*D)),o(this.userMin)||(o(I.softMin)&&I.softMin<this.min&&(this.min=q=I.softMin),o(I.floor)&&(this.min=Math.max(this.min,I.floor))),o(this.userMax)||(o(I.softMax)&&I.softMax>this.max&&(this.max=st=I.softMax),o(I.ceiling)&&(this.max=Math.min(this.max,I.ceiling))),H&&w(this.dataMin)&&(Z=Z||0,!w(q)&&this.min<Z&&this.dataMin>=Z?this.min=this.options.minRange?Math.min(Z,this.max-this.minRange):Z:!w(st)&&this.max>Z&&this.dataMax<=Z&&(this.max=this.options.minRange?Math.max(Z,this.min+this.minRange):Z)),o(this.min)&&o(this.max)&&!this.chart.polar&&this.min>this.max&&(w(this.options.min)?this.max=this.min:w(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:n&&this.linkedParent&&!X&&S===this.linkedParent.options.tickPixelInterval?X=this.linkedParent.tickInterval:s(X,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(this.max-this.min)*S/Math.max(this.len,S)),L&&!e){var V=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Q){Q.forceCrop=Q.forceCropping&&Q.forceCropping(),Q.processData(V)}),r(this,"postProcessData",{hasExtremesChanged:V})}this.setAxisTranslation(),r(this,"initialAxisTranslation"),this.pointRange&&!X&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),e=s(I.minTickInterval,this.dateTime&&!this.series.some(function(Q){return Q.noSharedTooltip})?this.closestPointRange:0),!X&&this.tickInterval<e&&(this.tickInterval=e),this.dateTime||this.logarithmic||X||(this.tickInterval=Y(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},B.prototype.setTickPositions=function(){var u,e=this.options,l=e.tickPositions,P=e.tickPositioner,I=this.getMinorTickInterval(),L=this.hasVerticalPanning(),n="colorAxis"===this.coll,S=(n||!L)&&e.startOnTick;if(L=(n||!L)&&e.endOnTick,n=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===I&&this.tickInterval?this.tickInterval/5:I,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),l)n=l.slice();else if(o(this.min)&&o(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(I=e=this.tickInterval;I<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=Y(this,I*=1.1);else n=[this.min,this.max],R(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),P&&(this.tickPositions=n,(u=P.apply(this,[this.min,this.max]))&&(n=u))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,S,L),!this.isLinked&&o(this.min)&&o(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some(function(H){return H.is("heatmap")&&"between"===H.options.pointPlacement})&&(this.min-=.5,this.max+=.5),l||u||this.adjustTickAmount()),r(this,"afterSetTickPositions")},B.prototype.trimTicks=function(e,l,P){var I=e[0],L=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(r(this,"trimTicks"),!this.isLinked){if(l&&I!==-1/0)this.min=I;else for(;this.min-n>e[0];)e.shift();if(P)this.max=L;else for(;this.max+n<e[e.length-1];)e.pop();0===e.length&&w(I)&&!this.options.tickPositions&&e.push((L+I)/2)}},B.prototype.alignToOthers=function(){var n,e=this,l=[this],P=e.options,I="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,L=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&P.alignTicks||I)&&!1!==P.startOnTick&&!1!==P.endOnTick&&!e.logarithmic){var S=function(D){var W=D.options;return[D.horiz?W.left:W.top,W.width,W.height,W.pane].join()},u=S(this);this.chart[this.coll].forEach(function(D){var W=D.series;W.length&&W.some(function(X){return X.visible})&&D!==e&&S(D)===u&&(n=!0,l.push(D))})}if(n&&I){l.forEach(function(D){D=D.getThresholdAlignment(e),o(D)&&L.push(D)});var H=1<L.length?L.reduce(function(D,W){return D+W},0)/L.length:void 0;l.forEach(function(D){D.thresholdAlignment=H})}return n},B.prototype.getThresholdAlignment=function(e){if((!o(this.dataMin)||this!==e&&this.series.some(function(l){return l.isDirty||l.isDirtyData}))&&this.getSeriesExtremes(),o(this.threshold))return e=v((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(e=1-e),e},B.prototype.getTickAmount=function(){var e=this.options,l=e.tickPixelInterval,P=e.tickAmount;!w(e.tickInterval)&&!P&&this.len<l&&!this.isRadial&&!this.logarithmic&&e.startOnTick&&e.endOnTick&&(P=2),!P&&this.alignToOthers()&&(P=Math.ceil(this.len/l)+1),4>P&&(this.finalTickAmt=P,P=5),this.tickAmount=P},B.prototype.adjustTickAmount=function(){var e=this,l=e.finalTickAmt,P=e.max,I=e.min,L=e.options,n=e.tickPositions,S=e.tickAmount,u=e.thresholdAlignment,H=n&&n.length,D=s(e.threshold,e.softThreshold?0:null),W=e.tickInterval;if(o(u)){var X=.5>u?Math.ceil(u*(S-1)):Math.floor(u*(S-1));L.reversed&&(X=S-1-X)}if(e.hasData()&&o(I)&&o(P)){if(u=function(){e.transA*=(H-1)/(S-1),e.min=L.startOnTick?n[0]:Math.min(I,n[0]),e.max=L.endOnTick?n[n.length-1]:Math.max(P,n[n.length-1])},o(X)&&o(e.threshold)){for(;n[X]!==D||n.length!==S||n[0]>I||n[n.length-1]<P;){for(n.length=0,n.push(e.threshold);n.length<S;)void 0===n[X]||n[X]>e.threshold?n.unshift(x(n[0]-W)):n.push(x(n[n.length-1]+W));if(W>8*e.tickInterval)break;W*=2}u()}else if(H<S){for(;n.length<S;)n.length%2||I===D?n.push(x(n[n.length-1]+W)):n.unshift(x(n[0]-W));u()}if(w(l)){for(W=D=n.length;W--;)(3===l&&W%2==1||2>=l&&0<W&&W<D-1)&&n.splice(W,1);e.finalTickAmt=void 0}}},B.prototype.setScale=function(){var e=!1,l=!1;this.series.forEach(function(I){e=e||I.isDirtyData||I.isDirty,l=l||I.xAxis&&I.xAxis.isDirty||!1}),this.setAxisSize();var P=this.len!==(this.old&&this.old.len);P||e||l||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=P||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),e&&this.panningState&&(this.panningState.isDirty=!0),r(this,"afterSetScale")},B.prototype.setExtremes=function(e,l,P,I,L){var n=this,S=n.chart;P=s(P,!0),n.series.forEach(function(u){delete u.kdTree}),L=k(L,{min:e,max:l}),r(n,"setExtremes",L,function(){n.userMin=e,n.userMax=l,n.eventArgs=L,P&&S.redraw(I)})},B.prototype.zoom=function(e,l){var P=this,I=this.dataMin,L=this.dataMax,n=this.options,S=Math.min(I,s(n.min,I)),u=Math.max(L,s(n.max,L));return r(this,"zoom",e={newMin:e,newMax:l},function(H){var D=H.newMin,W=H.newMax;(D!==P.min||W!==P.max)&&(P.allowZoomOutside||(w(I)&&(D<S&&(D=S),D>u&&(D=u)),w(L)&&(W<S&&(W=S),W>u&&(W=u))),P.displayBtn=typeof D<"u"||typeof W<"u",P.setExtremes(D,W,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),e.zoomed},B.prototype.setAxisSize=function(){var e=this.chart,l=this.options,P=l.offsets||[0,0,0,0],I=this.horiz,L=this.width=Math.round(d(s(l.width,e.plotWidth-P[3]+P[1]),e.plotWidth)),n=this.height=Math.round(d(s(l.height,e.plotHeight-P[0]+P[2]),e.plotHeight)),S=this.top=Math.round(d(s(l.top,e.plotTop+P[0]),e.plotHeight,e.plotTop));l=this.left=Math.round(d(s(l.left,e.plotLeft+P[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-n-S,this.right=e.chartWidth-L-l,this.len=Math.max(I?L:n,0),this.pos=I?l:S},B.prototype.getExtremes=function(){var e=this.logarithmic;return{min:e?x(e.lin2log(this.min)):this.min,max:e?x(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},B.prototype.getThreshold=function(e){var l=this.logarithmic,P=l?l.lin2log(this.min):this.min;return l=l?l.lin2log(this.max):this.max,null===e||e===-1/0?e=P:e===1/0?e=l:P>e?e=P:l<e&&(e=l),this.translate(e,0,1,0,1)},B.prototype.autoLabelAlign=function(e){var l=(s(e,0)-90*this.side+720)%360;return r(this,"autoLabelAlign",e={align:"center"},function(P){15<l&&165>l?P.align="right":195<l&&345>l&&(P.align="left")}),e.align},B.prototype.tickSize=function(e){var l=this.options,P=s(l["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),I=l["tick"===e?"tickLength":"minorTickLength"];if(P&&I){"inside"===l[e+"Position"]&&(I=-I);var L=[I,P]}return r(this,"afterTickSize",e={tickSize:L}),e.tickSize},B.prototype.labelMetrics=function(){var e=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[e]&&this.ticks[e].label)},B.prototype.unsquish=function(){var e=this.options.labels,l=this.horiz,P=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/P),L=e.rotation,n=this.labelMetrics(),S=Math.max(this.max-this.min,0),u=function(rt){var V=rt/(I||1);return(V=1<V?Math.ceil(V):1)*P>S&&rt!==1/0&&I!==1/0&&S&&(V=Math.ceil(S/P)),x(V*P)},H=P,D=Number.MAX_VALUE;if(l){if(!e.staggerLines)if(o(L))var W=[L];else I<e.autoRotationLimit&&(W=e.autoRotation);if(W)for(var X=l=void 0,Z=0,q=W;Z<q.length;Z++){var st=q[Z];if((st===L||st&&-90<=st&&90>=st)&&(X=(l=u(Math.abs(n.h/Math.sin(f*st))))+Math.abs(st/360))<D){D=X;var nt=st;H=l}}}else H=u(n.h);return this.autoRotation=W,this.labelRotation=s(nt,o(L)?L:0),e.step?P:H},B.prototype.getSlotWidth=function(e){var l=this.chart,P=this.horiz,I=this.options.labels,L=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=l.margin[3];if(e&&o(e.slotWidth))return e.slotWidth;if(P&&2>I.step)return I.rotation?0:(this.staggerLines||1)*this.len/L;if(!P){if(void 0!==(e=I.style.width))return parseInt(String(e),10);if(n)return n-l.spacing[3]}return.33*l.chartWidth},B.prototype.renderUnsquish=function(){var e=this.chart,l=e.renderer,P=this.tickPositions,I=this.ticks,L=this.options.labels,n=L.style,S=this.horiz,u=this.getSlotWidth(),H=Math.max(1,Math.round(u-2*L.padding)),D={},W=this.labelMetrics(),X=n.textOverflow,Z=0;if(h(L.rotation)||(D.rotation=L.rotation||0),P.forEach(function(rt){(rt=I[rt]).movedLabel&&rt.replaceMovedLabel(),rt&&rt.label&&rt.label.textPxLength>Z&&(Z=rt.label.textPxLength)}),this.maxLabelLength=Z,this.autoRotation)Z>H&&Z>W.h?D.rotation=this.labelRotation:this.labelRotation=0;else if(u){var q=H;if(!X){var st="clip";for(H=P.length;!S&&H--;){var nt=P[H];(nt=I[nt].label)&&(nt.styles&&"ellipsis"===nt.styles.textOverflow?nt.css({textOverflow:"clip"}):nt.textPxLength>u&&nt.css({width:u+"px"}),nt.getBBox().height>this.len/P.length-(W.h-W.f)&&(nt.specificTextOverflow="ellipsis"))}}}D.rotation&&(q=Z>.5*e.chartHeight?.33*e.chartHeight:Z,X||(st="ellipsis")),(this.labelAlign=L.align||this.autoLabelAlign(this.labelRotation))&&(D.align=this.labelAlign),P.forEach(function(rt){var V=(rt=I[rt])&&rt.label,Q=n.width,z={};V&&(V.attr(D),rt.shortenLabel?rt.shortenLabel():q&&!Q&&"nowrap"!==n.whiteSpace&&(q<V.textPxLength||"SPAN"===V.element.tagName)?(z.width=q+"px",X||(z.textOverflow=V.specificTextOverflow||st),V.css(z)):V.styles&&V.styles.width&&!z.width&&!Q&&V.css({width:null}),delete V.specificTextOverflow,rt.rotation=D.rotation)},this),this.tickRotCorr=l.rotCorr(W.b,this.labelRotation||0,0!==this.side)},B.prototype.hasData=function(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&w(this.min)&&w(this.max)},B.prototype.addTitle=function(e){var S,I=this.opposite,L=this.options.title,n=this.chart.styledMode;this.axisTitle||((S=L.textAlign)||(S=(this.horiz?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[L.align]),this.axisTitle=this.chart.renderer.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:S}).addClass("highcharts-axis-title"),n||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)},B.prototype.generateTick=function(e){var l=this.ticks;l[e]?l[e].addLabel():l[e]=new $(this,e)},B.prototype.getOffset=function(){var e=this,l=this,P=l.chart,I=l.horiz,L=l.options,n=l.side,S=l.ticks,u=l.tickPositions,H=l.coll,D=l.axisParent,W=P.renderer,X=P.inverted&&!l.isZAxis?[1,0,3,2][n]:n,Z=l.hasData(),q=L.title,st=L.labels,nt=P.axisOffset;P=P.clipOffset;var Q,rt=[-1,1,1,-1][n],V=L.className,z=0,E=0,j=0;if(l.showAxis=Q=Z||L.showEmpty,l.staggerLines=l.horiz&&st.staggerLines||void 0,!l.axisGroup){var K=function(ot,at,ht){return W.g(ot).attr({zIndex:ht}).addClass("highcharts-".concat(H.toLowerCase()).concat(at," ")+(e.isRadial?"highcharts-radial-axis".concat(at," "):"")+(V||"")).add(D)};l.gridGroup=K("grid","-grid",L.gridZIndex),l.axisGroup=K("axis","",L.zIndex),l.labelGroup=K("axis-labels","-labels",st.zIndex)}if(Z||l.isLinked?(u.forEach(function(ot){l.generateTick(ot)}),l.renderUnsquish(),l.reserveSpaceDefault=0===n||2===n||{1:"left",3:"right"}[n]===l.labelAlign,s(st.reserveSpace,"center"===l.labelAlign||null,l.reserveSpaceDefault)&&u.forEach(function(ot){j=Math.max(S[ot].getLabelSize(),j)}),l.staggerLines&&(j*=l.staggerLines),l.labelOffset=j*(l.opposite?-1:1)):i(S,function(ot,at){ot.destroy(),delete S[at]}),q&&q.text&&!1!==q.enabled&&(l.addTitle(Q),Q&&!1!==q.reserveSpace)){l.titleOffset=z=l.axisTitle.getBBox()[I?"height":"width"];var J=q.offset;E=w(J)?0:s(q.margin,I?5:10)}l.renderLine(),l.offset=rt*s(L.offset,nt[n]?nt[n]+(L.margin||0):0),l.tickRotCorr=l.tickRotCorr||{x:0,y:0},q=0===n?-l.labelMetrics().h:2===n?l.tickRotCorr.y:0,Z=Math.abs(j)+E,j&&(Z=Z-q+rt*(I?s(st.y,l.tickRotCorr.y+8*rt):st.x)),l.axisTitleMargin=s(J,Z),l.getMaxLabelDimensions&&(l.maxLabelDimensions=l.getMaxLabelDimensions(S,u)),"colorAxis"!==H&&(I=this.tickSize("tick"),nt[n]=Math.max(nt[n],(l.axisTitleMargin||0)+z+rt*l.offset,Z,u&&u.length&&I?I[0]+rt*l.offset:0),L=!l.axisLine||L.offset?0:2*Math.floor(l.axisLine.strokeWidth()/2),P[X]=Math.max(P[X],L)),r(this,"afterGetOffset")},B.prototype.getLinePath=function(e){var l=this.chart,P=this.opposite,I=this.offset,L=this.horiz,n=this.left+(P?this.width:0)+I;return I=l.chartHeight-this.bottom-(P?this.height:0)+I,P&&(e*=-1),l.renderer.crispLine([["M",L?this.left:n,L?I:this.top],["L",L?l.chartWidth-this.right:n,L?I:l.chartHeight-this.bottom]],e)},B.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},B.prototype.getTitlePosition=function(){var e=this.horiz,l=this.left,P=this.top,I=this.len,L=this.options.title,n=e?l:P,S=this.opposite,u=this.offset,H=L.x,D=L.y,W=this.axisTitle,X=this.chart.renderer.fontMetrics(L.style.fontSize,W);return W=W?Math.max(W.getBBox(!1,0).height-X.h-1,0):0,I={low:n+(e?0:I),middle:n+I/2,high:n+(e?I:0)}[L.align],l=(e?P+this.height:l)+(e?1:-1)*(S?-1:1)*(this.axisTitleMargin||0)+[-W,W,X.f,-W][this.side],r(this,"afterGetTitlePosition",{titlePosition:e={x:e?I+H:l+(S?this.width:0)+u+H,y:e?l+D-(S?this.height:0)+u:I+D}}),e},B.prototype.renderMinorTick=function(e,l){var P=this.minorTicks;P[e]||(P[e]=new $(this,e,"minor")),l&&P[e].isNew&&P[e].render(null,!0),P[e].render(null,!1,1)},B.prototype.renderTick=function(e,l,P){var I=this.ticks;(!this.isLinked||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(I[e]||(I[e]=new $(this,e)),P&&I[e].isNew&&I[e].render(l,!0,-1),I[e].render(l))},B.prototype.render=function(){var rt,V,e=this,l=e.chart,P=e.logarithmic,I=e.options,L=e.isLinked,n=e.tickPositions,S=e.axisTitle,u=e.ticks,H=e.minorTicks,D=e.alternateBands,W=I.stackLabels,X=I.alternateGridColor,Z=e.tickmarkOffset,q=e.axisLine,st=e.showAxis,nt=_(l.renderer.globalAnimation);if(e.labelEdge.length=0,e.overlap=!1,[u,H,D].forEach(function(z){i(z,function(E){E.isActive=!1})}),e.hasData()||L){var Q=e.chart.hasRendered&&e.old&&o(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function(z){e.renderMinorTick(z,Q)}),n.length&&(n.forEach(function(z,E){e.renderTick(z,E,Q)}),Z&&(0===e.min||e.single)&&(u[-1]||(u[-1]=new $(e,-1,null,!0)),u[-1].render(-1))),X&&n.forEach(function(z,E){V=typeof n[E+1]<"u"?n[E+1]+Z:e.max-Z,E%2==0&&z<e.max&&V<=e.max+(l.polar?-Z:Z)&&(D[z]||(D[z]=new tt.PlotLineOrBand(e)),rt=z+Z,D[z].options={from:P?P.lin2log(rt):rt,to:P?P.lin2log(V):V,color:X,className:"highcharts-alternate-grid"},D[z].render(),D[z].isActive=!0)}),e._addedPlotLB||(e._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(z){e.addPlotBandOrLine(z)}))}[u,H,D].forEach(function(z){var E=[],j=nt.duration;i(z,function(K,J){K.isActive||(K.render(J,!1,0),K.isActive=!1,E.push(J))}),b(function(){for(var K=E.length;K--;)z[E[K]]&&!z[E[K]].isActive&&(z[E[K]].destroy(),delete z[E[K]])},z!==D&&l.hasRendered&&j?j:0)}),q&&(q[q.isPlaced?"animate":"attr"]({d:this.getLinePath(q.strokeWidth())}),q.isPlaced=!0,q[st?"show":"hide"](st)),S&&st&&(I=e.getTitlePosition(),S[S.isNew?"attr":"animate"](I),S.isNew=!1),W&&W.enabled&&e.stacking&&e.stacking.renderStackTotals(),e.old={len:e.len,max:e.max,min:e.min,transA:e.transA,userMax:e.userMax,userMin:e.userMin},e.isDirty=!1,r(this,"afterRender")},B.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})},B.prototype.getKeepProps=function(){return this.keepProps||B.keepProps},B.prototype.destroy=function(e){var l=this,P=l.plotLinesAndBands,I=this.eventOptions;if(r(this,"destroy",{keepEvents:e}),e||a(l),[l.ticks,l.minorTicks,l.alternateBands].forEach(function(n){A(n)}),P)for(e=P.length;e--;)P[e].destroy();for(var L in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(n){l[n]&&(l[n]=l[n].destroy())}),l.plotLinesAndBandsGroups)l.plotLinesAndBandsGroups[L]=l.plotLinesAndBandsGroups[L].destroy();i(l,function(n,S){-1===l.getKeepProps().indexOf(S)&&delete l[S]}),this.eventOptions=I},B.prototype.drawCrosshair=function(e,l){var n,P=this.crosshair,I=s(P&&P.snap,!0),L=this.chart,S=this.cross;if(r(this,"drawCrosshair",{e,point:l}),e||(e=this.cross&&this.cross.e),P&&!1!==(w(l)||!I)){if(I?w(l)&&(n=s("colorAxis"!==this.coll?l.crosshairPos:null,this.isXAxis?l.plotX:this.len-l.plotY)):n=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),w(n)){var u={value:l&&(this.isXAxis?l.x:s(l.stackY,l.y)),translatedValue:n};L.polar&&k(u,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:l}),u=this.getPlotLinePath(u)||null}if(!w(u))return void this.hideCrosshair();I=this.categories&&!this.isRadial,S||(this.cross=S=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(I?"category ":"thin ")+(P.className||"")).attr({zIndex:s(P.zIndex,2)}).add(),L.styledMode||(S.attr({stroke:P.color||(I?M.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":s(P.width,1)}).css({"pointer-events":"none"}),P.dashStyle&&S.attr({dashstyle:P.dashStyle}))),S.show().attr({d:u}),I&&!P.width&&S.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();r(this,"afterDrawCrosshair",{e,point:l})},B.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),r(this,"afterHideCrosshair")},B.prototype.hasVerticalPanning=function(){var e=this.chart.options.chart.panning;return!!(e&&e.enabled&&/y/.test(e.type))},B.prototype.validatePositiveValue=function(e){return o(e)&&0<e},B.prototype.update=function(e,l){var P=this.chart;e=t(this.userOptions,e),this.destroy(!0),this.init(P,e),P.isDirtyBox=!0,s(l,!0)&&P.redraw()},B.prototype.remove=function(e){for(var l=this.chart,P=this.coll,I=this.series,L=I.length;L--;)I[L]&&I[L].remove(!1);T(l.axes,this),T(l[P],this),l[P].forEach(function(n,S){n.options.index=n.userOptions.index=S}),this.destroy(),l.isDirtyBox=!0,s(e,!0)&&l.redraw()},B.prototype.setTitle=function(e,l){this.update({title:e},l)},B.prototype.setCategories=function(e,l){this.update({categories:e},l)},B.defaultOptions=F.defaultXAxisOptions,B.keepProps="extKey hcEvents names series userMax userMin".split(" "),B}()}),ct(U,"Core/Axis/DateTimeAxis.js",[U["Core/Utilities.js"]],function(G){var tt,F=G.addEvent,M=G.getMagnitude,it=G.normalizeTickInterval,et=G.timeUnits;return function($){function N(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function _(f){"datetime"!==f.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new g(this))}var O=[];$.compose=function(f){return-1===O.indexOf(f)&&(O.push(f),f.keepProps.push("dateTime"),f.prototype.getTimeTicks=N,F(f,"init",_)),f};var g=function(){function f(y){this.axis=y}return f.prototype.normalizeTimeTickInterval=function(y,C){var A,v=C||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],x=et[(C=v[v.length-1])[0]],w=C[1];for(A=0;A<v.length&&(x=et[(C=v[A])[0]],w=C[1],!(v[A+1]&&y<=(x*w[w.length-1]+et[v[A+1][0]])/2));A++);return x===et.year&&y<5*x&&(w=[1,2,5]),{unitRange:x,count:y=it(y/x,w,"year"===C[0]?Math.max(M(y/x),1):1),unitName:C[0]}},f.prototype.getXDateFormat=function(y,C){var v=this.axis,x=v.chart.time;return v.closestPointRange?x.getDateFormat(v.closestPointRange,y,v.options.startOfWeek,C)||x.resolveDTLFormat(C.year).main:x.resolveDTLFormat(C.day).main},f}();$.Additions=g}(tt||(tt={})),tt}),ct(U,"Core/Axis/LogarithmicAxis.js",[U["Core/Utilities.js"]],function(G){var et,F=G.addEvent,M=G.normalizeTickInterval,it=G.pick;return function(tt){function $(g){var f=this.logarithmic;"logarithmic"!==g.userOptions.type?this.logarithmic=void 0:f||(this.logarithmic=new O(this))}function N(){var g=this.logarithmic;g&&(this.lin2val=function(f){return g.lin2log(f)},this.val2lin=function(f){return g.log2lin(f)})}var _=[];tt.compose=function(g){return-1===_.indexOf(g)&&(_.push(g),g.keepProps.push("logarithmic"),F(g,"init",$),F(g,"afterInit",N)),g};var O=function(){function g(f){this.axis=f}return g.prototype.getLogTickPositions=function(f,y,C,v){var x=this.axis,w=x.len,A=x.options,T=[];if(v||(this.minorAutoInterval=void 0),.5<=f)f=Math.round(f),T=x.getLinearTickPositions(f,y,C);else if(.08<=f){var k,R=Math.floor(y),r=A=void 0;for(w=.3<f?[1,2,4]:.15<f?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];R<C+1&&!r;R++){var p=w.length;for(k=0;k<p&&!r;k++){var o=this.log2lin(this.lin2log(R)*w[k]);o>y&&(!v||A<=C)&&typeof A<"u"&&T.push(A),A>C&&(r=!0),A=o}}}else y=this.lin2log(y),C=this.lin2log(C),f=v?x.getMinorTickInterval():A.tickInterval,f=it("auto"===f?null:f,this.minorAutoInterval,A.tickPixelInterval/(v?5:1)*(C-y)/((v?w/x.tickPositions.length:w)||1)),f=M(f),T=x.getLinearTickPositions(f,y,C).map(this.log2lin),v||(this.minorAutoInterval=f/5);return v||(x.tickInterval=f),T},g.prototype.lin2log=function(f){return Math.pow(10,f)},g.prototype.log2lin=function(f){return Math.log(f)/Math.LN10},g}();tt.Additions=O}(et||(et={})),et}),ct(U,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[U["Core/Utilities.js"]],function(G){var et,F=G.erase,M=G.extend,it=G.isNumber;return function(tt){var N,$=[];tt.compose=function(O,g){return N||(N=O),-1===$.indexOf(g)&&($.push(g),M(g.prototype,_.prototype)),g};var _=function(){function O(){}return O.prototype.getPlotBandPath=function(g,f,y){void 0===y&&(y=this.options);var C=this.getPlotLinePath({value:f,force:!0,acrossPanes:y.acrossPanes}),v=[],x=this.horiz;if(f=!it(this.min)||!it(this.max)||g<this.min&&f<this.min||g>this.max&&f>this.max,g=this.getPlotLinePath({value:g,force:!0,acrossPanes:y.acrossPanes}),y=1,g&&C){if(f){var w=g.toString()===C.toString();y=0}for(f=0;f<g.length;f+=2){var A=g[f],T=g[f+1],R=C[f],k=C[f+1];"M"!==A[0]&&"L"!==A[0]||"M"!==T[0]&&"L"!==T[0]||"M"!==R[0]&&"L"!==R[0]||"M"!==k[0]&&"L"!==k[0]||(x&&R[1]===A[1]?(R[1]+=y,k[1]+=y):x||R[2]!==A[2]||(R[2]+=y,k[2]+=y),v.push(["M",A[1],A[2]],["L",T[1],T[2]],["L",k[1],k[2]],["L",R[1],R[2]],["Z"])),v.isFlat=w}}return v},O.prototype.addPlotBand=function(g){return this.addPlotBandOrLine(g,"plotBands")},O.prototype.addPlotLine=function(g){return this.addPlotBandOrLine(g,"plotLines")},O.prototype.addPlotBandOrLine=function(g,f){var y=this,C=this.userOptions,v=new N(this,g);if(this.visible&&(v=v.render()),v){if(this._addedPlotLB||(this._addedPlotLB=!0,(C.plotLines||[]).concat(C.plotBands||[]).forEach(function(w){y.addPlotBandOrLine(w)})),f){var x=C[f]||[];x.push(g),C[f]=x}this.plotLinesAndBands.push(v)}return v},O.prototype.removePlotBandOrLine=function(g){var f=this.plotLinesAndBands,y=this.options,C=this.userOptions;if(f){for(var v=f.length;v--;)f[v].id===g&&f[v].destroy();[y.plotLines||[],C.plotLines||[],y.plotBands||[],C.plotBands||[]].forEach(function(x){for(v=x.length;v--;)(x[v]||{}).id===g&&F(x,x[v])})}},O.prototype.removePlotBand=function(g){this.removePlotBandOrLine(g)},O.prototype.removePlotLine=function(g){this.removePlotBandOrLine(g)},O}()}(et||(et={})),et}),ct(U,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[U["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],U["Core/Utilities.js"]],function(G,F){var M=F.arrayMax,it=F.arrayMin,et=F.defined,tt=F.destroyObjectProperties,$=F.erase,N=F.fireEvent,_=F.merge,O=F.objectEach,g=F.pick;return function(){function f(y,C){this.axis=y,C&&(this.options=C,this.id=C.id)}return f.compose=function(y){return G.compose(f,y)},f.prototype.render=function(){N(this,"render");var y=this,C=y.axis,v=C.horiz,x=C.logarithmic,w=y.options,A=w.color,T=g(w.zIndex,0),R=w.events,k={},r=C.chart.renderer,p=w.label,o=y.label,h=w.to,t=w.from,c=w.value,i=y.svgElem,s=[],d=et(t)&&et(h);s=et(c);var a=!i,m={class:"highcharts-plot-"+(d?"band ":"line ")+(w.className||"")},b=d?"bands":"lines";if(x&&(t=x.log2lin(t),h=x.log2lin(h),c=x.log2lin(c)),C.chart.styledMode||(s?(m.stroke=A||"#999999",m["stroke-width"]=g(w.width,1),w.dashStyle&&(m.dashstyle=w.dashStyle)):d&&(m.fill=A||"#e6ebf5",w.borderWidth&&(m.stroke=w.borderColor,m["stroke-width"]=w.borderWidth))),k.zIndex=T,(x=C.plotLinesAndBandsGroups[b+="-"+T])||(C.plotLinesAndBandsGroups[b]=x=r.g("plot-"+b).attr(k).add()),a&&(y.svgElem=i=r.path().attr(m).add(x)),s)s=C.getPlotLinePath({value:c,lineWidth:i.strokeWidth(),acrossPanes:w.acrossPanes});else{if(!d)return;s=C.getPlotBandPath(t,h,w)}return!y.eventsAdded&&R&&(O(R,function(Y,B){i.on(B,function(e){R[B].apply(y,[e])})}),y.eventsAdded=!0),(a||!i.d)&&s&&s.length?i.attr({d:s}):i&&(s?(i.show(),i.animate({d:s})):i.d&&(i.hide(),o&&(y.label=o=o.destroy()))),p&&(et(p.text)||et(p.formatter))&&s&&s.length&&0<C.width&&0<C.height&&!s.isFlat?(p=_({align:v&&d&&"center",x:v?!d&&4:10,verticalAlign:!v&&d&&"middle",y:v?d?16:10:d?6:-4,rotation:v&&!d&&90},p),this.renderLabel(p,s,d,T)):o&&o.hide(),y},f.prototype.renderLabel=function(y,C,v,x){var w=this.axis,A=w.chart.renderer,T=this.label;T||(this.label=T=A.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(v?"band":"line")+"-label "+(y.className||""),zIndex:x}).add(),w.chart.styledMode||T.css(_({textOverflow:"ellipsis"},y.style))),x=C.xBounds||[C[0][1],C[1][1],v?C[2][1]:C[0][1]],C=C.yBounds||[C[0][2],C[1][2],v?C[2][2]:C[0][2]],v=it(x),A=it(C),T.align(y,!1,{x:v,y:A,width:M(x)-v,height:M(C)-A}),T.alignValue&&"left"!==T.alignValue||(y=y.clip?w.width:w.chart.chartWidth,T.css({width:(90===T.rotation?w.height-(T.alignAttr.y-w.top):y-(T.alignAttr.x-w.left))+"px"})),T.show(!0)},f.prototype.getLabelText=function(y){return et(y.formatter)?y.formatter.call(this):y.text},f.prototype.destroy=function(){$(this.axis.plotLinesAndBands,this),delete this.axis,tt(this)},f}()}),ct(U,"Core/Tooltip.js",[U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it,et){var tt=G.format,$=F.doc,N=M.distribute,_=et.clamp,O=et.css,g=et.discardElement,f=et.extend,y=et.fireEvent,C=et.isArray,v=et.isNumber,x=et.isString,w=et.merge,A=et.pick,T=et.splat,R=et.syncTimeout;return function(){function k(r,p){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=r,this.init(r,p)}return k.prototype.applyFilter=function(){var r=this.chart;r.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+r.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},k.prototype.bodyFormatter=function(r){return r.map(function(p){var o=p.series.tooltipOptions;return(o[(p.point.formatPrefix||"point")+"Formatter"]||p.point.tooltipFormatter).call(p.point,o[(p.point.formatPrefix||"point")+"Format"]||"")})},k.prototype.cleanSplit=function(r){this.chart.series.forEach(function(p){var o=p&&p.tt;o&&(!o.isActive||r?p.tt=o.destroy():o.isActive=!1)})},k.prototype.defaultFormatter=function(r){var p=this.points||T(this),o=[r.tooltipFooterHeaderFormatter(p[0])];return(o=o.concat(r.bodyFormatter(p))).push(r.tooltipFooterHeaderFormatter(p[0],!0)),o},k.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),g(this.container)),et.clearTimeout(this.hideTimer),et.clearTimeout(this.tooltipTimeout)},k.prototype.getAnchor=function(r,p){var o=this.chart,h=o.pointer,t=o.inverted,c=o.plotTop;if(o=o.plotLeft,(r=T(r))[0].series&&r[0].series.yAxis&&!r[0].series.yAxis.options.reversedStacks&&(r=r.slice().reverse()),this.followPointer&&p)typeof p.chartX>"u"&&(p=h.normalize(p)),r=[p.chartX-o,p.chartY-c];else if(r[0].tooltipPos)r=r[0].tooltipPos;else{var i=0,s=0;r.forEach(function(d){(d=d.pos(!0))&&(i+=d[0],s+=d[1])}),i/=r.length,s/=r.length,this.shared&&1<r.length&&p&&(t?i=p.chartX:s=p.chartY),r=[i-o,s-c]}return r.map(Math.round)},k.prototype.getClassName=function(r,p,o){var h=r.series,t=h.options;return[this.options.className,"highcharts-label",o&&"highcharts-tooltip-header",p?"highcharts-tooltip-box":"highcharts-tooltip",!o&&"highcharts-color-"+A(r.colorIndex,h.colorIndex),t&&t.className].filter(x).join(" ")},k.prototype.getLabel=function(){var c,r=this,p=this.chart.styledMode,o=this.options,h=this.split&&this.allowShared,t=o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),i=this.chart.renderer;if(r.label){var s=!r.label.hasClass("highcharts-label");(h&&!s||!h&&s)&&r.destroy()}if(!this.label){if(this.outside){s=this.chart.options.chart.style;var d=it.getRendererType();this.container=c=F.doc.createElement("div"),c.className="highcharts-tooltip-container",O(c,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),F.doc.body.appendChild(c),this.renderer=i=new d(c,0,0,s,void 0,void 0,i.styledMode)}if(h?this.label=i.g("tooltip"):(this.label=i.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),p||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:t}).shadow(o.shadow)),p&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),r.outside&&!r.split){var a=this.label,m=a.xSetter,b=a.ySetter;a.xSetter=function(Y){m.call(a,r.distance),c.style.left=Y+"px"},a.ySetter=function(Y){b.call(a,r.distance),c.style.top=Y+"px"}}this.label.attr({zIndex:8}).add()}return this.label},k.prototype.getPosition=function(r,p,o){var e,h=this.chart,t=this.distance,c={},i=h.inverted&&o.h||0,s=this.outside,d=s?$.documentElement.clientWidth-2*t:h.chartWidth,a=s?Math.max($.body.scrollHeight,$.documentElement.scrollHeight,$.body.offsetHeight,$.documentElement.offsetHeight,$.documentElement.clientHeight):h.chartHeight,m=h.pointer.getChartPosition(),b=function(S){var u="x"===S;return[S,u?d:a,u?r:p].concat(s?[u?r*m.scaleX:p*m.scaleY,u?m.left-t+(o.plotX+h.plotLeft)*m.scaleX:m.top-t+(o.plotY+h.plotTop)*m.scaleY,0,u?d:a]:[u?r:p,u?o.plotX+h.plotLeft:o.plotY+h.plotTop,u?h.plotLeft:h.plotTop,u?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])},Y=b("y"),B=b("x");b=!!o.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(b=!b);var l=!this.followPointer&&A(o.ttBelow,!h.inverted===b),P=function(S,u,H,D,W,X,Z){var q=s?"y"===S?t*m.scaleY:t*m.scaleX:t,st=(H-D)/2,nt=D<W-t,rt=W+t+D<u,V=W-q-H+st;if(W=W+q-st,l&&rt)c[S]=W;else if(!l&&nt)c[S]=V;else if(nt)c[S]=Math.min(Z-D,0>V-i?V:V-i);else{if(!rt)return!1;c[S]=Math.max(X,W+i+H>u?W:W+i)}},I=function(S,u,H,D,W){var X;return W<t||W>u-t?X=!1:c[S]=W<H/2?1:W>u-D/2?u-D-2:W-H/2,X},L=function(S){var u=Y;Y=B,B=u,e=S},n=function(){!1!==P.apply(0,Y)?!1!==I.apply(0,B)||e||(L(!0),n()):e?c.x=c.y=0:(L(!0),n())};return(h.inverted||1<this.len)&&L(),n(),c},k.prototype.hide=function(r){var p=this;et.clearTimeout(this.hideTimer),r=A(r,this.options.hideDelay),this.isHidden||(this.hideTimer=R(function(){p.getLabel().fadeOut(r&&void 0),p.isHidden=!0},r))},k.prototype.init=function(r,p){this.chart=r,this.options=p,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=p.split&&!r.inverted&&!r.polar,this.shared=p.shared||this.split,this.outside=A(p.outside,!(!r.scrollablePixelsX&&!r.scrollablePixelsY))},k.prototype.shouldStickOnContact=function(r){return!(this.followPointer||!this.options.stickOnContact||r&&!this.chart.pointer.inClass(r.target,"highcharts-tooltip"))},k.prototype.move=function(r,p,o,h){var t=this,c=t.now,i=!1!==t.options.animation&&!t.isHidden&&(1<Math.abs(r-c.x)||1<Math.abs(p-c.y)),s=t.followPointer||1<t.len;f(c,{x:i?(2*c.x+r)/3:r,y:i?(c.y+p)/2:p,anchorX:s?void 0:i?(2*c.anchorX+o)/3:o,anchorY:s?void 0:i?(c.anchorY+h)/2:h}),t.getLabel().attr(c),t.drawTracker(),i&&(et.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(r,p,o,h)},32))},k.prototype.refresh=function(r,p){var o=this.chart,h=this.options,t=o.pointer,c=T(r),i=c[0],s=[],d=h.formatter||this.defaultFormatter,a=this.shared,m=o.styledMode,b={};if(h.enabled&&i.series){et.clearTimeout(this.hideTimer),this.allowShared=!(!C(r)&&r.series&&r.series.noSharedTooltip),this.followPointer=!this.split&&i.series.tooltipOptions.followPointer;var Y=(r=this.getAnchor(r,p))[0],B=r[1];if(a&&this.allowShared?(t.applyInactiveState(c),c.forEach(function(P){P.setState("hover"),s.push(P.getLabelConfig())}),(b={x:i.category,y:i.y}).points=s):b=i.getLabelConfig(),this.len=s.length,d=d.call(b,this),this.distance=A((a=i.series).tooltipOptions.distance,16),!1===d)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(d,c);else{var e=Y,l=B;if(p&&t.isDirectTouch&&(e=p.chartX-o.plotLeft,l=p.chartY-o.plotTop),!o.polar&&!1!==a.options.clip&&!c.some(function(P){return t.isDirectTouch||P.series.shouldShowTooltip(e,l)}))return void this.hide();p=this.getLabel(),h.style.width&&!m||p.css({width:o.spacingBox.width+"px"}),p.attr({text:d&&d.join?d.join(""):d}),p.addClass(this.getClassName(i),!0),m||p.attr({stroke:h.borderColor||i.color||a.color||"#666666"}),this.updatePosition({plotX:Y,plotY:B,negative:i.negative,ttBelow:i.ttBelow,h:r[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},k.prototype.renderSplit=function(r,p){function o(rt,V,Q,z,E){return void 0===E&&(E=!0),Q?(V=D?0:q,rt=_(rt-z/2,S.left,S.right-z-(h.outside?W:0))):(V-=X,rt=_(rt=E?rt-z-I:rt+I,E?rt:S.left,S.right)),{x:rt,y:V}}var h=this,t=h.chart,c=h.chart,i=c.chartWidth,s=c.chartHeight,d=c.plotHeight,a=c.plotLeft,m=c.plotTop,b=c.pointer,Y=c.scrollablePixelsY;Y=void 0===Y?0:Y;var e=c.scrollingContainer,l=(e=void 0===e?{scrollLeft:0,scrollTop:0}:e).scrollLeft;e=e.scrollTop;var P=c.styledMode,I=h.distance,L=h.options,n=h.options.positioner,S=h.outside&&"number"!=typeof c.scrollablePixelsX?$.documentElement.getBoundingClientRect():{left:l,right:l+i,top:e,bottom:e+s},u=h.getLabel(),H=this.renderer||t.renderer,D=!(!t.xAxis[0]||!t.xAxis[0].opposite),W=(t=b.getChartPosition()).left;t=t.top;var X=m+e,Z=0,q=d-Y;x(r)&&(r=[!1,r]),r=r.slice(0,p.length+1).reduce(function(rt,V,Q){if(!1!==V&&""!==V){var z=(Q=p[Q-1]||{isHeader:!0,plotX:p[0].plotX,plotY:d,series:{}}).isHeader,E=z?h:Q.series;V=V.toString();var j=E.tt,K=Q.isHeader,J=Q.series;j||(j={padding:L.padding,r:L.borderRadius},P||(j.fill=L.backgroundColor,j["stroke-width"]=L.borderWidth),j=H.label("",0,0,L[K?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass(h.getClassName(Q,!0,K)).attr(j).add(u)),j.isActive=!0,j.attr({text:V}),P||j.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||Q.color||J.color||"#333333"}),V=(K=(E=E.tt=j).getBBox()).width+E.strokeWidth(),z&&(q+=Z=K.height,D&&(X-=Z)),J=void 0===(J=Q.plotX)?0:J,j=void 0===(j=Q.plotY)?0:j;var ot=Q.series;if(Q.isHeader){J=a+J;var at=m+d/2}else{var ht=ot.xAxis,dt=ot.yAxis;J=ht.pos+_(J,-I,ht.len+I),ot.shouldShowTooltip(0,dt.pos-m+j,{ignoreX:!0})&&(at=dt.pos+j)}J=_(J,S.left-I,S.right+I),"number"==typeof at?(K=K.height+1,j=n?n.call(h,V,K,Q):o(J,at,z,V),rt.push({align:n?0:void 0,anchorX:J,anchorY:at,boxWidth:V,point:Q,rank:A(j.rank,z?1:0),size:K,target:j.y,tt:E,x:j.x})):E.isActive=!1}return rt},[]),!n&&r.some(function(rt){var V=(h.outside?W:0)+rt.anchorX;return V<S.left&&V+rt.boxWidth<S.right||V<W-S.left+rt.boxWidth&&S.right-V>V})&&(r=r.map(function(rt){var V=o(rt.anchorX,rt.anchorY,rt.point.isHeader,rt.boxWidth,!1);return f(rt,{target:V.y,x:V.x})})),h.cleanSplit(),N(r,q);var st=W,nt=W;r.forEach(function(rt){var V=rt.x,Q=rt.boxWidth;(rt=rt.isHeader)||(h.outside&&W+V<st&&(st=W+V),!rt&&h.outside&&st+Q>nt&&(nt=W+V))}),r.forEach(function(rt){var V=rt.x,Q=rt.anchorX,z=rt.pos,E=rt.point.isHeader;if(z={visibility:typeof z>"u"?"hidden":"inherit",x:V,y:(z||0)+X,anchorX:Q,anchorY:rt.anchorY},h.outside&&V<Q){var j=W-st;0<j&&(E||(z.x=V+j,z.anchorX=Q+j),E&&(z.x=(nt-st)/2,z.anchorX=Q+j))}rt.tt.attr(z)}),r=h.container,Y=h.renderer,h.outside&&r&&Y&&(c=u.getBBox(),Y.setSize(c.width+c.x,c.height+c.y,!1),r.style.left=st+"px",r.style.top=t+"px")},k.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var r=this.chart,p=this.label,o=this.shared?r.hoverPoints:r.hoverPoint;if(p&&o){var h={x:0,y:0,width:0,height:0};o=this.getAnchor(o);var t=p.getBBox();o[0]+=r.plotLeft-p.translateX,o[1]+=r.plotTop-p.translateY,h.x=Math.min(0,o[0]),h.y=Math.min(0,o[1]),h.width=0>o[0]?Math.max(Math.abs(o[0]),t.width-o[0]):Math.max(Math.abs(o[0]),t.width),h.height=0>o[1]?Math.max(Math.abs(o[1]),t.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),t.height),this.tracker?this.tracker.attr(h):(this.tracker=p.renderer.rect(h).addClass("highcharts-tracker").add(p),r.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},k.prototype.styledModeFormat=function(r){return r.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},k.prototype.tooltipFooterHeaderFormatter=function(r,p){var o=r.series,h=o.tooltipOptions,t=o.xAxis,c=t&&t.dateTime,i=h.xDateFormat,s=h[p?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t={isFooter:p,labelConfig:r},function(d){c&&!i&&v(r.key)&&(i=c.getXDateFormat(r.key,h.dateTimeLabelFormats)),c&&i&&(r.point&&r.point.tooltipDateKeys||["key"]).forEach(function(a){s=s.replace("{point."+a+"}","{point."+a+":"+i+"}")}),o.chart.styledMode&&(s=this.styledModeFormat(s)),d.text=tt(s,{point:r,series:o},this.chart)}),t.text},k.prototype.update=function(r){this.destroy(),w(!0,this.chart.options.tooltip.userOptions,r),this.init(this.chart,w(!0,this.options,r))},k.prototype.updatePosition=function(r){var p=this.chart,o=this.distance,h=this.options,t=p.pointer,c=this.getLabel(),i=t.getChartPosition();t=i.left;var s=i.top,d=i.scaleX;i=i.scaleY;var a=(h.positioner||this.getPosition).call(this,c.width,c.height,r),m=(r.plotX||0)+p.plotLeft;r=(r.plotY||0)+p.plotTop,this.outside&&(h.positioner&&(a.x+=t-o,a.y+=s-o),this.renderer.setSize(c.width+(o=h.borderWidth+2*o),c.height+o,!1),(1!==d||1!==i)&&(O(this.container,{transform:"scale(".concat(d,", ").concat(i,")")}),m*=d,r*=i),m+=t-a.x,r+=s-a.y),this.move(Math.round(a.x),Math.round(a.y||0),m,r)},k}()}),ct(U,"Core/Series/Point.js",[U["Core/Renderer/HTML/AST.js"],U["Core/Animation/AnimationUtilities.js"],U["Core/Defaults.js"],U["Core/FormatUtilities.js"],U["Core/Utilities.js"]],function(G,F,M,it,et){var tt=F.animObject,$=M.defaultOptions,N=it.format,_=et.addEvent,O=et.defined,g=et.erase,f=et.extend,y=et.fireEvent,C=et.getNestedProperty,v=et.isArray,x=et.isFunction,w=et.isNumber,A=et.isObject,T=et.merge,R=et.objectEach,k=et.pick,r=et.syncTimeout,p=et.removeEvent,o=et.uniqueKey;return function(){function h(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return h.prototype.animateBeforeDestroy=function(){var t=this,c={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate("dataLabel"===s?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:c)}),i.plural.forEach(function(s){t[s].forEach(function(d){d.element&&d.animate(f({x:t.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})},h.prototype.applyOptions=function(t,c){var i=this.series,s=i.options.pointValKey||i.pointValKey;return t=h.prototype.optionsToObject.call(this,t),f(this,t),this.options=this.options?f(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=h.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof c>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof c>"u"?i.autoIncrement():c:w(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},h.prototype.destroy=function(){function t(){for(m in(c.graphic||c.graphics||c.dataLabel||c.dataLabels)&&(p(c),c.destroyElements()),c)c[m]=null}var c=this,i=c.series,s=i.chart;i=i.options.dataSorting;var m,d=s.hoverPoints,a=tt(c.series.chart.renderer.globalAnimation);c.legendItem&&s.legend.destroyItem(c),d&&(c.setState(),g(d,c),d.length||(s.hoverPoints=null)),c===s.hoverPoint&&c.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),r(t,a.duration)):t(),s.pointCount--},h.prototype.destroyElements=function(t){var c=this;(t=c.getGraphicalProps(t)).singular.forEach(function(i){c[i]=c[i].destroy()}),t.plural.forEach(function(i){c[i].forEach(function(s){s&&s.element&&s.destroy()}),delete c[i]})},h.prototype.firePointEvent=function(t,c,i){var s=this,d=this.series.options;(d.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&s.importEvents(),"click"===t&&d.allowPointSelect&&(i=function(a){s.select&&s.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),y(s,t,c,i)},h.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},h.prototype.getGraphicalProps=function(t){var d,c=this,i=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),d=i.length;d--;){var a=i[d];c[a]&&s.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(m){var b=m+"s";t[m]&&c[b]&&s.plural.push(b)}),s},h.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},h.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?C(t,this.options):this[t]},h.prototype.getZone=function(){var t=this.series,c=t.zones;t=t.zoneAxis||"y";var i,s=0;for(i=c[s];this[t]>=i.value;)i=c[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(t,c,i){return this.series=t,this.applyOptions(c,i),this.id=O(this.id)?this.id:o(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},h.prototype.isValid=function(){return null!==this.x&&w(this.y)},h.prototype.optionsToObject=function(t){var c=this.series,i=c.options.keys,s=i||c.pointArrayMap||["y"],d=s.length,a={},m=0,b=0;if(w(t)||null===t)a[s[0]]=t;else if(v(t))for(!i&&t.length>d&&("string"==(c=typeof t[0])?a.name=t[0]:"number"===c&&(a.x=t[0]),m++);b<d;)i&&typeof t[m]>"u"||(0<s[b].indexOf(".")?h.prototype.setNestedProperty(a,t[m],s[b]):a[s[b]]=t[m]),m++,b++;else"object"==typeof t&&(a=t,t.dataLabels&&(c._hasPointLabels=!0),t.marker&&(c._hasPointMarkers=!0));return a},h.prototype.pos=function(t,c){void 0===c&&(c=this.plotY);var i=this.plotX,s=this.series,d=s.chart,a=s.xAxis;s=s.yAxis;var m=0,b=0;if(w(i)&&w(c))return t&&(m=a?a.pos:d.plotLeft,b=s?s.pos:d.plotTop),d.inverted&&a&&s?[s.len-c+b,a.len-i+m]:[i+m,c+b]},h.prototype.resolveColor=function(){var t=this.series,c=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!c){var s=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}c=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else c||(s=t.color),c=t.colorIndex;this.colorIndex=k(this.options.colorIndex,c),this.color=k(this.options.color,s)},h.prototype.setNestedProperty=function(t,c,i){return i.split(".").reduce(function(s,d,a,m){return s[d]=m.length-1===a?c:A(s[d],!0)?s[d]:{},s[d]},t),t},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(t){var c=this.series,i=c.tooltipOptions,s=k(i.valueDecimals,""),d=i.valuePrefix||"",a=i.valueSuffix||"";return c.chart.styledMode&&(t=c.chart.tooltip.styledModeFormat(t)),(c.pointArrayMap||["y"]).forEach(function(m){m="{point."+m,(d||a)&&(t=t.replace(RegExp(m+"}","g"),d+m+"}"+a)),t=t.replace(RegExp(m+"}","g"),m+":,."+s+"f}")}),N(t,{point:this,series:this.series},c.chart)},h.prototype.update=function(t,c,i,s){function d(){a.applyOptions(t);var l=b&&a.hasMockGraphic;l=null===a.y?!l:l,b&&l&&(a.graphic=b.destroy(),delete a.hasMockGraphic),A(t,!0)&&(b&&b.element&&t&&t.marker&&typeof t.marker.symbol<"u"&&(a.graphic=b.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),m.updateParallelArrays(a,e=a.index),B.data[e]=A(B.data[e],!0)||A(t,!0)?a.options:k(t,B.data[e]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(Y.isDirtyBox=!0),"point"===B.legendType&&(Y.isDirtyLegend=!0),c&&Y.redraw(i)}var e,a=this,m=a.series,b=a.graphic,Y=m.chart,B=m.options;c=k(c,!0),!1===s?d():a.firePointEvent("update",{options:t},d)},h.prototype.remove=function(t,c){this.series.removePoint(this.series.data.indexOf(this),t,c)},h.prototype.select=function(t,c){var i=this,s=i.series,d=s.chart;this.selectedStaging=t=k(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:c},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),c||d.getSelectedPoints().forEach(function(a){var m=a.series;a.selected&&a!==i&&(a.selected=a.options.selected=!1,m.options.data[m.data.indexOf(a)]=a.options,a.setState(d.hoverPoints&&m.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(t){var c=this.series.chart,i=c.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,c.inverted),i.runPointActions(t,this)},h.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(c){c.setState()}),t.hoverPoints=t.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,c=T(t.series.options.point,t.options).events;t.events=c,R(c,function(i,s){x(i)&&_(t,s,i)}),this.hasImportedEvents=!0}},h.prototype.setState=function(t,c){var I,i=this.series,s=this.state,d=i.options.states[t||"normal"]||{},a=$.plotOptions[i.type].marker&&i.options.marker,b=a&&a.states&&a.states[t||"normal"]||{},B=this.marker||{},e=i.chart,l=a&&i.markerAttribs,P=i.halo,L=i.stateMarkerGraphic;if(!((t=t||"")===this.state&&!c||this.selected&&"select"!==t||!1===d.enabled||t&&(!1===b.enabled||a&&!1===a.enabled&&!1===b.enabled)||t&&B.states&&B.states[t]&&!1===B.states[t].enabled)){if(this.state=t,l&&(I=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!e.styledMode){s=i.pointAttribs(this,t);var n=k(e.options.chart.animation,d.animation),S=s.opacity;i.options.inactiveOtherPoints&&w(S)&&((this.dataLabels||[]).forEach(function(u){u&&!u.hasClass("highcharts-data-label-hidden")&&u.animate({opacity:S},n)}),this.connector&&this.connector.animate({opacity:S},n)),this.graphic.animate(s,n)}I&&this.graphic.animate(I,k(e.options.chart.animation,b.animation,a.animation)),L&&L.hide()}else t&&b&&(a=B.symbol||i.symbol,L&&L.currentSymbol!==a&&(L=L.destroy()),I&&(L?L[c?"animate":"attr"]({x:I.x,y:I.y}):a&&(i.stateMarkerGraphic=L=e.renderer.symbol(a,I.x,I.y,I.width,I.height).add(i.markerGroup),L.currentSymbol=a)),!e.styledMode&&L&&"inactive"!==this.state&&L.attr(i.pointAttribs(this,t))),L&&(L[t&&this.isInside?"show":"hide"](),L.element.point=this,L.addClass(this.getClassName(),!0));I=(L=this.graphic||L)&&L.visibility||"inherit",(d=d.halo)&&d.size&&L&&"hidden"!==I&&!this.isCluster?(P||(i.halo=P=e.renderer.path().add(L.parentGroup)),P.show()[c?"animate":"attr"]({d:this.haloPath(d.size)}),P.attr({class:"highcharts-halo highcharts-color-"+k(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:I,zIndex:-1}),P.point=this,e.styledMode||P.attr(f({fill:this.color||i.color,"fill-opacity":d.opacity},G.filterUserAttributes(d.attributes||{})))):P&&P.point&&P.point.haloPath&&P.animate({d:P.point.haloPath(0)},null,P.hide),y(this,"afterSetState",{state:t})}},h.prototype.haloPath=function(t){var c=this.pos();return c?this.series.chart.renderer.symbols.circle(Math.floor(c[0])-t,c[1]-t,2*t,2*t):[]},h}()}),ct(U,"Core/Pointer.js",[U["Core/Color/Color.js"],U["Core/Globals.js"],U["Core/Tooltip.js"],U["Core/Utilities.js"]],function(G,F,M,it){var et=G.parse,tt=F.charts,$=F.noop,N=it.addEvent,_=it.attr,O=it.css,g=it.defined,f=it.extend,y=it.find,C=it.fireEvent,v=it.isNumber,x=it.isObject,w=it.objectEach,A=it.offset,T=it.pick,R=it.splat;return function(){function k(r,p){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=r,this.hasDragged=!1,this.options=p,this.init(r,p)}return k.prototype.applyInactiveState=function(r){var o,p=[];(r||[]).forEach(function(h){p.push(o=h.series),o.linkedParent&&p.push(o.linkedParent),o.linkedSeries&&(p=p.concat(o.linkedSeries)),o.navigatorSeries&&p.push(o.navigatorSeries)}),this.chart.series.forEach(function(h){-1===p.indexOf(h)?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},k.prototype.destroy=function(){var r=this;this.eventsToUnbind.forEach(function(p){return p()}),this.eventsToUnbind=[],F.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(r.tooltipTimeout),w(r,function(p,o){r[o]=void 0})},k.prototype.getSelectionMarkerAttrs=function(r,p){var o=this,h={args:{chartX:r,chartY:p},attrs:{},shapeType:"rect"};return C(this,"getSelectionMarkerAttrs",h,function(t){var c=o.chart,i=o.mouseDownX;i=void 0===i?0:i;var s=o.mouseDownY;s=void 0===s?0:s;var d=o.zoomHor,a=o.zoomVert;(t=t.attrs).x=c.plotLeft,t.y=c.plotTop,t.width=d?1:c.plotWidth,t.height=a?1:c.plotHeight,d&&(c=r-i,t.width=Math.abs(c),t.x=(0<c?0:c)+i),a&&(c=p-s,t.height=Math.abs(c),t.y=(0<c?0:c)+s)}),h},k.prototype.drag=function(r){var p=this.chart,o=p.options.chart,h=p.plotLeft,t=p.plotTop,c=p.plotWidth,i=p.plotHeight,s=this.mouseDownX||0,d=this.mouseDownY||0,a=x(o.panning)?o.panning&&o.panning.enabled:o.panning,m=o.panKey&&r[o.panKey+"Key"],b=r.chartX,Y=r.chartY,B=this.selectionMarker;B&&B.touch||(b<h?b=h:b>h+c&&(b=h+c),Y<t?Y=t:Y>t+i&&(Y=t+i),this.hasDragged=Math.sqrt(Math.pow(s-b,2)+Math.pow(d-Y,2)),10<this.hasDragged&&(h=p.isInsidePlot(s-h,d-t,{visiblePlotOnly:!0}),b=(Y=this.getSelectionMarkerAttrs(b,Y)).shapeType,Y=Y.attrs,!p.hasCartesianSeries&&!p.mapView||!this.zoomX&&!this.zoomY||!h||m||B||(this.selectionMarker=B=p.renderer[b](),B.attr({class:"highcharts-selection-marker",zIndex:7}).add(),p.styledMode||B.attr({fill:o.selectionMarkerFill||et("#335cad").setOpacity(.25).get()})),B&&B.attr(Y),h&&!B&&a&&p.pan(r,o.panning)))},k.prototype.dragStart=function(r){var p=this.chart;p.mouseIsDown=r.type,p.cancelClick=!1,p.mouseDownX=this.mouseDownX=r.chartX,p.mouseDownY=this.mouseDownY=r.chartY},k.prototype.getSelectionBox=function(r){var p={args:{marker:r},result:{}};return C(this,"getSelectionBox",p,function(o){o.result={x:r.attr?+r.attr("x"):r.x,y:r.attr?+r.attr("y"):r.y,width:r.attr?r.attr("width"):r.width,height:r.attr?r.attr("height"):r.height}}),p.result},k.prototype.drop=function(r){var p=this,o=this.chart,h=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),c=t.x,i=t.y,s=t.width,d=t.height,a={originalEvent:r,xAxis:[],yAxis:[],x:c,y:i,width:s,height:d},m=!!o.mapView;(this.hasDragged||h)&&(o.axes.forEach(function(b){if(b.zoomEnabled&&g(b.min)&&(h||p[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&v(c)&&v(i)&&v(s)&&v(d)){var Y=b.horiz,B="touchend"===r.type?b.minPixelPadding:0,e=b.toValue((Y?c:i)+B);Y=b.toValue((Y?c+s:i+d)-B),a[b.coll].push({axis:b,min:Math.min(e,Y),max:Math.max(e,Y)}),m=!0}}),m&&C(o,"selection",a,function(b){o.zoom(f(b,h?{animation:!1}:null))})),v(o.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}o&&v(o.index)&&(O(o.container,{cursor:o._cursor}),o.cancelClick=10<this.hasDragged,o.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},k.prototype.findNearestKDPoint=function(r,p,o){var h;return r.forEach(function(t){var c=!(t.noSharedTooltip&&p)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(o,c),(c=x(t,!0)&&t.series)&&!(c=!x(h,!0))){var i=h.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);c=0<(0!=(c=h.distX-t.distX)&&p?c:0!==i?i:0!==s?s:h.series.index>t.series.index?-1:1)}c&&(h=t)}),h},k.prototype.getChartCoordinatesFromPoint=function(r,p){var o=r.series,h=o.xAxis;o=o.yAxis;var t=r.shapeArgs;if(h&&o){var c=T(r.clientX,r.plotX),i=r.plotY||0;return r.isNode&&t&&v(t.x)&&v(t.y)&&(c=t.x,i=t.y),p?{chartX:o.len+o.pos-i,chartY:h.len+h.pos-c}:{chartX:c+h.pos,chartY:i+o.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},k.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var r=this.chart.container,p=A(r);this.chartPosition={left:p.left,top:p.top,scaleX:1,scaleY:1};var o=r.offsetWidth;return r=r.offsetHeight,2<o&&2<r&&(this.chartPosition.scaleX=p.width/o,this.chartPosition.scaleY=p.height/r),this.chartPosition},k.prototype.getCoordinates=function(r){var p={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(o){p[o.isXAxis?"xAxis":"yAxis"].push({axis:o,value:o.toValue(r[o.horiz?"chartX":"chartY"])})}),p},k.prototype.getHoverData=function(r,p,o,h,t,c){var i=[];h=!(!h||!r);var s=function(b){return b.visible&&!(!t&&b.directTouch)&&T(b.options.enableMouseTracking,!0)},d={chartX:c?c.chartX:void 0,chartY:c?c.chartY:void 0,shared:t};C(this,"beforeGetHoverData",d);var a=p&&!p.stickyTracking?[p]:o.filter(function(b){return b.stickyTracking&&(d.filter||s)(b)}),m=h||!c?r:this.findNearestKDPoint(a,t,c);return p=m&&m.series,m&&(t&&!p.noSharedTooltip?(a=o.filter(function(b){return d.filter?d.filter(b):s(b)&&!b.noSharedTooltip})).forEach(function(b){var Y=y(b.points,function(B){return B.x===m.x&&!B.isNull});x(Y)&&(b.boosted&&b.boost&&(Y=b.boost.getPoint(Y)),i.push(Y))}):i.push(m)),C(this,"afterGetHoverData",d={hoverPoint:m}),{hoverPoint:d.hoverPoint,hoverSeries:p,hoverPoints:i}},k.prototype.getPointFromEvent=function(r){r=r.target;for(var p;r&&!p;)p=r.point,r=r.parentNode;return p},k.prototype.onTrackerMouseOut=function(r){r=r.relatedTarget||r.toElement;var p=this.chart.hoverSeries;this.isDirectTouch=!1,!p||!r||p.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+p.index)&&this.inClass(r,"highcharts-tracker")||p.onMouseOut()},k.prototype.inClass=function(r,p){for(var o;r;){if(o=_(r,"class")){if(-1!==o.indexOf(p))return!0;if(-1!==o.indexOf("highcharts-container"))return!1}r=r.parentElement}},k.prototype.init=function(r,p){this.options=p,this.chart=r,this.runChartClick=!(!p.chart.events||!p.chart.events.click),this.pinchDown=[],this.lastValidTouch={},M&&(r.tooltip=new M(r,p.tooltip)),this.setDOMEvents()},k.prototype.normalize=function(r,p){var o=r.touches,h=o?o.length?o.item(0):T(o.changedTouches,r.changedTouches)[0]:r;return p||(p=this.getChartPosition()),o=h.pageX-p.left,h=h.pageY-p.top,o/=p.scaleX,h/=p.scaleY,f(r,{chartX:Math.round(o),chartY:Math.round(h)})},k.prototype.onContainerClick=function(r){var p=this.chart,o=p.hoverPoint;r=this.normalize(r);var h=p.plotLeft,t=p.plotTop;p.cancelClick||(o&&this.inClass(r.target,"highcharts-tracker")?(C(o.series,"click",f(r,{point:o})),p.hoverPoint&&o.firePointEvent("click",r)):(f(r,this.getCoordinates(r)),p.isInsidePlot(r.chartX-h,r.chartY-t,{visiblePlotOnly:!0})&&C(p,"click",r)))},k.prototype.onContainerMouseDown=function(r){var p=1==(1&(r.buttons||r.button));r=this.normalize(r),F.isFirefox&&0!==r.button&&this.onContainerMouseMove(r),(typeof r.button>"u"||p)&&(this.zoomOption(r),p&&r.preventDefault&&r.preventDefault(),this.dragStart(r))},k.prototype.onContainerMouseLeave=function(r){var p=tt[T(k.hoverChartIndex,-1)],o=this.chart.tooltip;r=this.normalize(r),p&&(r.relatedTarget||r.toElement)&&(p.pointer.reset(),p.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},k.prototype.onContainerMouseEnter=function(r){delete this.chartPosition},k.prototype.onContainerMouseMove=function(r){var p=this.chart,o=p.tooltip;r=this.normalize(r),this.setHoverChartIndex(),r.preventDefault||(r.returnValue=!1),("mousedown"===p.mouseIsDown||this.touchSelect(r))&&this.drag(r),p.openMenu||!this.inClass(r.target,"highcharts-tracker")&&!p.isInsidePlot(r.chartX-p.plotLeft,r.chartY-p.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))},k.prototype.onDocumentTouchEnd=function(r){var p=tt[T(k.hoverChartIndex,-1)];p&&p.pointer.drop(r)},k.prototype.onContainerTouchMove=function(r){this.touchSelect(r)?this.onContainerMouseMove(r):this.touch(r)},k.prototype.onContainerTouchStart=function(r){this.touchSelect(r)?this.onContainerMouseDown(r):(this.zoomOption(r),this.touch(r,!0))},k.prototype.onDocumentMouseMove=function(r){var p=this.chart,o=p.tooltip,h=this.chartPosition;r=this.normalize(r,h),!h||p.isInsidePlot(r.chartX-p.plotLeft,r.chartY-p.plotTop,{visiblePlotOnly:!0})||o&&o.shouldStickOnContact(r)||this.inClass(r.target,"highcharts-tracker")||this.reset()},k.prototype.onDocumentMouseUp=function(r){var p=tt[T(k.hoverChartIndex,-1)];p&&p.pointer.drop(r)},k.prototype.pinch=function(r){var p=this,o=p.chart,h=p.pinchDown,t=r.touches||[],c=t.length,i=p.lastValidTouch,s=p.hasZoom,d={},a=1===c&&(p.inClass(r.target,"highcharts-tracker")&&o.runTrackerClick||p.runChartClick),m={},b=p.chart.tooltip;b=1===c&&T(b&&b.options.followTouchMove,!0);var Y=p.selectionMarker;1<c?p.initiated=!0:b&&(p.initiated=!1),s&&p.initiated&&!a&&!1!==r.cancelable&&r.preventDefault(),[].map.call(t,function(B){return p.normalize(B)}),"touchstart"===r.type?([].forEach.call(t,function(B,e){h[e]={chartX:B.chartX,chartY:B.chartY}}),i.x=[h[0].chartX,h[1]&&h[1].chartX],i.y=[h[0].chartY,h[1]&&h[1].chartY],o.axes.forEach(function(B){if(B.zoomEnabled){var e=o.bounds[B.horiz?"h":"v"],l=B.minPixelPadding,P=B.toPixels(Math.min(T(B.options.min,B.dataMin),B.dataMin)),I=B.toPixels(Math.max(T(B.options.max,B.dataMax),B.dataMax)),L=Math.max(P,I);e.min=Math.min(B.pos,Math.min(P,I)-l),e.max=Math.max(B.pos+B.len,L+l)}}),p.res=!0):b?this.runPointActions(p.normalize(r)):h.length&&(C(o,"touchpan",{originalEvent:r},function(){Y||(p.selectionMarker=Y=f({destroy:$,touch:!0},o.plotBox)),p.pinchTranslate(h,t,d,Y,m,i),p.hasPinched=s,p.scaleGroups(d,m)}),p.res&&(p.res=!1,this.reset(!1,0)))},k.prototype.pinchTranslate=function(r,p,o,h,t,c){this.zoomHor&&this.pinchTranslateDirection(!0,r,p,o,h,t,c),this.zoomVert&&this.pinchTranslateDirection(!1,r,p,o,h,t,c)},k.prototype.pinchTranslateDirection=function(r,p,o,h,t,c,i,s){var d=this.chart,a=r?"x":"y",m=r?"X":"Y",b="chart"+m,Y=r?"width":"height",B=d["plot"+(r?"Left":"Top")],e=d.inverted,l=d.bounds[r?"h":"v"],P=1===p.length,I=p[0][b],L=!P&&p[1][b];p=function(){"number"==typeof D&&20<Math.abs(I-L)&&(u=s||Math.abs(H-D)/Math.abs(I-L)),S=(B-H)/u+I,n=d["plot"+(r?"Width":"Height")]/u};var n,S,u=s||1,H=o[0][b],D=!P&&o[1][b];if(p(),(o=S)<l.min){o=l.min;var W=!0}else o+n>l.max&&(o=l.max-n,W=!0);W?(H-=.8*(H-i[a][0]),"number"==typeof D&&(D-=.8*(D-i[a][1])),p()):i[a]=[H,D],e||(c[a]=S-B,c[Y]=n),c=e?1/u:u,t[Y]=n,t[a]=o,h[e?r?"scaleY":"scaleX":"scale"+m]=u,h["translate"+m]=c*B+(H-c*I)},k.prototype.reset=function(r,p){var o=this.chart,h=o.hoverSeries,t=o.hoverPoint,c=o.hoverPoints,i=o.tooltip,s=i&&i.shared?c:t;r&&s&&R(s).forEach(function(d){d.series.isCartesian&&typeof d.plotX>"u"&&(r=!1)}),r?i&&s&&R(s).length&&(i.refresh(s),i.shared&&c?c.forEach(function(d){d.setState(d.state,!0),d.series.isCartesian&&(d.series.xAxis.crosshair&&d.series.xAxis.drawCrosshair(null,d),d.series.yAxis.crosshair&&d.series.yAxis.drawCrosshair(null,d))}):t&&(t.setState(t.state,!0),o.axes.forEach(function(d){d.crosshair&&t.series[d.coll]===d&&d.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),c&&c.forEach(function(d){d.setState()}),h&&h.onMouseOut(),i&&i.hide(p),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),o.axes.forEach(function(d){d.hideCrosshair()}),this.hoverX=o.hoverPoints=o.hoverPoint=null)},k.prototype.runPointActions=function(r,p,o){var h=this.chart,t=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,c=!!t&&t.shared,i=p||h.hoverPoint,s=i&&i.series||h.hoverSeries;p=this.getHoverData(i,s,h.series,(!r||"touchmove"!==r.type)&&(!!p||s&&s.directTouch&&this.isDirectTouch),c,r),i=p.hoverPoint;var d=p.hoverPoints;p=(s=p.hoverSeries)&&s.tooltipOptions.followPointer&&!s.tooltipOptions.split;var a=c&&s&&!s.noSharedTooltip;if(i&&(o||i!==h.hoverPoint||t&&t.isHidden)){if((h.hoverPoints||[]).forEach(function(m){-1===d.indexOf(m)&&m.setState()}),h.hoverSeries!==s&&s.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach(function(m){m.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!i.series)return;h.hoverPoints=d,h.hoverPoint=i,i.firePointEvent("mouseOver",void 0,function(){t&&i&&t.refresh(a?d:i,r)})}else p&&t&&!t.isHidden&&(o=t.getAnchor([{}],r),h.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=N(h.container.ownerDocument,"mousemove",function(m){var b=tt[k.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(m)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(m){var Y,b=T((m.crosshair||{}).snap,!0);b&&((Y=h.hoverPoint)&&Y.series[m.coll]===m||(Y=y(d,function(B){return B.series&&B.series[m.coll]===m}))),Y||!b?m.drawCrosshair(r,Y):m.hideCrosshair()})},k.prototype.scaleGroups=function(r,p){var o=this.chart;o.series.forEach(function(h){var t=r||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||o.mapView)&&(h.group.attr(t),h.markerGroup&&(h.markerGroup.attr(t),h.markerGroup.clip(p?o.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(t))}),o.clipRect.attr(p||o.clipBox)},k.prototype.setDOMEvents=function(){var r=this,p=this.chart.container,o=p.ownerDocument;p.onmousedown=this.onContainerMouseDown.bind(this),p.onmousemove=this.onContainerMouseMove.bind(this),p.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(N(p,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(N(p,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=N(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&"BODY"!==h.tagName;)this.eventsToUnbind.push(N(h,"scroll",function(){delete r.chartPosition})),h=h.parentElement;F.hasTouch&&(this.eventsToUnbind.push(N(p,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(N(p,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=N(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},k.prototype.setHoverChartIndex=function(){var r=this.chart,p=F.charts[T(k.hoverChartIndex,-1)];p&&p!==r&&p.pointer.onContainerMouseLeave({relatedTarget:r.container}),p&&p.mouseIsDown||(k.hoverChartIndex=r.index)},k.prototype.touch=function(r,p){var o=this.chart;if(this.setHoverChartIndex(),1===r.touches.length)if(r=this.normalize(r),o.isInsidePlot(r.chartX-o.plotLeft,r.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu){if(p&&this.runPointActions(r),"touchmove"===r.type)var t=!!(p=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(p[0].chartX-r.chartX,2)+Math.pow(p[0].chartY-r.chartY,2));T(t,!0)&&this.pinch(r)}else p&&this.reset();else 2===r.touches.length&&this.pinch(r)},k.prototype.touchSelect=function(r){return!(!this.chart.options.chart.zooming.singleTouch||!r.touches||1!==r.touches.length)},k.prototype.zoomOption=function(r){var p=this.chart,o=p.options.chart;p=p.inverted;var h=o.zooming.type||"";/touch/.test(r.type)&&(h=T(o.zooming.pinchType,h)),this.zoomX=r=/x/.test(h),this.zoomY=o=/y/.test(h),this.zoomHor=r&&!p||o&&p,this.zoomVert=o&&!p||r&&p,this.hasZoom=r||o},k}()}),ct(U,"Core/MSPointer.js",[U["Core/Globals.js"],U["Core/Pointer.js"],U["Core/Utilities.js"]],function(G,F,M){function it(){var A=[];return A.item=function(T){return this[T]},y(x,function(T){A.push({pageX:T.pageX,pageY:T.pageY,target:T.target})}),A}function et(A,T,R,k){var r=$[F.hoverChartIndex||NaN];"touch"!==A.pointerType&&A.pointerType!==A.MSPOINTER_TYPE_TOUCH||!r||(r=r.pointer,k(A),r[T]({type:R,target:A.currentTarget,preventDefault:_,touches:it()}))}var A,tt=this&&this.__extends||(A=function(T,R){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,r){k.__proto__=r}||function(k,r){for(var p in r)r.hasOwnProperty(p)&&(k[p]=r[p])})(T,R)},function(T,R){function k(){this.constructor=T}A(T,R),T.prototype=null===R?Object.create(R):(k.prototype=R.prototype,new k)}),$=G.charts,N=G.doc,_=G.noop,O=G.win,g=M.addEvent,f=M.css,y=M.objectEach,C=M.pick,v=M.removeEvent,x={},w=!!O.PointerEvent;return function(A){function T(){return null!==A&&A.apply(this,arguments)||this}return tt(T,A),T.isRequired=function(){return!(G.hasTouch||!O.PointerEvent&&!O.MSPointerEvent)},T.prototype.batchMSEvents=function(R){R(this.chart.container,w?"pointerdown":"MSPointerDown",this.onContainerPointerDown),R(this.chart.container,w?"pointermove":"MSPointerMove",this.onContainerPointerMove),R(N,w?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},T.prototype.destroy=function(){this.batchMSEvents(v),A.prototype.destroy.call(this)},T.prototype.init=function(R,k){A.prototype.init.call(this,R,k),this.hasZoom&&f(R.container,{"-ms-touch-action":"none","touch-action":"none"})},T.prototype.onContainerPointerDown=function(R){et(R,"onContainerTouchStart","touchstart",function(k){x[k.pointerId]={pageX:k.pageX,pageY:k.pageY,target:k.currentTarget}})},T.prototype.onContainerPointerMove=function(R){et(R,"onContainerTouchMove","touchmove",function(k){x[k.pointerId]={pageX:k.pageX,pageY:k.pageY},x[k.pointerId].target||(x[k.pointerId].target=k.currentTarget)})},T.prototype.onDocumentPointerUp=function(R){et(R,"onDocumentTouchEnd","touchend",function(k){delete x[k.pointerId]})},T.prototype.setDOMEvents=function(){var R=this.chart.tooltip;A.prototype.setDOMEvents.call(this),(this.hasZoom||C(R&&R.options.followTouchMove,!0))&&this.batchMSEvents(g)},T}(F)}),ct(U,"Core/Legend/Legend.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/FormatUtilities.js"],U["Core/Globals.js"],U["Core/Series/Point.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt){var $=G.animObject,N=G.setAnimation,_=F.format,O=M.marginNames,g=et.distribute,f=tt.addEvent,y=tt.createElement,C=tt.css,v=tt.defined,x=tt.discardElement,w=tt.find,A=tt.fireEvent,T=tt.isNumber,R=tt.merge,k=tt.pick,r=tt.relativeLength,p=tt.stableSort,o=tt.syncTimeout;return function(){function h(t,c){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,c)}return h.prototype.init=function(t,c){this.chart=t,this.setOptions(c),c.enabled&&(this.render(),f(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=f(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(t){var c=k(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=R(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=c,this.initialItemY=c-5,this.symbolWidth=k(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(t,c){var i=this.chart;this.setOptions(R(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(c,!0)&&i.redraw(),A(this,"afterUpdate")},h.prototype.colorizeItem=function(t,c){var i=t.legendItem||{},s=i.group,d=i.label,a=i.line;if(i=i.symbol,s&&s[c?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var m=this.options;s=this.itemHiddenStyle.color,m=c?m.itemStyle.color:s;var b=c&&t.color||s,Y=t.options&&t.options.marker,B={fill:b};d&&d.css({fill:m,color:m}),a&&a.attr({stroke:b}),i&&(Y&&i.isMarker&&(B=t.pointAttribs(),c||(B.stroke=B.fill=s)),i.attr(B))}A(this,"afterColorizeItem",{item:t,visible:c})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(t){var c=this,i=t.legendItem||{},s=i.group,d=i.x;d=void 0===d?0:d,i=void 0===(i=i.y)?0:i;var a=this.options,m=a.symbolPadding,b=!a.rtl;a=t.checkbox,s&&s.element&&(m={translateX:b?d:this.legendWidth-d-2*m-4,translateY:i},s[v(s.translateY)?"animate":"attr"](m,void 0,function(){A(c,"afterPositionItem",{item:t})})),a&&(a.x=d,a.y=i)},h.prototype.destroyItem=function(t){for(var c=t.checkbox,i=t.legendItem||{},s=0,d=["group","label","line","symbol"];s<d.length;s++){var a=d[s];i[a]&&(i[a]=i[a].destroy())}c&&x(c),t.legendItem=void 0},h.prototype.destroy=function(){for(var t=0,c=this.getAllItems();t<c.length;t++)this.destroyItem(c[t]);for(t=0,c="clipRect up down pager nav box title group".split(" ");t<c.length;t++){var i=c[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach(function(d){var a=d.checkbox;if(a){var m=s+i+a.y+(this.scrollOffset||0)+3;C(a,{left:t.translateX+d.checkboxOffset+a.x-20+"px",top:m+"px",display:this.proximate||m>s-6&&m<s+c-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var t=this.options,c=this.padding,i=t.title,s=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,c-3,c-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},h.prototype.setText=function(t){var c=this.options;t.legendItem.label.attr({text:c.labelFormat?_(c.labelFormat,t,this.chart):c.labelFormatter.call(t)})},h.prototype.renderItem=function(t){var c=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,d=this.options,a=this.symbolWidth,m=d.symbolPadding||0,b=this.itemStyle,Y=this.itemHiddenStyle,B="horizontal"===d.layout?k(d.itemDistance,20):0,e=!d.rtl,l=!t.series,P=!l&&t.series.drawLegendSymbol?t.series:t,I=P.options,L=this.createCheckboxForItem&&I&&I.showCheckbox,n=d.useHTML,S=t.options.className,u=c.label;I=a+m+B+(L?20:0),u||(c.group=s.g("legend-item").addClass("highcharts-"+P.type+"-series highcharts-color-"+t.colorIndex+(S?" "+S:"")+(l?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),c.label=u=s.text("",e?a+m:-m,this.baseline||0,n),i.styledMode||u.css(R(t.visible?b:Y)),u.attr({align:e?"left":"right",zIndex:2}).add(c.group),this.baseline||(this.fontMetrics=s.fontMetrics(i.styledMode?12:b.fontSize,u),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,u.attr("y",this.baseline),this.symbolHeight=d.symbolHeight||this.fontMetrics.f,d.squareSymbol&&(this.symbolWidth=k(d.symbolWidth,Math.max(this.symbolHeight,16)),I=this.symbolWidth+m+B+(L?20:0),e&&u.attr("x",this.symbolWidth+m))),P.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,u,n)),L&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&b.width||u.css({width:(d.itemWidth||this.widthOption||i.spacingBox.width)-I+"px"}),this.setText(t),i=u.getBBox(),s=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=d.itemWidth||c.labelWidth||i.width+I,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(c.labelHeight||(i.height>1.5*s?i.height:s))},h.prototype.layoutItem=function(t){var c=this.options,i=this.padding,s="horizontal"===c.layout,d=t.itemHeight,a=this.itemMarginBottom,m=this.itemMarginTop,b=s?k(c.itemDistance,20):0,Y=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>Y?this.maxItemWidth:t.itemWidth;var B=t.legendItem||{};s&&this.itemX-i+c>Y&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=m+this.itemY+a,this.lastLineHeight=Math.max(d,this.lastLineHeight),B.x=this.itemX,B.y=this.itemY,s?this.itemX+=c:(this.itemY+=m+d+a,this.lastLineHeight=d),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:b):c)+i,this.offsetWidth)},h.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(c){var i=c&&c.options;c&&k(i.showInLegend,!v(i.linkedTo)&&void 0,!0)&&(t=t.concat((c.legendItem||{}).labels||("point"===i.legendType?c.data:c)))}),A(this,"afterGetAllItems",{allItems:t}),t},h.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},h.prototype.adjustMargins=function(t,c){var i=this.chart,s=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,m){a.test(d)&&!v(t[m])&&(i[O[m]]=Math.max(i[O[m]],i.legend[(m+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][m]*s[m%2?"x":"y"]+k(s.margin,12)+c[m]+(i.titleOffset[m]||0)))})},h.prototype.proximatePositions=function(){var t=this.chart,c=[],i="left"===this.options.align;this.allItems.forEach(function(b){var Y,B=i;if(b.yAxis){b.xAxis.options.reversed&&(B=!B),b.points&&(Y=w(B?b.points:b.points.slice(0).reverse(),function(l){return T(l.plotY)})),B=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var e=b.yAxis.top-t.plotTop;b.visible?(Y=Y?Y.plotY:b.yAxis.height,Y+=e-.3*B):Y=e+b.yAxis.height,c.push({target:Y,size:B,item:b})}},this);for(var s,d=0,a=g(c,t.plotHeight);d<a.length;d++){var m=a[d];s=m.item.legendItem||{},T(m.pos)&&(s.y=t.plotTop-t.spacing[0]+m.pos)}},h.prototype.render=function(){var t=this.chart,c=t.renderer,i=this.options,s=this.padding,d=this.getAllItems(),a=this.group,m=this.box;this.itemX=s,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=r(i.width,t.spacingBox.width-s);var b=t.spacingBox.width-2*s-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,a||(this.group=a=c.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(a),this.scrollGroup=c.g().add(this.contentGroup)),this.renderTitle(),p(d,function(B,e){return(B.options&&B.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&d.reverse(),this.allItems=d,this.display=b=!!d.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,d.forEach(this.renderItem,this),d.forEach(this.layoutItem,this),d=(this.widthOption||this.offsetWidth)+s;var Y=this.lastItemY+this.lastLineHeight+this.titleHeight;Y=this.handleOverflow(Y),Y+=s,m||(this.box=m=c.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(a)),t.styledMode||m.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<d&&0<Y&&m[m.placed?"animate":"attr"](m.crisp.call({},{x:0,y:0,width:d,height:Y},m.strokeWidth())),a[b?"show":"hide"](),t.styledMode&&"none"===a.getStyle("display")&&(d=Y=0),this.legendWidth=d,this.legendHeight=Y,b&&this.align(),this.proximate||this.positionItems(),A(this,"afterRender")},h.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var c=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?s+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<c.titleOffset[2]&&(s-=c.titleOffset[2]),s!==t.y&&(t=R(t,{y:s})),c.hasRendered||(this.group.placed=!1),this.group.align(R(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},h.prototype.handleOverflow=function(t){var S,u,H,c=this,i=this.chart,s=i.renderer,d=this.options,a=d.y,m="top"===d.verticalAlign,b=this.padding,Y=d.maxHeight,B=d.navigation,e=k(B.animation,!0),l=B.arrowSize||12,P=this.pages,I=this.allItems,L=function(X){"number"==typeof X?W.attr({height:X}):W&&(c.clipRect=W.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=X?"rect("+b+"px,9999px,"+(b+X)+"px,0)":"auto")},n=function(X){return c[X]=s.circle(0,0,1.3*l).translate(l/2,l/2).add(D),i.styledMode||c[X].attr("fill","rgba(0,0,0,0.0001)"),c[X]};a=i.spacingBox.height+(m?-a:a)-b;var D=this.nav,W=this.clipRect;return"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(a/=2),Y&&(a=Math.min(a,Y)),P.length=0,t&&0<a&&t>a&&!1!==B.enabled?(this.clipHeight=S=Math.max(a-20-this.titleHeight-b,0),this.currentPage=k(this.currentPage,1),this.fullHeight=t,I.forEach(function(X,Z){X=(H=X.legendItem||{}).y||0;var q=Math.round(H.label.getBBox().height),st=P.length;(!st||X-P[st-1]>S&&(u||X)!==P[st-1])&&(P.push(u||X),st++),H.pageIx=st-1,u&&((I[Z-1].legendItem||{}).pageIx=st-1),Z===I.length-1&&X+q-P[st-1]>S&&q<=S&&(P.push(X),H.pageIx=st),X!==u&&(u=X)}),W||(W=c.clipRect=s.clipRect(0,b,9999,0),c.contentGroup.clip(W)),L(S),D||(this.nav=D=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,l,l).add(D),n("upTracker").on("click",function(){c.scroll(-1,e)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&B.style&&this.pager.css(B.style),this.pager.add(D),this.down=s.symbol("triangle-down",0,0,l,l).add(D),n("downTracker").on("click",function(){c.scroll(1,e)})),c.scroll(0),t=a):D&&(L(),this.nav=D.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},h.prototype.scroll=function(t,c){var i=this,s=this.chart,d=this.pages,a=d.length,m=this.clipHeight,b=this.options.navigation,Y=this.pager,B=this.padding,e=this.currentPage+t;e>a&&(e=a),0<e&&(typeof c<"u"&&N(c,s),this.nav.attr({translateX:B,translateY:m+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(l){l.attr({class:1===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),Y.attr({text:e+"/"+a}),[this.down,this.downTracker].forEach(function(l){l.attr({x:18+this.pager.getBBox().width,class:e===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),s.styledMode||(this.up.attr({fill:1===e?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:1===e?"default":"pointer"}),this.down.attr({fill:e===a?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:e===a?"default":"pointer"})),this.scrollOffset=-d[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=e,this.positionCheckboxes(),t=$(k(c,s.renderer.globalAnimation,!0)),o(function(){A(i,"afterScroll",{currentPage:e})},t.duration))},h.prototype.setItemEvents=function(t,c,i){var s=this,d=t.legendItem||{},a=s.chart.renderer.boxWrapper,m=t instanceof it,b="highcharts-legend-"+(m?"point":"series")+"-active",Y=s.chart.styledMode,B=function(l){s.allItems.forEach(function(P){t!==P&&[P].concat(P.linkedSeries||[]).forEach(function(I){I.setState(l,!m)})})},e=0;for(i=i?[c,d.symbol]:[d.group];e<i.length;e++)(d=i[e])&&d.on("mouseover",function(){t.visible&&B("inactive"),t.setState("hover"),t.visible&&a.addClass(b),Y||c.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||c.css(R(t.visible?s.itemStyle:s.itemHiddenStyle)),B(""),a.removeClass(b),t.setState()}).on("click",function(l){var P=function(){t.setVisible&&t.setVisible(),B(t.visible?"inactive":"")};a.removeClass(b),l={browserEvent:l},t.firePointEvent?t.firePointEvent("legendItemClick",l,P):A(t,"legendItemClick",l,P)})},h.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),f(t.checkbox,"click",function(c){A(t.series||t,"checkboxClick",{checked:c.target.checked,item:t},function(){t.select()})})},h}()}),ct(U,"Core/Series/SeriesRegistry.js",[U["Core/Globals.js"],U["Core/Defaults.js"],U["Core/Series/Point.js"],U["Core/Utilities.js"]],function(G,F,M,it){var N,et=F.defaultOptions,tt=it.extendClass,$=it.merge;return function(_){function O(g,f){var y=et.plotOptions||{},C=f.defaultOptions,v=f.prototype;v.type=g,v.pointClass||(v.pointClass=M),C&&(y[g]=C),_.seriesTypes[g]=f}_.seriesTypes=G.seriesTypes,_.registerSeriesType=O,_.seriesType=function(g,f,y,C,v){var x=et.plotOptions||{};return x[g]=$(x[f=f||""],y),O(g,tt(_.seriesTypes[f]||function(){},C)),_.seriesTypes[g].prototype.type=g,v&&(_.seriesTypes[g].prototype.pointClass=tt(M,v)),_.seriesTypes[g]}}(N||(N={})),N}),ct(U,"Core/Chart/Chart.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Defaults.js"],U["Core/FormatUtilities.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Legend/Legend.js"],U["Core/MSPointer.js"],U["Core/Pointer.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Time.js"],U["Core/Utilities.js"],U["Core/Renderer/HTML/AST.js"]],function(G,F,M,it,et,tt,$,N,_,O,g,f,y,C,v){var x=G.animate,w=G.animObject,A=G.setAnimation,T=M.defaultOptions,R=M.defaultTime,k=it.numberFormat,r=et.registerEventOptions,p=tt.charts,o=tt.doc,h=tt.marginNames,t=tt.svg,c=tt.win,i=g.seriesTypes,s=C.addEvent,d=C.attr,a=C.cleanRecursively,m=C.createElement,b=C.css,Y=C.defined,B=C.discardElement,e=C.erase,l=C.error,P=C.extend,I=C.find,L=C.fireEvent,n=C.getStyle,S=C.isArray,u=C.isNumber,H=C.isObject,D=C.isString,W=C.merge,X=C.objectEach,Z=C.pick,q=C.pInt,st=C.relativeLength,nt=C.removeEvent,rt=C.splat,V=C.syncTimeout,Q=C.uniqueKey;return G=function(){function z(E,j,K){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(E,j,K)}return z.chart=function(E,j,K){return new z(E,j,K)},z.prototype.getArgs=function(E,j,K){D(E)||E.nodeName?(this.renderTo=E,this.init(j,K)):this.init(E,j)},z.prototype.init=function(E,j){var K=E.plotOptions||{};L(this,"init",{args:arguments},function(){var J=W(T,E),ot=J.chart;X(J.plotOptions,function(ht,dt){H(ht)&&(ht.tooltip=K[dt]&&W(K[dt].tooltip)||void 0)}),J.tooltip.userOptions=E.chart&&E.chart.forExport&&E.tooltip.userOptions||E.tooltip,this.userOptions=E,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=j,this.isResizing=0;var at=ot.zooming=ot.zooming||{};E.chart&&!E.chart.zooming&&(at.resetButton=ot.resetZoomButton),at.key=Z(at.key,ot.zoomKey),at.pinchType=Z(at.pinchType,ot.pinchType),at.singleTouch=Z(at.singleTouch,ot.zoomBySingleTouch),at.type=Z(at.type,ot.zoomType),this.options=J,this.axes=[],this.series=[],this.time=E.time&&Object.keys(E.time).length?new y(E.time):tt.time,this.numberFormatter=ot.numberFormatter||k,this.styledMode=ot.styledMode,this.hasCartesianSeries=ot.showAxes,this.index=p.length,p.push(this),tt.chartCount++,r(this,ot),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,L(this,"afterInit"),this.firstRender()})},z.prototype.initSeries=function(E){var j=this.options.chart,K=i[j=E.type||j.type||j.defaultSeriesType];return K||l(17,!0,this,{missingModuleFor:j}),"function"==typeof(j=new K).init&&j.init(this,E),j},z.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(E){E.points||E.data||!E.enabledDataSorting||E.setData(E.options.data,!1)})},z.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(E,j){return E.linkedSeries.length||j.linkedSeries.length?j.linkedSeries.length-E.linkedSeries.length:0})},z.prototype.orderSeries=function(E){var j=this.series;E=E||0;for(var K=j.length;E<K;++E)j[E]&&(j[E].index=E,j[E].name=j[E].getName())},z.prototype.isInsidePlot=function(E,j,K){void 0===K&&(K={});var J=this.inverted,ot=this.plotBox,at=this.plotLeft,ht=this.plotTop,dt=this.scrollablePlotBox,ft=0,lt=0;K.visiblePlotOnly&&this.scrollingContainer&&(ft=(lt=this.scrollingContainer).scrollLeft,lt=lt.scrollTop);var pt=K.series;if(ot=K.visiblePlotOnly&&dt||ot,E={x:dt=K.inverted?j:E,y:j=K.inverted?E:j,isInsidePlot:!0,options:K},!K.ignoreX){var yt=pt&&(J&&!this.polar?pt.yAxis:pt.xAxis)||{pos:at,len:1/0};(dt=K.paneCoordinates?yt.pos+dt:at+dt)>=Math.max(ft+at,yt.pos)&&dt<=Math.min(ft+at+ot.width,yt.pos+yt.len)||(E.isInsidePlot=!1)}return!K.ignoreY&&E.isInsidePlot&&(J=K.axis&&!K.axis.isXAxis&&K.axis||pt&&(J?pt.xAxis:pt.yAxis)||{pos:ht,len:1/0},(K=K.paneCoordinates?J.pos+j:ht+j)>=Math.max(lt+ht,J.pos)&&K<=Math.min(lt+ht+ot.height,J.pos+J.len)||(E.isInsidePlot=!1)),L(this,"afterIsInsidePlot",E),E.isInsidePlot},z.prototype.redraw=function(E){L(this,"beforeRedraw");var j=this.hasCartesianSeries?this.axes:this.colorAxis||[],K=this.series,J=this.pointer,ot=this.legend,at=this.userOptions.legend,ht=this.renderer,dt=ht.isHidden(),ft=[],lt=this.isDirtyBox,pt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),A(!!this.hasRendered&&E,this),dt&&this.temporaryDisplay(),this.layOutTitles(),E=K.length;E--;){var yt=K[E];if(yt.options.stacking||yt.options.centerInCategory){var gt=!0;if(yt.isDirty){var mt=!0;break}}}if(mt)for(E=K.length;E--;)(yt=K[E]).options.stacking&&(yt.isDirty=!0);K.forEach(function(ut){ut.isDirty&&("point"===ut.options.legendType?("function"==typeof ut.updateTotals&&ut.updateTotals(),pt=!0):at&&(at.labelFormatter||at.labelFormat)&&(pt=!0)),ut.isDirtyData&&L(ut,"updatedData")}),pt&&ot&&ot.options.enabled&&(ot.render(),this.isDirtyLegend=!1),gt&&this.getStacks(),j.forEach(function(ut){ut.updateNames(),ut.setScale()}),this.getMargins(),j.forEach(function(ut){ut.isDirty&&(lt=!0)}),j.forEach(function(ut){var Ct=ut.min+","+ut.max;ut.extKey!==Ct&&(ut.extKey=Ct,ft.push(function(){L(ut,"afterSetExtremes",P(ut.eventArgs,ut.getExtremes())),delete ut.eventArgs})),(lt||gt)&&ut.redraw()}),lt&&this.drawChartBox(),L(this,"predraw"),K.forEach(function(ut){(lt||ut.isDirty)&&ut.visible&&ut.redraw(),ut.isDirtyData=!1}),J&&J.reset(!0),ht.draw(),L(this,"redraw"),L(this,"render"),dt&&this.temporaryDisplay(!0),ft.forEach(function(ut){ut.call()})},z.prototype.get=function(E){function j(at){return at.id===E||at.options&&at.options.id===E}for(var K=this.series,J=I(this.axes,j)||I(this.series,j),ot=0;!J&&ot<K.length;ot++)J=I(K[ot].points||[],j);return J},z.prototype.getAxes=function(){var E=this,j=this.options,K=j.xAxis=rt(j.xAxis||{});j=j.yAxis=rt(j.yAxis||{}),L(this,"getAxes"),K.forEach(function(J,ot){J.index=ot,J.isX=!0}),j.forEach(function(J,ot){J.index=ot}),K.concat(j).forEach(function(J){new F(E,J)}),L(this,"afterGetAxes")},z.prototype.getSelectedPoints=function(){return this.series.reduce(function(E,j){return j.getPointsCollection().forEach(function(K){Z(K.selectedStaging,K.selected)&&E.push(K)}),E},[])},z.prototype.getSelectedSeries=function(){return this.series.filter(function(E){return E.selected})},z.prototype.setTitle=function(E,j,K){this.applyDescription("title",E),this.applyDescription("subtitle",j),this.applyDescription("caption",void 0),this.layOutTitles(K)},z.prototype.applyDescription=function(E,j){var K=this,J="title"===E?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};J=this.options[E]=W(!this.styledMode&&{style:J},this.options[E],j);var ot=this[E];ot&&j&&(this[E]=ot=ot.destroy()),J&&!ot&&((ot=this.renderer.text(J.text,0,0,J.useHTML).attr({align:J.align,class:"highcharts-"+E,zIndex:J.zIndex||4}).add()).update=function(at){K[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[E]](at)},this.styledMode||ot.css(J.style),this[E]=ot)},z.prototype.layOutTitles=function(E){var j=[0,0,0],K=this.renderer,J=this.spacingBox;["title","subtitle","caption"].forEach(function(at){var lt,ht=this[at],dt=this.options[at],ft=dt.verticalAlign||"top";if(at="title"===at?"top"===ft?-3:0:"top"===ft?j[0]+2:0,ht){this.styledMode||(lt=dt.style&&dt.style.fontSize),lt=K.fontMetrics(lt,ht).b,ht.css({width:(dt.width||J.width+(dt.widthAdjust||0))+"px"});var pt=Math.round(ht.getBBox(dt.useHTML).height);ht.align(P({y:"bottom"===ft?lt:at+lt,height:pt},dt),!1,"spacingBox"),dt.floating||("top"===ft?j[0]=Math.ceil(j[0]+pt):"bottom"===ft&&(j[2]=Math.ceil(j[2]+pt)))}},this),j[0]&&"top"===(this.options.title.verticalAlign||"top")&&(j[0]+=this.options.title.margin),j[2]&&"bottom"===this.options.caption.verticalAlign&&(j[2]+=this.options.caption.margin);var ot=!this.titleOffset||this.titleOffset.join(",")!==j.join(",");this.titleOffset=j,L(this,"afterLayOutTitles"),!this.isDirtyBox&&ot&&(this.isDirtyBox=this.isDirtyLegend=ot,this.hasRendered&&Z(E,!0)&&this.isDirtyBox&&this.redraw())},z.prototype.getChartSize=function(){var E=this.options.chart,j=E.width;E=E.height;var K=this.renderTo;Y(j)||(this.containerWidth=n(K,"width")),Y(E)||(this.containerHeight=n(K,"height")),this.chartWidth=Math.max(0,j||this.containerWidth||600),this.chartHeight=Math.max(0,st(E,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},z.prototype.temporaryDisplay=function(E){var j=this.renderTo;if(E)for(;j&&j.style;)j.hcOrigStyle&&(b(j,j.hcOrigStyle),delete j.hcOrigStyle),j.hcOrigDetached&&(o.body.removeChild(j),j.hcOrigDetached=!1),j=j.parentNode;else for(;j&&j.style&&(o.body.contains(j)||j.parentNode||(j.hcOrigDetached=!0,o.body.appendChild(j)),("none"===n(j,"display",!1)||j.hcOricDetached)&&(j.hcOrigStyle={display:j.style.display,height:j.style.height,overflow:j.style.overflow},E={display:"block",overflow:"hidden"},j!==this.renderTo&&(E.height=0),b(j,E),j.offsetWidth||j.style.setProperty("display","block","important")),(j=j.parentNode)!==o.body););},z.prototype.setClassName=function(E){this.container.className="highcharts-container "+(E||"")},z.prototype.getContainer=function(){var J,E=this.options,j=E.chart,K=Q(),ot=this.renderTo;ot||(this.renderTo=ot=j.renderTo),D(ot)&&(this.renderTo=ot=o.getElementById(ot)),ot||l(13,!0,this);var at=q(d(ot,"data-highcharts-chart"));u(at)&&p[at]&&p[at].hasRendered&&p[at].destroy(),d(ot,"data-highcharts-chart",this.index),ot.innerHTML=v.emptyHTML,j.skipClone||ot.offsetWidth||this.temporaryDisplay(),this.getChartSize(),at=this.chartWidth;var ht=this.chartHeight;if(b(ot,{overflow:"hidden"}),this.styledMode||(J=P({position:"relative",overflow:"hidden",width:at+"px",height:ht+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},j.style||{})),this.container=K=m("div",{id:K},J,ot),this._cursor=K.style.cursor,this.renderer=new(j.renderer||!t?O.getRendererType(j.renderer):f)(K,at,ht,void 0,j.forExport,E.exporting&&E.exporting.allowHTML,this.styledMode),A(void 0,this),this.setClassName(j.className),this.styledMode)for(var dt in E.defs)this.renderer.definition(E.defs[dt]);else this.renderer.setStyle(j.style);this.renderer.chartIndex=this.index,L(this,"afterGetContainer")},z.prototype.getMargins=function(E){var j=this.spacing,K=this.margin,J=this.titleOffset;this.resetMargins(),J[0]&&!Y(K[0])&&(this.plotTop=Math.max(this.plotTop,J[0]+j[0])),J[2]&&!Y(K[2])&&(this.marginBottom=Math.max(this.marginBottom,J[2]+j[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(K,j),L(this,"getMargins"),E||this.getAxisMargins()},z.prototype.getAxisMargins=function(){var E=this,j=E.axisOffset=[0,0,0,0],K=E.colorAxis,J=E.margin,ot=function(at){at.forEach(function(ht){ht.visible&&ht.getOffset()})};E.hasCartesianSeries?ot(E.axes):K&&K.length&&ot(K),h.forEach(function(at,ht){Y(J[ht])||(E[at]+=j[ht])}),E.setChartSize()},z.prototype.reflow=function(E){var j=this,K=j.options.chart,J=j.renderTo,ot=Y(K.width)&&Y(K.height),at=K.width||n(J,"width");K=K.height||n(J,"height"),J=E?E.target:c,delete j.pointer.chartPosition,!ot&&!j.isPrinting&&at&&K&&(J===c||J===o)&&((at!==j.containerWidth||K!==j.containerHeight)&&(C.clearTimeout(j.reflowTimeout),j.reflowTimeout=V(function(){j.container&&j.setSize(void 0,void 0,!1)},E?100:0)),j.containerWidth=at,j.containerHeight=K)},z.prototype.setReflow=function(E){var j=this;!1===E||this.unbindReflow?!1===E&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=s(c,"resize",function(K){j.options&&j.reflow(K)}),s(this,"destroy",this.unbindReflow))},z.prototype.setSize=function(E,j,K){var J=this,ot=J.renderer;J.isResizing+=1,A(K,J),K=ot.globalAnimation,J.oldChartHeight=J.chartHeight,J.oldChartWidth=J.chartWidth,typeof E<"u"&&(J.options.chart.width=E),typeof j<"u"&&(J.options.chart.height=j),J.getChartSize(),J.styledMode||(K?x:b)(J.container,{width:J.chartWidth+"px",height:J.chartHeight+"px"},K),J.setChartSize(!0),ot.setSize(J.chartWidth,J.chartHeight,K),J.axes.forEach(function(at){at.isDirty=!0,at.setScale()}),J.isDirtyLegend=!0,J.isDirtyBox=!0,J.layOutTitles(),J.getMargins(),J.redraw(K),J.oldChartHeight=null,L(J,"resize"),V(function(){J&&L(J,"endResize",null,function(){--J.isResizing})},w(K).duration)},z.prototype.setChartSize=function(E){var ft,lt,pt,yt,j=this.inverted,K=this.renderer,J=this.chartWidth,ot=this.chartHeight,at=this.options.chart,ht=this.spacing,dt=this.clipOffset;this.plotLeft=ft=Math.round(this.plotLeft),this.plotTop=lt=Math.round(this.plotTop),this.plotWidth=pt=Math.max(0,Math.round(J-ft-this.marginRight)),this.plotHeight=yt=Math.max(0,Math.round(ot-lt-this.marginBottom)),this.plotSizeX=j?yt:pt,this.plotSizeY=j?pt:yt,this.plotBorderWidth=at.plotBorderWidth||0,this.spacingBox=K.spacingBox={x:ht[3],y:ht[0],width:J-ht[3]-ht[1],height:ot-ht[0]-ht[2]},this.plotBox=K.plotBox={x:ft,y:lt,width:pt,height:yt},j=2*Math.floor(this.plotBorderWidth/2),J=Math.ceil(Math.max(j,dt[3])/2),ot=Math.ceil(Math.max(j,dt[0])/2),this.clipBox={x:J,y:ot,width:Math.floor(this.plotSizeX-Math.max(j,dt[1])/2-J),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(j,dt[2])/2-ot))},E||(this.axes.forEach(function(gt){gt.setAxisSize(),gt.setAxisTranslation()}),K.alignElements()),L(this,"afterSetChartSize",{skipAxes:E})},z.prototype.resetMargins=function(){L(this,"resetMargins");var E=this,j=E.options.chart;["margin","spacing"].forEach(function(K){var J=j[K],ot=H(J)?J:[J,J,J,J];["Top","Right","Bottom","Left"].forEach(function(at,ht){E[K][ht]=Z(j[K+at],ot[ht])})}),h.forEach(function(K,J){E[K]=Z(E.margin[J],E.spacing[J])}),E.axisOffset=[0,0,0,0],E.clipOffset=[0,0,0,0]},z.prototype.drawChartBox=function(){var kt,E=this.options.chart,j=this.renderer,K=this.chartWidth,J=this.chartHeight,ot=this.styledMode,at=this.plotBGImage,ht=E.backgroundColor,dt=E.plotBackgroundColor,ft=E.plotBackgroundImage,lt=this.plotLeft,pt=this.plotTop,yt=this.plotWidth,gt=this.plotHeight,mt=this.plotBox,ut=this.clipRect,Ct=this.clipBox,St=this.chartBackground,xt=this.plotBackground,Pt=this.plotBorder,Mt="animate";if(St||(this.chartBackground=St=j.rect().addClass("highcharts-background").add(),Mt="attr"),ot)var Tt=kt=St.strokeWidth();else kt=(Tt=E.borderWidth||0)+(E.shadow?8:0),ht={fill:ht||"none"},(Tt||St["stroke-width"])&&(ht.stroke=E.borderColor,ht["stroke-width"]=Tt),St.attr(ht).shadow(E.shadow);St[Mt]({x:kt/2,y:kt/2,width:K-kt-Tt%2,height:J-kt-Tt%2,r:E.borderRadius}),Mt="animate",xt||(Mt="attr",this.plotBackground=xt=j.rect().addClass("highcharts-plot-background").add()),xt[Mt](mt),ot||(xt.attr({fill:dt||"none"}).shadow(E.plotShadow),ft&&(at?(ft!==at.attr("href")&&at.attr("href",ft),at.animate(mt)):this.plotBGImage=j.image(ft,lt,pt,yt,gt).add())),ut?ut.animate({width:Ct.width,height:Ct.height}):this.clipRect=j.clipRect(Ct),Mt="animate",Pt||(Mt="attr",this.plotBorder=Pt=j.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),ot||Pt.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),Pt[Mt](Pt.crisp({x:lt,y:pt,width:yt,height:gt},-Pt.strokeWidth())),this.isDirtyBox=!1,L(this,"afterDrawChartBox")},z.prototype.propFromSeries=function(){var J,ot,at,E=this,j=E.options.chart,K=E.options.series;["inverted","angular","polar"].forEach(function(ht){for(ot=i[j.type||j.defaultSeriesType],at=j[ht]||ot&&ot.prototype[ht],J=K&&K.length;!at&&J--;)(ot=i[K[J].type])&&ot.prototype[ht]&&(at=!0);E[ht]=at})},z.prototype.linkSeries=function(){var E=this,j=E.series;j.forEach(function(K){K.linkedSeries.length=0}),j.forEach(function(K){var J=K.options.linkedTo;D(J)&&(J=":previous"===J?E.series[K.index-1]:E.get(J))&&J.linkedParent!==K&&(J.linkedSeries.push(K),K.linkedParent=J,J.enabledDataSorting&&K.setDataSortingOptions(),K.visible=Z(K.options.visible,J.options.visible,K.visible))}),L(this,"afterLinkSeries")},z.prototype.renderSeries=function(){this.series.forEach(function(E){E.translate(),E.render()})},z.prototype.renderLabels=function(){var E=this,j=E.options.labels;j.items&&j.items.forEach(function(K){var J=P(j.style,K.style),ot=q(J.left)+E.plotLeft,at=q(J.top)+E.plotTop+12;delete J.left,delete J.top,E.renderer.text(K.html,ot,at).attr({zIndex:2}).css(J).add()})},z.prototype.render=function(){var E=this.axes,j=this.colorAxis,K=this.renderer,J=this.options,ot=function(lt){lt.forEach(function(pt){pt.visible&&pt.render()})},at=0;this.setTitle(),this.legend=new $(this,J.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),J=this.plotWidth,E.some(function(lt){if(lt.horiz&<.visible&<.options.labels.enabled&<.series.length)return at=21,!0});var ht=this.plotHeight=Math.max(this.plotHeight-at,0);E.forEach(function(lt){lt.setScale()}),this.getAxisMargins();var dt=1.1<J/this.plotWidth,ft=1.05<ht/this.plotHeight;(dt||ft)&&(E.forEach(function(lt){(lt.horiz&&dt||!lt.horiz&&ft)&<.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?ot(E):j&&j.length&&ot(j),this.seriesGroup||(this.seriesGroup=K.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},z.prototype.addCredits=function(E){var j=this,K=W(!0,this.options.credits,E);K.enabled&&!this.credits&&(this.credits=this.renderer.text(K.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){K.href&&(c.location.href=K.href)}).attr({align:K.position.align,zIndex:8}),j.styledMode||this.credits.css(K.style),this.credits.add().align(K.position),this.credits.update=function(J){j.credits=j.credits.destroy(),j.addCredits(J)})},z.prototype.destroy=function(){var at,E=this,j=E.axes,K=E.series,J=E.container,ot=J&&J.parentNode;for(L(E,"destroy"),E.renderer.forExport?e(p,E):p[E.index]=void 0,tt.chartCount--,E.renderTo.removeAttribute("data-highcharts-chart"),nt(E),at=j.length;at--;)j[at]=j[at].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),at=K.length;at--;)K[at]=K[at].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ht){var dt=E[ht];dt&&dt.destroy&&(E[ht]=dt.destroy())}),J&&(J.innerHTML=v.emptyHTML,nt(J),ot&&B(J)),X(E,function(ht,dt){delete E[dt]})},z.prototype.firstRender=function(){var E=this,j=E.options;(!E.isReadyToRender||E.isReadyToRender())&&(E.getContainer(),E.resetMargins(),E.setChartSize(),E.propFromSeries(),E.getAxes(),(S(j.series)?j.series:[]).forEach(function(K){E.initSeries(K)}),E.linkSeries(),E.setSeriesData(),L(E,"beforeRender"),_&&(E.pointer=N.isRequired()?new N(E,j):new _(E,j)),E.render(),E.pointer.getChartPosition(),!E.renderer.imgCount&&!E.hasLoaded&&E.onload(),E.temporaryDisplay(!0))},z.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(E){E&&typeof this.index<"u"&&E.apply(this,[this])},this),L(this,"load"),L(this,"render"),Y(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},z.prototype.warnIfA11yModuleNotLoaded=function(){var E=this.options,j=this.title;E&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(j&&j.element.textContent||"").replace(/</g,"<")}),E.accessibility&&!1===E.accessibility.enabled||l('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},z.prototype.addSeries=function(E,j,K){var ot,J=this;return E&&(j=Z(j,!0),L(J,"addSeries",{options:E},function(){ot=J.initSeries(E),J.isDirtyLegend=!0,J.linkSeries(),ot.enabledDataSorting&&ot.setData(E.data,!1),L(J,"afterAddSeries",{series:ot}),j&&J.redraw(K)})),ot},z.prototype.addAxis=function(E,j,K,J){return this.createAxis(j?"xAxis":"yAxis",{axis:E,redraw:K,animation:J})},z.prototype.addColorAxis=function(E,j,K){return this.createAxis("colorAxis",{axis:E,redraw:j,animation:K})},z.prototype.createAxis=function(E,j){return E=new F(this,W(j.axis,{index:this[E].length,isX:"xAxis"===E})),Z(j.redraw,!0)&&this.redraw(j.animation),E},z.prototype.showLoading=function(E){var j=this,K=j.options,J=K.loading,ot=function(){at&&b(at,{left:j.plotLeft+"px",top:j.plotTop+"px",width:j.plotWidth+"px",height:j.plotHeight+"px"})},at=j.loadingDiv,ht=j.loadingSpan;at||(j.loadingDiv=at=m("div",{className:"highcharts-loading highcharts-loading-hidden"},null,j.container)),ht||(j.loadingSpan=ht=m("span",{className:"highcharts-loading-inner"},null,at),s(j,"redraw",ot)),at.className="highcharts-loading",v.setElementHTML(ht,Z(E,K.lang.loading,"")),j.styledMode||(b(at,P(J.style,{zIndex:10})),b(ht,J.labelStyle),j.loadingShown||(b(at,{opacity:0,display:""}),x(at,{opacity:J.style.opacity||.5},{duration:J.showDuration||0}))),j.loadingShown=!0,ot()},z.prototype.hideLoading=function(){var E=this.options,j=this.loadingDiv;j&&(j.className="highcharts-loading highcharts-loading-hidden",this.styledMode||x(j,{opacity:0},{duration:E.loading.hideDuration||100,complete:function(){b(j,{display:"none"})}})),this.loadingShown=!1},z.prototype.update=function(E,j,K,J){var ft,lt,ot=this,at={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ht=E.isResponsiveOptions,dt=[];L(ot,"update",{options:E}),ht||ot.setResponsive(!1,!0),E=a(E,ot.options),ot.userOptions=W(ot.userOptions,E);var pt=E.chart;if(pt){if(W(!0,ot.options.chart,pt),"className"in pt&&ot.setClassName(pt.className),"reflow"in pt&&ot.setReflow(pt.reflow),"inverted"in pt||"polar"in pt||"type"in pt){ot.propFromSeries();var yt=!0}"alignTicks"in pt&&(yt=!0),"events"in pt&&r(this,pt),X(pt,function(gt,mt){-1!==ot.propsRequireUpdateSeries.indexOf("chart."+mt)&&(ft=!0),-1!==ot.propsRequireDirtyBox.indexOf(mt)&&(ot.isDirtyBox=!0),-1!==ot.propsRequireReflow.indexOf(mt)&&(ht?ot.isDirtyBox=!0:lt=!0)}),!ot.styledMode&&pt.style&&ot.renderer.setStyle(ot.options.chart.style||{})}!ot.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===R&&(this.time=new y(E.time)),W(!0,ot.options.time,E.time)),X(E,function(gt,mt){ot[mt]&&"function"==typeof ot[mt].update?ot[mt].update(gt,!1):"function"==typeof ot[at[mt]]?ot[at[mt]](gt):"colors"!==mt&&-1===ot.collectionsWithUpdate.indexOf(mt)&&W(!0,ot.options[mt],E[mt]),"chart"!==mt&&-1!==ot.propsRequireUpdateSeries.indexOf(mt)&&(ft=!0)}),this.collectionsWithUpdate.forEach(function(gt){if(E[gt]){var mt=[];ot[gt].forEach(function(ut,Ct){ut.options.isInternal||mt.push(Z(ut.options.index,Ct))}),rt(E[gt]).forEach(function(ut,Ct){var xt,St=Y(ut.id);St&&(xt=ot.get(ut.id)),!xt&&ot[gt]&&(xt=ot[gt][mt?mt[Ct]:Ct])&&St&&Y(xt.options.id)&&(xt=void 0),xt&&xt.coll===gt&&(xt.update(ut,!1),K&&(xt.touched=!0)),!xt&&K&&ot.collectionsWithInit[gt]&&(ot.collectionsWithInit[gt][0].apply(ot,[ut].concat(ot.collectionsWithInit[gt][1]||[]).concat([!1])).touched=!0)}),K&&ot[gt].forEach(function(ut){ut.touched||ut.options.isInternal?delete ut.touched:dt.push(ut)})}}),dt.forEach(function(gt){gt.chart&>.remove&>.remove(!1)}),yt&&ot.axes.forEach(function(gt){gt.update({},!1)}),ft&&ot.getSeriesOrderByLinks().forEach(function(gt){gt.chart&>.update({},!1)},this),yt=pt&&pt.width,pt=pt&&(D(pt.height)?st(pt.height,yt||ot.chartWidth):pt.height),lt||u(yt)&&yt!==ot.chartWidth||u(pt)&&pt!==ot.chartHeight?ot.setSize(yt,pt,J):Z(j,!0)&&ot.redraw(J),L(ot,"afterUpdate",{options:E,redraw:j,animation:J})},z.prototype.setSubtitle=function(E,j){this.applyDescription("subtitle",E),this.layOutTitles(j)},z.prototype.setCaption=function(E,j){this.applyDescription("caption",E),this.layOutTitles(j)},z.prototype.showResetZoom=function(){function E(){j.zoomOut()}var j=this,K=T.lang,J=j.options.chart.zooming.resetButton,ot=J.theme,at="chart"===J.relativeTo||"spacingBox"===J.relativeTo?null:"scrollablePlotBox";L(this,"beforeShowResetZoom",null,function(){j.resetZoomButton=j.renderer.button(K.resetZoom,null,null,E,ot).attr({align:J.position.align,title:K.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(J.position,!1,at)}),L(this,"afterShowResetZoom")},z.prototype.zoomOut=function(){L(this,"selection",{resetSelection:!0},this.zoom)},z.prototype.zoom=function(E){var ot,j=this,K=j.pointer,J=!1;!E||E.resetSelection?(j.axes.forEach(function(ht){ot=ht.zoom()}),K.initiated=!1):E.xAxis.concat(E.yAxis).forEach(function(ht){var dt=ht.axis;(K[dt.isXAxis?"zoomX":"zoomY"]&&Y(K.mouseDownX)&&Y(K.mouseDownY)&&j.isInsidePlot(K.mouseDownX-j.plotLeft,K.mouseDownY-j.plotTop,{axis:dt})||!Y(j.inverted?K.mouseDownX:K.mouseDownY))&&(ot=dt.zoom(ht.min,ht.max),dt.displayBtn&&(J=!0))});var at=j.resetZoomButton;J&&!at?j.showResetZoom():!J&&H(at)&&(j.resetZoomButton=at.destroy()),ot&&j.redraw(Z(j.options.chart.animation,E&&E.animation,100>j.pointCount))},z.prototype.pan=function(E,j){var K=this,J=K.hoverPoints;j="object"==typeof j?j:{enabled:j,type:"x"};var ot=K.options.chart;ot&&ot.panning&&(ot.panning=j);var ht,at=j.type;L(this,"pan",{originalEvent:E},function(){J&&J.forEach(function(lt){lt.setState()});var dt=K.xAxis;"xy"===at?dt=dt.concat(K.yAxis):"y"===at&&(dt=K.yAxis);var ft={};dt.forEach(function(lt){if(lt.options.panningEnabled&&!lt.options.isInternal){var pt=lt.horiz,yt=E[pt?"chartX":"chartY"],gt=K[pt=pt?"mouseDownX":"mouseDownY"],mt=lt.minPointOffset||0,ut=lt.reversed&&!K.inverted||!lt.reversed&&K.inverted?-1:1,Ct=lt.getExtremes(),St=lt.toValue(gt-yt,!0)+mt*ut,xt=lt.toValue(gt+lt.len-yt,!0)-(mt*ut||lt.isXAxis&<.pointRangePadding||0),Pt=xt<St;ut=lt.hasVerticalPanning(),gt=Pt?xt:St,St=Pt?St:xt;var kt=lt.panningState;!ut||lt.isXAxis||kt&&!kt.isDirty||lt.series.forEach(function(Mt){var Tt=Mt.getProcessedData(!0);Tt=Mt.getExtremes(Tt.yData,!0),kt||(kt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),u(Tt.dataMin)&&u(Tt.dataMax)&&(kt.startMin=Math.min(Z(Mt.options.threshold,1/0),Tt.dataMin,kt.startMin),kt.startMax=Math.max(Z(Mt.options.threshold,-1/0),Tt.dataMax,kt.startMax))}),ut=Math.min(Z(kt&&kt.startMin,Ct.dataMin),mt?Ct.min:lt.toValue(lt.toPixels(Ct.min)-lt.minPixelPadding)),xt=Math.max(Z(kt&&kt.startMax,Ct.dataMax),mt?Ct.max:lt.toValue(lt.toPixels(Ct.max)+lt.minPixelPadding)),lt.panningState=kt,lt.isOrdinal||(0<(mt=ut-gt)&&(St+=mt,gt=ut),0<(mt=St-xt)&&(St=xt,gt-=mt),lt.series.length&>!==Ct.min&&St!==Ct.max&>>=ut&&St<=xt&&(lt.setExtremes(gt,St,!1,!1,{trigger:"pan"}),!K.resetZoomButton&>!==ut&&St!==xt&&at.match("y")&&(K.showResetZoom(),lt.displayBtn=!1),ht=!0),ft[pt]=yt)}}),X(ft,function(lt,pt){K[pt]=lt}),ht&&K.redraw(!1),b(K.container,{cursor:"move"})})},z}(),P(G.prototype,{callbacks:[],collectionsWithInit:{xAxis:[G.prototype.addAxis,[!0]],yAxis:[G.prototype.addAxis,[!1]],series:[G.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),G}),ct(U,"Core/Legend/LegendSymbol.js",[U["Core/Utilities.js"]],function(G){var et,tt,F=G.extend,M=G.merge,it=G.pick;return(tt=et||(et={})).drawLineMarker=function($){var N=this.legendItem=this.legendItem||{},_=this.options,O=$.symbolWidth,g=$.symbolHeight,f=g/2,y=this.chart.renderer,C=N.group;$=$.baseline-Math.round(.3*$.fontMetrics.b);var v={},x=_.marker,w=0;this.chart.styledMode||(v={"stroke-width":Math.min(_.lineWidth||0,24)},_.dashStyle?v.dashstyle=_.dashStyle:"square"!==_.linecap&&(v["stroke-linecap"]="round")),N.line=y.path().addClass("highcharts-graph").attr(v).add(C),v["stroke-linecap"]&&(w=Math.min(N.line.strokeWidth(),O)/2),N.line.attr({d:[["M",w,$],["L",O-w,$]]}),x&&!1!==x.enabled&&O&&(_=Math.min(it(x.radius,f),f),0===this.symbol.indexOf("url")&&(x=M(x,{width:g,height:g}),_=0),N.symbol=N=y.symbol(this.symbol,O/2-_,$-_,2*_,2*_,F({context:"legend"},x)).addClass("highcharts-point").add(C),N.isMarker=!0)},tt.drawRectangle=function($,N){var _=$.symbolHeight,O=$.options.squareSymbol;(N=N.legendItem||{}).symbol=this.chart.renderer.rect(O?($.symbolWidth-_)/2:0,$.baseline-_+1,O?_:$.symbolWidth,_,it($.options.symbolRadius,_/2)).addClass("highcharts-point").attr({zIndex:3}).add(N.group)},et}),ct(U,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){return"number"!=typeof this.y?"":(0,this.series.chart.numberFormatter)(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),ct(U,"Core/Series/Series.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Defaults.js"],U["Core/Foundation.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/Point.js"],U["Core/Series/SeriesDefaults.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt,$,N,_,O){var g=G.animObject,f=G.setAnimation,y=F.defaultOptions,C=M.registerEventOptions,v=it.hasTouch,x=it.svg,w=it.win,A=N.seriesTypes,T=O.arrayMax,R=O.arrayMin,k=O.clamp,r=O.cleanRecursively,p=O.correctFloat,o=O.defined,h=O.erase,t=O.error,c=O.extend,i=O.find,s=O.fireEvent,d=O.getNestedProperty,a=O.isArray,m=O.isNumber,b=O.isString,Y=O.merge,B=O.objectEach,e=O.pick,l=O.removeEvent,P=O.splat,I=O.syncTimeout;return G=function(){function L(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return L.prototype.init=function(n,S){s(this,"init",{options:S});var u=this,H=n.series;this.eventsToUnbind=[],u.chart=n,u.options=u.setOptions(S),S=u.options,u.linkedSeries=[],u.bindAxes(),c(u,{name:S.name,state:"",visible:!1!==S.visible,selected:!0===S.selected}),C(this,S);var W,D=S.events;(D&&D.click||S.point&&S.point.events&&S.point.events.click||S.allowPointSelect)&&(n.runTrackerClick=!0),u.getColor(),u.getSymbol(),u.parallelArrays.forEach(function(X){u[X+"Data"]||(u[X+"Data"]=[])}),u.isCartesian&&(n.hasCartesianSeries=!0),H.length&&(W=H[H.length-1]),u._i=e(W&&W._i,-1)+1,u.opacity=u.options.opacity,n.orderSeries(this.insert(H)),S.dataSorting&&S.dataSorting.enabled?u.setDataSortingOptions():u.points||u.data||u.setData(S.data,!1),s(this,"afterInit")},L.prototype.is=function(n){return A[n]&&this instanceof A[n]},L.prototype.insert=function(n){var u,S=this.options.index;if(m(S)){for(u=n.length;u--;)if(S>=e(n[u].options.index,n[u]._i)){n.splice(u+1,0,this);break}-1===u&&n.unshift(this),u+=1}else n.push(this);return e(u,n.length-1)},L.prototype.bindAxes=function(){var H,n=this,S=n.options,u=n.chart;s(this,"bindAxes",null,function(){(n.axisTypes||[]).forEach(function(D){var W=0;u[D].forEach(function(X){H=X.options,(S[D]===W&&!H.isInternal||typeof S[D]<"u"&&S[D]===H.id||typeof S[D]>"u"&&0===H.index)&&(n.insert(X.series),n[D]=X,X.isDirty=!0),H.isInternal||W++}),n[D]||n.optionalAxis===D||t(18,!0,u)})}),s(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(n,S){var u=n.series,H=arguments,D=m(S)?function(W){var X="y"===W&&u.toYData?u.toYData(n):n[W];u[W+"Data"][S]=X}:function(W){Array.prototype[S].apply(u[W+"Data"],Array.prototype.slice.call(H,2))};u.parallelArrays.forEach(D)},L.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length},L.prototype.autoIncrement=function(n){var X,S=this.options,u=S.pointIntervalUnit,H=S.relativeXValue,D=this.chart.time,W=this.xIncrement;return W=e(W,S.pointStart,0),this.pointInterval=X=e(this.pointInterval,S.pointInterval,1),H&&m(n)&&(X*=n),u&&(S=new D.Date(W),"day"===u?D.set("Date",S,D.get("Date",S)+X):"month"===u?D.set("Month",S,D.get("Month",S)+X):"year"===u&&D.set("FullYear",S,D.get("FullYear",S)+X),X=S.getTime()-W),H&&m(n)?W+X:(this.xIncrement=W+X,W)},L.prototype.setDataSortingOptions=function(){var n=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),o(n.pointRange)||(n.pointRange=1)},L.prototype.setOptions=function(n){var S=this.chart,u=S.options,H=u.plotOptions,D=S.userOptions||{};n=Y(n),S=S.styledMode;var W={plotOptions:H,userOptions:n};s(this,"setOptions",W);var X=W.plotOptions[this.type],Z=D.plotOptions||{};return this.userOptions=W.userOptions,D=Y(X,H.series,D.plotOptions&&D.plotOptions[this.type],n),this.tooltipOptions=Y(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,u.tooltip.userOptions,H.series&&H.series.tooltip,H[this.type].tooltip,n.tooltip),this.stickyTracking=e(n.stickyTracking,Z[this.type]&&Z[this.type].stickyTracking,Z.series&&Z.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||D.stickyTracking),null===X.marker&&delete D.marker,this.zoneAxis=D.zoneAxis,H=this.zones=(D.zones||[]).slice(),!D.negativeColor&&!D.negativeFillColor||D.zones||(u={value:D[this.zoneAxis+"Threshold"]||D.threshold||0,className:"highcharts-negative"},S||(u.color=D.negativeColor,u.fillColor=D.negativeFillColor),H.push(u)),H.length&&o(H[H.length-1].value)&&H.push(S?{}:{color:this.color,fillColor:this.fillColor}),s(this,"afterSetOptions",{options:D}),D},L.prototype.getName=function(){return e(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(n,S,u){var H=this.chart,D=this.userOptions,W=n+"Index",X=n+"Counter",Z=u?u.length:e(H.options.chart[n+"Count"],H[n+"Count"]);if(!S){var q=e(D[W],D["_"+W]);o(q)||(H.series.length||(H[X]=0),D["_"+W]=q=H[X]%Z,H[X]+=1),u&&(S=u[q])}typeof q<"u"&&(this[W]=q),this[n]=S},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(n,S){var X,Z,u=n.id,H=n.x,D=this.points,W=this.options.dataSorting;if(u)(W=this.chart.get(u))instanceof tt&&(X=W);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(X=function(st){return!st.touched&&st.index===n.index},W&&W.matchByName?X=function(st){return!st.touched&&st.name===n.name}:this.options.relativeXValue&&(X=function(st){return!st.touched&&st.options.x===n.x}),!(X=i(D,X))))return;if(X){var q=X&&X.index;typeof q<"u"&&(Z=!0)}return typeof q>"u"&&m(H)&&(q=this.xData.indexOf(H,S)),-1!==q&&typeof q<"u"&&this.cropped&&(q=q>=this.cropStart?q-this.cropStart:q),!Z&&m(q)&&D[q]&&D[q].touched&&(q=void 0),q},L.prototype.updateData=function(n,S){var q,st,nt,u=this.options,H=u.dataSorting,D=this.points,W=[],X=this.requireSorting,Z=n.length===D.length,rt=!0;if(this.xIncrement=null,n.forEach(function(V,Q){var z=o(V)&&this.pointClass.prototype.optionsToObject.call({series:this},V)||{};z.id||m(z.x)?(-1===(z=this.findPointIndex(z,nt))||typeof z>"u"?W.push(V):D[z]&&V!==u.data[z]?(D[z].update(V,!1,null,!1),D[z].touched=!0,X&&(nt=z+1)):D[z]&&(D[z].touched=!0),(!Z||Q!==z||H&&H.enabled||this.hasDerivedData)&&(q=!0)):W.push(V)},this),q)for(n=D.length;n--;)(st=D[n])&&!st.touched&&st.remove&&st.remove(!1,S);else!Z||H&&H.enabled?rt=!1:(n.forEach(function(V,Q){V!==D[Q].y&&D[Q].update&&D[Q].update(V,!1,null,!1)}),W.length=0);return D.forEach(function(V){V&&(V.touched=!1)}),!!rt&&(W.forEach(function(V){this.addPoint(V,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=T(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(n,S,u,H){void 0===S&&(S=!0);var D=this,W=D.points,X=W&&W.length||0,Z=D.options,q=D.chart,st=Z.dataSorting,nt=D.xAxis,rt=Z.turboThreshold,V=this.xData,Q=this.yData,z=D.pointArrayMap;z=z&&z.length;var j,E=Z.keys,K=0,J=1,ot=null;if(!q.options.chart.allowMutatingData){Z.data&&delete D.options.data,D.userOptions.data&&delete D.userOptions.data;var at=Y(!0,n)}if(at=(n=at||n||[]).length,st&&st.enabled&&(n=this.sortData(n)),q.options.chart.allowMutatingData&&!1!==H&&at&&X&&!D.cropped&&!D.hasGroupedData&&D.visible&&!D.boosted&&(j=this.updateData(n,u)),!j){if(D.xIncrement=null,D.colorCounter=0,this.parallelArrays.forEach(function(ht){D[ht+"Data"].length=0}),rt&&at>rt)if(ot=D.getFirstValidPoint(n),m(ot))for(u=0;u<at;u++)V[u]=this.autoIncrement(),Q[u]=n[u];else if(a(ot))if(z)if(ot.length===z)for(u=0;u<at;u++)V[u]=this.autoIncrement(),Q[u]=n[u];else for(u=0;u<at;u++)V[u]=(H=n[u])[0],Q[u]=H.slice(1,z+1);else if(E&&(K=0<=(K=E.indexOf("x"))?K:0,J=0<=(J=E.indexOf("y"))?J:1),1===ot.length&&(J=0),K===J)for(u=0;u<at;u++)V[u]=this.autoIncrement(),Q[u]=n[u][J];else for(u=0;u<at;u++)V[u]=(H=n[u])[K],Q[u]=H[J];else t(12,!1,q);else for(u=0;u<at;u++)typeof n[u]<"u"&&(D.pointClass.prototype.applyOptions.apply(H={series:D},[n[u]]),D.updateParallelArrays(H,u));for(Q&&b(Q[0])&&t(14,!0,q),D.data=[],D.options.data=D.userOptions.data=n,u=X;u--;)W[u]&&W[u].destroy&&W[u].destroy();nt&&(nt.minRange=nt.userMinRange),D.isDirty=q.isDirtyBox=!0,D.isDirtyData=!!W,u=!1}"point"===Z.legendType&&(this.processData(),this.generatePoints()),S&&q.redraw(u)},L.prototype.sortData=function(n){var S=this,u=S.options.dataSorting.sortKey||"y",H=function(D,W){return o(W)&&D.pointClass.prototype.optionsToObject.call({series:D},W)||{}};return n.forEach(function(D,W){n[W]=H(S,D),n[W].index=W},this),n.concat().sort(function(D,W){return D=d(u,D),(W=d(u,W))<D?-1:W>D?1:0}).forEach(function(D,W){D.x=W},this),S.linkedSeries&&S.linkedSeries.forEach(function(D){var W=D.options,X=W.data;W.dataSorting&&W.dataSorting.enabled||!X||(X.forEach(function(Z,q){X[q]=H(D,Z),n[q]&&(X[q].x=n[q].x,X[q].index=q)}),D.setData(X,!1))}),n},L.prototype.getProcessedData=function(n){var S=this.xAxis,u=this.options,H=u.cropThreshold,D=n||this.getExtremesFromAll||u.getExtremesFromAll,W=this.isCartesian;n=S&&S.val2lin,u=!(!S||!S.logarithmic);var X=0,Z=this.xData,q=this.yData,st=this.requireSorting,nt=!1,rt=Z.length;if(S){var V=(nt=S.getExtremes()).min,Q=nt.max;nt=!(!S.categories||S.names.length)}if(W&&this.sorted&&!D&&(!H||rt>H||this.forceCrop))if(Z[rt-1]<V||Z[0]>Q)Z=[],q=[];else if(this.yData&&(Z[0]<V||Z[rt-1]>Q)){var z=this.cropData(this.xData,this.yData,V,Q);Z=z.xData,q=z.yData,X=z.start,z=!0}for(H=Z.length||1;--H;)if(0<(S=u?n(Z[H])-n(Z[H-1]):Z[H]-Z[H-1])&&(typeof E>"u"||S<E))var E=S;else 0>S&&st&&!nt&&(t(15,!1,this.chart),st=!1);return{xData:Z,yData:q,cropped:z,cropStart:X,closestPointRange:E}},L.prototype.processData=function(n){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!n)return!1;n=this.getProcessedData(),this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,s(this,"afterProcessData")},L.prototype.cropData=function(n,S,u,H,D){var X,W=n.length,Z=0,q=W;for(D=e(D,this.cropShoulder),X=0;X<W;X++)if(n[X]>=u){Z=Math.max(0,X-D);break}for(u=X;u<W;u++)if(n[u]>H){q=u+D;break}return{xData:n.slice(Z,q),yData:S.slice(Z,q),start:Z,end:q}},L.prototype.generatePoints=function(){var n=this.options,S=this.processedData||n.data,u=this.processedXData,H=this.processedYData,D=this.pointClass,W=u.length,X=this.cropStart||0,Z=this.hasGroupedData,q=n.keys,st=[];n=n.dataGrouping&&n.dataGrouping.groupAll?X:0;var nt,rt,V=this.data;if(!V&&!Z){var Q=[];Q.length=S.length,V=this.data=Q}for(q&&Z&&(this.options.keys=!1),rt=0;rt<W;rt++){if(Q=X+rt,Z){var z=(new D).init(this,[u[rt]].concat(P(H[rt])));z.dataGroup=this.groupMap[n+rt],z.dataGroup.options&&(z.options=z.dataGroup.options,c(z,z.dataGroup.options),delete z.dataLabels)}else(z=V[Q])||typeof S[Q]>"u"||(V[Q]=z=(new D).init(this,S[Q],u[rt]));z&&(z.index=Z?n+rt:Q,st[rt]=z)}if(this.options.keys=q,V&&(W!==(nt=V.length)||Z))for(rt=0;rt<nt;rt++)rt!==X||Z||(rt+=W),V[rt]&&(V[rt].destroyElements(),V[rt].plotX=void 0);this.data=V,this.points=st,s(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(n){return{min:R(n),max:T(n)}},L.prototype.getExtremes=function(n,S){var u=this.xAxis,H=this.yAxis,D=this.processedXData||this.xData,W=[],X=this.requireSorting?this.cropShoulder:0;H=!!H&&H.positiveValuesOnly;var Z,q=0,st=0,nt=0,rt=(n=n||this.stackedYData||this.processedYData||[]).length;if(u){var V=u.getExtremes();q=V.min,st=V.max}for(Z=0;Z<rt;Z++){var Q=D[Z],z=(m(V=n[Z])||a(V))&&(V.length||0<V||!H);if(Q=S||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!u||(D[Z+X]||Q)>=q&&(D[Z-X]||Q)<=st,z&&Q)if(z=V.length)for(;z--;)m(V[z])&&(W[nt++]=V[z]);else W[nt++]=V}return n={activeYData:W,dataMin:R(W),dataMax:T(W)},s(this,"afterGetExtremes",{dataExtremes:n}),n},L.prototype.applyExtremes=function(){var n=this.getExtremes();return this.dataMin=n.dataMin,this.dataMax=n.dataMax,n},L.prototype.getFirstValidPoint=function(n){for(var S=n.length,u=0,H=null;null===H&&u<S;)H=n[u],u++;return H},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var Q,z,n=this.options,S=n.stacking,u=this.xAxis,H=u.categories,D=this.enabledDataSorting,W=this.yAxis,X=this.points,Z=X.length,q=this.pointPlacementToXValue(),st=!!q,nt=n.threshold,rt=n.startFromThreshold?nt:0,V=this.zoneAxis||"y",E=Number.MAX_VALUE;for(Q=0;Q<Z;Q++){var j=X[Q],K=j.x,J=void 0,ot=void 0,at=j.y,ht=j.low,dt=S&&W.stacking&&W.stacking.stacks[(this.negStacks&&at<(rt?0:nt)?"-":"")+this.stackKey];if((W.positiveValuesOnly&&!W.validatePositiveValue(at)||u.positiveValuesOnly&&!u.validatePositiveValue(K))&&(j.isNull=!0),j.plotX=z=p(k(u.translate(K,0,0,0,1,q,"flags"===this.type),-1e5,1e5)),S&&this.visible&&dt&&dt[K]){var ft=this.getStackIndicator(ft,K,this.index);!j.isNull&&ft.key&&(ot=(J=dt[K]).points[ft.key]),J&&a(ot)&&(at=ot[1],(ht=ot[0])===rt&&ft.key===dt[K].base&&(ht=e(m(nt)?nt:W.min)),W.positiveValuesOnly&&o(ht)&&0>=ht&&(ht=void 0),j.total=j.stackTotal=e(J.total),j.percentage=o(j.y)&&J.total?j.y/J.total*100:void 0,j.stackY=at,this.irregularWidths||J.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(j.yBottom=o(ht)?k(W.translate(ht,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(at=this.dataModify.modifyValue(at,Q)),j.plotY=void 0,m(at)&&typeof(J=W.translate(at,!1,!0,!1,!0))<"u"&&(j.plotY=k(J,-1e5,1e5)),j.isInside=this.isPointInside(j),j.clientX=st?p(u.translate(K,0,0,0,1,q)):z,j.negative=j[V]<(n[V+"Threshold"]||nt||0),j.category=e(H&&H[j.x],j.x),!j.isNull&&!1!==j.visible){typeof lt<"u"&&(E=Math.min(E,Math.abs(z-lt)));var lt=z}j.zone=this.zones.length?j.getZone():void 0,!j.graphic&&this.group&&D&&(j.isNew=!0)}this.closestPointRangePx=E,s(this,"afterTranslate")},L.prototype.getValidPoints=function(n,S,u){var H=this.chart;return(n||this.points||[]).filter(function(D){return!(S&&!H.isInsidePlot(D.plotX,D.plotY,{inverted:H.inverted}))&&!1!==D.visible&&(u||!D.isNull)})},L.prototype.getClipBox=function(){var n=this.chart,S=this.xAxis,u=this.yAxis,H=Y(n.clipBox);return S&&S.len!==n.plotSizeX&&(H.width=S.len),u&&u.len!==n.plotSizeY&&(H.height=u.len),H},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},L.prototype.setClip=function(){var n=this.chart,S=this.group,u=this.markerGroup,H=n.sharedClips;n=n.renderer;var D=this.getClipBox(),W=this.getSharedClipKey(),X=H[W];X?X.animate(D):H[W]=X=n.clipRect(D),S&&S.clip(!1===this.options.clip?void 0:X),u&&u.clip()},L.prototype.animate=function(n){var S=this.chart,u=this.group,H=this.markerGroup,D=S.inverted,W=g(this.options.animation),X=[this.getSharedClipKey(),W.duration,W.easing,W.defer].join(),Z=S.sharedClips[X],q=S.sharedClips[X+"m"];if(n&&u)W=this.getClipBox(),Z?Z.attr("height",W.height):(W.width=0,D&&(W.x=S.plotHeight),Z=S.renderer.clipRect(W),S.sharedClips[X]=Z,q=S.renderer.clipRect({x:-99,y:-99,width:D?S.plotWidth+199:99,height:D?99:S.plotHeight+199}),S.sharedClips[X+"m"]=q),u.clip(Z),H&&H.clip(q);else if(Z&&!Z.hasClass("highcharts-animating")){S=this.getClipBox();var st=W.step;H&&H.element.childNodes.length&&(W.step=function(nt,rt){st&&st.apply(rt,arguments),"width"===rt.prop&&q&&q.element&&q.attr(D?"height":"width",nt+99)}),Z.addClass("highcharts-animating").animate(S,W)}},L.prototype.afterAnimate=function(){var n=this;this.setClip(),B(this.chart.sharedClips,function(S,u,H){S&&!n.chart.container.querySelector('[clip-path="url(#'.concat(S.id,')"]'))&&(S.destroy(),delete H[u])}),this.finishedAnimating=!0,s(this,"afterAnimate")},L.prototype.drawPoints=function(n){void 0===n&&(n=this.points);var q,st,S=this.chart,u=S.styledMode,H=this.colorAxis,D=this.options.marker,W=this[this.specialGroup||"markerGroup"],X=this.xAxis,Z=e(D.enabled,!(X&&!X.isRadial)||null,this.closestPointRangePx>=D.enabledThreshold*D.radius);if(!1!==D.enabled||this._hasPointMarkers)for(q=0;q<n.length;q++){var nt=n[q],rt=(st=nt.graphic)?"animate":"attr",V=nt.marker||{},Q=!!nt.marker;if((Z&&typeof V.enabled>"u"||V.enabled)&&!nt.isNull&&!1!==nt.visible){var z=e(V.symbol,this.symbol,"rect"),E=this.markerAttribs(nt,nt.selected&&"select");this.enabledDataSorting&&(nt.startXPos=X.reversed?-(E.width||0):X.width);var j=!1!==nt.isInside;!st&&j&&(0<(E.width||0)||nt.hasImage)&&(nt.graphic=st=S.renderer.symbol(z,E.x,E.y,E.width,E.height,Q?V:D).add(W),this.enabledDataSorting&&S.hasRendered&&(st.attr({x:nt.startXPos}),rt="animate")),st&&"animate"===rt&&st[j?"show":"hide"](j).animate(E),st&&(V=this.pointAttribs(nt,u||!nt.selected?void 0:"select"),u?H&&st.css({fill:V.fill}):st[rt](V)),st&&st.addClass(nt.getClassName(),!0)}else st&&(nt.graphic=st.destroy())}},L.prototype.markerAttribs=function(n,S){var u=this.options,H=u.marker,D=n.marker||{},W=D.symbol||H.symbol,X={},Z=e(D.radius,H&&H.radius);return S&&(H=H.states[S],Z=e((S=D.states&&D.states[S])&&S.radius,H&&H.radius,Z&&Z+(H&&H.radiusPlus||0))),n.hasImage=W&&0===W.indexOf("url"),n.hasImage&&(Z=0),n=n.pos(),m(Z)&&n&&(X.x=n[0]-Z,X.y=n[1]-Z,u.crisp&&(X.x=Math.floor(X.x))),Z&&(X.width=X.height=2*Z),X},L.prototype.pointAttribs=function(n,S){var u=this.options.marker,H=n&&n.options,D=H&&H.marker||{},W=H&&H.color,X=n&&n.color,Z=n&&n.zone&&n.zone.color,q=this.color;return n=e(D.lineWidth,u.lineWidth),H=1,q=W||Z||X||q,W=D.fillColor||u.fillColor||q,X=D.lineColor||u.lineColor||q,u=u.states[S=S||"normal"]||{},n=e((S=D.states&&D.states[S]||{}).lineWidth,u.lineWidth,n+e(S.lineWidthPlus,u.lineWidthPlus,0)),{stroke:X=S.lineColor||u.lineColor||X,"stroke-width":n,fill:W=S.fillColor||u.fillColor||W,opacity:H=e(S.opacity,u.opacity,H)}},L.prototype.destroy=function(n){var X,Z,q,S=this,u=S.chart,H=/AppleWebKit\/533/.test(w.navigator.userAgent),D=S.data||[];for(s(S,"destroy",{keepEventsForUpdate:n}),this.removeEvents(n),(S.axisTypes||[]).forEach(function(st){(q=S[st])&&q.series&&(h(q.series,S),q.isDirty=q.forceRedraw=!0)}),S.legendItem&&S.chart.legend.destroyItem(S),X=D.length;X--;)(Z=D[X])&&Z.destroy&&Z.destroy();S.clips&&S.clips.forEach(function(st){return st.destroy()}),O.clearTimeout(S.animationTimeout),B(S,function(st,nt){st instanceof _&&!st.survive&&st[H&&"group"===nt?"hide":"destroy"]()}),u.hoverSeries===S&&(u.hoverSeries=void 0),h(u.series,S),u.orderSeries(),B(S,function(st,nt){n&&"hcEvents"===nt||delete S[nt]})},L.prototype.applyZones=function(){var nt,rt,V,Q,z,E,j,K,n=this,S=this.chart,u=S.renderer,H=this.zones,D=this.clips||[],W=this.graph,X=this.area,Z=Math.max(S.plotWidth,S.plotHeight),q=this[(this.zoneAxis||"y")+"Axis"],st=S.inverted,J=!1;if(H.length&&(W||X)&&q&&typeof q.min<"u"){var ot=q.reversed,at=q.horiz;W&&!this.showLine&&W.hide(),X&&X.hide();var ht=q.getExtremes();H.forEach(function(dt,ft){nt=ot?at?S.plotWidth:0:at?0:q.toPixels(ht.min)||0,nt=k(e(rt,nt),0,Z),rt=k(Math.round(q.toPixels(e(dt.value,ht.max),!0)||0),0,Z),J&&(nt=rt=q.toPixels(ht.max)),Q=Math.abs(nt-rt),z=Math.min(nt,rt),E=Math.max(nt,rt),q.isXAxis?(V={x:st?E:z,y:0,width:Q,height:Z},at||(V.x=S.plotHeight-V.x)):(V={x:0,y:st?E:z,width:Z,height:Q},at&&(V.y=S.plotWidth-V.y)),st&&u.isVML&&(V=q.isXAxis?{x:0,y:ot?z:E,height:V.width,width:S.chartWidth}:{x:V.y-S.plotLeft-S.spacingBox.x,y:0,width:V.height,height:S.chartHeight}),D[ft]?D[ft].animate(V):D[ft]=u.clipRect(V),j=n["zone-area-"+ft],K=n["zone-graph-"+ft],W&&K&&K.clip(D[ft]),X&&j&&j.clip(D[ft]),J=dt.value>ht.max,n.resetZones&&0===rt&&(rt=void 0)}),this.clips=D}else n.visible&&(W&&W.show(),X&&X.show())},L.prototype.plotGroup=function(n,S,u,H,D){var W=this[n],X=!W;return u={visibility:u,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(u.opacity=this.opacity),X&&(this[n]=W=this.chart.renderer.g().add(D)),W.addClass("highcharts-"+S+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(o(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(u)[X?"attr":"animate"](this.getPlotBox(S)),W},L.prototype.getPlotBox=function(n){var S=this.xAxis,u=this.yAxis,H=this.chart;return n=H.inverted&&!H.polar&&S&&!1!==this.invertible&&"series"===n,H.inverted&&(S=u,u=this.xAxis),{translateX:S?S.left:H.plotLeft,translateY:u?u.top:H.plotTop,rotation:n?90:0,rotationOriginX:n?(S.len-u.len)/2:0,rotationOriginY:n?(S.len+u.len)/2:0,scaleX:n?-1:1,scaleY:1}},L.prototype.removeEvents=function(n){n||l(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(S){S()}),this.eventsToUnbind.length=0)},L.prototype.render=function(){var n=this,S=n.chart,u=n.options,H=g(u.animation),D=n.visible?"inherit":"hidden",W=u.zIndex,X=n.hasRendered,Z=S.seriesGroup;S=!n.finishedAnimating&&S.renderer.isSVG?H.duration:0,s(this,"render"),n.plotGroup("group","series",D,W,Z),n.markerGroup=n.plotGroup("markerGroup","markers",D,W,Z),!1!==u.clip&&n.setClip(),n.animate&&S&&n.animate(!0),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),n.drawDataLabels&&n.drawDataLabels(),n.redrawPoints&&n.redrawPoints(),n.drawTracker&&!1!==n.options.enableMouseTracking&&n.drawTracker(),n.animate&&S&&n.animate(),X||(S&&H.defer&&(S+=H.defer),n.animationTimeout=I(function(){n.afterAnimate()},S||0)),n.isDirty=!1,n.hasRendered=!0,s(n,"afterRender")},L.prototype.redraw=function(){var n=this.isDirty||this.isDirtyData;this.translate(),this.render(),n&&delete this.kdTree},L.prototype.searchPoint=function(n,S){var u=this.xAxis,H=this.yAxis,D=this.chart.inverted;return this.searchKDTree({clientX:D?u.len-n.chartY+u.pos:n.chartX-u.pos,plotY:D?H.len-n.chartX+H.pos:n.chartY-H.pos},S,n)},L.prototype.buildKDTree=function(n){function S(D,W,X){var Z=D&&D.length;if(Z){var q=u.kdAxisArray[W%X];return D.sort(function(st,nt){return st[q]-nt[q]}),{point:D[Z=Math.floor(Z/2)],left:S(D.slice(0,Z),W+1,X),right:S(D.slice(Z+1),W+1,X)}}}this.buildingKdTree=!0;var u=this,H=-1<u.options.findNearestPointBy.indexOf("y")?2:1;delete u.kdTree,I(function(){u.kdTree=S(u.getValidPoints(null,!u.directTouch),H,H),u.buildingKdTree=!1},u.options.kdNow||n&&"touchstart"===n.type?0:1)},L.prototype.searchKDTree=function(n,S,u){var D=this,W=this.kdAxisArray[0],X=this.kdAxisArray[1],Z=S?"distX":"dist";if(S=-1<D.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(u),this.kdTree)return function H(q,st,nt,rt){var V=st.point,Q=D.kdAxisArray[nt%rt],z=V,E=o(q[W])&&o(V[W])?Math.pow(q[W]-V[W],2):null,j=o(q[X])&&o(V[X])?Math.pow(q[X]-V[X],2):null;return V.dist=o(j=(E||0)+(j||0))?Math.sqrt(j):Number.MAX_VALUE,V.distX=o(E)?Math.sqrt(E):Number.MAX_VALUE,E=0>(Q=q[Q]-V[Q])?"right":"left",st[j=0>Q?"left":"right"]&&(z=(j=H(q,st[j],nt+1,rt))[Z]<z[Z]?j:V),st[E]&&Math.sqrt(Q*Q)<z[Z]&&(z=(q=H(q,st[E],nt+1,rt))[Z]<z[Z]?q:z),z}(n,this.kdTree,S,S)},L.prototype.pointPlacementToXValue=function(){var n=this.options,S=n.pointRange,u=this.xAxis;return"between"===(n=n.pointPlacement)&&(n=u.reversed?-.5:.5),m(n)?n*(S||u.pointRange):0},L.prototype.isPointInside=function(n){var S=this.chart,u=this.xAxis,H=this.yAxis;return typeof n.plotY<"u"&&typeof n.plotX<"u"&&0<=n.plotY&&n.plotY<=(H?H.len:S.plotHeight)&&0<=n.plotX&&n.plotX<=(u?u.len:S.plotWidth)},L.prototype.drawTracker=function(){var n=this,S=n.options,u=S.trackByArea,H=[].concat(u?n.areaPath:n.graphPath),D=n.chart,W=D.pointer,X=D.renderer,Z=D.options.tooltip.snap,q=n.tracker,st=function(rt){D.hoverSeries!==n&&n.onMouseOver()},nt="rgba(192,192,192,"+(x?1e-4:.002)+")";q?q.attr({d:H}):n.graph&&(n.tracker=X.path(H).attr({visibility:n.visible?"inherit":"hidden",zIndex:2}).addClass(u?"highcharts-tracker-area":"highcharts-tracker-line").add(n.group),D.styledMode||n.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:nt,fill:u?nt:"none","stroke-width":n.graph.strokeWidth()+(u?0:2*Z)}),[n.tracker,n.markerGroup,n.dataLabelsGroup].forEach(function(rt){rt&&(rt.addClass("highcharts-tracker").on("mouseover",st).on("mouseout",function(V){W.onTrackerMouseOut(V)}),S.cursor&&!D.styledMode&&rt.css({cursor:S.cursor}),v)&&rt.on("touchstart",st)})),s(this,"afterDrawTracker")},L.prototype.addPoint=function(n,S,u,H,D){var W=this.options,X=this.data,Z=this.chart,q=this.xAxis;q=q&&q.hasNames&&q.names;var rt,st=W.data,nt=this.xData;S=e(S,!0);var V={series:this};this.pointClass.prototype.applyOptions.apply(V,[n]);var Q=V.x,z=nt.length;if(this.requireSorting&&Q<nt[z-1])for(rt=!0;z&&nt[z-1]>Q;)z--;this.updateParallelArrays(V,"splice",z,0,0),this.updateParallelArrays(V,z),q&&V.name&&(q[Q]=V.name),st.splice(z,0,n),(rt||this.processedData)&&(this.data.splice(z,0,null),this.processData()),"point"===W.legendType&&this.generatePoints(),u&&(X[0]&&X[0].remove?X[0].remove(!1):(X.shift(),this.updateParallelArrays(V,"shift"),st.shift())),!1!==D&&s(this,"addPoint",{point:V}),this.isDirtyData=this.isDirty=!0,S&&Z.redraw(H)},L.prototype.removePoint=function(n,S,u){var H=this,D=H.data,W=D[n],X=H.points,Z=H.chart,q=function(){X&&X.length===D.length&&X.splice(n,1),D.splice(n,1),H.options.data.splice(n,1),H.updateParallelArrays(W||{series:H},"splice",n,1),W&&W.destroy(),H.isDirty=!0,H.isDirtyData=!0,S&&Z.redraw()};f(u,Z),S=e(S,!0),W?W.firePointEvent("remove",null,q):q()},L.prototype.remove=function(n,S,u,H){function D(){W.destroy(H),X.isDirtyLegend=X.isDirtyBox=!0,X.linkSeries(),e(n,!0)&&X.redraw(S)}var W=this,X=W.chart;!1!==u?s(W,"remove",null,D):D()},L.prototype.update=function(n,S){n=r(n,this.userOptions),s(this,"update",{options:n});var u=this,H=u.chart,D=u.userOptions,W=u.initialType||u.type,X=H.options.plotOptions,Z=A[W].prototype,q=u.finishedAnimating&&{animation:!1},st={},nt=["eventOptions","navigatorSeries","baseSeries"],rt=n.type||D.type||H.options.chart.type,V=!(this.hasDerivedData||rt&&rt!==this.type||typeof n.pointStart<"u"||typeof n.pointInterval<"u"||typeof n.relativeXValue<"u"||n.joinBy||n.mapData||u.hasOptionChanged("dataGrouping")||u.hasOptionChanged("pointStart")||u.hasOptionChanged("pointInterval")||u.hasOptionChanged("pointIntervalUnit")||u.hasOptionChanged("keys"));if(rt=rt||W,V&&(nt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==n.visible&&nt.push("area","graph"),u.parallelArrays.forEach(function(z){nt.push(z+"Data")}),n.data&&(n.dataSorting&&c(u.options.dataSorting,n.dataSorting),this.setData(n.data,!1))),n=Y(D,q,{index:typeof D.index>"u"?u.index:D.index,pointStart:e(X&&X.series&&X.series.pointStart,D.pointStart,u.xData[0])},!V&&{data:u.options.data},n),V&&n.data&&(n.data=u.options.data),(nt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(nt)).forEach(function(z){nt[z]=u[z],delete u[z]}),X=!1,A[rt]){if(X=rt!==u.type,u.remove(!1,!1,!1,!0),X)if(Object.setPrototypeOf)Object.setPrototypeOf(u,A[rt].prototype);else{for(Q in q=Object.hasOwnProperty.call(u,"hcEvents")&&u.hcEvents,Z)u[Q]=void 0;c(u,A[rt].prototype),q?u.hcEvents=q:delete u.hcEvents}}else t(17,!0,H,{missingModuleFor:rt});if(nt.forEach(function(z){u[z]=nt[z]}),u.init(H,n),V&&this.points){if(!1===(n=u.options).visible)st.graphic=1,st.dataLabel=1;else if(!u._hasPointLabels){var Q=n.dataLabels;D=D.marker||{},!(Z=n.marker)||!1!==Z.enabled&&D.symbol===Z.symbol&&D.height===Z.height&&D.width===Z.width||(st.graphic=1),Q&&!1===Q.enabled&&(st.dataLabel=1)}for(D=0,Z=this.points;D<Z.length;D++)(Q=Z[D])&&Q.series&&(Q.resolveColor(),Object.keys(st).length&&Q.destroyElements(st),!1===n.showInLegend&&Q.legendItem&&H.legend.destroyItem(Q))}u.initialType=W,H.linkSeries(),X&&u.linkedSeries.length&&(u.isDirtyData=!0),s(this,"afterUpdate"),e(S,!0)&&H.redraw(!!V&&void 0)},L.prototype.setName=function(n){this.name=this.options.name=this.userOptions.name=n,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(n){var S=this.options[n],u=this.chart.options.plotOptions,H=this.userOptions[n];return H?S!==H:S!==e(u&&u[this.type]&&u[this.type][n],u&&u.series&&u.series[n],S)},L.prototype.onMouseOver=function(){var n=this.chart,S=n.hoverSeries;n.pointer.setHoverChartIndex(),S&&S!==this&&S.onMouseOut(),this.options.events.mouseOver&&s(this,"mouseOver"),this.setState("hover"),n.hoverSeries=this},L.prototype.onMouseOut=function(){var n=this.options,S=this.chart,u=S.tooltip,H=S.hoverPoint;S.hoverSeries=null,H&&H.onMouseOut(),this&&n.events.mouseOut&&s(this,"mouseOut"),!u||this.stickyTracking||u.shared&&!this.noSharedTooltip||u.hide(),S.series.forEach(function(D){D.setState("",!0)})},L.prototype.setState=function(n,S){var u=this,H=u.options,D=u.graph,W=H.inactiveOtherPoints,X=H.states,Z=e(X[n||"normal"]&&X[n||"normal"].animation,u.chart.options.chart.animation),q=H.lineWidth,st=0,nt=H.opacity;if(u.state!==(n=n||"")&&([u.group,u.markerGroup,u.dataLabelsGroup].forEach(function(rt){rt&&(u.state&&rt.removeClass("highcharts-series-"+u.state),n&&rt.addClass("highcharts-series-"+n))}),u.state=n,!u.chart.styledMode)){if(X[n]&&!1===X[n].enabled)return;if(n&&(q=X[n].lineWidth||q+(X[n].lineWidthPlus||0),nt=e(X[n].opacity,nt)),D&&!D.dashstyle&&m(q))for(D.animate(H={"stroke-width":q},Z);u["zone-graph-"+st];)u["zone-graph-"+st].animate(H,Z),st+=1;W||[u.group,u.markerGroup,u.dataLabelsGroup,u.labelBySeries].forEach(function(rt){rt&&rt.animate({opacity:nt},Z)})}S&&W&&u.points&&u.setAllPointsToState(n||void 0)},L.prototype.setAllPointsToState=function(n){this.points.forEach(function(S){S.setState&&S.setState(n)})},L.prototype.setVisible=function(n,S){var u=this,H=u.chart,D=H.options.chart.ignoreHiddenSeries,X=(u.visible=n=u.options.visible=u.userOptions.visible=typeof n>"u"?!u.visible:n)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Z){u[Z]&&u[Z][X]()}),(H.hoverSeries===u||(H.hoverPoint&&H.hoverPoint.series)===u)&&u.onMouseOut(),u.legendItem&&H.legend.colorizeItem(u,n),u.isDirty=!0,u.options.stacking&&H.series.forEach(function(Z){Z.options.stacking&&Z.visible&&(Z.isDirty=!0)}),u.linkedSeries.forEach(function(Z){Z.setVisible(n,!1)}),D&&(H.isDirtyBox=!0),s(u,X),!1!==S&&H.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(n){this.selected=n=this.options.selected=typeof n>"u"?!this.selected:n,this.checkbox&&(this.checkbox.checked=n),s(this,n?"select":"unselect")},L.prototype.shouldShowTooltip=function(n,S,u){return void 0===u&&(u={}),u.series=this,u.visiblePlotOnly=!0,this.chart.isInsidePlot(n,S,u)},L.defaultOptions=$,L.types=N.seriesTypes,L.registerType=N.registerSeriesType,L}(),c(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:et.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:tt,requireSorting:!0,sorted:!0}),N.series=G,G}),ct(U,"Extensions/ScrollablePlotArea.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Chart/Chart.js"],U["Core/Series/Series.js"],U["Core/Renderer/RendererRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt){var $=G.stop,N=tt.addEvent,_=tt.createElement,O=tt.defined,g=tt.merge,f=tt.pick;N(M,"afterSetChartSize",function(y){var C=this.options.chart.scrollablePlotArea,v=C&&C.minWidth;if(C=C&&C.minHeight,!this.renderer.forExport){if(v){if(this.scrollablePixelsX=v=Math.max(0,v-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.width=this.plotWidth+=v,this.inverted?this.clipBox.height+=v:this.clipBox.width+=v;var x={1:{name:"right",value:v}}}}else C&&(this.scrollablePixelsY=v=Math.max(0,C-this.chartHeight),O(v)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=g(this.plotBox),this.plotBox.height=this.plotHeight+=v,this.inverted?this.clipBox.width+=v:this.clipBox.height+=v,x={2:{name:"bottom",value:v}}));x&&!y.skipAxes&&this.axes.forEach(function(w){x[w.side]?w.getPlotLinePath=function(){var A=x[w.side].name,T=this[A];this[A]=T-x[w.side].value;var R=F.prototype.getPlotLinePath.apply(this,arguments);return this[A]=T,R}:(w.setAxisSize(),w.setAxisTranslation())})}}),N(M,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),M.prototype.setUpScrolling=function(){var v,y=this,C={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(C.overflowX="auto"),this.scrollablePixelsY&&(C.overflowY="auto"),this.scrollingParent=_("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=_("div",{className:"highcharts-scrolling"},C,this.scrollingParent),N(this.scrollingContainer,"scroll",function(){y.pointer&&(delete y.pointer.chartPosition,y.hoverPoint&&(v=y.hoverPoint),y.pointer.runPointActions(void 0,v,!0))}),this.innerContainer=_("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},M.prototype.moveFixedElements=function(){var x,y=this.container,C=this.fixedRenderer,v=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?x=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?x=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(x=".highcharts-yaxis"),x&&v.push(x+":not(.highcharts-radial-axis)",x+"-labels:not(.highcharts-radial-axis-labels)"),v.forEach(function(w){[].forEach.call(y.querySelectorAll(w),function(A){(A.namespaceURI===C.SVG_NS?C.box:C.box.parentNode).appendChild(A),A.style.pointerEvents="auto"})})},M.prototype.applyFixed=function(){var y=!this.fixedDiv,C=this.options.chart,v=C.scrollablePlotArea,x=et.getRendererType();y?(this.fixedDiv=_("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(C.style&&C.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=C=new x(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=C.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":f(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),N(this,"afterShowResetZoom",this.moveFixedElements),N(this,"afterApplyDrilldown",this.moveFixedElements),N(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),C=this.chartWidth+(this.scrollablePixelsX||0),x=this.chartHeight+(this.scrollablePixelsY||0),$(this.container),this.container.style.width=C+"px",this.container.style.height=x+"px",this.renderer.boxWrapper.attr({width:C,height:x,viewBox:[0,0,C,x].join(" ")}),this.chartBackground.attr({width:C,height:x}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY)),y=this.plotTop-(x=this.axisOffset)[0]-1,v=this.plotLeft-x[3]-1,C=this.plotTop+this.plotHeight+x[2]+1,x=this.plotLeft+this.plotWidth+x[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),A=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,C],["L",0,C],["Z"],["M",w,y],["L",this.chartWidth,y],["L",this.chartWidth,C],["L",w,C],["Z"]]:this.scrollablePixelsY?[["M",v,0],["L",v,this.plotTop-1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",v,A],["L",v,this.chartHeight],["L",x,this.chartHeight],["L",x,A],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:y})},N(F,"afterInit",function(){this.chart.scrollableDirty=!0}),N(it,"show",function(){this.chart.scrollableDirty=!0})}),ct(U,"Core/Axis/Stacking/StackItem.js",[U["Core/FormatUtilities.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var it=G.format,et=F.series,tt=M.destroyObjectProperties,$=M.pick,N=M.isNumber;return function(){function _(O,g,f,y,C){var v=O.chart.inverted,x=O.reversed;this.axis=O,O=this.isNegative=!!f!=!!x,this.options=g=g||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=C,this.rightCliff=this.leftCliff=0,this.alignOptions={align:g.align||(v?O?"left":"right":"center"),verticalAlign:g.verticalAlign||(v?"middle":O?"bottom":"top"),y:g.y,x:g.x},this.textAlign=g.textAlign||(v?O?"right":"left":"center")}return _.prototype.destroy=function(){tt(this,this.axis)},_.prototype.render=function(O){var g=this.axis.chart,f=this.options,y=f.format;y=y?it(y,this,g):f.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=g.renderer.label(y,null,void 0,f.shape,void 0,void 0,f.useHTML,!1,"stack-labels"),y={r:f.borderRadius||0,text:y,padding:$(f.padding,5),visibility:"hidden"},g.styledMode||(y.fill=f.backgroundColor,y.stroke=f.borderColor,y["stroke-width"]=f.borderWidth,this.label.css(f.style||{})),this.label.attr(y),this.label.added||this.label.add(O)),this.label.labelrank=g.plotSizeY},_.prototype.setOffset=function(O,g,f,y,C,v){var x=this.alignOptions,w=this.axis,A=this.label,T=this.options,R=this.textAlign,k=w.chart;O=this.getStackBox({xOffset:O,width:g,boxBottom:f,boxTop:y,defaultX:C,xAxis:v}),C=x.verticalAlign,A&&O&&(g=A.getBBox(),f=A.padding,y="justify"===$(T.overflow,"justify"),x.x=T.x||0,x.y=T.y||0,R=(C=this.adjustStackPosition({labelBox:g,verticalAlign:C,textAlign:R})).x,C=C.y,O.x-=R,O.y-=C,A.align(x,!1,O),(R=k.isInsidePlot(A.alignAttr.x+x.x+R,A.alignAttr.y+x.y+C))||(y=!1),y&&et.prototype.justifyDataLabel.call(w,A,x,A.alignAttr,g,O),A.attr({x:A.alignAttr.x,y:A.alignAttr.y,rotation:T.rotation,rotationOriginX:g.width/2,rotationOriginY:g.height/2}),$(!y&&T.crop,!0)&&(R=N(A.x)&&N(A.y)&&k.isInsidePlot(A.x-f+A.width,A.y)&&k.isInsidePlot(A.x+f,A.y)),A[R?"show":"hide"]())},_.prototype.adjustStackPosition=function(O){var g=O.labelBox,f={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:g.width/2+g.width/2*f[O.textAlign],y:g.height/2*f[O.verticalAlign]}},_.prototype.getStackBox=function(O){var g=this.axis,f=g.chart,y=O.boxTop,C=O.defaultX,v=O.xOffset,x=O.width,w=O.boxBottom;return y=g.stacking.usePercentage?100:$(y,this.total,0),y=g.toPixels(y),O=$(C,(O.xAxis||f.xAxis[0]).toPixels(this.x))+v,g=g.toPixels(w||0),g=Math.abs(y-g),w=this.isNegative,f.inverted?{x:(w?y:y-g)-f.plotLeft,y:O-f.plotTop,width:g,height:x}:{x:O-f.plotLeft,y:(w?y-g:y)-f.plotTop,width:x,height:g}},_}()}),ct(U,"Core/Axis/Stacking/StackingAxis.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Axis/Axis.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Axis/Stacking/StackItem.js"],U["Core/Utilities.js"]],function(G,F,M,it,et){function tt(){var c=this,i=c.inverted;c.yAxis.forEach(function(s){s.stacking&&s.stacking.stacks&&s.hasVisibleSeries&&(s.stacking.oldStacks=s.stacking.stacks)}),c.series.forEach(function(s){var d=s.xAxis&&s.xAxis.options||{};!s.options.stacking||!0!==s.visible&&!1!==c.options.chart.ignoreHiddenSeries||(s.stackKey=[s.type,o(s.options.stack,""),i?d.top:d.left,i?d.height:d.width].join())})}function $(){var c=this.stacking;if(c){var i=c.stacks;p(i,function(s,d){T(s),i[d]=null}),c&&c.stackTotalGroup&&c.stackTotalGroup.destroy()}}function N(){"yAxis"!==this.coll||this.stacking||(this.stacking=new h(this))}function _(c,i,s,d){return!A(c)||c.x!==i||d&&c.stackKey!==d?c={x:i,index:0,key:d,stackKey:d}:c.index++,c.key=[s,i,c.index].join(),c}function O(){var m,c=this,i=c.stackKey,s=c.yAxis.stacking.stacks,d=c.processedXData,a=c[c.options.stacking+"Stacker"];a&&[i,"-"+i].forEach(function(b){for(var B,e,Y=d.length;Y--;)m=c.getStackIndicator(m,B=d[Y],c.index,b),(e=(B=s[b]&&s[b][B])&&B.points[m.key])&&a.call(c,e,B,Y)})}function g(c,i,s){c[0]=w(c[0]*(i=i.total?100/i.total:0)),c[1]=w(c[1]*i),this.stackedYData[s]=c[1]}function f(){var c=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?v.setStackedPoints.call(this,"group"):c&&p(c.stacks,function(i,s){"group"===s.slice(-5)&&(p(i,function(d){return d.destroy()}),delete c.stacks[s])})}function y(c){var i=this.chart,s=c||this.options.stacking;if(s&&(!0===this.visible||!1===i.options.chart.ignoreHiddenSeries)){var d=this.processedXData,a=this.processedYData,m=[],b=a.length,Y=this.options,B=Y.threshold,e=o(Y.startFromThreshold&&B,0);Y=Y.stack;var n,S,l="-"+(c=c?""+this.type+",".concat(s):this.stackKey),P=this.negStacks,I=(i="group"===s?i.yAxis[0]:this.yAxis).stacking.stacks,L=i.stacking.oldStacks;for(i.stacking.stacksTouched+=1,S=0;S<b;S++){var u=d[S],H=a[S],D=this.getStackIndicator(D,u,this.index),W=D.key,X=(n=P&&H<(e?0:B))?l:c;I[X]||(I[X]={}),I[X][u]||(L[X]&&L[X][u]?(I[X][u]=L[X][u],I[X][u].total=null):I[X][u]=new it(i,i.options.stackLabels,!!n,u,Y)),X=I[X][u],null!==H?(X.points[W]=X.points[this.index]=[o(X.cumulative,e)],A(X.cumulative)||(X.base=W),X.touched=i.stacking.stacksTouched,0<D.index&&!1===this.singleStacks&&(X.points[W][0]=X.points[this.index+","+u+",0"][0])):X.points[W]=X.points[this.index]=null,"percent"===s?(n=n?c:l,X.total=P&&I[n]&&I[n][u]?(n=I[n][u]).total=Math.max(n.total,X.total)+Math.abs(H)||0:w(X.total+(Math.abs(H)||0))):"group"===s?(k(H)&&(H=H[0]),null!==H&&(X.total=(X.total||0)+1)):X.total=w(X.total+(H||0)),X.cumulative="group"===s?(X.total||1)-1:o(X.cumulative,e)+(H||0),null!==H&&(X.points[W].push(X.cumulative),m[S]=X.cumulative,X.hasValidPoints=!0)}"percent"===s&&(i.stacking.usePercentage=!0),"group"!==s&&(this.stackedYData=m),i.stacking.oldStacks={}}}var t,c,i,C=G.getDeferredAnimation,v=M.series.prototype,x=et.addEvent,w=et.correctFloat,A=et.defined,T=et.destroyObjectProperties,R=et.fireEvent,k=et.isArray,r=et.isNumber,p=et.objectEach,o=et.pick,h=function(){function c(i){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=i}return c.prototype.buildStacks=function(){var m,i=this.axis,s=i.series,d=i.options.reversedStacks,a=s.length;for(this.usePercentage=!1,m=a;m--;){var b=s[d?m:a-m-1];b.setStackedPoints(),b.setGroupedPoints()}for(m=0;m<a;m++)s[m].modifyStacks();R(i,"afterBuildStacks")},c.prototype.cleanStacks=function(){if(this.oldStacks)var i=this.stacks=this.oldStacks;p(i,function(s){p(s,function(d){d.cumulative=d.total})})},c.prototype.resetStacks=function(){var i=this;p(this.stacks,function(s){p(s,function(d,a){r(d.touched)&&d.touched<i.stacksTouched?(d.destroy(),delete s[a]):(d.total=null,d.cumulative=null)})})},c.prototype.renderStackTotals=function(){var i=this.axis,s=i.chart,d=s.renderer,a=this.stacks;i=C(s,i.options.stackLabels&&i.options.stackLabels.animation||!1);var m=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({zIndex:6,opacity:0}).add();m.translate(s.plotLeft,s.plotTop),p(a,function(b){p(b,function(Y){Y.render(m)})}),m.animate({opacity:1},i)},c}();return c=t||(t={}),i=[],c.compose=function(s,d,a){-1===i.indexOf(s)&&(i.push(s),x(s,"init",N),x(s,"destroy",$)),-1===i.indexOf(d)&&(i.push(d),d.prototype.getStacks=tt),-1===i.indexOf(a)&&(i.push(a),(s=a.prototype).getStackIndicator=_,s.modifyStacks=O,s.percentStacker=g,s.setGroupedPoints=f,s.setStackedPoints=y)},t}),ct(U,"Series/Line/LineSeries.js",[U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var $,it=this&&this.__extends||($=function(N,_){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(N,_)},function(N,_){function O(){this.constructor=N}$(N,_),N.prototype=null===_?Object.create(_):(O.prototype=_.prototype,new O)}),et=M.defined,tt=M.merge;return M=function($){function N(){var _=null!==$&&$.apply(this,arguments)||this;return _.data=void 0,_.options=void 0,_.points=void 0,_}return it(N,$),N.prototype.drawGraph=function(){var _=this,O=this.options,g=(this.gappedPath||this.getGraphPath).call(this),f=this.chart.styledMode,y=[["graph","highcharts-graph"]];f||y[0].push(O.lineColor||this.color||"#cccccc",O.dashStyle),(y=_.getZonesGraphs(y)).forEach(function(C,v){var x=C[0],w=_[x],A=w?"animate":"attr";w?(w.endX=_.preventGraphAnimation?null:g.xMap,w.animate({d:g})):g.length&&(_[x]=w=_.chart.renderer.path(g).addClass(C[1]).attr({zIndex:1}).add(_.group)),w&&!f&&(x={stroke:C[2],"stroke-width":O.lineWidth||0,fill:_.fillGraph&&_.color||"none"},C[3]?x.dashstyle=C[3]:"square"!==O.linecap&&(x["stroke-linecap"]=x["stroke-linejoin"]="round"),w[A](x).shadow(2>v&&O.shadow)),w&&(w.startX=g.xMap,w.isArea=g.isArea)})},N.prototype.getGraphPath=function(_,O,g){var x,f=this,y=f.options,C=[],v=[],w=y.step,A=(_=_||f.points).reversed;return A&&_.reverse(),(w={right:1,center:2}[w]||w&&3)&&A&&(w=4-w),(_=this.getValidPoints(_,!1,!(y.connectNulls&&!O&&!g))).forEach(function(T,R){var k=T.plotX,r=T.plotY,p=_[R-1];(T.leftCliff||p&&p.rightCliff)&&!g&&(x=!0),T.isNull&&!et(O)&&0<R?x=!y.connectNulls:T.isNull&&!O?x=!0:(0===R||x?R=[["M",T.plotX,T.plotY]]:f.getPointSpline?R=[f.getPointSpline(_,T,R)]:w?(R=1===w?[["L",p.plotX,r]]:2===w?[["L",(p.plotX+k)/2,p.plotY],["L",(p.plotX+k)/2,r]]:[["L",k,p.plotY]]).push(["L",k,r]):R=[["L",k,r]],v.push(T.x),w&&(v.push(T.x),2===w&&v.push(T.x)),C.push.apply(C,R),x=!1)}),C.xMap=v,f.graphPath=C},N.prototype.getZonesGraphs=function(_){return this.zones.forEach(function(O,g){g=["zone-graph-"+g,"highcharts-graph highcharts-zone-graph-"+g+" "+(O.className||"")],this.chart.styledMode||g.push(O.color||this.color,O.dashStyle||this.options.dashStyle),_.push(g)},this),_},N.defaultOptions=tt(G.defaultOptions,{}),N}(G),F.registerSeriesType("line",M),M}),ct(U,"Series/Area/AreaSeries.js",[U["Core/Color/Color.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it){var g,et=this&&this.__extends||(g=function(f,y){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var x in v)v.hasOwnProperty(x)&&(C[x]=v[x])})(f,y)},function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=null===y?Object.create(y):(C.prototype=y.prototype,new C)}),tt=G.parse,$=M.seriesTypes.line;G=it.extend;var N=it.merge,_=it.objectEach,O=it.pick;return it=function(g){function f(){var y=null!==g&&g.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return et(f,g),f.prototype.drawGraph=function(){this.areaPath=[],g.prototype.drawGraph.apply(this);var y=this,C=this.areaPath,v=this.options,x=[["area","highcharts-area",this.color,v.fillColor]];this.zones.forEach(function(w,A){x.push(["zone-area-"+A,"highcharts-area highcharts-zone-area-"+A+" "+w.className,w.color||y.color,w.fillColor||v.fillColor])}),x.forEach(function(w){var A=w[0],T={},R=y[A],k=R?"animate":"attr";R?(R.endX=y.preventGraphAnimation?null:C.xMap,R.animate({d:C})):(T.zIndex=0,(R=y[A]=y.chart.renderer.path(C).addClass(w[1]).add(y.group)).isArea=!0),y.chart.styledMode||(T.fill=O(w[3],tt(w[2]).setOpacity(O(v.fillOpacity,.75)).get())),R[k](T),R.startX=C.xMap,R.shiftUnit=v.step?2:1})},f.prototype.getGraphPath=function(y){var C=$.prototype.getGraphPath,v=this.options,x=v.stacking,w=this.yAxis,A=[],T=[],R=this.index,k=w.stacking.stacks[this.stackKey],r=v.threshold,p=Math.round(w.getThreshold(v.threshold));v=O(v.connectNulls,"percent"===x);var o=function(d,a,m){var b=y[d];d=x&&k[b.x].points[R];var Y=b[m+"Null"]||0;if(m=b[m+"Cliff"]||0,b=!0,m||Y){var B=(Y?d[0]:d[1])+m,e=d[0]+m;b=!!Y}else!x&&y[a]&&y[a].isNull&&(B=e=r);typeof B<"u"&&(T.push({plotX:i,plotY:null===B?p:w.getThreshold(B),isNull:b,isCliff:!0}),A.push({plotX:i,plotY:null===e?p:w.getThreshold(e),doCurve:!1}))};y=y||this.points,x&&(y=this.getStackPoints(y));for(var h=0,t=y.length;h<t;++h){x||(y[h].leftCliff=y[h].rightCliff=y[h].leftNull=y[h].rightNull=void 0);var c=y[h].isNull,i=O(y[h].rectPlotX,y[h].plotX),s=x?O(y[h].yBottom,p):p;(!c||v)&&(v||o(h,h-1,"left"),c&&!x&&v||(T.push(y[h]),A.push({x:h,plotX:i,plotY:s})),v||o(h,h+1,"right"))}return o=C.call(this,T,!0,!0),A.reversed=!0,(s=(c=C.call(this,A,!0,!0))[0])&&"M"===s[0]&&(c[0]=["L",s[1],s[2]]),(c=o.concat(c)).length&&c.push(["Z"]),C=C.call(this,T,!1,v),c.xMap=o.xMap,this.areaPath=c,C},f.prototype.getStackPoints=function(y){var C=this,v=[],x=[],w=this.xAxis,A=this.yAxis,T=A.stacking.stacks[this.stackKey],R={},k=A.series,r=k.length,p=A.options.reversedStacks?1:-1,o=k.indexOf(C);if(y=y||this.points,this.options.stacking){for(var h=0;h<y.length;h++)y[h].leftNull=y[h].rightNull=void 0,R[y[h].x]=y[h];_(T,function(c,i){null!==c.total&&x.push(i)}),x.sort(function(c,i){return c-i});var t=k.map(function(c){return c.visible});x.forEach(function(c,i){var d,a,s=0;if(R[c]&&!R[c].isNull)v.push(R[c]),[-1,1].forEach(function(b){var Y=1===b?"rightNull":"leftNull",B=T[x[i+b]],e=0;if(B)for(var l=o;0<=l&&l<r;){var P=k[l].index;(d=B.points[P])||(P===C.index?R[c][Y]=!0:t[l]&&(a=T[c].points[P])&&(e-=a[1]-a[0])),l+=p}R[c][1===b?"rightCliff":"leftCliff"]=e});else{for(var m=o;0<=m&&m<r;){if(d=T[c].points[k[m].index]){s=d[1];break}m+=p}s=O(s,0),s=A.translate(s,0,1,0,1),v.push({isNull:!0,plotX:w.translate(c,0,0,0,1),x:c,plotY:s,yBottom:s})}})}return v},f.defaultOptions=N($.defaultOptions,{threshold:0}),f}($),G(it.prototype,{singleStacks:!1,drawLegendSymbol:F.drawRectangle}),M.registerSeriesType("area",it),it}),ct(U,"Series/Spline/SplineSeries.js",[U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F){var $,M=this&&this.__extends||($=function(N,_){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(N,_)},function(N,_){function O(){this.constructor=N}$(N,_),N.prototype=null===_?Object.create(_):(O.prototype=_.prototype,new O)}),it=G.seriesTypes.line,et=F.merge,tt=F.pick;return F=function($){function N(){var _=null!==$&&$.apply(this,arguments)||this;return _.data=void 0,_.options=void 0,_.points=void 0,_}return M(N,$),N.prototype.getPointSpline=function(_,O,g){var f=O.plotX||0,y=O.plotY||0,C=_[g-1];if(g=_[g+1],C&&!C.isNull&&!1!==C.doCurve&&!O.isCliff&&g&&!g.isNull&&!1!==g.doCurve&&!O.isCliff){var v=g.plotX||0,x=0,w=(1.5*f+(C.plotX||0))/2.5,A=(1.5*y+(_=C.plotY||0))/2.5,T=(1.5*y+(g=g.plotY||0))/2.5;(v=(1.5*f+v)/2.5)!==w&&(x=(T-A)*(v-f)/(v-w)+y-T),T+=x,(A+=x)>_&&A>y?T=2*y-(A=Math.max(_,y)):A<_&&A<y&&(T=2*y-(A=Math.min(_,y))),T>g&&T>y?A=2*y-(T=Math.max(g,y)):T<g&&T<y&&(A=2*y-(T=Math.min(g,y))),O.rightContX=v,O.rightContY=T}return O=["C",tt(C.rightContX,C.plotX,0),tt(C.rightContY,C.plotY,0),tt(w,f,0),tt(A,y,0),f,y],C.rightContX=C.rightContY=void 0,O},N.defaultOptions=et(it.defaultOptions),N}(it),G.registerSeriesType("spline",F),F}),ct(U,"Series/AreaSpline/AreaSplineSeries.js",[U["Series/Spline/SplineSeries.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it){var O,et=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),tt=M.seriesTypes,$=tt.area;tt=tt.area.prototype;var N=it.extend,_=it.merge;return it=function(O){function g(){var f=null!==O&&O.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return et(g,O),g.defaultOptions=_(G.defaultOptions,$.defaultOptions),g}(G),N(it.prototype,{getGraphPath:tt.getGraphPath,getStackPoints:tt.getStackPoints,drawGraph:tt.drawGraph,drawLegendSymbol:F.drawRectangle}),M.registerSeriesType("areaspline",it),it}),ct(U,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),ct(U,"Series/Column/ColumnSeries.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Color/Color.js"],U["Series/Column/ColumnSeriesDefaults.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt,$,N){var r,_=this&&this.__extends||(r=function(p,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,t){h.__proto__=t}||function(h,t){for(var c in t)t.hasOwnProperty(c)&&(h[c]=t[c])})(p,o)},function(p,o){function h(){this.constructor=p}r(p,o),p.prototype=null===o?Object.create(o):(h.prototype=o.prototype,new h)}),O=G.animObject,g=F.parse,f=it.hasTouch;G=it.noop;var y=N.clamp,C=N.defined,v=N.extend,x=N.fireEvent,w=N.isArray,A=N.isNumber,T=N.merge,R=N.pick,k=N.objectEach;return N=function(r){function p(){var o=null!==r&&r.apply(this,arguments)||this;return o.borderWidth=void 0,o.data=void 0,o.group=void 0,o.options=void 0,o.points=void 0,o}return _(p,r),p.prototype.animate=function(o){var h=this,t=this.yAxis,c=h.options,i=this.chart.inverted,s={},d=i?"translateX":"translateY";if(o)s.scaleY=.001,o=y(t.toPixels(c.threshold),t.pos,t.pos+t.len),i?s.translateX=o-t.len:s.translateY=o,h.clipBox&&h.setClip(),h.group.attr(s);else{var a=Number(h.group.attr(d));h.group.animate({scaleY:1},v(O(h.options.animation),{step:function(m,b){h.group&&(s[d]=a+b.pos*(t.pos-a),h.group.attr(s))}}))}},p.prototype.init=function(o,h){r.prototype.init.apply(this,arguments);var t=this;(o=t.chart).hasRendered&&o.series.forEach(function(c){c.type===t.type&&(c.isDirty=!0)})},p.prototype.getColumnMetrics=function(){var o=this,h=o.options,t=o.xAxis,c=o.yAxis,i=t.options.reversedStacks;i=t.reversed&&!i||!t.reversed&&i;var d,s={},a=0;!1===h.grouping?a=1:o.chart.series.forEach(function(B){var e=B.yAxis,l=B.options;if(B.type===o.type&&(B.visible||!o.chart.options.chart.ignoreHiddenSeries)&&c.len===e.len&&c.pos===e.pos){if(l.stacking&&"group"!==l.stacking){typeof s[d=B.stackKey]>"u"&&(s[d]=a++);var P=s[d]}else!1!==l.grouping&&(P=a++);B.columnIndex=P}});var m=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||h.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=m*h.groupPadding,Y=(m-2*b)/(a||1);return h=Math.min(h.maxPointWidth||t.len,R(h.pointWidth,Y*(1-2*h.pointPadding))),o.columnMetrics={width:h,offset:(Y-h)/2+(b+((o.columnIndex||0)+(i?1:0))*Y-m/2)*(i?-1:1),paddedWidth:Y,columnCount:a},o.columnMetrics},p.prototype.crispCol=function(o,h,t,c){var i=this.chart,s=this.borderWidth,d=-(s%2?.5:0);return s=s%2?.5:1,i.inverted&&i.renderer.isVML&&(s+=1),this.options.crisp&&(t=Math.round(o+t)+d,t-=o=Math.round(o)+d),c=Math.round(h+c)+s,d=.5>=Math.abs(h)&&.5<c,c-=h=Math.round(h)+s,d&&c&&(--h,c+=1),{x:o,y:h,width:t,height:c}},p.prototype.adjustForMissingColumns=function(o,h,t,c){var i=this,s=this.options.stacking;if(!t.isNull&&1<c.columnCount){var d=this.yAxis.options.reversedStacks,a=0,m=d?0:-c.columnCount;k(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if("number"==typeof t.x){var Y=b[t.x.toString()];Y&&(b=Y.points[i.index],s?(b&&(a=m),Y.hasValidPoints&&(d?m++:m--)):w(b)&&(b=Object.keys(Y.points).filter(function(B){return!B.match(",")&&Y.points[B]&&1<Y.points[B].length}).map(parseFloat).sort(function(B,e){return e-B}),a=b.indexOf(i.index),m=b.length))}}),o=(t.plotX||0)+((m-1)*c.paddedWidth+h)/2-h-a*c.paddedWidth}return o},p.prototype.translate=function(){var o=this,h=o.chart,t=o.options,c=o.dense=2>o.closestPointRange*o.xAxis.transA;c=o.borderWidth=R(t.borderWidth,c?0:1);var i=o.xAxis,s=o.yAxis,d=t.threshold,a=o.translatedThreshold=s.getThreshold(d),m=R(t.minPointLength,5),b=o.getColumnMetrics(),Y=b.width,B=o.pointXOffset=b.offset,e=o.dataMin,l=o.dataMax,P=o.barW=Math.max(Y,1+2*c);h.inverted&&(a-=.5),t.pointPadding&&(P=Math.ceil(P)),tt.prototype.translate.apply(o),o.points.forEach(function(I){var L=R(I.yBottom,a),n=999+Math.abs(L),S=I.plotX||0;n=y(I.plotY,-n,s.len+n);var u=Math.min(n,L),H=Math.max(n,L)-u,D=Y,W=S+B,X=P;m&&Math.abs(H)<m&&(H=m,S=!s.reversed&&!I.negative||s.reversed&&I.negative,A(d)&&A(l)&&I.y===d&&l<=d&&(s.min||0)<d&&(e!==l||(s.max||0)<=d)&&(S=!S),u=Math.abs(u-a)>m?L-m:a-(S?m:0)),C(I.options.pointWidth)&&(D=X=Math.ceil(I.options.pointWidth),W-=Math.round((D-Y)/2)),t.centerInCategory&&(W=o.adjustForMissingColumns(W,D,I,b)),I.barX=W,I.pointWidth=D,I.tooltipPos=h.inverted?[y(s.len+s.pos-h.plotLeft-n,s.pos-h.plotLeft,s.len+s.pos-h.plotLeft),i.len+i.pos-h.plotTop-W-X/2,H]:[i.left-h.plotLeft+W+X/2,y(n+s.pos-h.plotTop,s.pos-h.plotTop,s.len+s.pos-h.plotTop),H],I.shapeType=o.pointClass.prototype.shapeType||"rect",I.shapeArgs=o.crispCol.apply(o,I.isNull?[W,a,X,0]:[W,u,X,H])})},p.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},p.prototype.pointAttribs=function(o,h){var t=this.options,c=this.pointAttrToOptions||{},i=c.stroke||"borderColor",s=c["stroke-width"]||"borderWidth",d=o&&o.color||this.color,a=o&&o[i]||t[i]||d;c=o&&o.options.dashStyle||t.dashStyle;var m=o&&o[s]||t[s]||this[s]||0,b=R(o&&o.opacity,t.opacity,1);if(o&&this.zones.length){var Y=o.getZone();d=o.options.color||Y&&(Y.color||o.nonZonedColor)||this.color,Y&&(a=Y.borderColor||a,c=Y.dashStyle||c,m=Y.borderWidth||m)}return h&&o&&(h=(o=T(t.states[h],o.options.states&&o.options.states[h]||{})).brightness,d=o.color||typeof h<"u"&&g(d).brighten(o.brightness).get()||d,a=o[i]||a,m=o[s]||m,c=o.dashStyle||c,b=R(o.opacity,b)),i={fill:d,stroke:a,"stroke-width":m,opacity:b},c&&(i.dashstyle=c),i},p.prototype.drawPoints=function(o){void 0===o&&(o=this.points);var d,h=this,t=this.chart,c=h.options,i=t.renderer,s=c.animationLimit||250;o.forEach(function(a){var m=a.graphic,b=!!m,Y=m&&t.pointCount<s?"animate":"attr";A(a.plotY)&&null!==a.y?(d=a.shapeArgs,m&&a.hasNewShapeType()&&(m=m.destroy()),h.enabledDataSorting&&(a.startXPos=h.xAxis.reversed?-(d&&d.width||0):h.xAxis.width),m||(a.graphic=m=i[a.shapeType](d).add(a.group||h.group))&&h.enabledDataSorting&&t.hasRendered&&t.pointCount<s&&(m.attr({x:a.startXPos}),b=!0,Y="animate"),m&&b&&m[Y](T(d)),c.borderRadius&&m[Y]({r:c.borderRadius}),t.styledMode||m[Y](h.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&c.shadow,null,c.stacking&&!c.borderRadius),m&&(m.addClass(a.getClassName(),!0),m.attr({visibility:a.visible?"inherit":"hidden"}))):m&&(a.graphic=m.destroy())})},p.prototype.drawTracker=function(o){void 0===o&&(o=this.points);var s,h=this,t=h.chart,c=t.pointer,i=function(d){var a=c.getPointFromEvent(d);typeof a<"u"&&(c.isDirectTouch=!0,a.onMouseOver(d))};o.forEach(function(d){s=w(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),s.forEach(function(a){a.div?a.div.point=d:a.element.point=d})}),h._hasTracking||(h.trackerGroups.forEach(function(d){h[d]&&(h[d].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){c.onTrackerMouseOut(a)}),f&&h[d].on("touchstart",i),!t.styledMode&&h.options.cursor&&h[d].css({cursor:h.options.cursor}))}),h._hasTracking=!0),x(this,"afterDrawTracker")},p.prototype.remove=function(){var o=this,h=o.chart;h.hasRendered&&h.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)}),tt.prototype.remove.apply(o,arguments)},p.defaultOptions=T(tt.defaultOptions,M),p}(tt),v(N.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:et.drawRectangle,getSymbol:G,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),$.registerSeriesType("column",N),N}),ct(U,"Core/Series/DataLabel.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/FormatUtilities.js"],U["Core/Utilities.js"]],function(G,F,M){var v,it=G.getDeferredAnimation,et=F.format,tt=M.defined,$=M.extend,N=M.fireEvent,_=M.isArray,O=M.isString,g=M.merge,f=M.objectEach,y=M.pick,C=M.splat;return function(x){function w(o,h,t,c,i){var s=this,d=this.chart,a=this.isCartesian&&d.inverted,m=this.enabledDataSorting,b=o.plotX,Y=o.plotY,B=t.rotation,e=t.align,l=tt(b)&&tt(Y)&&d.isInsidePlot(b,Math.round(Y),{inverted:a,paneCoordinates:!0,series:s});Y=function(n){m&&s.xAxis&&!P&&s.setDataLabelStartPos(o,h,i,l,n)};var P="justify"===y(t.overflow,m?"none":"justify");if(b=this.visible&&!1!==o.visible&&tt(b)&&(o.series.forceDL||m&&!P||l||y(t.inside,!!this.options.stacking)&&c&&d.isInsidePlot(b,a?c.x+1:c.y+c.height-1,{inverted:a,paneCoordinates:!0,series:s})),a=o.pos(),b&&a){B&&h.attr({align:e}),e=h.getBBox(!0);var I=[0,0],L=d.renderer.fontMetrics(d.styledMode?void 0:t.style.fontSize,h).b;c=$({x:a[0],y:Math.round(a[1]),width:0,height:0},c),$(t,{width:e.width,height:e.height}),B?(P=!1,I=d.renderer.rotCorr(L,B),L={x:c.x+(t.x||0)+c.width/2+I.x,y:c.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*c.height},I=[e.x-Number(h.attr("x")),e.y-Number(h.attr("y"))],Y(L),h[i?"attr":"animate"](L)):(Y(c),h.align(t,void 0,c),L=h.alignAttr),P&&0<=c.height?this.justifyDataLabel(h,t,L,e,c,i):y(t.crop,!0)&&(c=L.x,Y=L.y,b=d.isInsidePlot(c+=I[0],Y+=I[1],{paneCoordinates:!0,series:s})&&d.isInsidePlot(c+e.width,Y+e.height,{paneCoordinates:!0,series:s})),t.shape&&!B&&h[i?"attr":"animate"]({anchorX:a[0],anchorY:a[1]})}i&&m&&(h.placed=!1),b||m&&!P?h.show():(h.hide(),h.placed=!1)}function T(o){void 0===o&&(o=this.points);var h=this,t=h.chart,c=h.options,i=h.hasRendered||0,s=t.renderer,d=t.options.chart,a=d.backgroundColor,m=s.getContrast(O(d=d.plotBackgroundColor)&&d||O(a)&&a||"#000000"),b=c.dataLabels;if(a=b.animation,a=b.defer?it(t,a,h):{defer:0,duration:0},b=k(k(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[h.type]&&t.options.plotOptions[h.type].dataLabels),b),N(this,"drawDataLabels"),_(b)||b.enabled||h._hasPointLabels){var B=h.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",b.zIndex||6);B.attr({opacity:+i}),!i&&(i=h.dataLabelsGroup)&&(h.visible&&B.show(),i[c.animation?"animate":"attr"]({opacity:1},a)),o.forEach(function(e){C(k(b,e.dlOptions||e.options&&e.options.dataLabels)).forEach(function(l,P){var I=l.enabled&&(!e.isNull||e.dataLabelOnNull)&&function A(o,h){var t=h.filter;return!t||(h=t.operator,o=o[t.property],t=t.value,">"===h&&o>t||"<"===h&&o<t||">="===h&&o>=t||"<="===h&&o<=t||"=="===h&&o==t||"==="===h&&o===t)}(e,l),L=e.connectors?e.connectors[P]:e.connector,n=e.dataLabels?e.dataLabels[P]:e.dataLabel,S=!n,u=y(l.distance,e.labelDistance);if(I){var H=e.getLabelConfig(),D=y(l[e.formatPrefix+"Format"],l.format);H=tt(D)?et(D,H,t):(l[e.formatPrefix+"Formatter"]||l.formatter).call(H,l),D=l.style;var W=l.rotation;t.styledMode||(D.color=y(l.color,D.color,h.color,"#000000"),"contrast"===D.color?(e.contrastColor=s.getContrast(e.color||h.color),D.color=!tt(u)&&l.inside||0>u||c.stacking?e.contrastColor:m):delete e.contrastColor,c.cursor&&(D.cursor=c.cursor));var X={r:l.borderRadius||0,rotation:W,padding:l.padding,zIndex:1};if(!t.styledMode){var Z=l.borderColor;X.fill="auto"===(u=l.backgroundColor)?e.color:u,X.stroke="auto"===Z?e.color:Z,X["stroke-width"]=l.borderWidth}f(X,function(q,st){typeof q>"u"&&delete X[st]})}!n||I&&tt(H)&&!!n.div==!!l.useHTML&&(n.rotation&&l.rotation||n.rotation===l.rotation)||(S=!0,e.dataLabel=n=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[P]),P||delete e.dataLabel,L&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[P]))),I&&tt(H)?(n?X.text=H:(e.dataLabels=e.dataLabels||[],n=e.dataLabels[P]=W?s.text(H,0,0,l.useHTML).addClass("highcharts-data-label"):s.label(H,0,0,l.shape,null,null,l.useHTML,null,"data-label"),P||(e.dataLabel=n),n.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(l.className||"")+(l.useHTML?" highcharts-tracker":""))),n.options=l,n.attr(X),t.styledMode||n.css(D).shadow(l.shadow),(P=l[e.formatPrefix+"TextPath"]||l.textPath)&&!l.useHTML&&(n.setTextPath(e.getDataLabelPath&&e.getDataLabelPath(n)||e.graphic,P),e.dataLabelPath&&!P.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),n.added||n.add(B),h.alignDataLabel(e,n,l,null,S)):n&&n.hide()})})}N(this,"afterDrawDataLabels")}function R(o,h,t,c,i,s){var d=this.chart,a=h.align,m=h.verticalAlign,b=o.box?0:o.padding||0,Y=h.x;Y=void 0===Y?0:Y;var B=h.y;B=void 0===B?0:B;var e=(t.x||0)+b;if(0>e){"right"===a&&0<=Y?(h.align="left",h.inside=!0):Y-=e;var l=!0}return(e=(t.x||0)+c.width-b)>d.plotWidth&&("left"===a&&0>=Y?(h.align="right",h.inside=!0):Y+=d.plotWidth-e,l=!0),0>(e=t.y+b)&&("bottom"===m&&0<=B?(h.verticalAlign="top",h.inside=!0):B-=e,l=!0),(e=(t.y||0)+c.height-b)>d.plotHeight&&("top"===m&&0>=B?(h.verticalAlign="bottom",h.inside=!0):B+=d.plotHeight-e,l=!0),l&&(h.x=Y,h.y=B,o.placed=!s,o.align(h,void 0,i)),l}function k(o,h){var c,t=[];if(_(o)&&!_(h))t=o.map(function(i){return g(i,h)});else if(_(h)&&!_(o))t=h.map(function(i){return g(o,i)});else if(_(o)||_(h))for(c=Math.max(o.length,h.length);c--;)t[c]=g(o[c],h[c]);else t=g(o,h);return t}function r(o,h,t,c,i){var s=this.chart,d=s.inverted,a=this.xAxis,m=a.reversed,b=d?h.height/2:h.width/2;o=(o=o.pointWidth)?o/2:0,h.startXPos=d?i.x:m?-b-o:a.width-b+o,h.startYPos=d?m?this.yAxis.height-b+o:-b-o:i.y,c?"hidden"===h.visibility&&(h.show(),h.attr({opacity:0}).animate({opacity:1})):h.attr({opacity:1}).animate({opacity:0},void 0,h.hide),s.hasRendered&&(t&&h.attr({x:h.startXPos,y:h.startYPos}),h.placed=!0)}var p=[];x.compose=function(o){if(-1===p.indexOf(o)){var h=o.prototype;p.push(o),h.alignDataLabel=w,h.drawDataLabels=T,h.justifyDataLabel=R,h.setDataLabelStartPos=r}}}(v||(v={})),v}),ct(U,"Series/Column/ColumnDataLabel.js",[U["Core/Series/DataLabel.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var $,it=F.series,et=M.merge,tt=M.pick;return function(N){function _(g,f,y,C,v){var x=this.chart.inverted,w=g.series,A=(w.xAxis?w.xAxis.len:this.chart.plotSizeX)||0,T=g.dlBox||g.shapeArgs,R=tt(g.below,g.plotY>tt(this.translatedThreshold,w=(w.yAxis?w.yAxis.len:this.chart.plotSizeY)||0)),k=tt(y.inside,!!this.options.stacking);T&&(0>(C=et(T)).y&&(C.height+=C.y,C.y=0),0<(T=C.y+C.height-w)&&T<C.height&&(C.height-=T),x&&(C={x:w-C.y-C.height,y:A-C.x-C.width,width:C.height,height:C.width}),k||(x?(C.x+=R?0:C.width,C.width=0):(C.y+=R?C.height:0,C.height=0))),y.align=tt(y.align,!x||k?"center":R?"right":"left"),y.verticalAlign=tt(y.verticalAlign,x||k?"middle":R?"top":"bottom"),it.prototype.alignDataLabel.call(this,g,f,y,C,v),y.inside&&g.contrastColor&&f.css({color:g.contrastColor})}var O=[];N.compose=function(g){G.compose(it),-1===O.indexOf(g)&&(O.push(g),g.prototype.alignDataLabel=_)}}($||($={})),$}),ct(U,"Series/Bar/BarSeries.js",[U["Series/Column/ColumnSeries.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var $,it=this&&this.__extends||($=function(N,_){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,g){O.__proto__=g}||function(O,g){for(var f in g)g.hasOwnProperty(f)&&(O[f]=g[f])})(N,_)},function(N,_){function O(){this.constructor=N}$(N,_),N.prototype=null===_?Object.create(_):(O.prototype=_.prototype,new O)}),et=M.extend,tt=M.merge;return M=function($){function N(){var _=null!==$&&$.apply(this,arguments)||this;return _.data=void 0,_.options=void 0,_.points=void 0,_}return it(N,$),N.defaultOptions=tt(G.defaultOptions,{}),N}(G),et(M.prototype,{inverted:!0}),F.registerSeriesType("bar",M),M}),ct(U,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),ct(U,"Series/Scatter/ScatterSeries.js",[U["Series/Scatter/ScatterSeriesDefaults.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M){var O,it=this&&this.__extends||(O=function(g,f){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var v in C)C.hasOwnProperty(v)&&(y[v]=C[v])})(g,f)},function(g,f){function y(){this.constructor=g}O(g,f),g.prototype=null===f?Object.create(f):(y.prototype=f.prototype,new y)}),et=F.seriesTypes,tt=et.column,$=et.line;et=M.addEvent;var N=M.extend,_=M.merge;return M=function(O){function g(){var f=null!==O&&O.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f}return it(g,O),g.prototype.applyJitter=function(){var f=this,y=this.options.jitter,C=this.points.length;y&&this.points.forEach(function(v,x){["x","y"].forEach(function(w,A){var T="plot"+w.toUpperCase();if(y[w]&&!v.isNull){var R=f[w+"Axis"],k=y[w]*R.transA;if(R&&!R.isLog){var r=Math.max(0,v[T]-k);R=Math.min(R.len,v[T]+k),A=1e4*Math.sin(x+A*C),v[T]=r+(R-r)*(A-Math.floor(A)),"x"===w&&(v.clientX=v.plotX)}}})})},g.prototype.drawGraph=function(){this.options.lineWidth?O.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},g.defaultOptions=_($.defaultOptions,G),g}($),N(M.prototype,{drawTracker:tt.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),et(M,"afterTranslate",function(){this.applyJitter()}),F.registerSeriesType("scatter",M),M}),ct(U,"Series/CenteredUtilities.js",[U["Core/Globals.js"],U["Core/Series/Series.js"],U["Core/Utilities.js"]],function(G,F,M){var _,O,it=G.deg2rad,et=M.fireEvent,tt=M.isNumber,$=M.pick,N=M.relativeLength;return(O=_||(_={})).getCenter=function(){var g=this.options,f=this.chart,y=2*(g.slicedOffset||0),C=f.plotWidth-2*y,v=f.plotHeight-2*y,x=g.center,w=Math.min(C,v),A=g.thickness,T=g.size,R=g.innerSize||0;for("string"==typeof T&&(T=parseFloat(T)),"string"==typeof R&&(R=parseFloat(R)),g=[$(x[0],"50%"),$(x[1],"50%"),$(T&&0>T?void 0:g.size,"100%"),$(R&&0>R?void 0:g.innerSize||0,"0%")],!f.angular||this instanceof F||(g[3]=0),x=0;4>x;++x)T=g[x],f=2>x||2===x&&/%$/.test(T),g[x]=N(T,[C,v,w,g[2]][x])+(f?y:0);return g[3]>g[2]&&(g[3]=g[2]),tt(A)&&2*A<g[2]&&0<A&&(g[3]=g[2]-2*A),et(this,"afterGetCenter",{positions:g}),g},O.getStartAndEndRadians=function(g,f){return g=tt(g)?g:0,f=tt(f)&&f>g&&360>f-g?f:g+360,{start:it*(g+-90),end:it*(f+-90)}},_}),ct(U,"Series/Pie/PiePoint.js",[U["Core/Animation/AnimationUtilities.js"],U["Core/Series/Point.js"],U["Core/Utilities.js"]],function(G,F,M){var g,it=this&&this.__extends||(g=function(f,y){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,v){C.__proto__=v}||function(C,v){for(var x in v)v.hasOwnProperty(x)&&(C[x]=v[x])})(f,y)},function(f,y){function C(){this.constructor=f}g(f,y),f.prototype=null===y?Object.create(y):(C.prototype=y.prototype,new C)}),et=G.setAnimation,tt=M.addEvent,$=M.defined;G=M.extend;var N=M.isNumber,_=M.pick,O=M.relativeLength;return F=function(g){function f(){var y=null!==g&&g.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return it(f,g),f.prototype.getConnectorPath=function(){var y=this.labelPosition,C=this.series.options.dataLabels,v=this.connectorShapes,x=C.connectorShape;return v[x]&&(x=v[x]),x.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,C)},f.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},f.prototype.haloPath=function(y){var C=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(C.x,C.y,C.r+y,C.r+y,{innerR:C.r-1,start:C.start,end:C.end})},f.prototype.init=function(){var y=this;g.prototype.init.apply(this,arguments),this.name=_(this.name,"Slice");var C=function(v){y.slice("select"===v.type)};return tt(this,"select",C),tt(this,"unselect",C),this},f.prototype.isValid=function(){return N(this.y)&&0<=this.y},f.prototype.setVisible=function(y,C){var v=this,x=this.series,w=x.chart,A=x.options.ignoreHiddenPoint;C=_(C,A),y!==this.visible&&(this.visible=this.options.visible=y=typeof y>"u"?!this.visible:y,x.options.data[x.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(T){v[T]&&v[T][y?"show":"hide"](y)}),this.legendItem&&w.legend.colorizeItem(this,y),y||"hover"!==this.state||this.setState(""),A&&(x.isDirty=!0),C&&w.redraw())},f.prototype.slice=function(y,C,v){var x=this.series;et(v,x.chart),_(C,!0),this.sliced=this.options.sliced=$(y)?y:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},f}(F),G(F.prototype,{connectorShapes:{fixedOffset:function(g,f,y){var C=f.breakAt;return f=f.touchingSliceAt,[["M",g.x,g.y],y.softConnector?["C",g.x+("left"===g.alignment?-5:5),g.y,2*C.x-f.x,2*C.y-f.y,C.x,C.y]:["L",C.x,C.y],["L",f.x,f.y]]},straight:function(g,f){return[["M",g.x,g.y],["L",(f=f.touchingSliceAt).x,f.y]]},crookedLine:function(g,f,y){f=f.touchingSliceAt;var C=this.series,v=C.center[0],x=C.chart.plotWidth,w=C.chart.plotLeft;C=g.alignment;var A=this.shapeArgs.r;return y=O(y.crookDistance,1),y=["L",x="left"===C?v+A+(x+w-v-A)*(1-y):w+(v-A)*y,g.y],v=!0,("left"===C?x>g.x||x<f.x:x<g.x||x>f.x)&&(v=!1),g=[["M",g.x,g.y]],v&&g.push(y),g.push(["L",f.x,f.y]),g}}}),F}),ct(U,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),ct(U,"Series/Pie/PieSeries.js",[U["Series/CenteredUtilities.js"],U["Series/Column/ColumnSeries.js"],U["Core/Globals.js"],U["Core/Legend/LegendSymbol.js"],U["Series/Pie/PiePoint.js"],U["Series/Pie/PieSeriesDefaults.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Renderer/SVG/Symbols.js"],U["Core/Utilities.js"]],function(G,F,M,it,et,tt,$,N,_,O){var T,g=this&&this.__extends||(T=function(R,k){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,p){r.__proto__=p}||function(r,p){for(var o in p)p.hasOwnProperty(o)&&(r[o]=p[o])})(R,k)},function(R,k){function r(){this.constructor=R}T(R,k),R.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}),f=G.getStartAndEndRadians;M=M.noop;var y=O.clamp,C=O.extend,v=O.fireEvent,x=O.merge,w=O.pick,A=O.relativeLength;return O=function(T){function R(){var k=null!==T&&T.apply(this,arguments)||this;return k.center=void 0,k.data=void 0,k.maxLabelDistance=void 0,k.options=void 0,k.points=void 0,k}return g(R,T),R.prototype.animate=function(k){var r=this,o=r.startAngleRad;k||r.points.forEach(function(h){var t=h.graphic,c=h.shapeArgs;t&&c&&(t.attr({r:w(h.startR,r.center&&r.center[3]/2),start:o,end:o}),t.animate({r:c.r,start:c.start,end:c.end},r.options.animation))})},R.prototype.drawEmpty=function(){var k=this.startAngleRad,r=this.endAngleRad,p=this.options;if(0===this.total&&this.center){var o=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,h,this.center[1]/2,0,k,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:_.arc(o,h,this.center[2]/2,0,{start:k,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":p.borderWidth,fill:p.fillColor||"none",stroke:p.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},R.prototype.drawPoints=function(){var k=this.chart.renderer;this.points.forEach(function(r){r.graphic&&r.hasNewShapeType()&&(r.graphic=r.graphic.destroy()),r.graphic||(r.graphic=k[r.shapeType](r.shapeArgs).add(r.series.group),r.delayedRendering=!0)})},R.prototype.generatePoints=function(){T.prototype.generatePoints.call(this),this.updateTotals()},R.prototype.getX=function(k,r,p){var o=this.center,h=this.radii?this.radii[p.index]||0:o[2]/2;return k=Math.asin(y((k-o[1])/(h+p.labelDistance),-1,1)),o[0]+(r?-1:1)*Math.cos(k)*(h+p.labelDistance)+(0<p.labelDistance?(r?-1:1)*this.options.dataLabels.padding:0)},R.prototype.hasData=function(){return!!this.processedXData.length},R.prototype.redrawPoints=function(){var h,t,c,i,k=this,r=k.chart,p=r.renderer,o=k.options.shadow;this.drawEmpty(),!o||k.shadowGroup||r.styledMode||(k.shadowGroup=p.g("shadow").attr({zIndex:-1}).add(k.group)),k.points.forEach(function(s){var d={};if(t=s.graphic,!s.isNull&&t){var a=void 0;i=s.shapeArgs,h=s.getTranslate(),r.styledMode||(a=s.shadowGroup,o&&!a&&(a=s.shadowGroup=p.g("shadow").add(k.shadowGroup)),a&&a.attr(h),c=k.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(t.setRadialReference(k.center).attr(i).attr(h),r.styledMode||t.attr(c).attr({"stroke-linejoin":"round"}).shadow(o,a),s.delayedRendering=!1):(t.setRadialReference(k.center),r.styledMode||x(!0,d,c),x(!0,d,i,h),t.animate(d)),t.attr({visibility:s.visible?"inherit":"hidden"}),t.addClass(s.getClassName(),!0)}else t&&(s.graphic=t.destroy())})},R.prototype.sortByAngle=function(k,r){k.sort(function(p,o){return typeof p.angle<"u"&&(o.angle-p.angle)*r})},R.prototype.translate=function(k){v(this,"translate"),this.generatePoints();var r=this.options,p=r.slicedOffset,o=p+(r.borderWidth||0),h=f(r.startAngle,r.endAngle),t=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-t;var c=this.points,i=r.dataLabels.distance;r=r.ignoreHiddenPoint;var d,s=c.length,a=0;for(k||(this.center=k=this.getCenter()),d=0;d<s;d++){var m=c[d],b=t+a*h;!m.isValid()||r&&!m.visible||(a+=m.percentage/100);var Y=t+a*h,B={x:k[0],y:k[1],r:k[2]/2,innerR:k[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*Y)/1e3};m.shapeType="arc",m.shapeArgs=B,m.labelDistance=w(m.options.dataLabels&&m.options.dataLabels.distance,i),m.labelDistance=A(m.labelDistance,B.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,m.labelDistance),(Y=(Y+b)/2)>1.5*Math.PI?Y-=2*Math.PI:Y<-Math.PI/2&&(Y+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(Y)*p),translateY:Math.round(Math.sin(Y)*p)},B=Math.cos(Y)*k[2]/2;var e=Math.sin(Y)*k[2]/2;m.tooltipPos=[k[0]+.7*B,k[1]+.7*e],m.half=Y<-Math.PI/2||Y>Math.PI/2?1:0,m.angle=Y,b=Math.min(o,m.labelDistance/5),m.labelPosition={natural:{x:k[0]+B+Math.cos(Y)*m.labelDistance,y:k[1]+e+Math.sin(Y)*m.labelDistance},final:{},alignment:0>m.labelDistance?"center":m.half?"right":"left",connectorPosition:{breakAt:{x:k[0]+B+Math.cos(Y)*b,y:k[1]+e+Math.sin(Y)*b},touchingSliceAt:{x:k[0]+B,y:k[1]+e}}}}v(this,"afterTranslate")},R.prototype.updateTotals=function(){var o,k=this.points,r=k.length,p=this.options.ignoreHiddenPoint,h=0;for(o=0;o<r;o++){var t=k[o];!t.isValid()||p&&!t.visible||(h+=t.y)}for(this.total=h,o=0;o<r;o++)(t=k[o]).percentage=0<h&&(t.visible||!p)?t.y/h*100:0,t.total=h},R.defaultOptions=x($.defaultOptions,tt),R}($),C(O.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:it.drawRectangle,drawTracker:F.prototype.drawTracker,getCenter:G.getCenter,getSymbol:M,isCartesian:!1,noSharedTooltip:!0,pointAttribs:F.prototype.pointAttribs,pointClass:et,requireSorting:!1,searchPoint:M,trackerGroups:["group","dataLabelsGroup"]}),N.registerSeriesType("pie",O),O}),ct(U,"Series/Pie/PieDataLabel.js",[U["Core/Series/DataLabel.js"],U["Core/Globals.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Series/SeriesRegistry.js"],U["Core/Utilities.js"]],function(G,F,M,it,et){var v,tt=F.noop,$=M.distribute,N=it.series,_=et.arrayMax,O=et.clamp,g=et.defined,f=et.merge,y=et.pick,C=et.relativeLength;return function(x){function w(){var l,P,I,L,n,S,u,H,D,W,X,Z,r=this,p=r.data,o=r.chart,h=r.options.dataLabels||{},t=h.connectorPadding,c=o.plotWidth,i=o.plotHeight,s=o.plotLeft,d=Math.round(o.chartWidth/3),a=r.center,m=a[2]/2,b=a[1],Y=[[],[]],B=[0,0,0,0],e=r.dataLabelPositioners;r.visible&&(h.enabled||r._hasPointLabels)&&(p.forEach(function(q){q.dataLabel&&q.visible&&q.dataLabel.shortened&&(q.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),q.dataLabel.shortened=!1)}),N.prototype.drawDataLabels.apply(r),p.forEach(function(q){q.dataLabel&&(q.visible?(Y[q.half].push(q),q.dataLabel._pos=null,!g(h.style.width)&&!g(q.options.dataLabels&&q.options.dataLabels.style&&q.options.dataLabels.style.width)&&q.dataLabel.getBBox().width>d&&(q.dataLabel.css({width:Math.round(.7*d)+"px"}),q.dataLabel.shortened=!0)):(q.dataLabel=q.dataLabel.destroy(),q.dataLabels&&1===q.dataLabels.length&&delete q.dataLabels))}),Y.forEach(function(q,st){var V,nt=q.length,rt=[];if(nt){if(r.sortByAngle(q,st-.5),0<r.maxLabelDistance){var Q=Math.max(0,b-m-r.maxLabelDistance),z=Math.min(b+m+r.maxLabelDistance,o.plotHeight);q.forEach(function(E){0<E.labelDistance&&E.dataLabel&&(E.top=Math.max(0,b-m-E.labelDistance),E.bottom=Math.min(b+m+E.labelDistance,o.plotHeight),V=E.dataLabel.getBBox().height||21,E.distributeBox={target:E.labelPosition.natural.y-E.top+V/2,size:V,rank:E.y},rt.push(E.distributeBox))}),$(rt,Q=z+V-Q,Q/5)}for(X=0;X<nt;X++){if(L=(l=q[X]).dataLabel,W=!1===l.visible?"hidden":"inherit",D=Q=(S=l.labelPosition).natural.y,rt&&g(l.distributeBox)&&(typeof l.distributeBox.pos>"u"?W="hidden":(u=l.distributeBox.size,D=e.radialDistributionY(l))),delete l.positionIndex,h.justify)H=e.justify(l,m,a);else switch(h.alignTo){case"connectors":H=e.alignToConnectors(q,st,c,s);break;case"plotEdges":H=e.alignToPlotEdges(L,st,c,s);break;default:H=e.radialDistributionX(r,l,D,Q)}L._attr={visibility:W,align:S.alignment},L._pos={x:H+y((Z=l.options.dataLabels||{}).x,h.x)+({left:t,right:-t}[S.alignment]||0),y:D+y(Z.y,h.y)-10},S.final.x=H,S.final.y=D,y(h.crop,!0)&&(n=L.getBBox().width,Q=null,H-n<t&&1===st?(Q=Math.round(n-H+t),B[3]=Math.max(Q,B[3])):H+n>c-t&&0===st&&(Q=Math.round(H+n-c+t),B[1]=Math.max(Q,B[1])),0>D-u/2?B[0]=Math.max(Math.round(u/2-D),B[0]):D+u/2>i&&(B[2]=Math.max(Math.round(D+u/2-i),B[2])),L.sideOverflow=Q)}}}),0===_(B)||this.verifyDataLabelOverflow(B))&&(this.placeDataLabels(),this.points.forEach(function(q){var st;Z=f(h,q.options.dataLabels),(P=y(Z.connectorWidth,1))&&(I=q.connector,(L=q.dataLabel)&&L._pos&&q.visible&&0<q.labelDistance?(W=L._attr.visibility,(st=!I)&&(q.connector=I=o.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+q.colorIndex+(q.className?" "+q.className:"")).add(r.dataLabelsGroup),o.styledMode||I.attr({"stroke-width":P,stroke:Z.connectorColor||q.color||"#666666"})),I[st?"attr":"animate"]({d:q.getConnectorPath()}),I.attr("visibility",W)):I&&(q.connector=I.destroy()))}))}function A(){this.points.forEach(function(r){var o,p=r.dataLabel;p&&r.visible&&((o=p._pos)?(p.sideOverflow&&(p._attr.width=Math.max(p.getBBox().width-p.sideOverflow,0),p.css({width:p._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),p.shortened=!0),p.attr(p._attr),p[p.moved?"animate":"attr"](o),p.moved=!0):p&&p.attr({y:-9999})),delete r.distributeBox},this)}function T(r){var p=this.center,o=this.options,h=o.center,t=o.minSize||80,c=null!==o.size;if(!c){if(null!==h[0])var i=Math.max(p[2]-Math.max(r[1],r[3]),t);else i=Math.max(p[2]-r[1]-r[3],t),p[0]+=(r[3]-r[1])/2;null!==h[1]?i=O(i,t,p[2]-Math.max(r[0],r[2])):(i=O(i,t,p[2]-r[0]-r[2]),p[1]+=(r[0]-r[2])/2),i<p[2]?(p[2]=i,p[3]=Math.min(o.thickness?Math.max(0,i-2*o.thickness):Math.max(0,C(o.innerSize||0,i)),i),this.translate(p),this.drawDataLabels&&this.drawDataLabels()):c=!0}return c}var R=[],k={radialDistributionY:function(r){return r.top+r.distributeBox.pos},radialDistributionX:function(r,p,o,h){return r.getX(o<p.top+2||o>p.bottom-2?h:o,p.half,p)},justify:function(r,p,o){return o[0]+(r.half?-1:1)*(p+r.labelDistance)},alignToPlotEdges:function(r,p,o,h){return r=r.getBBox().width,p?r+h:o-r-h},alignToConnectors:function(r,p,o,h){var c,t=0;return r.forEach(function(i){(c=i.dataLabel.getBBox().width)>t&&(t=c)}),p?t+h:o-t-h}};x.compose=function(r){G.compose(N),-1===R.indexOf(r)&&(R.push(r),(r=r.prototype).dataLabelPositioners=k,r.alignDataLabel=tt,r.drawDataLabels=w,r.placeDataLabels=A,r.verifyDataLabelOverflow=T)}}(v||(v={})),v}),ct(U,"Extensions/OverlappingDataLabels.js",[U["Core/Chart/Chart.js"],U["Core/Utilities.js"]],function(G,F){function M(O,g){var f=!1;if(O){var y=O.newOpacity;O.oldOpacity!==y&&(O.alignAttr&&O.placed?(O[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),f=!0,O.alignAttr.opacity=y,O[O.isOld?"animate":"attr"](O.alignAttr,null,function(){g.styledMode||O.css({pointerEvents:y?"auto":"none"})}),et(g,"afterHideOverlappingLabel")):O.attr({opacity:y})),O.isOld=!0}return f}var et=F.fireEvent,tt=F.isArray,$=F.isNumber,N=F.objectEach,_=F.pick;(0,F.addEvent)(G,"render",function(){var O=this,g=[];(this.labelCollectors||[]).forEach(function(f){g=g.concat(f())}),(this.yAxis||[]).forEach(function(f){f.stacking&&f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&N(f.stacking.stacks,function(y){N(y,function(C){C.label&&g.push(C.label)})})}),(this.series||[]).forEach(function(f){var y=f.options.dataLabels;f.visible&&(!1!==y.enabled||f._hasPointLabels)&&((y=function(C){return C.forEach(function(v){v.visible&&(tt(v.dataLabels)?v.dataLabels:v.dataLabel?[v.dataLabel]:[]).forEach(function(x){var w=x.options;x.labelrank=_(w.labelrank,v.labelrank,v.shapeArgs&&v.shapeArgs.height),w.allowOverlap?(x.oldOpacity=x.opacity,x.newOpacity=1,M(x,O)):g.push(x)})})})(f.nodes||[]),y(f.points))}),this.hideOverlappingLabels(g)}),G.prototype.hideOverlappingLabels=function(O){var C,v,x,g=this,f=O.length,y=g.renderer,w=!1,A=function(k){var r,h,p=k.box?0:k.padding||0,o=r=0;if(k&&(!k.alignAttr||k.placed)){var t=k.alignAttr||{x:k.attr("x"),y:k.attr("y")},c=k.parentGroup;return k.width||(r=k.getBBox(),k.width=r.width,k.height=r.height,r=y.fontMetrics(null,k.element).h),(h={left:"0",center:"0.5",right:"1"}[k.alignValue])?o=+h*(k.width-2*p):$(k.x)&&Math.round(k.x)!==k.translateX&&(o=k.x-k.translateX),{x:t.x+(c.translateX||0)+p-(o||0),y:t.y+(c.translateY||0)+p-r,width:k.width-2*p,height:k.height-2*p}}};for(v=0;v<f;v++)(C=O[v])&&(C.oldOpacity=C.opacity,C.newOpacity=1,C.absoluteBox=A(C));for(O.sort(function(k,r){return(r.labelrank||0)-(k.labelrank||0)}),v=0;v<f;v++){var T=(A=O[v])&&A.absoluteBox;for(C=v+1;C<f;++C){var R=(x=O[C])&&x.absoluteBox;!T||!R||A===x||0===A.newOpacity||0===x.newOpacity||"hidden"===A.visibility||"hidden"===x.visibility||R.x>=T.x+T.width||R.x+R.width<=T.x||R.y>=T.y+T.height||R.y+R.height<=T.y||((A.labelrank<x.labelrank?A:x).newOpacity=0)}}O.forEach(function(k){M(k,g)&&(w=!0)}),w&&et(g,"afterHideAllOverlappingLabels")}}),ct(U,"Core/Responsive.js",[U["Core/Utilities.js"]],function(G){var g,F=G.extend,M=G.find,it=G.isArray,et=G.isObject,tt=G.merge,$=G.objectEach,N=G.pick,_=G.splat,O=G.uniqueKey;return function(f){var y=[];f.compose=function(v){return-1===y.indexOf(v)&&(y.push(v),F(v.prototype,C.prototype)),v};var C=function(){function v(){}return v.prototype.currentOptions=function(x){var A=this,T={};return function w(R,k,r,p){var o;$(R,function(h,t){if(!p&&-1<A.collectionsWithUpdate.indexOf(t)&&k[t])for(h=_(h),r[t]=[],o=0;o<Math.max(h.length,k[t].length);o++)k[t][o]&&(void 0===h[o]?r[t][o]=k[t][o]:(r[t][o]={},w(h[o],k[t][o],r[t][o],p+1)));else et(h)?(r[t]=it(h)?[]:{},w(h,k[t]||{},r[t],p+1)):r[t]=typeof k[t]>"u"?null:k[t]})}(x,this.options,T,0),T},v.prototype.matchResponsiveRule=function(x,w){var A=x.condition;(A.callback||function(){return this.chartWidth<=N(A.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=N(A.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=N(A.minWidth,0)&&this.chartHeight>=N(A.minHeight,0)}).call(this)&&w.push(x._id)},v.prototype.setResponsive=function(x,w){var A=this,T=this.options.responsive,R=this.currentResponsive,k=[];!w&&T&&T.rules&&T.rules.forEach(function(r){typeof r._id>"u"&&(r._id=O()),A.matchResponsiveRule(r,k)},this),(w=tt.apply(void 0,k.map(function(r){return M((T||{}).rules||[],function(p){return p._id===r})}).map(function(r){return r&&r.chartOptions}))).isResponsiveOptions=!0,(k=k.toString()||void 0)!==(R&&R.ruleIds)&&(R&&this.update(R.undoOptions,x,!0),k?((R=this.currentOptions(w)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:w,undoOptions:R},this.update(w,x,!0)):this.currentResponsive=void 0)},v}()}(g||(g={})),g}),ct(U,"masters/highcharts.src.js",[U["Core/Globals.js"],U["Core/Utilities.js"],U["Core/Defaults.js"],U["Core/Animation/Fx.js"],U["Core/Animation/AnimationUtilities.js"],U["Core/Renderer/HTML/AST.js"],U["Core/FormatUtilities.js"],U["Core/Renderer/RendererUtilities.js"],U["Core/Renderer/SVG/SVGElement.js"],U["Core/Renderer/SVG/SVGRenderer.js"],U["Core/Renderer/HTML/HTMLElement.js"],U["Core/Renderer/HTML/HTMLRenderer.js"],U["Core/Axis/Axis.js"],U["Core/Axis/DateTimeAxis.js"],U["Core/Axis/LogarithmicAxis.js"],U["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],U["Core/Axis/Tick.js"],U["Core/Tooltip.js"],U["Core/Series/Point.js"],U["Core/Pointer.js"],U["Core/MSPointer.js"],U["Core/Legend/Legend.js"],U["Core/Chart/Chart.js"],U["Core/Axis/Stacking/StackingAxis.js"],U["Core/Axis/Stacking/StackItem.js"],U["Core/Series/Series.js"],U["Core/Series/SeriesRegistry.js"],U["Series/Column/ColumnSeries.js"],U["Series/Column/ColumnDataLabel.js"],U["Series/Pie/PieSeries.js"],U["Series/Pie/PieDataLabel.js"],U["Core/Series/DataLabel.js"],U["Core/Responsive.js"],U["Core/Color/Color.js"],U["Core/Time.js"]],function(G,F,M,it,et,tt,$,N,_,O,g,f,y,C,v,x,w,A,T,R,k,r,p,o,h,t,c,i,s,d,a,m,b,Y,B){return G.animate=et.animate,G.animObject=et.animObject,G.getDeferredAnimation=et.getDeferredAnimation,G.setAnimation=et.setAnimation,G.stop=et.stop,G.timers=it.timers,G.AST=tt,G.Axis=y,G.Chart=p,G.chart=p.chart,G.Fx=it,G.Legend=r,G.PlotLineOrBand=x,G.Point=T,G.Pointer=k.isRequired()?k:R,G.Series=t,G.StackItem=h,G.SVGElement=_,G.SVGRenderer=O,G.Tick=w,G.Time=B,G.Tooltip=A,G.Color=Y,G.color=Y.parse,f.compose(O),g.compose(_),G.defaultOptions=M.defaultOptions,G.getOptions=M.getOptions,G.time=M.defaultTime,G.setOptions=M.setOptions,G.dateFormat=$.dateFormat,G.format=$.format,G.numberFormat=$.numberFormat,G.addEvent=F.addEvent,G.arrayMax=F.arrayMax,G.arrayMin=F.arrayMin,G.attr=F.attr,G.clearTimeout=F.clearTimeout,G.correctFloat=F.correctFloat,G.createElement=F.createElement,G.css=F.css,G.defined=F.defined,G.destroyObjectProperties=F.destroyObjectProperties,G.discardElement=F.discardElement,G.distribute=N.distribute,G.erase=F.erase,G.error=F.error,G.extend=F.extend,G.extendClass=F.extendClass,G.find=F.find,G.fireEvent=F.fireEvent,G.getMagnitude=F.getMagnitude,G.getStyle=F.getStyle,G.inArray=F.inArray,G.isArray=F.isArray,G.isClass=F.isClass,G.isDOMElement=F.isDOMElement,G.isFunction=F.isFunction,G.isNumber=F.isNumber,G.isObject=F.isObject,G.isString=F.isString,G.keys=F.keys,G.merge=F.merge,G.normalizeTickInterval=F.normalizeTickInterval,G.objectEach=F.objectEach,G.offset=F.offset,G.pad=F.pad,G.pick=F.pick,G.pInt=F.pInt,G.relativeLength=F.relativeLength,G.removeEvent=F.removeEvent,G.seriesType=c.seriesType,G.splat=F.splat,G.stableSort=F.stableSort,G.syncTimeout=F.syncTimeout,G.timeUnits=F.timeUnits,G.uniqueKey=F.uniqueKey,G.useSerialIds=F.useSerialIds,G.wrap=F.wrap,s.compose(i),m.compose(t),C.compose(y),v.compose(y),a.compose(d),x.compose(y),b.compose(p),o.compose(y,p,t),G}),U["masters/highcharts.src.js"]._modules=U,U["masters/highcharts.src.js"]},Ot.exports?(ct.default=ct,Ot.exports=At.document?ct(At):ct):void 0!==(wt=function(){return ct(At)}.call(bt,vt,bt,Ot))&&(Ot.exports=wt)}}]);
|