0||i.hasImage)&&(i.graphic=r=l.renderer.symbol(t,a.x,a.y,a.width,a.height,o?n:d).add(p),this.enabledDataSorting&&l.hasRendered&&(r.attr({x:i.startXPos}),s="animate")),r&&"animate"===s&&r[e?"show":"hide"](e).animate(a),r){let t=this.pointAttribs(i,c||!i.selected?void 0:"select");c?h&&r.css({fill:t.fill}):r[s](t)}r&&r.addClass(i.getClassName(),!0)}else r&&(i.graphic=r.destroy())}markerAttribs(t,e){let i,r,s=this.options,n=s.marker,o=t.marker||{},a=o.symbol||n.symbol,l={},c=B(o.radius,n&&n.radius);e&&(i=n.states[e],c=B((r=o.states&&o.states[e])&&r.radius,i&&i.radius,c&&c+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(c=0);let h=t.pos();return z(c)&&h&&(s.crisp&&(h[0]=b(h[0],t.hasImage?0:"rect"===a?n?.lineWidth||0:1)),l.x=h[0]-c,l.y=h[1]-c),c&&(l.width=l.height=2*c),l}pointAttribs(t,e){let i,r,s,n,o=this.options.marker,a=t&&t.options,l=a&&a.marker||{},c=a&&a.color,h=t&&t.color,u=t&&t.zone&&t.zone.color,d=this.color,p=B(l.lineWidth,o.lineWidth),f=1;return d=c||u||h||d,s=l.fillColor||o.fillColor||d,n=l.lineColor||o.lineColor||d,e=e||"normal",i=o.states[e]||{},p=B((r=l.states&&l.states[e]||{}).lineWidth,i.lineWidth,p+B(r.lineWidthPlus,i.lineWidthPlus,0)),s=r.fillColor||i.fillColor||s,{stroke:n=r.lineColor||i.lineColor||n,"stroke-width":p,fill:s,opacity:f=B(r.opacity,i.opacity,f)}}destroy(t){let e,i,r,s=this,n=s.chart,o=/AppleWebKit\/533/.test(m.navigator.userAgent),a=s.data||[];for(M(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach((function(t){(r=s[t])&&r.series&&(T(r.series,s),r.isDirty=r.forceRedraw=!0)})),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();for(let t of s.zones)S(t,void 0,!0);c.clearTimeout(s.animationTimeout),N(s,(function(t,e){t instanceof l&&!t.survive&&t[o&&"group"===e?"hide":"destroy"]()})),n.hoverSeries===s&&(n.hoverSeries=void 0),T(n.series,s),n.orderItems("series"),N(s,(function(e,i){t&&"hcEvents"===i||delete s[i]}))}applyZones(){let{area:t,chart:e,graph:i,zones:r,points:s,xAxis:n,yAxis:o,zoneAxis:a}=this,{inverted:l,renderer:c}=e,h=this[`${a}Axis`],{isXAxis:u,len:d=0}=h||{},p=(i?.strokeWidth()||0)/2+1,f=(t,e=0,i=0)=>{l&&(i=d-i);let{translated:r=0,lineClip:s}=t,n=i-r;s?.push(["L",e,Math.abs(n){t.forEach(((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],u?d-e[1]:e[1],u?e[2]:d-e[2]])}))};if(r.forEach((t=>{t.lineClip=[],t.translated=v(h.toPixels(B(t.value,e),!0)||0,0,d)})),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&s.length{let r=e.lineClip||[],s=Math.round(e.translated||0);n.reversed&&r.reverse();let{clip:a,simpleClip:h}=e,d=0,f=0,y=n.len,_=o.len;u?(d=s,y=g):(f=s,_=g);let v=[["M",d,f],["L",y,f],["L",y,_],["L",d,_],["Z"]],x=[v[0],...r,v[1],v[2],...m,v[3],v[4]];m=r.reverse(),g=s,l&&(p(x),t&&p(v)),a?(a.animate({d:x}),h?.animate({d:v})):(a=e.clip=c.path(x),t&&(h=e.simpleClip=c.path(v))),i&&e.graph?.clip(a),t&&e.area?.clip(h)}))}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,r,s){let n=this[t],o=!n,a={visibility:i,zIndex:r||.1};return w(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),n||(this[t]=n=this.chart.renderer.g().add(s)),n.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(n.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),n.attr(a)[o?"attr":"animate"](this.getPlotBox(e)),n}getPlotBox(t){let e=this.xAxis,i=this.yAxis,r=this.chart,s=r.inverted&&!r.polar&&e&&this.invertible&&"series"===t;return r.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:r.plotLeft,translateY:i?i.top:r.plotTop,rotation:s?90:0,rotationOriginX:s?(e.len-i.len)/2:0,rotationOriginY:s?(e.len+i.len)/2:0,scaleX:s?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||F(this),e.length&&(e.forEach((t=>{t()})),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:r}=t,s=h(i.animation),n=t.visible?"inherit":"hidden",o=i.zIndex,a=e.seriesGroup,l=t.finishedAnimating?0:s.duration;M(this,"render"),t.plotGroup("group","series",n,o,a),t.markerGroup=t.plotGroup("markerGroup","markers",n,o,a),!1!==i.clip&&t.setClip(),l&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),l&&t.animate?.(),r||(l&&s.defer&&(l+=s.defer),t.animationTimeout=U((()=>{t.afterAnimate()}),l||0)),t.isDirty=!1,t.hasRendered=!0,M(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:r}=this,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,U((function(){e.kdTree=function t(i,r,s){let n,o,a=i?.length;if(a)return n=e.kdAxisArray[r%s],i.sort(((t,e)=>(t[n]||0)-(e[n]||0))),{point:i[o=Math.floor(a/2)],left:t(i.slice(0,o),r+1,s),right:t(i.slice(o+1),r+1,s)}}(e.getValidPoints(void 0,!e.directTouch),i,i),e.buildingKdTree=!1}),e.options.kdNow||"touchstart"===t?.type?0:1)}searchKDTree(t,e,i){let r=this,[s,n]=this.kdAxisArray,o=e?"distX":"dist",a=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,l=!!r.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,c){let h,u,d=i.point,p=r.kdAxisArray[a%c],f=d;!function(t,e){let i=t[s],r=e[s],o=w(i)&&w(r)?i-r:null,a=t[n],c=e[n],h=w(a)&&w(c)?a-c:0,u=l&&e.marker?.radius||0;e.dist=Math.sqrt((o&&o*o||0)+h*h)-u,e.distX=w(o)?Math.abs(o)-u:Number.MAX_VALUE}(e,d);let m=(e[p]||0)-(d[p]||0)+(l&&d.marker?.radius||0),g=m<0?"left":"right",y=m<0?"right":"left";return i[g]&&(f=(h=t(e,i[g],a+1,c))[o]=0&&n<=(r?r.len:e.plotHeight)&&s>=0&&s<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,r=[].concat((i?t.areaPath:t.graphPath)||[]),s=t.chart,n=s.pointer,o=s.renderer,a=s.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&s.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(f?1e-4:.002)+")",h=t.tracker;h?h.attr({d:r}):t.graph&&(t.tracker=h=o.path(r).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.styledMode||h.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",(t=>{n?.onTrackerMouseOut(t)})),e.cursor&&!s.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",l))}))),M(this,"afterDrawTracker")}addPoint(t,e,i,r,s){let n,o,a=this.options,l=this.data,c=this.chart,h=this.xAxis,u=h&&h.hasNames&&h.names,d=a.data,p=this.xData;e=B(e,!0);let f={series:this};this.pointClass.prototype.applyOptions.apply(f,[t]);let m=f.x;if(o=p.length,this.requireSorting&&mm;)o--;this.updateParallelArrays(f,"splice",[o,0,0]),this.updateParallelArrays(f,o),u&&f.name&&(u[m]=f.name),d.splice(o,0,t),(n||this.processedData)&&(this.data.splice(o,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(f,"shift"),d.shift())),!1!==s&&M(this,"addPoint",{point:f}),this.isDirty=!0,this.isDirtyData=!0,e&&c.redraw(r)}removePoint(t,e,i){let r=this,s=r.data,n=s[t],o=r.points,a=r.chart,l=function(){o&&o.length===s.length&&o.splice(t,1),s.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(n||{series:r},"splice",[t,1]),n&&n.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&a.redraw()};u(i,a),e=B(e,!0),n?n.firePointEvent("remove",null,l):l()}remove(t,e,i,r){let s=this,n=s.chart;function o(){s.destroy(r),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(r),B(t,!0)&&n.redraw(e)}!1!==i?M(s,"remove",null,o):o()}update(t,e){M(this,"update",{options:t=C(t,this.userOptions)});let i,r,s=this,n=s.chart,o=s.userOptions,a=s.initialType||s.type,l=n.options.plotOptions,c=g[a].prototype,h=s.finishedAnimating&&{animation:!1},u={},d=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],p=t.type||o.type||n.options.chart.type,f=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((t=>s.hasOptionChanged(t))));p=p||a,f&&(d.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==t.visible&&d.push("area","graph"),s.parallelArrays.forEach((function(t){d.push(t+"Data")})),t.data&&(t.dataSorting&&E(s.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=R(o,{index:void 0===o.index?s.index:o.index,pointStart:l?.series?.pointStart??o.pointStart??s.xData?.[0]},!f&&{data:s.options.data},t,h),f&&t.data&&(t.data=s.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach((function(t){d[t]=s[t],delete s[t]}));let m=!1;if(g[p]){if(m=p!==s.type,s.remove(!1,!1,!1,!0),m)if(n.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(s,g[p].prototype);else{let t=Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents;for(r in c)s[r]=void 0;E(s,g[p].prototype),t?s.hcEvents=t:delete s.hcEvents}}else k(17,!0,n,{missingModuleFor:p});if(d.forEach((function(t){s[t]=d[t]})),s.init(n,t),f&&this.points)for(let t of(!1===(i=s.options).visible?(u.graphic=1,u.dataLabel=1):(this.hasMarkerChanged(i,o)&&(u.graphic=1),s.hasDataLabels?.()||(u.dataLabel=1)),this.points))t&&t.series&&(t.resolveColor(),Object.keys(u).length&&t.destroyElements(u),!1===i.showInLegend&&t.legendItem&&n.legend.destroyItem(t));s.initialType=a,n.linkSeries(),n.setSortedData(),m&&s.linkedSeries.length&&(s.isDirtyData=!0),M(this,"afterUpdate"),B(e,!0)&&n.redraw(!!f&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],r=e.options.plotOptions,s=this.userOptions[t],n=B(r?.[this.type]?.[t],r?.series?.[t]);return s&&!w(n)?i!==s:i!==B(n,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&M(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&M(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach((function(t){t.setState("",!0)}))}setState(t,e){let i=this,r=i.options,s=i.graph,n=r.inactiveOtherPoints,o=r.states,a=B(o[t||"normal"]&&o[t||"normal"].animation,i.chart.options.chart.animation),l=r.lineWidth,c=r.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(l=o[t].lineWidth||l+(o[t].lineWidthPlus||0),c=B(o[t].opacity,c)),s&&!s.dashstyle&&z(l))for(let t of[s,...this.zones.map((t=>t.graph))])t?.animate({"stroke-width":l},a);n||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},a)}))}e&&n&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))}setVisible(t,e){let i=this,r=i.chart,s=r.options.chart.ignoreHiddenSeries,n=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!n:t;let o=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((t=>{i[t]?.[o]()})),(r.hoverSeries===i||r.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&r.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&r.series.forEach((t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((e=>{e.setVisible(t,!1)})),s&&(r.isDirtyBox=!0),M(i,o),!1!==e&&r.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),M(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){s[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}return V.defaultOptions=o,V.types=a.seriesTypes,V.registerType=a.registerSeriesType,E(V.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:n,requireSorting:!0,sorted:!0}),a.series=V,V})),i(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n,o,a){var l;let{animObject:c,setAnimation:h}=t,{registerEventOptions:u}=e,{composed:d,marginNames:p}=i,{distribute:f}=n,{format:m}=o,{addEvent:g,createElement:y,css:_,defined:v,discardElement:x,find:b,fireEvent:w,isNumber:S,merge:C,pick:T,pushUnique:k,relativeLength:E,stableSort:A,syncTimeout:M}=a;class P{constructor(t,e){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),u(this,e),g(this.chart,"endResize",(function(){this.legend.positionCheckboxes()}))),g(this.chart,"render",(()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(t){let e=T(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=C(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=T(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(C(!0,this.options,t)),"events"in this.options&&u(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,T(e,!0)&&i.redraw(),w(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let{area:i,group:r,label:s,line:n,symbol:o}=t.legendItem||{};if(r?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:r={}}=this,a=r.color,{fillColor:l,fillOpacity:c,lineColor:h,marker:u}=t.options,d=t=>(!e&&(t.fill&&(t.fill=a),t.stroke&&(t.stroke=a)),t);s?.css(C(e?this.itemStyle:r)),n?.attr(d({stroke:h||t.color})),o&&o.attr(d(u&&o.isMarker?t.pointAttribs():{fill:t.color})),i?.attr(d({fill:l||t.color,"fill-opacity":l?1:c??.75}))}w(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:r=0}=t.legendItem||{},s=this.options,n=s.symbolPadding,o=!s.rtl,a=t.checkbox;if(e&&e.element){let s={translateX:o?i:this.legendWidth-i-2*n-4,translateY:r};e[v(e.translateY)?"animate":"attr"](s,void 0,(()=>{w(this,"afterPositionItem",{item:t})}))}a&&(a.x=i,a.y=r)}destroyItem(t){let e=t.checkbox,i=t.legendItem||{};for(let t of["group","label","line","symbol"])i[t]&&(i[t]=i[t].destroy());e&&x(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,r=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach((function(s){let n,o=s.checkbox;o&&(n=t+r+o.y+(this.scrollOffset||0)+3,_(o,{left:e.translateX+s.checkboxOffset+o.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n1.5*b?x.height:b))}layoutItem(t){let e=this.options,i=this.padding,r="horizontal"===e.layout,s=t.itemHeight,n=this.itemMarginBottom,o=this.itemMarginTop,a=r?T(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,h=t.legendItem||{};r&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=o+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),h.x=this.itemX,h.y=this.itemY,r?this.itemX+=c:(this.itemY+=o+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-i-(t.checkbox?0:a):c)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach((function(e){let i=e&&e.options;e&&T(i.showInLegend,!v(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))})),w(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let 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)}adjustMargins(t,e){let i=this.chart,r=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(n,o){n.test(s)&&!v(t[o])&&(i[p[o]]=Math.max(i[p[o]],i.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*r[o%2?"x":"y"]+T(r.margin,12)+e[o]+(i.titleOffset[o]||0)))}))}proximatePositions(){let t,e=this.chart,i=[],r="left"===this.options.align;for(let s of(this.allItems.forEach((function(t){let s,n,o,a,l=r;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(s=b(l?t.points:t.points.slice(0).reverse(),(function(t){return S(t.plotY)}))),n=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,o=t.visible?(s?s.plotY:t.yAxis.height)+(a-.3*n):a+t.yAxis.height,i.push({target:o,size:n,item:t}))}),this),f(i,e.plotHeight)))t=s.item.legendItem||{},S(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}render(){let t,e,i,r,s=this.chart,n=s.renderer,o=this.options,a=this.padding,l=this.getAllItems(),c=this.group,h=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=E(o.width,s.spacingBox.width-a),r=s.spacingBox.width-2*a-o.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,c||(this.group=c=n.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(c),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),A(l,((t,e)=>(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0))),o.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,h||(this.box=h=n.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(c)),s.styledMode||h.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),e>0&&i>0&&h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:e,height:i},h.strokeWidth())),c[t?"show":"hide"](),s.styledMode&&"none"===c.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),w(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,r=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?r+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(r-=e.titleOffset[2]),r!==t.y&&(t=C(t,{y:r})),e.hasRendered||(this.group.placed=!1),this.group.align(C(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e,i,r,s=this,n=this.chart,o=n.renderer,a=this.options,l=a.y,c="top"===a.verticalAlign,h=this.padding,u=a.maxHeight,d=a.navigation,p=T(d.animation,!0),f=d.arrowSize||12,m=this.pages,g=this.allItems,y=function(t){"number"==typeof t?b.attr({height:t}):b&&(s.clipRect=b.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=t?"rect("+h+"px,9999px,"+(h+t)+"px,0)":"auto")},_=function(t){return s[t]=o.circle(0,0,1.3*f).translate(f/2,f/2).add(x),n.styledMode||s[t].attr("fill","rgba(0,0,0,0.0001)"),s[t]},v=n.spacingBox.height+(c?-l:l)-h,x=this.nav,b=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(v/=2),u&&(v=Math.min(v,u)),m.length=0,t&&v>0&&t>v&&!1!==d.enabled?(this.clipHeight=e=Math.max(v-20-this.titleHeight-h,0),this.currentPage=T(this.currentPage,1),this.fullHeight=t,g.forEach(((t,s)=>{let n=(r=t.legendItem||{}).y||0,o=Math.round(r.label.getBBox().height),a=m.length;(!a||n-m[a-1]>e&&(i||n)!==m[a-1])&&(m.push(i||n),a++),r.pageIx=a-1,i&&((g[s-1].legendItem||{}).pageIx=a-1),s===g.length-1&&n+o-m[a-1]>e&&n>m[a-1]&&(m.push(n),r.pageIx=a),n!==i&&(i=n)})),b||(b=s.clipRect=o.clipRect(0,h-2,9999,0),s.contentGroup.clip(b)),y(e),x||(this.nav=x=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).add(x),_("upTracker").on("click",(function(){s.scroll(-1,p)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(x),this.down=o.symbol("triangle-down",0,0,f,f).add(x),_("downTracker").on("click",(function(){s.scroll(1,p)}))),s.scroll(0),t=v):x&&(y(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,r=this.pages,s=r.length,n=this.clipHeight,o=this.options.navigation,a=this.pager,l=this.padding,u=this.currentPage+t;u>s&&(u=s),u>0&&(void 0!==e&&h(e,i),this.nav.attr({translateX:l,translateY:n+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),a.attr({text:u+"/"+s}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:u===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i.styledMode||(this.up.attr({fill:1===u?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===s?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:u===s?"default":"pointer"})),this.scrollOffset=-r[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),M((()=>{w(this,"afterScroll",{currentPage:u})}),c(T(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let n=this,o=t.legendItem||{},a=n.chart.renderer.boxWrapper,l=t instanceof s,c=t instanceof r,h="highcharts-legend-"+(l?"point":"series")+"-active",u=n.chart.styledMode,d=i?[e,o.symbol]:[o.group],p=e=>{n.allItems.forEach((i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach((t=>{t.setState(e,!l)}))}))};for(let i of d)i&&i.on("mouseover",(function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&a.addClass(h),u||e.css(n.options.itemHoverStyle)})).on("mouseout",(function(){n.chart.styledMode||e.css(C(t.visible?n.itemStyle:n.itemHiddenStyle)),p(""),a.removeClass(h),t.setState()})).on("click",(function(e){a.removeClass(h),w(n,"itemClick",{browserEvent:e,legendItem:t},(function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")})),l?t.firePointEvent("legendItemClick",{browserEvent:e}):c&&w(t,"legendItemClick",{browserEvent:e})}))}createCheckboxForItem(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),g(t.checkbox,"click",(function(e){let i=e.target;w(t.series||t,"checkboxClick",{checked:i.checked,item:t},(function(){t.select()}))}))}}return(l=P||(P={})).compose=function(t){k(d,"Core.Legend")&&g(t,"beforeMargins",(function(){this.legend=new l(this,this.options.legend)}))},P})),i(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Axis/Tick.js"]],(function(t,e,i,r,s,n,o,a,l,c,h,u,d,p){let{animate:f,animObject:m,setAnimation:g}=t,{defaultOptions:y,defaultTime:_}=i,{numberFormat:v}=r,{registerEventOptions:x}=s,{charts:b,doc:w,marginNames:S,svg:C,win:T}=n,{seriesTypes:k}=l,{addEvent:E,attr:A,createElement:M,css:P,defined:I,diffObjects:L,discardElement:D,erase:z,error:O,extend:R,find:N,fireEvent:B,getStyle:F,isArray:j,isNumber:U,isObject:V,isString:q,merge:G,objectEach:$,pick:H,pInt:W,relativeLength:X,removeEvent:Z,splat:Y,syncTimeout:K,uniqueKey:Q}=u;class J{static chart(t,e,i){return new J(t,e,i)}constructor(t,e,i){this.sharedClips={};let r=[...arguments];(q(t)||t.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:H(t.zoomType,e.type),key:H(t.zoomKey,e.key),pinchType:H(t.pinchType,e.pinchType),singleTouch:H(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:G(e.resetButton,t.resetZoomButton)}}init(t,e){B(this,"init",{args:arguments},(function(){let i=G(y,t),r=i.chart;this.userOptions=R({},t),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):n.time,this.numberFormatter=r.numberFormatter||v,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=b.length,b.push(this),n.chartCount++,x(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()}))}initSeries(t){let e=this.options.chart,i=t.type||e.type,r=k[i];r||O(17,!0,this,{missingModuleFor:i});let s=new r;return"function"==typeof s.init&&s.init(this,t),s}setSortedData(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))}getSeriesOrderByLinks(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))}orderItems(t,e=0){let i=this[t],r=this.options[t]=Y(this.options[t]).slice(),s=this.userOptions[t]=this.userOptions[t]?Y(this.userOptions[t]).slice():[];if(this.hasRendered&&(r.splice(e),s.splice(e)),i)for(let t=e,n=i.length;t=Math.max(l+n,t.pos)&&e<=Math.min(l+n+u.width,t.pos+t.len)||(f.isInsidePlot=!1)}if(!i.ignoreY&&f.isInsidePlot){let t=!r&&i.axis&&!i.axis.isXAxis&&i.axis||h&&(r?h.xAxis:h.yAxis)||{pos:o,len:1/0},e=i.paneCoordinates?t.pos+p:o+p;e>=Math.max(c+o,t.pos)&&e<=Math.min(c+o+u.height,t.pos+t.len)||(f.isInsidePlot=!1)}return B(this,"afterIsInsidePlot",f),f.isInsidePlot}redraw(t){B(this,"beforeRedraw");let e,i,r,s,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],o=this.series,a=this.pointer,l=this.legend,c=this.userOptions.legend,h=this.renderer,u=h.isHidden(),d=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(h.rootFontSize=h.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),g(!!this.hasRendered&&t,this),u&&this.temporaryDisplay(),this.layOutTitles(!1),r=o.length;r--;)if(((s=o[r]).options.stacking||s.options.centerInCategory)&&(i=!0,s.isDirty)){e=!0;break}if(e)for(r=o.length;r--;)(s=o[r]).options.stacking&&(s.isDirty=!0);o.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),t.isDirtyData&&B(t,"updatedData")})),f&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),n.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),n.forEach((function(t){t.isDirty&&(p=!0)})),n.forEach((function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,d.push((function(){B(t,"afterSetExtremes",R(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(p||i)&&t.redraw()})),p&&this.drawChartBox(),B(this,"predraw"),o.forEach((function(t){(p||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),a&&a.reset(!0),h.draw(),B(this,"redraw"),B(this,"render"),u&&this.temporaryDisplay(!0),d.forEach((function(t){t.call()}))}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let r=N(this.axes,i)||N(this.series,i);for(let t=0;!r&&t(e.getPointsCollection().forEach((e=>{H(e.selectedStaging,e.selected)&&t.push(e)})),t)),[])}getSelectedSeries(){return this.series.filter((function(t){return t.selected}))}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,r=this.options[t]=G(this.options[t],e),s=this[t];s&&e&&(this[t]=s=s.destroy()),r&&!s&&((s=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).add()).update=function(e,r){i.applyDescription(t,e),i.layOutTitles(r)},this.styledMode||s.css(R("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),this[t]=s)}layOutTitles(t=!0){let e=[0,0,0],i=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach((function(t){let s=this[t],n=this.options[t],o=n.verticalAlign||"top",a="title"===t?"top"===o?-3:0:"top"===o?e[0]+2:0;if(s){s.css({width:(n.width||r.width+(n.widthAdjust||0))+"px"});let t=i.fontMetrics(s).b,l=Math.round(s.getBBox(n.useHTML).height);s.align(R({y:"bottom"===o?t:a+t,height:l},n),!1,"spacingBox"),n.floating||("top"===o?e[0]=Math.ceil(e[0]+l):"bottom"===o&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);let s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,B(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:F(this.renderTo,"width",!0)||0,height:F(this.renderTo,"height",!0)||0}}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,r=this.getContainerBox();this.chartWidth=Math.max(0,e||r.width||600),this.chartHeight=Math.max(0,X(i,this.chartWidth)||(r.height>1?r.height:400)),this.containerBox=r}temporaryDisplay(t){let e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(P(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(w.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(w.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,w.body.appendChild(i)),("none"===F(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),P(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==w.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,r="data-highcharts-chart",s=Q(),a=this.renderTo;a||(this.renderTo=a=i.renderTo),q(a)&&(this.renderTo=a=w.getElementById(a)),a||O(13,!0,this);let l=W(A(a,r));U(l)&&b[l]&&b[l].hasRendered&&b[l].destroy(),A(a,r,this.index),a.innerHTML=d.emptyHTML,i.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize();let h=this.chartHeight,u=this.chartWidth;P(a,{overflow:"hidden",pointerEvents:n.isChrome?"fill":"auto"}),this.styledMode||(t=R({position:"relative",overflow:"hidden",width:u+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{}));let p=M("div",{id:s},t,a);this.container=p,this.getChartSize(),u===this.chartWidth||(u=this.chartWidth,this.styledMode||P(p,{width:H(i.style?.width,u+"px")})),this.containerBox=this.getContainerBox(),this._cursor=p.style.cursor;let f=i.renderer||!C?o.getRendererType(i.renderer):c;if(this.renderer=new f(p,u,h,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),g(void 0,this),this.setClassName(i.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:r}=this;this.resetMargins(),r[0]&&!I(i[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+e[0])),r[2]&&!I(i[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),B(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,r=t.margin,s=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),S.forEach((function(i,s){I(r[s])||(t[i]+=e[s])})),t.setChartSize()}getOptions(){return L(this.userOptions,y)}reflow(t){let e=this,i=e.containerBox,r=e.getContainerBox();delete e.pointer?.chartPosition,!e.isPrinting&&!e.isResizing&&i&&r.width&&((r.width!==i.width||r.height!==i.height)&&(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=K((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerBox=r)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=E(T,"resize",e);E(this,"destroy",t)}}setSize(t,e,i){let r=this,s=r.renderer;r.isResizing+=1,g(i,r);let n=s.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==t&&(r.options.chart.width=t),void 0!==e&&(r.options.chart.height=e),r.getChartSize();let{chartWidth:o,chartHeight:a,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=r;(r.isDirtyBox||o!==r.oldChartWidth||a!==r.oldChartHeight)&&(r.styledMode||(n?f:P)(r.container,{width:`${o+l}px`,height:`${a+c}px`},n),r.setChartSize(!0),s.setSize(o,a,n),r.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=void 0,B(r,"resize"),setTimeout((()=>{r&&B(r,"endResize")}),m(n).duration)),r.isResizing-=1}setChartSize(t){let e,i,r,s,{chartHeight:n,chartWidth:o,inverted:a,spacing:l,renderer:c}=this,h=this.clipOffset,u=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(o-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(n-i-this.marginBottom)),this.plotSizeX=a?s:r,this.plotSizeY=a?r:s,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:o-l[3]-l[1],height:n-l[0]-l[2]},this.plotBox=c.plotBox={x:e,y:i,width:r,height:s},h&&(this.clipBox={x:u(h[3]),y:u(h[0]),width:u(this.plotSizeX-h[1]-h[3]),height:u(this.plotSizeY-h[0]-h[2])}),t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),c.alignElements()),B(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){B(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,r=i/2;["margin","spacing"].forEach((function(i){let r=e[i],s=V(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((function(r,n){t[i][n]=H(e[i+r],s[n])}))})),S.forEach((function(e,i){t[e]=H(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[r,r,r,r],t.plotBorderWidth=i}drawChartBox(){let t,e,i,r=this.options.chart,s=this.renderer,n=this.chartWidth,o=this.chartHeight,a=this.styledMode,l=this.plotBGImage,c=r.backgroundColor,h=r.plotBackgroundColor,u=r.plotBackgroundImage,d=this.plotLeft,p=this.plotTop,f=this.plotWidth,m=this.plotHeight,g=this.plotBox,y=this.clipRect,_=this.clipBox,v=this.chartBackground,x=this.plotBackground,b=this.plotBorder,w="animate";v||(this.chartBackground=v=s.rect().addClass("highcharts-background").add(),w="attr"),a?t=e=v.strokeWidth():(e=(t=r.borderWidth||0)+(r.shadow?8:0),i={fill:c||"none"},(t||v["stroke-width"])&&(i.stroke=r.borderColor,i["stroke-width"]=t),v.attr(i).shadow(r.shadow)),v[w]({x:e/2,y:e/2,width:n-e-t%2,height:o-e-t%2,r:r.borderRadius}),w="animate",x||(w="attr",this.plotBackground=x=s.rect().addClass("highcharts-plot-background").add()),x[w](g),!a&&(x.attr({fill:h||"none"}).shadow(r.plotShadow),u&&(l?(u!==l.attr("href")&&l.attr("href",u),l.animate(g)):this.plotBGImage=s.image(u,d,p,f,m).add())),y?y.animate({width:_.width,height:_.height}):this.clipRect=s.clipRect(_),w="animate",b||(w="attr",this.plotBorder=b=s.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||b.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),b[w](b.crisp({x:d,y:p,width:f,height:m},-b.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,r=this,s=r.options.chart,n=r.options.series;["inverted","angular","polar"].forEach((function(o){for(e=k[s.type],i=s[o]||e&&e.prototype[o],t=n&&n.length;!i&&t--;)(e=k[n[t].type])&&e.prototype[o]&&(i=!0);r[o]=i}))}linkSeries(t){let e=this,i=e.series;i.forEach((function(t){t.linkedSeries.length=0})),i.forEach((function(t){let{linkedTo:i}=t.options;if(q(i)){let r;(r=":previous"===i?e.series[t.index-1]:e.get(i))&&r.linkedParent!==t&&(r.linkedSeries.push(t),t.linkedParent=r,r.enabledDataSorting&&t.setDataSortingOptions(),t.visible=H(t.options.visible,r.options.visible,t.visible))}})),B(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach((function(t){t.translate(),t.render()}))}render(){let t,e=this.axes,i=this.colorAxis,r=this.renderer,s=this.options.chart.axisLayoutRuns||2,n=t=>{t.forEach((t=>{t.visible&&t.render()}))},o=0,a=!0,l=0;for(let t of(this.setTitle(),B(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:i}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&i.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){o=e.tickLength,t.createGroups();let r=new p(t,0,"",!0),s=r.createLabel("x",i);if(r.destroy(),s&&H(i.reserveSpace,!U(e.crossing))&&(o=s.getBBox().height+i.distance+Math.max(e.offset||0,0)),o){s?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(a||t||s>1)&&l(l?1:1.1),t=r/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?n(e):i&&i.length&&n(i),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=G(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){i.href&&(T.location.href=i.href)})).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,r=e.series,s=e.container,o=s&&s.parentNode;for(B(e,"destroy"),e.renderer.forExport?z(b,e):b[e.index]=void 0,n.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Z(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=r.length;t--;)r[t]=r[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((function(t){let i=e[t];i&&i.destroy&&(e[t]=i.destroy())})),s&&(s.innerHTML=d.emptyHTML,Z(s),o&&D(s)),$(e,(function(t,i){delete e[i]}))}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes();let i=j(e.series)?e.series:[];e.series=[],i.forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSortedData(),B(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),B(this,"load"),B(this,"render"),I(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"})))}pan(t,e){let i=this,r="object"==typeof e?e:{enabled:e,type:"x"},s=r.type,n=s&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[s]].filter((t=>t.options.panningEnabled&&!t.options.isInternal)),o=i.options.chart;o?.panning&&(o.panning=r),B(this,"pan",{originalEvent:t},(()=>{i.transform({axes:n,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),P(i.container,{cursor:"move"})}))}transform(t){let e,i,{axes:r=this.axes,event:s,from:n={},reset:o,selection:a,to:l={},trigger:c}=t,{inverted:h}=this,u=!1;for(let t of(this.hoverPoints?.forEach((t=>t.setState())),r)){let{horiz:r,len:d,minPointOffset:p=0,options:f,reversed:m}=t,g=r?"width":"height",y=r?"x":"y",_=H(l[g],t.len),v=H(n[g],t.len),x=10>Math.abs(_)?1:_/v,b=(n[y]||0)+v/2-t.pos,w=b-((l[y]??t.pos)+_/2-t.pos)/x,S=m&&!h||!m&&h?-1:1;if(!o&&(b<0||b>t.len))continue;let C=t.toValue(w,!0)+(a?0:p*S),T=t.toValue(w+d/x,!0)-(a?0:p*S||0),k=t.allExtremes;if(C>T&&([C,T]=[T,C]),1===x&&!o&&"yAxis"===t.coll&&!k){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).yData,!0);k??(k={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),U(t.dataMin)&&U(t.dataMax)&&(k.dataMin=Math.min(t.dataMin,k.dataMin),k.dataMax=Math.max(t.dataMax,k.dataMax))}t.allExtremes=k}let{dataMin:E,dataMax:A,min:M,max:P}=R(t.getExtremes(),k||{}),L=E??f.min,D=A??f.max,z=T-C,O=t.categories?0:Math.min(z,D-L),N=L-O*(I(f.min)?0:f.minPadding),B=D+O*(I(f.max)?0:f.maxPadding),F=t.allowZoomOutside||1===x||"zoom"!==c&&x>1,j=Math.min(f.min??N,N,F?M:N),V=Math.max(f.max??B,B,F?P:B);(!t.isOrdinal||1!==x||o)&&(C=1&&(T=C+z)),T>V&&(T=V,x>=1&&(C=T-z)),(o||t.series.length&&(C!==M||T!==P)&&C>=j&&T<=V)&&(a?a[t.coll].push({axis:t,min:C,max:T}):(t.isPanning="zoom"!==c,t.isPanning&&(i=!0),t.setExtremes(o?void 0:C,o?void 0:T,!1,!1,{move:w,trigger:c,scale:x}),!o&&(C>j||T{delete t.selection,t.trigger="zoom",this.transform(t)})):(!e||i||this.resetZoomButton?!e&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===c&&(this.options.chart.animation??this.pointCount<100)))),u}}return R(J.prototype,{callbacks:[],collectionsWithInit:{xAxis:[J.prototype.addAxis,[!0]],yAxis:[J.prototype.addAxis,[!1]],series:[J.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),J})),i(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r){let{stop:s}=t,{composed:n}=e,{addEvent:o,createElement:a,css:l,defined:c,merge:h,pushUnique:u}=r;function d(){let t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new f(this)),t?.applyFixed()}function p(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class f{static compose(t,e,i){u(n,this.compose)&&(o(t,"afterInit",p),o(e,"afterSetChartSize",(t=>this.afterSetSize(t.target,t))),o(e,"render",d),o(i,"show",p))}static afterSetSize(t,e){let i,r,s,{minWidth:n,minHeight:o}=t.options.chart.scrollablePlotArea||{},{clipBox:a,plotBox:l,inverted:u,renderer:d}=t;if(!d.forExport&&(n?(t.scrollablePixelsX=i=Math.max(0,n-t.chartWidth),i&&(t.scrollablePlotBox=h(t.plotBox),l.width=t.plotWidth+=i,a[u?"height":"width"]+=i,s=!0)):o&&(t.scrollablePixelsY=r=Math.max(0,o-t.chartHeight),c(r)&&(t.scrollablePlotBox=h(t.plotBox),l.height=t.plotHeight+=r,a[u?"width":"height"]+=r,s=!1)),c(s)&&!e.skipAxes))for(let e of t.axes)e.horiz===s&&(e.setAxisSize(),e.setAxisTranslation())}constructor(t){let e,r=t.options.chart,s=i.getRendererType(),n=r.scrollablePlotArea||{},c=this.moveFixedElements.bind(this),h={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(h.overflowX="auto"),t.scrollablePixelsY&&(h.overflowY="auto"),this.chart=t;let u=this.parentDiv=a("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),d=this.scrollingContainer=a("div",{className:"highcharts-scrolling"},h,u),p=this.innerContainer=a("div",{className:"highcharts-inner-container"},void 0,d),f=this.fixedDiv=a("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(r.style?.zIndex||0)+2,top:0},void 0,!0),m=this.fixedRenderer=new s(f,t.chartWidth,t.chartHeight,r.style);this.mask=m.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":n.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(f,d),l(t.renderTo,{overflow:"visible"}),o(t,"afterShowResetZoom",c),o(t,"afterApplyDrilldown",c),o(t,"afterLayOutTitles",c),o(d,"scroll",(()=>{let{pointer:i,hoverPoint:r}=t;i&&(delete i.chartPosition,r&&(e=r),i.runPointActions(void 0,e,!0))})),p.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:r}=this,{axisOffset:n,chartWidth:o,chartHeight:a,container:h,plotHeight:u,plotLeft:d,plotTop:p,plotWidth:f,scrollablePixelsX:m=0,scrollablePixelsY:g=0}=t,{scrollPositionX:y=0,scrollPositionY:_=0}=t.options.chart.scrollablePlotArea||{},v=o+m,x=a+g;e.setSize(o,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),s(t.container),l(h,{width:`${v}px`,height:`${x}px`}),t.renderer.boxWrapper.attr({width:v,height:x,viewBox:[0,0,v,x].join(" ")}),t.chartBackground?.attr({width:v,height:x}),l(r,{width:`${o}px`,height:`${a}px`}),c(i)||(r.scrollLeft=m*y,r.scrollTop=g*_);let b=p-n[0]-1,w=d-n[3]-1,S=p+u+n[2]+1,C=d+f+n[1]+1,T=d+f-m,k=p+u-g,E=[["M",0,0]];m?E=[["M",0,b],["L",d-1,b],["L",d-1,S],["L",0,S],["Z"],["M",T,b],["L",o,b],["L",o,S],["L",T,S],["Z"]]:g&&(E=[["M",w,0],["L",w,p-1],["L",C,p-1],["L",C,0],["Z"],["M",w,k],["L",w,a],["L",C,a],["L",C,k],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:E})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:r,scrollablePixelsY:s}=this.chart,n=this.fixedRenderer,o=f.fixedSelectors;for(let a of(r&&!i?t=".highcharts-yaxis":r&&i||s&&!i?t=".highcharts-xaxis":s&&i&&(t=".highcharts-yaxis"),t&&o.push(`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`),o))[].forEach.call(e.querySelectorAll(a),(t=>{(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}}return f.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],f})),i(e,"Core/Axis/Stacking/StackItem.js",[e["Core/Templating.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{format:r}=t,{series:s}=e,{destroyObjectProperties:n,fireEvent:o,isNumber:a,pick:l}=i;return class{constructor(t,e,i,r,s){let n=t.chart.inverted,o=t.reversed;this.axis=t;let a=this.isNegative=!!i!=!!o;this.options=e=e||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(n?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?a?"right":"left":"center")}destroy(){n(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,s=i.format,n=s?r(s,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:n,visibility:"hidden"});else{this.label=e.renderer.label(n,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let r={r:i.borderRadius||0,text:n,padding:l(i.padding,5),visibility:"hidden"};e.styledMode||(r.fill=i.backgroundColor,r.stroke=i.borderColor,r["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(r),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,o(this,"afterRender")}setOffset(t,e,i,r,n,c){let{alignOptions:h,axis:u,label:d,options:p,textAlign:f}=this,m=u.chart,g=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:r,defaultX:n,xAxis:c}),{verticalAlign:y}=h;if(d&&g){let t,e=d.getBBox(void 0,0),i=d.padding,r="justify"===l(p.overflow,"justify");h.x=p.x||0,h.y=p.y||0;let{x:n,y:o}=this.adjustStackPosition({labelBox:e,verticalAlign:y,textAlign:f});g.x-=n,g.y-=o,d.align(h,!1,g),(t=m.isInsidePlot(d.alignAttr.x+h.x+n,d.alignAttr.y+h.y+o))||(r=!1),r&&s.prototype.justifyDataLabel.call(u,d,h,d.alignAttr,e,g),d.attr({x:d.alignAttr.x,y:d.alignAttr.y,rotation:p.rotation,rotationOriginX:e.width*{left:0,center:.5,right:1}[p.textAlign||"center"],rotationOriginY:e.height/2}),l(!r&&p.crop,!0)&&(t=a(d.x)&&a(d.y)&&m.isInsidePlot(d.x-i+(d.width||0),d.y)&&m.isInsidePlot(d.x+i,d.y)),d[t?"show":"hide"]()}o(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){let r={bottom:0,middle:1,top:2,right:1,center:0,left:-1},s=r[e],n=r[i];return{x:t.width/2+t.width/2*n,y:t.height/2*s}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:r,defaultX:s,xOffset:n,width:o,boxBottom:c}=t,h=e.stacking.usePercentage?100:l(r,this.total,0),u=e.toPixels(h),d=t.xAxis||i.xAxis[0],p=l(s,d.translate(this.x))+n,f=Math.abs(u-e.toPixels(c||a(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),m=i.inverted,g=this.isNegative;return m?{x:(g?u:u-f)-i.plotLeft,y:d.height-p-o+d.top-i.plotTop,width:f,height:o}:{x:p+d.transB-i.plotLeft,y:(g?u-f:u)-i.plotTop,width:o,height:f}}}})),i(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s){var n;let{getDeferredAnimation:o}=t,{series:{prototype:a}}=i,{addEvent:l,correctFloat:c,defined:h,destroyObjectProperties:u,fireEvent:d,isArray:p,isNumber:f,objectEach:m,pick:g}=s;function y(){let t=this.inverted;this.axes.forEach((t=>{t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),this.series.forEach((e=>{let i=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,g(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))}))}function _(){let t=this.stacking;if(t){let e=t.stacks;m(e,((t,i)=>{u(t),delete e[i]})),t.stackTotalGroup?.destroy()}}function v(){this.stacking||(this.stacking=new T(this))}function x(t,e,i,r){return!h(t)||t.x!==e||r&&t.stackKey!==r?t={x:e,index:0,key:r,stackKey:r}:t.index++,t.key=[i,e,t.index].join(","),t}function b(){let t,e=this,i=e.yAxis,r=e.stackKey||"",s=i.stacking.stacks,n=e.processedXData,o=e.options.stacking,a=e[o+"Stacker"];a&&[r,"-"+r].forEach((i=>{let r,o,l,c=n.length;for(;c--;)r=n[c],t=e.getStackIndicator(t,r,e.index,i),o=s[i]?.[r],(l=o?.points[t.key||""])&&a.call(e,l,o,c)}))}function w(t,e,i){let r=e.total?100/e.total:0;t[0]=c(t[0]*r),t[1]=c(t[1]*r),this.stackedYData[i]=t[1]}function S(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?a.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function C(t,e){let i,s,n,o,a,l,u,d,f,m=e||this.options.stacking;if(!m||!this.reserveSpace()||({group:"xAxis"}[m]||"yAxis")!==t.coll)return;let y=this.processedXData,_=this.processedYData,v=[],x=_.length,b=this.options,w=b.threshold||0,S=b.startFromThreshold?w:0,C=b.stack,T=e?`${this.type},${m}`:this.stackKey||"",k="-"+T,E=this.negStacks,A=t.stacking,M=A.stacks,P=A.oldStacks;for(A.stacksTouched+=1,u=0;u0&&!1===this.singleStacks&&(n.points[l][0]=n.points[this.index+","+d+",0"][0])):(delete n.points[l],delete n.points[this.index]);let e=n.total||0;"percent"===m?(o=s?T:k,e=E&&M[o]?.[d]?(o=M[o][d]).total=Math.max(o.total||0,e)+Math.abs(f)||0:c(e+(Math.abs(f)||0))):"group"===m?(p(f)&&(f=f[0]),null!==f&&e++):e=c(e+(f||0)),n.cumulative="group"===m?(e||1)-1:c(g(n.cumulative,S)+(f||0)),n.total=e,null!==f&&(n.points[l].push(n.cumulative),v[u]=n.cumulative,n.hasValidPoints=!0)}"percent"===m&&(A.usePercentage=!0),"group"!==m&&(this.stackedYData=v),A.oldStacks={}}class T{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,r=i.series,s="xAxis"===i.coll,n=i.options.reversedStacks,o=r.length;for(this.resetStacks(),this.usePercentage=!1,e=o;e--;)t=r[n?e:o-e-1],s&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!s)for(e=0;e{m(t,(t=>{t.cumulative=t.total}))})))}resetStacks(){m(this.stacks,(t=>{m(t,((e,i)=>{f(e.touched)&&e.touched{m(t,(t=>{t.render(n)}))})),n.animate({opacity:1},s)}}return(n||(n={})).compose=function(t,e,i){let r=e.prototype,s=i.prototype;r.getStacks||(l(t,"init",v),l(t,"destroy",_),r.getStacks=y,s.getStackIndicator=x,s.modifyStacks=b,s.percentStacker=w,s.setGroupedPoints=S,s.setStackedPoints=C)},n})),i(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{defined:r,merge:s,isObject:n}=i;class o extends t{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach(((r,o)=>{let a,l=r.graph,c=l?"animate":"attr",h=r.dashStyle||t.dashStyle;l?(l.endX=this.preventGraphAnimation?null:e.xMap,l.animate({d:e})):e.length&&(r.graph=l=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&r.className||"")).attr({zIndex:1}).add(this.group)),l&&!i&&(a={stroke:!o&&t.lineColor||r.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},h?a.dashstyle=h:"square"!==t.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),l[c](a).shadow(o<2&&t.shadow&&s({filterUnits:"userSpaceOnUse"},n(t.shadow)?t.shadow:{}))),l&&(l.startX=e.xMap,l.isArea=e.isArea)}))}getGraphPath(t,e,i){let s,n=this,o=n.options,a=[],l=[],c=o.step,h=(t=t||n.points).reversed;return h&&t.reverse(),(c={right:1,center:2}[c]||c&&3)&&h&&(c=4-c),(t=this.getValidPoints(t,!1,!(o.connectNulls&&!e&&!i))).forEach((function(h,u){let d,p=h.plotX,f=h.plotY,m=t[u-1],g=h.isNull||"number"!=typeof f;(h.leftCliff||m&&m.rightCliff)&&!i&&(s=!0),g&&!r(e)&&u>0?s=!o.connectNulls:g&&!e?s=!0:(0===u||s?d=[["M",h.plotX,h.plotY]]:n.getPointSpline?d=[n.getPointSpline(t,h,u)]:c?(d=1===c?[["L",m.plotX,f]]:2===c?[["L",(m.plotX+p)/2,m.plotY],["L",(m.plotX+p)/2,f]]:[["L",p,m.plotY]]).push(["L",p,f]):d=[["L",p,f]],l.push(h.x),c&&(l.push(h.x),2===c&&l.push(h.x)),a.push.apply(a,d),s=!1)})),a.xMap=l,n.graphPath=a,a}}return o.defaultOptions=s(t.defaultOptions,{legendSymbol:"lineMarker"}),e.registerSeriesType("line",o),o})),i(e,"Series/Area/AreaSeriesDefaults.js",[],(function(){return{threshold:0,legendSymbol:"areaMarker"}})),i(e,"Series/Area/AreaSeries.js",[e["Series/Area/AreaSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{seriesTypes:{line:r}}=e,{extend:s,merge:n,objectEach:o,pick:a}=i;class l extends r{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach(((i,r)=>{let s={},n=i.fillColor||e.fillColor,o=i.area,a=o?"animate":"attr";o?(o.endX=this.preventGraphAnimation?null:t.xMap,o.animate({d:t})):(s.zIndex=0,(o=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(s.fill=n||i.color||this.color,s["fill-opacity"]=n?1:e.fillOpacity??.75,o.css({pointerEvents:this.stickyTracking?"none":"auto"})),o[a](s),o.startX=t.xMap,o.shiftUnit=e.step?2:1}))}getGraphPath(t){let e,i,s,n=r.prototype.getGraphPath,o=this.options,l=o.stacking,c=this.yAxis,h=[],u=[],d=this.index,p=c.stacking.stacks[this.stackKey],f=o.threshold,m=Math.round(c.getThreshold(o.threshold)),g=a(o.connectNulls,"percent"===l),y=function(i,r,s){let n,o,a=t[i],g=l&&p[a.x].points[d],y=a[s+"Null"]||0,_=a[s+"Cliff"]||0,v=!0;_||y?(n=(y?g[0]:g[1])+_,o=g[0]+_,v=!!y):!l&&t[r]&&t[r].isNull&&(n=o=f),void 0!==n&&(u.push({plotX:e,plotY:null===n?m:c.getThreshold(n),isNull:v,isCliff:!0}),h.push({plotX:e,plotY:null===o?m:c.getThreshold(o),doCurve:!1}))};t=t||this.points,l&&(t=this.getStackPoints(t));for(let r=0,n=t.length;r1&&l&&u.some((t=>t.isCliff))&&(b.hasStackedCliffs=w.hasStackedCliffs=!0),b.xMap=_.xMap,this.areaPath=b,w}getStackPoints(t){let e=this,i=[],r=[],s=this.xAxis,n=this.yAxis,l=n.stacking.stacks[this.stackKey],c={},h=n.series,u=h.length,d=n.options.reversedStacks?1:-1,p=h.indexOf(e);if(t=t||this.points,this.options.stacking){for(let e=0;et.visible));r.forEach((function(t,o){let m,g,y=0;if(c[t]&&!c[t].isNull)i.push(c[t]),[-1,1].forEach((function(i){let s=1===i?"rightNull":"leftNull",n=l[r[o+i]],a=0;if(n){let i=p;for(;i>=0&&i=0&&ei&&n>c?(n=Math.max(i,c),a=2*c-n):nd&&a>c?(a=Math.max(d,c),n=2*c-a):a1){let s=this.xAxis.series.filter((t=>t.visible)).map((t=>t.index)),n=0,o=0;v(this.xAxis.stacking?.stacks,(t=>{if("number"==typeof i.x){let e=t[i.x.toString()];if(e&&m(e.points[this.index])){let t=Object.keys(e.points).filter((t=>!t.match(",")&&e.points[t]&&e.points[t].length>1)).map(parseFloat).filter((t=>-1!==s.indexOf(t))).sort(((t,e)=>e-t));n=t.indexOf(this.index),o=t.length}}})),n=this.xAxis.reversed?o-1-n:n;let a=(o-1)*r.paddedWidth+e;t=(i.plotX||0)+a/2-e-n*r.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,r=t.dense=t.closestPointRange*t.xAxis.transA<2,n=t.borderWidth=_(i.borderWidth,r?0:1),o=t.xAxis,a=t.yAxis,l=i.threshold,c=_(i.minPointLength,5),u=t.getColumnMetrics(),p=u.width,m=t.pointXOffset=u.offset,y=t.dataMin,v=t.dataMax,x=t.translatedThreshold=a.getThreshold(l),b=t.barW=Math.max(p,1+2*n);i.pointPadding&&(b=Math.ceil(b)),s.prototype.translate.apply(t),t.points.forEach((function(r){let s,n=_(r.yBottom,x),f=999+Math.abs(n),w=r.plotX||0,S=h(r.plotY,-f,a.len+f),C=Math.min(S,n),T=Math.max(S,n)-C,k=p,E=w+m,A=b;c&&Math.abs(T)c?n-c:x-(s?c:0)),d(r.options.pointWidth)&&(E-=Math.round(((k=A=Math.ceil(r.options.pointWidth))-p)/2)),i.centerInCategory&&!i.stacking&&(E=t.adjustForMissingColumns(E,k,r,u)),r.barX=E,r.pointWidth=k,r.tooltipPos=e.inverted?[h(a.len+a.pos-e.plotLeft-S,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-E-A/2,T]:[o.left-e.plotLeft+E+A/2,h(S+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),T],r.shapeType=t.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=t.crispCol(E,r.isNull?x:C,A,r.isNull?0:T)})),f(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i,r,s,n=this.options,o=this.pointAttrToOptions||{},a=o.stroke||"borderColor",c=o["stroke-width"]||"borderWidth",h=t&&t.color||this.color,u=t&&t[a]||n[a]||h,d=t&&t.options.dashStyle||n.dashStyle,p=t&&t[c]||n[c]||this[c]||0,f=_(t&&t.opacity,n.opacity,1);t&&this.zones.length&&(r=t.getZone(),h=t.options.color||r&&(r.color||t.nonZonedColor)||this.color,r&&(u=r.borderColor||u,d=r.dashStyle||d,p=r.borderWidth||p)),e&&t&&(s=(i=y(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,h=i.color||void 0!==s&&l(h).brighten(i.brightness).get()||h,u=i[a]||u,p=i[c]||p,d=i.dashStyle||d,f=_(i.opacity,f));let m={fill:h,stroke:u,"stroke-width":p,opacity:f};return d&&(m.dashstyle=d),m}drawPoints(t=this.points){let e,i=this,r=this.chart,s=i.options,n=r.renderer,o=s.animationLimit||250;t.forEach((function(t){let a=t.plotY,l=t.graphic,c=!!l,h=l&&r.pointCountt?.enabled))}function i(t,e,i,r,s){let{chart:n,enabledDataSorting:l}=this,c=this.isCartesian&&n.inverted,h=t.plotX,d=t.plotY,f=i.rotation||0,m=o(h)&&o(d)&&n.isInsidePlot(h,Math.round(d),{inverted:c,paneCoordinates:!0,series:this}),g=0===f&&"justify"===p(i.overflow,l?"none":"justify"),y=this.visible&&!1!==t.visible&&o(h)&&(t.series.forceDL||l&&!g||m||p(i.inside,!!this.options.stacking)&&r&&n.isInsidePlot(h,c?r.x+1:r.y+r.height-1,{inverted:c,paneCoordinates:!0,series:this})),_=t.pos();if(y&&_){var v;let o=e.getBBox(),h=e.getBBox(void 0,0),d={right:1,center:.5}[i.align||0]||0,x={bottom:1,middle:.5}[i.verticalAlign||0]||0;if(r=a({x:_[0],y:Math.round(_[1]),width:0,height:0},r||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(r[c?"x":"y"]=0,r[c?"width":"height"]=this.yAxis?.len||0),a(i,{width:o.width,height:o.height}),v=r,l&&this.xAxis&&!g&&this.setDataLabelStartPos(t,e,s,m,v),e.align(u(i,{width:h.width,height:h.height}),!1,r,!1),e.alignAttr.x+=d*(h.width-o.width),e.alignAttr.y+=x*(h.height-o.height),e[e.placed?"animate":"attr"]({x:e.alignAttr.x+(o.width-h.width)/2,y:e.alignAttr.y+(o.height-h.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),g&&r.height>=0)this.justifyDataLabel(e,i,e.alignAttr,o,r,s);else if(p(i.crop,!0)){let{x:t,y:i}=e.alignAttr;y=n.isInsidePlot(t,i,{paneCoordinates:!0,series:this})&&n.isInsidePlot(t+o.width-1,i+o.height-1,{paneCoordinates:!0,series:this})}i.shape&&!f&&e[s?"attr":"animate"]({anchorX:_[0],anchorY:_[1]})}s&&l&&(e.placed=!1),y||l&&!g?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function r(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function g(t){let e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function y(t){let e;t=t||this.points;let i=this,r=i.chart,a=i.options,c=r.renderer,{backgroundColor:u,plotBackgroundColor:g}=r.options.chart,y=c.getContrast(h(g)&&g||h(u)&&u||"#000000"),_=x(i),{animation:b,defer:w}=_[0],S=w?s(r,b,i):{defer:0,duration:0};l(this,"drawDataLabels"),i.hasDataLabels?.()&&(e=this.initDataLabels(S),t.forEach((t=>{let s=t.dataLabels||[];m(v(_,t.dlOptions||t.options?.dataLabels)).forEach(((u,m)=>{let g,_,v,x,b,w=u.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,r=t[i.property],s=i.value;return">"===e&&r>s||"<"===e&&r="===e&&r>=s||"<="===e&&r<=s||"=="===e&&r==s||"==="===e&&r===s||"!="===e&&r!=s||"!=="===e&&r!==s}return!0}(t,u),{backgroundColor:S,borderColor:C,distance:T,style:k={}}=u,E={},A=s[m],M=!A;w&&(_=p(u[t.formatPrefix+"Format"],u.format),g=t.getLabelConfig(),v=o(_)?n(_,g,r):(u[t.formatPrefix+"Formatter"]||u.formatter).call(g,u),x=u.rotation,!r.styledMode&&(k.color=p(u.color,k.color,h(i.color)?i.color:void 0,"#000000"),"contrast"===k.color?("none"!==S&&(b=S),t.contrastColor=c.getContrast("auto"!==b&&b||t.color||i.color),k.color=b||!o(T)&&u.inside||0>f(T||0)||a.stacking?t.contrastColor:y):delete t.contrastColor,a.cursor&&(k.cursor=a.cursor)),E={r:u.borderRadius||0,rotation:x,padding:u.padding,zIndex:1},r.styledMode||(E.fill="auto"===S?t.color:S,E.stroke="auto"===C?t.color:C,E["stroke-width"]=u.borderWidth),d(E,((t,e)=>{void 0===t&&delete E[e]}))),!A||w&&o(v)&&!!A.div==!!u.useHTML&&(A.rotation&&u.rotation||A.rotation===u.rotation)||(A=void 0,M=!0),w&&o(v)&&(A?E.text=v:(A=c.label(v,0,0,u.shape,void 0,void 0,u.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(u.className||"")+(u.useHTML?" highcharts-tracker":"")),A&&(A.options=u,A.attr(E),r.styledMode||A.css(k).shadow(u.shadow),l(A,"beforeAddingDataLabel",{labelOptions:u,point:t}),A.added||A.add(e),i.alignDataLabel(t,A,u,void 0,M),A.isActive=!0,s[m]&&s[m]!==A&&s[m].destroy(),s[m]=A))}));let u=s.length;for(;u--;)s[u]&&s[u].isActive?s[u].isActive=!1:(s[u]?.destroy(),s.splice(u,1));t.dataLabel=s[0],t.dataLabels=s}))),l(this,"afterDrawDataLabels")}function _(t,e,i,r,s,n){let o,a,l=this.chart,c=e.align,h=e.verticalAlign,u=t.box?0:t.padding||0,d=l.inverted?this.yAxis:this.xAxis,p=d?d.left-l.plotLeft:0,f=l.inverted?this.xAxis:this.yAxis,m=f?f.top-l.plotTop:0,{x:g=0,y=0}=e;return(o=(i.x||0)+u+p)<0&&("right"===c&&g>=0?(e.align="left",e.inside=!0):g-=o,a=!0),(o=(i.x||0)+r.width-u+p)>l.plotWidth&&("left"===c&&g<=0?(e.align="right",e.inside=!0):g+=l.plotWidth-o,a=!0),(o=i.y+u+m)<0&&("bottom"===h&&y>=0?(e.verticalAlign="top",e.inside=!0):y-=o,a=!0),(o=(i.y||0)+r.height-u+m)>l.plotHeight&&("top"===h&&y<=0?(e.verticalAlign="bottom",e.inside=!0):y+=l.plotHeight-o,a=!0),a&&(e.x=g,e.y=y,t.placed=!n,t.align(e,void 0,s)),a}function v(t,e){let i,r=[];if(c(t)&&!c(e))r=t.map((function(t){return u(t,e)}));else if(c(e)&&!c(t))r=e.map((function(e){return u(t,e)}));else if(c(t)||c(e)){if(c(t)&&c(e))for(i=Math.max(t.length,e.length);i--;)r[i]=u(t[i],e[i])}else r=u(t,e);return r}function x(t){let e=t.chart.options.plotOptions;return m(v(v(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}function b(t,e,i,r,s){let n=this.chart,o=n.inverted,a=this.xAxis,l=a.reversed,c=((o?e.height:e.width)||0)/2,h=t.pointWidth,u=h?h/2:0;e.startXPos=o?s.x:l?-c-u:a.width-c+u,e.startYPos=o?l?this.yAxis.height-c+u:-c-u:s.y,r?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),n.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){let s=t.prototype;s.initDataLabels||(s.initDataLabels=g,s.initDataLabelsGroup=r,s.alignDataLabel=i,s.drawDataLabels=y,s.justifyDataLabel=_,s.setDataLabelStartPos=b,s.hasDataLabels=e)}}(r||(r={})),r})),i(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r){var s;let{composed:n}=e,{series:o}=i,{merge:a,pick:l,pushUnique:c}=r;return function(e){function i(t,e,i,r,s){let n=this.chart.inverted,c=t.series,h=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0,u=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0,d=t.dlBox||t.shapeArgs,p=l(t.below,t.plotY>l(this.translatedThreshold,u)),f=l(i.inside,!!this.options.stacking);if(d){if(r=a(d),"allow"!==i.overflow||!1!==i.crop){r.y<0&&(r.height+=r.y,r.y=0);let t=r.y+r.height-u;t>0&&t● {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),i(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{column:r,line:s}=e.seriesTypes,{addEvent:n,extend:o,merge:a}=i;class l extends s{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(r,s){["x","y"].forEach((function(n,o){if(e[n]&&!r.isNull){let a=`plot${n.toUpperCase()}`,l=t[`${n}Axis`],c=e[n]*l.transA;if(l&&!l.logarithmic){let t=Math.max(0,(r[a]||0)-c),e=Math.min(l.len,(r[a]||0)+c);r[a]=t+(e-t)*function(t){let e=1e4*Math.sin(t);return e-Math.floor(e)}(s+o*i),"x"===n&&(r.clientX=r.plotX)}}}))}))}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return l.defaultOptions=a(s.defaultOptions,t),o(l.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),n(l,"afterTranslate",(function(){this.applyJitter()})),e.registerSeriesType("scatter",l),l})),i(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],(function(t,e,i){var r,s;let{deg2rad:n}=t,{fireEvent:o,isNumber:a,pick:l,relativeLength:c}=i;return(s=r||(r={})).getCenter=function(){let t,i,r,s=this.options,n=this.chart,h=2*(s.slicedOffset||0),u=n.plotWidth-2*h,d=n.plotHeight-2*h,p=s.center,f=Math.min(u,d),m=s.thickness,g=s.size,y=s.innerSize||0;"string"==typeof g&&(g=parseFloat(g)),"string"==typeof y&&(y=parseFloat(y));let _=[l(p[0],"50%"),l(p[1],"50%"),l(g&&g<0?void 0:s.size,"100%"),l(y&&y<0?void 0:s.innerSize||0,"0%")];for(!n.angular||this instanceof e||(_[3]=0),i=0;i<4;++i)r=_[i],t=i<2||2===i&&/%$/.test(r),_[i]=c(r,[u,d,f,_[2]][i])+(t?h:0);return _[3]>_[2]&&(_[3]=_[2]),a(m)&&2*m<_[2]&&m>0&&(_[3]=_[2]-2*m),o(this,"afterGetCenter",{positions:_}),_},s.getStartAndEndRadians=function(t,e){let i=a(t)?t:0,r=a(e)&&e>i&&e-i<360?e:i+360;return{start:n*(i+-90),end:n*(r+-90)}},r})),i(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t,e,i){let{setAnimation:r}=t,{addEvent:s,defined:n,extend:o,isNumber:a,pick:l,relativeLength:c}=i;class h extends e{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},r=i.connectorShape,s=this.connectorShapes[r]||r;return e&&s.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name="Slice");let r=t=>{this.slice("select"===t.type)};s(this,"select",r),s(this,"unselect",r)}isValid(){return a(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;r(i,s.chart),e=l(e,!0),this.sliced=this.options.sliced=t=n(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return o(h.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let r=e.breakAt,s=e.touchingSliceAt,n=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-s.x,2*r.y-s.y,r.x,r.y]:["L",r.x,r.y];return[["M",t.x,t.y],n,["L",s.x,s.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{breakAt:r,touchingSliceAt:s}=e,{series:n}=this,[o,a,l]=n.center,h=l/2,{plotLeft:u,plotWidth:d}=n.chart,p="left"===t.alignment,{x:f,y:m}=t,g=r.x;if(i.crookDistance){let t=c(i.crookDistance,1);g=p?o+h+(d+u-o-h)*(1-t):u+(o-h)*t}else g=o+(a-m)*Math.tan((this.angle||0)-Math.PI/2);let y=[["M",f,m]];return(p?g<=f&&g>=r.x:g>=f&&g<=r.x)&&y.push(["L",g,m]),y.push(["L",r.x,r.y],["L",s.x,s.y]),y}}}),h})),i(e,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,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}}}})),i(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n,o,a,l){let{getStartAndEndRadians:c}=t,{noop:h}=i,{clamp:u,extend:d,fireEvent:p,merge:f,pick:m}=l;class g extends n{animate(t){let e=this,i=e.points,r=e.startAngleRad;t||i.forEach((function(t){let i=t.graphic,s=t.shapeArgs;i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:r,end:r}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))}))}drawEmpty(){let t,e,i=this.startAngleRad,r=this.endAngleRad,s=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(t,e,this.center[2]/2,0,{start:i,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":s.borderWidth,fill:s.fillColor||"none",stroke:s.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,r){let s=this.center,n=this.radii?this.radii[i.index]||0:s[2]/2,o=r.dataLabelPosition,a=o?.distance||0,l=Math.asin(u((t-s[1])/(n+a),-1,1));return s[0]+Math.cos(l)*(n+a)*(e?-1:1)+(a>0?(e?-1:1)*(r.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let t,e,i,r,s=this,n=s.chart;this.drawEmpty(),s.group&&!n.styledMode&&s.group.shadow(s.options.shadow),s.points.forEach((function(o){let a={};e=o.graphic,!o.isNull&&e?(r=o.shapeArgs,t=o.getTranslate(),n.styledMode||(i=s.pointAttribs(o,o.selected&&"select")),o.delayedRendering?(e.setRadialReference(s.center).attr(r).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),o.delayedRendering=!1):(e.setRadialReference(s.center),n.styledMode||f(!0,a,i),f(!0,a,r,t),e.animate(a)),e.attr({visibility:o.visible?"inherit":"hidden"}),e.addClass(o.getClassName(),!0)):e&&(o.graphic=e.destroy())}))}sortByAngle(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))}translate(t){p(this,"translate"),this.generatePoints();let e,i,r,s,n,o,a,l=this.options,h=l.slicedOffset,u=c(l.startAngle,l.endAngle),d=this.startAngleRad=u.start,f=(this.endAngleRad=u.end)-d,m=this.points,g=l.ignoreHiddenPoint,y=m.length,_=0;for(t||(this.center=t=this.getCenter()),o=0;o1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*h),translateY:Math.round(Math.sin(r)*h)},s=Math.cos(r)*t[2]/2,n=Math.sin(r)*t[2]/2,a.tooltipPos=[t[0]+.7*s,t[1]+.7*n],a.half=r<-Math.PI/2||r>Math.PI/2?1:0,a.angle=r}p(this,"afterTranslate")}updateTotals(){let t,e,i=this.points,r=i.length,s=this.options.ignoreHiddenPoint,n=0;for(t=0;t0&&(e.visible||!s)?e.y/n*100:0,e.total=n}}return g.defaultOptions=f(n.defaultOptions,s),d(g.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:h,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("pie",g),g})),i(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s){var n;let{composed:o,noop:a}=e,{distribute:l}=i,{series:c}=r,{arrayMax:h,clamp:u,defined:d,pick:p,pushUnique:f,relativeLength:m}=s;return function(e){let i={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,r,s){let n=s.dataLabelPosition;return t.getX(i<(n?.top||0)+2||i>(n?.bottom||0)-2?r:i,e.half,e,s)},justify:function(t,e,i,r){return r[0]+(t.half?-1:1)*(i+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,i,r){let s=t.getBBox().width;return e?s+r:i-s-r},alignToConnectors:function(t,e,i,r){let s,n=0;return t.forEach((function(t){(s=t.dataLabel.getBBox().width)>n&&(n=s)})),e?n+r:i-n-r}};function r(t,e){let{center:i,options:r}=this,s=i[2]/2,n=t.angle||0,o=Math.cos(n),a=Math.sin(n),l=i[0]+o*s,c=i[1]+a*s,h=Math.min((r.slicedOffset||0)+(r.borderWidth||0),e/5);return{natural:{x:l+o*e,y:c+a*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:l+o*h,y:c+a*h},touchingSliceAt:{x:l,y:c}},distance:e}}function s(){let t,e,i,r=this,s=r.points,n=r.chart,o=n.plotWidth,a=n.plotHeight,u=n.plotLeft,f=Math.round(n.chartWidth/3),g=r.center,y=g[2]/2,_=g[1],v=[[],[]],x=[0,0,0,0],b=r.dataLabelPositioners,w=0;r.visible&&r.hasDataLabels?.()&&(s.forEach((t=>{(t.dataLabels||[]).forEach((t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)}))})),c.prototype.drawDataLabels.apply(r),s.forEach((t=>{(t.dataLabels||[]).forEach(((e,i)=>{let r=g[2]/2,s=e.options,n=m(s?.distance||0,r);0===i&&v[t.half].push(t),!d(s?.style?.width)&&e.getBBox().width>f&&(e.css({width:Math.round(.7*f)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,n),w=Math.max(w,n)}))})),v.forEach(((t,s)=>{let c,h,f,m=t.length,v=[],S=0;m&&(r.sortByAngle(t,s-.5),w>0&&(c=Math.max(0,_-y-w),h=Math.min(_+y+w,n.plotHeight),t.forEach((t=>{(t.dataLabels||[]).forEach((e=>{let i=e.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,_-y-i.distance),i.bottom=Math.min(_+y+i.distance,n.plotHeight),S=e.getBBox().height||21,e.lineHeight=n.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-i.top+e.lineHeight/2,size:S,rank:t.y},v.push(t.distributeBox))}))})),l(v,f=h+S-c,f/5)),t.forEach((n=>{(n.dataLabels||[]).forEach((l=>{let c=l.options||{},h=n.distributeBox,f=l.dataLabelPosition,m=f?.natural.y||0,_=c.connectorPadding||0,w=l.lineHeight||21,S=(w-l.getBBox().height)/2,C=0,T=m,k="inherit";if(f){if(v&&d(h)&&f.distance>0&&(void 0===h.pos?k="hidden":(i=h.size,T=b.radialDistributionY(n,l))),c.justify)C=b.justify(n,l,y,g);else switch(c.alignTo){case"connectors":C=b.alignToConnectors(t,s,o,u);break;case"plotEdges":C=b.alignToPlotEdges(l,s,o,u);break;default:C=b.radialDistributionX(r,n,T-S,m,l)}if(f.attribs={visibility:k,align:f.alignment},f.posAttribs={x:C+(c.x||0)+({left:_,right:-_}[f.alignment]||0),y:T+(c.y||0)-w/2},f.computed.x=C,f.computed.y=T-S,p(c.crop,!0)){let t;C-(e=l.getBBox().width)<_&&1===s?(t=Math.round(e-C+_),x[3]=Math.max(t,x[3])):C+e>o-_&&0===s&&(t=Math.round(C+e-o+_),x[1]=Math.max(t,x[1])),T-i/2<0?x[0]=Math.max(Math.round(i/2-T),x[0]):T+i/2>a&&(x[2]=Math.max(Math.round(T+i/2-a),x[2])),f.sideOverflow=t}}}))})))})),(0===h(x)||this.verifyDataLabelOverflow(x))&&(this.placeDataLabels(),this.points.forEach((e=>{(e.dataLabels||[]).forEach((i=>{let{connectorColor:s,connectorWidth:o=1}=i.options||{},a=i.dataLabelPosition;if(o){let l;t=i.connector,a&&a.distance>0?(l=!t,t||(i.connector=t=n.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(r.dataLabelsGroup)),n.styledMode||t.attr({"stroke-width":o,stroke:s||e.color||"#666666"}),t[l?"attr":"animate"]({d:e.getConnectorPath(i)}),t.attr({visibility:a.attribs?.visibility})):t&&(i.connector=t.destroy())}}))}))))}function n(){this.points.forEach((t=>{(t.dataLabels||[]).forEach((t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:(t.options?.style||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})})),delete t.distributeBox}),this)}function g(t){let e=this.center,i=this.options,r=i.center,s=i.minSize||80,n=s,o=null!==i.size;return!o&&(null!==r[0]?n=Math.max(e[2]-Math.max(t[1],t[3]),s):(n=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2),null!==r[1]?n=u(n,s,e[2]-Math.max(t[0],t[2])):(n=u(n,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n(t.x+=e.x,t.y+=e.y,t)),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},e.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},e.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},e.pointInPolygon=function({x:t,y:e},i){let r,s,n=i.length,o=!1;for(r=0,s=n-1;re!=c>e&&t<(l-n)*(e-a)/(c-a)+n&&(o=!o)}return o},t})),i(e,"Extensions/OverlappingDataLabels.js",[e["Core/Geometry/GeometryUtilities.js"],e["Core/Utilities.js"]],(function(t,e){let{pointInPolygon:i}=t,{addEvent:r,fireEvent:s,objectEach:n,pick:o}=e;function a(t){let e,r,n,o,a,c=t.length,h=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),u=(t,e)=>{for(let r of t)if(i({x:r[0],y:r[1]},e))return!0;return!1},d=!1;for(let i=0;i(e.labelrank||0)-(t.labelrank||0)));for(let e=0;e{n(t,(t=>{t.label&&e.push(t.label)}))}));for(let i of t.series||[])if(i.visible&&i.hasDataLabels?.()){let r=i=>{for(let r of i)r.visible&&(r.dataLabels||[]).forEach((i=>{let s=i.options||{};i.labelrank=o(s.labelrank,r.labelrank,r.shapeArgs?.height),s.allowOverlap??Number(s.distance)>0?(i.oldOpacity=i.opacity,i.newOpacity=1,l(i,t)):e.push(i)}))};r(i.nodes||[]),r(i.points)}this.hideOverlappingLabels(e)}return{compose:function(t){let e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=a,r(t,"render",c))}}})),i(e,"Extensions/BorderRadius.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{defaultOptions:r}=t,{noop:s}=e,{addEvent:n,extend:o,isObject:a,merge:l,relativeLength:c}=i,h={radius:0,scope:"stack",where:void 0},u=s,d=s;function p(t,e,i,r,s={}){let n=u(t,e,i,r,s),{innerR:o=0,r:a=i,start:l=0,end:h=0}=s;if(s.open||!s.borderRadius)return n;let d=h-l,p=Math.sin(d/2),f=Math.max(Math.min(c(s.borderRadius||0,a-o),(a-o)/2,a*p/(1+p)),0),m=Math.min(f,d/Math.PI*2*o),g=n.length-1;for(;g--;)!function(t,e,i){let r,s,n,o=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),"M"!==o[0]&&"L"!==o[0]||"A"!==a[0]?"A"===o[0]&&("M"===a[0]||"L"===a[0])&&(r=a,s=o):(r=o,s=a,n=!0),r&&s&&s.params){let o=s[1],a=s[5],l=s.params,{start:c,end:h,cx:u,cy:d}=l,p=a?o-i:o+i,f=p?Math.asin(i/p):0,m=a?f:-f,g=Math.cos(f)*p;n?(l.start=c+m,r[1]=u+g*Math.cos(c),r[2]=d+g*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,u+o*Math.cos(l.start),d+o*Math.sin(l.start)])):(l.end=h-m,s[6]=u+o*Math.cos(l.end),s[7]=d+o*Math.sin(l.end),t.splice(e+1,0,["A",i,i,0,0,1,u+g*Math.cos(h),d+g*Math.sin(h)])),s[4]=Math.abs(l.end-l.start)1?m:f);return n}function f(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,s=r.plotOptions?.[this.type]?.borderRadius,n=m(t.borderRadius,a(s)?s:{}),l=e.options.reversed;for(let r of this.points){let{shapeArgs:s}=r;if("roundedRect"===r.shapeType&&s){let{width:a=0,height:h=0,y:u=0}=s,d=u,p=h;if("stack"===n.scope&&r.stackTotal){let s=e.translate(i?100:r.stackTotal,!1,!0,!1,!0),n=e.translate(t.threshold||0,!1,!0,!1,!0),o=this.crispCol(0,Math.min(s,n),0,Math.abs(s-n));d=o.y,p=o.height}let f=(r.negative?-1:1)*(l?-1:1)==-1,m=n.where;!m&&this.is("waterfall")&&Math.abs((r.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(m="all"),m||(m="end");let g=Math.min(c(n.radius,a),a/2,"all"===m?h/2:1/0)||0;"end"===m&&(f&&(d-=g),p+=g),o(s,{brBoxHeight:p,brBoxY:d,r:g})}}}}function m(t,e){return a(t)||(t={radius:t||0}),l(h,e,t)}function g(){let t=m(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=c(t.radius,(i.r||0)-(i.innerR||0)))}}function y(t,e,i,r,s={}){let n=d(t,e,i,r,s),{r:o=0,brBoxHeight:a=r,brBoxY:l=e}=s,c=e-l,h=l+a-(e+r),u=c-o>-.1?0:o,p=h-o>-.1?0:o,f=Math.max(u&&c,0),m=Math.max(p&&h,0),g=[t+u,e],y=[t+i-u,e],_=[t+i,e+u],v=[t+i,e+r-p],x=[t+i-p,e+r],b=[t+p,e+r],w=[t,e+r-p],S=[t,e+u],C=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(f){let t=C(u,u-f);g[0]-=t,y[0]+=t,_[1]=S[1]=e+u-f}if(r=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)}function l(t,e){let r,o=this.options.responsive,l=this.currentResponsive,c=[];!e&&o&&o.rules&&o.rules.forEach((t=>{void 0===t._id&&(t._id=a()),this.matchResponsiveRule(t,c)}),this);let h=n(...c.map((t=>s((o||{}).rules||[],(e=>e._id===t)))).map((t=>t&&t.chartOptions)));h.isResponsiveOptions=!0,c=c.toString()||void 0;let u=l&&l.ruleIds;c===u||(l&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(l.undoOptions,t,!0),this.updatingResponsive=!1),c?((r=i(h,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:h,undoOptions:r},this.updatingResponsive||this.update(h,t,!0)):this.currentResponsive=void 0)}t.compose=function(t){let i=t.prototype;return i.matchResponsiveRule||r(i,{matchResponsiveRule:e,setResponsive:l}),t}}(e||(e={})),e})),i(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Templating.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/Legend/Legend.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/Chart.js"],e["Extensions/ScrollablePlotArea.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Extensions/OverlappingDataLabels.js"],e["Extensions/BorderRadius.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],(function(t,e,i,r,s,n,o,a,l,c,h,u,d,p,f,m,g,y,_,v,x,b,w,S,C,T,k,E,A,M,P,I,L,D,z,O){return t.AST=n,t.Axis=d,t.Chart=w,t.Color=z,t.DataLabel=P,t.Fx=r,t.HTMLElement=u,t.Legend=x,t.LegendSymbol=b,t.OverlappingDataLabels=t.OverlappingDataLabels||I,t.PlotLineOrBand=m,t.Point=_,t.Pointer=v,t.RendererRegistry=a,t.Series=k,t.SeriesRegistry=E,t.StackItem=T,t.SVGElement=c,t.SVGRenderer=h,t.Templating=o,t.Tick=g,t.Time=O,t.Tooltip=y,t.animate=s.animate,t.animObject=s.animObject,t.chart=w.chart,t.color=z.parse,t.dateFormat=o.dateFormat,t.defaultOptions=i.defaultOptions,t.distribute=l.distribute,t.format=o.format,t.getDeferredAnimation=s.getDeferredAnimation,t.getOptions=i.getOptions,t.numberFormat=o.numberFormat,t.seriesType=E.seriesType,t.setAnimation=s.setAnimation,t.setOptions=i.setOptions,t.stop=s.stop,t.time=i.defaultTime,t.timers=r.timers,L.compose(t.Series,t.SVGElement,t.SVGRenderer),A.compose(t.Series.types.column),P.compose(t.Series),p.compose(t.Axis),u.compose(t.SVGRenderer),x.compose(t.Chart),f.compose(t.Axis),I.compose(t.Chart),M.compose(t.Series.types.pie),m.compose(t.Axis),v.compose(t.Chart),D.compose(t.Chart),S.compose(t.Axis,t.Chart,t.Series),C.compose(t.Axis,t.Chart,t.Series),y.compose(t.Pointer),e.extend(t,e),t})),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]},t.exports?(n.default=n,t.exports=s&&s.document?n(s):n):void 0===(r=function(){return n(s)}.call(e,i,e,t))||(t.exports=r)},159:(t,e,i)=>{var r,s,n;n=function(t){"use strict";var e=t?t._modules:{};function i(e,i,r,s){e.hasOwnProperty(i)||(e[i]=s.apply(null,r),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}i(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],(function(t,e){var i;let{parse:r}=t,{addEvent:s,extend:n,merge:o,pick:a,splat:l}=e;return function(t){let e;function i(){let{userOptions:t}=this;this.colorAxis=[],t.colorAxis&&(t.colorAxis=l(t.colorAxis),t.colorAxis.map((t=>new e(this,t))))}function c(t){let e,i,r=this.chart.colorAxis||[],s=e=>{let i=t.allItems.indexOf(e);-1!==i&&(this.destroyItem(t.allItems[i]),t.allItems.splice(i,1))},n=[];for(r.forEach((function(t){(e=t.options)&&e.showInLegend&&(e.dataClasses&&e.visible?n=n.concat(t.getDataClassLegendSymbols()):e.visible&&n.push(t),t.series.forEach((function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach((function(t){s(t)})):s(t))})))})),i=n.length;i--;)t.allItems.unshift(n[i])}function h(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function u(t){this.chart.colorAxis?.forEach((e=>{e.update({},t.redraw)}))}function d(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function p(){let t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function f(t){let e=this,i=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach((function(t){e[t]&&e[t][i]()})),this.series.buildKDTree()}function m(){let t=this,e=this.getPointsCollection(),i=this.options.nullColor,r=this.colorAxis,s=this.colorKey;e.forEach((e=>{let n=e.getNestedProperty(s),o=e.options.color||(e.isNull||null===e.value?i:r&&void 0!==n?r.toColor(n,e):e.color||t.color);o&&e.color!==o&&(e.color=o,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))}))}function g(){this.elem.attr("fill",r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}function y(){this.elem.attr("stroke",r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}t.compose=function(t,r,l,_,v){let x=r.prototype,b=l.prototype,w=v.prototype;x.collectionsWithUpdate.includes("colorAxis")||(e=t,x.collectionsWithUpdate.push("colorAxis"),x.collectionsWithInit.colorAxis=[x.addColorAxis],s(r,"afterGetAxes",i),function(t){let i=t.prototype.createAxis;t.prototype.createAxis=function(t,r){if("colorAxis"!==t)return i.apply(this,arguments);let s=new e(this,o(r.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach((t=>{t.series=[]})),this.series.forEach((t=>{t.bindAxes(),t.isDirtyData=!0})),a(r.redraw,!0)&&this.redraw(r.animation),s}}(r),b.fillSetter=g,b.strokeSetter=y,s(_,"afterGetAllItems",c),s(_,"afterColorizeItem",h),s(_,"afterUpdate",u),n(w,{optionalAxis:"colorAxis",translateColors:m}),n(w.pointClass.prototype,{setVisible:f}),s(v,"afterTranslate",d,{order:1}),s(v,"bindAxes",p))},t.pointSetVisible=f}(i||(i={})),i})),i(e,"Core/Axis/Color/ColorAxisDefaults.js",[],(function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}})),i(e,"Core/Axis/Color/ColorAxisLike.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],(function(t,e){var i,r;let{parse:s}=t,{merge:n}=e;return(r=i||(i={})).initDataClasses=function(t){let e,i,r,o=this.chart,a=this.legendItem=this.legendItem||{},l=this.options,c=t.dataClasses||[],h=o.options.chart.colorCount,u=0;this.dataClasses=i=[],a.labels=[];for(let t=0,a=c.length;t=r)&&(void 0===s||t<=s)){n=o.color,e&&(e.dataClass=a,e.colorIndex=o.colorIndex);break}}else{for(i=this.normalizedValue(t),a=c.length;a--&&!(i>c[a][0]););r=c[a]||c[a+1],i=1-((s=c[a+1]||r)[0]-i)/(s[0]-r[0]||1),n=r.color.tweenTo(s.color,i)}return n},i})),i(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Axis/Color/ColorAxisLike.js"],e["Core/Defaults.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n,o,a){let{defaultOptions:l}=s,{series:c}=o,{defined:h,extend:u,fireEvent:d,isArray:p,isNumber:f,merge:m,pick:g,relativeLength:y}=a;l.colorAxis=m(l.xAxis,i);class _ extends t{static compose(t,i,r,s){e.compose(_,t,i,r,s)}constructor(t,e){super(t,e),this.coll="colorAxis",this.visible=!0,this.init(t,e)}init(t,e){let i=t.options.legend||{},r=e.layout?"vertical"!==e.layout:"vertical"!==i.layout;this.side=e.side||r?2:1,this.reversed=e.reversed||!r,this.opposite=!r,super.init(t,e,"colorAxis"),this.userOptions=e,p(t.userOptions.colorAxis)&&(t.userOptions.colorAxis[this.index]=e),e.dataClasses&&this.initDataClasses(e),this.initStops(),this.horiz=r,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(t){let e=m(l.colorAxis,t,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&!1!==t.visible});super.setOptions(e),this.options.crosshair=this.options.marker}setAxisSize(){let t=this.chart,e=this.legendItem?.symbol,{width:i,height:r}=this.getSize();e&&(this.left=+e.attr("x"),this.top=+e.attr("y"),this.width=i=+e.attr("width"),this.height=r=+e.attr("height"),this.right=t.chartWidth-this.left-i,this.bottom=t.chartHeight-this.top-r,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?i:r)||_.defaultLegendLength}getOffset(){let t=this.legendItem?.group,e=this.chart.axisOffset[this.side];if(t){this.axisParent=t,super.getOffset();let i=this.chart.legend;i.allItems.forEach((function(t){t instanceof _&&t.drawLegendSymbol(i,t)})),i.render(),this.chart.getMargins(!0),this.chart.series.some((t=>t.isDrilling))||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=e}}setLegendColor(){let t=this.horiz,e=this.reversed,i=e?1:0,r=e?0:1,s=t?[i,0,r,0]:[0,r,0,i];this.legendColor={linearGradient:{x1:s[0],y1:s[1],x2:s[2],y2:s[3]},stops:this.stops}}drawLegendSymbol(t,e){let i=e.legendItem||{},r=t.padding,s=t.options,n=this.options.labels,o=g(s.itemDistance,10),a=this.horiz,{width:l,height:c}=this.getSize(),h=g(s.labelPadding,a?16:30);this.setLegendColor(),i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:s.symbolRadius??3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(t.baseline||0)-11,width:l,height:c}),i.labelWidth=l+r+(a?o:g(n.x,n.distance)+(this.maxLabelLength||0)),i.labelHeight=c+r+(a?h:0)}setState(t){this.series.forEach((function(e){e.setState(t)}))}setVisible(){}getSeriesExtremes(){let t,e,i,r,s,n,o,a,l=this.series,u=l.length;for(this.dataMin=1/0,this.dataMax=-1/0;u--;){if(e=(n=l[u]).colorKey=g(n.options.colorKey,n.colorKey,n.pointValKey,n.zoneAxis,"y"),r=n.pointArrayMap,s=n[e+"Min"]&&n[e+"Max"],n[e+"Data"])t=n[e+"Data"];else if(r){if(t=[],i=r.indexOf(e),o=n.yData,i>=0&&o)for(a=0;ao+a&&(i=o+a+2),e.plotX=i,e.plotY=this.len-i,super.drawCrosshair(t,e),e.plotX=s,e.plotY=n,this.cross&&!this.cross.addedToColorAxis&&r.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(r.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(t){let e=this.left,i=t.translatedValue,r=this.top;return f(i)?this.horiz?[["M",i-4,r-6],["L",i+4,r-6],["L",i,r],["Z"]]:[["M",e,i],["L",e-6,i+6],["L",e-6,i-6],["Z"]]:super.getPlotLinePath(t)}update(t,e){let i=this.chart.legend;this.series.forEach((t=>{t.isDirtyData=!0})),(t.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),super.update(t,e),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),i.colorizeItem(this,!0))}destroyItems(){let t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(let i of e.labels)t.legend.destroyItem(i);t.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(t){this.destroyItems(),super.remove(t)}getDataClassLegendSymbols(){let t,e=this,i=e.chart,r=e.legendItem&&e.legendItem.labels||[],s=i.options.legend,o=g(s.valueDecimals,-1),a=g(s.valueSuffix,""),l=t=>e.series.reduce(((e,i)=>(e.push(...i.points.filter((e=>e.dataClass===t))),e)),[]);return r.length||e.dataClasses.forEach(((s,c)=>{let h=s.from,p=s.to,{numberFormatter:f}=i,m=!0;t="",void 0===h?t="< ":void 0===p&&(t="> "),void 0!==h&&(t+=f(h,o)+a),void 0!==h&&void 0!==p&&(t+=" - "),void 0!==p&&(t+=f(p,o)+a),r.push(u({chart:i,name:t,options:{},drawLegendSymbol:n.rectangle,visible:!0,isDataClass:!0,setState:t=>{for(let e of l(c))e.setState(t)},setVisible:function(){this.visible=m=e.visible=!m;let t=[];for(let e of l(c))e.setVisible(m),e.hiddenInDataClass=!m,-1===t.indexOf(e.series)&&t.push(e.series);i.legend.colorizeItem(this,m),t.forEach((t=>{d(t,"afterDataClassLegendClick")}))}},s))})),r}getSize(){let{chart:t,horiz:e}=this,{height:i,width:r}=this.options,{legend:s}=t.options;return{width:g(h(r)?y(r,t.chartWidth):void 0,s?.symbolWidth,e?_.defaultLegendLength:12),height:g(h(i)?y(i,t.chartHeight):void 0,s?.symbolHeight,e?12:_.defaultLegendLength)}}}return _.defaultLegendLength=200,_.keepProps=["legendItem"],u(_.prototype,r),Array.prototype.push.apply(t.keepProps,_.keepProps),_})),i(e,"masters/modules/coloraxis.src.js",[e["Core/Globals.js"],e["Core/Axis/Color/ColorAxis.js"]],(function(t,e){return t.ColorAxis=t.ColorAxis||e,t.ColorAxis.compose(t.Chart,t.Fx,t.Legend,t.Series),t})),i(e,"Maps/MapNavigationDefaults.js",[],(function(){return{lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}}})),i(e,"Maps/MapPointer.js",[e["Core/Utilities.js"]],(function(t){var e;let{defined:i,extend:r,pick:s,wrap:n}=t;return function(t){let e,o=0;function a(t){let e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,t.chartX,t.chartY)}function l(t){let r=this.chart,s=i((t=this.normalize(t)).wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(s)>=1&&(o+=Math.abs(s),e&&clearTimeout(e),e=setTimeout((()=>{o=0}),50)),o<10&&r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop)&&r.mapView&&r.mapView.zoomBy(-(r.options.mapNavigation.mouseWheelSensitivity-1)*s,void 0,[t.chartX,t.chartY],!(1>Math.abs(s))&&void 0)}function c(t,e,i){let s=this.chart;if(e=t.call(this,e,i),s&&s.mapView){let t=s.mapView.pixelsToLonLat({x:e.chartX-s.plotLeft,y:e.chartY-s.plotTop});t&&r(e,t)}return e}function h(t){let e=this.chart.options.mapNavigation;e&&s(e.enableTouchZoom,e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){let e=t.prototype;e.onContainerDblClick||(r(e,{onContainerDblClick:a,onContainerMouseWheel:l}),n(e,"normalize",c),n(e,"zoomOption",h))}}(e||(e={})),e})),i(e,"Maps/MapSymbols.js",[],(function(){let t;function e(e,i,r,s,n){if(n){let t=n?.r||0;n.brBoxY=i-t,n.brBoxHeight=s+t}return t.roundedRect(e,i,r,s,n)}function i(e,i,r,s,n){if(n){let t=n?.r||0;n.brBoxHeight=s+t}return t.roundedRect(e,i,r,s,n)}return{compose:function(r){(t=r.prototype.symbols).bottombutton=e,t.topbutton=i}}})),i(e,"Maps/MapNavigation.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Maps/MapNavigationDefaults.js"],e["Maps/MapPointer.js"],e["Maps/MapSymbols.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n){let{setOptions:o}=t,{composed:a}=e,{addEvent:l,extend:c,merge:h,objectEach:u,pick:d,pushUnique:p}=n;function f(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)}class m{static compose(t,e,n){r.compose(e),s.compose(n),p(a,"Map.Navigation")&&(l(t,"beforeRender",(function(){this.mapNavigation=new m(this),this.mapNavigation.update()})),o(i))}constructor(t){this.chart=t,this.navButtons=[]}update(t){let e=this,i=e.chart,r=e.navButtons,s=function(t){this.handler.call(i,t),f(t)},n=i.options.mapNavigation;for(t&&(n=i.options.mapNavigation=h(i.options.mapNavigation,t));r.length;)r.pop().destroy();if(!i.renderer.forExport&&d(n.enableButtons,n.enabled)){e.navButtonsGroup||(e.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),u(n.buttons,((t,o)=>{let a={padding:(t=h(n.buttonOptions,t)).padding};!i.styledMode&&t.theme&&(c(a,t.theme),a.style=h(t.theme.style,t.style));let{text:u,width:d=0,height:p=0,padding:m=0}=t,g=i.renderer.button("+"!==u&&"-"!==u&&u||"",0,0,s,a,void 0,void 0,void 0,"zoomIn"===o?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[o]).attr({width:d,height:p,title:i.options.lang[o],zIndex:5}).add(e.navButtonsGroup);if("+"===u||"-"===u){let e=d+1,r=[["M",m+3,m+p/2],["L",m+e-3,m+p/2]];"+"===u&&r.push(["M",m+e/2,m+3],["L",m+e/2,m+p-3]),i.renderer.path(r).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:t.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(g)}if(g.handler=t.onclick,l(g.element,"dblclick",f),r.push(g),c(t,{width:g.width,height:2*(g.height||0)}),i.hasLoaded)g.align(t,!1,t.alignTo);else{let e=l(i,"load",(()=>{g.element&&g.align(t,!1,t.alignTo),e()}))}}));let t=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y);i.hasLoaded||l(i,"render",(function(){let r=i.exportingGroup&&i.exportingGroup.getBBox();if(r){let i=e.navButtonsGroup.getBBox();if(t(r,i)){let t=-i.y-i.height+r.y-5,s=r.y+r.height-i.y+5,o=n.buttonOptions&&n.buttonOptions.verticalAlign;e.navButtonsGroup.attr({translateY:"bottom"===o?t:s})}}}))}this.updateEvents(n)}updateEvents(t){let e=this.chart;d(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(e.container,"dblclick",(function(t){e.pointer.onContainerDblClick(t)})):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),d(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(e.container,"wheel",(function(t){return e.pointer.inClass(t.target,"highcharts-no-mousewheel")||(e.pointer.onContainerMouseWheel(t),f(t)),!1})):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return m})),i(e,"Series/ColorMapComposition.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t,e,i){var r;let{column:{prototype:s}}=t.seriesTypes,{addEvent:n,defined:o}=i;return function(t){function i(t){let i=this.series,r=i.chart.renderer;this.moveToTopOnHover&&this.graphic&&(i.stateMarkerGraphic||(i.stateMarkerGraphic=new e(r,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),"hover"===t?.state?(this.graphic.attr({id:this.id}),i.stateMarkerGraphic.attr({href:`${r.url}#${this.id}`,visibility:"visible"})):i.stateMarkerGraphic.attr({href:""}))}t.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},t.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return o(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:s.pointAttribs},t.compose=function(t){return n(t.prototype.pointClass,"afterSetState",i),t}}(r||(r={})),r})),i(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/Defaults.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],(function(t,e,i,r){var s;let{getOptions:n}=e,{isNumber:o,merge:a,pick:l}=r;class c extends t{init(t,e){let i=n().credits,r=a({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:l(i.mapText,' © {geojson.copyrightShort}'),mapTextFull:l(i.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},t);super.init(r,e)}mapZoom(t,e,i,r,s){this.mapView&&(o(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,o(e)&&o(i)?this.mapView.projection.inverse([e,i]):void 0,o(r)&&o(s)?[r,s]:void 0))}update(t){t.chart&&"map"in t.chart&&this.mapView?.recommendMapView(this,[t.chart.map,...(this.options.series||[]).map((t=>t.mapData))],!0),super.update.apply(this,arguments)}}return(s=c||(c={})).maps={},s.mapChart=function(t,e,i){return new s(t,e,i)},s.splitPath=function(t){let e;return e="string"==typeof t?(t=t.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map((t=>/[A-Z]/i.test(t)?t:parseFloat(t))):t,i.prototype.pathToSegments(e)},c})),i(e,"Maps/MapUtilities.js",[],(function(){return{boundsFromPath:function(t){let e,i=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,n=Number.MAX_VALUE;if(t.forEach((t=>{let o=t[t.length-2],a=t[t.length-1];"number"==typeof o&&"number"==typeof a&&(r=Math.min(r,o),i=Math.max(i,o),n=Math.min(n,a),s=Math.max(s,a),e=!0)})),e)return{x1:r,y1:n,x2:i,y2:s}}}})),i(e,"Series/Map/MapPoint.js",[e["Series/ColorMapComposition.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r){let{boundsFromPath:s}=e,n=i.seriesTypes.scatter.prototype.pointClass,{extend:o,isNumber:a,pick:l}=r;class c extends n{static getProjectedPath(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]}applyOptions(t,e){let i=this.series,r=super.applyOptions(t,e),s=i.joinBy;if(i.mapData&&i.mapMap){let t=s[1],e=super.getNestedProperty(t),n=void 0!==e&&i.mapMap[e];n?o(r,{...n,name:r.name??n.name}):-1!==i.pointArrayMap.indexOf("value")&&(r.value=r.value||null)}return r}getProjectedBounds(t){let e=s(c.getProjectedPath(this,t)),i=this.properties,r=this.series.chart.mapView;if(e){let s=i&&i["hc-middle-lon"],n=i&&i["hc-middle-lat"];if(r&&a(s)&&a(n)){let i=t.forward([s,n]);e.midX=i[0],e.midY=i[1]}else{let t=i&&i["hc-middle-x"],r=i&&i["hc-middle-y"];e.midX=e.x1+(e.x2-e.x1)*l(this.middleX,a(t)?t:.5);let s=l(this.middleY,a(r)?r:.5);this.geometry||(s=1-s),e.midY=e.y2-(e.y2-e.y1)*s}return e}}onMouseOver(t){r.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,t):this.series.onMouseOut()}setVisible(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(t){let e=this.series.chart,i=e.mapView,r=this.bounds;if(i&&r){let s=a(this.insetIndex)&&i.insets[this.insetIndex];if(s){let t=s.projectedUnitsToPixels({x:r.x1,y:r.y1}),e=s.projectedUnitsToPixels({x:r.x2,y:r.y2}),n=i.pixelsToProjectedUnits({x:t.x,y:t.y}),o=i.pixelsToProjectedUnits({x:e.x,y:e.y});r={x1:n.x,y1:n.y,x2:o.x,y2:o.y}}i.fitToBounds(r,void 0,!1),this.series.isDirty=!0,e.redraw(t)}}}return o(c.prototype,{dataLabelOnNull:t.pointMembers.dataLabelOnNull,moveToTopOnHover:t.pointMembers.moveToTopOnHover,isValid:t.pointMembers.isValid}),c})),i(e,"Series/Map/MapSeriesDefaults.js",[e["Core/Utilities.js"]],(function(t){let{isNumber:e}=t;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:t}=this.series.chart,{value:i}=this.point;return e(i)?t(i,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}})),i(e,"Maps/MapViewDefaults.js",[],(function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}})),i(e,"Maps/GeoJSONComposition.js",[e["Core/Globals.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],(function(t,e,i){var r;let{win:s}=t,{format:n}=e,{error:o,extend:a,merge:l,wrap:c}=i;return function(t){function e(t){return this.mapView&&this.mapView.lonLatToProjectedUnits(t)}function i(t){return this.mapView&&this.mapView.projectedUnitsToLonLat(t)}function r(t,e){let i=this.options.chart.proj4||s.proj4;if(!i)return void o(21,!1,this);let{jsonmarginX:r=0,jsonmarginY:n=0,jsonres:a=1,scale:l=1,xoffset:c=0,xpan:h=0,yoffset:u=0,ypan:d=0}=e,p=i(e.crs,[t.lon,t.lat]),f=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=e.rotation?[p[0]*f+p[1]*m,-p[0]*m+p[1]*f]:p;return{x:((g[0]-c)*l+h)*a+r,y:-(((u-g[1])*l+d)*a-n)}}function h(t,e){let i=this.options.chart.proj4||s.proj4;if(!i)return void o(21,!1,this);if(null===t.y)return;let{jsonmarginX:r=0,jsonmarginY:n=0,jsonres:a=1,scale:l=1,xoffset:c=0,xpan:h=0,yoffset:u=0,ypan:d=0}=e,p={x:((t.x-r)/a-h)/l+c,y:((t.y-n)/a+d)/l+u},f=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=i(e.crs,"WGS84",e.rotation?{x:p.x*f+-p.y*m,y:p.x*m+p.y*f}:p);return{lat:g.y,lon:g.x}}function u(t,e){e||(e=Object.keys(t.objects)[0]);let i=t.objects[e];if(i["hc-decoded-geojson"]&&i["hc-decoded-geojson"].title===t.title)return i["hc-decoded-geojson"];let r=t.arcs;if(t.transform){let e,i,s,n=t.arcs,{scale:o,translate:a}=t.transform;r=[];for(let t=0,l=n.length;t"number"==typeof t[0]?t.reduce(((t,e,i)=>{let s=e<0?r[~e]:r[e];return e<0?(s=s.slice(0,0===i?s.length:s.length-1)).reverse():i&&(s=s.slice(1)),t.concat(s)}),[]):t.map(s),n=i.geometries,o=[];for(let t=0,e=n.length;t(e[1]-t[1])*(i[0]-t[0])}function i(t,e,i,r){let s=[t[0]-e[0],t[1]-e[1]],n=[i[0]-r[0],i[1]-r[1]],o=t[0]*e[1]-t[1]*e[0],a=i[0]*r[1]-i[1]*r[0],l=1/(s[0]*n[1]-s[1]*n[0]),c=[(o*n[0]-a*s[0])*l,(o*n[1]-a*s[1])*l];return c.isIntersection=!0,c}return{clipLineString:function(e,i){let r=[],s=t(e,i,!1);for(let t=1;t0===t?0:t>0?1:-1),e=Math.PI/180,i=Math.PI/2,r=t=>Math.tan((i+t)/2);return class{constructor(i){let s=(i.parallels||[]).map((t=>t*e)),n=s[0]||0,o=s[1]??n,a=Math.cos(n);"object"==typeof i.projectedBounds&&(this.projectedBounds=i.projectedBounds);let l=n===o?Math.sin(n):Math.log(a/Math.cos(o))/Math.log(r(o)/r(n));1e-10>Math.abs(l)&&(l=1e-10*(t(l)||1)),this.n=l,this.c=a*Math.pow(r(n),l)/l}forward(t){let{c:s,n,projectedBounds:o}=this,a=t[0]*e,l=t[1]*e;s>0?l<1e-6-i&&(l=1e-6-i):l>i-1e-6&&(l=i-1e-6);let c=s/Math.pow(r(l),n),h=c*Math.sin(n*a)*63.78137,u=63.78137*(s-c*Math.cos(n*a)),d=[h,u];return o&&(ho.x2||uo.y2)&&(d.outside=!0),d}inverse(r){let{c:s,n}=this,o=r[0]/63.78137,a=s-r[1]/63.78137,l=t(n)*Math.sqrt(o*o+a*a),c=Math.atan2(o,Math.abs(a))*t(a);return a*n<0&&(c-=Math.PI*t(o)*t(a)),[c/n/e,(2*Math.atan(Math.pow(s/l,1/n))-i)/e]}}})),i(e,"Maps/Projections/EqualEarth.js",[],(function(){let t=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(e){let i=Math.PI/180,r=Math.asin(t*Math.sin(e[1]*i)),s=r*r,n=s*s*s;return[e[0]*i*Math.cos(r)*74.03120656864502/(t*(1.340264+-.24331799999999998*s+n*(.0062510000000000005+.034164*s))),74.03120656864502*r*(1.340264+-.081106*s+n*(893e-6+.003796*s))]}inverse(e){let i,r,s,n,o=e[0]/74.03120656864502,a=e[1]/74.03120656864502,l=180/Math.PI,c=a;for(let t=0;t<12&&(r=(i=c*c)*i*i,s=c*(1.340264+-.081106*i+r*(893e-6+.003796*i))-a,c-=n=s/(1.340264+-.24331799999999998*i+r*(.0062510000000000005+.034164*i)),!(1e-9>Math.abs(n)));++t);r=(i=c*c)*i*i;let h=l*t*o*(1.340264+-.24331799999999998*i+r*(.0062510000000000005+.034164*i))/Math.cos(c),u=l*Math.asin(Math.sin(c)/t);return Math.abs(h)>180?[NaN,NaN]:[h,u]}}})),i(e,"Maps/Projections/Miller.js",[],(function(){let t=Math.PI/4,e=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(i){return[i[0]*e*63.78137,79.7267125*Math.log(Math.tan(t+.4*i[1]*e))]}inverse(i){return[i[0]/63.78137/e,2.5*(Math.atan(Math.exp(i[1]/63.78137*.8))-t)/e]}}})),i(e,"Maps/Projections/Orthographic.js",[],(function(){let t=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(e){let i=e[0],r=e[1]*t,s=[Math.cos(r)*Math.sin(i*t)*63.78460826781007,63.78460826781007*Math.sin(r)];return(i<-90||i>90)&&(s.outside=!0),s}inverse(e){let i=e[0]/63.78460826781007,r=e[1]/63.78460826781007,s=Math.sqrt(i*i+r*r),n=Math.asin(s),o=Math.sin(n);return[Math.atan2(i*o,s*Math.cos(n))/t,Math.asin(s&&r*o/s)/t]}}})),i(e,"Maps/Projections/WebMercator.js",[],(function(){let t=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(e){let i=Math.sin(e[1]*t),r=[63.78137*e[0]*t,63.78137*Math.log((1+i)/(1-i))/2];return Math.abs(e[1])>this.maxLatitude&&(r.outside=!0),r}inverse(e){return[e[0]/(63.78137*t),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/t]}}})),i(e,"Maps/Projections/ProjectionRegistry.js",[e["Maps/Projections/LambertConformalConic.js"],e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],(function(t,e,i,r,s){return{EqualEarth:e,LambertConformalConic:t,Miller:i,Orthographic:r,WebMercator:s}})),i(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{clipLineString:r,clipPolygon:s}=t,{clamp:n,erase:o}=i,a=2*Math.PI/360,l=t=>(t<-180&&(t+=360),t>180&&(t-=360),t),c=t=>(1-Math.cos(t))/2;class h{static add(t,e){h.registry[t]=e}static distance(t,e){let{atan2:i,sqrt:r}=Math,s=((t,e)=>{let i=Math.cos,r=t[1]*a,s=t[0]*a,n=e[1]*a,o=e[0]*a;return c(n-r)+i(r)*i(n)*c(o-s)})(t,e);return 2*i(r(s),r(1-s))*6371e3}static geodesic(t,e,i,r=5e5){let{atan2:s,cos:n,sin:o,sqrt:l}=Math,c=h.distance,u=t[1]*a,d=t[0]*a,p=e[1]*a,f=e[0]*a,m=n(u)*n(d),g=n(p)*n(f),y=n(u)*o(d),_=n(p)*o(f),v=o(u),x=o(p),b=c(t,e),w=b/6371e3,S=o(w),C=Math.round(b/r),T=[];if(i&&T.push(t),C>1){let t=1/C;for(let e=t;e<.999;e+=t){let t=o((1-e)*w)/S,i=o(e*w)/S,r=t*m+i*g,n=t*y+i*_,c=s(t*v+i*x,l(r*r+n*n)),h=s(n,r);T.push([h/a,c/a])}}return i&&T.push(e),T}static insertGeodesics(t){let e=t.length-1;for(;e--;)if(Math.max(Math.abs(t[e][0]-t[e+1][0]),Math.abs(t[e][1]-t[e+1][1]))>10){let i=h.geodesic(t[e],t[e+1]);i.length&&t.splice(e+1,0,...i)}}static toString(t){let{name:e,rotation:i}=t||{};return[e,i&&i.join(",")].join(";")}constructor(t={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=t;let{name:e,projectedBounds:i,rotation:r}=t;this.rotator=r?this.getRotator(r):void 0;let s=e?h.registry[e]:void 0;s&&(this.def=new s(t));let{def:n,rotator:o}=this;n&&(this.maxLatitude=n.maxLatitude||90,this.hasGeoProjection=!0),o&&n?(this.forward=t=>n.forward(o.forward(t)),this.inverse=t=>o.inverse(n.inverse(t))):n?(this.forward=t=>n.forward(t),this.inverse=t=>n.inverse(t)):o&&(this.forward=o.forward,this.inverse=o.inverse),this.bounds="world"===i?n&&n.bounds:i}lineIntersectsBounds(t){let e,{x1:i,x2:r,y1:s,y2:n}=this.bounds||{},o=(t,e,i)=>{let[r,s]=t,n=e?0:1;if("number"==typeof i&&r[e]>=i!=s[e]>=i){let t=(i-r[e])/(s[e]-r[e]),o=r[n]+t*(s[n]-r[n]);return e?[o,i]:[i,o]}},a=t[0];return((e=o(t,0,i))||(e=o(t,0,r)))&&(a=e,t[1]=e),((e=o(t,1,s))||(e=o(t,1,n)))&&(a=e),a}getRotator(t){let e=t[0]*a,i=(t[1]||0)*a,r=(t[2]||0)*a,s=Math.cos(i),n=Math.sin(i),o=Math.cos(r),l=Math.sin(r);if(0!==e||0!==i||0!==r)return{forward:t=>{let i=t[0]*a+e,r=t[1]*a,c=Math.cos(r),h=Math.cos(i)*c,u=Math.sin(i)*c,d=Math.sin(r),p=d*s+h*n;return[Math.atan2(u*o-p*l,h*s-d*n)/a,Math.asin(p*o+u*l)/a]},inverse:t=>{let i=t[0]*a,r=t[1]*a,c=Math.cos(r),h=Math.cos(i)*c,u=Math.sin(i)*c,d=Math.sin(r),p=d*o-u*l;return[(Math.atan2(u*o+d*l,h*s+p*n)-e)/a,Math.asin(p*s-h*n)/a]}}}forward(t){return t}inverse(t){return t}cutOnAntimeridian(t,e){let i,r=[],s=[t];for(let i=0,s=t.length;i90)&&(l<-90||l>90)&&a>0!=l>0){let t=n((180-(a+360)%360)/((l+360)%360-(a+360)%360),0,1),e=o[1]+t*(s[1]-o[1]);r.push({i,lat:e,direction:a<0?1:-1,previousLonLat:o,lonLat:s})}}if(r.length)if(e){r.length%2==1&&(i=r.slice().sort(((t,e)=>Math.abs(e.lat)-Math.abs(t.lat)))[0],o(r,i));let e=r.length-2;for(;e>=0;){let i=r[e].i,n=l(180+1e-6*r[e].direction),o=l(180-1e-6*r[e].direction),a=t.splice(i,r[e+1].i-i,...h.geodesic([n,r[e].lat],[n,r[e+1].lat],!0));a.push(...h.geodesic([o,r[e+1].lat],[o,r[e].lat],!0)),s.push(a),e-=2}if(i)for(let t=0;t-1){let t=(r<0?-1:1)*this.maxLatitude,s=l(180+1e-6*e),a=l(180-1e-6*e),c=h.geodesic([s,r],[s,t],!0);for(let i=s+120*e;i>-180&&i<180;i+=120*e)c.push([i,t]);c.push(...h.geodesic([a,t],[a,i.lat],!0)),n.splice(o,0,...c);break}}}else{let e=r.length;for(;e--;){let i=r[e].i,n=t.splice(i,t.length,[l(180+1e-6*r[e].direction),r[e].lat]);n.unshift([l(180-1e-6*r[e].direction),r[e].lat]),s.push(n)}}return s}path(t){let e,{bounds:i,def:n,rotator:o}=this,a=[],l="Polygon"===t.type||"MultiPolygon"===t.type,c=this.hasGeoProjection,u=!n||!1!==n.antimeridianCutting,d=u?o:void 0,p=u&&n||this;i&&(e=[[i.x1,i.y1],[i.x2,i.y1],[i.x2,i.y2],[i.x1,i.y2]]);let f=t=>{let n=t.map((t=>{if(u){d&&(t=d.forward(t));let e=t[0];1e-6>Math.abs(e-180)&&(e=e<180?179.999999:180.000001),t=[e,t[1]]}return t})),o=[n];c&&(h.insertGeodesics(n),u&&(o=this.cutOnAntimeridian(n,l))),o.forEach((t=>{let n,o;if(t.length<2)return;let d=!1,f=!1,m=t=>{d?a.push(["L",t[0],t[1]]):(a.push(["M",t[0],t[1]]),d=!0)},g=!1,y=!1,_=t.map((t=>{let e=p.forward(t);return e.outside?g=!0:y=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e}));if(u){if(l&&_.push(_[0]),g){if(!y)return;if(e)if(l)_=s(_,e);else if(i)return void r(_,e).forEach((t=>{d=!1,t.forEach(m)}))}_.forEach(m)}else for(let e=0;e<_.length;e++){let i=t[e],r=_[e];r.outside?f=!0:(l&&!n&&(n=i,t.push(i),_.push(r)),f&&o&&(l&&c?h.geodesic(o,i).forEach((t=>m(p.forward(t)))):d=!1),m(r),o=i,f=!1)}}))};return"LineString"===t.type?f(t.coordinates):"MultiLineString"===t.type?t.coordinates.forEach((t=>f(t))):"Polygon"===t.type?(t.coordinates.forEach((t=>f(t))),a.length&&a.push(["Z"])):"MultiPolygon"===t.type&&(t.coordinates.forEach((t=>{t.forEach((t=>f(t)))})),a.length&&a.push(["Z"])),a}}return h.registry=e,h})),i(e,"Maps/MapView.js",[e["Core/Globals.js"],e["Maps/MapViewDefaults.js"],e["Maps/GeoJSONComposition.js"],e["Core/Geometry/GeometryUtilities.js"],e["Maps/MapUtilities.js"],e["Maps/Projection.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n,o){let{composed:a}=t,{pointInPolygon:l}=r,{topo2geo:c}=i,{boundsFromPath:h}=s,{addEvent:u,clamp:d,crisp:p,fireEvent:f,isArray:m,isNumber:g,isObject:y,isString:_,merge:v,pick:x,pushUnique:b,relativeLength:w}=o,S={};function C(t,e){let{width:i,height:r}=e;return Math.log(400.979322/Math.max((t.x2-t.x1)/(i/256),(t.y2-t.y1)/(r/256)))/Math.log(2)}function T(t){t.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class k{static compose(t){b(a,"MapView")&&(S=t.maps,u(t,"afterInit",(function(){this.mapView=new k(this,this.options.mapView)}),{order:0}),u(t,"addSeriesAsDrilldown",T),u(t,"afterDrillUp",T))}static compositeBounds(t){if(t.length)return t.slice(1).reduce(((t,e)=>(t.x1=Math.min(t.x1,e.x1),t.y1=Math.min(t.y1,e.y1),t.x2=Math.max(t.x2,e.x2),t.y2=Math.max(t.y2,e.y2),t)),v(t[0]))}static mergeInsets(t,e){let i=t=>{let e={};return t.forEach(((t,i)=>{e[t&&t.id||`i${i}`]=t})),e},r=v(i(t),i(e));return Object.keys(r).map((t=>r[t]))}constructor(t,i){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof E||this.recommendMapView(t,[t.options.chart.map,...(t.options.series||[]).map((t=>t.mapData))]),this.userOptions=i||{};let r=v(e,this.recommendedMapView,i),s=this.recommendedMapView?.insets,o=i&&i.insets;s&&o&&(r.insets=k.mergeInsets(s,o)),this.chart=t,this.center=r.center,this.options=r,this.projection=new n(r.projection),this.playingField=t.plotBox,this.zoom=r.zoom||0,this.minZoom=r.minZoom,this.createInsets(),this.eventsToUnbind.push(u(t,"afterSetChartSize",(()=>{this.playingField=this.getField(),(void 0===this.minZoom||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&g(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&v(!0,this.center,this.userOptions.center))}))),this.setUpEvents()}createInsets(){let t=this.options,e=t.insets;e&&e.forEach((e=>{let i=new E(this,v(t.insetOptions,e));this.insets.push(i)}))}fitToBounds(t,e,i=!0,r){let s=t||this.getProjectedBounds();if(s){let n=x(e,t?0:this.options.padding),o=this.getField(!1),a=m(n)?n:[n,n,n,n];this.padding=[w(a[0],o.height),w(a[1],o.width),w(a[2],o.height),w(a[3],o.width)],this.playingField=this.getField();let l=C(s,this.playingField);t||(this.minZoom=l);let c=this.projection.inverse([(s.x2+s.x1)/2,(s.y2+s.y1)/2]);this.setView(c,l,i,r)}}getField(t=!0){let e=t?this.padding:[0,0,0,0];return{x:e[3],y:e[0],width:this.chart.plotWidth-e[1]-e[3],height:this.chart.plotHeight-e[0]-e[2]}}getGeoMap(t){if(_(t))return S[t]&&"Topology"===S[t].type?c(S[t]):S[t];if(y(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return c(t)}}getMapBBox(){let t=this.getProjectedBounds(),e=this.getScale();if(t){let i=this.padding,r=this.projectedUnitsToPixels({x:t.x1,y:t.y2});return{width:(t.x2-t.x1)*e+i[1]+i[3],height:(t.y2-t.y1)*e+i[0]+i[2],x:r.x-i[3],y:r.y-i[0]}}}getProjectedBounds(){let t=this.projection,e=this.chart.series.reduce(((t,e)=>{let i=e.getProjectedBounds&&e.getProjectedBounds();return i&&!1!==e.options.affectsMapView&&t.push(i),t}),[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache)if("MultiPoint"===i.type){let e=i.coordinates.map((e=>t.forward(e))),r=e.map((t=>t[0])),s=e.map((t=>t[1]));this.fitToGeometryCache={x1:Math.min.apply(0,r),x2:Math.max.apply(0,r),y1:Math.min.apply(0,s),y2:Math.max.apply(0,s)}}else this.fitToGeometryCache=h(t.path(i));return this.fitToGeometryCache}return this.projection.bounds||k.compositeBounds(e)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:t,y:e,width:i,height:r}=this.playingField,s=this.projection.forward(this.center),n=this.projection.hasCoordinates?-1:1,o=this.getScale(),a=o*n;return{scaleX:o,scaleY:a,translateX:t+i/2-s[0]*o,translateY:e+r/2-s[1]*a}}lonLatToPixels(t){let e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)}lonLatToProjectedUnits(t){let e=this.chart,i=e.mapTransforms;if(i){for(let r in i)if(Object.hasOwnProperty.call(i,r)&&i[r].hitZone){let s=e.transformFromLatLon(t,i[r]);if(s&&l(s,i[r].hitZone.coordinates[0]))return s}return e.transformFromLatLon(t,i.default)}for(let e of this.insets)if(e.options.geoBounds&&l({x:t.lon,y:t.lat},e.options.geoBounds.coordinates[0])){let i=e.projection.forward([t.lon,t.lat]),r=e.projectedUnitsToPixels({x:i[0],y:i[1]});return this.pixelsToProjectedUnits(r)}let r=this.projection.forward([t.lon,t.lat]);if(!r.outside)return{x:r[0],y:r[1]}}projectedUnitsToLonLat(t){let e=this.chart,i=e.mapTransforms;if(i){for(let r in i)if(Object.hasOwnProperty.call(i,r)&&i[r].hitZone&&l(t,i[r].hitZone.coordinates[0]))return e.transformToLatLon(t,i[r]);return e.transformToLatLon(t,i.default)}let r=this.projectedUnitsToPixels(t);for(let t of this.insets)if(t.hitZone&&l(r,t.hitZone.coordinates[0])){let e=t.pixelsToProjectedUnits(r),i=t.projection.inverse([e.x,e.y]);return{lon:i[0],lat:i[1]}}let s=this.projection.inverse([t.x,t.y]);return{lon:s[0],lat:s[1]}}recommendMapView(t,e,i=!1){this.recommendedMapView={};let r=e.map((t=>this.getGeoMap(t))),s=[];r.forEach((t=>{if(t&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=t["hc-recommended-mapview"]||{}),t.bbox)){let[e,i,r,n]=t.bbox;s.push({x1:e,y1:i,x2:r,y2:n})}}));let n=s.length&&k.compositeBounds(s);f(this,"onRecommendMapView",{geoBounds:n,chart:t},(function(){if(n&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:t,y1:e,x2:i,y2:r}=n;this.recommendedMapView.projection=i-t>180&&r-e>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[e,r],rotation:[-(t+i)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}})),this.geoMap=r[0],i&&t.hasRendered&&!t.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(t){this.chart.series.forEach((t=>{t.useMapGeometry&&(t.isDirty=!0)})),this.chart.redraw(t)}setView(t,e,i=!0,r){t&&(this.center=t),"number"==typeof e&&("number"==typeof this.minZoom&&(e=Math.max(e,this.minZoom)),"number"==typeof this.options.maxZoom&&(e=Math.min(e,this.options.maxZoom)),g(e)&&(this.zoom=e));let s=this.getProjectedBounds();if(s){let t=this.projection.forward(this.center),{x:e,y:i,width:r,height:n}=this.playingField,o=this.getScale(),a=this.projectedUnitsToPixels({x:s.x1,y:s.y1}),l=this.projectedUnitsToPixels({x:s.x2,y:s.y2}),c=[(s.x1+s.x2)/2,(s.y1+s.y2)/2];if(!this.chart.series.some((t=>t.isDrilling))){let s=a.x,h=l.y,u=l.x,d=a.y;u-se+r&&s>e&&(t[0]+=Math.min(u-r-e,s-e)/o),d-hi+n&&h>i&&(t[1]-=Math.min(d-n-i,h-i)/o),this.center=this.projection.inverse(t)}this.insets.forEach((t=>{t.options.field&&(t.hitZone=t.getHitZone(),t.playingField=t.getField())})),this.render()}f(this,"afterSetView"),i&&this.redraw(r)}projectedUnitsToPixels(t){let e=this.getScale(),i=this.projection.forward(this.center),r=this.playingField,s=r.x+r.width/2,n=r.y+r.height/2;return{x:s-e*(i[0]-t.x),y:n+e*(i[1]-t.y)}}pixelsToLonLat(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))}pixelsToProjectedUnits(t){let{x:e,y:i}=t,r=this.getScale(),s=this.projection.forward(this.center),n=this.playingField,o=n.x+n.width/2,a=n.y+n.height/2;return{x:s[0]+(e-o)/r,y:s[1]-(i-a)/r}}setUpEvents(){let t,e,i,{chart:r}=this,s=s=>{let{lastTouches:n,pinchDown:o}=r.pointer,a=this.projection,l=s.touches,{mouseDownX:c,mouseDownY:h}=r,u=0;if(1===o?.length?(c=o[0].chartX,h=o[0].chartY):2===o?.length&&(c=(o[0].chartX+o[1].chartX)/2,h=(o[0].chartY+o[1].chartY)/2),2===l?.length&&n&&(u=Math.log(Math.sqrt(Math.pow(n[0].chartX-n[1].chartX,2)+Math.pow(n[0].chartY-n[1].chartY,2))/Math.sqrt(Math.pow(l[0].chartX-l[1].chartX,2)+Math.pow(l[0].chartY-l[1].chartY,2)))/Math.log(.5)),g(c)&&g(h)){let n=`${c},${h}`,{chartX:o,chartY:p}=s.originalEvent;2===l?.length&&(o=(l[0].chartX+l[1].chartX)/2,p=(l[0].chartY+l[1].chartY)/2),n!==e&&(e=n,t=this.projection.forward(this.center),i=(this.projection.options.rotation||[0,0]).slice());let f=a.def&&a.def.bounds,m=f&&C(f,this.playingField)||-1/0;if("Orthographic"===a.options.name&&2>(l?.length||0)&&(this.minZoom||1/0)<1.3*m){let t=440/(this.getScale()*Math.min(r.plotWidth,r.plotHeight));if(i){let e=(c-o)*t-i[0],s=d(-i[1]-(h-p)*t,-80,80),n=this.zoom;this.update({projection:{rotation:[-e,-s]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=n,r.redraw(!1)}}else if(g(o)&&g(p)){let e=this.getScale(),i=this.projection.hasCoordinates?1:-1,r=this.projection.inverse([t[0]+(c-o)/e,t[1]-(h-p)/e*i]);isNaN(r[0]+r[1])||this.zoomBy(u,r,void 0,!1)}s.preventDefault()}};u(r,"pan",s),u(r,"touchpan",s),u(r,"selection",(t=>{if(t.resetSelection)this.zoomBy();else{let e=t.x-r.plotLeft,i=t.y-r.plotTop,{y:s,x:n}=this.pixelsToProjectedUnits({x:e,y:i}),{y:o,x:a}=this.pixelsToProjectedUnits({x:e+t.width,y:i+t.height});this.fitToBounds({x1:n,y1:s,x2:a,y2:o},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||r.showResetZoom(),t.preventDefault()}}))}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(t,e=!0,i){let r=t.projection,s=r&&n.toString(r)!==n.toString(this.options.projection),o=!1;v(!0,this.userOptions,t),v(!0,this.options,t),"insets"in t&&(this.insets.forEach((t=>t.destroy())),this.insets.length=0,o=!0),(s||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(s||o)&&(this.chart.series.forEach((t=>{let e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,o&&e)for(;e.length>1;){let t=e.pop();t&&t.destroy()}})),s&&(this.projection=new n(this.options.projection)),o&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!g(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||g(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.chart.redraw(i)}zoomBy(t,e,i,r){let s=this.chart,n=this.projection.forward(this.center);if("number"==typeof t){let o,a,l,c=this.zoom+t;if(i){let[t,e]=i,r=this.getScale(),o=t-s.plotLeft-s.plotWidth/2,c=e-s.plotTop-s.plotHeight/2;a=n[0]+o/r,l=n[1]+c/r}if("number"==typeof a&&"number"==typeof l){let t=1-Math.pow(2,this.zoom)/Math.pow(2,c),e=n[0]-a,i=n[1]-l;n[0]-=e*t,n[1]+=i*t,o=this.projection.inverse(n)}this.setView(e||o,c,void 0,r)}else this.fitToBounds(void 0,void 0,void 0,r)}}class E extends k{constructor(t,e){if(super(t.chart,e),this.id=e.id,this.mapView=t,this.options=v({center:[0,0]},t.options.insetOptions,e),this.allBounds=[],this.options.geoBounds){let e=t.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=h(e),this.geoBoundsProjectedPolygon=e.map((t=>[t[1]||0,t[2]||0]))}}getField(t=!0){let e=this.hitZone;if(e){let i=t?this.padding:[0,0,0,0],r=e.coordinates[0],s=r.map((t=>t[0])),n=r.map((t=>t[1])),o=Math.min.apply(0,s)+i[3],a=Math.max.apply(0,s)-i[1],l=Math.min.apply(0,n)+i[0],c=Math.max.apply(0,n)-i[2];if(g(o)&&g(l))return{x:o,y:l,width:a-o,height:c-l}}return super.getField.call(this,t)}getHitZone(){let{chart:t,mapView:e,options:i}=this,{coordinates:r}=i.field||{};if(r){let s=r[0];if("percent"===i.units){let r="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||v(t.plotBox,{x:0,y:0});s=s.map((t=>[w(`${t[0]}%`,r.width,r.x),w(`${t[1]}%`,r.height,r.y)]))}return{type:"Polygon",coordinates:[s]}}}getProjectedBounds(){return k.compositeBounds(this.allBounds)}isInside(t){let{geoBoundsProjectedBox:e,geoBoundsProjectedPolygon:i}=this;return!!(e&&t.x>=e.x1&&t.x<=e.x2&&t.y>=e.y1&&t.y<=e.y2&&i&&l(t,i))}render(){let{chart:t,mapView:e,options:i}=this,r=i.borderPath||i.field;if(r&&e.group){let s=!0;this.border||(this.border=t.renderer.path().addClass("highcharts-mapview-inset-border").add(e.group),s=!1),t.styledMode||this.border.attr({stroke:i.borderColor,"stroke-width":i.borderWidth});let n=this.border.strokeWidth(),o="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||e.playingField,a=(r.coordinates||[]).reduce(((e,r)=>r.reduce(((e,r,s)=>{let[a,l]=r;return"percent"===i.units&&(a=t.plotLeft+w(`${a}%`,o.width,o.x),l=t.plotTop+w(`${l}%`,o.height,o.y)),a=p(a,n),l=p(l,n),e.push(0===s?["M",a,l]:["L",a,l]),e}),e)),[]);this.border[s?"animate":"attr"]({d:a})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach((t=>t()))}setUpEvents(){}}return k})),i(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapComposition.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Chart/MapChart.js"],e["Series/Map/MapPoint.js"],e["Series/Map/MapSeriesDefaults.js"],e["Maps/MapView.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n,o,a,l,c){let{animObject:h,stop:u}=t,{noop:d}=r,{splitPath:p}=s,{column:f,scatter:m}=l.seriesTypes,{extend:g,find:y,fireEvent:_,getNestedProperty:v,isArray:x,defined:b,isNumber:w,isObject:S,merge:C,objectEach:T,pick:k,splat:E}=c;class A extends m{constructor(){super(...arguments),this.processedData=[]}animate(t){let{chart:e,group:i}=this,r=h(this.options.animation);t?i.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):i.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},r)}clearBounds(){this.points.forEach((t=>{delete t.bounds,delete t.insetIndex,delete t.projectedPath})),delete this.bounds}doFullTranslate(){return!(!this.isDirtyData&&!this.chart.isResizing&&this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let t=this,{chart:e,group:i,transformGroups:r=[]}=this,{mapView:s,renderer:n}=e;if(s){this.transformGroups=r,r[0]||(r[0]=n.g().add(i));for(let t=0,e=s.insets.length;t{let{graphic:e}=t;t.group=r["number"==typeof t.insetIndex?t.insetIndex+1:0],e&&e.parentGroup!==t.group&&e.add(t.group)})),f.prototype.drawPoints.apply(this),this.points.forEach((i=>{let r=i.graphic;if(r){let s=r.animate,n="";i.name&&(n+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),i.properties&&i.properties["hc-key"]&&(n+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),n&&r.addClass(n),e.styledMode&&r.css(this.pointAttribs(i,i.selected?"select":void 0)),r.attr({visibility:i.visible||!i.visible&&!i.isNull?"inherit":"hidden"}),r.animate=function(i,n,o){let a=w(i["stroke-width"])&&!w(r["stroke-width"]),l=w(r["stroke-width"])&&!w(i["stroke-width"]);if(a||l){let s=k(t.getStrokeWidth(t.options),1)/(e.mapView&&e.mapView.getScale()||1);a&&(r["stroke-width"]=s),l&&(i["stroke-width"]=s)}return s.call(r,i,n,l?function(){r.element.removeAttribute("stroke-width"),delete r["stroke-width"],o&&o.apply(this,arguments)}:o)}}}))),r.forEach(((i,r)=>{let o=(0===r?s:s.insets[r-1]).getSVGTransform(),a=k(this.getStrokeWidth(this.options),1),l=o.scaleX,c=o.scaleY>0?1:-1,d=e=>{(t.points||[]).forEach((t=>{let i,r=t.graphic;r&&r["stroke-width"]&&(i=this.getStrokeWidth(t.options))&&r.attr({"stroke-width":i/e})}))};if(n.globalAnimation&&e.hasRendered&&s.allowTransformAnimation){let t=Number(i.attr("translateX")),e=Number(i.attr("translateY")),r=Number(i.attr("scaleX")),s=(s,n)=>{let h=r+(l-r)*n.pos;i.attr({translateX:t+(o.translateX-t)*n.pos,translateY:e+(o.translateY-e)*n.pos,scaleX:h,scaleY:h*c,"stroke-width":a/h}),d(h)},u=C(h(n.globalAnimation)),p=u.step;u.step=function(){p&&p.apply(this,arguments),s.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},u,function(){"boolean"!=typeof n.globalAnimation&&n.globalAnimation.complete&&n.globalAnimation.complete({applyDrilldown:!0}),_(this,"mapZoomComplete")}.bind(this))}else u(i),i.attr(C(o,{"stroke-width":a/l})),d(l)})),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:t,projection:e}=this.chart.mapView,i=[];(this.points||[]).forEach((r=>{if(r.path||r.geometry){if("string"==typeof r.path?r.path=p(r.path):x(r.path)&&"M"===r.path[0]&&(r.path=this.chart.renderer.pathToSegments(r.path)),!r.bounds){let i=r.getProjectedBounds(e);if(i){r.labelrank=k(r.labelrank,(i.x2-i.x1)*(i.y2-i.y1));let{midX:e,midY:s}=i;if(t&&w(e)&&w(s)){let n=y(t,(t=>t.isInside({x:e,y:s})));n&&(delete r.projectedPath,(i=r.getProjectedBounds(n.projection))&&n.allBounds.push(i),r.insetIndex=t.indexOf(n))}r.bounds=i}}r.bounds&&void 0===r.insetIndex&&i.push(r.bounds)}})),this.bounds=a.compositeBounds(i)}return this.bounds}getStrokeWidth(t){let e=this.pointAttrToOptions;return t[e&&e["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(t,e){let{mapView:i,styledMode:r}=t.series.chart,s=r?this.colorAttribs(t):f.prototype.pointAttribs.call(this,t,e),n=this.getStrokeWidth(t.options);if(e){let i=C(this.options.states&&this.options.states[e],t.options.states&&t.options.states[e]||{}),r=this.getStrokeWidth(i);b(r)&&(n=r),s.stroke=i.borderColor??t.color}n&&i&&(n/=i.getScale());let o=this.getStrokeWidth(this.options);return s.dashstyle&&i&&w(o)&&(n=o/i.getScale()),t.visible||(s.fill=this.options.nullColor),b(n)?s["stroke-width"]=n:delete s["stroke-width"],s["stroke-linecap"]=s["stroke-linejoin"]=this.options.linecap,s}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(t,e=!0,i,r){delete this.bounds,super.setData(t,!1,void 0,r),this.processData(),this.generatePoints(),e&&this.chart.redraw(i)}processData(){let t,e,i,s=this.options,o=s.data,a=this.chart,l=a.options.chart,c=this.joinBy,h=s.keys||this.pointArrayMap,u=[],d={},p=this.chart.mapView,f=p&&(S(s.mapData,!0)?p.getGeoMap(s.mapData):p.geoMap),m=a.mapTransforms=l.mapTransforms||f&&f["hc-transform"]||a.mapTransforms;m&&T(m,(t=>{t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))})),x(s.mapData)?i=s.mapData:f&&"FeatureCollection"===f.type&&(this.mapTitle=f.title,i=r.geojson(f,this.type,this)),this.processedData=[];let g=this.processedData;if(o){let t;for(let e=0,i=o.length;eh.length&&"string"==typeof t[0]&&(g[e]["hc-key"]=t[0],++i);for(let r=0;r0?n.prototype.setNestedProperty(g[e],t[i],h[r]):g[e][h[r]]=t[i])}else g[e]=o[e];c&&"_i"===c[0]&&(g[e]._i=e)}}if(i){this.mapData=i,this.mapMap={};for(let r=0;r{let i=v(t,e);d[i]&&u.push(d[i])}))}if(s.allAreas){if(c[1]){let t=c[1];g.forEach((e=>{u.push(v(t,e))}))}let t="|"+u.map((function(t){return t&&t[c[0]]})).join("|")+"|";i.forEach((e=>{c[0]&&-1!==t.indexOf("|"+e[c[0]]+"|")||g.push(C(e,{value:null}))}))}}this.processedXData=Array(g.length)}setOptions(t){let e=super.setOptions(t),i=e.joinBy;return null===e.joinBy&&(i="_i"),(i=this.joinBy=E(i))[1]||(i[1]=i[0]),e}translate(){let t=this.doFullTranslate(),e=this.chart.mapView,i=e&&e.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||w(e.userOptions.zoom)||e.zoom!==e.minZoom?this.getProjectedBounds():e.fitToBounds(void 0,void 0,!1)),e){let r=e.getSVGTransform();this.points.forEach((s=>{let o=w(s.insetIndex)&&e.insets[s.insetIndex].getSVGTransform()||r;o&&s.bounds&&w(s.bounds.midX)&&w(s.bounds.midY)&&(s.plotX=s.bounds.midX*o.scaleX+o.translateX,s.plotY=s.bounds.midY*o.scaleY+o.translateY),t&&(s.shapeType="path",s.shapeArgs={d:n.getProjectedPath(s,i)}),s.hiddenInDataClass||(s.projectedPath&&!s.projectedPath.length?s.setVisible(!1):s.visible||s.setVisible(!0))}))}_(this,"afterTranslate")}update(t){t.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map(((e,i)=>i===this._i?t.mapData:e.mapData))],!0),super.update.apply(this,arguments)}}return A.defaultOptions=C(m.defaultOptions,o),g(A.prototype,{type:"map",axisTypes:e.seriesMembers.axisTypes,colorAttribs:e.seriesMembers.colorAttribs,colorKey:e.seriesMembers.colorKey,directTouch:!0,drawDataLabels:d,drawGraph:d,forceDL:!0,getCenter:i.getCenter,getExtremesFromAll:!0,getSymbol:d,isCartesian:!1,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:e.seriesMembers.pointArrayMap,pointClass:n,preserveAspectRatio:!0,searchPoint:d,trackerGroups:e.seriesMembers.trackerGroups,useMapGeometry:!0}),e.compose(A),l.registerSeriesType("map",A),A})),i(e,"Series/MapLine/MapLineSeriesDefaults.js",[],(function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}})),i(e,"Series/MapLine/MapLineSeries.js",[e["Series/MapLine/MapLineSeriesDefaults.js"],e["Series/Map/MapSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r){let{extend:s,merge:n}=r;class o extends e{pointAttribs(t,e){let i=super.pointAttribs(t,e);return i.fill=this.options.fillColor,i}}return o.defaultOptions=n(e.defaultOptions,t),s(o.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),i.registerSeriesType("mapline",o),o})),i(e,"Series/MapPoint/MapPointPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e){let{scatter:i}=t.seriesTypes,{isNumber:r}=e;class s extends i.prototype.pointClass{isValid(){return!!(this.options.geometry||r(this.x)&&r(this.y)||r(this.options.lon)&&r(this.options.lat))}}return s})),i(e,"Series/MapPoint/MapPointSeriesDefaults.js",[],(function(){return{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}})),i(e,"Series/MapPoint/MapPointSeries.js",[e["Core/Globals.js"],e["Series/MapPoint/MapPointPoint.js"],e["Series/MapPoint/MapPointSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n){let{noop:o}=t,{map:a,scatter:l}=r.seriesTypes,{extend:c,fireEvent:h,isNumber:u,merge:d}=n;class p extends l{constructor(){super(...arguments),this.clearBounds=a.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(t){let e=this.chart.mapView;if(e){let{geometry:i,lon:r,lat:s}=t,n=i&&"Point"===i.type&&i.coordinates;if(u(r)&&u(s)&&(n=[r,s]),n)return e.lonLatToProjectedUnits({lon:n[0],lat:n[1]})}}translate(){let t=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),t){let e=t.getSVGTransform(),{hasCoordinates:i}=t.projection;this.points.forEach((r=>{let s,{x:n,y:o}=r,a=u(r.insetIndex)&&t.insets[r.insetIndex].getSVGTransform()||e,l=this.projectPoint(r.options)||r.properties&&this.projectPoint(r.properties);if(l?(n=l.x,o=l.y):r.bounds&&(n=r.bounds.midX,o=r.bounds.midY,a&&u(n)&&u(o)&&(r.plotX=n*a.scaleX+a.translateX,r.plotY=o*a.scaleY+a.translateY,s=!0)),u(n)&&u(o)){if(!s){let e=t.projectedUnitsToPixels({x:n,y:o});r.plotX=e.x,r.plotY=i?e.y:this.chart.plotHeight-e.y}}else r.y=r.plotX=r.plotY=void 0;r.isInside=this.isPointInside(r),r.zone=this.zones.length?r.getZone():void 0}))}h(this,"afterTranslate")}}return p.defaultOptions=d(l.defaultOptions,i),s.prototype.symbols.mapmarker=(t,e,i,r,s)=>{let n,o,a=s&&"legend"===s.context;a?(n=t+i/2,o=e+r):s&&"number"==typeof s.anchorX&&"number"==typeof s.anchorY?(n=s.anchorX,o=s.anchorY):(n=t+i/2,o=e+r/2,e-=r);let l=a?r/3:r/2;return[["M",n,o],["C",n,o,n-l,e+1.5*l,n-l,e+l],["A",l,l,1,1,1,n+l,e+l],["C",n+l,e+1.5*l,n,o,n,o],["Z"]]},c(p.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:e,searchPoint:o,useMapGeometry:!0}),r.registerSeriesType("mappoint",p),p})),i(e,"Series/Bubble/BubbleLegendDefaults.js",[],(function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}})),i(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i,r){let{parse:s}=t,{noop:n}=i,{arrayMax:o,arrayMin:a,isNumber:l,merge:c,pick:h,stableSort:u}=r;return class{constructor(t,e){this.setState=n,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,i=h(t.options.itemDistance,20),r=this.legendItem||{},s=this.options,n=s.ranges,o=s.connectorDistance;if(!n||!n.length||!l(n[0].value))return void(t.options.bubbleLegend.autoRanges=!0);u(n,(function(t,e){return e.value-t.value})),this.ranges=n,this.setOptions(),this.render();let a=this.getMaxLabelSize(),c=this.ranges[0].radius,d=2*c;e=(e=o-c+a.width)>0?e:0,this.maxLabel=a,this.movementX="left"===s.labels.align?e:0,r.labelWidth=d+e+i,r.labelHeight=d+a.height/2}setOptions(){let t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],r=this.legend.baseline,n={zIndex:e.zIndex,"stroke-width":e.borderWidth},o={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=i.options.marker.fillOpacity,u=this.chart.styledMode;t.forEach((function(d,p){u||(n.stroke=h(d.borderColor,e.borderColor,i.color),n.fill=h(d.color,e.color,1!==l?s(i.color).setOpacity(l).get("rgba"):i.color),o.stroke=h(d.connectorColor,e.connectorColor,i.color)),t[p].radius=this.getRangeRadius(d.value),t[p]=c(t[p],{center:t[0].radius-t[p].radius+r}),u||c(!0,t[p],{bubbleAttribs:c(n),connectorAttribs:c(o),labelAttribs:a})}),this)}getRangeRadius(t){let e=this.options,i=this.options.seriesIndex,r=this.chart.series[i],s=e.ranges[0].value,n=e.ranges[e.ranges.length-1].value,o=e.minSize,a=e.maxSize;return r.getRadius.call(this,n,s,o,a,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;for(let r of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))r.value>=i&&this.renderRange(r);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],i=this.legend,r=this.options,s=r.labels,n=this.chart,o=n.series[r.seriesIndex],a=n.renderer,l=this.symbols,c=l.labels,h=t.center,u=Math.abs(t.radius),d=r.connectorDistance||0,p=s.align,f=i.options.rtl,m=r.borderWidth,g=r.connectorWidth,y=e.radius||0,_=h-u-m/2+g/2,v=(_%1?1:.5)-(g%2?0:.5),x=a.styledMode,b=f||"left"===p?-d:d;"center"===p&&(b=0,r.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(a.circle(y,h+v,u).attr(x?{}:t.bubbleAttribs).addClass((x?"highcharts-color-"+o.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(r.className||"")).add(this.legendItem.symbol)),l.connectors.push(a.path(a.crispLine([["M",y,_],["L",y+b,_]],r.connectorWidth)).attr(x?{}:t.connectorAttribs).addClass((x?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(r.connectorClassName||"")).add(this.legendItem.symbol));let w=a.text(this.formatLabel(t)).attr(x?{}:t.labelAttribs).css(x?{}:s.style).addClass("highcharts-bubble-legend-labels "+(r.labels.className||"")).add(this.legendItem.symbol),S={x:y+b+r.labels.x,y:_+r.labels.y+.4*w.getBBox().height};w.attr(S),c.push(w),w.placed=!0,w.alignAttr=S}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach((function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e})),t||{}}formatLabel(t){let i=this.options,r=i.labels.formatter,s=i.labels.format,{numberFormatter:n}=this.chart;return s?e.format(s,t):r?r.call(t):n(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach((function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()})))}getRanges(){let t,e,i=this.legend.bubbleLegend,r=i.chart.series,s=i.options.ranges,n=Number.MAX_VALUE,u=-Number.MAX_VALUE;return r.forEach((function(t){t.isBubble&&!t.ignoreSeries&&(e=t.zData.filter(l)).length&&(n=h(t.options.zMin,Math.min(n,Math.max(a(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),u=h(t.options.zMax,Math.max(u,o(e))))})),t=n===u?[{value:u}]:[{value:n},{value:(n+u)/2},{value:u,autoRanges:!0}],s.length&&s[0].radius&&t.reverse(),t.forEach((function(e,i){s&&s[i]&&(t[i]=c(s[i],e))})),t}predictBubbleSizes(){let t,e=this.chart,i=e.legend.options,r=i.floating,s="horizontal"===i.layout,n=s?e.legend.lastLineHeight:0,o=e.plotSizeX,a=e.plotSizeY,l=e.series[this.options.seriesIndex],c=l.getPxExtremes(),h=Math.ceil(c.minPxSize),u=Math.ceil(c.maxPxSize),d=Math.min(a,o),p=l.options.maxSize;return r||!/%$/.test(p)?t=u:(t=(d+n)*(p=parseFloat(p))/100/(p/100+1),(s&&a-t>=o||!s&&o-t>=a)&&(t=u)),[h,Math.ceil(t)]}updateRanges(t,e){let i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}}})),i(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s){let{setOptions:n}=i,{composed:o}=r,{addEvent:a,objectEach:l,pushUnique:c,wrap:h}=s;function u(t,e,i){let r,s,n,o=this.legend,a=d(this)>=0;o&&o.options.enabled&&o.bubbleLegend&&o.options.bubbleLegend.autoRanges&&a?(r=o.bubbleLegend.options,s=o.bubbleLegend.predictBubbleSizes(),o.bubbleLegend.updateRanges(s[0],s[1]),r.placed||(o.group.placed=!1,o.allItems.forEach((t=>{(n=t.legendItem||{}).group&&(n.group.translateY=void 0)}))),o.render(),r.placed||(this.getMargins(),this.axes.forEach((function(t){t.visible&&t.render(),r.placed||(t.setScale(),t.updateNames(),l(t.ticks,(function(t){t.isNew=!0,t.isNewLabel=!0})))})),this.getMargins()),r.placed=!0,t.call(this,e,i),o.bubbleLegend.correctSizes(),g(o,p(o))):(t.call(this,e,i),o&&o.options.enabled&&o.bubbleLegend&&(o.render(),g(o,p(o))))}function d(t){let e=t.series,i=0;for(;ie.height&&(e.height=s[l].itemHeight);e.step=a}return n}function f(t){let i=this.bubbleLegend,r=this.options,s=r.bubbleLegend,n=d(this.chart);i&&i.ranges&&i.ranges.length&&(s.ranges.length&&(s.autoRanges=!!s.ranges[0].autoRanges),this.destroyItem(i)),n>=0&&r.enabled&&s.enabled&&(s.seriesIndex=n,this.bubbleLegend=new e(s,this),this.bubbleLegend.addToLegend(t.allItems))}function m(t){let e;if(t.defaultPrevented)return!1;let i=t.legendItem,r=this.chart,s=i.visible;this&&this.bubbleLegend&&(i.visible=!s,i.ignoreSeries=s,e=d(r)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),i.visible=s)}function g(t,e){let i,r,s,n,o=t.allItems,a=t.options.rtl,l=0;o.forEach(((t,o)=>{(n=t.legendItem||{}).group&&(i=n.group.translateX||0,r=n.y||0,((s=t.movementX)||a&&t.ranges)&&(s=a?i-t.options.maxSize/2:i+s,n.group.attr({translateX:s})),o>e[l].step&&l++,n.group.attr({translateY:Math.round(r+e[l].height/2)}),n.y=r+e[l].height/2)}))}return{compose:function(e,i){c(o,"Series.BubbleLegend")&&(n({legend:{bubbleLegend:t}}),h(e.prototype,"drawChartBox",u),a(i,"afterGetAllItems",f),a(i,"itemClick",m))}}})),i(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{seriesTypes:{scatter:{prototype:{pointClass:r}}}}=e,{extend:s}=i;class n extends r{haloPath(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)}}return s(n.prototype,{ttBelow:!1}),n})),i(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r,s,n){let{parse:o}=i,{composed:a,noop:l}=r,{series:c,seriesTypes:{column:{prototype:h},scatter:u}}=s,{addEvent:d,arrayMax:p,arrayMin:f,clamp:m,extend:g,isNumber:y,merge:_,pick:v,pushUnique:x}=n;function b(){let t,e=this.len,{coll:i,isXAxis:r,min:s}=this,n=r?"xData":"yData",o=(this.max||0)-(s||0),a=0,l=e,c=e/o;("xAxis"===i||"yAxis"===i)&&(this.series.forEach((e=>{if(e.bubblePadding&&e.reserveSpace()){this.allowZoomOutside=!0,t=!0;let i=e[n];if(r&&((e.onPoint||e).getRadii(0,0,e),e.onPoint&&(e.radii=e.onPoint.radii)),o>0){let t=i.length;for(;t--;)if(y(i[t])&&this.dataMin<=i[t]&&i[t]<=this.max){let r=e.radii&&e.radii[t]||0;a=Math.min((i[t]-s)*c-r,a),l=Math.max((i[t]-s)*c+r,l)}}}})),t&&o>0&&!this.logarithmic&&(l-=e,c*=(e+Math.max(0,a)-Math.min(l,e))/e,[["min","userMin",a],["max","userMax",l]].forEach((t=>{void 0===v(this.options[t[0]],this[t[1]])&&(this[t[0]]+=t[2]/c)}))))}class w extends u{static compose(e,i,r){t.compose(i,r),x(a,"Series.Bubble")&&d(e,"foundExtremes",b)}animate(t){!t&&this.points.length{if(r.bubblePadding&&r.reserveSpace()){let s=(r.onPoint||r).getZExtremes();s&&(e=Math.min(v(e,s.zMin),s.zMin),i=Math.max(v(i,s.zMax),s.zMax),t=!0)}})),t?(o={zMin:e,zMax:i},this.chart.bubbleZExtremes=o):o={zMin:0,zMax:0}}for(e=0,t=r.length;e0&&(h=(s-t)/c)}return a&&h>=0&&(h=Math.sqrt(h)),Math.ceil(i+h*(r-i))/2}hasData(){return!!this.processedXData.length}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:r=0,width:s=0}=i;return this.chart.inverted?g(i,{x:(t.plotX||0)-s/2,y:(t.plotY||0)-r/2}):i}pointAttribs(t,e){let i=this.options.marker.fillOpacity,r=c.prototype.pointAttribs.call(this,t,e);return 1!==i&&(r.fill=o(r.fill).setOpacity(i).get("rgba")),r}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t,options:e,radii:i}=this,{minPxSize:r}=this.getPxExtremes(),s=t.length;for(;s--;){let n=t[s],o=i?i[s]:0;"z"===this.zoneAxis&&(n.negative=(n.z||0)<(e.zThreshold||0)),y(o)&&o>=r/2?(n.marker=g(n.marker,{radius:o,width:2*o,height:2*o}),n.dlBox={x:n.plotX-o,y:n.plotY-o,width:2*o,height:2*o}):(n.shapeArgs=n.plotY=n.dlBox=void 0,n.isInside=!1)}}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(v(this.options.minSize,8));return{minPxSize:i,maxPxSize:Math.max(e(v(this.options.maxSize,"20%")),i)}}getZExtremes(){let t=this.options,e=(this.zData||[]).filter(y);if(e.length){let i=v(t.zMin,m(f(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),r=v(t.zMax,p(e));if(y(i)&&y(r))return{zMin:i,zMax:r}}}}return w.defaultOptions=_(u.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return y(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),g(w.prototype,{alignDataLabel:h.alignDataLabel,applyZones:l,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),d(w,"updatedData",(t=>{delete t.target.chart.bubbleZExtremes})),d(w,"remove",(t=>{delete t.target.chart.bubbleZExtremes})),s.registerSeriesType("bubble",w),w})),i(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Bubble/BubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{seriesTypes:{map:{prototype:{pointClass:{prototype:r}}}}}=e,{extend:s}=i;class n extends t{isValid(){return"number"==typeof this.z}}return s(n.prototype,{applyOptions:r.applyOptions,getProjectedBounds:r.getProjectedBounds}),n})),i(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],e["Series/MapBubble/MapBubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,r){let{seriesTypes:{map:{prototype:s},mappoint:{prototype:n}}}=i,{extend:o,merge:a}=r;class l extends t{constructor(){super(...arguments),this.clearBounds=s.clearBounds}searchPoint(t,e){return this.searchKDTree({plotX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)}translate(){n.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(t,e,i){super.updateParallelArrays.call(this,t,e,i);let r=this.processedXData,s=this.xData;r&&s&&(r.length=s.length)}}return l.defaultOptions=a(t.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),o(l.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:s.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:s.processData,projectPoint:n.projectPoint,kdAxisArray:["plotX","plotY"],setData:s.setData,setOptions:s.setOptions,updateData:s.updateData,useMapGeometry:!0,xyFromShape:!0}),i.registerSeriesType("mapbubble",l),l})),i(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e){let{scatter:{prototype:{pointClass:i}}}=t.seriesTypes,{clamp:r,defined:s,extend:n,pick:o}=e;class a extends i{applyOptions(t,e){return(this.isNull||null===this.value)&&delete this.color,super.applyOptions(t,e),this.formatPrefix=this.isNull||null===this.value?"null":"point",this}getCellAttributes(){let t=this.series,e=t.options,i=(e.colsize||1)/2,n=(e.rowsize||1)/2,a=t.xAxis,l=t.yAxis,c=this.options.marker||t.options.marker,h=t.pointPlacementToXValue(),u=o(this.pointPadding,e.pointPadding,0),d={x1:r(Math.round(a.len-a.translate(this.x-i,!1,!0,!1,!0,-h)),-a.len,2*a.len),x2:r(Math.round(a.len-a.translate(this.x+i,!1,!0,!1,!0,-h)),-a.len,2*a.len),y1:r(Math.round(l.translate(this.y-n,!1,!0,!1,!0)),-l.len,2*l.len),y2:r(Math.round(l.translate(this.y+n,!1,!0,!1,!0)),-l.len,2*l.len)};for(let t of[["width","x"],["height","y"]]){let e=t[0],i=t[1],r=i+"1",n=i+"2",o=Math.abs(d[r]-d[n]),h=c&&c.lineWidth||0,p=Math.abs(d[r]+d[n])/2,f=c&&c[e];if(s(f)&&f"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}})),i(e,"Series/InterpolationUtilities.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e){let{doc:i}=t,{defined:r,pick:s}=e;return{colorFromPoint:function(t,e){let i=e.series.colorAxis;if(i){let n=i.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map((t=>s(parseFloat(t),parseInt(t,10))));return n[3]=255*s(n[3],1),r(t)&&e.visible||(n[3]=0),n}return[0,0,0,0]},getContext:function(t){let{canvas:e,context:r}=t;return e&&r?(r.clearRect(0,0,e.width,e.height),r):(t.canvas=i.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}}})),i(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],e["Series/Heatmap/HeatmapSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"],e["Series/InterpolationUtilities.js"]],(function(t,e,i,r,s,n,o,a){let{series:l,seriesTypes:{column:c,scatter:h}}=s,{prototype:{symbols:u}}=n,{addEvent:d,extend:p,fireEvent:f,isNumber:m,merge:g,pick:y}=o,{colorFromPoint:_,getContext:v}=a;class x extends h{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let t=this,e=t.options,i=e.interpolation,r=e.marker||{};if(i){let{image:e,chart:i,xAxis:r,yAxis:s}=t,{reversed:n=!1,len:o}=r,{reversed:a=!1,len:l}=s,c={width:o,height:l};if(!e||t.isDirtyData||t.isDirtyCanvas){let o=v(t),{canvas:l,options:{colsize:h=1,rowsize:u=1},points:d,points:{length:p}}=t,f=i.colorAxis&&i.colorAxis[0];if(l&&o&&f){let{min:f,max:m}=r.getExtremes(),{min:g,max:y}=s.getExtremes(),v=m-f,x=y-g,b=Math.round(v/h/8*8),w=Math.round(x/u/8*8),[S,C]=[[b,b/v,n,"ceil"],[w,w/x,!a,"floor"]].map((([t,e,i,r])=>i?i=>Math[r](t-e*i):t=>Math[r](e*t))),T=l.width=b+1,k=T*(l.height=w+1),E=(p-1)/k,A=new Uint8ClampedArray(4*k),M=(t,e)=>4*Math.ceil(T*C(e-g)+S(t-f));t.buildKDTree();for(let t=0;t{e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))})))}getExtremes(){let{dataMin:t,dataMax:e}=l.prototype.getExtremes.call(this,this.valueData);return m(t)&&(this.valueMin=t),m(e)&&(this.valueMax=e),l.prototype.getExtremes.call(this)}getValidPoints(t,e){return l.prototype.getValidPoints.call(this,t,e,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let t=this.options;t.pointRange=y(t.pointRange,t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1,u.ellipse=u.circle,t.marker&&m(t.borderRadius)&&(t.marker.r=t.borderRadius)}markerAttribs(t,e){let i=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){let r=t.options.marker||{},s=this.options.marker||{},n=s.states&&s.states[e]||{},o=r.states&&r.states[e]||{},a=(o.width||n.width||i.width||0)+(o.widthPlus||n.widthPlus||0),l=(o.height||n.height||i.height||0)+(o.heightPlus||n.heightPlus||0);return{x:(i.x||0)+((i.width||0)-a)/2,y:(i.y||0)+((i.height||0)-l)/2,width:a,height:l}}return i}pointAttribs(e,i){let r=l.prototype.pointAttribs.call(this,e,i),s=this.options||{},n=this.chart.options.plotOptions||{},o=n.series||{},a=n.heatmap||{},c=e&&e.options.borderColor||s.borderColor||a.borderColor||o.borderColor,h=e&&e.options.borderWidth||s.borderWidth||a.borderWidth||o.borderWidth||r["stroke-width"];if(r.stroke=e&&e.marker&&e.marker.lineColor||s.marker&&s.marker.lineColor||c||this.color,r["stroke-width"]=h,i&&"normal"!==i){let n=g(s.states&&s.states[i],s.marker&&s.marker.states&&s.marker.states[i],e&&e.options.states&&e.options.states[i]||{});r.fill=n.color||t.parse(r.fill).brighten(n.brightness||0).get(),r.stroke=n.lineColor||r.stroke}return r}translate(){let{borderRadius:t,marker:e}=this.options,i=e&&e.symbol||"rect",r=u[i]?i:"rect",s=-1!==["circle","square"].indexOf(r);for(let e of(this.generatePoints(),this.points)){let n=e.getCellAttributes(),o=Math.min(n.x1,n.x2),a=Math.min(n.y1,n.y2),l=Math.max(Math.abs(n.x2-n.x1),0),c=Math.max(Math.abs(n.y2-n.y1),0);if(e.hasImage=0===(e.marker&&e.marker.symbol||i||"").indexOf("url"),s){let t=Math.abs(l-c);o=Math.min(n.x1,n.x2)+(l]*>|>)([\\s\\S]*?)<\\/"+t+">",e?"gim":"im")}function d(t){if(null==t)return;let e=NaN;return e="ms"==t.slice(-2)?parseFloat(t.slice(0,-2)):"s"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1)):"m"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1))*60:parseFloat(t),isNaN(e)?void 0:e}function ee(t,e){return t.getAttribute&&t.getAttribute(e)}function o(t,e){return t.hasAttribute&&(t.hasAttribute(e)||t.hasAttribute("data-"+e))}function te(t,e){return ee(t,e)||ee(t,"data-"+e)}function u(t){return t.parentElement}function re(){return document}function c(t,e){for(;t&&!e(t);)t=u(t);return t||null}function L(t,e,i){var r=te(e,i),s=te(e,"hx-disinherit");return t!==e&&s&&("*"===s||s.split(" ").indexOf(i)>=0)?"unset":r}function ne(t,e){var i=null;if(c(t,(function(r){return i=L(t,r,e)})),"unset"!==i)return i}function h(t,e){var i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector;return i&&i.call(t,e)}function A(t){var e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(t);return e?e[1].toLowerCase():""}function s(t,e){for(var i=(new DOMParser).parseFromString(t,"text/html").body;e>0;)e--,i=i.firstChild;return null==i&&(i=re().createDocumentFragment()),i}function N(t){return/"+r+"",0).querySelector("template").content;return Q.config.allowScriptTags?oe(n.querySelectorAll("script"),(function(t){Q.config.inlineScriptNonce&&(t.nonce=Q.config.inlineScriptNonce),t.htmxExecuted=-1===navigator.userAgent.indexOf("Firefox")})):oe(n.querySelectorAll("script"),(function(t){_(t)})),n}switch(i){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return s("",1);case"col":return s("",2);case"tr":return s("",2);case"td":case"th":return s("",3);case"script":case"style":return s(""+r+"
",1);default:return s(r,0)}}function ie(t){t&&t()}function I(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function k(t){return I(t,"Function")}function P(t){return I(t,"Object")}function ae(t){var e="htmx-internal-data",i=t[e];return i||(i=t[e]={}),i}function M(t){var e=[];if(t)for(var i=0;i=0}function se(t){return t.getRootNode&&t.getRootNode()instanceof window.ShadowRoot?re().body.contains(t.getRootNode().host):re().body.contains(t)}function D(t){return t.trim().split(/\s+/)}function le(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function E(t){try{return JSON.parse(t)}catch(t){return b(t),null}}function U(){var t="htmx:localStorageTest";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}function B(t){try{var e=new URL(t);return e&&(t=e.pathname+e.search),/^\/$/.test(t)||(t=t.replace(/\/+$/,"")),t}catch(e){return t}}function t(e){return Tr(re().body,(function(){return eval(e)}))}function F(t){return Q.on("htmx:load",(function(e){t(e.detail.elt)}))}function V(){Q.logger=function(t,e,i){console&&console.log(e,t,i)}}function j(){Q.logger=null}function C(t,e){return e?t.querySelector(e):C(re(),t)}function f(t,e){return e?t.querySelectorAll(e):f(re(),t)}function _(t,e){t=p(t),e?setTimeout((function(){_(t),t=null}),e):t.parentElement.removeChild(t)}function z(t,e,i){t=p(t),i?setTimeout((function(){z(t,e),t=null}),i):t.classList&&t.classList.add(e)}function n(t,e,i){t=p(t),i?setTimeout((function(){n(t,e),t=null}),i):t.classList&&(t.classList.remove(e),0===t.classList.length&&t.removeAttribute("class"))}function $(t,e){(t=p(t)).classList.toggle(e)}function W(t,e){oe((t=p(t)).parentElement.children,(function(t){n(t,e)})),z(t,e)}function v(t,e){if((t=p(t)).closest)return t.closest(e);do{if(null==t||h(t,e))return t}while(t=t&&u(t));return null}function g(t,e){return t.substring(0,e.length)===e}function G(t,e){return t.substring(t.length-e.length)===e}function J(t){var e=t.trim();return g(e,"<")&&G(e,"/>")?e.substring(1,e.length-2):e}function Z(t,e){return 0===e.indexOf("closest ")?[v(t,J(e.substr(8)))]:0===e.indexOf("find ")?[C(t,J(e.substr(5)))]:"next"===e?[t.nextElementSibling]:0===e.indexOf("next ")?[K(t,J(e.substr(5)))]:"previous"===e?[t.previousElementSibling]:0===e.indexOf("previous ")?[Y(t,J(e.substr(9)))]:"document"===e?[document]:"window"===e?[window]:"body"===e?[document.body]:re().querySelectorAll(J(e))}var K=function(t,e){for(var i=re().querySelectorAll(e),r=0;r=0;r--){var s=i[r];if(s.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING)return s}};function ue(t,e){return e?Z(t,e)[0]:Z(re().body,t)[0]}function p(t){return I(t,"String")?C(t):t}function ve(t,e,i){return k(e)?{target:re().body,event:t,listener:e}:{target:p(t),event:e,listener:i}}function de(t,e,i){return jr((function(){var r=ve(t,e,i);r.target.addEventListener(r.event,r.listener)})),k(e)?e:i}function ge(t,e,i){return jr((function(){var r=ve(t,e,i);r.target.removeEventListener(r.event,r.listener)})),k(e)?e:i}var pe=re().createElement("output");function me(t,e){var i=ne(t,e);if(i){if("this"===i)return[xe(t,e)];var r=Z(t,i);return 0===r.length?(b('The selector "'+i+'" on '+e+" returned no matches!"),[pe]):r}}function xe(t,e){return c(t,(function(t){return null!=te(t,e)}))}function ye(t){var e=ne(t,"hx-target");return e?"this"===e?xe(t,"hx-target"):ue(t,e):ae(t).boosted?re().body:t}function be(t){for(var e=Q.config.attributesToSettle,i=0;i0?(s=t.substr(0,t.indexOf(":")),r=t.substr(t.indexOf(":")+1,t.length)):s=t);var n=re().querySelectorAll(r);return n?(oe(n,(function(t){var r,n=e.cloneNode(!0);(r=re().createDocumentFragment()).appendChild(n),Se(s,t)||(r=n);var o={shouldSwap:!0,target:t,fragment:r};ce(t,"htmx:oobBeforeSwap",o)&&(t=o.target,o.shouldSwap&&Fe(s,t,t,r,i),oe(i.elts,(function(t){ce(t,"htmx:oobAfterSwap",o)})))})),e.parentNode.removeChild(e)):(e.parentNode.removeChild(e),fe(re().body,"htmx:oobErrorNoTarget",{content:e})),t}function Ce(t,e,i){var r=ne(t,"hx-select-oob");if(r)for(var s=r.split(","),n=0;n0){var s=r.replace("'","\\'"),n=e.tagName.replace(":","\\:"),o=t.querySelector(n+"[id='"+s+"']");if(o&&o!==t){var a=e.cloneNode();we(e,o),i.tasks.push((function(){we(e,a)}))}}}))}function Oe(t){return function(){n(t,Q.config.addedClass),zt(t),Nt(t),qe(t),ce(t,"htmx:load")}}function qe(t){var e="[autofocus]",i=h(t,e)?t:t.querySelector(e);null!=i&&i.focus()}function a(t,e,i,r){for(Te(t,i,r);i.childNodes.length>0;){var s=i.firstChild;z(s,Q.config.addedClass),t.insertBefore(s,e),s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.COMMENT_NODE&&r.tasks.push(Oe(s))}}function He(t,e){for(var i=0;i-1){var e=t.replace(H,"").match(q);if(e)return e[2]}}function je(t,e,i,r,s,n){s.title=Ve(r);var o=l(r);if(o)return Ce(i,o,s),Re(o=Be(i,o,n)),Fe(t,i,e,o,s)}function _e(t,e,i){var r=t.getResponseHeader(e);if(0===r.indexOf("{")){var s=E(r);for(var n in s)if(s.hasOwnProperty(n)){var o=s[n];P(o)||(o={value:o}),ce(i,n,o)}}else for(var a=r.split(","),l=0;l0;){var o=e[0];if("]"===o){if(0==--r){null===n&&(s+="true"),e.shift(),s+=")})";try{var a=Tr(t,(function(){return Function(s)()}),(function(){return!0}));return a.source=s,a}catch(t){return fe(re().body,"htmx:syntax:error",{error:t,source:s}),null}}}else"["===o&&r++;Qe(o,n,i)?s+="(("+i+"."+o+") ? ("+i+"."+o+") : (window."+o+"))":s+=o,n=e.shift()}}}function y(t,e){for(var i="";t.length>0&&!e.test(t[0]);)i+=t.shift();return i}function tt(t){var e;return t.length>0&&Ze.test(t[0])?(t.shift(),e=y(t,Ke).trim(),t.shift()):e=y(t,x),e}var rt="input, textarea, select";function nt(t,e,i){var r=[],s=Ye(e);do{y(s,Je);var n=s.length,o=y(s,/[,\[\s]/);if(""!==o)if("every"===o){var a={trigger:"every"};y(s,Je),a.pollInterval=d(y(s,/[,\[\s]/)),y(s,Je),(l=et(t,s,"event"))&&(a.eventFilter=l),r.push(a)}else if(0===o.indexOf("sse:"))r.push({trigger:"sse",sseEvent:o.substr(4)});else{var l,c={trigger:o};for((l=et(t,s,"event"))&&(c.eventFilter=l);s.length>0&&","!==s[0];){y(s,Je);var h=s.shift();if("changed"===h)c.changed=!0;else if("once"===h)c.once=!0;else if("consume"===h)c.consume=!0;else if("delay"===h&&":"===s[0])s.shift(),c.delay=d(y(s,x));else if("from"===h&&":"===s[0]){if(s.shift(),Ze.test(s[0]))var u=tt(s);else if("closest"===(u=y(s,x))||"find"===u||"next"===u||"previous"===u){s.shift();var p=tt(s);p.length>0&&(u+=" "+p)}c.from=u}else"target"===h&&":"===s[0]?(s.shift(),c.target=tt(s)):"throttle"===h&&":"===s[0]?(s.shift(),c.throttle=d(y(s,x))):"queue"===h&&":"===s[0]?(s.shift(),c.queue=y(s,x)):"root"===h&&":"===s[0]?(s.shift(),c[h]=tt(s)):"threshold"===h&&":"===s[0]?(s.shift(),c[h]=y(s,x)):fe(t,"htmx:syntax:error",{token:s.shift()})}r.push(c)}s.length===n&&fe(t,"htmx:syntax:error",{token:s.shift()}),y(s,Je)}while(","===s[0]&&s.shift());return i&&(i[e]=r),r}function it(t){var e=te(t,"hx-trigger"),i=[];if(e){var r=Q.config.triggerSpecsCache;i=r&&r[e]||nt(t,e,r)}return i.length>0?i:h(t,"form")?[{trigger:"submit"}]:h(t,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(t,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(t){ae(t).cancelled=!0}function ot(t,e,i){var r=ae(t);r.timeout=setTimeout((function(){se(t)&&!0!==r.cancelled&&(ct(i,t,Wt("hx:poll:trigger",{triggerSpec:i,target:t}))||e(t),ot(t,e,i))}),i.pollInterval)}function st(t){return location.hostname===t.hostname&&ee(t,"href")&&0!==ee(t,"href").indexOf("#")}function lt(t,e,i){if("A"===t.tagName&&st(t)&&(""===t.target||"_self"===t.target)||"FORM"===t.tagName){var r,s;if(e.boosted=!0,"A"===t.tagName)r="get",s=ee(t,"href");else{var n=ee(t,"method");r=n?n.toLowerCase():"get",s=ee(t,"action")}i.forEach((function(i){ht(t,(function(t,e){v(t,Q.config.disableSelector)?m(t):he(r,s,t,e)}),e,i,!0)}))}}function ut(t,e){if("submit"===t.type||"click"===t.type){if("FORM"===e.tagName)return!0;if(h(e,'input[type="submit"], button')&&null!==v(e,"form"))return!0;if("A"===e.tagName&&e.href&&("#"===e.getAttribute("href")||0!==e.getAttribute("href").indexOf("#")))return!0}return!1}function ft(t,e){return ae(t).boosted&&"A"===t.tagName&&"click"===e.type&&(e.ctrlKey||e.metaKey)}function ct(t,e,i){var r=t.eventFilter;if(r)try{return!0!==r.call(e,i)}catch(t){return fe(re().body,"htmx:eventFilter:error",{error:t,source:r.source}),!0}return!1}function ht(t,e,i,r,s){var n,o=ae(t);n=r.from?Z(t,r.from):[t],r.changed&&n.forEach((function(t){ae(t).lastValue=t.value})),oe(n,(function(n){var a=function(i){if(se(t)){if(!ft(t,i)&&((s||ut(i,t))&&i.preventDefault(),!ct(r,t,i))){var l=ae(i);if(l.triggerSpec=r,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(t)<0){if(l.handledFor.push(t),r.consume&&i.stopPropagation(),r.target&&i.target&&!h(i.target,r.target))return;if(r.once){if(o.triggeredOnce)return;o.triggeredOnce=!0}if(r.changed){var c=ae(n);if(c.lastValue===n.value)return;c.lastValue=n.value}if(o.delayed&&clearTimeout(o.delayed),o.throttle)return;r.throttle>0?o.throttle||(e(t,i),o.throttle=setTimeout((function(){o.throttle=null}),r.throttle)):r.delay>0?o.delayed=setTimeout((function(){e(t,i)}),r.delay):(ce(t,"htmx:trigger"),e(t,i))}}}else n.removeEventListener(r.trigger,a)};null==i.listenerInfos&&(i.listenerInfos=[]),i.listenerInfos.push({trigger:r.trigger,listener:a,on:n}),n.addEventListener(r.trigger,a)}))}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval((function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),(function(t){pt(t)})))}),200))}function pt(t){!o(t,"data-hx-revealed")&&X(t)&&(t.setAttribute("data-hx-revealed","true"),ae(t).initHash?ce(t,"revealed"):t.addEventListener("htmx:afterProcessNode",(function(e){ce(t,"revealed")}),{once:!0}))}function mt(t,e,i){for(var r=D(i),s=0;s=0){var s=wt(i);setTimeout((function(){xt(t,e,i+1)}),s)}},s.onopen=function(t){i=0},ae(t).webSocket=s,s.addEventListener("message",(function(e){if(!yt(t)){var i=e.data;R(t,(function(e){i=e.transformResponse(i,null,t)}));for(var r=T(t),s=M(l(i).children),n=0;n0?ce(t,"htmx:validation:halted",o):(r.send(JSON.stringify(a)),ut(i,t)&&i.preventDefault())})):fe(t,"htmx:noWebSocketSourceError")}function wt(t){var e=Q.config.wsReconnectDelay;if("function"==typeof e)return e(t);if("full-jitter"===e){var i=Math.min(t,6);return 1e3*Math.pow(2,i)*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(t,e,i){for(var r=D(i),s=0;s0?setTimeout(s,r):s()}function Ht(t,e,i){var r=!1;return oe(w,(function(s){if(o(t,"hx-"+s)){var n=te(t,"hx-"+s);r=!0,e.path=n,e.verb=s,i.forEach((function(i){Lt(t,i,e,(function(t,e){v(t,Q.config.disableSelector)?m(t):he(s,n,t,e)}))}))}})),r}function Lt(t,e,i,r){if(e.sseEvent)Rt(t,r,e.sseEvent);else if("revealed"===e.trigger)gt(),ht(t,r,i,e),pt(t);else if("intersect"===e.trigger){var s={};e.root&&(s.root=ue(t,e.root)),e.threshold&&(s.threshold=parseFloat(e.threshold));var n=new IntersectionObserver((function(e){for(var i=0;i0?(i.polling=!0,ot(t,r,e)):ht(t,r,i,e)}function At(t){if(!t.htmxExecuted&&Q.config.allowScriptTags&&("text/javascript"===t.type||"module"===t.type||""===t.type)){var e=re().createElement("script");oe(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),e.textContent=t.textContent,e.async=!1,Q.config.inlineScriptNonce&&(e.nonce=Q.config.inlineScriptNonce);var i=t.parentElement;try{i.insertBefore(e,t)}catch(t){b(t)}finally{t.parentElement&&t.parentElement.removeChild(t)}}}function Nt(t){h(t,"script")&&At(t),oe(f(t,"script"),(function(t){At(t)}))}function It(t){var e=t.attributes;if(!e)return!1;for(var i=0;i0;){var o=r.shift(),a=o.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);0===n&&a?(o.split(":"),i[s=a[1].slice(0,-1)]=a[2]):i[s]+=o,n+=Bt(o)}for(var l in i)Ft(t,l,i[l])}}function jt(t){Ae(t);for(var e=0;eQ.config.historyCacheSize;)s.shift();for(;s.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(s));break}catch(t){fe(re().body,"htmx:historyCacheError",{cause:t,cache:s}),s.shift()}}}function Yt(t){if(!U())return null;t=B(t);for(var e=E(localStorage.getItem("htmx-history-cache"))||[],i=0;i=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",i);var e=l(this.response);e=e.querySelector("[hx-history-elt],[data-hx-history-elt]")||e;var r=Zt(),s=T(r),n=Ve(this.response);if(n){var o=C("title");o?o.innerHTML=n:window.document.title=n}Ue(r,e,s),nr(s.tasks),Jt=t,ce(re().body,"htmx:historyRestore",{path:t,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",i)},e.send()}function ar(t){er();var e=Yt(t=t||location.pathname+location.search);if(e){var i=l(e.content),r=Zt(),s=T(r);Ue(r,i,s),nr(s.tasks),document.title=e.title,setTimeout((function(){window.scrollTo(0,e.scroll)}),0),Jt=t,ce(re().body,"htmx:historyRestore",{path:t,item:e})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(t)}function or(t){var e=me(t,"hx-indicator");return null==e&&(e=[t]),oe(e,(function(t){var e=ae(t);e.requestCount=(e.requestCount||0)+1,t.classList.add.call(t.classList,Q.config.requestClass)})),e}function sr(t){var e=me(t,"hx-disabled-elt");return null==e&&(e=[]),oe(e,(function(t){var e=ae(t);e.requestCount=(e.requestCount||0)+1,t.setAttribute("disabled","")})),e}function lr(t,e){oe(t,(function(t){var e=ae(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&t.classList.remove.call(t.classList,Q.config.requestClass)})),oe(e,(function(t){var e=ae(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&t.removeAttribute("disabled")}))}function ur(t,e){for(var i=0;i=0}function wr(t,e){var i=e||ne(t,"hx-swap"),r={swapStyle:ae(t).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(t).boosted&&!br(t)&&(r.show="top"),i){var s=D(i);if(s.length>0)for(var n=0;n0?c.join(":"):null;r.scroll=a,r.scrollTarget=l}else if(0===o.indexOf("show:")){var c,h=(c=o.substr(5).split(":")).pop();l=c.length>0?c.join(":"):null,r.show=h,r.showTarget=l}else if(0===o.indexOf("focus-scroll:")){var u=o.substr(13);r.focusScroll="true"==u}else 0==n?r.swapStyle=o:b("Unknown modifier in hx-swap: "+o)}}return r}function Sr(t){return"multipart/form-data"===ne(t,"hx-encoding")||h(t,"form")&&"multipart/form-data"===ee(t,"enctype")}function Er(t,e,i){var r=null;return R(e,(function(s){null==r&&(r=s.encodeParameters(t,i,e))})),null!=r?r:Sr(e)?mr(i):pr(i)}function T(t){return{tasks:[],elts:[t]}}function Cr(t,e){var i=t[0],r=t[t.length-1];if(e.scroll){var s=null;e.scrollTarget&&(s=ue(i,e.scrollTarget)),"top"===e.scroll&&(i||s)&&((s=s||i).scrollTop=0),"bottom"===e.scroll&&(r||s)&&((s=s||r).scrollTop=s.scrollHeight)}if(e.show){if(s=null,e.showTarget){var n=e.showTarget;"window"===e.showTarget&&(n="body"),s=ue(i,n)}"top"===e.show&&(i||s)&&(s=s||i).scrollIntoView({block:"start",behavior:Q.config.scrollBehavior}),"bottom"===e.show&&(r||s)&&(s=s||r).scrollIntoView({block:"end",behavior:Q.config.scrollBehavior})}}function Rr(t,e,i,r){if(null==r&&(r={}),null==t)return r;var s=te(t,e);if(s){var n,o=s.trim(),a=i;if("unset"===o)return null;for(var l in 0===o.indexOf("javascript:")?(o=o.substr(11),a=!0):0===o.indexOf("js:")&&(o=o.substr(3),a=!0),0!==o.indexOf("{")&&(o="{"+o+"}"),n=a?Tr(t,(function(){return Function("return ("+o+")")()}),{}):E(o))n.hasOwnProperty(l)&&null==r[l]&&(r[l]=n[l])}return Rr(u(t),e,i,r)}function Tr(t,e,i){return Q.config.allowEval?e():(fe(t,"htmx:evalDisallowedError"),i)}function Or(t,e){return Rr(t,"hx-vars",!0,e)}function qr(t,e){return Rr(t,"hx-vals",!1,e)}function Hr(t){return le(Or(t),qr(t))}function Lr(t,e,i){if(null!==i)try{t.setRequestHeader(e,i)}catch(r){t.setRequestHeader(e,encodeURIComponent(i)),t.setRequestHeader(e+"-URI-AutoEncoded","true")}}function Ar(t){if(t.responseURL&&"undefined"!=typeof URL)try{var e=new URL(t.responseURL);return e.pathname+e.search}catch(e){fe(re().body,"htmx:badResponseUrl",{url:t.responseURL})}}function O(t,e){return e.test(t.getAllResponseHeaders())}function Nr(t,e,i){return t=t.toLowerCase(),i?i instanceof Element||I(i,"String")?he(t,e,null,null,{targetOverride:p(i),returnPromise:!0}):he(t,e,p(i.source),i.event,{handler:i.handler,headers:i.headers,values:i.values,targetOverride:p(i.target),swapOverride:i.swap,select:i.select,returnPromise:!0}):he(t,e,null,null,{returnPromise:!0})}function Ir(t){for(var e=[];t;)e.push(t),t=t.parentElement;return e}function kr(t,e,i){var r,s;return"function"==typeof URL?(s=new URL(e,document.location.href),r=document.location.origin===s.origin):(s=e,r=g(e,document.location.origin)),!(Q.config.selfRequestsOnly&&!r)&&ce(t,"htmx:validateUrl",le({url:s,sameHost:r},i))}function he(t,e,i,r,s,n){var o=null,a=null;if((s=null!=s?s:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(t,e){o=t,a=e}));null==i&&(i=re().body);var c=s.handler||Mr,h=s.select||null;if(!se(i))return ie(o),l;var u=s.targetOverride||ye(i);if(null==u||u==pe)return fe(i,"htmx:targetError",{target:te(i,"hx-target")}),ie(a),l;var d=ae(i),p=d.lastButtonClicked;if(p){var f=ee(p,"formaction");null!=f&&(e=f);var m=ee(p,"formmethod");null!=m&&"dialog"!==m.toLowerCase()&&(t=m)}var g=ne(i,"hx-confirm");if(void 0===n){var y={target:u,elt:i,path:e,verb:t,triggeringEvent:r,etc:s,issueRequest:function(n){return he(t,e,i,r,s,!!n)},question:g};if(!1===ce(i,"htmx:confirm",y))return ie(o),l}var _=i,v=ne(i,"hx-sync"),x=null,b=!1;if(v){var w=v.split(":"),S=w[0].trim();if(_="this"===S?xe(i,"hx-sync"):ue(i,S),v=(w[1]||"drop").trim(),d=ae(_),"drop"===v&&d.xhr&&!0!==d.abortable)return ie(o),l;if("abort"===v){if(d.xhr)return ie(o),l;b=!0}else"replace"===v?ce(_,"htmx:abort"):0===v.indexOf("queue")&&(x=(v.split(" ")[1]||"last").trim())}if(d.xhr){if(!d.abortable){if(null==x){if(r){var C=ae(r);C&&C.triggerSpec&&C.triggerSpec.queue&&(x=C.triggerSpec.queue)}null==x&&(x="last")}return null==d.queuedRequests&&(d.queuedRequests=[]),"first"===x&&0===d.queuedRequests.length||"all"===x?d.queuedRequests.push((function(){he(t,e,i,r,s)})):"last"===x&&(d.queuedRequests=[],d.queuedRequests.push((function(){he(t,e,i,r,s)}))),ie(o),l}ce(_,"htmx:abort")}var T=new XMLHttpRequest;d.xhr=T,d.abortable=b;var k=function(){d.xhr=null,d.abortable=!1,null!=d.queuedRequests&&d.queuedRequests.length>0&&d.queuedRequests.shift()()},E=ne(i,"hx-prompt");if(E){var A=prompt(E);if(null===A||!ce(i,"htmx:prompt",{prompt:A,target:u}))return ie(o),k(),l}if(g&&!n&&!confirm(g))return ie(o),k(),l;var M=xr(i,u,A);"get"===t||Sr(i)||(M["Content-Type"]="application/x-www-form-urlencoded"),s.headers&&(M=le(M,s.headers));var P=dr(i,t),I=P.errors,L=P.values;s.values&&(L=le(L,s.values));var D=le(L,Hr(i)),z=yr(D,i);Q.config.getCacheBusterParam&&"get"===t&&(z["org.htmx.cache-buster"]=ee(u,"id")||"true"),null!=e&&""!==e||(e=re().location.href);var O=Rr(i,"hx-request"),R=ae(i).boosted,N=Q.config.methodsThatUseUrlParams.indexOf(t)>=0,B={boosted:R,useUrlParams:N,parameters:z,unfilteredParameters:D,headers:M,target:u,verb:t,errors:I,withCredentials:s.credentials||O.credentials||Q.config.withCredentials,timeout:s.timeout||O.timeout||Q.config.timeout,path:e,triggeringEvent:r};if(!ce(i,"htmx:configRequest",B))return ie(o),k(),l;if(e=B.path,t=B.verb,M=B.headers,z=B.parameters,N=B.useUrlParams,(I=B.errors)&&I.length>0)return ce(i,"htmx:validation:halted",B),ie(o),k(),l;var F=e.split("#"),j=F[0],U=F[1],V=e;if(N&&(V=j,0!==Object.keys(z).length&&(V.indexOf("?")<0?V+="?":V+="&",V+=pr(z),U&&(V+="#"+U))),!kr(i,V,B))return fe(i,"htmx:invalidPath",B),ie(a),l;if(T.open(t.toUpperCase(),V,!0),T.overrideMimeType("text/html"),T.withCredentials=B.withCredentials,T.timeout=B.timeout,O.noHeaders);else for(var q in M)if(M.hasOwnProperty(q)){var G=M[q];Lr(T,q,G)}var $={xhr:T,target:u,requestConfig:B,etc:s,boosted:R,select:h,pathInfo:{requestPath:e,finalRequestPath:V,anchor:U}};if(T.onload=function(){try{var t=Ir(i);if($.pathInfo.responsePath=Ar(T),c(i,$),lr(H,W),ce(i,"htmx:afterRequest",$),ce(i,"htmx:afterOnLoad",$),!se(i)){for(var e=null;t.length>0&&null==e;){var r=t.shift();se(r)&&(e=r)}e&&(ce(e,"htmx:afterRequest",$),ce(e,"htmx:afterOnLoad",$))}ie(o),k()}catch(t){throw fe(i,"htmx:onLoadError",le({error:t},$)),t}},T.onerror=function(){lr(H,W),fe(i,"htmx:afterRequest",$),fe(i,"htmx:sendError",$),ie(a),k()},T.onabort=function(){lr(H,W),fe(i,"htmx:afterRequest",$),fe(i,"htmx:sendAbort",$),ie(a),k()},T.ontimeout=function(){lr(H,W),fe(i,"htmx:afterRequest",$),fe(i,"htmx:timeout",$),ie(a),k()},!ce(i,"htmx:beforeRequest",$))return ie(o),k(),l;var H=or(i),W=sr(i);oe(["loadstart","loadend","progress","abort"],(function(t){oe([T,T.upload],(function(e){e.addEventListener(t,(function(e){ce(i,"htmx:xhr:"+t,{lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})}))}))})),ce(i,"htmx:beforeSend",$);var X=N?null:Er(T,i,z);return T.send(X),l}function Pr(t,e){var i=e.xhr,r=null,s=null;if(O(i,/HX-Push:/i)?(r=i.getResponseHeader("HX-Push"),s="push"):O(i,/HX-Push-Url:/i)?(r=i.getResponseHeader("HX-Push-Url"),s="push"):O(i,/HX-Replace-Url:/i)&&(r=i.getResponseHeader("HX-Replace-Url"),s="replace"),r)return"false"===r?{}:{type:s,path:r};var n=e.pathInfo.finalRequestPath,o=e.pathInfo.responsePath,a=ne(t,"hx-push-url"),l=ne(t,"hx-replace-url"),c=ae(t).boosted,h=null,u=null;return a?(h="push",u=a):l?(h="replace",u=l):c&&(h="push",u=o||n),u?"false"===u?{}:("true"===u&&(u=o||n),e.pathInfo.anchor&&-1===u.indexOf("#")&&(u=u+"#"+e.pathInfo.anchor),{type:h,path:u}):{}}function Mr(t,e){var i=e.xhr,r=e.target,s=e.etc,n=(e.requestConfig,e.select);if(ce(t,"htmx:beforeOnLoad",e)){if(O(i,/HX-Trigger:/i)&&_e(i,"HX-Trigger",t),O(i,/HX-Location:/i)){er();var o=i.getResponseHeader("HX-Location");return 0===o.indexOf("{")&&(f=E(o),o=f.path,delete f.path),void Nr("GET",o,f).then((function(){tr(o)}))}var a=O(i,/HX-Refresh:/i)&&"true"===i.getResponseHeader("HX-Refresh");if(O(i,/HX-Redirect:/i))return location.href=i.getResponseHeader("HX-Redirect"),void(a&&location.reload());if(a)location.reload();else{O(i,/HX-Retarget:/i)&&("this"===i.getResponseHeader("HX-Retarget")?e.target=t:e.target=ue(t,i.getResponseHeader("HX-Retarget")));var l=Pr(t,e),c=i.status>=200&&i.status<400&&204!==i.status,h=i.response,u=i.status>=400,d=Q.config.ignoreTitle,p=le({shouldSwap:c,serverResponse:h,isError:u,ignoreTitle:d},e);if(ce(r,"htmx:beforeSwap",p)){if(r=p.target,h=p.serverResponse,u=p.isError,d=p.ignoreTitle,e.target=r,e.failed=u,e.successful=!u,p.shouldSwap){286===i.status&&at(t),R(t,(function(e){h=e.transformResponse(h,i,t)})),l.type&&er();var f,m=s.swapOverride;O(i,/HX-Reswap:/i)&&(m=i.getResponseHeader("HX-Reswap")),(f=wr(t,m)).hasOwnProperty("ignoreTitle")&&(d=f.ignoreTitle),r.classList.add(Q.config.swappingClass);var g=null,y=null,_=function(){try{var s,o=document.activeElement,a={};try{a={elt:o,start:o?o.selectionStart:null,end:o?o.selectionEnd:null}}catch(o){}n&&(s=n),O(i,/HX-Reselect:/i)&&(s=i.getResponseHeader("HX-Reselect")),l.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:l},e)),"push"===l.type?(tr(l.path),ce(re().body,"htmx:pushedIntoHistory",{path:l.path})):(rr(l.path),ce(re().body,"htmx:replacedInHistory",{path:l.path})));var c=T(r);if(je(f.swapStyle,r,t,h,c,s),a.elt&&!se(a.elt)&&ee(a.elt,"id")){var u=document.getElementById(ee(a.elt,"id")),p={preventScroll:void 0!==f.focusScroll?!f.focusScroll:!Q.config.defaultFocusScroll};if(u){if(a.start&&u.setSelectionRange)try{u.setSelectionRange(a.start,a.end)}catch(o){}u.focus(p)}}if(r.classList.remove(Q.config.swappingClass),oe(c.elts,(function(t){t.classList&&t.classList.add(Q.config.settlingClass),ce(t,"htmx:afterSwap",e)})),O(i,/HX-Trigger-After-Swap:/i)){var m=t;se(t)||(m=re().body),_e(i,"HX-Trigger-After-Swap",m)}var _=function(){if(oe(c.tasks,(function(t){t.call()})),oe(c.elts,(function(t){t.classList&&t.classList.remove(Q.config.settlingClass),ce(t,"htmx:afterSettle",e)})),e.pathInfo.anchor){var r=re().getElementById(e.pathInfo.anchor);r&&r.scrollIntoView({block:"start",behavior:"auto"})}if(c.title&&!d){var s=C("title");s?s.innerHTML=c.title:window.document.title=c.title}if(Cr(c.elts,f),O(i,/HX-Trigger-After-Settle:/i)){var n=t;se(t)||(n=re().body),_e(i,"HX-Trigger-After-Settle",n)}ie(g)};f.settleDelay>0?setTimeout(_,f.settleDelay):_()}catch(o){throw fe(t,"htmx:swapError",e),ie(y),o}},v=Q.config.globalViewTransitions;if(f.hasOwnProperty("transition")&&(v=f.transition),v&&ce(t,"htmx:beforeTransition",e)&&"undefined"!=typeof Promise&&document.startViewTransition){var x=new Promise((function(t,e){g=t,y=e})),b=_;_=function(){document.startViewTransition((function(){return b(),x}))}}f.swapDelay>0?setTimeout(_,f.swapDelay):_()}u&&fe(t,"htmx:responseError",le({error:"Response Status Error Code "+i.status+" from "+e.pathInfo.requestPath},e))}}}}var Xr={};function Dr(){return{init:function(t){return null},onEvent:function(t,e){return!0},transformResponse:function(t,e,i){return t},isInlineSwap:function(t){return!1},handleSwap:function(t,e,i,r){return!1},encodeParameters:function(t,e,i){return null}}}function Ur(t,e){e.init&&e.init(r),Xr[t]=le(Dr(),e)}function Br(t){delete Xr[t]}function Fr(t,e,i){if(null==t)return e;null==e&&(e=[]),null==i&&(i=[]);var r=te(t,"hx-ext");return r&&oe(r.split(","),(function(t){if("ignore:"!=(t=t.replace(/ /g,"")).slice(0,7)){if(i.indexOf(t)<0){var r=Xr[t];r&&e.indexOf(r)<0&&e.push(r)}}else i.push(t.slice(7))})),Fr(u(t),e,i)}var Vr=!1;function jr(t){Vr||"complete"===re().readyState?t():re().addEventListener("DOMContentLoaded",t)}function _r(){!1!==Q.config.includeIndicatorStyles&&re().head.insertAdjacentHTML("beforeend","")}function zr(){var t=re().querySelector('meta[name="htmx-config"]');return t?E(t.content):null}function $r(){var t=zr();t&&(Q.config=le(Q.config,t))}return re().addEventListener("DOMContentLoaded",(function(){Vr=!0})),jr((function(){$r(),_r();var t=re().body;zt(t);var e=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");t.addEventListener("htmx:abort",(function(t){var e=ae(t.target);e&&e.xhr&&e.xhr.abort()}));const i=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(t){t.state&&t.state.htmx?(ar(),oe(e,(function(t){ce(t,"htmx:restored",{document:re(),triggerEvent:ce})}))):i&&i(t)},setTimeout((function(){ce(t,"htmx:load",{}),t=null}),0)})),Q}()},__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=t)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},551:(t,e,i)=>{"use strict";var r=i(540),s=i(982);function n(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;ie}return!1}(e,i,s,r)&&(i=null),r||null===s?function(t){return!!u.call(f,t)||!u.call(p,t)&&(d.test(t)?f[t]=!0:(p[t]=!0,!1))}(e)&&(null===i?t.removeAttribute(e):t.setAttribute(e,""+i)):s.mustUseProperty?t[s.propertyName]=null===i?3!==s.type&&"":i:(e=s.attributeName,r=s.attributeNamespace,null===i?t.removeAttribute(e):(i=3===(s=s.type)||4===s&&!0===i?"":""+i,r?t.setAttributeNS(r,e,i):t.setAttribute(e,i))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(y,_);g[e]=new m(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(y,_);g[e]=new m(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(y,_);g[e]=new m(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){g[t]=new m(t,1,!1,t.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){g[t]=new m(t,1,!1,t.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function O(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=z&&t[z]||t["@@iterator"])?t:null}var R,N=Object.assign;function B(t){if(void 0===R)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);R=e&&e[1]||""}return"\n"+R+t}var F=!1;function j(t,e){if(!t||F)return"";F=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var r=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){r=t}t.call(e.prototype)}else{try{throw Error()}catch(t){r=t}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),n=r.stack.split("\n"),o=s.length-1,a=n.length-1;1<=o&&0<=a&&s[o]!==n[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==n[a]){if(1!==o||1!==a)do{if(o--,0>--a||s[o]!==n[a]){var l="\n"+s[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}}while(1<=o&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=i}return(t=t?t.displayName||t.name:"")?B(t):""}function U(t){switch(t.tag){case 5:return B(t.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return t=j(t.type,!1);case 11:return t=j(t.type.render,!1);case 1:return t=j(t.type,!0);default:return""}}function V(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case S:return"Fragment";case w:return"Portal";case T:return"Profiler";case C:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case E:return(t.displayName||"Context")+".Consumer";case k:return(t._context.displayName||"Context")+".Provider";case A:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case I:return null!==(e=t.displayName||null)?e:V(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return V(t(e))}catch(t){}}return null}function q(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(e);case 8:return e===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function G(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function $(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function H(t){t._valueTracker||(t._valueTracker=function(t){var e=$(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set){var s=i.get,n=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(t){r=""+t,n.call(this,t)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function W(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),r="";return t&&(r=$(t)?t.checked?"true":"false":t.value),(t=r)!==i&&(e.setValue(t),!0)}function X(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Z(t,e){var i=e.checked;return N({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=i?i:t._wrapperState.initialChecked})}function Y(t,e){var i=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;i=G(null!=e.value?e.value:i),t._wrapperState={initialChecked:r,initialValue:i,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function K(t,e){null!=(e=e.checked)&&v(t,"checked",e,!1)}function Q(t,e){K(t,e);var i=G(e.value),r=e.type;if(null!=i)"number"===r?(0===i&&""===t.value||t.value!=i)&&(t.value=""+i):t.value!==""+i&&(t.value=""+i);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,i):e.hasOwnProperty("defaultValue")&&tt(t,e.type,G(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function J(t,e,i){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,i||e===t.value||(t.value=e),t.defaultValue=e}""!==(i=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==i&&(t.name=i)}function tt(t,e,i){"number"===e&&X(t.ownerDocument)===t||(null==i?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+i&&(t.defaultValue=""+i))}var et=Array.isArray;function it(t,e,i,r){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,i,r){MSApp.execUnsafeLocalFunction((function(){return ht(t,e)}))}:ht);function dt(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&3===i.nodeType)return void(i.nodeValue=e)}t.textContent=e}var pt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ft=["Webkit","ms","Moz","O"];function mt(t,e,i){return null==e||"boolean"==typeof e||""===e?"":i||"number"!=typeof e||0===e||pt.hasOwnProperty(t)&&pt[t]?(""+e).trim():e+"px"}function gt(t,e){for(var i in t=t.style,e)if(e.hasOwnProperty(i)){var r=0===i.indexOf("--"),s=mt(i,e[i],r);"float"===i&&(i="cssFloat"),r?t.setProperty(i,s):t[i]=s}}Object.keys(pt).forEach((function(t){ft.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),pt[e]=pt[t]}))}));var yt=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _t(t,e){if(e){if(yt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(n(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(n(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(n(62))}}function vt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=null;function bt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var wt=null,St=null,Ct=null;function Tt(t){if(t=_s(t)){if("function"!=typeof wt)throw Error(n(280));var e=t.stateNode;e&&(e=xs(e),wt(t.stateNode,t.type,e))}}function kt(t){St?Ct?Ct.push(t):Ct=[t]:St=t}function Et(){if(St){var t=St,e=Ct;if(Ct=St=null,Tt(t),e)for(t=0;t>>=0,0===t?32:31-(ae(t)/le|0)|0},ae=Math.log,le=Math.LN2;var ce=64,he=4194304;function ue(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function de(t,e){var i=t.pendingLanes;if(0===i)return 0;var r=0,s=t.suspendedLanes,n=t.pingedLanes,o=268435455&i;if(0!==o){var a=o&~s;0!==a?r=ue(a):0!==(n&=o)&&(r=ue(n))}else 0!==(o=i&~s)?r=ue(o):0!==n&&(r=ue(n));if(0===r)return 0;if(0!==e&&e!==r&&!(e&s)&&((s=r&-r)>=(n=e&-e)||16===s&&4194240&n))return e;if(4&r&&(r|=16&i),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0i;i++)e.push(t);return e}function ye(t,e,i){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-oe(e)]=i}function _e(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var r=31-oe(i),s=1<=zi),Ni=String.fromCharCode(32),Bi=!1;function Fi(t,e){switch(t){case"keyup":return-1!==Li.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ji(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Ui=!1;var Vi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Vi[t.type]:"textarea"===e}function Gi(t,e,i,r){kt(r),0<(e=$r(e,"onChange")).length&&(i=new ci("onChange","change",null,i,r),t.push({event:i,listeners:e}))}var $i=null,Hi=null;function Wi(t){Nr(t,0)}function Xi(t){if(W(vs(t)))return t}function Zi(t,e){if("change"===t)return e}var Yi=!1;if(h){var Ki;if(h){var Qi="oninput"in document;if(!Qi){var Ji=document.createElement("div");Ji.setAttribute("oninput","return;"),Qi="function"==typeof Ji.oninput}Ki=Qi}else Ki=!1;Yi=Ki&&(!document.documentMode||9=e)return{node:r,offset:e-t};t=i}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=lr(r)}}function hr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function ur(){for(var t=window,e=X();e instanceof t.HTMLIFrameElement;){try{var i="string"==typeof e.contentWindow.location.href}catch(t){i=!1}if(!i)break;e=X((t=e.contentWindow).document)}return e}function dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pr(t){var e=ur(),i=t.focusedElem,r=t.selectionRange;if(e!==i&&i&&i.ownerDocument&&hr(i.ownerDocument.documentElement,i)){if(null!==r&&dr(i))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in i)i.selectionStart=e,i.selectionEnd=Math.min(t,i.value.length);else if((t=(e=i.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var s=i.textContent.length,n=Math.min(r.start,s);r=void 0===r.end?n:Math.min(r.end,s),!t.extend&&n>r&&(s=r,r=n,n=s),s=cr(i,n);var o=cr(i,r);s&&o&&(1!==t.rangeCount||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(s.node,s.offset),t.removeAllRanges(),n>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}for(e=[],t=i;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i=document.documentMode,mr=null,gr=null,yr=null,_r=!1;function vr(t,e,i){var r=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;_r||null==mr||mr!==X(r)||("selectionStart"in(r=mr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ar(yr,r)||(yr=r,0<(r=$r(gr,"onSelect")).length&&(e=new ci("onSelect","select",null,e,i),t.push({event:e,listeners:r}),e.target=mr)))}function xr(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var br={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},wr={},Sr={};function Cr(t){if(wr[t])return wr[t];if(!br[t])return t;var e,i=br[t];for(e in i)if(i.hasOwnProperty(e)&&e in Sr)return wr[t]=i[e];return t}h&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);var Tr=Cr("animationend"),kr=Cr("animationiteration"),Er=Cr("animationstart"),Ar=Cr("transitionend"),Mr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(t,e){Mr.set(t,e),l(e,[t])}for(var Lr=0;Lrws||(t.current=bs[ws],bs[ws]=null,ws--)}function Ts(t,e){ws++,bs[ws]=t.current,t.current=e}var ks={},Es=Ss(ks),As=Ss(!1),Ms=ks;function Ps(t,e){var i=t.type.contextTypes;if(!i)return ks;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s,n={};for(s in i)n[s]=e[s];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n),n}function Is(t){return null!=(t=t.childContextTypes)}function Ls(){Cs(As),Cs(Es)}function Ds(t,e,i){if(Es.current!==ks)throw Error(n(168));Ts(Es,e),Ts(As,i)}function zs(t,e,i){var r=t.stateNode;if(e=e.childContextTypes,"function"!=typeof r.getChildContext)return i;for(var s in r=r.getChildContext())if(!(s in e))throw Error(n(108,q(t)||"Unknown",s));return N({},i,r)}function Os(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ks,Ms=Es.current,Ts(Es,t),Ts(As,As.current),!0}function Rs(t,e,i){var r=t.stateNode;if(!r)throw Error(n(169));i?(t=zs(t,e,Ms),r.__reactInternalMemoizedMergedChildContext=t,Cs(As),Cs(Es),Ts(Es,t)):Cs(As),Ts(As,i)}var Ns=null,Bs=!1,Fs=!1;function js(t){null===Ns?Ns=[t]:Ns.push(t)}function Us(){if(!Fs&&null!==Ns){Fs=!0;var t=0,e=ve;try{var i=Ns;for(ve=1;t>=o,s-=o,Zs=1<<32-oe(e)+s|i<m?(g=u,u=null):g=u.sibling;var y=p(s,u,a[m],l);if(null===y){null===u&&(u=g);break}t&&u&&null===y.alternate&&e(s,u),n=o(y,n,m),null===h?c=y:h.sibling=y,h=y,u=g}if(m===a.length)return i(s,u),sn&&Ks(s,m),c;if(null===u){for(;mg?(y=m,m=null):y=m.sibling;var v=p(s,m,_.value,c);if(null===v){null===m&&(m=y);break}t&&m&&null===v.alternate&&e(s,m),a=o(v,a,g),null===u?h=v:u.sibling=v,u=v,m=y}if(_.done)return i(s,m),sn&&Ks(s,g),h;if(null===m){for(;!_.done;g++,_=l.next())null!==(_=d(s,_.value,c))&&(a=o(_,a,g),null===u?h=_:u.sibling=_,u=_);return sn&&Ks(s,g),h}for(m=r(s,m);!_.done;g++,_=l.next())null!==(_=f(m,s,g,_.value,c))&&(t&&null!==_.alternate&&m.delete(null===_.key?g:_.key),a=o(_,a,g),null===u?h=_:u.sibling=_,u=_);return t&&m.forEach((function(t){return e(s,t)})),sn&&Ks(s,g),h}return function t(r,n,o,l){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case b:t:{for(var c=o.key,h=n;null!==h;){if(h.key===c){if((c=o.type)===S){if(7===h.tag){i(r,h.sibling),(n=s(h,o.props.children)).return=r,r=n;break t}}else if(h.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===L&&_n(c)===h.type){i(r,h.sibling),(n=s(h,o.props)).ref=gn(r,h,o),n.return=r,r=n;break t}i(r,h);break}e(r,h),h=h.sibling}o.type===S?((n=Oc(o.props.children,r.mode,l,o.key)).return=r,r=n):((l=zc(o.type,o.key,o.props,null,r.mode,l)).ref=gn(r,n,o),l.return=r,r=l)}return a(r);case w:t:{for(h=o.key;null!==n;){if(n.key===h){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){i(r,n.sibling),(n=s(n,o.children||[])).return=r,r=n;break t}i(r,n);break}e(r,n),n=n.sibling}(n=Bc(o,r.mode,l)).return=r,r=n}return a(r);case L:return t(r,n,(h=o._init)(o._payload),l)}if(et(o))return m(r,n,o,l);if(O(o))return g(r,n,o,l);yn(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==n&&6===n.tag?(i(r,n.sibling),(n=s(n,o)).return=r,r=n):(i(r,n),(n=Nc(o,r.mode,l)).return=r,r=n),a(r)):i(r,n)}}var xn=vn(!0),bn=vn(!1),wn=Ss(null),Sn=null,Cn=null,Tn=null;function kn(){Tn=Cn=Sn=null}function En(t){var e=wn.current;Cs(wn),t._currentValue=e}function An(t,e,i){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===i)break;t=t.return}}function Mn(t,e){Sn=t,Tn=Cn=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(!!(t.lanes&e)&&(va=!0),t.firstContext=null)}function Pn(t){var e=t._currentValue;if(Tn!==t)if(t={context:t,memoizedValue:e,next:null},null===Cn){if(null===Sn)throw Error(n(308));Cn=t,Sn.dependencies={lanes:0,firstContext:t}}else Cn=Cn.next=t;return e}var In=null;function Ln(t){null===In?In=[t]:In.push(t)}function Dn(t,e,i,r){var s=e.interleaved;return null===s?(i.next=i,Ln(e)):(i.next=s.next,s.next=i),e.interleaved=i,zn(t,r)}function zn(t,e){t.lanes|=e;var i=t.alternate;for(null!==i&&(i.lanes|=e),i=t,t=t.return;null!==t;)t.childLanes|=e,null!==(i=t.alternate)&&(i.childLanes|=e),i=t,t=t.return;return 3===i.tag?i.stateNode:null}var On=!1;function Rn(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nn(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Bn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(t,e,i){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var s=r.pending;return null===s?e.next=e:(e.next=s.next,s.next=e),r.pending=e,zn(t,i)}return null===(s=r.interleaved)?(e.next=e,Ln(r)):(e.next=s.next,s.next=e),r.interleaved=e,zn(t,i)}function jn(t,e,i){if(null!==(e=e.updateQueue)&&(e=e.shared,4194240&i)){var r=e.lanes;i|=r&=t.pendingLanes,e.lanes=i,_e(t,i)}}function Un(t,e){var i=t.updateQueue,r=t.alternate;if(null!==r&&i===(r=r.updateQueue)){var s=null,n=null;if(null!==(i=i.firstBaseUpdate)){do{var o={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};null===n?s=n=o:n=n.next=o,i=i.next}while(null!==i);null===n?s=n=e:n=n.next=e}else s=n=e;return i={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:n,shared:r.shared,effects:r.effects},void(t.updateQueue=i)}null===(t=i.lastBaseUpdate)?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}function Vn(t,e,i,r){var s=t.updateQueue;On=!1;var n=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(null!==a){s.shared.pending=null;var l=a,c=l.next;l.next=null,null===o?n=c:o.next=c,o=l;var h=t.alternate;null!==h&&((a=(h=h.updateQueue).lastBaseUpdate)!==o&&(null===a?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=l))}if(null!==n){var u=s.baseState;for(o=0,h=c=l=null,a=n;;){var d=a.lane,p=a.eventTime;if((r&d)===d){null!==h&&(h=h.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var f=t,m=a;switch(d=e,p=i,m.tag){case 1:if("function"==typeof(f=m.payload)){u=f.call(p,u,d);break t}u=f;break t;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=m.payload)?f.call(p,u,d):f))break t;u=N({},u,d);break t;case 2:On=!0}}null!==a.callback&&0!==a.lane&&(t.flags|=64,null===(d=s.effects)?s.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===h?(c=h=p,l=u):h=h.next=p,o|=d;if(null===(a=a.next)){if(null===(a=s.shared.pending))break;a=(d=a).next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}if(null===h&&(l=u),s.baseState=l,s.firstBaseUpdate=c,s.lastBaseUpdate=h,null!==(e=s.shared.interleaved)){s=e;do{o|=s.lane,s=s.next}while(s!==e)}else null===n&&(s.shared.lanes=0);Rl|=o,t.lanes=o,t.memoizedState=u}}function qn(t,e,i){if(t=e.effects,e.effects=null,null!==t)for(e=0;ei?i:4,t(!0);var r=so.transition;so.transition={};try{t(!1),e()}finally{ve=i,so.transition=r}}function Ho(){return vo().memoizedState}function Wo(t,e,i){var r=ec(t);if(i={lane:r,action:i,hasEagerState:!1,eagerState:null,next:null},Zo(t))Yo(e,i);else if(null!==(i=Dn(t,e,i,r))){ic(i,t,r,tc()),Ko(i,e,r)}}function Xo(t,e,i){var r=ec(t),s={lane:r,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zo(t))Yo(e,s);else{var n=t.alternate;if(0===t.lanes&&(null===n||0===n.lanes)&&null!==(n=e.lastRenderedReducer))try{var o=e.lastRenderedState,a=n(o,i);if(s.hasEagerState=!0,s.eagerState=a,or(a,o)){var l=e.interleaved;return null===l?(s.next=s,Ln(e)):(s.next=l.next,l.next=s),void(e.interleaved=s)}}catch(t){}null!==(i=Dn(t,e,s,r))&&(ic(i,t,r,s=tc()),Ko(i,e,r))}}function Zo(t){var e=t.alternate;return t===oo||null!==e&&e===oo}function Yo(t,e){ho=co=!0;var i=t.pending;null===i?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Ko(t,e,i){if(4194240&i){var r=e.lanes;i|=r&=t.pendingLanes,e.lanes=i,_e(t,i)}}var Qo={readContext:Pn,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useInsertionEffect:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useMutableSource:fo,useSyncExternalStore:fo,useId:fo,unstable_isNewReconciler:!1},Jo={readContext:Pn,useCallback:function(t,e){return _o().memoizedState=[t,void 0===e?null:e],t},useContext:Pn,useEffect:Oo,useImperativeHandle:function(t,e,i){return i=null!=i?i.concat([t]):null,Do(4194308,4,Fo.bind(null,e,t),i)},useLayoutEffect:function(t,e){return Do(4194308,4,t,e)},useInsertionEffect:function(t,e){return Do(4,2,t,e)},useMemo:function(t,e){var i=_o();return e=void 0===e?null:e,t=t(),i.memoizedState=[t,e],t},useReducer:function(t,e,i){var r=_o();return e=void 0!==i?i(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Wo.bind(null,oo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},_o().memoizedState=t},useState:Po,useDebugValue:Uo,useDeferredValue:function(t){return _o().memoizedState=t},useTransition:function(){var t=Po(!1),e=t[0];return t=$o.bind(null,t[1]),_o().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,i){var r=oo,s=_o();if(sn){if(void 0===i)throw Error(n(407));i=i()}else{if(i=e(),null===Ml)throw Error(n(349));30&no||To(r,e,i)}s.memoizedState=i;var o={value:i,getSnapshot:e};return s.queue=o,Oo(Eo.bind(null,r,o,t),[t]),r.flags|=2048,Io(9,ko.bind(null,r,o,i,e),void 0,null),i},useId:function(){var t=_o(),e=Ml.identifierPrefix;if(sn){var i=Ys;e=":"+e+"R"+(i=(Zs&~(1<<32-oe(Zs)-1)).toString(32)+i),0<(i=uo++)&&(e+="H"+i.toString(32)),e+=":"}else e=":"+e+"r"+(i=po++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ta={readContext:Pn,useCallback:Vo,useContext:Pn,useEffect:Ro,useImperativeHandle:jo,useInsertionEffect:No,useLayoutEffect:Bo,useMemo:qo,useReducer:bo,useRef:Lo,useState:function(){return bo(xo)},useDebugValue:Uo,useDeferredValue:function(t){return Go(vo(),ao.memoizedState,t)},useTransition:function(){return[bo(xo)[0],vo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Ho,unstable_isNewReconciler:!1},ea={readContext:Pn,useCallback:Vo,useContext:Pn,useEffect:Ro,useImperativeHandle:jo,useInsertionEffect:No,useLayoutEffect:Bo,useMemo:qo,useReducer:wo,useRef:Lo,useState:function(){return wo(xo)},useDebugValue:Uo,useDeferredValue:function(t){var e=vo();return null===ao?e.memoizedState=t:Go(e,ao.memoizedState,t)},useTransition:function(){return[wo(xo)[0],vo().memoizedState]},useMutableSource:So,useSyncExternalStore:Co,useId:Ho,unstable_isNewReconciler:!1};function ia(t,e){if(t&&t.defaultProps){for(var i in e=N({},e),t=t.defaultProps)void 0===e[i]&&(e[i]=t[i]);return e}return e}function ra(t,e,i,r){i=null==(i=i(r,e=t.memoizedState))?e:N({},e,i),t.memoizedState=i,0===t.lanes&&(t.updateQueue.baseState=i)}var sa={isMounted:function(t){return!!(t=t._reactInternals)&&Vt(t)===t},enqueueSetState:function(t,e,i){t=t._reactInternals;var r=tc(),s=ec(t),n=Bn(r,s);n.payload=e,null!=i&&(n.callback=i),null!==(e=Fn(t,n,s))&&(ic(e,t,s,r),jn(e,t,s))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var r=tc(),s=ec(t),n=Bn(r,s);n.tag=1,n.payload=e,null!=i&&(n.callback=i),null!==(e=Fn(t,n,s))&&(ic(e,t,s,r),jn(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=tc(),r=ec(t),s=Bn(i,r);s.tag=2,null!=e&&(s.callback=e),null!==(e=Fn(t,s,r))&&(ic(e,t,r,i),jn(e,t,r))}};function na(t,e,i,r,s,n,o){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,n,o):!e.prototype||!e.prototype.isPureReactComponent||(!ar(i,r)||!ar(s,n))}function oa(t,e,i){var r=!1,s=ks,n=e.contextType;return"object"==typeof n&&null!==n?n=Pn(n):(s=Is(e)?Ms:Es.current,n=(r=null!=(r=e.contextTypes))?Ps(t,s):ks),e=new e(i,n),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=sa,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=n),e}function aa(t,e,i,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(i,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(i,r),e.state!==t&&sa.enqueueReplaceState(e,e.state,null)}function la(t,e,i,r){var s=t.stateNode;s.props=i,s.state=t.memoizedState,s.refs={},Rn(t);var n=e.contextType;"object"==typeof n&&null!==n?s.context=Pn(n):(n=Is(e)?Ms:Es.current,s.context=Ps(t,n)),s.state=t.memoizedState,"function"==typeof(n=e.getDerivedStateFromProps)&&(ra(t,e,n,i),s.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(e=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),e!==s.state&&sa.enqueueReplaceState(s,s.state,null),Vn(t,i,s,r),s.state=t.memoizedState),"function"==typeof s.componentDidMount&&(t.flags|=4194308)}function ca(t,e){try{var i="",r=e;do{i+=U(r),r=r.return}while(r);var s=i}catch(t){s="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:s,digest:null}}function ha(t,e,i){return{value:t,source:null,stack:null!=i?i:null,digest:null!=e?e:null}}function ua(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var da="function"==typeof WeakMap?WeakMap:Map;function pa(t,e,i){(i=Bn(-1,i)).tag=3,i.payload={element:null};var r=e.value;return i.callback=function(){Gl||(Gl=!0,$l=r),ua(0,e)},i}function fa(t,e,i){(i=Bn(-1,i)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var s=e.value;i.payload=function(){return r(s)},i.callback=function(){ua(0,e)}}var n=t.stateNode;return null!==n&&"function"==typeof n.componentDidCatch&&(i.callback=function(){ua(0,e),"function"!=typeof r&&(null===Hl?Hl=new Set([this]):Hl.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),i}function ma(t,e,i){var r=t.pingCache;if(null===r){r=t.pingCache=new da;var s=new Set;r.set(e,s)}else void 0===(s=r.get(e))&&(s=new Set,r.set(e,s));s.has(i)||(s.add(i),t=Tc.bind(null,t,e,i),e.then(t,t))}function ga(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function ya(t,e,i,r,s){return 1&t.mode?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,i.flags|=131072,i.flags&=-52805,1===i.tag&&(null===i.alternate?i.tag=17:((e=Bn(-1,1)).tag=2,Fn(i,e,1))),i.lanes|=1),t)}var _a=x.ReactCurrentOwner,va=!1;function xa(t,e,i,r){e.child=null===t?bn(e,null,i,r):xn(e,t.child,i,r)}function ba(t,e,i,r,s){i=i.render;var n=e.ref;return Mn(e,s),r=go(t,e,i,r,n,s),i=yo(),null===t||va?(sn&&i&&Js(e),e.flags|=1,xa(t,e,r,s),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Ga(t,e,s))}function wa(t,e,i,r,s){if(null===t){var n=i.type;return"function"!=typeof n||Lc(n)||void 0!==n.defaultProps||null!==i.compare||void 0!==i.defaultProps?((t=zc(i.type,null,r,e,e.mode,s)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=n,Sa(t,e,n,r,s))}if(n=t.child,!(t.lanes&s)){var o=n.memoizedProps;if((i=null!==(i=i.compare)?i:ar)(o,r)&&t.ref===e.ref)return Ga(t,e,s)}return e.flags|=1,(t=Dc(n,r)).ref=e.ref,t.return=e,e.child=t}function Sa(t,e,i,r,s){if(null!==t){var n=t.memoizedProps;if(ar(n,r)&&t.ref===e.ref){if(va=!1,e.pendingProps=r=n,!(t.lanes&s))return e.lanes=t.lanes,Ga(t,e,s);131072&t.flags&&(va=!0)}}return ka(t,e,i,r,s)}function Ca(t,e,i){var r=e.pendingProps,s=r.children,n=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(1&e.mode){if(!(1073741824&i))return t=null!==n?n.baseLanes|i:i,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ts(Dl,Ll),Ll|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==n?n.baseLanes:i,Ts(Dl,Ll),Ll|=r}else e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ts(Dl,Ll),Ll|=i;else null!==n?(r=n.baseLanes|i,e.memoizedState=null):r=i,Ts(Dl,Ll),Ll|=r;return xa(t,e,s,i),e.child}function Ta(t,e){var i=e.ref;(null===t&&null!==i||null!==t&&t.ref!==i)&&(e.flags|=512,e.flags|=2097152)}function ka(t,e,i,r,s){var n=Is(i)?Ms:Es.current;return n=Ps(e,n),Mn(e,s),i=go(t,e,i,r,n,s),r=yo(),null===t||va?(sn&&r&&Js(e),e.flags|=1,xa(t,e,i,s),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Ga(t,e,s))}function Ea(t,e,i,r,s){if(Is(i)){var n=!0;Os(e)}else n=!1;if(Mn(e,s),null===e.stateNode)qa(t,e),oa(e,i,r),la(e,i,r,s),r=!0;else if(null===t){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=i.contextType;"object"==typeof c&&null!==c?c=Pn(c):c=Ps(e,c=Is(i)?Ms:Es.current);var h=i.getDerivedStateFromProps,u="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate;u||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==r||l!==c)&&aa(e,o,r,c),On=!1;var d=e.memoizedState;o.state=d,Vn(e,r,o,s),l=e.memoizedState,a!==r||d!==l||As.current||On?("function"==typeof h&&(ra(e,i,h,r),l=e.memoizedState),(a=On||na(e,i,a,r,d,l,c))?(u||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(e.flags|=4194308)):("function"==typeof o.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):("function"==typeof o.componentDidMount&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Nn(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:ia(e.type,a),o.props=c,u=e.pendingProps,d=o.context,"object"==typeof(l=i.contextType)&&null!==l?l=Pn(l):l=Ps(e,l=Is(i)?Ms:Es.current);var p=i.getDerivedStateFromProps;(h="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==u||d!==l)&&aa(e,o,r,l),On=!1,d=e.memoizedState,o.state=d,Vn(e,r,o,s);var f=e.memoizedState;a!==u||d!==f||As.current||On?("function"==typeof p&&(ra(e,i,p,r),f=e.memoizedState),(c=On||na(e,i,c,r,d,f,l)||!1)?(h||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(e.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return Aa(t,e,i,r,n,s)}function Aa(t,e,i,r,s,n){Ta(t,e);var o=!!(128&e.flags);if(!r&&!o)return s&&Rs(e,i,!1),Ga(t,e,n);r=e.stateNode,_a.current=e;var a=o&&"function"!=typeof i.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&o?(e.child=xn(e,t.child,null,n),e.child=xn(e,null,a,n)):xa(t,e,a,n),e.memoizedState=r.state,s&&Rs(e,i,!0),e.child}function Ma(t){var e=t.stateNode;e.pendingContext?Ds(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Ds(0,e.context,!1),Zn(t,e.containerInfo)}function Pa(t,e,i,r,s){return pn(),fn(s),e.flags|=256,xa(t,e,i,r),e.child}var Ia,La,Da,za,Oa={dehydrated:null,treeContext:null,retryLane:0};function Ra(t){return{baseLanes:t,cachePool:null,transitions:null}}function Na(t,e,i){var r,s=e.pendingProps,o=Jn.current,a=!1,l=!!(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&!!(2&o)),r?(a=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(o|=1),Ts(Jn,1&o),null===t)return cn(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(1&e.mode?"$!"===t.data?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(l=s.children,t=s.fallback,a?(s=e.mode,a=e.child,l={mode:"hidden",children:l},1&s||null===a?a=Rc(l,s,0,null):(a.childLanes=0,a.pendingProps=l),t=Oc(t,s,i,null),a.return=e,t.return=e,a.sibling=t,e.child=a,e.child.memoizedState=Ra(i),e.memoizedState=Oa,t):Ba(e,l));if(null!==(o=t.memoizedState)&&null!==(r=o.dehydrated))return function(t,e,i,r,s,o,a){if(i)return 256&e.flags?(e.flags&=-257,Fa(t,e,a,r=ha(Error(n(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(o=r.fallback,s=e.mode,r=Rc({mode:"visible",children:r.children},s,0,null),(o=Oc(o,s,a,null)).flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,1&e.mode&&xn(e,t.child,null,a),e.child.memoizedState=Ra(a),e.memoizedState=Oa,o);if(!(1&e.mode))return Fa(t,e,a,null);if("$!"===s.data){if(r=s.nextSibling&&s.nextSibling.dataset)var l=r.dgst;return r=l,Fa(t,e,a,r=ha(o=Error(n(419)),r,void 0))}if(l=!!(a&t.childLanes),va||l){if(null!==(r=Ml)){switch(a&-a){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(s=s&(r.suspendedLanes|a)?0:s)&&s!==o.retryLane&&(o.retryLane=s,zn(t,s),ic(r,t,s,-1))}return mc(),Fa(t,e,a,r=ha(Error(n(421))))}return"$?"===s.data?(e.flags|=128,e.child=t.child,e=Ec.bind(null,t),s._reactRetry=e,null):(t=o.treeContext,rn=ls(s.nextSibling),en=e,sn=!0,nn=null,null!==t&&(Hs[Ws++]=Zs,Hs[Ws++]=Ys,Hs[Ws++]=Xs,Zs=t.id,Ys=t.overflow,Xs=e),e=Ba(e,r.children),e.flags|=4096,e)}(t,e,l,s,r,o,i);if(a){a=s.fallback,l=e.mode,r=(o=t.child).sibling;var c={mode:"hidden",children:s.children};return 1&l||e.child===o?(s=Dc(o,c)).subtreeFlags=14680064&o.subtreeFlags:((s=e.child).childLanes=0,s.pendingProps=c,e.deletions=null),null!==r?a=Dc(r,a):(a=Oc(a,l,i,null)).flags|=2,a.return=e,s.return=e,s.sibling=a,e.child=s,s=a,a=e.child,l=null===(l=t.child.memoizedState)?Ra(i):{baseLanes:l.baseLanes|i,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=t.childLanes&~i,e.memoizedState=Oa,s}return t=(a=t.child).sibling,s=Dc(a,{mode:"visible",children:s.children}),!(1&e.mode)&&(s.lanes=i),s.return=e,s.sibling=null,null!==t&&(null===(i=e.deletions)?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=s,e.memoizedState=null,s}function Ba(t,e){return(e=Rc({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Fa(t,e,i,r){return null!==r&&fn(r),xn(e,t.child,null,i),(t=Ba(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function ja(t,e,i){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),An(t.return,e,i)}function Ua(t,e,i,r,s){var n=t.memoizedState;null===n?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:s}:(n.isBackwards=e,n.rendering=null,n.renderingStartTime=0,n.last=r,n.tail=i,n.tailMode=s)}function Va(t,e,i){var r=e.pendingProps,s=r.revealOrder,n=r.tail;if(xa(t,e,r.children,i),2&(r=Jn.current))r=1&r|2,e.flags|=128;else{if(null!==t&&128&t.flags)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&ja(t,i,e);else if(19===t.tag)ja(t,i,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ts(Jn,r),1&e.mode)switch(s){case"forwards":for(i=e.child,s=null;null!==i;)null!==(t=i.alternate)&&null===to(t)&&(s=i),i=i.sibling;null===(i=s)?(s=e.child,e.child=null):(s=i.sibling,i.sibling=null),Ua(e,!1,s,i,n);break;case"backwards":for(i=null,s=e.child,e.child=null;null!==s;){if(null!==(t=s.alternate)&&null===to(t)){e.child=s;break}t=s.sibling,s.sibling=i,i=s,s=t}Ua(e,!0,i,null,n);break;case"together":Ua(e,!1,null,null,void 0);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function qa(t,e){!(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Ga(t,e,i){if(null!==t&&(e.dependencies=t.dependencies),Rl|=e.lanes,!(i&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(n(153));if(null!==e.child){for(i=Dc(t=e.child,t.pendingProps),e.child=i,i.return=e;null!==t.sibling;)t=t.sibling,(i=i.sibling=Dc(t,t.pendingProps)).return=e;i.sibling=null}return e.child}function $a(t,e){if(!sn)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;null!==e;)null!==e.alternate&&(i=e),e=e.sibling;null===i?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var r=null;null!==i;)null!==i.alternate&&(r=i),i=i.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ha(t){var e=null!==t.alternate&&t.alternate.child===t.child,i=0,r=0;if(e)for(var s=t.child;null!==s;)i|=s.lanes|s.childLanes,r|=14680064&s.subtreeFlags,r|=14680064&s.flags,s.return=t,s=s.sibling;else for(s=t.child;null!==s;)i|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=i,e}function Wa(t,e,i){var r=e.pendingProps;switch(tn(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ha(e),null;case 1:case 17:return Is(e.type)&&Ls(),Ha(e),null;case 3:return r=e.stateNode,Yn(),Cs(As),Cs(Es),io(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(un(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&!(256&e.flags)||(e.flags|=1024,null!==nn&&(oc(nn),nn=null))),La(t,e),Ha(e),null;case 5:Qn(e);var s=Xn(Wn.current);if(i=e.type,null!==t&&null!=e.stateNode)Da(t,e,i,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(n(166));return Ha(e),null}if(t=Xn($n.current),un(e)){r=e.stateNode,i=e.type;var o=e.memoizedProps;switch(r[us]=e,r[ds]=o,t=!!(1&e.mode),i){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(s=0;s<\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(i,{is:r.is}):(t=l.createElement(i),"select"===i&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,i),t[us]=e,t[ds]=r,Ia(t,e,!1,!1),e.stateNode=t;t:{switch(l=vt(i,r),i){case"dialog":Br("cancel",t),Br("close",t),s=r;break;case"iframe":case"object":case"embed":Br("load",t),s=r;break;case"video":case"audio":for(s=0;sVl&&(e.flags|=128,r=!0,$a(o,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=to(l))){if(e.flags|=128,r=!0,null!==(i=t.updateQueue)&&(e.updateQueue=i,e.flags|=4),$a(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!sn)return Ha(e),null}else 2*Kt()-o.renderingStartTime>Vl&&1073741824!==i&&(e.flags|=128,r=!0,$a(o,!1),e.lanes=4194304);o.isBackwards?(l.sibling=e.child,e.child=l):(null!==(i=o.last)?i.sibling=l:e.child=l,o.last=l)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Kt(),e.sibling=null,i=Jn.current,Ts(Jn,r?1&i|2:1&i),e):(Ha(e),null);case 22:case 23:return uc(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&1&e.mode?!!(1073741824&Ll)&&(Ha(e),6&e.subtreeFlags&&(e.flags|=8192)):Ha(e),null;case 24:case 25:return null}throw Error(n(156,e.tag))}function Xa(t,e){switch(tn(e),e.tag){case 1:return Is(e.type)&&Ls(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return Yn(),Cs(As),Cs(Es),io(),65536&(t=e.flags)&&!(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Qn(e),null;case 13:if(Cs(Jn),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(n(340));pn()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Cs(Jn),null;case 4:return Yn(),null;case 10:return En(e.type._context),null;case 22:case 23:return uc(),null;default:return null}}Ia=function(t,e){for(var i=e.child;null!==i;){if(5===i.tag||6===i.tag)t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},La=function(){},Da=function(t,e,i,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Xn($n.current);var n,o=null;switch(i){case"input":s=Z(t,s),r=Z(t,r),o=[];break;case"select":s=N({},s,{value:void 0}),r=N({},r,{value:void 0}),o=[];break;case"textarea":s=rt(t,s),r=rt(t,r),o=[];break;default:"function"!=typeof s.onClick&&"function"==typeof r.onClick&&(t.onclick=Qr)}for(h in _t(i,r),i=null,s)if(!r.hasOwnProperty(h)&&s.hasOwnProperty(h)&&null!=s[h])if("style"===h){var l=s[h];for(n in l)l.hasOwnProperty(n)&&(i||(i={}),i[n]="")}else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(a.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in r){var c=r[h];if(l=null!=s?s[h]:void 0,r.hasOwnProperty(h)&&c!==l&&(null!=c||null!=l))if("style"===h)if(l){for(n in l)!l.hasOwnProperty(n)||c&&c.hasOwnProperty(n)||(i||(i={}),i[n]="");for(n in c)c.hasOwnProperty(n)&&l[n]!==c[n]&&(i||(i={}),i[n]=c[n])}else i||(o||(o=[]),o.push(h,i)),i=c;else"dangerouslySetInnerHTML"===h?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(h,c)):"children"===h?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(h,""+c):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(a.hasOwnProperty(h)?(null!=c&&"onScroll"===h&&Br("scroll",t),o||l===c||(o=[])):(o=o||[]).push(h,c))}i&&(o=o||[]).push("style",i);var h=o;(e.updateQueue=h)&&(e.flags|=4)}},za=function(t,e,i,r){i!==r&&(e.flags|=4)};var Za=!1,Ya=!1,Ka="function"==typeof WeakSet?WeakSet:Set,Qa=null;function Ja(t,e){var i=t.ref;if(null!==i)if("function"==typeof i)try{i(null)}catch(i){Cc(t,e,i)}else i.current=null}function tl(t,e,i){try{i()}catch(i){Cc(t,e,i)}}var el=!1;function il(t,e,i){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var s=r=r.next;do{if((s.tag&t)===t){var n=s.destroy;s.destroy=void 0,void 0!==n&&tl(e,i,n)}s=s.next}while(s!==r)}}function rl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var i=e=e.next;do{if((i.tag&t)===t){var r=i.create;i.destroy=r()}i=i.next}while(i!==e)}}function sl(t){var e=t.ref;if(null!==e){var i=t.stateNode;t.tag,t=i,"function"==typeof e?e(t):e.current=t}}function nl(t){var e=t.alternate;null!==e&&(t.alternate=null,nl(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[us],delete e[ds],delete e[fs],delete e[ms],delete e[gs])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ol(t){return 5===t.tag||3===t.tag||4===t.tag}function al(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||ol(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,i){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===i.nodeType?i.parentNode.insertBefore(t,e):i.insertBefore(t,e):(8===i.nodeType?(e=i.parentNode).insertBefore(t,i):(e=i).appendChild(t),null!=(i=i._reactRootContainer)||null!==e.onclick||(e.onclick=Qr));else if(4!==r&&null!==(t=t.child))for(ll(t,e,i),t=t.sibling;null!==t;)ll(t,e,i),t=t.sibling}function cl(t,e,i){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(4!==r&&null!==(t=t.child))for(cl(t,e,i),t=t.sibling;null!==t;)cl(t,e,i),t=t.sibling}var hl=null,ul=!1;function dl(t,e,i){for(i=i.child;null!==i;)pl(t,e,i),i=i.sibling}function pl(t,e,i){if(ne&&"function"==typeof ne.onCommitFiberUnmount)try{ne.onCommitFiberUnmount(se,i)}catch(t){}switch(i.tag){case 5:Ya||Ja(i,e);case 6:var r=hl,s=ul;hl=null,dl(t,e,i),ul=s,null!==(hl=r)&&(ul?(t=hl,i=i.stateNode,8===t.nodeType?t.parentNode.removeChild(i):t.removeChild(i)):hl.removeChild(i.stateNode));break;case 18:null!==hl&&(ul?(t=hl,i=i.stateNode,8===t.nodeType?as(t.parentNode,i):1===t.nodeType&&as(t,i),Ve(t)):as(hl,i.stateNode));break;case 4:r=hl,s=ul,hl=i.stateNode.containerInfo,ul=!0,dl(t,e,i),hl=r,ul=s;break;case 0:case 11:case 14:case 15:if(!Ya&&(null!==(r=i.updateQueue)&&null!==(r=r.lastEffect))){s=r=r.next;do{var n=s,o=n.destroy;n=n.tag,void 0!==o&&(2&n||4&n)&&tl(i,e,o),s=s.next}while(s!==r)}dl(t,e,i);break;case 1:if(!Ya&&(Ja(i,e),"function"==typeof(r=i.stateNode).componentWillUnmount))try{r.props=i.memoizedProps,r.state=i.memoizedState,r.componentWillUnmount()}catch(t){Cc(i,e,t)}dl(t,e,i);break;case 21:dl(t,e,i);break;case 22:1&i.mode?(Ya=(r=Ya)||null!==i.memoizedState,dl(t,e,i),Ya=r):dl(t,e,i);break;default:dl(t,e,i)}}function fl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var i=t.stateNode;null===i&&(i=t.stateNode=new Ka),e.forEach((function(e){var r=Ac.bind(null,t,e);i.has(e)||(i.add(e),e.then(r,r))}))}}function ml(t,e){var i=e.deletions;if(null!==i)for(var r=0;rs&&(s=a),r&=~o}if(r=s,10<(r=(120>(r=Kt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){t.timeoutHandle=is(bc.bind(null,t,jl,ql),r);break}bc(t,jl,ql);break;default:throw Error(n(329))}}}return rc(t,Kt()),t.callbackNode===i?sc.bind(null,t):null}function nc(t,e){var i=Fl;return t.current.memoizedState.isDehydrated&&(dc(t,e).flags|=256),2!==(t=gc(t,e))&&(e=jl,jl=i,null!==e&&oc(e)),t}function oc(t){null===jl?jl=t:jl.push.apply(jl,t)}function ac(t,e){for(e&=~Bl,e&=~Nl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0t?16:t,null===Xl)var r=!1;else{if(t=Xl,Xl=null,Zl=0,6&Al)throw Error(n(331));var s=Al;for(Al|=4,Qa=t.current;null!==Qa;){var o=Qa,a=o.child;if(16&Qa.flags){var l=o.deletions;if(null!==l){for(var c=0;cKt()-Ul?dc(t,0):Bl|=i),rc(t,e)}function kc(t,e){0===e&&(1&t.mode?(e=he,!(130023424&(he<<=1))&&(he=4194304)):e=1);var i=tc();null!==(t=zn(t,e))&&(ye(t,e,i),rc(t,i))}function Ec(t){var e=t.memoizedState,i=0;null!==e&&(i=e.retryLane),kc(t,i)}function Ac(t,e){var i=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;null!==s&&(i=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(n(314))}null!==r&&r.delete(e),kc(t,i)}function Mc(t,e){return Wt(t,e)}function Pc(t,e,i,r){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(t,e,i,r){return new Pc(t,e,i,r)}function Lc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Dc(t,e){var i=t.alternate;return null===i?((i=Ic(t.tag,e,t.key,t.mode)).elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=14680064&t.flags,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function zc(t,e,i,r,s,o){var a=2;if(r=t,"function"==typeof t)Lc(t)&&(a=1);else if("string"==typeof t)a=5;else t:switch(t){case S:return Oc(i.children,s,o,e);case C:a=8,s|=8;break;case T:return(t=Ic(12,i,e,2|s)).elementType=T,t.lanes=o,t;case M:return(t=Ic(13,i,e,s)).elementType=M,t.lanes=o,t;case P:return(t=Ic(19,i,e,s)).elementType=P,t.lanes=o,t;case D:return Rc(i,s,o,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case k:a=10;break t;case E:a=9;break t;case A:a=11;break t;case I:a=14;break t;case L:a=16,r=null;break t}throw Error(n(130,null==t?t:typeof t,""))}return(e=Ic(a,i,e,s)).elementType=t,e.type=r,e.lanes=o,e}function Oc(t,e,i,r){return(t=Ic(7,t,r,e)).lanes=i,t}function Rc(t,e,i,r){return(t=Ic(22,t,r,e)).elementType=D,t.lanes=i,t.stateNode={isHidden:!1},t}function Nc(t,e,i){return(t=Ic(6,t,null,e)).lanes=i,t}function Bc(t,e,i){return(e=Ic(4,null!==t.children?t.children:[],t.key,e)).lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Fc(t,e,i,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ge(0),this.expirationTimes=ge(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ge(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function jc(t,e,i,r,s,n,o,a,l){return t=new Fc(t,e,i,a,l),1===e?(e=1,!0===n&&(e|=8)):e=0,n=Ic(3,null,null,e),t.current=n,n.stateNode=t,n.memoizedState={element:r,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rn(n),t}function Uc(t){if(!t)return ks;t:{if(Vt(t=t._reactInternals)!==t||1!==t.tag)throw Error(n(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Is(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(n(171))}if(1===t.tag){var i=t.type;if(Is(i))return zs(t,i,e)}return e}function Vc(t,e,i,r,s,n,o,a,l){return(t=jc(i,r,!0,t,0,n,0,a,l)).context=Uc(null),i=t.current,(n=Bn(r=tc(),s=ec(i))).callback=null!=e?e:null,Fn(i,n,s),t.current.lanes=s,ye(t,s,r),rc(t,r),t}function qc(t,e,i,r){var s=e.current,n=tc(),o=ec(s);return i=Uc(i),null===e.context?e.context=i:e.pendingContext=i,(e=Bn(n,o)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=Fn(s,e,o))&&(ic(t,s,o,n),jn(t,s,o)),o}function Gc(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function $c(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var i=t.retryLane;t.retryLane=0!==i&&i{"use strict";var r=i(961);e.H=r.createRoot,r.hydrateRoot},961:(t,e,i)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=i(551)},287:(t,e)=>{"use strict";var i=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(t,e,i){this.props=t,this.context=e,this.refs=g,this.updater=i||f}function _(){}function v(t,e,i){this.props=t,this.context=e,this.refs=g,this.updater=i||f}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=y.prototype;var x=v.prototype=new _;x.constructor=v,m(x,y.prototype),x.isPureReactComponent=!0;var b=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,r){var s,n={},o=null,a=null;if(null!=e)for(s in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)w.call(e,s)&&!C.hasOwnProperty(s)&&(n[s]=e[s]);var l=arguments.length-2;if(1===l)n.children=r;else if(1{"use strict";t.exports=i(287)},463:(t,e)=>{"use strict";function i(t,e){var i=t.length;t.push(e);t:for(;0>>1,s=t[r];if(!(0>>1;rn(l,i))cn(h,l)?(t[r]=h,t[c]=i,r=c):(t[r]=l,t[a]=i,r=a);else{if(!(cn(h,i)))break t;t[r]=h,t[c]=i,r=c}}}return e}function n(t,e){var i=t.sortIndex-e.sortIndex;return 0!==i?i:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],h=[],u=1,d=null,p=3,f=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(t){for(var e=r(h);null!==e;){if(null===e.callback)s(h);else{if(!(e.startTime<=t))break;s(h),e.sortIndex=e.expirationTime,i(c,e)}e=r(h)}}function b(t){if(g=!1,x(t),!m)if(null!==r(c))m=!0,D(w);else{var e=r(h);null!==e&&z(b,e.startTime-t)}}function w(t,i){m=!1,g&&(g=!1,_(k),k=-1),f=!0;var n=p;try{for(x(i),d=r(c);null!==d&&(!(d.expirationTime>i)||t&&!M());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var a=o(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof a?d.callback=a:d===r(c)&&s(c),x(i)}else s(c);d=r(c)}if(null!==d)var l=!0;else{var u=r(h);null!==u&&z(b,u.startTime-i),l=!1}return l}finally{d=null,p=n,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,T=null,k=-1,E=5,A=-1;function M(){return!(e.unstable_now()-At||125o?(t.sortIndex=n,i(h,t),null===r(c)&&t===r(h)&&(g?(_(k),k=-1):g=!0,z(b,n-o))):(t.sortIndex=a,i(c,t),m||f||(m=!0,D(w))),t},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(t){var e=p;return function(){var i=p;p=e;try{return t.apply(this,arguments)}finally{p=i}}}},982:(t,e,i)=>{"use strict";t.exports=i(463)},154:(t,e,i)=>{"use strict";var r=i(540);var s="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useSyncExternalStore,o=r.useRef,a=r.useEffect,l=r.useMemo,c=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,i,r,h){var u=o(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;u=l((function(){function t(t){if(!a){if(a=!0,n=t,t=r(t),void 0!==h&&d.hasValue){var e=d.value;if(h(e,t))return o=e}return o=t}if(e=o,s(n,t))return e;var i=r(t);return void 0!==h&&h(e,i)?e:(n=t,o=i)}var n,o,a=!1,l=void 0===i?null:i;return[function(){return t(e())},null===l?void 0:function(){return t(l())}]}),[e,i,r,h]);var p=n(t,u[0],u[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},418:(t,e,i)=>{"use strict";t.exports=i(154)},443:function(t){t.exports=function(){"use strict";var t,e,i;function r(r,s){if(t)if(e){var n="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",o={};t(o),i=s(o),"undefined"!=typeof window&&(i.workerUrl=window.URL.createObjectURL(new Blob([n],{type:"text/javascript"})))}else e=s;else t=s}return r(["exports"],(function(t){function e(t,e,i,r){return new(i||(i=Promise))((function(s,n){function o(t){try{l(r.next(t))}catch(t){n(t)}}function a(t){try{l(r.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,a)}l((r=r.apply(t,e||[])).next())}))}function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"function"==typeof SuppressedError&&SuppressedError;var r=s;function s(t,e){this.x=t,this.y=e}s.prototype={clone:function(){return new s(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),i=Math.sin(t),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround:function(t,e){var i=Math.cos(t),r=Math.sin(t),s=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=s,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},s.convert=function(t){return t instanceof s?t:Array.isArray(t)?new s(t[0],t[1]):t};var n=i(r),o=a;function a(t,e,i,r){this.cx=3*t,this.bx=3*(i-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=i,this.p2y=r}a.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var i=t,r=0;r<8;r++){var s=this.sampleCurveX(i)-t;if(Math.abs(s)s?o=i:a=i,i=.5*(a-o)+o;return i},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var l=i(o);let c,h;function u(){return null==c&&(c="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),c}function d(){if(null==h&&(h=!1,u())){const t=5,e=new OffscreenCanvas(t,t).getContext("2d",{willReadFrequently:!0});if(e){for(let i=0;i(e.y-t.y)*(i.x-t.x)}function T(t){let e=0;for(let i,r,s=0,n=t.length,o=n-1;scancelAnimationFrame(e)}},getImageData(t,e=0){return this.getImageCanvasContext(t).getImageData(-e,-e,t.width+2*e,t.height+2*e)},getImageCanvasContext(t){const e=window.document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:!0});if(!i)throw new Error("failed to create canvas 2d context");return e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height),i},resolveURL:t=>(D||(D=document.createElement("a")),D.href=t,D.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==z&&(z=matchMedia("(prefers-reduced-motion: reduce)")),z.matches)}},R={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class N extends Error{constructor(t,e,i,r){super(`AJAXError: ${e} (${t}): ${i}`),this.status=t,this.statusText=e,this.url=i,this.body=r}}const B=k()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href,F=t=>R.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))];function j(t,e){const i=new AbortController,r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:B(),signal:i.signal});let s=!1,n=!1;return"json"===t.type&&r.headers.set("Accept","application/json"),n||fetch(r).then((i=>i.ok?(i=>{("arrayBuffer"===t.type||"image"===t.type?i.arrayBuffer():"json"===t.type?i.json():i.text()).then((t=>{n||(s=!0,e(null,t,i.headers.get("Cache-Control"),i.headers.get("Expires")))})).catch((t=>{n||e(new Error(t.message))}))})(i):i.blob().then((r=>e(new N(i.status,i.statusText,t.url,r)))))).catch((t=>{20!==t.code&&e(new Error(t.message))})),{cancel:()=>{n=!0,s||i.abort()}}}const U=function(t,e){if(/:\/\//.test(t.url)&&!/^https?:|^file:/.test(t.url)){if(k()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e);if(!k())return(F(t.url)||j)(t,e)}if(!(/^file:/.test(i=t.url)||/^file:/.test(B())&&!/^\w+:/.test(i))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return j(t,e);if(k()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var i;return function(t,e){const i=new XMLHttpRequest;i.open(t.method||"GET",t.url,!0),"arrayBuffer"!==t.type&&"image"!==t.type||(i.responseType="arraybuffer");for(const e in t.headers)i.setRequestHeader(e,t.headers[e]);return"json"===t.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===t.credentials,i.onerror=()=>{e(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let r=i.response;if("json"===t.type)try{r=JSON.parse(i.response)}catch(t){return e(t)}e(null,r,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else{const r=new Blob([i.response],{type:i.getResponseHeader("Content-Type")});e(new N(i.status,i.statusText,t.url,r))}},i.send(t.body),{cancel:()=>i.abort()}}(t,e)},V=function(t,e){return U(y(t,{type:"arrayBuffer"}),e)};function q(t){if(!t||t.indexOf("://")<=0||0===t.indexOf("data:image/")||0===t.indexOf("blob:"))return!0;const e=new URL(t),i=window.location;return e.protocol===i.protocol&&e.host===i.host}function G(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function $(t,e,i){if(i&&i[t]){const r=i[t].indexOf(e);-1!==r&&i[t].splice(r,1)}}class H{constructor(t,e={}){y(this,e),this.type=t}}class W extends H{constructor(t,e={}){super("error",y({error:t},e))}}class X{on(t,e){return this._listeners=this._listeners||{},G(t,e,this._listeners),this}off(t,e){return $(t,e,this._listeners),$(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners=this._oneTimeListeners||{},G(t,e,this._oneTimeListeners),this):new Promise((e=>this.once(t,e)))}fire(t,e){"string"==typeof t&&(t=new H(t,e||{}));const i=t.type;if(this.listens(i)){t.target=this;const e=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const i of e)i.call(this,t);const r=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const e of r)$(i,e,this._oneTimeListeners),e.call(this,t);const s=this._eventedParent;s&&(y(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else t instanceof W&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var Z={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const Y=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function K(t,e){const i={};for(const e in t)"ref"!==e&&(i[e]=t[e]);return Y.forEach((t=>{t in e&&(i[t]=e[t])})),i}function Q(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let i=0;i`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}const Tt=[ut,dt,pt,ft,mt,vt,gt,St(yt),xt,bt,wt];function kt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!kt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(const t of Tt)if(!kt(t,e))return null}return`Expected ${Ct(t)} but found ${Ct(e)} instead.`}function Et(t,e){return e.some((e=>e.kind===t.kind))}function At(t,e){return e.some((e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t))}function Mt(t,e){return"array"===t.kind&&"array"===e.kind?t.itemType.kind===e.itemType.kind&&"number"==typeof t.N:t.kind===e.kind}const Pt=.96422,It=.82521,Lt=4/29,Dt=6/29,zt=3*Dt*Dt,Ot=Dt*Dt*Dt,Rt=Math.PI/180,Nt=180/Math.PI;function Bt(t){return(t%=360)<0&&(t+=360),t}function Ft([t,e,i,r]){let s,n;const o=Ut((.2225045*(t=jt(t))+.7168786*(e=jt(e))+.0606169*(i=jt(i)))/1);t===e&&e===i?s=n=o:(s=Ut((.4360747*t+.3850649*e+.1430804*i)/Pt),n=Ut((.0139322*t+.0971045*e+.7141733*i)/It));const a=116*o-16;return[a<0?0:a,500*(s-o),200*(o-n),r]}function jt(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ut(t){return t>Ot?Math.pow(t,1/3):t/zt+Lt}function Vt([t,e,i,r]){let s=(t+16)/116,n=isNaN(e)?s:s+e/500,o=isNaN(i)?s:s-i/200;return s=1*Gt(s),n=Pt*Gt(n),o=It*Gt(o),[qt(3.1338561*n-1.6168667*s-.4906146*o),qt(-.9787684*n+1.9161415*s+.033454*o),qt(.0719453*n-.2289914*s+1.4052427*o),r]}function qt(t){return(t=t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055)<0?0:t>1?1:t}function Gt(t){return t>Dt?t*t*t:zt*(t-Lt)}function $t(t){return parseInt(t.padEnd(2,t),16)/255}function Ht(t,e){return Wt(e?t/100:t,0,1)}function Wt(t,e,i){return Math.min(Math.max(e,t),i)}function Xt(t){return!t.some(Number.isNaN)}const Zt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Yt{constructor(t,e,i,r=1,s=!0){this.r=t,this.g=e,this.b=i,this.a=r,s||(this.r*=r,this.g*=r,this.b*=r,r||this.overwriteGetter("rgb",[t,e,i,r]))}static parse(t){if(t instanceof Yt)return t;if("string"!=typeof t)return;const e=function(t){if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];const e=Zt[t];if(e){const[t,i,r]=e;return[t/255,i/255,r/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){const e=t.length<6?1:2;let i=1;return[$t(t.slice(i,i+=e)),$t(t.slice(i,i+=e)),$t(t.slice(i,i+=e)),$t(t.slice(i,i+e)||"ff")]}if(t.startsWith("rgb")){const e=t.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(e){const[t,i,r,s,n,o,a,l,c,h,u,d]=e,p=[s||" ",a||" ",h].join("");if(" "===p||" /"===p||",,"===p||",,,"===p){const t=[r,o,c].join(""),e="%%%"===t?100:""===t?255:0;if(e){const t=[Wt(+i/e,0,1),Wt(+n/e,0,1),Wt(+l/e,0,1),u?Ht(+u,d):1];if(Xt(t))return t}}return}}const i=t.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){const[t,e,r,s,n,o,a,l,c]=i,h=[r||" ",n||" ",a].join("");if(" "===h||" /"===h||",,"===h||",,,"===h){const t=[+e,Wt(+s,0,100),Wt(+o,0,100),l?Ht(+l,c):1];if(Xt(t))return function([t,e,i,r]){function s(r){const s=(r+t/30)%12,n=e*Math.min(i,1-i);return i-n*Math.max(-1,Math.min(s-3,9-s,1))}return t=Bt(t),e/=100,i/=100,[s(0),s(8),s(4),r]}(t)}}}(t);return e?new Yt(...e,!1):void 0}get rgb(){const{r:t,g:e,b:i,a:r}=this,s=r||1/0;return this.overwriteGetter("rgb",[t/s,e/s,i/s,r])}get hcl(){return this.overwriteGetter("hcl",function(t){const[e,i,r,s]=Ft(t),n=Math.sqrt(i*i+r*r);return[Math.round(1e4*n)?Bt(Math.atan2(r,i)*Nt):NaN,n,e,s]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Ft(this.rgb))}overwriteGetter(t,e){return Object.defineProperty(this,t,{value:e}),e}toString(){const[t,e,i,r]=this.rgb;return`rgba(${[t,e,i].map((t=>Math.round(255*t))).join(",")},${r})`}}Yt.black=new Yt(0,0,0,1),Yt.white=new Yt(1,1,1,1),Yt.transparent=new Yt(0,0,0,0),Yt.red=new Yt(1,0,0,1);class Kt{constructor(t,e,i){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Qt{constructor(t,e,i,r,s){this.text=t,this.image=e,this.scale=i,this.fontStack=r,this.textColor=s}}class Jt{constructor(t){this.sections=t}static fromString(t){return new Jt([new Qt(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((t=>0!==t.text.length||t.image&&0!==t.image.name.length))}static factory(t){return t instanceof Jt?t:Jt.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map((t=>t.text)).join("")}}class te{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof te)return t;if("number"==typeof t)return new te([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(const e of t)if("number"!=typeof e)return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new te(t)}}toString(){return JSON.stringify(this.values)}}const ee=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class ie{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ie)return t;if(Array.isArray(t)&&!(t.length<1)&&t.length%2==0){for(let e=0;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[t,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[t,e,i,r]:[t,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ne(t){if(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t||t instanceof Yt||t instanceof Kt||t instanceof Jt||t instanceof te||t instanceof ie||t instanceof re)return!0;if(Array.isArray(t)){for(const e of t)if(!ne(e))return!1;return!0}if("object"==typeof t){for(const e in t)if(!ne(t[e]))return!1;return!0}return!1}function oe(t){if(null===t)return ut;if("string"==typeof t)return pt;if("boolean"==typeof t)return ft;if("number"==typeof t)return dt;if(t instanceof Yt)return mt;if(t instanceof Kt)return _t;if(t instanceof Jt)return vt;if(t instanceof te)return xt;if(t instanceof ie)return wt;if(t instanceof re)return bt;if(Array.isArray(t)){const e=t.length;let i;for(const e of t){const t=oe(e);if(i){if(i===t)continue;i=yt;break}i=t}return St(i||yt,e)}return gt}function ae(t){const e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Yt||t instanceof Jt||t instanceof te||t instanceof ie||t instanceof re?t.toString():JSON.stringify(t)}class le{constructor(t,e){this.type=t,this.value=e}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!ne(t[1]))return e.error("invalid value");const i=t[1];let r=oe(i);const s=e.expectedType;return"array"!==r.kind||0!==r.N||!s||"array"!==s.kind||"number"==typeof s.N&&0!==s.N||(r=s),new le(r,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ce{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const he={string:pt,number:dt,boolean:ft,object:gt};class ue{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let i,r=1;const s=t[0];if("array"===s){let s,n;if(t.length>2){const i=t[1];if("string"!=typeof i||!(i in he)||"object"===i)return e.error('The item type argument of "array" must be one of string, number, boolean',1);s=he[i],r++}else s=yt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);n=t[2],r++}i=St(s,n)}else{if(!he[s])throw new Error(`Types doesn't contain name = ${s}`);i=he[s]}const n=[];for(;rt.outputDefined()))}}const de={"to-boolean":ft,"to-color":mt,"to-number":dt,"to-string":pt};class pe{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const i=t[0];if(!de[i])throw new Error(`Can't parse ${i} as it is not part of the known types`);if(("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");const r=de[i],s=[];for(let i=1;i4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:se(e[0],e[1],e[2],e[3]),!i))return new Yt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ce(i||`Could not parse color from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"padding":{let e;for(const i of this.args){e=i.evaluate(t);const r=te.parse(e);if(r)return r}throw new ce(`Could not parse padding from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"variableAnchorOffsetCollection":{let e;for(const i of this.args){e=i.evaluate(t);const r=ie.parse(e);if(r)return r}throw new ce(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof e?e:JSON.stringify(e)}'`)}case"number":{let e=null;for(const i of this.args){if(e=i.evaluate(t),null===e)return 0;const r=Number(e);if(!isNaN(r))return r}throw new ce(`Could not convert ${JSON.stringify(e)} to number.`)}case"formatted":return Jt.fromString(ae(this.args[0].evaluate(t)));case"resolvedImage":return re.fromString(ae(this.args[0].evaluate(t)));default:return ae(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}const fe=["Unknown","Point","LineString","Polygon"];class me{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?fe[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Yt.parse(t)),e}}class ge{constructor(t,e,i=[],r,s=new ht,n=[]){this.registry=t,this.path=i,this.key=i.map((t=>`[${t}]`)).join(""),this.scope=s,this.errors=n,this.expectedType=r,this._isConstant=e}parse(t,e,i,r,s={}){return e?this.concat(e,i,r)._parse(t,s):this._parse(t,s)}_parse(t,e){function i(t,e,i){return"assert"===i?new ue(e,[t]):"coerce"===i?new pe(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=t[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const s=this.registry[r];if(s){let r=s.parse(t,this);if(!r)return null;if(this.expectedType){const t=this.expectedType,s=r.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==s.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==s.kind&&"string"!==s.kind)if("padding"!==t.kind||"value"!==s.kind&&"number"!==s.kind&&"array"!==s.kind)if("variableAnchorOffsetCollection"!==t.kind||"value"!==s.kind&&"array"!==s.kind){if(this.checkSubtype(t,s))return null}else r=i(r,t,e.typeAnnotation||"coerce");else r=i(r,t,e.typeAnnotation||"coerce");else r=i(r,t,e.typeAnnotation||"coerce");else r=i(r,t,e.typeAnnotation||"assert")}if(!(r instanceof le)&&"resolvedImage"!==r.type.kind&&this._isConstant(r)){const e=new me;try{r=new le(r.type,r.evaluate(e))}catch(t){return this.error(t.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,i){const r="number"==typeof t?this.path.concat(t):this.path,s=i?this.scope.concat(i):this.scope;return new ge(this.registry,this._isConstant,r,e||null,s,this.errors)}error(t,...e){const i=`${this.key}${e.map((t=>`[${t}]`)).join("")}`;this.errors.push(new ct(i,t))}checkSubtype(t,e){const i=kt(t,e);return i&&this.error(i),i}}class ye{constructor(t,e,i){this.type=_t,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=e}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");const i=t[1];if("object"!=typeof i||Array.isArray(i))return e.error("Collator options argument must be an object.");const r=e.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,ft);if(!r)return null;const s=e.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,ft);if(!s)return null;let n=null;return i.locale&&(n=e.parse(i.locale,1,pt),!n)?null:new ye(r,s,n)}evaluate(t){return new Kt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}}const _e=8192;function ve(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function be(t,e){const i=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,s=Math.pow(2,e.z);return[Math.round(i*s*_e),Math.round(r*s*_e)]}function we(t,e,i){const r=t[0]-e[0],s=t[1]-e[1],n=t[0]-i[0],o=t[1]-i[1];return r*o-n*s==0&&r*n<=0&&s*o<=0}function Se(t,e){let i=!1;for(let o=0,a=e.length;o(r=t)[1]!=(n=a[e+1])[1]>r[1]&&r[0]<(n[0]-s[0])*(r[1]-s[1])/(n[1]-s[1])+s[0]&&(i=!i)}}var r,s,n;return i}function Ce(t,e){for(let i=0;i0&&a<0||o<0&&a>0}function ke(t,e,i){for(const c of i)for(let i=0;ii[2]){const e=.5*r;let s=t[0]-i[0]>e?-r:i[0]-t[0]>e?r:0;0===s&&(s=t[0]-i[2]>e?-r:i[2]-t[0]>e?r:0),t[0]+=s}ve(e,t)}function Le(t,e,i,r){const s=Math.pow(2,r.z)*_e,n=[r.x*_e,r.y*_e],o=[];for(const r of t)for(const t of r){const r=[t.x+n[0],t.y+n[1]];Ie(r,e,i,s),o.push(r)}return o}function De(t,e,i,r){const s=Math.pow(2,r.z)*_e,n=[r.x*_e,r.y*_e],o=[];for(const i of t){const t=[];for(const r of i){const i=[r.x+n[0],r.y+n[1]];ve(e,i),t.push(i)}o.push(t)}if(e[2]-e[0]<=s/2){(a=e)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const t of o)for(const r of t)Ie(r,e,i,s)}var a;return o}class ze{constructor(t,e){this.type=ft,this.geojson=t,this.geometries=e}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(ne(t[1])){const e=t[1];if("FeatureCollection"===e.type)for(let t=0;t!Array.isArray(e)||e.length===t.length-1));let a=null;for(const[r,n]of o){a=new ge(e.registry,Ne,e.path,null,e.scope);const o=[];let l=!1;for(let e=1;e{return e=t,Array.isArray(e)?`(${e.map(Ct).join(", ")})`:`(${Ct(e.type)}...)`;var e})).join(" | "),r=[];for(let i=1;i{i=e?i&&Ne(t):i&&t instanceof le})),!!i&&Be(t)&&je(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Be(t){if(t instanceof Re){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;let e=!0;return t.eachChild((t=>{e&&!Be(t)&&(e=!1)})),e}function Fe(t){if(t instanceof Re&&"feature-state"===t.name)return!1;let e=!0;return t.eachChild((t=>{e&&!Fe(t)&&(e=!1)})),e}function je(t,e){if(t instanceof Re&&e.indexOf(t.name)>=0)return!1;let i=!0;return t.eachChild((t=>{i&&!je(t,e)&&(i=!1)})),i}function Ue(t,e){const i=t.length-1;let r,s,n=0,o=i,a=0;for(;n<=o;)if(a=Math.floor((n+o)/2),r=t[a],s=t[a+1],r<=e){if(a===i||ee))throw new ce("Input is not a number.");o=a-1}return 0}class Ve{constructor(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(const[t,e]of i)this.labels.push(t),this.outputs.push(e)}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");const i=e.parse(t[1],1,dt);if(!i)return null;const r=[];let s=null;e.expectedType&&"value"!==e.expectedType.kind&&(s=e.expectedType);for(let i=1;i=n)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=e.parse(o,l,s);if(!c)return null;s=s||c.type,r.push([n,c])}return new Ve(s,i,r)}evaluate(t){const e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);const r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);const s=e.length;return r>=e[s-1]?i[s-1].evaluate(t):i[Ue(e,r)].evaluate(t)}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}function qe(t,e,i){return t+i*(e-t)}function Ge(t,e,i){return t.map(((t,r)=>qe(t,e[r],i)))}const $e={number:qe,color:function(t,e,i,r="rgb"){switch(r){case"rgb":{const[r,s,n,o]=Ge(t.rgb,e.rgb,i);return new Yt(r,s,n,o,!1)}case"hcl":{const[r,s,n,o]=t.hcl,[a,l,c,h]=e.hcl;let u,d;if(isNaN(r)||isNaN(a))isNaN(r)?isNaN(a)?u=NaN:(u=a,1!==n&&0!==n||(d=l)):(u=r,1!==c&&0!==c||(d=s));else{let t=a-r;a>r&&t>180?t-=360:a180&&(t+=360),u=r+i*t}const[p,f,m,g]=function([t,e,i,r]){return t=isNaN(t)?0:t*Rt,Vt([i,Math.cos(t)*e,Math.sin(t)*e,r])}([u,null!=d?d:qe(s,l,i),qe(n,c,i),qe(o,h,i)]);return new Yt(p,f,m,g,!1)}case"lab":{const[r,s,n,o]=Vt(Ge(t.lab,e.lab,i));return new Yt(r,s,n,o,!1)}}},array:Ge,padding:function(t,e,i){return new te(Ge(t.values,e.values,i))},variableAnchorOffsetCollection:function(t,e,i){const r=t.values,s=e.values;if(r.length!==s.length)throw new ce(`Cannot interpolate values of different length. from: ${t.toString()}, to: ${e.toString()}`);const n=[];for(let t=0;t"number"!=typeof t||t<0||t>1)))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:t}}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(s=e.parse(s,2,dt),!s)return null;const o=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=mt:e.expectedType&&"value"!==e.expectedType.kind&&(a=e.expectedType);for(let t=0;t=i)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',s);const c=e.parse(r,l,a);if(!c)return null;a=a||c.type,o.push([i,c])}return Mt(a,dt)||Mt(a,mt)||Mt(a,xt)||Mt(a,wt)||Mt(a,St(dt))?new He(a,i,r,s,o):e.error(`Type ${Ct(a)} is not interpolatable.`)}evaluate(t){const e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);const r=this.input.evaluate(t);if(r<=e[0])return i[0].evaluate(t);const s=e.length;if(r>=e[s-1])return i[s-1].evaluate(t);const n=Ue(e,r),o=He.interpolationFactor(this.interpolation,r,e[n],e[n+1]),a=i[n].evaluate(t),l=i[n+1].evaluate(t);switch(this.operator){case"interpolate":return $e[this.type.kind](a,l,o);case"interpolate-hcl":return $e.color(a,l,o,"hcl");case"interpolate-lab":return $e.color(a,l,o,"lab")}}eachChild(t){t(this.input);for(const e of this.outputs)t(e)}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}}function We(t,e,i,r){const s=r-i,n=t-i;return 0===s?0:1===e?n/s:(Math.pow(e,n)-1)/(Math.pow(e,s)-1)}class Xe{constructor(t,e){this.type=t,this.args=e}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let i=null;const r=e.expectedType;r&&"value"!==r.kind&&(i=r);const s=[];for(const r of t.slice(1)){const t=e.parse(r,1+s.length,i,void 0,{typeAnnotation:"omit"});if(!t)return null;i=i||t.type,s.push(t)}if(!i)throw new Error("No output type");const n=r&&s.some((t=>kt(r,t.type)));return new Xe(n?yt:i,s)}evaluate(t){let e,i=null,r=0;for(const s of this.args)if(r++,i=s.evaluate(t),i&&i instanceof re&&!i.available&&(e||(e=i.name),i=null,r===this.args.length&&(i=e)),null!==i)break;return i}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every((t=>t.outputDefined()))}}class Ze{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const e of this.bindings)t(e[1]);t(this.result)}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const i=[];for(let r=1;r=i.length)throw new ce(`Array index out of bounds: ${e} > ${i.length-1}.`);if(e!==Math.floor(e))throw new ce(`Array index must be an integer, but found ${e} instead.`);return i[e]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}}class Ke{constructor(t,e){this.type=ft,this.needle=t,this.haystack=e}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,yt),r=e.parse(t[2],2,yt);return i&&r?Et(i.type,[ft,pt,dt,ut,yt])?new Ke(i,r):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(i.type)} instead`):null}evaluate(t){const e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!At(e,["boolean","string","number","null"]))throw new ce(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(oe(e))} instead.`);if(!At(i,["string","array"]))throw new ce(`Expected second argument to be of type array or string, but found ${Ct(oe(i))} instead.`);return i.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}}class Qe{constructor(t,e,i){this.type=dt,this.needle=t,this.haystack=e,this.fromIndex=i}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const i=e.parse(t[1],1,yt),r=e.parse(t[2],2,yt);if(!i||!r)return null;if(!Et(i.type,[ft,pt,dt,ut,yt]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(i.type)} instead`);if(4===t.length){const s=e.parse(t[3],3,dt);return s?new Qe(i,r,s):null}return new Qe(i,r)}evaluate(t){const e=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!At(e,["boolean","string","number","null"]))throw new ce(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(oe(e))} instead.`);if(!At(i,["string","array"]))throw new ce(`Expected second argument to be of type array or string, but found ${Ct(oe(i))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(t);return i.indexOf(e,r)}return i.indexOf(e)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}}class Je{constructor(t,e,i,r,s,n){this.inputType=t,this.type=e,this.input=i,this.cases=r,this.outputs=s,this.otherwise=n}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let i,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);const s={},n=[];for(let o=2;o