=a&&o<=l||h||!A(o))&&(c=!0),n[h?"zoomX":"zoomY"]&&c&&(e=s.zoom(t.min,t.max),s.displayBtn&&(r=!0))}));var s=i.resetZoomButton;r&&!s?i.showResetZoom():!r&&B(s)&&(i.resetZoomButton=s.destroy()),e&&i.redraw(H(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i,n=this,r=n.hoverPoints,o=n.options.chart,s=n.options.mapNavigation&&n.options.mapNavigation.enabled;e="object"===typeof e?e:{enabled:e,type:"x"},o&&o.panning&&(o.panning=e);var a=e.type;z(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach((function(e){var r=n[e?"xAxis":"yAxis"][0],o=r.horiz,l=t[o?"chartX":"chartY"];o=o?"mouseDownX":"mouseDownY";var h=n[o],c=(r.pointRange||0)/2,u=r.reversed&&!n.inverted||!r.reversed&&n.inverted?-1:1,d=r.getExtremes(),p=r.toValue(h-l,!0)+c*u;u=r.toValue(h+r.len-l,!0)-c*u;var f=u=e&&p<=c&&(r.setExtremes(h,p,!1,!1,{trigger:"pan"}),n.resetZoomButton||s||h===e||p===c||!a.match("y")||(n.showResetZoom(),r.displayBtn=!1),i=!0),n[o]=l)})),i&&n.redraw(!1),T(n.container,{cursor:"move"})}))},t}();return L(K.prototype,{callbacks:[],collectionsWithInit:{xAxis:[K.prototype.addAxis,[!0]],yAxis:[K.prototype.addAxis,[!1]],series:[K.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),n.chart=function(t,e,i){return new K(t,e,i)},n.Chart=K,K})),e(i,"Mixins/LegendSymbol.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.merge,n=e.pick;return t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,r=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(t.symbolWidth-i)/2:0,t.baseline-i+1,r?i:t.symbolWidth,i,n(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,r=e.marker,o=t.symbolWidth,s=t.symbolHeight,a=s/2,l=this.chart.renderer,h=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={};this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=l.path([["M",0,t],["L",o,t]]).addClass("highcharts-graph").attr(c).add(h),r&&!1!==r.enabled&&o&&(e=Math.min(n(r.radius,a),a),0===this.symbol.indexOf("url")&&(r=i(r,{width:s,height:s}),e=0),this.legendSymbol=r=l.symbol(this.symbol,o/2-e,t-e,2*e,2*e,r).addClass("highcharts-point").add(h),r.isMarker=!0)}}})),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Options.js"],i["Core/Color/Palette.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,n,r,o,s,a,l){var h=t.animObject,c=t.setAnimation,u=e.hasTouch,d=e.svg,p=e.win,f=n.defaultOptions,g=s.seriesTypes,m=l.addEvent,y=l.arrayMax,v=l.arrayMin,b=l.clamp,x=l.cleanRecursively,w=l.correctFloat,_=l.defined,S=l.erase,C=l.error,M=l.extend,k=l.find,T=l.fireEvent,A=l.getNestedProperty,O=l.isArray,P=l.isFunction,E=l.isNumber,L=l.isString,D=l.merge,z=l.objectEach,I=l.pick,R=l.removeEvent,N=l.splat,j=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){T(this,"init",{options:e});var i,n=this,r=t.series;this.eventOptions=this.eventOptions||{},this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e);var o=n.options;n.linkedSeries=[],n.bindAxes(),M(n,{name:o.name,state:"",visible:!1!==o.visible,selected:!0===o.selected}),e=o.events,z(e,(function(t,e){P(t)&&n.eventOptions[e]!==t&&(P(n.eventOptions[e])&&R(n,e,n.eventOptions[e]),n.eventOptions[e]=t,m(n,e,t))})),(e&&e.click||o.point&&o.point.events&&o.point.events.click||o.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),n._i=I(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(r)),o.dataSorting&&o.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(o.data,!1),T(this,"afterInit")},t.prototype.is=function(t){return g[t]&&this instanceof g[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(E(i)){for(e=t.length;e--;)if(i>=I(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,n=e.chart;T(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){var o=0;n[r].forEach((function(n){t=n.options,(i[r]===o&&!t.isInternal||"undefined"!==typeof i[r]&&i[r]===t.id||"undefined"===typeof i[r]&&0===t.index)&&(e.insert(n.series),e[r]=n,n.isDirty=!0),t.isInternal||o++})),e[r]||e.optionalAxis===r||C(18,!0,n)}))})),T(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,n=arguments,r=E(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};i.parallelArrays.forEach(r)},t.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?h-this.cropStart:h),!i&&o[h]&&o[h].touched&&(h=void 0),h},t.prototype.updateData=function(t,e){var i,n,r,o=this.options,s=o.dataSorting,a=this.points,l=[],h=this.requireSorting,c=t.length===a.length,u=!0;if(this.xIncrement=null,t.forEach((function(t,e){var n=_(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=n.x;n.id||E(u)?(u=this.findPointIndex(n,r),-1===u||"undefined"===typeof u?l.push(t):a[u]&&t!==o.data[u]?(a[u].update(t,!1,null,!1),a[u].touched=!0,h&&(r=u+1)):a[u]&&(a[u].touched=!0),(!c||e!==u||s&&s.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)}),this),i)for(t=a.length;t--;)(n=a[t])&&!n.touched&&n.remove&&n.remove(!1,e);else!c||s&&s.enabled?u=!1:(t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})),l.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!u&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,n){var r,o=this,s=o.points,a=s&&s.length||0,l=o.options,h=o.chart,c=l.dataSorting,u=null,d=o.xAxis;u=l.turboThreshold;var p,f=this.xData,g=this.yData,m=(r=o.pointArrayMap)&&r.length,y=l.keys,v=0,b=1;if(t=t||[],r=t.length,e=I(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==n&&r&&a&&!o.cropped&&!o.hasGroupedData&&o.visible&&!o.isSeriesBoosting&&(p=this.updateData(t,i)),!p){if(o.xIncrement=null,o.colorCounter=0,this.parallelArrays.forEach((function(t){o[t+"Data"].length=0})),u&&r>u)if(u=o.getFirstValidPoint(t),E(u))for(i=0;it?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,r=i.data;i.dataSorting&&i.dataSorting.enabled||!r||(r.forEach((function(i,o){r[o]=n(e,i),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xData,i=this.yData,n=e.length,r=0,o=this.xAxis,s=this.options,a=s.cropThreshold,l=t||this.getExtremesFromAll||s.getExtremesFromAll,h=this.isCartesian;t=o&&o.val2lin,s=!(!o||!o.logarithmic);var c=this.requireSorting;if(o){o=o.getExtremes();var u=o.min,d=o.max}if(h&&this.sorted&&!l&&(!a||n>a||this.forceCrop))if(e[n-1]d)e=[],i=[];else if(this.yData&&(e[0]d)){r=this.cropData(this.xData,this.yData,u,d),e=r.xData,i=r.yData,r=r.start;var p=!0}for(a=e.length||1;--a;)if(n=s?t(e[a])-t(e[a-1]):e[a]-e[a-1],0n&&c&&(C(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:p,cropStart:r,closestPointRange:f}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},t.prototype.cropData=function(t,e,i,n,r){var o,s=t.length,a=0,l=s;for(r=I(r,this.cropShoulder),o=0;o=i){a=Math.max(0,o-r);break}for(i=o;in){l=i+r;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},t.prototype.generatePoints=function(){var t,e,i=this.options,n=i.data,r=this.data,o=this.processedXData,s=this.processedYData,a=this.pointClass,l=o.length,h=this.cropStart||0,c=this.hasGroupedData,u=i.keys,d=[];for(i=i.dataGrouping&&i.dataGrouping.groupAll?h:0,r||c||(r=[],r.length=n.length,r=this.data=r),u&&c&&(this.options.keys=!1),e=0;e=l&&(o[i-c]||d)<=h,f&&d)if(f=p.length)for(;f--;)E(p[f])&&(s[a++]=p[f]);else s[a++]=p}return t={dataMin:v(s),dataMax:y(s)},T(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=null,i=t.length,n=0;null===e&&n=S&&(S=null),y.total=y.stackTotal=M.total,y.percentage=M.total&&y.y/M.total*100,y.stackY=x,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0)),y.yBottom=_(S)?b(a.translate(S,0,1,0,1),-1e5,1e5):null,c&&(x=this.modifyValue(x,y)),y.plotY=void 0,E(x)&&(x=a.translate(x,!1,!0,!1,!0),"undefined"!==typeof x&&(y.plotY=b(x,-1e5,1e5))),y.isInside=this.isPointInside(y),y.clientX=d?w(r.translate(v,0,0,0,1,u)):e,y.negative=y[g]<(i[g+"Threshold"]||p||0),y.category=o&&"undefined"!==typeof o[y.x]?o[y.x]:y.x,!y.isNull&&!1!==y.visible){"undefined"!==typeof P&&(m=Math.min(m,Math.abs(e-P)));var P=e}y.zone=this.zones.length&&y.getZone(),!y.graphic&&this.group&&s&&(y.isNew=!0)}this.closestPointRangePx=m,T(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var n=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,{inverted:n.inverted}))&&(!1!==t.visible&&(i||!t.isNull))}))},t.prototype.getClipBox=function(t,e){var i=this.options,n=this.chart,r=n.inverted,o=this.xAxis,s=o&&this.yAxis,a=n.options.chart.scrollablePlotArea||{};return t&&!1===i.clip&&s?t=r?{y:-n.chartWidth+s.len+s.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+o.len+o.pos}:{y:-s.pos,height:n.chartHeight,width:n.chartWidth,x:-o.pos}:(t=this.clipBox||n.clipBox,e&&(t.width=n.plotSizeX,t.x=(n.scrollablePixelsX||0)*(a.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},t.prototype.getSharedClipKey=function(t){if(this.sharedClipKey)return this.sharedClipKey;var e=[t&&t.duration,t&&t.easing,t&&t.defer,this.getClipBox(t).height,this.options.xAxis,this.options.yAxis].join();return(!1!==this.options.clip||t)&&(this.sharedClipKey=e),e},t.prototype.setClip=function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,s=this.getClipBox(t),a=this.getSharedClipKey(t),l=e.sharedClips[a],h=e.sharedClips[a+"m"];t&&(s.width=0,r&&(s.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),l?e.hasLoaded||l.attr(s):(t&&(e.sharedClips[a+"m"]=h=n.clipRect(r?(e.plotSizeX||0)+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e.sharedClips[a]=l=n.clipRect(s),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(h)),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&(o||(e.sharedClips[a]=l.destroy()),h&&(e.sharedClips[a+"m"]=h.destroy())))},t.prototype.animate=function(t){var e=this.chart,i=h(this.options.animation),n=this.sharedClipKey;if(t)this.setClip(i);else if(n){t=e.sharedClips[n],n=e.sharedClips[n+"m"];var r=this.getClipBox(i,!0);t&&t.animate(r,i),n&&n.animate({width:r.width+99,x:r.x-(e.inverted?0:99)},i)}},t.prototype.afterAnimate=function(){this.setClip(),T(this,"afterAnimate"),this.finishedAnimating=!0},t.prototype.drawPoints=function(){var t,e,i=this.points,n=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,s=this.xAxis,a=I(r.enabled,!(s&&!s.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;t_.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=d}else l.visible&&(p&&p.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))}))}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(m(n,"resize",e)),e(),i.invertGroups=e)},t.prototype.plotGroup=function(t,e,i,n,r){var o=this[t],s=!o;return i={visibility:i,zIndex:n||.1},"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),s&&(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(_(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(i)[s?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||R(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,n=h(i.animation),r=!t.finishedAnimating&&e.renderer.isSVG&&n.duration,o=t.visible?"inherit":"hidden",s=i.zIndex,a=t.hasRendered,l=e.seriesGroup,c=e.inverted;T(this,"render");var u=t.plotGroup("group","series",o,s,l);t.markerGroup=t.plotGroup("markerGroup","markers",o,s,l),r&&t.animate&&t.animate(!0),u.inverted=!!I(t.invertible,t.isCartesian)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===i.clip||t.sharedClipKey||a||u.clip(e.clipRect),r&&t.animate&&t.animate(),a||(r&&n.defer&&(r+=n.defer),t.animationTimeout=j((function(){t.afterAnimate()}),r||0)),t.isDirty=!1,t.hasRendered=!0,T(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:I(n&&n.left,t.plotLeft),translateY:I(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,n,r){var o;if(o=t&&t.length){var s=i.kdAxisArray[n%r];return t.sort((function(t,e){return t[s]-e[s]})),o=Math.floor(o/2),{point:t[o],left:e(t.slice(0,o),n+1,r),right:e(t.slice(o+1),n+1,r)}}}this.buildingKdTree=!0;var i=this,n=-1c?"left":"right",d=0>c?"right":"left",e[p]&&(p=n(t,e[p],i+1,l),u=p[a]p;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),l&&d.name&&(l[p]=d.name),c.splice(f,0,t),h&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(d,"shift"),c.shift())),!1!==r&&T(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(n)},t.prototype.removePoint=function(t,e,i){var n=this,r=n.data,o=r[t],s=n.points,a=n.chart,l=function(){s&&s.length===r.length&&s.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};c(i,a),e=I(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,i,n){function r(){o.destroy(n),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),I(t,!0)&&s.redraw(e)}var o=this,s=o.chart;!1!==i?T(o,"remove",null,r):r()},t.prototype.update=function(t,e){t=x(t,this.userOptions),T(this,"update",{options:t});var i,n=this,r=n.chart,o=n.userOptions,s=n.initialType||n.type,a=r.options.plotOptions,l=t.type||o.type||r.options.chart.type,h=!(this.hasDerivedData||l&&l!==this.type||"undefined"!==typeof t.pointStart||"undefined"!==typeof t.pointInterval||n.hasOptionChanged("dataGrouping")||n.hasOptionChanged("pointStart")||n.hasOptionChanged("pointInterval")||n.hasOptionChanged("pointIntervalUnit")||n.hasOptionChanged("keys")),c=g[s].prototype,u=["eventOptions","navigatorSeries","baseSeries"],d=n.finishedAnimating&&{animation:!1},p={};if(l=l||s,h&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),n.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&M(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=D(o,d,{index:"undefined"===typeof o.index?n.index:o.index,pointStart:I(a&&a.series&&a.series.pointStart,o.pointStart,n.xData[0])},!h&&{data:n.options.data},t),h&&t.data&&(t.data=n.options.data),u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u),u.forEach((function(t){u[t]=n[t],delete n[t]})),o=!1,g[l]){if(o=l!==n.type,n.remove(!1,!1,!1,!0),o)if(Object.setPrototypeOf)Object.setPrototypeOf(n,g[l].prototype);else{for(i in a=Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents,c)n[i]=void 0;M(n,g[l].prototype),a?n.hcEvents=a:delete n.hcEvents}}else C(17,!0,r,{missingModuleFor:l});if(u.forEach((function(t){n[t]=u[t]})),n.init(r,t),h&&this.points){var f=n.options;!1===f.visible?(p.graphic=1,p.dataLabel=1):n._hasPointLabels||(t=f.marker,l=f.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(p.graphic=1),l&&!1===l.enabled&&(p.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(p).length&&t.destroyElements(p),!1===f.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}n.initialType=s,r.linkSeries(),o&&n.linkedSeries.length&&(n.isDirtyData=!0),T(this,"afterUpdate"),I(e,!0)&&r.redraw(!!h&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,n=this.userOptions[t];return n?e!==n:e!==I(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&T(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&T(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var i=this,n=i.options,r=i.graph,o=n.inactiveOtherPoints,s=n.states,a=n.lineWidth,l=n.opacity,h=I(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation);if(n=0,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(s[t]&&!1===s[t].enabled)return;if(t&&(a=s[t].lineWidth||a+(s[t].lineWidthPlus||0),l=I(s[t].opacity,l)),r&&!r.dashstyle)for(s={"stroke-width":a},r.animate(s,h);i["zone-graph-"+n];)i["zone-graph-"+n].animate(s,h),n+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:l},h)}))}e&&o&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var i=this,n=i.chart,r=i.legendItem,o=n.options.chart.ignoreHiddenSeries,s=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible="undefined"===typeof t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][a]()})),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),r&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(n.isDirtyBox=!0),T(i,a),!1!==e&&n.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected="undefined"===typeof t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),T(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:r.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:r.neutralColor20,lineColor:r.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},t}(),M(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),s.series=t,t})),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,n,r,o){var s=t.stop,a=o.addEvent,l=o.createElement,h=o.merge,c=o.pick;a(i,"afterSetChartSize",(function(t){var e=this.options.chart.scrollablePlotArea,i=e&&e.minWidth;if(e=e&&e.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var n={1:{name:"right",value:i}}}}else e&&(this.scrollablePixelsY=i=Math.max(0,e-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,n={2:{name:"bottom",value:i}});n&&!t.skipAxes&&this.axes.forEach((function(t){n[t.side]?t.getPlotLinePath=function(){var e=n[t.side].name,i=this[e];this[e]=i-n[t.side].value;var o=r.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[e]=i,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),a(i,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),i.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&n.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),n.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea;t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new r.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0);var n=this.chartHeight+(this.scrollablePixelsY||0);s(this.container),this.container.style.width=e+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:e,height:n,viewBox:[0,0,e,n].join(" ")}),this.chartBackground.attr({width:e,height:n}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),n=this.axisOffset,t=this.plotTop-n[0]-1,i=this.plotLeft-n[3]-1,e=this.plotTop+this.plotHeight+n[2]+1,n=this.plotLeft+this.plotWidth+n[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),h=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",n,this.plotTop-1],["L",n,0],["Z"],["M",i,h],["L",i,this.chartHeight],["L",n,this.chartHeight],["L",n,h],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),a(n,"show",(function(){this.chart.scrollableDirty=!0}))})),e(i,"Core/Axis/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.getDeferredAnimation,n=e.addEvent,r=e.destroyObjectProperties,o=e.fireEvent,s=e.isNumber,a=e.objectEach,l=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,n=e.options.reversedStacks,r=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=r;t--;){var s=i[n?t:r-t-1];s.setStackedPoints(),s.setGroupedPoints()}for(t=0;to&&i.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,i){var n,r,s=this,a=s.options,l=a.step,h=[],c=[];return t=t||s.points,(n=t.reversed)&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&n&&(l=4-l),t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!i)),t.forEach((function(n,u){var d=n.plotX,p=n.plotY,f=t[u-1];(n.leftCliff||f&&f.rightCliff)&&!i&&(r=!0),n.isNull&&!o(e)&&0t&&c>r?(c=Math.max(t,r),u=2*r-c):ci&&u>r?(u=Math.max(i,r),c=2*r-u):u=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;n=t.borderWidth=x(i.borderWidth,n?0:1);var r=t.xAxis,s=t.yAxis,a=i.threshold,l=t.translatedThreshold=s.getThreshold(a),h=x(i.minPointLength,5),c=t.getColumnMetrics(),u=c.width,p=t.barW=Math.max(u,1+2*n),g=t.pointXOffset=c.offset,m=t.dataMin,y=t.dataMax;e.inverted&&(l-=.5),i.pointPadding&&(p=Math.ceil(p)),o.prototype.translate.apply(t),t.points.forEach((function(n){var o=x(n.yBottom,l),b=999+Math.abs(o),w=u,_=n.plotX||0;b=d(n.plotY,-b,s.len+b),_+=g;var S=p,C=Math.min(b,o),M=Math.max(b,o)-C;if(h&&Math.abs(M)h?o-h:l-(k?h:0)}f(n.options.pointWidth)&&(w=S=Math.ceil(n.options.pointWidth),_-=Math.round((w-u)/2)),i.centerInCategory&&(_=t.adjustForMissingColumns(_,w,n,c)),n.barX=_,n.pointWidth=w,n.tooltipPos=e.inverted?[d(s.len+s.pos-e.plotLeft-b,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),r.len+r.pos-e.plotTop-_-S/2,M]:[r.left-e.plotLeft+_+S/2,d(b+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),M],n.shapeType=t.pointClass.prototype.shapeType||"rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[_,l,S,0]:[_,C,S,M])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,n=this.pointAttrToOptions||{},r=n.stroke||"borderColor",o=n["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[r]||i[r]||s,l=t&&t[o]||i[o]||this[o]||0;n=t&&t.options.dashStyle||i.dashStyle;var h=x(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var u=t.getZone();s=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(a=u.borderColor||a,n=u.dashStyle||n,l=u.borderWidth||l)}return e&&t&&(t=b(i.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,s=t.color||"undefined"!==typeof e&&c(s).brighten(t.brightness).get()||s,a=t[r]||a,l=t[o]||l,n=t.dashStyle||n,h=x(t.opacity,h)),r={fill:s,stroke:a,"stroke-width":l,opacity:h},n&&(r.dashstyle=n),r},e.prototype.drawPoints=function(){var t,e=this,i=this.chart,n=e.options,r=i.renderer,o=n.animationLimit||250;e.points.forEach((function(s){var a=s.graphic,l=!!a,h=a&&i.pointCount● {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),i}(e),s(n.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(n,"afterTranslate",(function(){this.applyJitter()})),i.registerSeriesType("scatter",n),n})),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i){var n=i.isNumber,r=i.pick,o=i.relativeLength,s=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var t=this.options,i=this.chart,n=2*(t.slicedOffset||0),s=i.plotWidth-2*n,a=i.plotHeight-2*n,l=t.center,h=Math.min(s,a),c=t.size,u=t.innerSize||0;for("string"===typeof c&&(c=parseFloat(c)),"string"===typeof u&&(u=parseFloat(u)),t=[r(l[0],"50%"),r(l[1],"50%"),r(c&&0>c?void 0:t.size,"100%"),r(u&&0>u?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)c=t[l],i=2>l||2===l&&/%$/.test(c),t[l]=o(c,[s,a,h,t[2]][l])+(i?n:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:s*(t+-90),end:s*(e+-90)}}}})),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=t.setAnimation,o=i.addEvent,s=i.defined;t=i.extend;var a=i.isNumber,l=i.pick,h=i.relativeLength;return i=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return n(i,t),i.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,n=this.connectorShapes;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},i.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},i.prototype.haloPath=function(t){var 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})},i.prototype.init=function(){e.prototype.init.apply(this,arguments);var t=this;t.name=l(t.name,"Slice");var i=function(e){t.slice("select"===e.type)};return o(t,"select",i),o(t,"unselect",i),t},i.prototype.isValid=function(){return a(this.y)&&0<=this.y},i.prototype.setVisible=function(t,e){var i=this,n=i.series,r=n.chart,o=n.options.ignoreHiddenPoint;e=l(e,o),t!==i.visible&&(i.visible=i.options.visible=t="undefined"===typeof t?!i.visible:t,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](t)})),i.legendItem&&r.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),o&&(n.isDirty=!0),e&&r.redraw())},i.prototype.slice=function(t,e,i){var n=this.series;r(i,n.chart),l(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},i}(e),t(i.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var n=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var n=this.series,r=n.center[0],o=n.chart.plotWidth,s=n.chart.plotLeft;n=t.alignment;var a=this.shapeArgs.r;return i=h(i.crookDistance,1),o="left"===n?r+a+(o+s-r-a)*(1-i):s+(r-a)*i,i=["L",o,t.y],r=!0,("left"===n?o>t.x||oe.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(i),t.push(["L",e.x,e.y]),t}}}),i})),e(i,"Series/Pie/PieSeries.js",[i["Mixins/CenteredSeries.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Color/Palette.js"],i["Series/Pie/PiePoint.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,n,r,o,s,a,l,h){var c=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),u=t.getStartAndEndRadians;i=i.noop;var d=h.clamp,p=h.extend,f=h.fireEvent,g=h.merge,m=h.pick,y=h.relativeLength;return h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,n=e.startAngleRad;t||i.forEach((function(t){var i=t.graphic,r=t.shapeArgs;i&&r&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:n,end:n}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var n=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:l.prototype.symbols.arc(n,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||r.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var 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)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var n=this.center,r=this.radii?this.radii[i.index]||0:n[2]/2;return t=Math.asin(d((t-n[1])/(r+i.labelDistance),-1,1)),n[0]+(e?-1:1)*Math.cos(t)*(r+i.labelDistance)+(01.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(g)*n),translateY:Math.round(Math.sin(g)*n)},v=Math.cos(g)*t[2]/2;var b=Math.sin(g)*t[2]/2;d.tooltipPos=[t[0]+.7*v,t[1]+.7*b],d.half=g<-Math.PI/2||g>Math.PI/2?1:0,d.angle=g,p=Math.min(r,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+v+Math.cos(g)*d.labelDistance,y:t[1]+b+Math.sin(g)*d.labelDistance},final:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(g)*p,y:t[1]+b+Math.sin(g)*p},touchingSliceAt:{x:t[0]+v,y:t[1]+b}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=0,i=this.points,n=i.length,r=this.options.ignoreHiddenPoint;for(t=0;tu){for(x(t,(function(t,e){return(e.rank||0)-(t.rank||0)})),h=o=0;h<=u;)h+=t[o].size,o++;l=t.splice(o-1,t.length)}for(x(t,r),t=t.map((function(t){return{size:t.size,targets:[t.target],align:y(t.align,.5)}}));s;){for(o=t.length;o--;)s=t[o],h=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=c(h-s.size*s.align,0,e-s.size);for(o=t.length,s=!1;o--;)0t[o].pos&&(t[o-1].size+=t[o].size,t[o-1].targets=t[o-1].targets.concat(t[o].targets),t[o-1].align=.5,t[o-1].pos+t[o-1].size>e&&(t[o-1].pos=e-t[o-1].size),t.splice(o,1),s=!0)}a.push.apply(a,l),o=0,t.some((function(t){var r=0;if(t.targets.some((function(){if(a[o].pos=t.pos+r,"undefined"!==typeof n&&Math.abs(a[o].pos-a[o].target)>n)return a.slice(0,o+1).forEach((function(t){delete t.pos})),a.reducedLen=(a.reducedLen||e)-.1*e,a.reducedLen>.1*e&&i.distribute(a,e,n),!0;r+=a[o].size,o++})))return!0})),x(a,r)},r.prototype.drawDataLabels=function(){function t(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}function e(t,e){var i,n=[];if(f(t)&&!f(e))n=t.map((function(t){return g(t,e)}));else if(f(e)&&!f(t))n=e.map((function(e){return g(t,e)}));else if(f(t)||f(e))for(i=Math.max(t.length,e.length);i--;)n[i]=g(t[i],e[i]);else n=g(t,e);return n}var i,r=this,o=r.chart,s=r.options,h=s.dataLabels,c=r.points,d=r.hasRendered||0,v=h.animation;v=h.defer?a(o,v,r):{defer:0,duration:0};var x=o.renderer;if(h=e(e(o.options.plotOptions&&o.options.plotOptions.series&&o.options.plotOptions.series.dataLabels,o.options.plotOptions&&o.options.plotOptions[r.type]&&o.options.plotOptions[r.type].dataLabels),h),p(this,"drawDataLabels"),f(h)||h.enabled||r._hasPointLabels){var w=r.plotGroup("dataLabelsGroup","data-labels",d?"inherit":"hidden",h.zIndex||6);w.attr({opacity:+d}),!d&&(d=r.dataLabelsGroup)&&(r.visible&&w.show(!0),d[s.animation?"animate":"attr"]({opacity:1},v)),c.forEach((function(a){i=b(e(h,a.dlOptions||a.options&&a.options.dataLabels)),i.forEach((function(e,i){var h=e.enabled&&(!a.isNull||a.dataLabelOnNull)&&t(a,e),c=a.dataLabels?a.dataLabels[i]:a.dataLabel,d=a.connectors?a.connectors[i]:a.connector,p=y(e.distance,a.labelDistance),f=!c;if(h){var g=a.getLabelConfig(),v=y(e[a.formatPrefix+"Format"],e.format);g=u(v)?l(v,g,o):(e[a.formatPrefix+"Formatter"]||e.formatter).call(g,e),v=e.style;var b=e.rotation;o.styledMode||(v.color=y(e.color,v.color,r.color,n.neutralColor100),"contrast"===v.color?(a.contrastColor=x.getContrast(a.color||r.color),v.color=!u(p)&&e.inside||0>p||s.stacking?a.contrastColor:n.neutralColor100):delete a.contrastColor,s.cursor&&(v.cursor=s.cursor));var _={r:e.borderRadius||0,rotation:b,padding:e.padding,zIndex:1};o.styledMode||(_.fill=e.backgroundColor,_.stroke=e.borderColor,_["stroke-width"]=e.borderWidth),m(_,(function(t,e){"undefined"===typeof t&&delete _[e]}))}!c||h&&u(g)?h&&u(g)&&(c?_.text=g:(a.dataLabels=a.dataLabels||[],c=a.dataLabels[i]=b?x.text(g,0,-9999,e.useHTML).addClass("highcharts-data-label"):x.label(g,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),i||(a.dataLabel=c),c.addClass(" highcharts-data-label-color-"+a.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),c.options=e,c.attr(_),o.styledMode||c.css(v).shadow(e.shadow),c.added||c.add(w),e.textPath&&!e.useHTML&&(c.setTextPath(a.getDataLabelPath&&a.getDataLabelPath(c)||a.graphic,e.textPath),a.dataLabelPath&&!e.textPath.enabled&&(a.dataLabelPath=a.dataLabelPath.destroy())),r.alignDataLabel(a,c,e,null,f)):(a.dataLabel=a.dataLabel&&a.dataLabel.destroy(),a.dataLabels&&(1===a.dataLabels.length?delete a.dataLabels:delete a.dataLabels[i]),i||delete a.dataLabel,d&&(a.connector=a.connector.destroy(),a.connectors&&(1===a.connectors.length?delete a.connectors:delete a.connectors[i])))}))}))}p(this,"afterDrawDataLabels")},r.prototype.alignDataLabel=function(t,e,i,n,r){var o=this,s=this.chart,a=this.isCartesian&&s.inverted,l=this.enabledDataSorting,h=y(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),c=y(t.plotY,-9999),u=e.getBBox(),p=i.rotation,f=i.align,g=s.isInsidePlot(h,Math.round(c),{inverted:a,paneCoordinates:!0,series:o}),m="justify"===y(i.overflow,l?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||l&&!m||g||y(i.inside,!!this.options.stacking)&&n&&s.isInsidePlot(h,a?n.x+1:n.y+n.height-1,{inverted:a,paneCoordinates:!0,series:o})),b=function(i){l&&o.xAxis&&!m&&o.setDataLabelStartPos(t,e,r,g,i)};if(v){var x=s.renderer.fontMetrics(s.styledMode?void 0:i.style.fontSize,e).b;n=d({x:a?this.yAxis.len-c:h,y:Math.round(a?this.xAxis.len-h:c),width:0,height:0},n),d(i,{width:u.width,height:u.height}),p?(m=!1,h=s.renderer.rotCorr(x,p),h={x:n.x+(i.x||0)+n.width/2+h.x,y:n.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},b(h),e[r?"attr":"animate"](h).attr({align:f}),b=(p+720)%360,b=180b,"left"===f?h.y-=b?u.height:0:"center"===f?(h.x-=u.width/2,h.y-=u.height/2):"right"===f&&(h.x-=u.width,h.y-=b?0:u.height),e.placed=!0,e.alignAttr=h):(b(n),e.align(i,void 0,n),h=e.alignAttr),m&&0<=n.height?this.justifyDataLabel(e,i,h,u,n,r):y(i.crop,!0)&&(v=s.isInsidePlot(h.x,h.y,{paneCoordinates:!0,series:o})&&s.isInsidePlot(h.x+u.width,h.y+u.height,{paneCoordinates:!0,series:o})),i.shape&&!p&&e[r?"attr":"animate"]({anchorX:a?s.plotWidth-t.plotY:t.plotX,anchorY:a?s.plotHeight-t.plotX:t.plotY})}r&&l&&(e.placed=!1),v||l&&!m||(e.hide(!0),e.placed=!1)},r.prototype.setDataLabelStartPos=function(t,e,i,n,r){var o=this.chart,s=o.inverted,a=this.xAxis,l=a.reversed,h=s?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=s?r.x:l?-h-t:a.width-h+t,r=s?l?this.yAxis.height-h+t:-h-t:r.y,e.startXPos=a,e.startYPos=r,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},r.prototype.justifyDataLabel=function(t,e,i,n,r,o){var s=this.chart,a=e.align,l=e.verticalAlign,h=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var u=e.y,d=void 0===u?0:u;if(u=(i.x||0)+h,0>u){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return u=(i.x||0)+n.width-h,u>s.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=s.plotWidth-u,p=!0),u=i.y+h,0>u&&("bottom"===l&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=u,p=!0),u=(i.y||0)+n.height-h,u>s.plotHeight&&("top"===l&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=s.plotHeight-u,p=!0),p&&(e.x=c,e.y=d,t.placed=!o,t.align(e,void 0,r)),p},o.pie&&(o.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(ie.bottom-2?n:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var r,o=0;return t.forEach((function(t){r=t.dataLabel.getBBox().width,r>o&&(o=r)})),e?o+n:i-o-n}},o.pie.prototype.drawDataLabels=function(){var t,e,o,s,a,l,c,d,p,f,m,v,b=this,x=b.data,w=b.chart,_=b.options.dataLabels||{},S=_.connectorPadding,C=w.plotWidth,M=w.plotHeight,k=w.plotLeft,T=Math.round(w.chartWidth/3),A=b.center,O=A[2]/2,P=A[1],E=[[],[]],L=[0,0,0,0],D=b.dataLabelPositioners;b.visible&&(_.enabled||b._hasPointLabels)&&(x.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),r.prototype.drawDataLabels.apply(b),x.forEach((function(t){t.dataLabel&&(t.visible?(E[t.half].push(t),t.dataLabel._pos=null,!u(_.style.width)&&!u(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>T&&(t.dataLabel.css({width:Math.round(.7*T)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),E.forEach((function(e,n){var r,o=e.length,h=[];if(o){if(b.sortByAngle(e,n-.5),0C-S&&0===n&&(g=Math.round(d+a-C+S),L[1]=Math.max(g,L[1])),0>p-c/2?L[0]=Math.max(Math.round(c/2-p),L[0]):p+c/2>M&&(L[2]=Math.max(Math.round(p+c/2-M),L[2])),s.sideOverflow=g)}}})),0===h(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),this.points.forEach((function(t){var i;(v=g(_,t.options.dataLabels),e=y(v.connectorWidth,1))&&(o=t.connector,(s=t.dataLabel)&&s._pos&&t.visible&&0y(this.translatedThreshold,a.yAxis.len)),c=y(i.inside,!!this.options.stacking);l&&(n=g(l),0>n.y&&(n.height+=n.y,n.y=0),l=n.y+n.height-a.yAxis.len,0=d.x+d.width||p.x+p.width<=d.x||p.y>=d.y+d.height||p.y+p.height<=d.y||((u.labelrank=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){function e(t,o,a,h){var c;s(t,(function(t,s){if(!h&&-1t.length)&&(e=t.length);for(var i=0,n=new Array(e);io)s=s._prev}return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=e._dp=t,e},Rt=function(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[i]===e&&(t[i]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Nt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},jt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0)){var i=t;while(i)i._dirty=1,i=i.parent}return t},Bt=function(t){var e=t.parent;while(e&&e.parent)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ft=function t(e){return!e||e._ts&&t(e.parent)},Wt=function(t){return t._repeat?Gt(t._tTime,t=t.duration()+t._rDelay)*t:0},Gt=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Ht=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Xt=function(t){return t._end=wt(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},Yt=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=wt(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Xt(t),i._dirty||jt(i,t)),t},Ut=function(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=Ht(t.rawTime(),e),(!e._dur||re(0,e.totalDuration(),i)-e._tTime>L)&&e.render(i,!0)),jt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&i.totalTime(i._tTime),i=i._dp}t._zTime=-L}},Vt=function(t,e,i,n){return e.parent&&Nt(e),e._start=wt(i+e._delay),e._end=wt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),It(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||Ut(t,e),t},qt=function(t,e){return(it.ScrollTrigger||ot("scrollTrigger",e))&&it.ScrollTrigger.create(e,t)},$t=function(t,e,i,n){return ai(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&k!==je.frame?(ct.push(t),t._lazy=[e,n],1):void 0:1},Zt=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},Kt=function(t,e,i,n){var r,o,s,a=t.ratio,l=e<0||!e&&(!t._start&&Zt(t)||(t._ts<0||t._dp._ts<0)&&"isFromStart"!==t.data&&"isStart"!==t.data)?0:1,h=t._rDelay,c=0;if(h&&t._repeat&&(c=re(0,t._tDur,e),o=Gt(c,h),s=Gt(t._tTime,h),t._yoyo&&1&o&&(l=1-l),o!==s&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||n||t._zTime===L||!e&&t._zTime){if(!t._initted&&$t(t,e,n,i))return;s=t._zTime,t._zTime=e||(i?L:0),i||(i=e&&!s),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,r=t._pt;while(r)r.r(l,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&ke(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&ke(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Nt(t,1),i||(ke(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Jt=function(t,e,i){var n;if(i>e){n=t._first;while(n&&n._start<=i){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}}else{n=t._last;while(n&&n._start>=i){if(!n._dur&&"isPause"===n.data&&n._start=E?s.endTime(!1):e._dur;return B(i)&&(isNaN(i)||i in o)?(n=i.charAt(0),"<"===n||">"===n?("<"===n?s._start:s.endTime(s._repeat>=0))+(parseFloat(i.substr(1))||0):(n=i.indexOf("="),n<0?(i in o||(o[i]=a),o[i]):(r=+(i.charAt(n-1)+i.substr(n+1)),n>1?t(e,i.substr(0,n-1))+r:a+r))):null==i?a:+i},ne=function(t,e){return t||0===t?e(t):e},re=function(t,e,i){return ie?e:i},oe=function(t){if("string"!==typeof t)return"";var e=et.exec(t);return e?t.substr(e.index+e[0].length):""},se=function(t,e,i){return ne(i,(function(i){return re(t,e,i)}))},ae=[].slice,le=function(t,e){return t&&H(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&H(t[0]))&&!t.nodeType&&t!==_},he=function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){var n;return B(t)&&!e||le(t,1)?(n=i).push.apply(n,ce(t)):i.push(t)}))||i},ce=function(t,e){return!B(t)||e||!S&&Be()?q(t)?he(t,e):le(t)?ae.call(t,0):t?[t]:[]:ae.call(C.querySelectorAll(t),0)},ue=function(t){return t.sort((function(){return.5-Math.random()}))},de=function(t){if(F(t))return t;var e=H(t)?t:{each:t},i=qe(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},s=n>0&&n<1,a=isNaN(n)||s,l=e.axis,h=n,c=n;return B(n)?h=c={center:.5,edges:.5,end:1}[n]||0:!s&&a&&(h=n[0],c=n[1]),function(t,s,u){var d,p,f,g,m,y,v,b,x,w=(u||e).length,_=o[w];if(!_){if(x="auto"===e.grid?0:(e.grid||[1,E])[1],!x){v=-E;while(v<(v=u[x++].getBoundingClientRect().left)&&xv&&(v=m),mw?w-1:l?"y"===l?w/x:x:Math.max(x,w/x))||0)*("edges"===n?-1:1),_.b=w<0?r-w:r,_.u=oe(e.amount||e.each)||0,i=i&&w<0?Ue(i):i}return w=(_[t]-_.min)/_.max||0,wt(_.b+(i?i(w):w)*_.v)+_.u}},pe=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){var n=Math.round(parseFloat(i)/t)*t*e;return(n-n%1)/e+(W(i)?0:oe(i))}},fe=function(t,e){var i,n,r=q(t);return!r&&H(t)&&(i=r=t.radius||E,t.values?(t=ce(t.values),(n=!W(t[0]))&&(i*=i)):t=pe(t.increment)),ne(e,r?F(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){var r,o,s=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=E,h=0,c=t.length;while(c--)n?(r=t[c].x-s,o=t[c].y-a,r=r*r+o*o):r=Math.abs(t[c]-s),rr?o-t:t)}))},_e=function(t){var e,i,n,r,o=0,s="";while(~(e=t.indexOf("random(",o)))n=t.indexOf(")",e),r="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(r?tt:$),s+=t.substr(o,e-o)+ge(r?i:+i[0],r?0:+i[1],+i[2]||1e-5),o=n+1;return s+t.substr(o,t.length-o)},Se=function(t,e,i,n,r){var o=e-t,s=n-i;return ne(r,(function(e){return i+((e-t)/o*s||0)}))},Ce=function t(e,i,n,r){var o=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!o){var s,a,l,h,c,u=B(e),d={};if(!0===n&&(r=1)&&(n=null),u)e={p:e},i={p:i};else if(q(e)&&!q(i)){for(l=[],h=e.length,c=h-2,a=1;a(r=Math.abs(r))&&(o=n,a=r);return o},ke=function(t,e,i){var n,r,o=t.vars,s=o[e];if(s)return n=o[e+"Params"],r=o.callbackScope||t,i&&ct.length&&Ct(),n?s.apply(r,n):s.call(r)},Te=function(t){return Nt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ke(t,"onInterrupt"),t},Ae=function(t){t=!t.name&&t["default"]||t;var e=t.name,i=F(t),n=e&&!i&&t.init?function(){this._props=[]}:t,r={init:lt,render:wi,add:ri,kill:Si,modifier:_i,rawVars:0},o={targetTest:0,get:0,getSetter:yi,aliases:{},register:0};if(Be(),t!==n){if(dt[e])return;At(n,At(Lt(t,r),o)),Pt(n.prototype,Pt(r,Lt(t,o))),dt[n.prop=e]=n,t.targetTest&&(gt.push(n),ht[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}at(e,n),t.register&&t.register(Ei,n,ki)},Oe=255,Pe={aqua:[0,Oe,Oe],lime:[0,Oe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Oe],navy:[0,0,128],white:[Oe,Oe,Oe],olive:[128,128,0],yellow:[Oe,Oe,0],orange:[Oe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Oe,0,0],pink:[Oe,192,203],cyan:[0,Oe,Oe],transparent:[Oe,Oe,Oe,0]},Ee=function(t,e,i){return t=t<0?t+1:t>1?t-1:t,(6*t<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*Oe+.5|0},Le=function(t,e,i){var n,r,o,s,a,l,h,c,u,d,p=t?W(t)?[t>>16,t>>8&Oe,t&Oe]:0:Pe.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Pe[t])p=Pe[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+n+n+r+r+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return p=parseInt(t.substr(1,6),16),[p>>16,p>>8&Oe,p&Oe,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),p=[t>>16,t>>8&Oe,t&Oe]}else if("hsl"===t.substr(0,3))if(p=d=t.match($),e){if(~t.indexOf("="))return p=t.match(Z),i&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,l=+p[2]/100,r=l<=.5?l*(a+1):l+a-l*a,n=2*l-r,p.length>3&&(p[3]*=1),p[0]=Ee(s+1/3,n,r),p[1]=Ee(s,n,r),p[2]=Ee(s-1/3,n,r);else p=t.match($)||Pe.transparent;p=p.map(Number)}return e&&!d&&(n=p[0]/Oe,r=p[1]/Oe,o=p[2]/Oe,h=Math.max(n,r,o),c=Math.min(n,r,o),l=(h+c)/2,h===c?s=a=0:(u=h-c,a=l>.5?u/(2-h-c):u/(h+c),s=h===n?(r-o)/u+(ra&&(h+=b-l),c+=b,y=c-h,g=y-d,(g>0||x)&&(v=++n.frame,r=y-1e3*n.time,n.time=y/=1e3,d+=g+(g>=u?4:u-g),m=1),x||(t=e(i)),m)for(o=0;o=e&&o--},_listeners:p},n}(),Be=function(){return!A&&je.wake()},Fe={},We=/^[\d.\-M][\d.\-,\s]/,Ge=/["']/g,He=function(t){for(var e,i,n,r={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,l=o.length;a1&&i.config?i.config.apply(null,~t.indexOf("{")?[He(e[1])]:Xe(t).split(",").map(kt)):Fe._CE&&We.test(t)?Fe._CE("",t):i},Ue=function(t){return function(e){return 1-t(1-e)}},Ve=function t(e,i){var n,r=e._first;while(r)r instanceof ei?t(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?t(r.timeline,i):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=i)),r=r._next},qe=function(t,e){return t&&(F(t)?t:Fe[t]||Ye(t))||e},$e=function(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var r,o={easeIn:e,easeOut:i,easeInOut:n};return xt(t,(function(t){for(var e in Fe[t]=it[t]=o,Fe[r=t.toLowerCase()]=i,o)Fe[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Fe[t+"."+e]=o[e]})),o},Ze=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ke=function t(e,i,n){var r=i>=1?i:1,o=(n||(e?.3:.45))/(i<1?i:1),s=o/D*(Math.asin(1/r)||0),a=function(t){return 1===t?1:r*Math.pow(2,-10*t)*j((t-s)*o)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Ze(a);return o=D/o,l.config=function(i,n){return t(e,i,n)},l},Je=function t(e,i){void 0===i&&(i=1.70158);var n=function(t){return t?--t*t*((i+1)*t+i)+1:0},r="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Ze(n);return r.config=function(i){return t(e,i)},r};xt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;$e(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),Fe.Linear.easeNone=Fe.none=Fe.Linear.easeIn,$e("Elastic",Ke("in"),Ke("out"),Ke()),function(t,e){var i=1/e,n=2*i,r=2.5*i,o=function(o){return o0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Qt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Be(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){Yt(this,t),!i._dp||i.parent||Ut(i,this);while(i.parent)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===L||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Mt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Wt(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Wt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?Gt(this._tTime,i)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ht(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-L?0:this._rts,Bt(this.totalTime(re(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Be(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=L)&&Math.abs(this._zTime)!==L))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Vt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(X(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ht(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){var e=this,i=arguments.length?t:e.rawTime();while(e)i=e._start+i/(e._ts||1),e=e._dp;return i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,te(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,te(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ie(this,t),X(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,X(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-L:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t1?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(i){var n=F(t)?t:Tt,r=function(){var t=e.then;e.then=null,F(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),i(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){Te(this)},t}();At(ti.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-L,_prom:0,_ps:!1,_rts:1});var ei=function(t){function e(e,i){var n;return void 0===e&&(e={}),n=t.call(this,e,i)||this,n.labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=X(e.sortChildren),n.parent&&Ut(n.parent,v(n)),e.scrollTrigger&&qt(v(n),e.scrollTrigger),n}b(e,t);var i=e.prototype;return i.to=function(t,e,i){return new di(t,St(arguments,0,this),ie(this,W(e)?arguments[3]:i)),this},i.from=function(t,e,i){return new di(t,St(arguments,1,this),ie(this,W(e)?arguments[3]:i)),this},i.fromTo=function(t,e,i,n){return new di(t,St(arguments,2,this),ie(this,W(e)?arguments[4]:n)),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Dt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new di(t,e,ie(this,i),1),this},i.call=function(t,e,i){return Vt(this,di.delayedCall(0,t,e),ie(this,i))},i.staggerTo=function(t,e,i,n,r,o,s){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=o,i.onCompleteParams=s,i.parent=this,new di(t,i,ie(this,r)),this},i.staggerFrom=function(t,e,i,n,r,o,s){return i.runBackwards=1,Dt(i).immediateRender=X(i.immediateRender),this.staggerTo(t,e,i,n,r,o,s)},i.staggerFromTo=function(t,e,i,n,r,o,s,a){return n.startAt=i,Dt(n).immediateRender=X(n.immediateRender),this.staggerTo(t,e,n,r,o,s,a)},i.render=function(t,e,i){var n,r,o,s,a,l,h,c,u,d,p,f,g=this._time,m=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=this!==w&&t>m-L&&t>=0?m:ty&&(n=y)),d=Gt(this._tTime,a),!g&&this._tTime&&d!==s&&(d=s),p&&1&s&&(n=y-n,f=1),s!==d&&!this._lock){var x=p&&1&d,_=x===(p&&1&s);if(s=g&&t>=0){r=this._first;while(r){if(o=r._next,(r._act||n>=r._start)&&r._ts&&h!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!l){h=0,o&&(v+=this._zTime=-L);break}}r=o}}else{r=this._last;var S=t<0?t:n;while(r){if(o=r._prev,(r._act||S<=r._end)&&r._ts&&h!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(S-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(S-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!l){h=0,o&&(v+=this._zTime=S?-L:L);break}}r=o}}if(h&&!e&&(this.pause(),h.render(n>=g?0:-L)._zTime=n>=g?1:-1,this._ts))return this._start=u,Xt(this),this.render(t,e,i);this._onUpdate&&!e&&ke(this,"onUpdate",!0),(v===m&&m>=this.totalDuration()||!v&&g)&&(u!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(v===m&&this._ts>0||!v&&this._ts<0)&&Nt(this,1),e||t<0&&!g||!v&&!g||(ke(this,v===m?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(W(e)||(e=ie(this,e)),!(t instanceof ti)){if(q(t))return t.forEach((function(t){return i.add(t,e)})),this;if(B(t))return this.addLabel(t,e);if(!F(t))return this;t=di.delayedCall(0,t)}return this!==t?Vt(this,t,e):this},i.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-E);var r=[],o=this._first;while(o)o._start>=n&&(o instanceof di?e&&r.push(o):(i&&r.push(o),t&&r.push.apply(r,o.getChildren(!0,e,i)))),o=o._next;return r},i.getById=function(t){var e=this.getChildren(1,1,1),i=e.length;while(i--)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return B(t)?this.removeLabel(t):F(t)?this.killTweensOf(t):(Rt(this,t),t===this._recent&&(this._recent=this._last),jt(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wt(je.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=ie(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var n=di.delayedCall(0,e||lt,i);return n.data="isPause",this._hasPause=1,Vt(this,n,ie(this,t))},i.removePause=function(t){var e=this._first;t=ie(this,t);while(e)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},i.killTweensOf=function(t,e,i){var n=this.getTweensOf(t,i),r=n.length;while(r--)ii!==n[r]&&n[r].kill(t,e);return this},i.getTweensOf=function(t,e){var i,n=[],r=ce(t),o=this._first,s=W(e);while(o)o instanceof di?_t(o._targets,r)&&(s?(!ii||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&n.push(o):(i=o.getTweensOf(r,e)).length&&n.push.apply(n,i),o=o._next;return n},i.tweenTo=function(t,e){e=e||{};var i=this,n=ie(i,t),r=e,o=r.startAt,s=r.onStart,a=r.onStartParams,l=r.immediateRender,h=di.to(i,At({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(o&&"time"in o?o.time:i._time))/i.timeScale())||L,onStart:function(){i.pause();var t=e.duration||Math.abs((n-i._time)/i.timeScale());h._dur!==t&&Qt(h,t,0,1).render(h._time,!0,!0),s&&s.apply(h,a||[])}},e));return l?h.render(0):h},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,At({startAt:{time:ie(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),Me(this,ie(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),Me(this,ie(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+L)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);var n,r=this._first,o=this.labels;while(r)r._start>=i&&(r._start+=t,r._end+=t),r=r._next;if(e)for(n in o)o[n]>=i&&(o[n]+=t);return jt(this)},i.invalidate=function(){var e=this._first;this._lock=0;while(e)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);var e,i=this._first;while(i)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),jt(this)},i.totalDuration=function(t){var e,i,n,r=0,o=this,s=o._last,a=E;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){n=o.parent;while(s)e=s._prev,s._dirty&&s.totalDuration(),i=s._start,i>a&&o._sort&&s._ts&&!o._lock?(o._lock=1,Vt(o,s,i-s._delay,1)._lock=0):a=i,i<0&&s._ts&&(r-=i,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=i/o._ts,o._time-=i,o._tTime-=i),o.shiftChildren(-i,!1,-Infinity),a=0),s._end>r&&s._ts&&(r=s._end),s=e;Qt(o,o===w&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(w._ts&&(Mt(w,Ht(t,w)),k=je.frame),je.frame>=ft){ft+=O.autoSleep||120;var e=w._first;if((!e||!e._ts)&&O.autoSleep&&je._listeners.length<2){while(e&&!e._ts)e=e._next;e||je.sleep()}}},e}(ti);At(ei.prototype,{_lock:0,_hasPause:0,_forcing:0});var ii,ni=function(t,e,i,n,r,o,s){var a,l,h,c,u,d,p,f,g=new ki(this._pt,t,e,0,1,xi,null,r),m=0,y=0;g.b=i,g.e=n,i+="",n+="",(p=~n.indexOf("random("))&&(n=_e(n)),o&&(f=[i,n],o(f,t,e),i=f[0],n=f[1]),l=i.match(J)||[];while(a=J.exec(n))c=a[0],u=n.substring(m,a.index),h?h=(h+1)%5:"rgba("===u.substr(-5)&&(h=1),c!==l[y++]&&(d=parseFloat(l[y-1])||0,g._pt={_next:g._pt,p:u||1===y?u:",",s:d,c:"="===c.charAt(1)?parseFloat(c.substr(2))*("-"===c.charAt(0)?-1:1):parseFloat(c)-d,m:h&&h<4?Math.round:0},m=J.lastIndex);return g.c=m0)O||(e._startAt=0);else if(E&&!(i<0&&D))return void(i&&(e._zTime=i))}else!1===O&&(e._startAt=0);else if(k&&E)if(D)!O&&(e._startAt=0);else if(i&&(b=!1),o=At({overwrite:!1,data:"isFromStart",lazy:b&&X(_),immediateRender:b,stagger:0,parent:I},n),f&&(o[c.prop]=f),Nt(e._startAt=di.set(z,o)),b){if(!i)return}else t(e._startAt,L);for(e._pt=0,_=E&&X(_)||_&&!E,r=0;r")}));else{if(h=A.length,d=b?de(b):lt,H(b))for(c in b)~ci.indexOf(c)&&(p||(p={}),p[c]=b[c]);for(a=0;ap-L&&t>=0?p:tf&&(n=f)),l=this._yoyo&&1&o,l&&(u=this._yEase,n=f-n),a=Gt(this._tTime,s),n===d&&!i&&this._initted)return this;o!==a&&(c&&this._yEase&&Ve(c,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(wt(s*o),!0).invalidate()._lock=0))}if(!this._initted){if($t(this,t<0?t:n,i,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,i)}this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(u||this._ease)(n/f),this._from&&(this.ratio=h=1-h),n&&!d&&!e&&ke(this,"onStart"),r=this._pt;while(r)r.r(h,r.d),r=r._next;c&&c.render(t<0?t:!n&&l?-L:c._dur*h,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),ke(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&ke(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Nt(this,1),e||t<0&&!d||!g&&!d||(ke(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g
0)&&this._prom()))}}else Kt(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},i.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?Te(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ii&&!0!==ii.vars.overwrite)._first||Te(this),this.parent&&i!==this.timeline.totalDuration()&&Qt(this,this._dur*this.timeline._tDur/i,0,1),this}var n,r,o,s,a,l,h,c=this._targets,u=t?ce(t):c,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&zt(c,u))return"all"===e&&(this._pt=0),Te(this);n=this._op=this._op||[],"all"!==e&&(B(e)&&(a={},xt(e,(function(t){return a[t]=1})),e=a),e=li(c,e)),h=c.length;while(h--)if(~u.indexOf(c[h]))for(a in r=d[h],"all"===e?(n[h]=e,s=r,o={}):(o=n[h]=n[h]||{},s=e),s)l=r&&r[a],l&&("kill"in l.d&&!0!==l.d.kill(a)||Rt(this,l,"_pt"),delete r[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&Te(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,i){return new e(t,St(arguments,1))},e.delayedCall=function(t,i,n,r){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},e.fromTo=function(t,i,n){return new e(t,St(arguments,2))},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return w.killTweensOf(t,e,i)},e}(ti);At(di.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),xt("staggerTo,staggerFrom,staggerFromTo",(function(t){di[t]=function(){var e=new ei,i=ae.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var pi=function(t,e,i){return t[e]=i},fi=function(t,e,i){return t[e](i)},gi=function(t,e,i,n){return t[e](n.fp,i)},mi=function(t,e,i){return t.setAttribute(e,i)},yi=function(t,e){return F(t[e])?fi:G(t[e])&&t.setAttribute?mi:pi},vi=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},bi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},xi=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{while(i)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},wi=function(t,e){var i=e._pt;while(i)i.r(t,i.d),i=i._next},_i=function(t,e,i,n){var r,o=this._pt;while(o)r=o._next,o.p===n&&o.modifier(t,e,i),o=r},Si=function(t){var e,i,n=this._pt;while(n)i=n._next,n.p===t&&!n.op||n.op===t?Rt(this,n,"_pt"):n.dep||(e=1),n=i;return!e},Ci=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},Mi=function(t){var e,i,n,r,o=t._pt;while(o){e=o._next,i=n;while(i&&i.pr>o.pr)i=i._next;(o._prev=i?i._prev:r)?o._prev._next=o:n=o,(o._next=i)?i._prev=o:r=o,o=e}t._pt=n},ki=function(){function t(t,e,i,n,r,o,s,a,l){this.t=e,this.s=n,this.c=r,this.p=i,this.r=o||vi,this.d=s||this,this.set=a||pi,this.pr=l||0,this._next=t,t&&(t._prev=this)}var e=t.prototype;return e.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Ci,this.m=t,this.mt=i,this.tween=e},t}();xt(mt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ht[t]=1})),it.TweenMax=it.TweenLite=di,it.TimelineLite=it.TimelineMax=ei,w=new ei({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=Ne;var Ti={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i1){var n=t.map((function(t){return Ei.quickSetter(t,e,i)})),r=n.length;return function(t){var e=r;while(e--)n[e](t)}}t=t[0]||{};var o=dt[e],s=vt(t),a=s.harness&&(s.harness.aliases||{})[e]||e,l=o?function(e){var n=new o;T._pt=0,n.init(t,i?e+i:e,T,0,[t]),n.render(1,n),T._pt&&wi(1,T)}:s.set(t,a);return o?l:function(e){return l(t,a,i?e+i:e,s,1)}},isTweening:function(t){return w.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=qe(t.ease,P.ease)),Et(P,t||{})},config:function(t){return Et(O,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!dt[t]&&!it[t]&&st(e+" effect requires "+t+" plugin.")})),pt[e]=function(t,e,n){return i(ce(t),At(e||{},r),n)},o&&(ei.prototype[e]=function(t,i,n){return this.add(pt[e](t,H(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){Fe[t]=qe(e)},parseEase:function(t,e){return arguments.length?qe(t,e):Fe},getById:function(t){return w.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,r=new ei(t);r.smoothChildTiming=X(t.smoothChildTiming),w.remove(r),r._dp=0,r._time=r._tTime=w._time,i=w._first;while(i)n=i._next,!e&&!i._dur&&i instanceof di&&i.vars.onComplete===i._targets[0]||Vt(r,i,i._start-i._delay),i=n;return Vt(w,r,0),r},utils:{wrap:xe,wrapYoyo:we,distribute:de,random:ge,snap:fe,normalize:ve,getUnit:oe,clamp:se,splitColor:Le,toArray:ce,mapRange:Se,pipe:me,unitize:ye,interpolate:Ce,shuffle:ue},install:rt,effects:pt,ticker:je,updateRoot:ei.updateRoot,plugins:dt,globalTimeline:w,core:{PropTween:ki,globals:at,Tween:di,Timeline:ei,Animation:ti,getCache:vt,_removeLinkedListItem:Rt,suppressOverwrites:function(t){return x=t}}};xt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ti[t]=di[t]})),je.add(ei.updateRoot),T=Ti.to({},{duration:0});var Ai=function(t,e){var i=t._pt;while(i&&i.p!==e&&i.op!==e&&i.fp!==e)i=i._next;return i},Oi=function(t,e){var i,n,r,o=t._targets;for(i in e){n=o.length;while(n--)r=t._ptLookup[n][i],r&&(r=r.d)&&(r._pt&&(r=Ai(r,i)),r&&r.modifier&&r.modifier(e[i],t,o[n],i))}},Pi=function(t,e){return{name:t,rawVars:1,init:function(t,i,n){n._onInit=function(t){var n,r;if(B(i)&&(n={},xt(i,(function(t){return n[t]=1})),i=n),e){for(r in n={},i)n[r]=e(i[r]);i=n}Oi(t,i)}}}},Ei=Ti.registerPlugin({name:"attr",init:function(t,e,i,n,r){var o,s;for(o in e)s=this.add(t,"setAttribute",(t.getAttribute(o)||0)+"",e[o],n,r,0,0,o),s&&(s.op=o),this._props.push(o)}},{name:"endArray",init:function(t,e){var i=e.length;while(i--)this.add(t,i,t[i]||0,e[i])}},Pi("roundProps",pe),Pi("modifiers"),Pi("snap",fe))||Ti;di.version=ei.version=Ei.version="3.6.1",M=1,Y()&&Be();Fe.Power0,Fe.Power1,Fe.Power2,Fe.Power3,Fe.Power4,Fe.Linear,Fe.Quad,Fe.Cubic,Fe.Quart,Fe.Quint,Fe.Strong,Fe.Elastic,Fe.Back,Fe.SteppedEase,Fe.Bounce,Fe.Sine,Fe.Expo,Fe.Circ;
/*!
* CSSPlugin 3.6.1
* https://greensock.com
*
* Copyright 2008-2021, GreenSock. All rights reserved.
* Subject to the terms at https://greensock.com/standard-license or for
* Club GreenSock members, the agreement issued with that membership.
* @author: Jack Doyle, [email protected]
*/var Li,Di,zi,Ii,Ri,Ni,ji,Bi=function(){return"undefined"!==typeof window},Fi={},Wi=180/Math.PI,Gi=Math.PI/180,Hi=Math.atan2,Xi=1e8,Yi=/([A-Z])/g,Ui=/(?:left|right|width|margin|padding|x)/i,Vi=/[\s,\(]\S/,qi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$i=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Zi=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ki=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Ji=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Qi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},tn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},en=function(t,e,i){return t.style[e]=i},nn=function(t,e,i){return t.style.setProperty(e,i)},rn=function(t,e,i){return t._gsap[e]=i},on=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},sn=function(t,e,i,n,r){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(r,o)},an=function(t,e,i,n,r){var o=t._gsap;o[e]=i,o.renderTransform(r,o)},ln="transform",hn=ln+"Origin",cn=function(t,e){var i=Di.createElementNS?Di.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Di.createElement(t);return i.style?i:Di.createElement(t)},un=function t(e,i,n){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(Yi,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&t(e,pn(i)||i,1)||""},dn="O,Moz,ms,Ms,Webkit".split(","),pn=function(t,e,i){var n=e||Ri,r=n.style,o=5;if(t in r&&!i)return t;t=t.charAt(0).toUpperCase()+t.substr(1);while(o--&&!(dn[o]+t in r));return o<0?null:(3===o?"ms":o>=0?dn[o]:"")+t},fn=function(){Bi()&&window.document&&(Li=window,Di=Li.document,zi=Di.documentElement,Ri=cn("div")||{style:{}},cn("div"),ln=pn(ln),hn=ln+"Origin",Ri.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ji=!!pn("perspective"),Ii=1)},gn=function t(e){var i,n=cn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(zi.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(a){}else this._gsapBBox&&(i=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),zi.removeChild(n),this.style.cssText=s,i},mn=function(t,e){var i=e.length;while(i--)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},yn=function(t){var e;try{e=t.getBBox()}catch(i){e=gn.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===gn||(e=gn.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+mn(t,["x","cx","x1"])||0,y:+mn(t,["y","cy","y1"])||0,width:0,height:0}},vn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!yn(t))},bn=function(t,e){if(e){var i=t.style;e in Fi&&e!==hn&&(e=ln),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(Yi,"-$1").toLowerCase())):i.removeAttribute(e)}},xn=function(t,e,i,n,r,o){var s=new ki(t._pt,e,i,0,1,o?tn:Qi);return t._pt=s,s.b=n,s.e=r,t._props.push(i),s},wn={deg:1,rad:1,turn:1},_n=function t(e,i,n,r){var o,s,a,l,h=parseFloat(n)||0,c=(n+"").trim().substr((h+"").length)||"px",u=Ri.style,d=Ui.test(i),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),g=100,m="px"===r,y="%"===r;return r===c||!h||wn[r]||wn[c]?h:("px"!==c&&!m&&(h=t(e,i,n,"px")),l=e.getCTM&&vn(e),!y&&"%"!==c||!Fi[i]&&!~i.indexOf("adius")?(u[d?"width":"height"]=g+(m?c:r),s=~i.indexOf("adius")||"em"===r&&e.appendChild&&!p?e:e.parentNode,l&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Di&&s.appendChild||(s=Di.body),a=s._gsap,a&&y&&a.width&&d&&a.time===je.time?wt(h/a.width*g):((y||"%"===c)&&(u.position=un(e,"position")),s===e&&(u.position="static"),s.appendChild(Ri),o=Ri[f],s.removeChild(Ri),u.position="absolute",d&&y&&(a=vt(s),a.time=je.time,a.width=s[f]),wt(m?o*h/g:o&&h?g/o*h:0))):(o=l?e.getBBox()[d?"width":"height"]:e[f],wt(y?h/o*g:h/100*o)))},Sn=function(t,e,i,n){var r;return Ii||fn(),e in qi&&"transform"!==e&&(e=qi[e],~e.indexOf(",")&&(e=e.split(",")[0])),Fi[e]&&"transform"!==e?(r=In(t,n),r="transformOrigin"!==e?r[e]:Rn(un(t,hn))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=An[e]&&An[e](t,e,i)||un(t,e)||bt(t,e)||("opacity"===e?1:0))),i&&!~(r+"").trim().indexOf(" ")?_n(t,e,r,i)+i:r},Cn=function(t,e,i,n){if(!i||"none"===i){var r=pn(e,t,1),o=r&&un(t,r,1);o&&o!==i?(e=r,i=o):"borderColor"===e&&(i=un(t,"borderTopColor"))}var s,a,l,h,c,u,d,p,f,g,m,y,v,b=new ki(this._pt,t.style,e,0,1,xi),x=0,w=0;if(b.b=i,b.e=n,i+="",n+="","auto"===n&&(t.style[e]=n,n=un(t,e)||n,t.style[e]=i),s=[i,n],Ne(s),i=s[0],n=s[1],l=i.match(K)||[],v=n.match(K)||[],v.length){while(a=K.exec(n))d=a[0],f=n.substring(x,a.index),c?c=(c+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(c=1),d!==(u=l[w++]||"")&&(h=parseFloat(u)||0,m=u.substr((h+"").length),y="="===d.charAt(1)?+(d.charAt(0)+"1"):0,y&&(d=d.substr(2)),p=parseFloat(d),g=d.substr((p+"").length),x=K.lastIndex-g.length,g||(g=g||O.units[e]||m,x===n.length&&(n+=g,b.e+=g)),m!==g&&(h=_n(t,e,u,g)||0),b._pt={_next:b._pt,p:f||1===w?f:",",s:h,c:y?y*p:p-h,m:c&&c<4||"zIndex"===e?Math.round:0});b.c=x-1)i=a[r],Fi[i]&&(n=1,i="transformOrigin"===i?hn:ln),bn(o,i)}n&&(bn(o,ln),l&&(l.svg&&o.removeAttribute("transform"),In(o,1),l.uncache=1))}},An={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var o=t._pt=new ki(t._pt,e,i,0,0,Tn);return o.u=n,o.pr=-10,o.tween=r,t._props.push(i),1}}},On=[1,0,0,1,0,0],Pn={},En=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Ln=function(t){var e=un(t,ln);return En(e)?On:e.substr(7).match(Z).map(wt)},Dn=function(t,e){var i,n,r,o,s=t._gsap||vt(t),a=t.style,l=Ln(t);return s.svg&&t.getAttribute("transform")?(r=t.transform.baseVal.consolidate().matrix,l=[r.a,r.b,r.c,r.d,r.e,r.f],"1,0,0,1,0,0"===l.join(",")?On:l):(l!==On||t.offsetParent||t===zi||s.svg||(r=a.display,a.display="block",i=t.parentNode,i&&t.offsetParent||(o=1,n=t.nextSibling,zi.appendChild(t)),l=Ln(t),r?a.display=r:bn(t,"display"),o&&(n?i.insertBefore(t,n):i?i.appendChild(t):zi.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},zn=function(t,e,i,n,r,o){var s,a,l,h,c=t._gsap,u=r||Dn(t,!0),d=c.xOrigin||0,p=c.yOrigin||0,f=c.xOffset||0,g=c.yOffset||0,m=u[0],y=u[1],v=u[2],b=u[3],x=u[4],w=u[5],_=e.split(" "),S=parseFloat(_[0])||0,C=parseFloat(_[1])||0;i?u!==On&&(a=m*b-y*v)&&(l=S*(b/a)+C*(-v/a)+(v*w-b*x)/a,h=S*(-y/a)+C*(m/a)-(m*w-y*x)/a,S=l,C=h):(s=yn(t),S=s.x+(~_[0].indexOf("%")?S/100*s.width:S),C=s.y+(~(_[1]||_[0]).indexOf("%")?C/100*s.height:C)),n||!1!==n&&c.smooth?(x=S-d,w=C-p,c.xOffset=f+(x*m+w*v)-x,c.yOffset=g+(x*y+w*b)-w):c.xOffset=c.yOffset=0,c.xOrigin=S,c.yOrigin=C,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!i,t.style[hn]="0px 0px",o&&(xn(o,c,"xOrigin",d,S),xn(o,c,"yOrigin",p,C),xn(o,c,"xOffset",f,c.xOffset),xn(o,c,"yOffset",g,c.yOffset)),t.setAttribute("data-svg-origin",S+" "+C)},In=function(t,e){var i=t._gsap||new Qe(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,o,s,a,l,h,c,u,d,p,f,g,m,y,v,b,x,w,_,S,C,M,k,T,A,P,E,L,D,z,I,R=t.style,N=i.scaleX<0,j="px",B="deg",F=un(t,hn)||"0";return n=r=o=l=h=c=u=d=p=0,s=a=1,i.svg=!(!t.getCTM||!vn(t)),m=Dn(t,i.svg),i.svg&&(k=!i.uncache&&!e&&t.getAttribute("data-svg-origin"),zn(t,k||F,!!k||i.originIsAbsolute,!1!==i.smooth,m)),f=i.xOrigin||0,g=i.yOrigin||0,m!==On&&(x=m[0],w=m[1],_=m[2],S=m[3],n=C=m[4],r=M=m[5],6===m.length?(s=Math.sqrt(x*x+w*w),a=Math.sqrt(S*S+_*_),l=x||w?Hi(w,x)*Wi:0,u=_||S?Hi(_,S)*Wi+l:0,u&&(a*=Math.abs(Math.cos(u*Gi))),i.svg&&(n-=f-(f*x+g*_),r-=g-(f*w+g*S))):(I=m[6],D=m[7],P=m[8],E=m[9],L=m[10],z=m[11],n=m[12],r=m[13],o=m[14],y=Hi(I,L),h=y*Wi,y&&(v=Math.cos(-y),b=Math.sin(-y),k=C*v+P*b,T=M*v+E*b,A=I*v+L*b,P=C*-b+P*v,E=M*-b+E*v,L=I*-b+L*v,z=D*-b+z*v,C=k,M=T,I=A),y=Hi(-_,L),c=y*Wi,y&&(v=Math.cos(-y),b=Math.sin(-y),k=x*v-P*b,T=w*v-E*b,A=_*v-L*b,z=S*b+z*v,x=k,w=T,_=A),y=Hi(w,x),l=y*Wi,y&&(v=Math.cos(y),b=Math.sin(y),k=x*v+w*b,T=C*v+M*b,w=w*v-x*b,M=M*v-C*b,x=k,C=T),h&&Math.abs(h)+Math.abs(l)>359.9&&(h=l=0,c=180-c),s=wt(Math.sqrt(x*x+w*w+_*_)),a=wt(Math.sqrt(M*M+I*I)),y=Hi(C,M),u=Math.abs(y)>2e-4?y*Wi:0,p=z?1/(z<0?-z:z):0),i.svg&&(k=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!En(un(t,ln)),k&&t.setAttribute("transform",k))),Math.abs(u)>90&&Math.abs(u)<270&&(N?(s*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,u+=u<=0?180:-180)),i.x=n-((i.xPercent=n&&(i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+j,i.y=r-((i.yPercent=r&&(i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+j,i.z=o+j,i.scaleX=wt(s),i.scaleY=wt(a),i.rotation=wt(l)+B,i.rotationX=wt(h)+B,i.rotationY=wt(c)+B,i.skewX=u+B,i.skewY=d+B,i.transformPerspective=p+j,(i.zOrigin=parseFloat(F.split(" ")[2])||0)&&(R[hn]=Rn(F)),i.xOffset=i.yOffset=0,i.force3D=O.force3D,i.renderTransform=i.svg?Hn:ji?Gn:jn,i.uncache=0,i},Rn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Nn=function(t,e,i){var n=oe(e);return wt(parseFloat(e)+parseFloat(_n(t,"x",i+"px",n)))+n},jn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Gn(t,e)},Bn="0deg",Fn="0px",Wn=") ",Gn=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,o=i.x,s=i.y,a=i.z,l=i.rotation,h=i.rotationY,c=i.rotationX,u=i.skewX,d=i.skewY,p=i.scaleX,f=i.scaleY,g=i.transformPerspective,m=i.force3D,y=i.target,v=i.zOrigin,b="",x="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Bn||h!==Bn)){var w,_=parseFloat(h)*Gi,S=Math.sin(_),C=Math.cos(_);_=parseFloat(c)*Gi,w=Math.cos(_),o=Nn(y,o,S*w*-v),s=Nn(y,s,-Math.sin(_)*-v),a=Nn(y,a,C*w*-v+v)}g!==Fn&&(b+="perspective("+g+Wn),(n||r)&&(b+="translate("+n+"%, "+r+"%) "),(x||o!==Fn||s!==Fn||a!==Fn)&&(b+=a!==Fn||x?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+Wn),l!==Bn&&(b+="rotate("+l+Wn),h!==Bn&&(b+="rotateY("+h+Wn),c!==Bn&&(b+="rotateX("+c+Wn),u===Bn&&d===Bn||(b+="skew("+u+", "+d+Wn),1===p&&1===f||(b+="scale("+p+", "+f+Wn),y.style[ln]=b||"translate(0, 0)"},Hn=function(t,e){var i,n,r,o,s,a=e||this,l=a.xPercent,h=a.yPercent,c=a.x,u=a.y,d=a.rotation,p=a.skewX,f=a.skewY,g=a.scaleX,m=a.scaleY,y=a.target,v=a.xOrigin,b=a.yOrigin,x=a.xOffset,w=a.yOffset,_=a.forceCSS,S=parseFloat(c),C=parseFloat(u);d=parseFloat(d),p=parseFloat(p),f=parseFloat(f),f&&(f=parseFloat(f),p+=f,d+=f),d||p?(d*=Gi,p*=Gi,i=Math.cos(d)*g,n=Math.sin(d)*g,r=Math.sin(d-p)*-m,o=Math.cos(d-p)*m,p&&(f*=Gi,s=Math.tan(p-f),s=Math.sqrt(1+s*s),r*=s,o*=s,f&&(s=Math.tan(f),s=Math.sqrt(1+s*s),i*=s,n*=s)),i=wt(i),n=wt(n),r=wt(r),o=wt(o)):(i=g,o=m,n=r=0),(S&&!~(c+"").indexOf("px")||C&&!~(u+"").indexOf("px"))&&(S=_n(y,"x",c,"px"),C=_n(y,"y",u,"px")),(v||b||x||w)&&(S=wt(S+v-(v*i+b*r)+x),C=wt(C+b-(v*n+b*o)+w)),(l||h)&&(s=y.getBBox(),S=wt(S+l/100*s.width),C=wt(C+h/100*s.height)),s="matrix("+i+","+n+","+r+","+o+","+S+","+C+")",y.setAttribute("transform",s),_&&(y.style[ln]=s)},Xn=function(t,e,i,n,r,o){var s,a,l=360,h=B(r),c=parseFloat(r)*(h&&~r.indexOf("rad")?Wi:1),u=o?c*o:c-n,d=n+u+"deg";return h&&(s=r.split("_")[1],"short"===s&&(u%=l,u!==u%(l/2)&&(u+=u<0?l:-l)),"cw"===s&&u<0?u=(u+l*Xi)%l-~~(u/l)*l:"ccw"===s&&u>0&&(u=(u-l*Xi)%l-~~(u/l)*l)),t._pt=a=new ki(t._pt,e,i,n,u,Zi),a.e=d,a.u="deg",t._props.push(i),a},Yn=function(t,e){for(var i in e)t[i]=e[i];return t},Un=function(t,e,i){var n,r,o,s,a,l,h,c,u=Yn({},i._gsap),d="perspective,force3D,transformOrigin,svgOrigin",p=i.style;for(r in u.svg?(o=i.getAttribute("transform"),i.setAttribute("transform",""),p[ln]=e,n=In(i,1),bn(i,ln),i.setAttribute("transform",o)):(o=getComputedStyle(i)[ln],p[ln]=e,n=In(i,1),p[ln]=o),Fi)o=u[r],s=n[r],o!==s&&d.indexOf(r)<0&&(h=oe(o),c=oe(s),a=h!==c?_n(i,r,o,c):parseFloat(o),l=parseFloat(s),t._pt=new ki(t._pt,n,r,a,l-a,$i),t._pt.u=c||0,t._props.push(r));Yn(n,u)};xt("padding,margin,Width,Radius",(function(t,e){var i="Top",n="Right",r="Bottom",o="Left",s=(e<3?[i,n,r,o]:[i+o,i+n,r+n,r+o]).map((function(i){return e<2?t+i:"border"+i+t}));An[e>1?"border"+t:t]=function(t,e,i,n,r){var o,a;if(arguments.length<4)return o=s.map((function(e){return Sn(t,e,i)})),a=o.join(" "),5===a.split(o[0]).length?o[0]:a;o=(n+"").split(" "),a={},s.forEach((function(t,e){return a[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,a,r)}}));var Vn={name:"css",register:fn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var o,s,a,l,h,c,u,d,p,f,g,m,y,v,b,x=this._props,w=t.style,_=i.vars.startAt;for(u in Ii||fn(),e)if("autoRound"!==u&&(s=e[u],!dt[u]||!si(u,e,i,n,t,r)))if(h=typeof s,c=An[u],"function"===h&&(s=s.call(i,n,t,r),h=typeof s),"string"===h&&~s.indexOf("random(")&&(s=_e(s)),c)c(this,t,u,s,i)&&(b=1);else if("--"===u.substr(0,2))o=(getComputedStyle(t).getPropertyValue(u)+"").trim(),s+="",Ie.lastIndex=0,Ie.test(o)||(d=oe(o),p=oe(s)),p?d!==p&&(o=_n(t,u,o,p)+p):d&&(s+=d),this.add(w,"setProperty",o,s,n,r,0,0,u);else if("undefined"!==h){if(_&&u in _?(o="function"===typeof _[u]?_[u].call(i,n,t,r):_[u],u in O.units&&!oe(o)&&(o+=O.units[u]),"="===(o+"").charAt(1)&&(o=Sn(t,u))):o=Sn(t,u),l=parseFloat(o),f="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0,f&&(s=s.substr(2)),a=parseFloat(s),u in qi&&("autoAlpha"===u&&(1===l&&"hidden"===Sn(t,"visibility")&&a&&(l=0),xn(this,w,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==u&&"transform"!==u&&(u=qi[u],~u.indexOf(",")&&(u=u.split(",")[0]))),g=u in Fi,g)if(m||(y=t._gsap,y.renderTransform&&!e.parseTransform||In(t,e.parseTransform),v=!1!==e.smoothOrigin&&y.smooth,m=this._pt=new ki(this._pt,w,ln,0,1,y.renderTransform,y,0,-1),m.dep=1),"scale"===u)this._pt=new ki(this._pt,y,"scaleY",y.scaleY,f?f*a:a-y.scaleY),x.push("scaleY",u),u+="X";else{if("transformOrigin"===u){s=kn(s),y.svg?zn(t,s,0,v,0,this):(p=parseFloat(s.split(" ")[2])||0,p!==y.zOrigin&&xn(this,y,"zOrigin",y.zOrigin,p),xn(this,w,u,Rn(o),Rn(s)));continue}if("svgOrigin"===u){zn(t,s,1,v,0,this);continue}if(u in Pn){Xn(this,y,u,l,s,f);continue}if("smoothOrigin"===u){xn(this,y,"smooth",y.smooth,s);continue}if("force3D"===u){y[u]=s;continue}if("transform"===u){Un(this,s,t);continue}}else u in w||(u=pn(u)||u);if(g||(a||0===a)&&(l||0===l)&&!Vi.test(s)&&u in w)d=(o+"").substr((l+"").length),a||(a=0),p=oe(s)||(u in O.units?O.units[u]:d),d!==p&&(l=_n(t,u,o,p)),this._pt=new ki(this._pt,g?y:w,u,l,f?f*a:a-l,g||"px"!==p&&"zIndex"!==u||!1===e.autoRound?$i:Ji),this._pt.u=p||0,d!==p&&(this._pt.b=o,this._pt.r=Ki);else if(u in w)Cn.call(this,t,u,o,s);else{if(!(u in t)){ot(u,s);continue}this.add(t,u,t[u],s,n,r)}x.push(u)}b&&Mi(this)},get:Sn,aliases:qi,getSetter:function(t,e,i){var n=qi[e];return n&&n.indexOf(",")<0&&(e=n),e in Fi&&e!==hn&&(t._gsap.x||Sn(t,"x"))?i&&Ni===i?"scale"===e?on:rn:(Ni=i||{})&&("scale"===e?sn:an):t.style&&!G(t.style[e])?en:~e.indexOf("-")?nn:yi(t,e)},core:{_removeProperty:bn,_getMatrix:Dn}};Ei.utils.checkPrefix=pn,function(t,e,i,n){var r=xt(t+","+e+","+i,(function(t){Fi[t]=1}));xt(e,(function(t){O.units[t]="deg",Pn[t]=1})),qi[r[13]]=t+","+e,xt(n,(function(t){var e=t.split(":");qi[e[1]]=r[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),xt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){O.units[t]="px"})),Ei.registerPlugin(Vn);var qn=Ei.registerPlugin(Vn)||Ei,$n=(qn.core.Tween,i("49dc"));function Zn(t){if(Array.isArray(t))return c(t)}function Kn(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Jn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qn(t){return Zn(t)||Kn(t)||u(t)||Jn()}i("4de4"),i("b64b"),i("caad"),i("2532"),i("d81d");var tr=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function er(){}var ir=function(t){return null==t?er:function(){return this.querySelector(t)}},nr=function(t){"function"!==typeof t&&(t=ir(t));for(var e=this._groups,i=e.length,n=new Array(i),r=0;r=w&&(w=x+1);while(!(b=m[w])&&++w=0;)(n=r[o])&&(s&&4^n.compareDocumentPosition(s)&&s.parentNode.insertBefore(n,s),s=n);return this},Er=function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=Lr);for(var i=this._groups,n=i.length,r=new Array(n),o=0;oe?1:t>=e?0:NaN}var Dr=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},zr=function(){return Array.from(this)},Ir=function(){for(var t=this._groups,e=0,i=t.length;e=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),Fr.hasOwnProperty(e)?{space:Fr[e],local:t}:t};function Gr(t){return function(){this.removeAttribute(t)}}function Hr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xr(t,e){return function(){this.setAttribute(t,e)}}function Yr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ur(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Vr(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}var qr=function(t,e){var i=Wr(t);if(arguments.length<2){var n=this.node();return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==e?i.local?Hr:Gr:"function"===typeof e?i.local?Vr:Ur:i.local?Yr:Xr)(i,e))},$r=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Zr(t){return function(){this.style.removeProperty(t)}}function Kr(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Jr(t,e,i){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,i)}}var Qr=function(t,e,i){return arguments.length>1?this.each((null==e?Zr:"function"===typeof e?Jr:Kr)(t,e,null==i?"":i)):to(this.node(),t)};function to(t,e){return t.style.getPropertyValue(e)||$r(t).getComputedStyle(t,null).getPropertyValue(e)}function eo(t){return function(){delete this[t]}}function io(t,e){return function(){this[t]=e}}function no(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}var ro=function(t,e){return arguments.length>1?this.each((null==e?eo:"function"===typeof e?no:io)(t,e)):this.node()[t]};function oo(t){return t.trim().split(/^|\s+/)}function so(t){return t.classList||new ao(t)}function ao(t){this._node=t,this._names=oo(t.getAttribute("class")||"")}function lo(t,e){var i=so(t),n=-1,r=e.length;while(++n=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fo=function(t,e){var i=oo(t+"");if(arguments.length<2){var n=so(this.node()),r=-1,o=i.length;while(++r=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}function Wo(t){return function(){var e=this.__on;if(e){for(var i,n=0,r=-1,o=e.length;n0)return[t];if((n=e0){let i=Math.round(t/s),n=Math.round(e/s);i*se&&--n,o=new Array(r=n-i+1);while(++ae&&--n,o=new Array(r=n-i+1);while(++a=0?(o>=is?10:o>=ns?5:o>=rs?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=is?10:o>=ns?5:o>=rs?2:1)}function as(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/r;return o>=is?r*=10:o>=ns?r*=5:o>=rs&&(r*=2),ee?1:t>=e?0:NaN},hs=function(t){let e=t,i=t;function n(t,e,n,r){null==n&&(n=0),null==r&&(r=t.length);while(n>>1;i(t[o],e)<0?n=o+1:r=o}return n}function r(t,e,n,r){null==n&&(n=0),null==r&&(r=t.length);while(n>>1;i(t[o],e)>0?r=o:n=o+1}return n}function o(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const s=n(t,i,r,o-1);return s>r&&e(t[s-1],i)>-e(t[s],i)?s-1:s}return 1===t.length&&(e=(e,i)=>t(e)-i,i=cs(t)),{left:n,center:o,right:r}};function cs(t){return(e,i)=>ls(t(e),i)}var us=function(t){return null===t?NaN:+t};const ds=hs(ls),ps=ds.right;ds.left,hs(us).center;var fs=ps,gs=function(t,e,i){t.prototype=e.prototype=i,i.constructor=t};function ms(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function ys(){}var vs=.7,bs=1/vs,xs="\\s*([+-]?\\d+)\\s*",ws="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ss=/^#([0-9a-f]{3,8})$/,Cs=new RegExp("^rgb\\("+[xs,xs,xs]+"\\)$"),Ms=new RegExp("^rgb\\("+[_s,_s,_s]+"\\)$"),ks=new RegExp("^rgba\\("+[xs,xs,xs,ws]+"\\)$"),Ts=new RegExp("^rgba\\("+[_s,_s,_s,ws]+"\\)$"),As=new RegExp("^hsl\\("+[ws,_s,_s]+"\\)$"),Os=new RegExp("^hsla\\("+[ws,_s,_s,ws]+"\\)$"),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Es(){return this.rgb().formatHex()}function Ls(){return Xs(this).formatHsl()}function Ds(){return this.rgb().formatRgb()}function zs(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Ss.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?Is(e):3===i?new Bs(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?Rs(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?Rs(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Cs.exec(t))?new Bs(e[1],e[2],e[3],1):(e=Ms.exec(t))?new Bs(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ks.exec(t))?Rs(e[1],e[2],e[3],e[4]):(e=Ts.exec(t))?Rs(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=As.exec(t))?Hs(e[1],e[2]/100,e[3]/100,1):(e=Os.exec(t))?Hs(e[1],e[2]/100,e[3]/100,e[4]):Ps.hasOwnProperty(t)?Is(Ps[t]):"transparent"===t?new Bs(NaN,NaN,NaN,0):null}function Is(t){return new Bs(t>>16&255,t>>8&255,255&t,1)}function Rs(t,e,i,n){return n<=0&&(t=e=i=NaN),new Bs(t,e,i,n)}function Ns(t){return t instanceof ys||(t=zs(t)),t?(t=t.rgb(),new Bs(t.r,t.g,t.b,t.opacity)):new Bs}function js(t,e,i,n){return 1===arguments.length?Ns(t):new Bs(t,e,i,null==n?1:n)}function Bs(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function Fs(){return"#"+Gs(this.r)+Gs(this.g)+Gs(this.b)}function Ws(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Gs(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Hs(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Us(t,e,i,n)}function Xs(t){if(t instanceof Us)return new Us(t.h,t.s,t.l,t.opacity);if(t instanceof ys||(t=zs(t)),!t)return new Us;if(t instanceof Us)return t;t=t.rgb();var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.min(e,i,n),o=Math.max(e,i,n),s=NaN,a=o-r,l=(o+r)/2;return a?(s=e===o?(i-n)/a+6*(i0&&l<1?0:s,new Us(s,a,l,t.opacity)}function Ys(t,e,i,n){return 1===arguments.length?Xs(t):new Us(t,e,i,null==n?1:n)}function Us(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function Vs(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function qs(t,e,i,n,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*i+(1+3*t+3*o-3*s)*n+s*r)/6}gs(ys,zs,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Es,formatHex:Es,formatHsl:Ls,formatRgb:Ds,toString:Ds}),gs(Bs,js,ms(ys,{brighter:function(t){return t=null==t?bs:Math.pow(bs,t),new Bs(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?vs:Math.pow(vs,t),new Bs(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fs,formatHex:Fs,formatRgb:Ws,toString:Ws})),gs(Us,Ys,ms(ys,{brighter:function(t){return t=null==t?bs:Math.pow(bs,t),new Us(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?vs:Math.pow(vs,t),new Us(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,r=2*i-n;return new Bs(Vs(t>=240?t-240:t+120,r,n),Vs(t,r,n),Vs(t<120?t+240:t-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var $s=function(t){var e=t.length-1;return function(i){var n=i<=0?i=0:i>=1?(i=1,e-1):Math.floor(i*e),r=t[n],o=t[n+1],s=n>0?t[n-1]:2*r-o,a=n()=>t;function Js(t,e){return function(i){return t+i*e}}function Qs(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(n){return Math.pow(t+n*e,i)}}function ta(t){return 1===(t=+t)?ea:function(e,i){return i-e?Qs(e,i,t):Ks(isNaN(e)?i:e)}}function ea(t,e){var i=e-t;return i?Js(t,i):Ks(isNaN(t)?e:t)}var ia=function t(e){var i=ta(e);function n(t,e){var n=i((t=js(t)).r,(e=js(e)).r),r=i(t.g,e.g),o=i(t.b,e.b),s=ea(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=r(e),t.b=o(e),t.opacity=s(e),t+""}}return n.gamma=t,n}(1);function na(t){return function(e){var i,n,r=e.length,o=new Array(r),s=new Array(r),a=new Array(r);for(i=0;io&&(r=e.slice(o,r),a[s]?a[s]+=r:a[++s]=r),(i=i[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:la(i,n)})),o=ua.lastIndex;return oe&&(i=t,t=e,e=i),function(i){return Math.max(t,Math.min(e,i))}}function Sa(t,e,i){var n=t[0],r=t[1],o=e[0],s=e[1];return r2?Ca:Sa,r=o=null,u}function u(e){return null==e||isNaN(e=+e)?i:(r||(r=n(s.map(t),a,l)))(t(h(e)))}return u.invert=function(i){return h(e((o||(o=n(a,s.map(t),la)))(i)))},u.domain=function(t){return arguments.length?(s=Array.from(t,va),c()):s.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=ma,c()},u.clamp=function(t){return arguments.length?(h=!!t||xa,c()):h!==xa},u.interpolate=function(t){return arguments.length?(l=t,c()):l},u.unknown=function(t){return arguments.length?(i=t,u):i},function(i,n){return t=i,e=n,c()}}function Ta(){return ka()(xa,xa)}function Aa(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Oa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pa(t){if(!(e=Oa.exec(t)))throw new Error("invalid format: "+t);var e;return new Ea({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ea(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Pa.prototype=Ea.prototype,Ea.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var La=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function Da(t,e){if((i=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var i,n=t.slice(0,i);return[n.length>1?n[0]+n.slice(2):n,+t.slice(i+1)]}var za,Ia,Ra,Na,ja=function(t){return t=Da(Math.abs(t)),t?t[1]:NaN},Ba=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ja(e)/3)))-ja(Math.abs(t)))},Fa=function(t,e){return function(i,n){var r=i.length,o=[],s=0,a=t[0],l=0;while(r>0&&a>0){if(l+a+1>n&&(a=Math.max(1,n-l)),o.push(i.substring(r-=a,r+a)),(l+=a+1)>n)break;a=t[s=(s+1)%t.length]}return o.reverse().join(e)}},Wa=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},Ga=function(t){t:for(var e,i=t.length,n=1,r=-1;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(e+1):t},Ha=function(t,e){var i=Da(t,e);if(!i)return t+"";var n=i[0],r=i[1],o=r-(za=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Da(t,Math.max(0,e+o-1))[0]},Xa=function(t,e){var i=Da(t,e);if(!i)return t+"";var n=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")},Ya={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:La,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Xa(100*t,e),r:Xa,s:Ha,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},Ua=function(t){return t},Va=Array.prototype.map,qa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],$a=function(t){var e=void 0===t.grouping||void 0===t.thousands?Ua:Fa(Va.call(t.grouping,Number),t.thousands+""),i=void 0===t.currency?"":t.currency[0]+"",n=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Ua:Wa(Va.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){t=Pa(t);var h=t.fill,c=t.align,u=t.sign,d=t.symbol,p=t.zero,f=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Ya[v]||(void 0===m&&(m=12),y=!0,v="g"),(p||"0"===h&&"="===c)&&(p=!0,h="0",c="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===d?n:/[%p]/.test(v)?s:"",w=Ya[v],_=/[defgprs%]/.test(v);function S(t){var i,n,s,d=b,S=x;if("c"===v)S=w(t)+S,t="";else{t=+t;var C=t<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),m),y&&(t=Ga(t)),C&&0===+t&&"+"!==u&&(C=!1),d=(C?"("===u?u:a:"-"===u||"("===u?"":u)+d,S=("s"===v?qa[8+za/3]:"")+S+(C&&"("===u?")":""),_){i=-1,n=t.length;while(++is||s>57){S=(46===s?r+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}}g&&!p&&(t=e(t,1/0));var M=d.length+t.length+S.length,k=M>1)+d+t+S+k.slice(M);break;default:t=k+d+t+S;break}return o(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return t+""},S}function c(t,e){var i=h((t=Pa(t),t.type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(ja(e)/3))),r=Math.pow(10,-n),o=qa[8+n/3];return function(t){return i(r*t)+o}}return{format:h,formatPrefix:c}};function Za(t){return Ia=$a(t),Ra=Ia.format,Na=Ia.formatPrefix,Ia}Za({thousands:",",grouping:[3],currency:["$",""]});var Ka=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ja(e)-ja(t))+1},Ja=function(t){return Math.max(0,-ja(Math.abs(t)))};function Qa(t,e,i,n){var r,o=as(t,e,i);switch(n=Pa(null==n?",f":n),n.type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(r=Ba(o,s))||(n.precision=r),Na(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Ka(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Ja(o))||(n.precision=r-2*("%"===n.type));break}return Ra(n)}function tl(t){var e=t.domain;return t.ticks=function(t){var i=e();return os(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var n=e();return Qa(n[0],n[n.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var n,r,o=e(),s=0,a=o.length-1,l=o[s],h=o[a],c=10;h0){if(r=ss(l,h,i),r===n)return o[s]=l,o[a]=h,e(o);if(r>0)l=Math.floor(l/r)*r,h=Math.ceil(h/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,h=Math.floor(h*r)/r}n=r}return t},t}function el(){var t=Ta();return t.copy=function(){return Ma(t,el())},Aa.apply(t,arguments),tl(t)}function il(t,e){var i="bottom",n=60;return 1===t&&(i=e.offsetTop-parseFloat(getComputedStyle(e.previousSibling).marginTop)+n),t>1&&(i=e.previousElementSibling.offsetHeight+parseFloat(getComputedStyle(e.previousElementSibling).marginBottom)+n),"top ".concat(i)}function nl(t,e){return t===e[e.length-1]?"":"top 60"}function rl(t){var e=function(t){return $n["ScrollTrigger"].getAll().filter((function(e){return e.vars.group===t}))};e(t).forEach((function(t){return t.kill()}))}var ol={Buildings:{active:"#AF6AB1",default:"#B187EF"},Industry:{active:"#1DBE62",default:"#68F394"},Transport:{active:"#FFF45A",default:"#FED324"},"Electricity and heating":{active:"#3E7AD3",default:"#49D3FF"},Electricity:{active:"#3E7AD3",default:"#49D3FF"},Other:{active:"#B1B1B1",default:"#E6E6E6"}};function sl(t,e){var i=Object.keys(ol);return i.pop(),i.includes(t)?ol[t][e]:ol.Other[e]}function al(t,e){var i=Qn(t),n=i.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){var i="CH4"===t.subgroup,n=i?t[e]:"".concat(t.milestone," ").concat(t[e]).concat(t.unit);return{default:!!i,sector:t.sector,type:t.type,value:n}})).sort((function(t,e){return t.sector.localeCompare(e.sector)}));return n}var ll=function(t,e){return t.getBoundingClientRect()[e]};function hl(t,e){var i=Qo(".".concat(t,"-milestones")),n=Qo(".".concat(t,"-milestonesLabel"));i.style("fill",(function(t){return t.value===e.value?sl(e.sector,"active"):sl(t.sector,"default")})),n.style("opacity",(function(t){return t.value===e.value?1:0}))}function cl(t,e){var i=Qo(".".concat(t,"-milestones")),n=Qo(".".concat(t,"-milestonesLabel"));i.style("fill",(function(t){return"sm"===e?sl(t.sector,"default"):!0===t.default?sl(t.sector,"active"):sl(t.sector,"default")})),n.style("opacity",(function(t){return"sm"===e?0:!0===t.default?1:0}))}function ul(t,e,i,n,r,o,s){var a=t._groups[0][0],l=es(r,e.node()),h="sm"===s?50:10,c="\n ".concat(o.label,'
\n ').concat(o[n],"Gt\n
\n ");t.html((function(t){return c})).style("border","1px solid ".concat(sl(o.label,"default"))),e.attr("x","".concat(l[0]-ll(a,"width")/2)).attr("y","".concat(l[1]-ll(a,"height")-h)).attr("width",ll(a,"width")).attr("height",ll(a,"height")).style("visibility","visible"),i.style("opacity",(function(t){return t.label===o.label?1:.5}))}function dl(t,e){t.style("visibility","hidden"),e.style("opacity",1)}function pl(t,e,i,n,r){var o=ll(r,"x"===t?"width":"height"),s=el().domain([0,i.length]).range([0,2*Math.PI]),a=el().domain([0,i.length]).range([0,360]),l=n*Math.cos(s(e)),h=n*Math.sin(s(e)),c=a(e)>100&&a(e)<260,u=a(e)<80||a(e)>280,d=a(e)>185&&a(e)<355,p=a(e)>5&&a(e)<175;return"x"===t?c?l-o:u?l:l-o/2:d?h-o:p?h:h-o/2}function fl(t,e){var i=el().domain([0,e.length]).range([0,360]),n=i(t)>100&&i(t)<260,r=i(t)<80||i(t)>280;return n?"left":r?"right":"middle"}qn.registerPlugin($n["ScrollTrigger"]);var gl={data:function(){return{duration:.5,scene:null}},props:{data:{type:Array},phaseRef:{type:String}},mounted:function(){this._setScrollTrigger()},beforeDestroy:function(){rl("steps")},methods:{_setScrollTrigger:function(){var t=this.phaseRef,e=this.duration,i=this.viewChange,n=this.$refs[this.phaseRef];n.forEach((function(r,o){$n["ScrollTrigger"].create({trigger:r,group:"steps",start:function(){return il(o,r)},end:function(){return nl(r,n)},onEnter:function(t){return qn.to(t.trigger,{opacity:1,duration:e})},onEnterBack:function(t){return qn.to(t.trigger,{opacity:1,duration:e})},onLeave:function(t){return qn.to(t.trigger,{opacity:0,duration:e})},onLeaveBack:function(t){return qn.to(t.trigger,{opacity:.1,duration:e})},onToggle:function(t){return i(t)},id:"".concat(t,"-steps-").concat(o)})}))},viewChange:function(t){t.isActive&&(this.scene=t.trigger.dataset.anim,this.$emit("scroll",t.trigger.dataset.anim))}}},ml=gl;i("e0e4");function yl(t,e,i,n,r,o,s,a){var l,h="function"===typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),s?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=l):r&&(l=a?function(){r.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(h.functional){h._injectStyles=l;var c=h.render;h.render=function(t,e){return l.call(e),c(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:h}}var vl=yl(ml,m,y,!1,null,null,null),bl=vl.exports,xl=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nze-bubble-chart__wrapper"},[i("svg",{ref:t.phaseRef,staticClass:"nze-bubble-chart__svg"})])},wl=[],_l=function(t){return"string"===typeof t?new Zo([[document.querySelector(t)]],[document.documentElement]):new Zo([[t]],$o)},Sl={value:()=>{}};function Cl(){for(var t,e=0,i=arguments.length,n={};e=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))}function Tl(t,e){for(var i,n=0,r=t.length;n0)for(var i,n,r=new Array(i),o=0;o=0&&e._call.call(null,t),e=e._next;--Ll}function Ul(){Nl=(Rl=Bl.now())+jl,Ll=Dl=0;try{Yl()}finally{Ll=0,ql(),Nl=0}}function Vl(){var t=Bl.now(),e=t-Rl;e>Il&&(jl-=e,Rl=t)}function ql(){var t,e,i=Ol,n=1/0;while(i)i._call?(n>i._time&&(n=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:Ol=e);Pl=t,$l(n)}function $l(t){if(!Ll){Dl&&(Dl=clearTimeout(Dl));var e=t-Nl;e>24?(t<1/0&&(Dl=setTimeout(Ul,t-Bl.now()-jl)),zl&&(zl=clearInterval(zl))):(zl||(Rl=Bl.now(),zl=setInterval(Vl,Il)),Ll=1,Fl(Ul))}}Hl.prototype=Xl.prototype={constructor:Hl,restart:function(t,e,i){if("function"!==typeof t)throw new TypeError("callback is not a function");i=(null==i?Wl():+i)+(null==e?0:+e),this._next||Pl===this||(Pl?Pl._next=this:Ol=this,Pl=this),this._call=t,this._time=i,$l()},stop:function(){this._call&&(this._call=null,this._time=1/0,$l())}};const Zl=1664525,Kl=1013904223,Jl=4294967296;var Ql=function(){let t=1;return()=>(t=(Zl*t+Kl)%Jl)/Jl};var th=10,eh=Math.PI*(3-Math.sqrt(5)),ih=function(t){var e,i=1,n=.001,r=1-Math.pow(n,1/300),o=0,s=.6,a=new Map,l=Xl(u),h=El("tick","end"),c=Ql();function u(){d(),h.call("tick",e),i1?(null==i?a.delete(t):a.set(t,f(i)),e):a.get(t)},find:function(e,i,n){var r,o,s,a,l,h=0,c=t.length;for(null==n?n=1/0:n*=n,h=0;h1?(h.on(t,i),e):h.on(t)}}},nh=function(t){return function(){return t}},rh=function(t){var e,i,n,r=nh(.1);function o(t){for(var r,o=0,s=e.length;o=(o=(g+y)/2))?g=o:y=o,(c=i>=(s=(m+v)/2))?m=s:v=s,r=p,!(p=p[u=c<<1|h]))return r[u]=f,t;if(a=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===a&&i===l)return f.next=p,r?r[u]=f:t._root=f,t;do{r=r?r[u]=new Array(4):t._root=new Array(4),(h=e>=(o=(g+y)/2))?g=o:y=o,(c=i>=(s=(m+v)/2))?m=s:v=s}while((u=c<<1|h)===(d=(l>=s)<<1|a>=o));return r[d]=p,r[u]=f,t}function lh(t){var e,i,n,r,o=t.length,s=new Array(o),a=new Array(o),l=1/0,h=1/0,c=-1/0,u=-1/0;for(i=0;ic&&(c=n),ru&&(u=r));if(l>c||h>u)return this;for(this.cover(l,h).cover(c,u),i=0;it||t>=r||n>e||e>=o)switch(a=(ed||(o=l.y0)>p||(s=l.x1)=y)<<1|t>=m)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=l)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=v*v+b*b;if(x=(a=(f+m)/2))?f=a:m=a,(c=s>=(l=(g+y)/2))?g=l:y=l,e=p,!(p=p[u=c<<1|h]))return this;if(!p.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(i=e,d=u)}while(p.data!==t)if(n=p,!(p=p.next))return this;return(r=p.next)&&delete p.next,n?(r?n.next=r:delete n.next,this):e?(r?e[u]=r:delete e[u],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(i?i[d]=p:this._root=p),this):(this._root=r,this)};function gh(t){for(var e=0,i=t.length;eh+f||oc+f||sl.index){var g=h-a.x-a.vx,m=c-a.y-a.vy,y=g*g+m*m;yt.r&&(t.r=t[e].r)}function l(){if(e){var n,r,o=e.length;for(i=new Array(o),n=0;n ".concat(i):i;return e?n:i},y:i?-4:2,color:"#2b2b2b",crop:!1,overflow:"none",style:{fontFamily:"Graphik",fontSize:"11px",fontWeight:"normal",textShadow:!1}}}]}}}},bc=vc,xc=(i("c376"),yl(bc,gc,mc,!1,null,null,null)),wc=xc.exports,_c={components:{TheSparkBar:wc},props:{data:{required:!1}},methods:{color:function(t){return sl(t,"default")},units:function(t){return"timeline"===t.type?"(".concat(t.unit,")"):""}}},Sc=_c,Cc=(i("e6bb"),yl(Sc,pc,fc,!1,null,null,null)),Mc=Cc.exports,kc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nze-sm-chart__wrapper"},[i("div",{ref:"chartContainer",staticClass:"nze-sm-chart__inner"},[i("div",{staticClass:"nze-sm__wrapper"},[i("div",{staticClass:"nze-sm__inner"},[i("TheSmallMultiple",{attrs:{data:t.data}})],1)]),t._m(0)])])},Tc=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nze-sm__category"},[i("h3",[t._v("KEY "),i("br"),t._v("SOLUTIONS")])])}];qn.registerPlugin($n["ScrollTrigger"]);var Ac={components:{TheSmallMultiple:Mc},data:function(){return{lever:null,data:null}},props:{phaseRef:{required:!0},chartData:{required:!0},scene:{required:!1}},beforeDestroy:function(){rl("small-multiples")},mounted:function(){var t=this.phaseRef,e=this.scene;this.steps=this.$parent.$children.filter((function(e){return e.$refs[t]}))[0].$refs[t],$n["ScrollTrigger"].refresh(),this.container=this.$refs.chartContainer,this._setContainerPin(),this.filterData(e),this._animationScrollTrigger()},methods:{units:function(t){return"timeline"===t.type?"(".concat(t.unit,")"):""},filterData:function(t){var e=this.chartData;if(e&&t){var i=e[t].sort((function(t,e){return t.sector.localeCompare(e.sector)}));this.data=i}},_setContainerPin:function(){var t=this.steps,e=this.container;$n["ScrollTrigger"].create({id:"".concat(this.phaseRef,"-small-multiples-pinned-container"),trigger:e,group:"small-multiples",endTrigger:t[t.length-1],start:function(){return"50% 50%"},end:function(){return"100 25%"},pin:!0,pinSpacing:!1})},_animationScrollTrigger:function(){var t=this,e=this.steps,i=this.filterData;qn.config({nullTargetWarn:!1}),$n["ScrollTrigger"].config({limitCallbacks:!0}),e.forEach((function(n,r){var o=n.dataset.anim.split("-")[3];$n["ScrollTrigger"].create({id:"".concat(t.phaseRef,"-small-multiples-anim-scroll"),trigger:n,group:"small-multiples",start:function(){return il(r,n)},end:function(){return nl(n,e)},onEnter:function(){return i(o)},onEnterBack:function(){return i(o)}})}))}}},Oc=Ac,Pc=(i("91b8"),yl(Oc,kc,Tc,!1,null,null,null)),Ec=Pc.exports,Lc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nze-sm-sm"},t._l(t.steps,(function(e){return i("section",{key:e.id,staticClass:"nze-sm-container"},[i("TheTextSM",{attrs:{step:e}}),i("TheSmallMultiple",{attrs:{data:t.chartData[e.id],colors:t.colors}}),i("div",{staticClass:"nze-sm-sm-legend"},[i("LegendItems",{attrs:{legendItems:t.legendItems}})],1)],1)})),0)},Dc=[],zc={components:{TheSmallMultiple:Mc,LegendItems:ic,TheTextSM:Zh},props:{colors:{required:!1},clientWidth:{required:!1},chartData:{required:!1},phaseRef:{required:!1},steps:{required:!1},legendItems:{required:!1}}},Ic=zc,Rc=(i("b80f"),yl(Ic,Lc,Dc,!1,null,null,null)),Nc=Rc.exports,jc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"legend-"+t.phaseRef,staticClass:"nze-legend__wrapper"},[i("div",{staticClass:"nze-story-container"},[i("div",{staticClass:"nze-legend__container"},[i("LegendItems",{attrs:{legendItems:t.legendItems}})],1)])])},Bc=[];qn.registerPlugin($n["ScrollTrigger"]);var Fc={components:{LegendItems:ic},props:{phaseRef:{required:!1},legendItems:{required:!1}},mounted:function(){var t=this.phaseRef;this.steps=this.$parent.$children.filter((function(e){return e.$refs[t]}))[0].$refs[t],this.parentContainer=this.$parent.$refs.nzeStory,this.container=this.$refs["legend-".concat(t)],this._setContainerPin()},beforeDestroy:function(){rl("legend")},methods:{_setContainerPin:function(){var t=this.steps,e=this.parentContainer,i=this.show,n=this.hide;$n["ScrollTrigger"].create({trigger:e,endTrigger:t[t.length-1],id:"legend",group:"legend",start:function(){return"top 25%"},end:function(){return"top 25%"},onEnter:function(){return i()},onEnterBack:function(){return i()},onLeave:function(){return n()},onLeaveBack:function(){return n()}})},show:function(){var t=this.container,e=this.delay;qn.to(t,{y:"0",delay:e})},hide:function(){var t=this.container;qn.to(t,{y:"100%"})}}},Wc=Fc,Gc=(i("459a"),yl(Wc,jc,Bc,!1,null,null,null)),Hc=Gc.exports,Xc={components:{TheBubbles:Wh,TheBubblesSM:dc,TheSmallMultiplesSM:Nc,TheSmallMultiples:Ec,TheSteps:bl,TheLegends:Hc},data:function(){return{width:null,height:null,padding:40,scene:null,screenSize:null,windowWidth:null}},props:{fluid:{type:Boolean,default:!1},milestoneData:{required:!1},data:{required:!1},phaseRef:{type:String,required:!0},phaseData:{type:Array},chartData:{required:!1},colors:{required:!1},phaseInterval:{required:!1}},watch:{windowWidth:function(t){this.screenSize=t>=1280?"large":"small"}},computed:{componentType:function(){var t=this.phaseRef.split(["-"])[1];return Number(t)},legendItems:function(){var t=this.componentType,e=this.colors,i=[];for(var n in e)i.push({item:n,color:e[n].default,type:"fill"});if(1===t){i.push({item:"Above zero",color:"#000",type:"fill"}),i.push({item:"Below zero",color:"#000",type:"line"});var r=i.findIndex((function(t){return"Electricity"===t.item}));i.splice(r,1)}else{var o=i.findIndex((function(t){return"Electricity and heating"===t.item}));i.splice(o,1)}return i}},mounted:function(){window.addEventListener("resize",this.handleResize),window.addEventListener("resize",this.handleWindowResize),this.width=this.$refs.nzeStoryContainer.clientWidth-this.padding,this.windowWidth=window.innerWidth,this.screenSize=this.windowWidth>=1280?"large":"small"},beforeUnmount:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("resize",this.handleWindowResize)},methods:{handleWindowResize:function(){this.windowWidth=window.innerWidth},handleResize:function(){this.width=this.$refs.nzeStoryContainer.clientWidth-this.padding},handleScroll:function(t){var e=t.split(["-"]);"2"===e[1]&&(this.scene=e[3])}}},Yc=Xc,Uc=(i("d3a3"),yl(Yc,f,g,!1,null,null,null)),Vc=Uc.exports,qc=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:t.scrubRef+"-wrapper",staticClass:"nze-scrubber",style:"height: "+t.containerHeight+"vh;"},[t._m(0),i("div",{ref:t.scrubRef+"-first-narrative",staticClass:"nze-scrubber__inner"},[i("svg",{ref:t.scrubRef+"-SVGContainer",staticClass:"nze-scrubber__SVG"}),i("section",{staticClass:"nze-scrubber__text"},t._l(t.narratives.text,(function(e,n){return i("h1",{key:e+"-"+n,ref:t.scrubRef+"-text",refInFor:!0},[t._v(" "+t._s(e)+" ")])})),0)])])},$c=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nze-scrubber__prompt"},[i("div",{staticClass:"scroll-label"},[t._v(" Scroll down ")]),i("div",[i("span",{staticClass:"scroll-arrows arrow-top"}),i("span",{staticClass:"scroll-arrows arrow-bottom"})])])}];i("e439"),i("dbb4");function Zc(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Kc(t){for(var e=1;e').concat(r[a],"