From e11225f4e86345913f0d671e5de675124dc0e78f Mon Sep 17 00:00:00 2001 From: McFck Date: Fri, 3 Nov 2023 01:04:27 +0400 Subject: [PATCH] Auto-generated commit [ci skip] --- 404.html | 2 +- index.html | 2 +- main.6d76b1bd3f2f75795185.js => main.5160520e16b7cbef0d6f.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename main.6d76b1bd3f2f75795185.js => main.5160520e16b7cbef0d6f.js (69%) diff --git a/404.html b/404.html index 3e3ecc0..e45ffe6 100644 --- a/404.html +++ b/404.html @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index 3e3ecc0..e45ffe6 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/main.6d76b1bd3f2f75795185.js b/main.5160520e16b7cbef0d6f.js similarity index 69% rename from main.6d76b1bd3f2f75795185.js rename to main.5160520e16b7cbef0d6f.js index fd14cd1..5c5c54e 100644 --- a/main.6d76b1bd3f2f75795185.js +++ b/main.5160520e16b7cbef0d6f.js @@ -1,4 +1,4 @@ -var M1e=Object.defineProperty,D1e=Object.defineProperties,S1e=Object.getOwnPropertyDescriptors,X5=Object.getOwnPropertySymbols,E1e=Object.prototype.hasOwnProperty,T1e=Object.prototype.propertyIsEnumerable,Q5=(Hn,An,In)=>An in Hn?M1e(Hn,An,{enumerable:!0,configurable:!0,writable:!0,value:In}):Hn[An]=In,ca=(Hn,An)=>{for(var In in An||(An={}))E1e.call(An,In)&&Q5(Hn,In,An[In]);if(X5)for(var In of X5(An))T1e.call(An,In)&&Q5(Hn,In,An[In]);return Hn},OM=(Hn,An)=>D1e(Hn,S1e(An));(self.webpackChunkpersonal=self.webpackChunkpersonal||[]).push([[179],{255:Hn=>{function An(In){return Promise.resolve().then(()=>{var Di=new Error("Cannot find module '"+In+"'");throw Di.code="MODULE_NOT_FOUND",Di})}An.keys=()=>[],An.resolve=An,An.id=255,Hn.exports=An},527:Hn=>{!function(An){"use strict";Hn.exports?Hn.exports=An:An(Highcharts)}(function(An){var In=An.relativeLength;An.wrap(An.seriesTypes.column.prototype,"translate",function(Di){var Kn=this.options,Oe=Kn.topMargin||0,be=Kn.bottomMargin||0;Di.call(this),An.each(this.points,function(oe){var le=oe.shapeArgs,ve=le.width,xe=le.height,me=le.x,fe=le.y,Ae=In(Kn.borderRadiusTopLeft||0,ve),ce=In(Kn.borderRadiusTopRight||0,ve),ye=In(Kn.borderRadiusBottomRight||0,ve),se=In(Kn.borderRadiusBottomLeft||0,ve);if(Ae||ce||ye||se){var W=Math.min(ve,xe)/2;Ae>W&&(Ae=W),ce>W&&(ce=W),ye>W&&(ye=W),se>W&&(se=W),oe.dlBox=oe.shapeArgs,oe.shapeType="path",oe.shapeArgs={d:["M",me+Ae,fe+Oe,"L",me+ve-ce,fe+Oe,"C",me+ve-ce/2,fe,me+ve,fe+ce/2,me+ve,fe+ce,"L",me+ve,fe+xe-ye,"C",me+ve,fe+xe-ye/2,me+ve-ye/2,fe+xe,me+ve-ye,fe+xe+be,"L",me+se,fe+xe+be,"C",me+se/2,fe+xe,me,fe+xe-se/2,me,fe+xe-se,"L",me,fe+Ae,"C",me,fe+Ae/2,me+Ae/2,fe,me+Ae,fe,"Z"]}}})})})},424:(Hn,An,In)=>{"use strict";var Di,Kn,Oe;Oe=function(Oe){function be(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}be(Oe=Oe?Oe._modules:{},"Extensions/Pane.js",[Oe["Core/Chart/Chart.js"],Oe["Series/CenteredUtilities.js"],Oe["Core/Globals.js"],Oe["Core/Pointer.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me){function fe(x,y,A,S,N){let F=!0;const G=A[0],b=A[1],w=Math.sqrt(Math.pow(x-G,2)+Math.pow(y-b,2));return ye(S)&&ye(N)&&(x=Math.atan2(ce(y-b,8),ce(x-G,8)),N!==S&&(F=S>N?x>=S&&x<=Math.PI||x<=N&&x>=-Math.PI:x>=S&&x<=ce(N,8))),w<=Math.ceil(A[2]/2)&&F}const{addEvent:Ae,correctFloat:ce,defined:ye,extend:se,merge:W,pick:U,splat:Q}=me;return oe.prototype.collectionsWithUpdate.push("pane"),oe.prototype.getHoverPane=function(x){const y=this;let A;return x&&y.pane.forEach(S=>{fe(x.chartX-y.plotLeft,x.chartY-y.plotTop,S.center)&&(A=S)}),A},Ae(oe,"afterIsInsidePlot",function(x){this.polar&&(x.options.inverted&&([x.x,x.y]=[x.y,x.x]),x.isInsidePlot=this.pane.some(y=>fe(x.x,x.y,y.center,y.axis&&y.axis.normalizedStartAngleRad,y.axis&&y.axis.normalizedEndAngleRad)))}),Ae(xe,"beforeGetHoverData",function(x){const y=this.chart;y.polar?(y.hoverPane=y.getHoverPane(x),x.filter=function(A){return A.visible&&!(!x.shared&&A.directTouch)&&U(A.options.enableMouseTracking,!0)&&(!y.hoverPane||A.xAxis.pane===y.hoverPane)}):y.hoverPane=void 0}),Ae(xe,"afterGetHoverData",function(x){const y=this.chart;x.hoverPoint&&x.hoverPoint.plotX&&x.hoverPoint.plotY&&y.hoverPane&&!fe(x.hoverPoint.plotX,x.hoverPoint.plotY,y.hoverPane.center)&&(x.hoverPoint=void 0)}),ve.Pane=class{constructor(y,A){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(y,A)}init(y,A){this.chart=A,this.background=[],A.pane.push(this),this.setOptions(y)}setOptions(y){this.options=W(this.defaultOptions,this.chart.angular?{background:{}}:void 0,y)}render(){var y=this.options;let A=this.options.background;var S=this.chart.renderer;if(this.group||(this.group=S.g("pane-group").attr({zIndex:y.zIndex||0}).add()),this.updateCenter(),A)for(A=Q(A),y=Math.max(A.length,this.background.length||0),S=0;Sh,w.y=w.high,w._plotY=w.plotY,w.plotY=g,N[b]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=E,G?O.align||(O.align=E?"right":"left"):O.verticalAlign||(O.verticalAlign=E?"top":"bottom")}for(this.options.dataLabels=O,fe.drawDataLabels&&fe.drawDataLabels.apply(this,arguments),b=S;b--;)(w=A[b])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=N[b],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(R.enabled||this._hasPointLabels){for(b=S;b--;)if(w=A[b]){const{plotHigh:g=0,plotLow:h=0}=w;E=R.inside?gh,w.below=!E,G?R.align||(R.align=E?"left":"right"):R.verticalAlign||(R.verticalAlign=E?"bottom":"top")}this.options.dataLabels=R,fe.drawDataLabels&&fe.drawDataLabels.apply(this,arguments)}if(O.enabled)for(b=S;b--;)(w=A[b])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(g){return!!g}));this.options.dataLabels=F}}alignDataLabel(){Ae.alignDataLabel.apply(this,arguments)}drawPoints(){const A=this.points.length;let S,N;for(fe.drawPoints.apply(this,arguments),S=0;S\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),ce(x,"afterTranslate",function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(y=>{const A=y.high,S=y.plotY;y.isNull?y.plotY=void 0:(y.plotLow=S,y.plotHigh=U(A)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(A):A,!1,!0,void 0,!0):void 0,this.dataModify&&(y.yBottom=y.plotHigh))})},{order:0}),ce(x,"afterTranslate",function(){this.points.forEach(y=>{if(this.chart.polar)this.highToXY(y),y.plotLow=y.plotY,y.tooltipPos=[((y.plotHighX||0)+(y.plotLowX||0))/2,((y.plotHigh||0)+(y.plotLow||0))/2];else{const A=y.pos(!1,y.plotLow),S=y.pos(!1,y.plotHigh);A&&S&&(A[0]=(A[0]+S[0])/2,A[1]=(A[1]+S[1])/2),y.tooltipPos=A}})},{order:3}),se(x.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:oe,pointValKey:"low",setStackedPoints:le}),ve.registerSeriesType("arearange",x),x}),be(Oe,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[Oe["Series/AreaRange/AreaRangeSeries.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){const{spline:{prototype:xe}}=le.seriesTypes,{merge:me,extend:fe}=ve;class Ae extends oe{constructor(){super(...arguments),this.points=this.data=this.options=void 0}}return Ae.defaultOptions=me(oe.defaultOptions),fe(Ae.prototype,{getPointSpline:xe.getPointSpline}),le.registerSeriesType("areasplinerange",Ae),Ae}),be(Oe,"Series/BoxPlot/BoxPlotSeries.js",[Oe["Series/Column/ColumnSeries.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{extend:me,merge:fe,pick:Ae}=xe;class ce extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}pointAttribs(){return{}}translate(){const se=this.yAxis,W=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(U){W.forEach(function(Q){null!==U[Q]&&(U[Q+"Plot"]=se.translate(U[Q],0,1,0,1))}),U.plotHigh=U.highPlot})}drawPoints(){let te,x,y,A,S,N,G,b,w,E,R,se=this,W=se.options,U=se.chart,Q=U.renderer,F=0,O=!1!==se.doQuartiles,g=se.options.whiskerLength;se.points.forEach(function(h){var p=h.graphic;let v=p?"animate":"attr",P=h.shapeArgs,V={},D={},Y={},de={},Ce=h.color||se.color;void 0!==h.plotY&&(G=Math.round(P.width),b=Math.floor(P.x),w=b+G,E=Math.round(G/2),te=Math.floor(O?h.q1Plot:h.lowPlot),x=Math.floor(O?h.q3Plot:h.lowPlot),y=Math.floor(h.highPlot),A=Math.floor(h.lowPlot),p||(h.graphic=p=Q.g("point").add(se.group),h.stem=Q.path().addClass("highcharts-boxplot-stem").add(p),g&&(h.whiskers=Q.path().addClass("highcharts-boxplot-whisker").add(p)),O&&(h.box=Q.path(void 0).addClass("highcharts-boxplot-box").add(p)),h.medianShape=Q.path(void 0).addClass("highcharts-boxplot-median").add(p)),U.styledMode||(D.stroke=h.stemColor||W.stemColor||Ce,D["stroke-width"]=Ae(h.stemWidth,W.stemWidth,W.lineWidth),D.dashstyle=h.stemDashStyle||W.stemDashStyle||W.dashStyle,h.stem.attr(D),g&&(Y.stroke=h.whiskerColor||W.whiskerColor||Ce,Y["stroke-width"]=Ae(h.whiskerWidth,W.whiskerWidth,W.lineWidth),Y.dashstyle=h.whiskerDashStyle||W.whiskerDashStyle||W.dashStyle,h.whiskers.attr(Y)),O&&(V.fill=h.fillColor||W.fillColor||Ce,V.stroke=W.lineColor||Ce,V["stroke-width"]=W.lineWidth||0,V.dashstyle=h.boxDashStyle||W.boxDashStyle||W.dashStyle,h.box.attr(V)),de.stroke=h.medianColor||W.medianColor||Ce,de["stroke-width"]=Ae(h.medianWidth,W.medianWidth,W.lineWidth),de.dashstyle=h.medianDashStyle||W.medianDashStyle||W.dashStyle,h.medianShape.attr(de)),N=h.stem.strokeWidth()%2/2,F=b+E+N,h.stem[v]({d:p=[["M",F,x],["L",F,y],["M",F,te],["L",F,A]]}),O&&(N=h.box.strokeWidth()%2/2,te=Math.floor(te)+N,x=Math.floor(x)+N,b+=N,w+=N,h.box[v]({d:p=[["M",b,x],["L",b,te],["L",w,te],["L",w,x],["L",b,x],["Z"]]})),g&&(N=h.whiskers.strokeWidth()%2/2,y+=N,A+=N,R=/%$/.test(g)?E*parseFloat(g)/100:g/2,h.whiskers[v]({d:p=[["M",F-R,y],["L",F+R,y],["M",F-R,A],["L",F+R,A]]})),S=Math.round(h.medianPlot),N=h.medianShape.strokeWidth()%2/2,S+=N,h.medianShape[v]({d:p=[["M",b,S],["L",w,S]]}))})}toYData(se){return[se.low,se.q1,se.median,se.q3,se.high]}}return ce.defaultOptions=fe(oe.defaultOptions,{threshold:null,tooltip:{pointFormat:'\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),me(ce.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:le,setStackedPoints:le}),ve.registerSeriesType("boxplot",ce),ce}),be(Oe,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),be(Oe,"Series/Bubble/BubbleLegendItem.js",[Oe["Core/Color/Color.js"],Oe["Core/Templating.js"],Oe["Core/Globals.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){const{parse:me}=oe,{noop:fe}=ve,{arrayMax:Ae,arrayMin:ce,isNumber:ye,merge:se,pick:W,stableSort:U}=xe;return class{constructor(x,y){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.chart=void 0,this.setState=fe,this.init(x,y)}init(x,y){this.options=x,this.visible=!0,this.chart=y.chart,this.legend=y}addToLegend(x){x.splice(this.options.legendIndex,0,this)}drawLegendSymbol(x){const y=W(x.options.itemDistance,20),A=this.legendItem||{},S=this.options;var N=S.ranges,F=S.connectorDistance;if(N&&N.length&&ye(N[0].value)){U(N,function(b,w){return w.value-b.value}),this.ranges=N,this.setOptions(),this.render(),x=this.getMaxLabelSize();var G=this.ranges[0].radius;N=2*G,F=0<(F=F-G+x.width)?F:0,this.maxLabel=x,this.movementX="left"===S.labels.align?F:0,A.labelWidth=N+F+y,A.labelHeight=N+x.height/2}else x.options.bubbleLegend.autoRanges=!0}setOptions(){const x=this.ranges,y=this.options,A=this.chart.series[y.seriesIndex],S=this.legend.baseline,N={zIndex:y.zIndex,"stroke-width":y.borderWidth},F={zIndex:y.zIndex,"stroke-width":y.connectorWidth},G={align:this.legend.options.rtl||"left"===y.labels.align?"right":"left",zIndex:y.zIndex},b=A.options.marker.fillOpacity,w=this.chart.styledMode;x.forEach(function(E,O){w||(N.stroke=W(E.borderColor,y.borderColor,A.color),N.fill=W(E.color,y.color,1!==b?me(A.color).setOpacity(b).get("rgba"):A.color),F.stroke=W(E.connectorColor,y.connectorColor,A.color)),x[O].radius=this.getRangeRadius(E.value),x[O]=se(x[O],{center:x[0].radius-x[O].radius+S}),w||se(!0,x[O],{bubbleAttribs:se(N),connectorAttribs:se(F),labelAttribs:G})},this)}getRangeRadius(x){const y=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,y.ranges[y.ranges.length-1].value,y.ranges[0].value,y.minSize,y.maxSize,x)}render(){const x=this.legendItem||{},y=this.chart.renderer,A=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),x.symbol=y.g("bubble-legend"),x.label=y.g("bubble-legend-item").css(this.legend.itemStyle||{}),x.symbol.translateX=0,x.symbol.translateY=0,x.symbol.add(x.label),x.label.add(x.group);for(const S of this.ranges)S.value>=A&&this.renderRange(S);this.hideOverlappingLabels()}renderRange(x){var y=this.options;const A=y.labels;var S=this.chart;const N=S.series[y.seriesIndex],F=S.renderer,G=this.symbols;S=G.labels;const b=x.center,w=Math.abs(x.radius);var E=y.connectorDistance||0;const O=A.align,R=y.connectorWidth,g=this.ranges[0].radius||0,h=b-w-y.borderWidth/2+R/2,p=F.styledMode;E=this.legend.options.rtl||"left"===O?-E:E,"center"===O&&(E=0,y.connectorDistance=0,x.labelAttribs.align="center"),G.bubbleItems.push(F.circle(g,b+((h%1?1:.5)-(R%2?0:.5)),w).attr(p?{}:x.bubbleAttribs).addClass((p?"highcharts-color-"+N.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(y.className||"")).add(this.legendItem.symbol)),G.connectors.push(F.path(F.crispLine([["M",g,h],["L",g+E,h]],y.connectorWidth)).attr(p?{}:x.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(y.connectorClassName||"")).add(this.legendItem.symbol)),x=F.text(this.formatLabel(x)).attr(p?{}:x.labelAttribs).css(p?{}:A.style).addClass("highcharts-bubble-legend-labels "+(y.labels.className||"")).add(this.legendItem.symbol),y={x:g+E+y.labels.x,y:h+y.labels.y+.4*x.getBBox().height},x.attr(y),S.push(x),x.placed=!0,x.alignAttr=y}getMaxLabelSize(){let x,y;return this.symbols.labels.forEach(function(A){y=A.getBBox(!0),x=x?y.width>x.width?y:x:y}),x||{}}formatLabel(x){var y=this.options;const A=y.labels.formatter;y=y.labels.format;const{numberFormatter:S}=this.chart;return y?le.format(y,x):A?A.call(x):S(x.value,1)}hideOverlappingLabels(){const y=this.symbols;!this.options.labels.allowOverlap&&y&&(this.chart.hideOverlappingLabels(y.labels),y.labels.forEach(function(A,S){A.newOpacity?A.newOpacity!==A.oldOpacity&&y.connectors[S].show():y.connectors[S].hide()}))}getRanges(){const x=this.legend.bubbleLegend,y=x.options.ranges;let A,S,N=Number.MAX_VALUE,F=-Number.MAX_VALUE;return x.chart.series.forEach(function(G){G.isBubble&&!G.ignoreSeries&&(S=G.zData.filter(ye),S.length&&(N=W(G.options.zMin,Math.min(N,Math.max(ce(S),!1===G.options.displayNegative?G.options.zThreshold:-Number.MAX_VALUE))),F=W(G.options.zMax,Math.max(F,Ae(S)))))}),A=N===F?[{value:F}]:[{value:N},{value:(N+F)/2},{value:F,autoRanges:!0}],y.length&&y[0].radius&&A.reverse(),A.forEach(function(G,b){y&&y[b]&&(A[b]=se(y[b],G))}),A}predictBubbleSizes(){var x=this.chart,y=x.legend.options,A=y.floating;const S=(y="horizontal"===y.layout)?x.legend.lastLineHeight:0,N=x.plotSizeX,F=x.plotSizeY;var G=x.series[this.options.seriesIndex],b=G.getPxExtremes();x=Math.ceil(b.minPxSize),b=Math.ceil(b.maxPxSize);const w=Math.min(F,N);return G=G.options.maxSize,A||!/%$/.test(G)?A=b:(A=(w+S)*(G=parseFloat(G))/100/(G/100+1),(y&&F-A>=N||!y&&N-A>=F)&&(A=b)),[x,Math.ceil(A)]}updateRanges(x,y){const A=this.legend.options.bubbleLegend;A.minSize=x,A.maxSize=y,A.ranges=this.getRanges()}correctSizes(){const x=this.legend,y=this.chart.series[this.options.seriesIndex].getPxExtremes();1{b=w.legendItem||{},b.group&&(b.group.translateY=null)})),N.render(),this.getMargins(),this.axes.forEach(function(w){w.visible&&w.render(),G.placed||(w.setScale(),w.updateNames(),Q(w.ticks,function(E){E.isNew=!0,E.isNewLabel=!0}))}),G.placed=!0,this.getMargins(),y.call(this,A,S),N.bubbleLegend.correctSizes(),se(N,Ae(N))):(y.call(this,A,S),N&&N.options.enabled&&N.bubbleLegend&&(N.render(),se(N,Ae(N))))}function fe(y){y=y.series;let A=0;for(;Ab.height&&(b.height=y[G].itemHeight);b.step=F}}return A}function ce(y){const A=this.bubbleLegend,S=this.options,N=S.bubbleLegend,F=fe(this.chart);A&&A.ranges&&A.ranges.length&&(N.ranges.length&&(N.autoRanges=!!N.ranges[0].autoRanges),this.destroyItem(A)),0<=F&&S.enabled&&N.enabled&&(N.seriesIndex=F,this.bubbleLegend=new le(N,this),this.bubbleLegend.addToLegend(y.allItems))}function ye(y){if(y.defaultPrevented)return!1;var A=this.chart;y=this.visible;const S=this.chart.legend;S&&S.bubbleLegend&&(this.visible=!y,this.ignoreSeries=y,A=0<=fe(A),S.bubbleLegend.visible!==A&&(S.update({bubbleLegend:{enabled:A}}),S.bubbleLegend.visible=A),this.visible=y)}function se(y,A){const S=y.options.rtl;let N,F,G,b,w=0;y.allItems.forEach((E,O)=>{b=E.legendItem||{},b.group&&(N=b.group.translateX||0,F=b.y||0,((G=E.movementX)||S&&E.ranges)&&(G=S?N-E.options.maxSize/2:N+G,b.group.attr({translateX:G})),O>A[w].step&&w++,b.group.attr({translateY:Math.round(F+A[w].height/2)}),b.y=F+A[w].height/2)})}const{setOptions:W}=ve,{addEvent:U,objectEach:Q,wrap:te}=xe,x=[];return{compose:function(y,A,S){xe.pushUnique(x,y)&&(W({legend:{bubbleLegend:oe}}),te(y.prototype,"drawChartBox",me)),xe.pushUnique(x,A)&&U(A,"afterGetAllItems",ce),xe.pushUnique(x,S)&&U(S,"legendItemClick",ye)}}}),be(Oe,"Series/Bubble/BubblePoint.js",[Oe["Core/Series/Point.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){({seriesTypes:{scatter:{prototype:{pointClass:le}}}}=le),({extend:ve}=ve);class xe extends le{constructor(){super(...arguments),this.series=this.options=void 0}haloPath(fe){return oe.prototype.haloPath.call(this,0===fe?0:(this.marker&&this.marker.radius||0)+fe)}}return ve(xe.prototype,{ttBelow:!1}),xe}),be(Oe,"Series/Bubble/BubbleSeries.js",[Oe["Series/Bubble/BubbleLegendComposition.js"],Oe["Series/Bubble/BubblePoint.js"],Oe["Core/Color/Color.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){function Ae(){const b=this.len,w=this.chart,E=this.isXAxis,O=E?"xData":"yData",R=this.min,g=this.max-R;let P,h=0,p=b,v=b/g;this.series.forEach(V=>{if(V.bubblePadding&&(V.visible||!w.options.chart.ignoreHiddenSeries)){P=this.allowZoomOutside=!0;const D=V[O];if(E&&((V.onPoint||V).getRadii(0,0,V),V.onPoint&&(V.radii=V.onPoint.radii)),0{void 0===N(this.options[V[0]],this[V[1]])&&(this[V[0]]+=V[2]/v)}))}const{parse:ce}=ve;({noop:ve}=xe);const{series:ye,seriesTypes:{column:{prototype:se},scatter:W}}=me,{addEvent:U,arrayMax:Q,arrayMin:te,clamp:x,extend:y,isNumber:A,merge:S,pick:N}=fe,F=[];class G extends W{constructor(){super(...arguments),this.zData=this.yData=this.radii=this.points=this.options=this.minPxSize=this.maxPxSize=this.data=void 0}static compose(w,E,O,R){oe.compose(E,O,R),fe.pushUnique(F,w)&&(w.prototype.beforePadding=Ae)}animate(w){!w&&this.points.length{de.bubblePadding&&(de.visible||!this.chart.options.chart.ignoreHiddenSeries)&&(de=(de.onPoint||de).getZExtremes())&&(V=Math.min(N(V,de.zMin),de.zMin),D=Math.max(N(D,de.zMax),de.zMax),Y=!0)}),Y?(p={zMin:V,zMax:D},this.chart.bubbleZExtremes=p):p={zMin:0,zMax:0}}for(g=0,R=w.length;g=R/2?(h.marker=y(h.marker,{radius:p,width:2*p,height:2*p}),h.dlBox={x:h.plotX-p,y:h.plotY-p,width:2*p,height:2*p}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}}getPxExtremes(){const w=Math.min(this.chart.plotWidth,this.chart.plotHeight);var E=R=>{let g;return"string"==typeof R&&(g=/%$/.test(R),R=parseInt(R,10)),g?w*R/100:R};const O=E(N(this.options.minSize,8));return{minPxSize:O,maxPxSize:E=Math.max(E(N(this.options.maxSize,"20%")),O)}}getZExtremes(){var w=this.options;const E=(this.zData||[]).filter(A);if(E.length){const O=N(w.zMin,x(te(E),!1===w.displayNegative?w.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(w=N(w.zMax,Q(E)),A(O)&&A(w))return{zMin:O,zMax:w}}}}return G.defaultOptions=S(W.defaultOptions,{dataLabels:{formatter:function(){const{numberFormatter:b}=this.series.chart,{z:w}=this.point;return A(w)?b(w,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),y(G.prototype,{alignDataLabel:se.alignDataLabel,applyZones:ve,bubblePadding:!0,buildKDTree:ve,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:le,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),U(G,"updatedData",b=>{delete b.target.chart.bubbleZExtremes}),U(G,"remove",b=>{delete b.target.chart.bubbleZExtremes}),me.registerSeriesType("bubble",G),G}),be(Oe,"Series/ColumnRange/ColumnRangePoint.js",[Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le){const{seriesTypes:{column:{prototype:{pointClass:{prototype:ve}}},arearange:{prototype:{pointClass:xe}}}}=oe,{extend:me,isNumber:fe}=le;class Ae extends xe{constructor(){super(...arguments),this.series=this.options=void 0}isValid(){return fe(this.low)}}return me(Ae.prototype,{setState:ve.setState}),Ae}),be(Oe,"Series/ColumnRange/ColumnRangeSeries.js",[Oe["Series/ColumnRange/ColumnRangePoint.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{seriesTypes:{arearange:me,column:fe,column:{prototype:Ae}}}=ve,{addEvent:ce,clamp:ye,extend:se,isNumber:W,merge:U,pick:Q}=xe;class te extends me{setOptions(){return U(!0,arguments[0],{stacking:void 0}),me.prototype.setOptions.apply(this,arguments)}translate(){return Ae.translate.apply(this)}pointAttribs(){return Ae.pointAttribs.apply(this,arguments)}translate3dPoints(){return Ae.translate3dPoints.apply(this,arguments)}translate3dShapes(){return Ae.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){const y=this.yAxis,A=this.xAxis,S=A.startAngleRad,N=this.chart,F=this.xAxis.isRadial,G=Math.max(N.chartWidth,N.chartHeight)+999;let b,w,E,O;this.points.forEach(R=>{const g=R.shapeArgs||{},h=this.options.minPointLength,p=R.plotY,v=y.translate(R.high,0,1,0,1);if(W(v)&&W(p))if(R.plotHigh=ye(v,-G,G),R.plotLow=ye(p,-G,G),O=R.plotHigh,b=Q(R.rectPlotY,R.plotY)-R.plotHigh,Math.abs(b)b&&(b*=-1,O-=b),F&&this.polar)E=R.barX+S,R.shapeType="arc",R.shapeArgs=this.polar.arc(O+b,O,E,E+R.pointWidth);else{g.height=b,g.y=O;const{x:P=0,width:V=0}=g;R.shapeArgs=U(R.shapeArgs,this.crispCol(P,O,V,b)),R.tooltipPos=N.inverted?[y.len+y.pos-N.plotLeft-O-b/2,A.len+A.pos-N.plotTop-P-V/2,b]:[A.left-N.plotLeft+P+V/2,y.pos-N.plotTop+O+b/2,b]}})}}return te.defaultOptions=U(fe.defaultOptions,me.defaultOptions,{borderRadius:{where:"all"},pointRange:null,marker:null,states:{hover:{halo:!1}}}),ce(te,"afterColumnTranslate",function(){te.prototype.afterColumnTranslate.apply(this)},{order:5}),se(te.prototype,{directTouch:!0,pointClass:oe,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:Ae.adjustForMissingColumns,animate:Ae.animate,crispCol:Ae.crispCol,drawGraph:le,drawPoints:Ae.drawPoints,getSymbol:le,drawTracker:Ae.drawTracker,getColumnMetrics:Ae.getColumnMetrics}),ve.registerSeriesType("columnrange",te),te}),be(Oe,"Series/ColumnPyramid/ColumnPyramidSeries.js",[Oe["Series/Column/ColumnSeries.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){const{prototype:xe}=oe,{clamp:me,merge:fe,pick:Ae}=ve;class ce extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}translate(){let se=this,W=se.chart,U=se.options;var Q=se.dense=2>se.closestPointRange*se.xAxis.transA;Q=se.borderWidth=Ae(U.borderWidth,Q?0:1);let te=se.yAxis,x=U.threshold,y=se.translatedThreshold=te.getThreshold(x),A=Ae(U.minPointLength,5),S=se.getColumnMetrics(),N=S.width,F=se.barW=Math.max(N,1+2*Q),G=se.pointXOffset=S.offset;W.inverted&&(y-=.5),U.pointPadding&&(F=Math.ceil(F)),xe.translate.apply(se),se.points.forEach(function(b){var w=Ae(b.yBottom,y),E=999+Math.abs(w),O=me(b.plotY,-E,te.len+E);E=b.plotX+G;let R=F/2,g=Math.min(O,w);var h;let p,v;w=Math.max(O,w)-g,b.barX=E,b.pointWidth=N,b.tooltipPos=W.inverted?[te.len+te.pos-W.plotLeft-O,se.xAxis.len-E-R,w]:[E+R,O+te.pos-W.plotTop,w],O=x+(b.total||b.y),"percent"===U.stacking&&(O=x+(0>b.y)?-100:100),O=te.toPixels(O,!0);var P=(h=W.plotHeight-O-(W.plotHeight-y))?R*(g-O)/h:0,V=h?R*(g+w-O)/h:0;h=E-P+R,P=E+P+R;var D=E+V+R;V=E-V+R,p=g-A,v=g+w,0>b.y&&(p=g,v=g+w+A),W.inverted&&(V=R*(O-((D=te.width-g)-w))/(h=O-(te.width-y)),P=(h=E+R+(P=R*(O-D)/h))-2*P,D=E-V+R,V=E+V+R,p=g,v=g+w-A,0>b.y&&(v=g+w+A)),b.shapeType="path",b.shapeArgs={x:h,y:p,width:P-h,height:w,d:[["M",h,p],["L",P,p],["L",D,v],["L",V,v],["Z"]]}})}}return ce.defaultOptions=fe(oe.defaultOptions,{}),le.registerSeriesType("columnpyramid",ce),ce}),be(Oe,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),be(Oe,"Series/ErrorBar/ErrorBarSeries.js",[Oe["Series/BoxPlot/BoxPlotSeries.js"],Oe["Series/Column/ColumnSeries.js"],Oe["Series/ErrorBar/ErrorBarSeriesDefaults.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me){const{arearange:fe}=xe.seriesTypes,{addEvent:Ae,merge:ce,extend:ye}=me;class se extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||le.prototype.getColumnMetrics.call(this)}drawDataLabels(){const U=this.pointValKey;fe&&(fe.prototype.drawDataLabels.call(this),this.data.forEach(function(Q){Q.y=Q[U]}))}toYData(U){return[U.low,U.high]}}return se.defaultOptions=ce(oe.defaultOptions,ve),Ae(se,"afterTranslate",function(){this.points.forEach(W=>{W.plotLow=W.plotY})},{order:0}),ye(se.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),xe.registerSeriesType("errorbar",se),se}),be(Oe,"Series/Gauge/GaugePoint.js",[Oe["Core/Series/SeriesRegistry.js"]],function(oe){return({series:{prototype:{pointClass:oe}}}=oe),class extends oe{constructor(){super(...arguments),this.shapeArgs=this.series=this.options=void 0}setState(xe){this.state=xe}}}),be(Oe,"Series/Gauge/GaugeSeries.js",[Oe["Series/Gauge/GaugePoint.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{series:me,seriesTypes:{column:fe}}=ve,{clamp:Ae,isNumber:ce,extend:ye,merge:se,pick:W,pInt:U,defined:Q}=xe;class te extends me{constructor(){super(...arguments),this.yAxis=this.options=this.points=this.data=void 0}translate(){const y=this.yAxis,A=this.options,S=y.center;this.generatePoints(),this.points.forEach(N=>{const F=se(A.dial,N.dial),G=U(F.radius)*S[2]/200,b=U(F.baseLength)*G/100,w=U(F.rearLength)*G/100,E=F.baseWidth,O=F.topWidth;let R=A.overshoot,g=y.startAngleRad+y.translate(N.y,void 0,void 0,void 0,!0);(ce(R)||!1===A.wrap)&&(R=ce(R)?R/180*Math.PI:0,g=Ae(g,y.startAngleRad-R,y.endAngleRad+R)),g=180*g/Math.PI,N.shapeType="path",N.shapeArgs={d:F.path||[["M",-w,-E/2],["L",b,-E/2],["L",G,-O/2],["L",G,O/2],["L",b,E/2],["L",-w,E/2],["Z"]],translateX:S[0],translateY:S[1],rotation:g},N.plotX=S[0],N.plotY=S[1],Q(N.y)&&y.max-y.min&&(N.percentage=(N.y-y.min)/(y.max-y.min)*100)})}drawPoints(){const y=this,A=y.chart,S=y.yAxis.center,N=y.pivot,F=y.options,G=F.pivot,b=A.renderer;y.points.forEach(w=>{const E=w.graphic,O=w.shapeArgs,R=O.d,g=se(F.dial,w.dial);E?(E.animate(O),O.d=R):w.graphic=b[w.shapeType](O).addClass("highcharts-dial").add(y.group),A.styledMode||w.graphic[E?"animate":"attr"]({stroke:g.borderColor,"stroke-width":g.borderWidth,fill:g.backgroundColor})}),N?N.animate({translateX:S[0],translateY:S[1]}):G&&(y.pivot=b.circle(0,0,G.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(S[0],S[1]).add(y.group),A.styledMode||y.pivot.attr({fill:G.backgroundColor,stroke:G.borderColor,"stroke-width":G.borderWidth}))}animate(y){const A=this;y||A.points.forEach(S=>{const N=S.graphic;N&&(N.attr({rotation:180*A.yAxis.startAngleRad/Math.PI}),N.animate({rotation:S.shapeArgs.rotation},A.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),me.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(y,A){me.prototype.setData.call(this,y,!1),this.processData(),this.generatePoints(),W(A,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return te.defaultOptions=se(me.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),ye(te.prototype,{angular:!0,directTouch:!0,drawGraph:le,drawTracker:fe.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:oe,trackerGroups:["group","dataLabelsGroup"]}),ve.registerSeriesType("gauge",te),te}),be(Oe,"Series/DragNodesComposition.js",[Oe["Core/Utilities.js"]],function(oe){function le(){const me=this;let fe,Ae,ce;me.container&&(fe=ve(me.container,"mousedown",ye=>{const se=me.hoverPoint;se&&se.series&&se.series.hasDraggableNodes&&se.series.options.draggable&&(se.series.onMouseDown(se,ye),Ae=ve(me.container,"mousemove",W=>se&&se.series&&se.series.onMouseMove(se,W)),ce=ve(me.container.ownerDocument,"mouseup",W=>(Ae(),ce(),se&&se.series&&se.series.onMouseUp(se,W))))})),ve(me,"destroy",function(){fe()})}const{addEvent:ve}=oe,xe=[];return{compose:function(me){oe.pushUnique(xe,me)&&ve(me,"load",le)},onMouseDown:function(me,fe){fe=this.chart.pointer.normalize(fe),me.fixedPosition={chartX:fe.chartX,chartY:fe.chartY,plotX:me.plotX,plotY:me.plotY},me.inDragMode=!0},onMouseMove:function(me,fe){if(me.fixedPosition&&me.inDragMode){const ye=this.chart;fe=ye.pointer.normalize(fe);var Ae=me.fixedPosition.chartX-fe.chartX,ce=me.fixedPosition.chartY-fe.chartY;fe=ye.graphLayoutsLookup,(5{se.restartSimulation()}))}},onMouseUp:function(me,fe){me.fixedPosition&&(me.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),me.inDragMode=me.hasDragged=!1,this.options.fixedDraggable||delete me.fixedPosition)},redrawHalo:function(me){me&&this.halo&&this.halo.attr({d:me.haloPath(this.options.states.hover.halo.size)})}}}),be(Oe,"Series/GraphLayoutComposition.js",[Oe["Core/Animation/AnimationUtilities.js"],Oe["Core/Utilities.js"]],function(oe,le){function ve(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(se=>{se.updateSimulation()}),this.redraw())}function xe(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(se=>{se.updateSimulation(!1)}),this.redraw())}function me(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(se=>{se.stop()})}function fe(){let se,W=!1;const U=Q=>{Q.maxIterations--&&isFinite(Q.temperature)&&!Q.isStable()&&!Q.enableSimulation&&(Q.beforeStep&&Q.beforeStep(),Q.step(),se=!1,W=!0)};if(this.graphLayoutsLookup){for(Ae(!1,this),this.graphLayoutsLookup.forEach(Q=>Q.start());!se;)se=!0,this.graphLayoutsLookup.forEach(U);W&&this.series.forEach(Q=>{Q&&Q.layout&&Q.render()})}}const{setAnimation:Ae}=oe,{addEvent:ce}=le,ye=[];return{compose:function(se){le.pushUnique(ye,se)&&(ce(se,"afterPrint",ve),ce(se,"beforePrint",xe),ce(se,"predraw",me),ce(se,"render",fe))},integrations:{},layouts:{}}}),be(Oe,"Series/PackedBubble/PackedBubblePoint.js",[Oe["Core/Chart/Chart.js"],Oe["Core/Series/Point.js"],Oe["Core/Series/SeriesRegistry.js"]],function(oe,le,ve){return({seriesTypes:{bubble:{prototype:{pointClass:ve}}}}=ve),class extends ve{constructor(){super(...arguments),this.radius=this.mass=this.degree=NaN,this.series=this.options=void 0,this.value=null}destroy(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),le.prototype.destroy.apply(this,arguments)}firePointEvent(){const fe=this.series.options;if(this.isParentNode&&fe.parentNode){const Ae=fe.allowPointSelect;fe.allowPointSelect=fe.parentNode.allowPointSelect,le.prototype.firePointEvent.apply(this,arguments),fe.allowPointSelect=Ae}else le.prototype.firePointEvent.apply(this,arguments)}select(){const fe=this.series.chart;this.isParentNode?(fe.getSelectedPoints=fe.getSelectedParentNodes,le.prototype.select.apply(this,arguments),fe.getSelectedPoints=oe.prototype.getSelectedPoints):le.prototype.select.apply(this,arguments)}}}),be(Oe,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[Oe["Core/Utilities.js"]],function(oe){const{isNumber:le}=oe;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){const{numberFormatter:ve}=this.series.chart,{value:xe}=this.point;return le(xe)?ve(xe,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),be(Oe,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(oe,le,ve){const xe=oe.getMass(),me=-ve.x*le*this.diffTemperature;le=-ve.y*le*this.diffTemperature,oe.fromNode.fixedPosition||(oe.fromNode.plotX-=me*xe.fromNode/oe.fromNode.degree,oe.fromNode.plotY-=le*xe.fromNode/oe.fromNode.degree),oe.toNode.fixedPosition||(oe.toNode.plotX+=me*xe.toNode/oe.toNode.degree,oe.toNode.plotY+=le*xe.toNode/oe.toNode.degree)},attractiveForceFunction:function(oe,le){return(le-oe)/oe},barycenter:function(){let oe=this.options.gravitationalConstant,le=this.barycenter.xFactor,ve=this.barycenter.yFactor;le=(le-(this.box.left+this.box.width)/2)*oe,ve=(ve-(this.box.top+this.box.height)/2)*oe,this.nodes.forEach(function(xe){xe.fixedPosition||(xe.plotX-=le/xe.mass/xe.degree,xe.plotY-=ve/xe.mass/xe.degree)})},getK:function(oe){return Math.pow(oe.box.width*oe.box.height/oe.nodes.length,.5)},integrate:function(oe,le){var ve=-oe.options.friction;let xe=oe.options.maxSpeed,me=(le.plotX+le.dispX-le.prevX)*ve;ve*=le.plotY+le.dispY-le.prevY;var fe=Math.abs;let Ae=fe(me)/(me||1);fe=fe(ve)/(ve||1),me=Ae*Math.min(xe,Math.abs(me)),ve=fe*Math.min(xe,Math.abs(ve)),le.prevX=le.plotX+le.dispX,le.prevY=le.plotY+le.dispY,le.plotX+=me,le.plotY+=ve,le.temperature=oe.vectorLength({x:me,y:ve})},repulsive:function(oe,le,ve){le=le*this.diffTemperature/oe.mass/oe.degree,oe.fixedPosition||(oe.plotX+=ve.x*le,oe.plotY+=ve.y*le)},repulsiveForceFunction:function(oe,le){return(le-oe)/oe*(le>oe?1:0)}}}),be(Oe,"Series/PackedBubble/PackedBubbleIntegration.js",[Oe["Core/Globals.js"],Oe["Series/Networkgraph/VerletIntegration.js"]],function(oe,le){return({noop:oe}=oe),{barycenter:function(){const ve=this.options.gravitationalConstant,xe=this.box,me=this.nodes;let fe,Ae;for(const ce of me)this.options.splitSeries&&!ce.isParentNode?(fe=ce.series.parentNode.plotX,Ae=ce.series.parentNode.plotY):(fe=xe.width/2,Ae=xe.height/2),ce.fixedPosition||(ce.plotX-=(ce.plotX-fe)*ve/(ce.mass*Math.sqrt(me.length)),ce.plotY-=(ce.plotY-Ae)*ve/(ce.mass*Math.sqrt(me.length)))},getK:oe,integrate:le.integrate,repulsive:function(ve,xe,me,fe){const Ae=xe*this.diffTemperature/ve.mass/ve.degree;xe=me.x*Ae,me=me.y*Ae,ve.fixedPosition||(ve.plotX+=xe,ve.plotY+=me),fe.fixedPosition||(fe.plotX-=xe,fe.plotY-=me)},repulsiveForceFunction:function(ve,xe,me,fe){return Math.min(ve,(me.marker.radius+fe.marker.radius)/2)}}}),be(Oe,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(oe,le,ve,xe){const me=oe.getMass(),fe=ve.x/xe*le;le*=ve.y/xe,oe.fromNode.fixedPosition||(oe.fromNode.dispX-=fe*me.fromNode/oe.fromNode.degree,oe.fromNode.dispY-=le*me.fromNode/oe.fromNode.degree),oe.toNode.fixedPosition||(oe.toNode.dispX+=fe*me.toNode/oe.toNode.degree,oe.toNode.dispY+=le*me.toNode/oe.toNode.degree)},attractiveForceFunction:function(oe,le){return oe*oe/le},barycenter:function(){const oe=this.options.gravitationalConstant,le=this.barycenter.xFactor,ve=this.barycenter.yFactor;this.nodes.forEach(function(xe){if(!xe.fixedPosition){var me=xe.getDegree();xe.dispX+=(le-xe.plotX)*oe*(me*=1+me/2)/xe.degree,xe.dispY+=(ve-xe.plotY)*oe*me/xe.degree}})},getK:function(oe){return Math.pow(oe.box.width*oe.box.height/oe.nodes.length,.3)},integrate:function(oe,le){let ve;le.dispX+=le.dispX*oe.options.friction,le.dispY+=le.dispY*oe.options.friction,ve=le.temperature=oe.vectorLength({x:le.dispX,y:le.dispY}),0!==ve&&(le.plotX+=le.dispX/ve*Math.min(Math.abs(le.dispX),oe.temperature),le.plotY+=le.dispY/ve*Math.min(Math.abs(le.dispY),oe.temperature))},repulsive:function(oe,le,ve,xe){oe.dispX+=ve.x/xe*le/oe.degree,oe.dispY+=ve.y/xe*le/oe.degree},repulsiveForceFunction:function(oe,le){return le*le/oe}}}),be(Oe,"Series/Networkgraph/QuadTreeNode.js",[],function(){class oe{constructor(ve){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=ve,this.boxSize=Math.min(ve.width,ve.height)}divideBox(){const ve=this.box.width/2,xe=this.box.height/2;this.nodes[0]=new oe({left:this.box.left,top:this.box.top,width:ve,height:xe}),this.nodes[1]=new oe({left:this.box.left+ve,top:this.box.top,width:ve,height:xe}),this.nodes[2]=new oe({left:this.box.left+ve,top:this.box.top+xe,width:ve,height:xe}),this.nodes[3]=new oe({left:this.box.left,top:this.box.top+xe,width:ve,height:xe})}getBoxPosition(ve){const xe=ve.plotYthis.step())):(this.simulation=!1,this.series.forEach(y=>{W(y,"afterSimulation")}))}}stop(){this.simulation&&Ae.cancelAnimationFrame(this.simulation)}setArea(x,y,A,S){this.box={left:x,top:y,width:A,height:S}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(x,y){for(const A of x)-1===y.indexOf(A)&&y.push(A)}removeElementFromCollection(x,y){-1!==(x=y.indexOf(x))&&y.splice(x,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(x){this.maxIterations=U(x,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(x){this.initialRendering=x}createQuadTree(){this.quadTree=new xe(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){const x=this.options.initialPositions;if(se(x)){x.call(this);for(const y of this.nodes)ye(y.prevX)||(y.prevX=y.plotX),ye(y.prevY)||(y.prevY=y.plotY),y.dispX=0,y.dispY=0}else"circle"===x?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){const x=this.box;var y=this.nodes;const A=2*Math.PI/(y.length+1),S=y.filter(function(w){return 0===w.linksTo.length}),N={},F=this.options.initialPositionRadius,G=w=>{for(const E of w.linksFrom||[])N[E.toNode.id]||(N[E.toNode.id]=!0,b.push(E.toNode),G(E.toNode))};let b=[];for(const w of S)b.push(w),G(w);if(b.length)for(const w of y)-1===b.indexOf(w)&&b.push(w);else b=y;for(let w=0,E=b.length;w(F=F*F/Math.PI)-Math.floor(F);let N;for(let F=0,G=y.length;Fthis.barnesHutApproximation(x,y));else{let x,y,A;for(const S of this.nodes)for(const N of this.nodes)S===N||S.fixedPosition||(A=this.getDistXY(S,N),y=this.vectorLength(A),0!==y&&(x=this.repulsiveForce(y,this.k),this.force("repulsive",S,x*N.mass,A,y)))}}attractiveForces(){let x,y,A;for(const S of this.links)S.fromNode&&S.toNode&&(x=this.getDistXY(S.fromNode,S.toNode),y=this.vectorLength(x),0!==y&&(A=this.attractiveForce(y,this.k),this.force("attractive",S,A,x,y)))}applyLimits(){const x=this.nodes;for(const y of x){if(y.fixedPosition)break;this.integration.integrate(this,y),this.applyLimitBox(y,this.box),y.dispX=0,y.dispY=0}}applyLimitBox(x,y){const A=x.radius;x.plotX=ce(x.plotX,y.left+A,y.width-A),x.plotY=ce(x.plotY,y.top+A,y.height-A)}coolDown(x,y,A){return x-y*A}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature}getSystemTemperature(){let x=0;for(const y of this.nodes)x+=y.temperature;return x}vectorLength(x){return Math.sqrt(x.x*x.x+x.y*x.y)}getDistR(x,y){return x=this.getDistXY(x,y),this.vectorLength(x)}getDistXY(x,y){const A=x.plotX-y.plotX;return{x:A,y:x=x.plotY-y.plotY,absX:Math.abs(A),absY:Math.abs(x)}}}return Q}),be(Oe,"Series/PackedBubble/PackedBubbleLayout.js",[Oe["Series/GraphLayoutComposition.js"],Oe["Series/PackedBubble/PackedBubbleIntegration.js"],Oe["Series/Networkgraph/ReingoldFruchtermanLayout.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){function me(){const W=[];return this.series.forEach(U=>{U.parentNode&&U.parentNode.selected&&W.push(U.parentNode)}),W}function fe(){this.allDataPoints&&delete this.allDataPoints}const{addEvent:Ae,pick:ce}=xe,ye=[];class se extends ve{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.options=void 0,this.series=[]}static compose(U){ve.compose(U),oe.integrations.packedbubble=le,oe.layouts.packedbubble=se,xe.pushUnique(ye,U)&&(Ae(U,"beforeRedraw",fe),U.prototype.getSelectedParentNodes=me)}beforeStep(){this.options.marker&&this.series.forEach(U=>{U&&U.calculateParentRadius()})}isStable(){const U=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>U||0>=this.temperature}setCircularPositions(){const U=this.box;var Q=this.nodes;const te=2*Math.PI/(Q.length+1),x=this.options.initialPositionRadius;let y,A=0;for(const S of Q)this.options.splitSeries&&!S.isParentNode?(Q=S.series.parentNode.plotX,y=S.series.parentNode.plotY):(Q=U.width/2,y=U.height/2),S.plotX=S.prevX=ce(S.plotX,Q+x*Math.cos(S.index||A*te)),S.plotY=S.prevY=ce(S.plotY,y+x*Math.sin(S.index||A*te)),S.dispX=0,S.dispY=0,A++}repulsiveForces(){const U=this,Q=U.options.bubblePadding;let te,x,y;U.nodes.forEach(A=>{A.degree=A.mass,A.neighbours=0,U.nodes.forEach(S=>{te=0,A===S||A.fixedPosition||!U.options.seriesInteraction&&A.series!==S.series||(y=U.getDistXY(A,S),x=U.vectorLength(y)-(A.marker.radius+S.marker.radius+Q),0>x&&(A.degree+=.01,A.neighbours++,te=U.repulsiveForce(-x/Math.sqrt(A.neighbours),U.k,A,S)),U.force("repulsive",A,te*S.mass,y,S,x))})})}applyLimitBox(U,Q){let te,x;this.options.splitSeries&&!U.isParentNode&&this.options.parentNodeLimit&&(te=this.getDistXY(U,U.series.parentNode),x=U.series.parentNodeRadius-U.marker.radius-this.vectorLength(te),0>x&&x>-2*U.marker.radius&&(U.plotX-=.01*te.x,U.plotY-=.01*te.y)),super.applyLimitBox(U,Q)}}return oe.layouts.packedbubble=se}),be(Oe,"Series/SimulationSeriesUtilities.js",[Oe["Core/Utilities.js"],Oe["Core/Animation/AnimationUtilities.js"]],function(oe,le){const{syncTimeout:ve}=oe,{animObject:xe}=le;return{initDataLabels:function(){const me=this.options.dataLabels;if(!this.dataLabelsGroup){const fe=this.initDataLabelsGroup();return!this.chart.styledMode&&(null==me?0:me.style)&&fe.css(me.style),fe.attr({opacity:0}),this.visible&&fe.show(),fe}return this.dataLabelsGroup.attr({opacity:1}),this.dataLabelsGroup},initDataLabelsDefer:function(){var me;const fe=this.options.dataLabels;null!=fe&&fe.defer&&null!==(me=this.options.layoutAlgorithm)&&void 0!==me&&me.enableSimulation?ve(()=>{this.deferDataLabels=!1},fe?xe(fe.animation).defer:0):this.deferDataLabels=!1}}}),be(Oe,"Series/PackedBubble/PackedBubbleSeries.js",[Oe["Core/Color/Color.js"],Oe["Series/DragNodesComposition.js"],Oe["Series/GraphLayoutComposition.js"],Oe["Core/Globals.js"],Oe["Series/PackedBubble/PackedBubblePoint.js"],Oe["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],Oe["Series/PackedBubble/PackedBubbleLayout.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Series/SimulationSeriesUtilities.js"],Oe["Core/Utilities.js"],Oe["Core/Animation/AnimationUtilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W){const{parse:U}=oe;({noop:oe}=xe);const{series:{prototype:Q},seriesTypes:{bubble:te}}=ce,{initDataLabels:x,initDataLabelsDefer:y}=ye,{addEvent:A,clamp:S,defined:N,extend:F,fireEvent:G,isArray:b,isNumber:w,merge:E,pick:O}=se;class R extends te{constructor(){super(...arguments),this.options=this.layout=this.data=this.chart=void 0,this.parentNodeMass=0,this.xData=this.points=void 0,this.deferDataLabels=!0}static compose(h,p,v,P){te.compose(h,p,v,P),le.compose(p),Ae.compose(p)}accumulateAllPoints(){const h=this.chart,p=[];let v;for(const P of h.series)if(P.is("packedbubble")&&P.visible||!h.options.chart.ignoreHiddenSeries){v=P.yData||[];for(let V=0;V{Y.mass=2,Y.degree=1,Y.collisionNmb=1}),D.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),D.addElementsToCollection([this],D.series),D.addElementsToCollection(this.points,D.nodes)}addSeriesLayout(){var h=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{};const p=h.type||"packedbubble",v=this.chart.graphLayoutsStorage,P=this.chart.graphLayoutsLookup;h=E(h,h.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});let V=v[p+"-series"];V||(v[p+"-series"]=V=new ve.layouts[p],V.init(h),P.splice(V.index,0,V)),this.parentNodeLayout=V,this.createParentNodes()}calculateParentRadius(){const h=this.seriesBox();this.parentNodeRadius=S(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,h?Math.max(Math.sqrt(Math.pow(h.width,2)+Math.pow(h.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let h=this.options.zMin,p=this.options.zMax,v=1/0,P=-1/0;return h&&p||(this.chart.series.forEach(V=>{V.yData.forEach(D=>{N(D)&&(D>P&&(P=D),DMath.sqrt(v*v+P*P)-Math.abs(h[2]+p[2])}createParentNodes(){const h=this.pointClass,p=this.chart,v=this.parentNodeLayout,P=this.layout.options;let V,D=this.parentNode,Y={radius:this.parentNodeRadius,lineColor:this.color,fillColor:U(this.color).brighten(.4).get()};P.parentNodeOptions&&(Y=E(P.parentNodeOptions.marker||{},Y)),this.parentNodeMass=0,this.points.forEach(de=>{this.parentNodeMass+=Math.PI*Math.pow(de.marker.radius,2)}),this.calculateParentRadius(),v.nodes.forEach(de=>{de.seriesIndex===this.index&&(V=!0)}),v.setArea(0,0,p.plotWidth,p.plotHeight),V||(D||(D=(new h).init(this,{mass:this.parentNodeRadius/2,marker:Y,dataLabels:{inside:!1},states:{normal:{marker:Y},hover:{marker:Y}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(D.plotX=this.parentNode.plotX,D.plotY=this.parentNode.plotY),this.parentNode=D,v.addElementsToCollection([this],v.series),v.addElementsToCollection([D],v.nodes))}deferLayout(){const h=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),h.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(h=>{h.removeElementFromCollection(this,h.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),Q.destroy.apply(this,arguments)}drawDataLabels(){this.deferDataLabels||(Q.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",Q.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){var h;if(this.layout&&this.layout.options.splitSeries){var p=this.chart,v=this.layout.options.parentNodeOptions.marker;v={fill:v.fillColor||U(this.color).brighten(.4).get(),opacity:v.fillOpacity,stroke:v.lineColor||this.color,"stroke-width":O(v.lineWidth,this.options.lineWidth)},this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,p.seriesGroup),null===(h=this.group)||void 0===h||h.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&N(this.parentNode.plotX)&&N(this.parentNode.plotY)&&N(this.parentNodeRadius)&&(h=E({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},v),this.parentNode.graphic||(this.graph=this.parentNode.graphic=p.renderer.symbol(v.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(h))}}drawTracker(){const h=this.parentNode;let p;super.drawTracker(),h&&(p=b(h.dataLabels)?h.dataLabels:h.dataLabel?[h.dataLabel]:[],h.graphic&&(h.graphic.element.point=h),p.forEach(v=>{v.div?v.div.point=h:v.element.point=h}))}getPointRadius(){const h=this.chart,p=this.options,v=p.useSimulation,P=Math.min(h.plotWidth,h.plotHeight),V={},D=[],Y=h.allDataPoints||[],de=Y.length;let Ce,Ne,X,m;["minSize","maxSize"].forEach(Z=>{const q=parseInt(p[Z],10),he=/%$/.test(p[Z]);V[Z]=he?P*q/100:q*Math.sqrt(de)}),h.minRadius=Ce=V.minSize/Math.sqrt(de),h.maxRadius=Ne=V.maxSize/Math.sqrt(de);const H=v?this.calculateZExtremes():[Ce,Ne];Y.forEach((Z,q)=>{X=v?S(Z[2],H[0],H[1]):Z[2],m=this.getRadius(H[0],H[1],Ce,Ne,X),0===m&&(m=null),Y[q][2]=m,D.push(m)}),this.radii=D}init(){return Q.init.apply(this,arguments),y.call(this),this.eventsToUnbind.push(A(this,"updatedData",function(){this.chart.series.forEach(h=>{h.type===this.type&&(h.isDirty=!0)},this)})),this}onMouseUp(h){const p=h;if(p.fixedPosition&&!p.removed){const v=this.layout,P=this.parentNodeLayout;let V,D;P&&v.options.dragBetweenSeries&&P.nodes.forEach(Y=>{p&&p.marker&&Y!==p.series.parentNode&&(V=v.getDistXY(p,Y),D=v.vectorLength(V)-Y.marker.radius-p.marker.radius,0>D&&(Y.series.addPoint(E(p.options,{plotX:p.plotX,plotY:p.plotY}),!1),v.removeElementFromCollection(p,v.nodes),p.remove()))}),le.onMouseUp.apply(this,arguments)}}placeBubbles(h){const p=this.checkOverlap,v=this.positionBubble,P=[];let V=1,D=0,Y=0;var de=[];let Ce;if((h=h.sort((Ne,X)=>X[2]-Ne[2])).length){if(P.push([[0,0,h[0][2],h[0][3],h[0][4]]]),1h[1]-p[1]?0:Math.PI)+D+V*(0>(h[0]-p[0])*(h[1]-p[1])?1:-1),[p[0]+(p[2]+v[2])*Math.sin(h),p[1]-(p[2]+v[2])*Math.cos(h),v[2],v[3],v[4]]}render(){const h=[];Q.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(p=>{b(p.dataLabels)&&p.dataLabels.forEach(v=>{h.push(v)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(h))}resizeRadius(){const h=this.chart,p=h.rawPositions;var v=Math.min,P=Math.max;const V=h.plotLeft,D=h.plotTop,Y=h.plotHeight,de=h.plotWidth;let Ce,Ne,X,m,H;Ce=X=Number.POSITIVE_INFINITY,Ne=m=Number.NEGATIVE_INFINITY;for(const Z of p)H=Z[2],Ce=v(Ce,Z[0]-H),Ne=P(Ne,Z[0]+H),X=v(X,Z[1]-H),m=P(m,Z[1]+H);if(v=v.apply([],[(de-V)/(P=[Ne-Ce,m-X])[0],(Y-D)/P[1]]),1e-10{N(D.plotX)&&N(D.plotY)&&D.marker.radius&&(V=D.marker.radius,P[0]=v(P[0],D.plotX-V),P[1]=p(P[1],D.plotX+V),P[2]=v(P[2],D.plotY-V),P[3]=p(P[3],D.plotY+V))}),w(P.width/P.height)?P:null}setVisible(){const h=this;Q.setVisible.apply(h,arguments),h.parentNodeLayout&&h.graph?h.visible?(h.graph.show(),h.parentNode.dataLabel&&h.parentNode.dataLabel.show()):(h.graph.hide(),h.parentNodeLayout.removeElementFromCollection(h.parentNode,h.parentNodeLayout.nodes),h.parentNode.dataLabel&&h.parentNode.dataLabel.hide()):h.layout&&(h.visible?h.layout.addElementsToCollection(h.points,h.layout.nodes):h.points.forEach(p=>{h.layout.removeElementFromCollection(p,h.layout.nodes)}))}translate(){const h=this.chart,p=this.data,v=this.index,P=this.options.useSimulation;let V;if(this.processedXData=this.xData,this.generatePoints(),N(h.allDataPoints)||(h.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),P)var D=h.allDataPoints;else D=this.placeBubbles(h.allDataPoints),this.options.draggable=!1;for(const Y of D)Y[3]===v&&(D=p[Y[4]],V=O(Y[2],void 0),P||(D.plotX=Y[0]-h.plotLeft+h.diffX,D.plotY=Y[1]-h.plotTop+h.diffY),w(V)&&(D.marker=F(D.marker,{radius:V,width:2*V,height:2*V}),D.radius=V));P&&this.deferLayout(),G(this,"afterTranslate")}}return R.defaultOptions=E(te.defaultOptions,fe),F(R.prototype,{pointClass:me,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:x,alignDataLabel:Q.alignDataLabel,indexateNodes:oe,onMouseDown:le.onMouseDown,onMouseMove:le.onMouseMove,redrawHalo:le.redrawHalo,searchPoint:oe}),ce.registerSeriesType("packedbubble",R),R}),be(Oe,"Series/Polygon/PolygonSeries.js",[Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){({noop:oe}=oe);const{series:xe,seriesTypes:{area:me,line:fe,scatter:Ae}}=le,{extend:ce,merge:ye}=ve;class se extends Ae{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getGraphPath(){let U=fe.prototype.getGraphPath.call(this),Q=U.length+1;for(;Q--;)(Q===U.length||"M"===U[Q][0])&&0te(V.y)),G=this.yAxis,b=F.length,w=Math.round(this.graph.strokeWidth())%2/2,E=Math.round(this.borderWidth)%2/2,O=this.xAxis.reversed,R=this.yAxis.reversed,g=this.options.stacking,h=[];for(let V=1;VD&&!R||0Ne.indexOf(R)&&(X=!0),b[R]||(b[R]={}),Ne=b[R])for(let H=0;Hde.height&&(de.y+=de.height,de.height*=-1);Y.plotY=de.y=Math.round(de.y||0)-this.borderWidth%2/2,de.height=Math.max(Math.round(de.height||0),.001),Y.yBottom=de.y+de.height,de.height<=b&&!Y.isNull?(de.height=b,de.y-=w,Y.plotY=de.y,Y.minPointLengthOffset=0>P?-w:w):(Y.isNull&&(de.width=0),Y.minPointLengthOffset=0),P=Y.plotY+(Y.negative?de.height:0),Y.below&&(Y.plotY+=de.height),Y.tooltipPos&&(this.chart.inverted?Y.tooltipPos[0]=G.len-P:Y.tooltipPos[1]=P),Y.isInside=this.isPointInside(Y),x(!0,Y.shapeArgs,de)}},{order:2}),Q(S.prototype,{getZonesGraphs:ce.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:fe}),ve.registerSeriesType("waterfall",S),me.compose(oe,le),S}),be(Oe,"Core/Axis/RadialAxis.js",[Oe["Core/Axis/AxisDefaults.js"],Oe["Core/Defaults.js"],Oe["Core/Globals.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){const{defaultOptions:me}=le,{noop:fe}=ve,{addEvent:Ae,correctFloat:ce,defined:ye,extend:se,fireEvent:W,merge:U,pick:Q,relativeLength:te,wrap:x}=xe;var y;return function(A){function S(){this.autoConnect=this.isCircular&&void 0===Q(this.userMax,this.options.max)&&ce(this.endAngleRad-this.startAngleRad)===ce(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function N(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&!0!==this.options.labels.allowOverlap)return this.tickPositions.map(I=>this.ticks[I]&&this.ticks[I].label).filter(I=>!!I)}}function F(){return fe}function G(I,K,ne){const re=this.pane.center;let we,_e=I.value;if(this.isCircular){if(ye(_e))I.point&&(Se=I.point.shapeArgs||{}).start&&(_e=this.chart.inverted?this.translate(I.point.rectPlotY,!0):I.point.x);else{var Se=I.chartX||0;we=I.chartY||0,_e=this.translate(Math.atan2(we-ne,Se-K)-this.startAngleRad,!0)}Se=(I=this.getPosition(_e)).x,we=I.y}else ye(_e)||(Se=I.chartX,we=I.chartY),ye(Se)&&ye(we)&&(ne=re[1]+this.chart.plotTop,_e=this.translate(Math.min(Math.sqrt(Math.pow(Se-K,2)+Math.pow(we-ne,2)),re[2]/2)-re[3]/2,!0));return[_e,Se||0,we||0]}function b(I,K,ne){const re=this.chart,_e=this.left||0,we=this.top||0;let Se=Q(K,(I=this.pane.center)[2]/2-this.offset);return void 0===ne&&(ne=this.horiz?0:this.center&&-this.center[3]/2),ne&&(Se+=ne),this.isCircular||void 0!==K?((K=this.chart.renderer.symbols.arc(_e+I[0],we+I[1],Se,Se,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[_e+I[0]],K.yBounds=[we+I[1]-Se]):(K=this.postTranslate(this.angleRad,Se),K=[["M",this.center[0]+re.plotLeft,this.center[1]+re.plotTop],["L",K.x,K.y]]),K}function w(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function E(I,K,ne){const re=this.chart;var _e=ut=>{if("string"==typeof ut){let yt=parseInt(ut,10);return Ee.test(ut)&&(yt=yt*Re/100),yt}return ut};const we=this.center;var Se=this.startAngleRad;const Re=we[2]/2;var ze=Math.min(this.offset,0),ie=this.left||0;const ee=this.top||0,Ee=/%$/;var pe=this.isCircular;let De,Ge=Q(_e(ne.outerRadius),Re),We=_e(ne.innerRadius);return _e=Q(_e(ne.thickness),10),"polygon"===this.options.gridLineInterpolation?ze=this.getPlotLinePath({value:I}).concat(this.getPlotLinePath({value:K,reverse:!0})):(I=Math.max(I,this.min),K=Math.min(K,this.max),I=this.translate(I),K=this.translate(K),pe||(Ge=I||0,We=K||0),"circle"!==ne.shape&&pe?(ne=Se+(I||0),Se+=K||0):(ne=-Math.PI/2,Se=1.5*Math.PI,De=!0),Ge-=ze,ze=re.renderer.symbols.arc(ie+we[0],ee+we[1],Ge,Ge,{start:Math.min(ne,Se),end:Math.max(ne,Se),innerR:Q(We,Ge-(_e-ze)),open:De}),pe&&(pe=(Se+ne)/2,ie=ie+we[0]+we[2]/2*Math.cos(pe),ze.xBounds=pe>-Math.PI/2&&pe-Math.PI&&0>pe||pe>Math.PI?-10:10)),ze}function O(I){var K=this.pane.center,ne=this.chart;const re=ne.inverted;var _e=I.reverse,we=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{};const Se=we.innerRadius||"0%",Re=we.outerRadius||"100%";var ze=K[0]+ne.plotLeft,ie=K[1]+ne.plotTop;const ee=this.height,Ee=I.isCrosshair;we=K[3]/2;var pe=I.value;let De;var Ge=this.getPosition(pe);let We=Ge.x;if(Ge=Ge.y,Ee&&(pe=(Ge=this.getCrosshairPosition(I,ze,ie))[0],We=Ge[1],Ge=Ge[2]),this.isCircular)pe=Math.sqrt(Math.pow(We-ze,2)+Math.pow(Ge-ie,2)),_e="string"==typeof Se?te(Se,1):Se/pe,ne="string"==typeof Re?te(Re,1):Re/pe,K&&we&&(_e<(we/=pe)&&(_e=we),nepe||pe>ee)&&(pe=0),"circle"===this.options.gridLineInterpolation)K=this.getLinePath(0,pe,we);else if(K=[],ne[re?"yAxis":"xAxis"].forEach(ut=>{ut.pane===this.pane&&(De=ut)}),De)for(ze=De.tickPositions,De.autoConnect&&(ze=ze.concat([ze[0]])),_e&&(ze=ze.slice().reverse()),pe&&(pe+=we),ie=0;ieI?0:I,this.center[2]/2)-this.offset)}function g(){const I=this.center,K=this.chart,ne=this.options.title;return{x:K.plotLeft+I[0]+(ne.x||0),y:K.plotTop+I[1]-{high:.5,middle:.25,low:0}[ne.align]*I[2]+(ne.y||0)}}function h(I){I.beforeSetTickPositions=S,I.createLabelCollector=N,I.getCrosshairPosition=G,I.getLinePath=b,I.getOffset=w,I.getPlotBandPath=E,I.getPlotLinePath=O,I.getPosition=R,I.getTitlePosition=g,I.postTranslate=Ce,I.setAxisSize=X,I.setAxisTranslation=m,I.setOptions=H}function p(){var I=this.chart,K=this.options,ne=this.pane,re=ne&&ne.options;I.angular&&this.isXAxis||!ne||!I.angular&&!I.polar||(I=2*Math.PI,ne=(Q(re.startAngle,0)-90)*Math.PI/180,re=(Q(re.endAngle,Q(re.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(K.angle||0)*Math.PI/180,this.startAngleRad=ne,this.endAngleRad=re,this.offset=K.offset||0,re=(re%I+I)%I,(K=(ne%I+I)%I)>Math.PI&&(K-=I),re>Math.PI&&(re-=I),this.normalizedStartAngleRad=K,this.normalizedEndAngleRad=re)}function v(I){this.isRadial&&(I.align=void 0,I.preventDefault())}function P(){if(this.chart&&this.chart.labelCollectors){const I=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=I&&this.chart.labelCollectors.splice(I,1)}}function V(I){const K=this.chart,ne=K.inverted,re=K.angular,_e=K.polar,we=this.isXAxis,Se=this.coll,Re=re&&we;let ze;I=I.userOptions.pane||0,I=this.pane=K.pane&&K.pane[I],"colorAxis"===Se?this.isRadial=!1:(re?(Re?(this.isHidden=!0,this.createLabelCollector=F,this.getOffset=fe,this.render=this.redraw=Ne,this.setTitle=this.setCategories=this.setScale=fe):h(this),(ze=!we)&&(this.defaultPolarOptions=M)):_e&&(h(this),this.defaultPolarOptions=(ze=this.horiz)?he:U("xAxis"===Se?oe.defaultXAxisOptions:oe.defaultYAxisOptions,B),ne&&"yAxis"===Se&&(this.defaultPolarOptions.stackLabels=oe.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),re||_e?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&K.labelCollectors.push(this.labelCollector)):this.isRadial=!1,I&&ze&&(I.axis=this),this.isCircular=ze)}function D(){this.isRadial&&this.beforeSetTickPositions()}function Y(I){const K=this.label;if(K){var ne=this.axis,re=K.getBBox(),_e=ne.options.labels,we=(ne.translate(this.pos)+ne.startAngleRad+Math.PI/2)/Math.PI*180%360,Se=Math.round(we),Re=ye(_e.y)?0:.3*-re.height,ze=_e.y,ie=20,ee=_e.align,Ee="end",pe=0>Se?Se+360:Se,De=pe,Ge=0,We=0;if(ne.isRadial){var ut=ne.getPosition(this.pos,ne.center[2]/2+te(Q(_e.distance,-25),ne.center[2]/2,-ne.center[2]/2));"auto"===_e.rotation?K.attr({rotation:we}):ye(ze)||(ze=ne.chart.renderer.fontMetrics(K).b-re.height/2),ye(ee)||(ne.isCircular?(re.width>ne.len*ne.tickInterval/(ne.max-ne.min)&&(ie=0),ee=we>ie&&we<180-ie?"left":we>180+ie&&we<360-ie?"right":"center"):ee="center",K.attr({align:ee})),"auto"===ee&&2===ne.tickPositions.length&&ne.isCircular&&(90pe?pe=180-pe:270=pe&&(pe=540-pe),180=De&&(De=360-De),(ne.pane.options.startAngle===Se||ne.pane.options.startAngle===Se+360||ne.pane.options.startAngle===Se-360)&&(Ee="start"),ee=-90<=Se&&90>=Se||-360<=Se&&-270>=Se||270<=Se&&360>=Se?"start"===Ee?"right":"left":"start"===Ee?"left":"right",70De&&(ee="center"),15>pe||180<=pe&&195>pe?Ge=.3*re.height:15<=pe&&35>=pe?Ge="start"===Ee?0:.75*re.height:195<=pe&&215>=pe?Ge="start"===Ee?.75*re.height:0:35=pe?Ge="start"===Ee?.25*-re.height:re.height:215=pe&&(Ge="start"===Ee?re.height:.25*-re.height),15>De?We="start"===Ee?.15*-re.height:.15*re.height:165=De&&(We="start"===Ee?.15*re.height:.15*-re.height),K.attr({align:ee}),K.translate(We,Ge+Re)),I.pos.x=ut.x+(_e.x||0),I.pos.y=ut.y+(ze||0)}}}function de(I){this.axis.getPosition&&se(I.pos,this.axis.getPosition(this.pos))}function Ce(I,K){const ne=this.chart,re=this.center;return I=this.startAngleRad+I,{x:ne.plotLeft+re[0]+Math.cos(I)*K,y:ne.plotTop+re[1]+Math.sin(I)*K}}function Ne(){this.isDirty=!1}function X(){let I,K;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),I=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(K=this.postTranslate(this.angleRad,I[3]/2),I[0]=K.x-this.chart.plotLeft,I[1]=K.y-this.chart.plotTop),this.len=this.width=this.height=(I[2]-I[3])*Q(this.sector,1)/2)}function m(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function H(I){(I=this.options=U(this.constructor.defaultOptions,this.defaultPolarOptions,me[this.coll],I)).plotBands||(I.plotBands=[]),W(this,"afterSetOptions")}function Z(I,K,ne,re,_e,we,Se){const Re=this.axis;return Re.isRadial?["M",K,ne,"L",(I=Re.getPosition(this.pos,Re.center[2]/2+re)).x,I.y]:I.call(this,K,ne,re,_e,we,Se)}const q=[],he={gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},M={labels:{align:"center",distance:-25,x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},B={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};A.compose=function(I,K){return xe.pushUnique(q,I)&&(Ae(I,"afterInit",p),Ae(I,"autoLabelAlign",v),Ae(I,"destroy",P),Ae(I,"init",V),Ae(I,"initialAxisTranslation",D)),xe.pushUnique(q,K)&&(Ae(K,"afterGetLabelPosition",Y),Ae(K,"afterGetPosition",de),x(K.prototype,"getMarkPath",Z)),I}}(y||(y={})),y}),be(Oe,"Series/PolarComposition.js",[Oe["Core/Animation/AnimationUtilities.js"],Oe["Core/Globals.js"],Oe["Core/Series/Series.js"],Oe["Extensions/Pane.js"],Oe["Core/Axis/RadialAxis.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){function Ae(X,m,H,Z){var q=Z?1:0,he=0<=m&&m<=X.length-1?m:0>m?X.length-1+m:0,M=X[m=0>he-1?X.length-(1+q):he-1],B=M.plotY,I=(q=X[he+1>X.length-1?q:he+1]).plotX,K=q.plotY;M=(1.5*(q=X[he].plotX)+M.plotX)/2.5,B=(1.5*(he=X[he].plotY)+B)/2.5,I=(1.5*q+I)/2.5;var ne=(1.5*he+K)/2.5;K=Math.sqrt(Math.pow(M-q,2)+Math.pow(B-he,2));const re=Math.sqrt(Math.pow(I-q,2)+Math.pow(ne-he,2));return M=Math.atan2(B-he,M-q),ne=Math.PI/2+(M+Math.atan2(ne-he,I-q))/2,Math.abs(M-ne)>Math.PI/2&&(ne-=Math.PI),M=q+Math.cos(ne)*K,B=he+Math.sin(ne)*K,q={rightContX:I=q+Math.cos(Math.PI+ne)*re,rightContY:ne=he+Math.sin(Math.PI+ne)*re,leftContX:M,leftContY:B,plotX:q,plotY:he},H&&(q.prevPointCont=Ae(X,m,!1,Z)),q}function ce(){(this.pane||[]).forEach(X=>{X.render()})}function ye(X){const m=X.args[0].xAxis,H=X.args[0].yAxis;X=X.args[0].chart,m&&H&&("polygon"===H.gridLineInterpolation?(m.startOnTick=!0,m.endOnTick=!0):"polygon"===m.gridLineInterpolation&&X.inverted&&(H.startOnTick=!0,H.endOnTick=!0))}function se(){this.pane||(this.pane=[]),this.options.pane=D(this.options.pane),this.options.pane.forEach(X=>{new xe(X,this)},this)}function W(X){var m=X.args.marker,H=this.chart.xAxis[0],Z=this.chart.yAxis[0],q=this.chart.inverted;const he=q?Z:H;if(H=q?H:Z,this.chart.polar){X.preventDefault(),Z=(m.attr?m.attr("start"):m.start)-he.startAngleRad,q=m.attr?m.attr("r"):m.r;let M=(m.attr?m.attr("end"):m.end)-he.startAngleRad;m=m.attr?m.attr("innerR"):m.innerR,X.result.x=Z+he.pos,X.result.width=M-Z,X.result.y=H.len+H.pos-m,X.result.height=m-q}}function U(X){var m=this.chart;if(m.polar&&m.hoverPane&&m.hoverPane.axis){X.preventDefault();var H=m.hoverPane.center,Z=this.mouseDownX||0;const we=this.mouseDownY||0;var q=X.args.chartY;const Se=X.args.chartX;var he=2*Math.PI,M=m.hoverPane.axis.startAngleRad,B=m.hoverPane.axis.endAngleRad,I=m.inverted?m.xAxis[0]:m.yAxis[0];const Re={};var K="arc";if(Re.x=H[0]+m.plotLeft,Re.y=H[1]+m.plotTop,this.zoomHor){var ne=0=re&&(re+=he),0>=_e&&(_e+=he),_eB+(he-ne)/2&&(_e=re,re=0>=M?M:0),he=Re.start=Math.max(re+M,M),ne=Re.end=Math.min(_e+M,B),"polygon"===I.options.gridLineInterpolation){if(_e=he-(K=m.hoverPane.axis).startAngleRad+K.pos,re=ne-he,he=I.getPlotLinePath({value:I.max}),ne=K.toValue(_e),_e=K.toValue(_e+re),neH[2]/2&&(q=H[2]/2),ZX.max?(Z[q].isNull=!0,Z[q].plotY=NaN):Z[q].isNull=Z[q].isValid&&!Z[q].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(R(this,"afterRender",function(){if(H.polar){var he=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:he[0],y:he[1],r:he[2]/2,innerR:he[3]/2});else{{var M=H.renderer,B=he[0],I=he[1],K=he[2]/2,ne=he[3]/2;he=Y();const re=M.createElement("clipPath").attr({id:he}).add(M.defs);(M=ne?M.arc(B,I,K,ne,0,2*Math.PI).add(re):M.circle(B,I,K).add(re)).id=he,M.clipPath=re}this.clipCircle=M}this.group.clip(this.clipCircle),this.setClip=le.noop}})))}}function x(X){const m=this.chart;var H=this.xAxis;return H=H.pane&&H.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(X.chartX-(H&&H[0]||0)-m.plotLeft,X.chartY-(H&&H[1]||0)-m.plotTop)})}function y(X,m,H,Z){const q=Z.tickInterval;let he=h(Z=Z.tickPositions,B=>B>=H),M=h([...Z].reverse(),B=>B<=m);return g(he)||(he=Z[Z.length-1]),g(M)||(M=Z[0],he+=q,X[0][0]="L",X.unshift(X[X.length-3])),(X=X.slice(Z.indexOf(M),Z.indexOf(he)+1))[0][0]="M",X}function A(X,m){return h(this.pane||[],function(H){return H.options.id===m})||X.call(this,m)}function S(X,m,H,Z,q,he){const M=this.chart;var B=P(Z.inside,!!this.options.stacking);M.polar?(X=m.rectPlotX/Math.PI*180,M.inverted?(this.forceDL=M.isInsidePlot(m.plotX,m.plotY),B&&m.shapeArgs?(B=this.yAxis.postTranslate((((B=m.shapeArgs).start||0)+(B.end||0))/2-this.xAxis.startAngleRad,m.barX+m.pointWidth/2),q=v(q,{x:B.x-M.plotLeft,y:B.y-M.plotTop})):m.tooltipPos&&(q=v(q,{x:m.tooltipPos[0],y:m.tooltipPos[1]})),Z.align=P(Z.align,"center"),Z.verticalAlign=P(Z.verticalAlign,"middle")):(null===Z.align&&(Z.align=20X?"left":200X?"right":"center"),null===Z.verticalAlign&&(Z.verticalAlign=45>X||315X?"top":"middle")),ve.prototype.alignDataLabel.call(this,m,H,Z,q,he),this.isRadialBar&&m.shapeArgs&&m.shapeArgs.start===m.shapeArgs.end?H.hide():H.show()):X.call(this,m,H,Z,q,he)}function N(){const X=this.options,m=X.stacking,H=this.chart;var Z=this.xAxis;const q=this.yAxis,he=q.reversed,M=q.center,B=Z.startAngleRad,I=Z.endAngleRad-B;let ne,re,_e,K=0,we=0;var Se=0;if(Z.isRadial){ne=(Z=this.points).length,re=q.translate(q.min),_e=q.translate(q.max);var Re=X.threshold||0;for(H.inverted&&p(Re)&&(K=q.translate(Re),g(K)&&(0>K?K=0:K>I&&(K=I),this.translatedThreshold=K+B));ne--;){var ze=(Re=Z[ne]).barX,ie=Re.x,ee=Re.y;if(Re.shapeType="arc",H.inverted){Re.plotY=q.translate(ee),m&&q.stacking?(ee=q.stacking.stacks[(0>ee?"-":"")+this.stackKey],this.visible&&ee&&ee[ie]&&!Re.isNull&&(Se=ee[ie].points[this.getStackIndicator(void 0,ie,this.index).key],we=q.translate(Se[0]),Se=q.translate(Se[1]),g(we)&&(we=fe.clamp(we,0,I)))):(we=K,Se=Re.plotY),we>Se&&(Se=[we,we=Se][0]),he?Se>re?Se=re:we<_e?we=_e:(we>re||Se<_e)&&(we=Se=I):we_e?Se=_e:(Se_e)&&(we=Se=0),q.min>q.max&&(we=Se=he?I:0),we+=B,Se+=B,M&&(Re.barX=ze+=M[3]/2),ie=Math.max(ze,0),ee=Math.max(ze+Re.pointWidth,0);var Ee=X.borderRadius;Ee=V(("object"==typeof Ee?Ee.radius:Ee)||0,ee-ie),Re.shapeArgs={x:M[0],y:M[1],r:ee,innerR:ie,start:we,end:Se,borderRadius:Ee},Re.opacity=we===Se?0:void 0,Re.plotY=(g(this.translatedThreshold)&&(weM[1])}}}function F(X,m){const H=this;let Z;if(this.chart.polar){m=m||this.points;for(let he=0;he{void 0===he.polarPlotY&&H.polar.toXY(he)})}return q=X.apply(this,[].slice.call(arguments,1)),Z&&m.pop(),q}function G(X,m){const H=this.chart;let Z={xAxis:[],yAxis:[]};return H.polar?H.axes.forEach(q=>{if("colorAxis"!==q.coll){var he=q.isXAxis,M=q.center,B=m.chartX-M[0]-H.plotLeft;M=m.chartY-M[1]-H.plotTop,Z[he?"xAxis":"yAxis"].push({axis:q,value:q.translate(he?Math.PI-Math.atan2(B,M):Math.sqrt(Math.pow(B,2)+Math.pow(M,2)),!0)})}}):Z=X.call(this,m),Z}function b(X,m){this.chart.polar||X.call(this,m)}function w(X,m){const H=this,Z=this.chart,q=this.group,he=this.markerGroup,M=this.xAxis&&this.xAxis.center,B=Z.plotLeft,I=Z.plotTop;let ne,re,_e,we,Se,K=this.options.animation;Z.polar?H.isRadialBar?m||(H.startAngleRad=P(H.translatedThreshold,H.xAxis.startAngleRad),le.seriesTypes.pie.prototype.animate.call(H,m)):(K=O(K),H.is("column")?m||(ne=M[3]/2,H.points.forEach(Re=>{re=Re.graphic,we=(_e=Re.shapeArgs)&&_e.r,Se=_e&&_e.innerR,re&&_e&&(re.attr({r:ne,innerR:ne}),re.animate({r:we,innerR:Se},H.options.animation))})):m?(q.attr(X={translateX:M[0]+B,translateY:M[1]+I,scaleX:.001,scaleY:.001}),he&&he.attr(X)):(q.animate(X={translateX:B,translateY:I,scaleX:1,scaleY:1},K),he&&he.animate(X,K))):X.call(this,m)}function E(X,m,H,Z){return this.chart.polar?Z?(H=(X=Ae(m,Z,!0,this.connectEnds)).prevPointCont&&X.prevPointCont.rightContY,X=["C",p(m=X.prevPointCont&&X.prevPointCont.rightContX)?m:X.plotX,p(H)?H:X.plotY,p(X.leftContX)?X.leftContX:X.plotX,p(X.leftContY)?X.leftContY:X.plotY,X.plotX,X.plotY]):X=["M",H.plotX,H.plotY]:X=X.call(this,m,H,Z),X}const{animObject:O}=oe,{addEvent:R,defined:g,find:h,isNumber:p,merge:v,pick:P,relativeLength:V,splat:D,uniqueKey:Y,wrap:de}=fe,Ce=[];class Ne{static compose(m,H,Z,q,he,M,B,I,K){me.compose(m,he),fe.pushUnique(Ce,H)&&(R(H,"afterDrawChartBox",ce),R(H,"getAxes",se),R(H,"init",ye),de(H.prototype,"get",A)),fe.pushUnique(Ce,Z)&&(de(m=Z.prototype,"getCoordinates",G),de(m,"pinch",b),R(Z,"getSelectionMarkerAttrs",U),R(Z,"getSelectionBox",W)),fe.pushUnique(Ce,q)&&(R(q,"afterInit",Q),R(q,"afterTranslate",te,{order:2}),R(q,"afterColumnTranslate",N,{order:4}),de(q.prototype,"animate",w)),B&&fe.pushUnique(Ce,B)&&(de(Z=B.prototype,"alignDataLabel",S),de(Z,"animate",w)),I&&fe.pushUnique(Ce,I)&&de(I.prototype,"getGraphPath",F),K&&fe.pushUnique(Ce,K)&&(de(I=K.prototype,"getPointSpline",E),M&&fe.pushUnique(Ce,M)&&(M.prototype.getPointSpline=I.getPointSpline))}constructor(m){this.series=m}arc(m,H,Z,q){const he=this.series,M=he.xAxis.center,B=he.yAxis.len,I=M[3]/2;return H=B-H+I,m=B-P(m,B)+I,he.yAxis.reversed&&(0>H&&(H=I),0>m&&(m=I)),{x:M[0],y:M[1],r:H,innerR:m,start:Z,end:q}}toXY(m){var H=this.series;const Z=H.chart,q=H.xAxis;var he=H.yAxis;const M=m.plotX,B=Z.inverted,I=m.y;let K=m.plotY,ne=B?M:he.len-K;B&&H&&!H.isRadialBar&&(m.plotY=K=p(I)?he.translate(I):0),m.rectPlotX=M,m.rectPlotY=K,he.center&&(ne+=he.center[3]/2),p(K)&&(he=B?he.postTranslate(K,ne):q.postTranslate(M,ne),m.plotX=m.polarPlotX=he.x-Z.plotLeft,m.plotY=m.polarPlotY=he.y-Z.plotTop),H.kdByAngle?(0>(H=(M/Math.PI*180+q.pane.options.startAngle)%360)&&(H+=360),m.clientX=H):m.clientX=m.plotX}}return Ne}),be(Oe,"masters/highcharts-more.src.js",[Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Series/Bubble/BubbleSeries.js"],Oe["Series/PackedBubble/PackedBubbleSeries.js"],Oe["Series/PolarComposition.js"]],function(oe,le,ve,xe,me){ve.compose(oe.Axis,oe.Chart,oe.Legend,oe.Series),xe.compose(oe.Axis,oe.Chart,oe.Legend,oe.Series),me.compose(oe.Axis,oe.Chart,oe.Pointer,oe.Series,oe.Tick,le.seriesTypes.areasplinerange,le.seriesTypes.column,le.seriesTypes.line,le.seriesTypes.spline)})},Hn.exports?(Oe.default=Oe,Hn.exports=Oe):(Di=[In(282)],void 0!==(Kn=function(be){return Oe(be),Oe.Highcharts=be,Oe}.apply(An,Di))&&(Hn.exports=Kn))},282:function(Hn,An,In){"use strict";var Di,Kn,Oe;Kn="undefined"!=typeof window?window:this,Oe=function(Kn){function Oe(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&Kn.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}var be={};return Oe(be,"Core/Globals.js",[],function(){var oe,le;return(le=oe||(oe={})).SVG_NS="http://www.w3.org/2000/svg",le.product="Highcharts",le.version="11.1.0",le.win=void 0!==Kn?Kn:{},le.doc=le.win.document,le.svg=le.doc&&le.doc.createElementNS&&!!le.doc.createElementNS(le.SVG_NS,"svg").createSVGRect,le.userAgent=le.win.navigator&&le.win.navigator.userAgent||"",le.isChrome=-1!==le.userAgent.indexOf("Chrome"),le.isFirefox=-1!==le.userAgent.indexOf("Firefox"),le.isMS=/(edge|msie|trident)/i.test(le.userAgent)&&!le.win.opera,le.isSafari=!le.isChrome&&-1!==le.userAgent.indexOf("Safari"),le.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(le.userAgent),le.isWebKit=-1!==le.userAgent.indexOf("AppleWebKit"),le.deg2rad=2*Math.PI/360,le.hasBidiBug=le.isFirefox&&4>parseInt(le.userAgent.split("Firefox/")[1],10),le.hasTouch=!!le.win.TouchEvent,le.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],le.noop=function(){},le.supportsPassiveEvents=function(){let ve=!1;if(!le.isMS){const xe=Object.defineProperty({},"passive",{get:function(){ve=!0}});le.win.addEventListener&&le.win.removeEventListener&&(le.win.addEventListener("testPassive",le.noop,xe),le.win.removeEventListener("testPassive",le.noop,xe))}return ve}(),le.charts=[],le.dateFormats={},le.seriesTypes={},le.symbolSizes={},le.chartCount=0,oe}),Oe(be,"Core/Utilities.js",[be["Core/Globals.js"]],function(oe){function le(h,p,v,P){const V=p?"Highcharts error":"Highcharts warning";32===h&&(h=`${V}: Deprecated member`);const D=ye(h);let Y=D?`${V} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(void 0!==P){let de="";D&&(Y+="?"),N(P,function(Ce,Ne){de+=`\n - ${Ne}: ${Ce}`,D&&(Y+=encodeURI(Ne)+"="+encodeURI(Ce))}),Y+=de}G(oe,"displayError",{chart:v,code:h,message:Y,params:P},function(){if(p)throw Error(Y);E.console&&-1===le.messages.indexOf(Y)&&console.warn(Y)}),le.messages.push(Y)}function ve(h,p){return parseInt(h,p||10)}function xe(h){return"string"==typeof h}function me(h){return"[object Array]"===(h=Object.prototype.toString.call(h))||"[object Array Iterator]"===h}function fe(h,p){return!(!h||"object"!=typeof h||p&&me(h))}function Ae(h){return fe(h)&&"number"==typeof h.nodeType}function ce(h){const p=h&&h.constructor;return!(!fe(h,!0)||Ae(h)||!p||!p.name||"Object"===p.name)}function ye(h){return"number"==typeof h&&!isNaN(h)&&1/0>h&&-1/0{se(Y)?h.setAttribute(de,Y):P?(V=h.getAttribute(de))||"class"!==de||(V=h.getAttribute(de+"Name")):h.removeAttribute(de)};return xe(p)?D(v,p):N(p,D),V}function U(h){return me(h)?h:[h]}function Q(h,p){let v;for(v in h||(h={}),p)h[v]=p[v];return h}function te(){const h=arguments,p=h.length;for(let v=0;vde.order-Ce.order),V.forEach(de=>{!1===de.fn.call(h,v)&&v.preventDefault()})}P&&!v.defaultPrevented&&P.call(h,v)}const{charts:b,doc:w,win:E}=oe;(le||(le={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};var O=Array.prototype.find?function(h,p){return h.find(p)}:function(h,p){let v;const P=h.length;for(v=0;vY.order-de.order),function(){F(h,p,v)}},arrayMax:function(h){let p=h.length,v=h[0];for(;p--;)h[p]>v&&(v=h[p]);return v},arrayMin:function(h){let p=h.length,v=h[0];for(;p--;)h[p]p?h{if(1D&&!v?(null==p||p(),p=void 0):D&&(void 0===P||D=p-1&&(p=Math.floor(v)),Math.max(0,p-(S(h,"padding-left",!0)||0)-(S(h,"padding-right",!0)||0))):"height"===p?Math.max(0,Math.min(h.offsetHeight,h.scrollHeight)-(S(h,"padding-top",!0)||0)-(S(h,"padding-bottom",!0)||0)):((h=E.getComputedStyle(h,void 0))&&(P=h.getPropertyValue(p),te(v,"opacity"!==p)&&(P=ve(P))),P)},inArray:function(h,p,v){return le(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),p.indexOf(h,v)},insertItem:function(h,p){const v=h.options.index,P=p.length;let V;for(V=h.options.isInternal?P:0;V=v&&(p=[1/v]))),P=0;P=h||!V&&Y<=(p[P]+(p[P+1]||p[P]))/2));P++);return A(D*v,-Math.round(Math.log(.001)/Math.LN10))},objectEach:N,offset:function(h){const p=w.documentElement;return{top:(h=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(E.pageYOffset||p.scrollTop)-(p.clientTop||0),left:h.left+(E.pageXOffset||p.scrollLeft)-(p.clientLeft||0),width:h.width,height:h.height}},pad:function(h,p,v){return Array((p||2)+1-String(h).replace("-","").length).join(v||"0")+h},pick:te,pInt:ve,pushUnique:function(h,p){return 0>h.indexOf(p)&&!!h.push(p)},relativeLength:function(h,p,v){return/%$/.test(h)?p*parseFloat(h)/100+(v||0):parseFloat(h)},removeEvent:F,splat:U,stableSort:function(h,p){const v=h.length;let P,V;for(V=0;Vnew fe(Q[1]));else if("string"==typeof ce){if(this.input=ce=fe.names[ce.toLowerCase()]||ce,"#"===ce.charAt(0)){var W=ce.length,U=parseInt(ce.substr(1),16);7===W?ye=[(16711680&U)>>16,(65280&U)>>8,255&U,1]:4===W&&(ye=[(3840&U)>>4|(3840&U)>>8,(240&U)>>4|240&U,(15&U)<<4|15&U,1])}if(!ye)for(U=fe.parsers.length;U--&&!ye;)se=fe.parsers[U],(W=se.regex.exec(ce))&&(ye=se.parse(W))}ye&&(this.rgba=ye)}get(ce){const ye=this.input,se=this.rgba;if("object"==typeof ye&&void 0!==this.stops){const W=xe(ye);return W.stops=[].slice.call(W.stops),this.stops.forEach((U,Q)=>{W.stops[Q]=[W.stops[Q][0],U.get(ce)]}),W}return se&&ve(se[0])?"rgb"===ce||!ce&&1===se[3]?"rgb("+se[0]+","+se[1]+","+se[2]+")":"a"===ce?`${se[3]}`:"rgba("+se.join(",")+")":ye}brighten(ce){const ye=this.rgba;if(this.stops)this.stops.forEach(function(se){se.brighten(ce)});else if(ve(ce)&&0!==ce)for(let se=0;3>se;se++)ye[se]+=me(255*ce),0>ye[se]&&(ye[se]=0),255w?"AM":"PM",P:12>w?"am":"pm",S:se(b.getSeconds()),L:se(Math.floor(N%1e3),3)},oe.dateFormats),ye(b,function(P,V){for(;-1!==S.indexOf("%"+V);)S=S.replace("%"+V,"function"==typeof P?P.call(G,N):P)}),F?S.substr(0,1).toUpperCase()+S.substr(1):S}resolveDTLFormat(S){return Ae(S,!0)?S:{main:(S=U(S))[0],from:S[1],to:S[2]}}getTimeTicks(S,N,F,G){const b=this,w=[],E={};var O=new b.Date(N);const R=S.unitRange,g=S.count||1;let h;if(G=W(G,1),xe(N)){if(b.set("Milliseconds",O,R>=Q.second?0:g*Math.floor(b.get("Milliseconds",O)/g)),R>=Q.second&&b.set("Seconds",O,R>=Q.minute?0:g*Math.floor(b.get("Seconds",O)/g)),R>=Q.minute&&b.set("Minutes",O,R>=Q.hour?0:g*Math.floor(b.get("Minutes",O)/g)),R>=Q.hour&&b.set("Hours",O,R>=Q.day?0:g*Math.floor(b.get("Hours",O)/g)),R>=Q.day&&b.set("Date",O,R>=Q.month?1:Math.max(1,g*Math.floor(b.get("Date",O)/g))),R>=Q.month){b.set("Month",O,R>=Q.year?0:g*Math.floor(b.get("Month",O)/g));var p=b.get("FullYear",O)}R>=Q.year&&b.set("FullYear",O,p-p%g),R===Q.week&&(p=b.get("Day",O),b.set("Date",O,b.get("Date",O)-p+G+(p4*Q.month||b.getTimezoneOffset(N)!==b.getTimezoneOffset(F)),N=O.getTime(),O=1;Nw.length&&w.forEach(function(V){V%18e5==0&&"000000000"===b.dateFormat("%H%M%S%L",V)&&(E[V]="day")})}return w.info=fe(S,{higherRanks:E,totalRange:R*g}),w}getDateFormat(S,N,F,G){const b=this.dateFormat("%m-%d %H:%M:%S.%L",N),w={millisecond:15,second:12,minute:9,hour:6,day:3};let E,O="millisecond";for(E in Q){if(S===Q.week&&+this.dateFormat("%w",N)===F&&"00:00:00.000"===b.substr(6)){E="week";break}if(Q[E]>S){E=O;break}if(w[E]&&b.substr(w[E])!=="01-01 00:00:00.000".substr(w[E]))break;"week"!==E&&(O=E)}return this.resolveDTLFormat(G[E]).main}}}),Oe(be,"Core/Defaults.js",[be["Core/Chart/ChartDefaults.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Color/Palettes.js"],be["Core/Time.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){const{isTouchDevice:Ae,svg:ce}=ve,{merge:ye}=fe,se={colors:xe.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:oe,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:ce,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Ae?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};se.chart.styledMode=!1;const W=new me(se.time);return{defaultOptions:se,defaultTime:W,getOptions:function(){return se},setOptions:function(U){return ye(!0,se,U),(U.time||U.global)&&(ve.time?ve.time.update(ye(se.global,se.time,U.global,U.time)):ve.time=W),se}}}),Oe(be,"Core/Animation/Fx.js",[be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{parse:xe}=oe,{win:me}=le,{isNumber:fe,objectEach:Ae}=ve;return(()=>{class ye{constructor(W,U,Q){this.pos=NaN,this.options=U,this.elem=W,this.prop=Q}dSetter(){var W=this.paths;const U=W&&W[0];W=W&&W[1];const Q=this.now||0;let te=[];if(1!==Q&&U&&W)if(U.length===W.length&&1>Q)for(let x=0;x=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),S=A[this.prop]=!0,Ae(A,function(N){!0!==N&&(S=!1)}),S&&x&&x.call(te),W=!1):(this.pos=Q.easing((U-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),W=!0),W}initPath(W,U,Q){function te(w,E){for(;w.length{N=ve(N.options.animation),A=te&&me(te.defer)?y.defer:Math.max(A,N.duration+N.defer),S=Math.min(y.duration,N.duration)}),Q.renderer.forExport&&(A=0),{defer:Math.max(0,A-S),duration:Math.min(A,S)}},setAnimation:function(Q,te){te.renderer.globalAnimation=U(Q,te.options.chart.animation,!0)},stop:xe}}),Oe(be,"Core/Renderer/HTML/AST.js",[be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le){const{SVG_NS:ve,win:xe}=oe,{attr:me,createElement:fe,css:Ae,error:ce,isFunction:ye,isString:se,objectEach:W,splat:U}=le;({trustedTypes:le}=xe);const Q=le&&ye(le.createPolicy)&&le.createPolicy("highcharts",{createHTML:A=>A});le=Q?Q.createHTML(""):"";try{var te=!!(new DOMParser).parseFromString(le,"text/html")}catch(A){te=!1}const x=te;class y{static filterUserAttributes(S){return W(S,(N,F)=>{let G=!0;-1===y.allowedAttributes.indexOf(F)&&(G=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(F)&&(G=se(N)&&y.allowedReferences.some(b=>0===N.indexOf(b))),G||(ce(33,!1,void 0,{"Invalid attribute in config":`${F}`}),delete S[F]),se(N)&&S[F]&&(S[F]=N.replace(/{const G=(F=F.split(":").map(b=>b.trim())).shift();return G&&F.length&&(N[G.replace(/-([a-z])/g,b=>b[1].toUpperCase())]=F.join(":")),N},{})}static setElementHTML(S,N){S.innerHTML=y.emptyHTML,N&&new y(N).addToDOM(S)}constructor(S){this.nodes="string"==typeof S?this.parseMarkup(S):S}addToDOM(S){return function N(F,G){let b;return U(F).forEach(function(w){var E=w.tagName;const O=w.textContent?oe.doc.createTextNode(w.textContent):void 0,R=y.bypassHTMLFiltering;let g;if(E)if("#text"===E)g=O;else if(-1!==y.allowedTags.indexOf(E)||R){E=oe.doc.createElementNS("svg"===E?ve:G.namespaceURI||ve,E);const h=w.attributes||{};W(w,function(p,v){"tagName"!==v&&"attributes"!==v&&"children"!==v&&"style"!==v&&"textContent"!==v&&(h[v]=p)}),me(E,R?h:y.filterUserAttributes(h)),w.style&&Ae(E,w.style),O&&E.appendChild(O),N(w.children||[],E),g=E}else ce(33,!1,void 0,{"Invalid tagName in config":E});g&&G.appendChild(g),b=g}),b}(this.nodes,S)}parseMarkup(S){const N=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),x)S=(new DOMParser).parseFromString(Q?Q.createHTML(S):S,"text/html");else{const G=fe("div");G.innerHTML=S,S={body:G}}const F=(G,b)=>{var w=G.nodeName.toLowerCase();const E={tagName:w};if("#text"===w&&(E.textContent=G.textContent||""),w=G.attributes){const O={};[].forEach.call(w,R=>{"data-style"===R.name?E.style=y.parseStyle(R.value):O[R.name]=R.value}),E.attributes=O}if(G.childNodes.length){const O=[];[].forEach.call(G.childNodes,R=>{F(R,O)}),O.length&&(E.children=O)}b.push(E)};return[].forEach.call(S.body.childNodes,G=>F(G,N)),N}}return y.allowedAttributes="alt aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),y.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),y.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),y.emptyHTML=le,y.bypassHTMLFiltering=!1,y}),Oe(be,"Core/Templating.js",[be["Core/Defaults.js"],be["Core/Utilities.js"]],function(oe,le){function ve(x="",y,A){const S=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,N=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,F=[],G=/f$/,b=/\.([0-9])/,w=me.lang,E=A&&A.time||fe,O=A&&A.numberFormatter||xe,R=(D="")=>{let Y;return"true"===D||"false"!==D&&((Y=Number(D)).toString()===D?Y:ce(D,y))};let g,h,v,p=0;for(;null!==(g=S.exec(x));){const D=N.exec(g[1]);D&&(g=D,v=!0),h&&h.isBlock||(h={ctx:y,expression:g[1],find:g[0],isBlock:"#"===g[1].charAt(0),start:g.index,startInner:g.index+g[0].length,length:g[0].length});var P=g[1].split(" ")[0].replace("#","");if(te[P]&&(h.isBlock&&P===h.fn&&p++,h.fn||(h.fn=P)),P="else"===g[1],h.isBlock&&h.fn&&(g[1]===`/${h.fn}`||P))if(p)P||p--;else{var V=h.startInner;V=x.substr(V,g.index-V),void 0===h.body?(h.body=V,h.startInner=g.index+g[0].length):h.elseBody=V,h.find+=V+g[0],P||(F.push(h),h=void 0)}else h.isBlock||F.push(h);if(D&&(null==h||!h.isBlock))break}return F.forEach(D=>{const{body:Y,elseBody:de,expression:Ce,fn:Ne}=D;var X;if(Ne){var m=[D],H=Ce.split(" ");for(X=te[Ne].length;X--;)m.unshift(R(H[X+1]));X=te[Ne].apply(y,m),D.isBlock&&"boolean"==typeof X&&(X=ve(X?Y:de,y))}else m=Ce.split(":"),X=R(m.shift()||""),m.length&&"number"==typeof X&&(m=m.join(":"),G.test(m)?(H=parseInt((m.match(b)||["","-1"])[1],10),null!==X&&(X=O(X,H,w.decimalPoint,-1G[1]){var w=y+ +G[1];0<=w?(G[0]=(+G[0]).toExponential(w).split("e")[0],y=w):(G[0]=G[0].split(".")[0]||0,x=20>y?(G[0]*Math.pow(10,G[1])).toFixed(y):0,G[1]=0)}}else y=2;w=(Math.abs(G[1]?G[0]:x)+Math.pow(10,-Math.max(y,F)-1)).toFixed(y);const E=3<(F=String(Q(w))).length?F.length%3:0;return A=U(A,N.decimalPoint),S=U(S,N.thousandsSep),x=(0>x?"-":"")+(E?F.substr(0,E)+S:""),x=0>+G[1]&&!b?"0":x+F.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+S),y&&(x+=A+w.slice(-y)),G[1]&&0!=+x&&(x+="e"+G[1]),x}const{defaultOptions:me,defaultTime:fe}=oe,{extend:Ae,getNestedProperty:ce,isArray:ye,isNumber:se,isObject:W,pick:U,pInt:Q}=le,te={add:(x,y)=>x+y,divide:(x,y)=>0!==y?x/y:"",eq:(x,y)=>x==y,each:function(x){const y=arguments[arguments.length-1];return!!ye(x)&&x.map((A,S)=>ve(y.body,Ae(W(A)?A:{"@this":A},{"@index":S,"@first":0===S,"@last":S===x.length-1}))).join("")},ge:(x,y)=>x>=y,gt:(x,y)=>x>y,if:x=>!!x,le:(x,y)=>x<=y,lt:(x,y)=>xx*y,ne:(x,y)=>x!=y,subtract:(x,y)=>x-y,unless:x=>!x};return{dateFormat:function(x,y,A){return fe.dateFormat(x,y,A)},format:ve,helpers:te,numberFormat:xe}}),Oe(be,"Core/Renderer/RendererUtilities.js",[be["Core/Utilities.js"]],function(oe){const{clamp:le,pick:ve,stableSort:xe}=oe;var me;return(me||(me={})).distribute=function Ae(ce,ye,se){const W=ce;var U=W.reducedLen||ye,Q=(N,F)=>(F.rank||0)-(N.rank||0);const te=(N,F)=>N.target-F.target;let x,y=!0,A=[],S=0;for(x=ce.length;x--;)S+=ce[x].size;if(S>U){for(xe(ce,Q),S=x=0;S<=U;)S+=ce[x].size,x++;A=ce.splice(x-1,ce.length)}for(xe(ce,te),ce=ce.map(N=>({size:N.size,targets:[N.target],align:ve(N.align,.5)}));y;){for(x=ce.length;x--;)U=ce[x],Q=(Math.min.apply(0,U.targets)+Math.max.apply(0,U.targets))/2,U.pos=le(Q-U.size*U.align,0,ye-U.size);for(x=ce.length,y=!1;x--;)0ce[x].pos&&(ce[x-1].size+=ce[x].size,ce[x-1].targets=ce[x-1].targets.concat(ce[x].targets),ce[x-1].align=.5,ce[x-1].pos+ce[x-1].size>ye&&(ce[x-1].pos=ye-ce[x-1].size),ce.splice(x,1),y=!0)}return W.push.apply(W,A),x=0,ce.some(N=>{let F=0;return(N.targets||[]).some(()=>(W[x].pos=N.pos+F,void 0!==se&&Math.abs(W[x].pos-W[x].target)>se?(W.slice(0,x+1).forEach(G=>delete G.pos),W.reducedLen=(W.reducedLen||ye)-.1*ye,W.reducedLen>.1*ye&&Ae(W,ye,se),!0):(F+=W[x].size,x++,!1)))}),xe(W,te),W},me}),Oe(be,"Core/Renderer/SVG/SVGElement.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{animate:me,animObject:fe,stop:Ae}=oe,{deg2rad:ce,doc:ye,svg:se,SVG_NS:W,win:U}=ve,{addEvent:Q,attr:te,createElement:x,css:y,defined:A,erase:S,extend:N,fireEvent:F,isArray:G,isFunction:b,isObject:w,isString:E,merge:O,objectEach:R,pick:g,pInt:h,syncTimeout:p,uniqueKey:v}=xe;class P{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=W}_defaultGetter(D){return D=g(this[D+"Value"],this[D],this.element?this.element.getAttribute(D):null,0),/^[\-0-9\.]+$/.test(D)&&(D=parseFloat(D)),D}_defaultSetter(D,Y,de){de.setAttribute(Y,D)}add(D){const Y=this.renderer,de=this.element;let Ce;return D&&(this.parentGroup=D),void 0!==this.textStr&&"text"===this.element.nodeName&&Y.buildText(this),this.added=!0,(!D||D.handleZ||this.zIndex)&&(Ce=this.zIndexSetter()),Ce||(D?D.element:Y.box).appendChild(de),this.onAdd&&this.onAdd(),this}addClass(D,Y){const de=Y?"":this.attr("class")||"";return(D=(D||"").split(/ /g).reduce(function(Ce,Ne){return-1===de.indexOf(Ne)&&Ce.push(Ne),Ce},de?[de]:[]).join(" "))!==de&&this.attr("class",D),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(D,Y,de){const Ce={};var m,Ne=this.renderer,X=Ne.alignedObjects;let H,Z;D?(this.alignOptions=D,this.alignByTranslate=Y,(!de||E(de))&&(this.alignTo=m=de||"renderer",S(X,this),X.push(this),de=void 0)):(D=this.alignOptions,Y=this.alignByTranslate,m=this.alignTo),de=g(de,Ne[m],"scrollablePlotBox"===m?Ne.plotBox:void 0,Ne);const q=D.verticalAlign;return Ne=(de.x||0)+(D.x||0),X=(de.y||0)+(D.y||0),"right"===(m=D.align)?H=1:"center"===m&&(H=2),H&&(Ne+=(de.width-(D.width||0))/H),Ce[Y?"translateX":"x"]=Math.round(Ne),"bottom"===q?Z=1:"middle"===q&&(Z=2),Z&&(X+=(de.height-(D.height||0))/Z),Ce[Y?"translateY":"y"]=Math.round(X),this[this.placed?"animate":"attr"](Ce),this.placed=!0,this.alignAttr=Ce,this}alignSetter(D){const Y={left:"start",center:"middle",right:"end"};Y[D]&&(this.alignValue=D,this.element.setAttribute("text-anchor",Y[D]))}animate(D,Y,de){const Ce=fe(g(Y,this.renderer.globalAnimation,!0));return Y=Ce.defer,ye.hidden&&(Ce.duration=0),0!==Ce.duration?(de&&(Ce.complete=de),p(()=>{this.element&&me(this,D,Ce)},Y)):(this.attr(D,void 0,de||Ce.complete),R(D,function(Ne,X){Ce.step&&Ce.step.call(this,Ne,{prop:X,pos:1,elem:this})},this)),this}applyTextOutline(D){const Y=this.element;-1!==D.indexOf("contrast")&&(D=D.replace(/contrast/g,this.renderer.getContrast(Y.style.fill)));var de=D.split(" ");if(D=de[de.length-1],(de=de[0])&&"none"!==de&&ve.svg){this.fakeTS=!0,de=de.replace(/(^[\d\.]+)(.*?)$/g,function(X,m,H){return 2*Number(m)+H}),this.removeTextOutline();const Ce=ye.createElementNS(W,"tspan");te(Ce,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":de,"stroke-linejoin":"round"}),D=Y.querySelector("textPath")||Y,[].forEach.call(D.childNodes,X=>{const m=X.cloneNode(!0);m.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(H=>m.removeAttribute(H)),Ce.appendChild(m)});let Ne=0;[].forEach.call(D.querySelectorAll("text tspan"),X=>{Ne+=Number(X.getAttribute("dy"))}),(de=ye.createElementNS(W,"tspan")).textContent="\u200b",te(de,{x:Number(Y.getAttribute("x")),dy:-Ne}),Ce.appendChild(de),D.insertBefore(Ce,D.firstChild)}}attr(D,Y,de,Ce){const Ne=this.element,X=P.symbolCustomAttribs;let m,H,q,he,Z=this;return"string"==typeof D&&void 0!==Y&&(m=D,(D={})[m]=Y),"string"==typeof D?Z=(this[D+"Getter"]||this._defaultGetter).call(this,D,Ne):(R(D,function(M,B){q=!1,Ce||Ae(this,B),this.symbolName&&-1!==X.indexOf(B)&&(H||(this.symbolAttr(D),H=!0),q=!0),!this.rotation||"x"!==B&&"y"!==B||(this.doTransform=!0),q||(he=this[B+"Setter"]||this._defaultSetter,he.call(this,M,B,Ne))},this),this.afterSetters()),de&&de.call(this),Z}clip(D){return this.attr("clip-path",D?"url("+this.renderer.url+"#"+D.id+")":"none")}crisp(D,Y){Y=Y||D.strokeWidth||0;const de=Math.round(Y)%2/2;return D.x=Math.floor(D.x||this.x||0)+de,D.y=Math.floor(D.y||this.y||0)+de,D.width=Math.floor((D.width||this.width||0)-2*de),D.height=Math.floor((D.height||this.height||0)-2*de),A(D.strokeWidth)&&(D.strokeWidth=Y),D}complexColor(D,Y,de){const Ce=this.renderer;let Ne,X,m,H,Z,q,he,M,B,I,ne,K=[];F(this.renderer,"complexColor",{args:arguments},function(){if(D.radialGradient?X="radialGradient":D.linearGradient&&(X="linearGradient"),X){if(m=D[X],Z=Ce.gradients,q=D.stops,B=de.radialReference,G(m)&&(D[X]=m={x1:m[0],y1:m[1],x2:m[2],y2:m[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===X&&B&&!A(m.gradientUnits)&&(H=m,m=O(m,Ce.getRadialAttr(B,H),{gradientUnits:"userSpaceOnUse"})),R(m,function(re,_e){"id"!==_e&&K.push(_e,re)}),R(q,function(re){K.push(re)}),K=K.join(","),Z[K])I=Z[K].attr("id");else{m.id=I=v();const re=Z[K]=Ce.createElement(X).attr(m).add(Ce.defs);re.radAttr=H,re.stops=[],q.forEach(function(_e){0===_e[1].indexOf("rgba")?(Ne=le.parse(_e[1]),he=Ne.get("rgb"),M=Ne.get("a")):(he=_e[1],M=1),_e=Ce.createElement("stop").attr({offset:_e[0],"stop-color":he,"stop-opacity":M}).add(re),re.stops.push(_e)})}ne="url("+Ce.url+"#"+I+")",de.setAttribute(Y,ne),de.gradient=K,D.toString=function(){return ne}}})}css(D){const Y=this.styles,de={},Ce=this.element;let Ne,X=!Y;if(Y&&R(D,function(m,H){Y&&Y[H]!==m&&(de[H]=m,X=!0)}),X){Y&&(D=N(Y,de)),null===D.width||"auto"===D.width?delete this.textWidth:"text"===Ce.nodeName.toLowerCase()&&D.width&&(Ne=this.textWidth=h(D.width)),this.styles=D,Ne&&!se&&this.renderer.forExport&&delete D.width;const m=O(D);Ce.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(H=>m&&delete m[H]),m.color&&(m.fill=m.color)),y(Ce,m)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),D.textOutline&&this.applyTextOutline(D.textOutline)),this}dashstyleSetter(D){let Y=this["stroke-width"];if("inherit"===Y&&(Y=1),D=D&&D.toLowerCase()){const de=D.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(D=de.length;D--;)de[D]=""+h(de[D])*g(Y,NaN);D=de.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",D)}}destroy(){const D=this;var Y=D.element||{};const de=D.renderer;var Ce=Y.ownerSVGElement;let Ne="SPAN"===Y.nodeName&&D.parentGroup||void 0;if(Y.onclick=Y.onmouseout=Y.onmouseover=Y.onmousemove=Y.point=null,Ae(D),D.clipPath&&Ce){const X=D.clipPath;[].forEach.call(Ce.querySelectorAll("[clip-path],[CLIP-PATH]"),function(m){-1Ne&&Ne.join?(X?Ce+" ":"")+Ne.join(" "):(Ne||"").toString(),"")),/(NaN| {2}|^$)/.test(D)&&(D="M 0 0"),this[Y]!==D&&(de.setAttribute(Y,D),this[Y]=D)}fadeOut(D){const Y=this;Y.animate({opacity:0},{duration:g(D,150),complete:function(){Y.hide()}})}fillSetter(D,Y,de){"string"==typeof D?de.setAttribute(Y,D):D&&this.complexColor(D,Y,de)}getBBox(D,Y){const{alignValue:de,element:Ce,renderer:Ne,styles:X,textStr:m}=this,{cache:H,cacheKeys:Z}=Ne;var q=Ce.namespaceURI===this.SVG_NS;Y=g(Y,this.rotation,0);var he=Ne.styledMode?Ce&&P.prototype.getStyle.call(Ce,"font-size"):X&&X.fontSize;let M,B;if(A(m)&&(B=m.toString(),-1===B.indexOf("<")&&(B=B.replace(/[0-9]/g,"0")),B+=["",Ne.rootFontSize,he,Y,this.textWidth,de,X&&X.textOverflow,X&&X.fontWeight].join()),B&&!D&&(M=H[B]),!M){if(q||Ne.forExport){try{var I=this.fakeTS&&function(we){const Se=Ce.querySelector(".highcharts-text-outline");Se&&y(Se,{display:we})};b(I)&&I("none"),M=Ce.getBBox?N({},Ce.getBBox()):{width:Ce.offsetWidth,height:Ce.offsetHeight,x:0,y:0},b(I)&&I("")}catch(we){}(!M||0>M.width)&&(M={x:0,y:0,width:0,height:0})}else M=this.htmlGetBBox();if(I=M.width,D=M.height,q&&(M.height=D={"11px,17":14,"13px,20":16}[`${he||""},${Math.round(D)}`]||D),Y){q=Number(Ce.getAttribute("y")||0)-M.y,he={right:1,center:.5}[de||0]||0;var K=Y*ce,ne=(Y-90)*ce,re=I*Math.cos(K);Y=I*Math.sin(K);var _e=Math.cos(ne);K=Math.sin(ne),re=(_e=(ne=(I=M.x+he*(I-re)+q*_e)+re)-D*_e)-re,Y=(D=(he=(q=M.y+q-he*Y+q*K)+Y)-D*K)-Y,M.x=Math.min(I,ne,_e,re),M.y=Math.min(q,he,D,Y),M.width=Math.max(I,ne,_e,re)-M.x,M.height=Math.max(q,he,D,Y)-M.y}}if(B&&(""===m||0{if(D&&m){let q=D.attr("id");q||D.attr("id",q=v());var Z={x:0,y:0};A(X.dx)&&(Z.dx=X.dx,delete X.dx),A(X.dy)&&(Z.dy=X.dy,delete X.dy),Ce.attr(Z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),Z=H.nodes.slice(0),H.nodes.length=0,H.nodes[0]={tagName:"textPath",attributes:N(X,{"text-anchor":X.textAnchor,href:`${de}#${q}`}),children:Z}}}),Ce.textPath={path:D,undo:Y}):(Ce.attr({dx:0,dy:0}),delete Ce.textPath),this.added&&(Ce.textCache="",this.renderer.buildText(Ce)),this}shadow(D){var Y;const{renderer:de}=this,Ce=O(90===(null===(Y=this.parentGroup)||void 0===Y?void 0:Y.rotation)?{offsetX:-1,offsetY:-1}:{},w(D)?D:{});return Y=de.shadowDefinition(Ce),this.attr({filter:D?`url(${de.url}#${Y})`:"none"})}show(D=!0){return this.attr({visibility:D?"inherit":"visible"})}"stroke-widthSetter"(D,Y,de){this[Y]=D,de.setAttribute(Y,D)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const D=this.getStyle("stroke-width");let de,Y=0;return D.indexOf("px")===D.length-2?Y=h(D):""!==D&&(de=ye.createElementNS(W,"rect"),te(de,{width:D,"stroke-width":0}),this.element.parentNode.appendChild(de),Y=de.getBBox().width,de.parentNode.removeChild(de)),Y}symbolAttr(D){const Y=this;P.symbolCustomAttribs.forEach(function(de){Y[de]=g(D[de],Y[de])}),Y.attr({d:Y.renderer.symbols[Y.symbolName](Y.x,Y.y,Y.width,Y.height,Y)})}textSetter(D){D!==this.textStr&&(delete this.textPxLength,this.textStr=D,this.added&&this.renderer.buildText(this))}titleSetter(D){const Y=this.element,de=Y.getElementsByTagName("title")[0]||ye.createElementNS(this.SVG_NS,"title");Y.insertBefore?Y.insertBefore(de,Y.firstChild):Y.appendChild(de),de.textContent=String(g(D,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const D=this.element;return D.parentNode.appendChild(D),this}translate(D,Y){return this.attr({translateX:D,translateY:Y})}updateTransform(){const{element:D,matrix:Y,rotation:de=0,scaleX:Ce,scaleY:Ne,translateX:X=0,translateY:m=0}=this,H=["translate("+X+","+m+")"];A(Y)&&H.push("matrix("+Y.join(",")+")"),de&&H.push("rotate("+de+" "+g(this.rotationOriginX,D.getAttribute("x"),0)+" "+g(this.rotationOriginY,D.getAttribute("y")||0)+")"),(A(Ce)||A(Ne))&&H.push("scale("+g(Ce,1)+" "+g(Ne,1)+")"),H.length&&!(this.text||this).textPath&&D.setAttribute("transform",H.join(" "))}visibilitySetter(D,Y,de){"inherit"===D?de.removeAttribute(Y):this[Y]!==D&&de.setAttribute(Y,D),this[Y]=D}xGetter(D){return"circle"===this.element.nodeName&&("x"===D?D="cx":"y"===D&&(D="cy")),this._defaultGetter(D)}zIndexSetter(D,Y){var de=this.renderer,Ce=this.parentGroup;const Ne=(Ce||de).element||de.box,X=this.element;de=Ne===de.box;let H,m=!1;var Z=this.added;let q;if(A(D)?(X.setAttribute("data-z-index",D),this[Y]===(D=+D)&&(Z=!1)):A(this[Y])&&X.removeAttribute("data-z-index"),this[Y]=D,Z){for((D=this.zIndex)&&Ce&&(Ce.handleZ=!0),q=(Y=Ne.childNodes).length-1;0<=q&&!m;q--)Z=(Ce=Y[q]).getAttribute("data-z-index"),H=!A(Z),Ce!==X&&(0>D&&H&&!de&&!q?(Ne.insertBefore(X,Y[q]),m=!0):(h(Z)<=D||H&&(!A(D)||0<=D))&&(Ne.insertBefore(X,Y[q+1]),m=!0));m||(Ne.insertBefore(X,Y[de?3:0]),m=!0)}return m}}return P.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),P.prototype.strokeSetter=P.prototype.fillSetter,P.prototype.yGetter=P.prototype.xGetter,P.prototype.matrixSetter=P.prototype.rotationOriginXSetter=P.prototype.rotationOriginYSetter=P.prototype.rotationSetter=P.prototype.scaleXSetter=P.prototype.scaleYSetter=P.prototype.translateXSetter=P.prototype.translateYSetter=P.prototype.verticalAlignSetter=function(V,D){this[D]=V,this.doTransform=!0},P}),Oe(be,"Core/Renderer/RendererRegistry.js",[be["Core/Globals.js"]],function(oe){var le;return function(ve){let xe;ve.rendererTypes={},ve.getRendererType=function(me=xe){return ve.rendererTypes[me]||ve.rendererTypes[xe]},ve.registerRendererType=function(me,fe,Ae){ve.rendererTypes[me]=fe,(!xe||Ae)&&(xe=me,oe.Renderer=fe)}}(le||(le={})),le}),Oe(be,"Core/Renderer/SVG/SVGLabel.js",[be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le){const{defined:ve,extend:xe,isNumber:me,merge:fe,pick:Ae,removeEvent:ce}=le;class ye extends oe{constructor(W,U,Q,te,x,y,A,S,N,F){let G;super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(W,"g"),this.textStr=U,this.x=Q,this.y=te,this.anchorX=y,this.anchorY=A,this.baseline=N,this.className=F,this.addClass("button"===F?"highcharts-no-tooltip":"highcharts-label"),F&&this.addClass("highcharts-"+F),this.text=W.text(void 0,0,0,S).attr({zIndex:1}),"string"==typeof x&&((G=/^url\((.*?)\)$/.test(x))||this.renderer.symbols[x])&&(this.symbolKey=x),this.bBox=ye.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=W.styledMode||G,this.deferredAttr={},this.alignFactor=0}alignSetter(W){(W={left:0,center:.5,right:1}[W])!==this.alignFactor&&(this.alignFactor=W,this.bBox&&me(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(W,U){this.anchorX=W,this.boxAttr(U,Math.round(W)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(W,U){this.anchorY=W,this.boxAttr(U,W-this.ySetting)}boxAttr(W,U){this.box?this.box.attr(W,U):this.deferredAttr[W]=U}css(W){if(W){const U={};W=fe(W),ye.textProps.forEach(Q=>{void 0!==W[Q]&&(U[Q]=W[Q],delete W[Q])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return oe.prototype.css.call(this,W)}destroy(){ce(this.element,"mouseenter"),ce(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),oe.prototype.destroy.call(this)}fillSetter(W,U){W&&(this.needsBox=!0),this.fill=W,this.boxAttr(U,W)}getBBox(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();const W=this.padding,U=Ae(this.paddingLeft,W);return{width:this.width,height:this.height,x:this.bBox.x-U,y:this.bBox.y-W}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(W){this.heightSetting=W}onAdd(){this.text.add(this),this.attr({text:Ae(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ve(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(W,U){me(W)?W!==this[U]&&(this[U]=W,this.updateTextPadding()):this[U]=void 0}rSetter(W,U){this.boxAttr(U,W)}strokeSetter(W,U){this.stroke=W,this.boxAttr(U,W)}"stroke-widthSetter"(W,U){W&&(this.needsBox=!0),this["stroke-width"]=W,this.boxAttr(U,W)}"text-alignSetter"(W){this.textAlign=W}textSetter(W){void 0!==W&&this.text.attr({text:W}),this.updateTextPadding()}updateBoxSize(){var W=this.text;const U={},Q=this.padding,te=this.bBox=me(this.widthSetting)&&me(this.heightSetting)&&!this.textAlign||!ve(W.textStr)?ye.emptyBBox:W.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||te.height||0)+2*Q;const x=this.renderer.fontMetrics(W);this.baselineOffset=Q+Math.min((this.text.firstLineMetrics||x).b,te.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-x.h)/2),this.needsBox&&!W.textPath&&(this.box||((W=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),W.add(this)),W=this.getCrispAdjust(),U.x=W,U.y=(this.baseline?-this.baselineOffset:0)+W,U.width=Math.round(this.width),U.height=Math.round(this.height),this.box.attr(xe(U,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const W=this.text;if(!W.textPath){this.updateBoxSize();const U=this.baseline?0:this.baselineOffset;let Q=Ae(this.paddingLeft,this.padding);ve(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(Q+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(Q!==W.x||U!==W.y)&&(W.attr("x",Q),W.hasBoxWidthChanged&&(this.bBox=W.getBBox(!0)),void 0!==U&&W.attr("y",U)),W.x=Q,W.y=U}}widthSetter(W){this.widthSetting=me(W)?W:void 0}getPaddedWidth(){var W=this.padding;const U=Ae(this.paddingLeft,W);return W=Ae(this.paddingRight,W),(this.widthSetting||this.bBox.width||0)+U+W}xSetter(W){this.x=W,this.alignFactor&&(W-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(W),this.attr("translateX",this.xSetting)}ySetter(W){this.ySetting=this.y=Math.round(W),this.attr("translateY",this.ySetting)}}return ye.emptyBBox={width:0,height:0,x:0,y:0},ye.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),ye}),Oe(be,"Core/Renderer/SVG/Symbols.js",[be["Core/Utilities.js"]],function(oe){function le(ce,ye,se,W,U){const Q=[];if(U){const te=U.start||0,x=Ae(U.r,se);se=Ae(U.r,W||se),W=(U.end||0)-.001;const y=U.innerR,A=Ae(U.open,.001>Math.abs((U.end||0)-te-2*Math.PI)),S=Math.cos(te),N=Math.sin(te),F=Math.cos(W),G=Math.sin(W),b=Ae(U.longArc,.001>W-te-Math.PI?0:1);let w=["A",x,se,0,b,Ae(U.clockwise,1),ce+x*F,ye+se*G];w.params={start:te,end:W,cx:ce,cy:ye},Q.push(["M",ce+x*S,ye+se*N],w),me(y)&&(w=["A",y,y,0,b,me(U.clockwise)?1-U.clockwise:0,ce+y*S,ye+y*N],w.params={start:W,end:te,cx:ce,cy:ye},Q.push(A?["M",ce+y*F,ye+y*G]:["L",ce+y*F,ye+y*G],w)),A||Q.push(["Z"])}return Q}function ve(ce,ye,se,W,U){return U&&U.r?xe(ce,ye,se,W,U):[["M",ce,ye],["L",ce+se,ye],["L",ce+se,ye+W],["L",ce,ye+W],["Z"]]}function xe(ce,ye,se,W,U){return[["M",ce+(U=(null==U?void 0:U.r)||0),ye],["L",ce+se-U,ye],["A",U,U,0,0,1,ce+se,ye+U],["L",ce+se,ye+W-U],["A",U,U,0,0,1,ce+se-U,ye+W],["L",ce+U,ye+W],["A",U,U,0,0,1,ce,ye+W-U],["L",ce,ye+U],["A",U,U,0,0,1,ce+U,ye],["Z"]]}const{defined:me,isNumber:fe,pick:Ae}=oe;return{arc:le,callout:function(ce,ye,se,W,U){const Q=Math.min(U&&U.r||0,se,W),te=Q+6,x=U&&U.anchorX;U=U&&U.anchorY||0;const y=xe(ce,ye,se,W,{r:Q});return fe(x)&&(ce+x>=se?U>ye+te&&U=ce+x?U>ye+te&&UW&&x>ce+te&&xU&&x>ce+te&&x/g;var b=[S,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,x.getStyle("font-size"),this.width].join();if(b!==x.textCache){for(x.textCache=b,delete x.actualWidth,b=F.length;b--;)y.removeChild(F[b]);N||this.ellipsis||this.width||x.textPath||-1!==S.indexOf(" ")&&(!this.noWrap||G.test(S))?""!==S&&(A&&A.appendChild(y),S=new oe(S),this.modifyTree(S.nodes),S.addToDOM(y),this.modifyDOM(),this.ellipsis&&-1!==(y.textContent||"").indexOf("\u2026")&&x.attr("title",this.unescapeEntities(x.textStr||"",["<",">"])),A&&A.removeChild(y)):y.appendChild(xe.createTextNode(this.unescapeEntities(S))),se(this.textOutline)&&x.applyTextOutline&&x.applyTextOutline(this.textOutline)}}modifyDOM(){const x=this.svgElement,y=Ae(x.element,"x");let A;for(x.firstLineMetrics=void 0;(A=x.element.firstChild)&&/^[\s\u200B]*$/.test(A.textContent||" ");)x.element.removeChild(A);[].forEach.call(x.element.querySelectorAll("tspan.highcharts-br"),(G,b)=>{G.nextSibling&&G.previousSibling&&(0===b&&1===G.previousSibling.nodeType&&(x.firstLineMetrics=x.renderer.fontMetrics(G.previousSibling)),Ae(G,{dy:this.getLineHeight(G.nextSibling),x:y}))});const S=this.width||0;if(S){var N=(G,b)=>{var w=G.textContent||"";const E=w.replace(/([^\^])-/g,"$1- ").split(" ");var O=!this.noWrap&&(1p.substring(0,v)+"\u2026");else if(O){for(w=[],O=[];b.firstChild&&b.firstChild!==G;)O.push(b.firstChild),b.removeChild(b.firstChild);for(;E.length;)E.length&&!this.noWrap&&0E.slice(0,v).join(" ").replace(/- /g,"-")),h=x.actualWidth,g++;O.forEach(p=>{b.insertBefore(p,G)}),w.forEach(p=>{b.insertBefore(xe.createTextNode(p),G),(p=xe.createElementNS(me,"tspan")).textContent="\u200b",Ae(p,{dy:R,x:y}),b.insertBefore(p,G)})}},F=G=>{[].slice.call(G.childNodes).forEach(b=>{b.nodeType===fe.Node.TEXT_NODE?N(b,G):(-1!==b.className.baseVal.indexOf("highcharts-br")&&(x.actualWidth=0),F(b))})};F(x.element)}}getLineHeight(x){return x=x.nodeType===fe.Node.TEXT_NODE?x.parentElement:x,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(x||this.svgElement.element).h}modifyTree(x){const y=(A,S)=>{const{attributes:N={},children:F,style:G={},tagName:b}=A,w=this.renderer.styledMode;"b"===b||"strong"===b?w?N.class="highcharts-strong":G.fontWeight="bold":("i"===b||"em"===b)&&(w?N.class="highcharts-emphasized":G.fontStyle="italic"),G&&G.color&&(G.fill=G.color),"br"===b?(N.class="highcharts-br",A.textContent="\u200b",(S=x[S+1])&&S.textContent&&(S.textContent=S.textContent.replace(/^ +/gm,""))):"a"===b&&F&&F.some(E=>"#text"===E.tagName)&&(A.children=[{children:F,tagName:"tspan"}]),"#text"!==b&&"a"!==b&&(A.tagName="tspan"),ce(A,{attributes:N,style:G}),F&&F.filter(E=>"#text"!==E.tagName).forEach(y)};x.forEach(y),ye(this.svgElement,"afterModifyTree",{nodes:x})}truncate(x,y,A,S,N,F){const G=this.svgElement,{rotation:b}=G,w=[];let g,h,E=A?1:0,O=(y||A||"").length,R=O;const p=function(v,P){if(v=P||v,(P=x.parentNode)&&void 0===w[v]&&P.getSubStringLength)try{w[v]=S+P.getSubStringLength(0,A?v+1:v)}catch(V){}return w[v]};if(G.rotation=0,h=p(x.textContent.length),S+h>N){for(;E<=O;)R=Math.ceil((E+O)/2),A&&(g=F(A,R)),h=p(R,g&&g.length-1),E===O?E=O+1:h>N?O=R-1:E=R;0===O?x.textContent="":y&&O===y.length-1||(x.textContent=g||F(y||A,R))}A&&A.splice(0,R),G.actualWidth=h,G.rotation=b}unescapeEntities(x,y){return W(this.renderer.escapes,function(A,S){y&&-1!==y.indexOf(A)||(x=x.toString().replace(new RegExp(A,"g"),S))}),x}}}),Oe(be,"Core/Renderer/SVG/SVGRenderer.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGLabel.js"],be["Core/Renderer/SVG/Symbols.js"],be["Core/Renderer/SVG/TextBuilder.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye){const{charts:se,deg2rad:W,doc:U,isFirefox:Q,isMS:te,isWebKit:x,noop:y,SVG_NS:A,symbolSizes:S,win:N}=ve,{addEvent:F,attr:G,createElement:b,css:w,defined:E,destroyObjectProperties:O,extend:R,isArray:g,isNumber:h,isObject:p,isString:v,merge:P,pick:V,pInt:D,uniqueKey:Y}=ye;let de;class Ce{constructor(X,m,H,Z,q,he,M){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(X,m,H,Z,q,he,M)}init(X,m,H,Z,q,he,M){const B=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),I=B.element;let K;M||B.css(this.getStyle(Z)),X.appendChild(I),G(X,"dir","ltr"),-1===X.innerHTML.indexOf("xmlns")&&G(I,"xmlns",this.SVG_NS),this.box=I,this.boxWrapper=B,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(U.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=he,this.forExport=q,this.styledMode=M,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=B.getStyle("font-size"),this.setSize(m,H,!1),Q&&X.getBoundingClientRect&&((m=function(){w(X,{left:0,top:0}),K=X.getBoundingClientRect(),w(X,{left:Math.ceil(K.left)-K.left+"px",top:Math.ceil(K.top)-K.top+"px"})})(),this.unSubPixelFix=F(N,"resize",m))}definition(X){return new oe([X]).addToDOM(this.defs.element)}getReferenceURL(){if((Q||x)&&U.getElementsByTagName("base").length){if(!E(de)){var X=Y();X=new oe([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:X},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${X})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(U.body),w(X,{position:"fixed",top:0,left:0,zIndex:9e5});const m=U.elementFromPoint(6,6);de="hitme"===(m&&m.id),U.body.removeChild(X)}if(de)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(X){return this.style=R({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},X)}setStyle(X){this.boxWrapper.css(this.getStyle(X))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const X=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),O(this.gradients||{}),this.gradients=null,this.defs=X.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(X){const m=new this.Element;return m.init(this,X),m}getRadialAttr(X,m){return{cx:X[0]-X[2]/2+(m.cx||0)*X[2],cy:X[1]-X[2]/2+(m.cy||0)*X[2],r:(m.r||0)*X[2]}}shadowDefinition(X){const m=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(X).map(Z=>X[Z])].join("-").replace(/[^a-z0-9\-]/g,""),H=P({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},X);return this.defs.element.querySelector(`#${m}`)||this.definition({tagName:"filter",attributes:{id:m},children:[{tagName:"feDropShadow",attributes:{dx:H.offsetX,dy:H.offsetY,"flood-color":H.color,"flood-opacity":Math.min(5*H.opacity,1),stdDeviation:H.width/2}}]}),m}buildText(X){new ce(X).buildSVG()}getContrast(X){return 1.05/(.05+(X=.2126*(X=le.parse(X).rgba.map(m=>.03928>=(m/=255)?m/12.92:Math.pow((m+.055)/1.055,2.4)))[0]+.7152*X[1]+.0722*X[2]))>(X+.05)/.05?"#FFFFFF":"#000000"}button(X,m,H,Z,q={},he,M,B,I,K){const ne=this.label(X,m,H,I,void 0,void 0,K,void 0,"button"),re=this.styledMode;X=q.states||{};let _e=0;delete(q=P(q)).states;const we=P({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},q.style);delete q.style;let Re,ze,ie,Se=oe.filterUserAttributes(q);return ne.attr(P({padding:8,r:2},Se)),re||(Se=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},Se),he=P(Se,{fill:"#e6e6e6"},oe.filterUserAttributes(he||X.hover||{})),Re=he.style,delete he.style,M=P(Se,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},oe.filterUserAttributes(M||X.select||{})),ze=M.style,delete M.style,B=P(Se,{style:{color:"#cccccc"}},oe.filterUserAttributes(B||X.disabled||{})),ie=B.style,delete B.style),F(ne.element,te?"mouseover":"mouseenter",function(){3!==_e&&ne.setState(1)}),F(ne.element,te?"mouseout":"mouseleave",function(){3!==_e&&ne.setState(_e)}),ne.setState=function(ee){1!==ee&&(ne.state=_e=ee),ne.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ee||0]),re||(ne.attr([Se,he,M,B][ee||0]),p(ee=[we,Re,ze,ie][ee||0])&&ne.css(ee))},re||(ne.attr(Se).css(R({cursor:"default"},we)),K&&ne.text.css({pointerEvents:"none"})),ne.on("touchstart",ee=>ee.stopPropagation()).on("click",function(ee){3!==_e&&Z.call(ne,ee)})}crispLine(X,m,H="round"){const Z=X[0],q=X[1];return E(Z[1])&&Z[1]===q[1]&&(Z[1]=q[1]=Math[H](Z[1])-m%2/2),E(Z[2])&&Z[2]===q[2]&&(Z[2]=q[2]=Math[H](Z[2])+m%2/2),X}path(X){const m=this.styledMode?{}:{fill:"none"};return g(X)?m.d=X:p(X)&&R(m,X),this.createElement("path").attr(m)}circle(X,m,H){return X=p(X)?X:void 0===X?{}:{x:X,y:m,r:H},(m=this.createElement("circle")).xSetter=m.ySetter=function(Z,q,he){he.setAttribute("c"+q,Z)},m.attr(X)}arc(X,m,H,Z,q,he){return p(X)?(m=(Z=X).y,H=Z.r,X=Z.x):Z={innerR:Z,start:q,end:he},(X=this.symbol("arc",X,m,H,H,Z)).r=H,X}rect(X,m,H,Z,q,he){X=p(X)?X:void 0===X?{}:{x:X,y:m,r:q,width:Math.max(H||0,0),height:Math.max(Z||0,0)};const M=this.createElement("rect");return this.styledMode||(void 0!==he&&(X["stroke-width"]=he,R(X,M.crisp(X))),X.fill="none"),M.rSetter=function(B,I,K){M.r=B,G(K,{rx:B,ry:B})},M.rGetter=function(){return M.r||0},M.attr(X)}roundedRect(X){return this.symbol("roundedRect").attr(X)}setSize(X,m,H){this.width=X,this.height=m,this.boxWrapper.animate({width:X,height:m},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:V(H,!0)?void 0:0}),this.alignElements()}g(X){const m=this.createElement("g");return X?m.attr({class:"highcharts-"+X}):m}image(X,m,H,Z,q,he){const M={preserveAspectRatio:"none"};h(m)&&(M.x=m),h(H)&&(M.y=H),h(Z)&&(M.width=Z),h(q)&&(M.height=q);const B=this.createElement("image").attr(M);return m=function(I){B.attr({href:X}),he.call(B,I)},he?(B.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),H=new N.Image,F(H,"load",m),H.src=X,H.complete&&m({})):B.attr({href:X}),B}symbol(X,m,H,Z,q,he){const M=this,B=/^url\((.*?)\)$/,I=B.test(X),K=!I&&(this.symbols[X]?X:"circle"),ne=K&&this.symbols[K];let re,_e,we,Se;if(ne)"number"==typeof m&&(_e=ne.call(this.symbols,Math.round(m||0),Math.round(H||0),Z||0,q||0,he)),re=this.path(_e),M.styledMode||re.attr("fill","none"),R(re,{symbolName:K||void 0,x:m,y:H,width:Z,height:q}),he&&R(re,he);else if(I){we=X.match(B)[1];const Re=re=this.image(we);Re.imgwidth=V(he&&he.width,S[we]&&S[we].width),Re.imgheight=V(he&&he.height,S[we]&&S[we].height),Se=ze=>ze.attr({width:ze.width,height:ze.height}),["width","height"].forEach(function(ze){Re[ze+"Setter"]=function(ie,ee){this[ee]=ie;const{alignByTranslate:Ee,element:pe,width:De,height:Ge,imgwidth:We,imgheight:ut}=this;if(E(ie=this["img"+ee])){let yt=1;he&&"within"===he.backgroundSize&&De&&Ge?(yt=Math.min(De/We,Ge/ut),G(pe,{width:Math.round(We*yt),height:Math.round(ut*yt)})):pe&&pe.setAttribute(ee,ie),Ee||this.translate(((De||0)-We*yt)/2,((Ge||0)-ut*yt)/2)}}}),E(m)&&Re.attr({x:m,y:H}),Re.isImg=!0,E(Re.imgwidth)&&E(Re.imgheight)?Se(Re):(Re.attr({width:0,height:0}),b("img",{onload:function(){const ze=se[M.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),U.body.appendChild(this)),S[we]={width:this.width,height:this.height},Re.imgwidth=this.width,Re.imgheight=this.height,Re.element&&Se(Re),this.parentNode&&this.parentNode.removeChild(this),M.imgCount--,!M.imgCount&&ze&&!ze.hasLoaded&&ze.onload()},src:we}),this.imgCount++)}return re}clipRect(X,m,H,Z){const q=Y()+"-",he=this.createElement("clipPath").attr({id:q}).add(this.defs);return(X=this.rect(X,m,H,Z,0).add(he)).id=q,X.clipPath=he,X.count=0,X}text(X,m,H,Z){const q={};return!Z||!this.allowHTML&&this.forExport?(q.x=Math.round(m||0),H&&(q.y=Math.round(H)),E(X)&&(q.text=X),X=this.createElement("text").attr(q),(!Z||this.forExport&&!this.allowHTML)&&(X.xSetter=function(he,M,B){const I=B.getElementsByTagName("tspan"),K=B.getAttribute(M);for(let re,ne=0;ne(X=D(me.prototype.getStyle.call(X,"font-size")||0))?X+3:Math.round(1.2*X);return{h:m,b:Math.round(.8*m),f:X}}rotCorr(X,m,H){let Z=X;return m&&H&&(Z=Math.max(Z*Math.cos(m*W),4)),{x:-X/3*Math.sin(m*W),y:Z}}pathToSegments(X){const m=[],H=[],Z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let q=0;qX.align())}}return R(Ce.prototype,{Element:me,SVG_NS:A,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Ae,draw:y}),xe.registerRendererType("svg",Ce,!0),Ce}),Oe(be,"Core/Renderer/HTML/HTMLElement.js",[be["Core/Globals.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{isFirefox:xe,isMS:me,isWebKit:fe,win:Ae}=oe,{css:ce,defined:ye,extend:se,pick:W,pInt:U}=ve,Q=[];class te extends le{static compose(y){if(ve.pushUnique(Q,y)){const A=te.prototype,S=y.prototype;S.getSpanCorrection=A.getSpanCorrection,S.htmlCss=A.htmlCss,S.htmlGetBBox=A.htmlGetBBox,S.htmlUpdateTransform=A.htmlUpdateTransform,S.setSpanRotation=A.setSpanRotation}return y}getSpanCorrection(y,A,S){this.xCorr=-y*S,this.yCorr=-A}htmlCss(y){const A="SPAN"===this.element.tagName&&y&&"width"in y,S=W(A&&y.width,void 0);let N;return A&&(delete y.width,this.textWidth=S,N=!0),y&&"ellipsis"===y.textOverflow&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=se(this.styles,y),ce(this.element,y),N&&this.htmlUpdateTransform(),this}htmlGetBBox(){const y=this.element;return{x:y.offsetLeft,y:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}}htmlUpdateTransform(){if(this.added){var y=this.renderer,A=this.element,S=this.x||0,N=this.y||0,F=this.textAlign||"left",G={left:0,center:.5,right:1}[F],b=this.styles,w=b&&b.whiteSpace;if(ce(A,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),"SPAN"===A.tagName){b=this.rotation;const O=this.textWidth&&U(this.textWidth),R=[b,F,A.innerHTML,this.textWidth,this.textAlign].join();let g=!1;if(O!==this.oldTextWidth){if(this.textPxLength)var E=this.textPxLength;else ce(A,{width:"",whiteSpace:w||"nowrap"}),E=A.offsetWidth;(O>this.oldTextWidth||E>O)&&(/[ \-]/.test(A.textContent||A.innerText)||"ellipsis"===A.style.textOverflow)&&(ce(A,{width:E>O||b?O+"px":"auto",display:"block",whiteSpace:w||"normal"}),this.oldTextWidth=O,g=!0)}this.hasBoxWidthChanged=g,R!==this.cTT&&(y=y.fontMetrics(A).b,!ye(b)||b===(this.oldRotation||0)&&F===this.oldAlign||this.setSpanRotation(b,G,y),this.getSpanCorrection(!ye(b)&&this.textPxLength||A.offsetWidth,y,G,b,F)),ce(A,{left:S+(this.xCorr||0)+"px",top:N+(this.yCorr||0)+"px"}),this.cTT=R,this.oldRotation=b,this.oldAlign=F}}else this.alignOnAdd=!0}setSpanRotation(y,A,S){const N={},F=me&&!/Edge/.test(Ae.navigator.userAgent)?"-ms-transform":fe?"-webkit-transform":xe?"MozTransform":Ae.opera?"-o-transform":void 0;F&&(N[F]=N.transform="rotate("+y+"deg)",N[F+(xe?"Origin":"-origin")]=N.transformOrigin=100*A+"% "+S+"px",ce(this.element,N))}}return te}),Oe(be,"Core/Renderer/HTML/HTMLRenderer.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{attr:me,createElement:fe,extend:Ae,pick:ce}=xe,ye=[];class se extends ve{static compose(U){return xe.pushUnique(ye,U)&&(U.prototype.html=se.prototype.html),U}html(U,Q,te){const x=this.createElement("span"),y=x.element,A=x.renderer,S=function(N,F){["opacity","visibility"].forEach(function(G){N[G+"Setter"]=function(b,w,E){const O=N.div?N.div.style:F;le.prototype[G+"Setter"].call(this,b,w,E),O&&(O[w]=b)}}),N.addedSetters=!0};return x.textSetter=function(N){N!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,oe.setElementHTML(this.element,ce(N,"")),this.textStr=N,x.doTransform=!0)},S(x,x.element.style),x.xSetter=x.ySetter=x.alignSetter=x.rotationSetter=function(N,F){"align"===F?x.alignValue=x.textAlign=N:x[F]=N,x.doTransform=!0},x.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},x.attr({text:U,x:Math.round(Q),y:Math.round(te)}).css({position:"absolute"}),A.styledMode||x.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),y.style.whiteSpace="nowrap",x.css=x.htmlCss,x.add=function(N){const F=A.box.parentNode,G=[];let b;if(this.parentGroup=N){if(b=N.div,!b){for(;N;)G.push(N),N=N.parentGroup;G.reverse().forEach(function(w){function E(h,p){w[p]=h,"translateX"===p?g.left=h+"px":g.top=h+"px",w.doTransform=!0}const O=me(w.element,"class"),R=w.styles||{};b=w.div=w.div||fe("div",O?{className:O}:void 0,{position:"absolute",left:(w.translateX||0)+"px",top:(w.translateY||0)+"px",display:w.display,opacity:w.opacity,visibility:w.visibility},b||F);const g=b.style;var h;Ae(w,{classSetter:(h=b,function(p){this.element.setAttribute("class",p),h.className=p}),css:function(h){return x.css.call(w,h),["cursor","pointerEvents"].forEach(p=>{h[p]&&(g[p]=h[p])}),w},on:function(){return G[0].div&&x.on.apply({element:G[0].div,onEvents:w.onEvents},arguments),w},translateXSetter:E,translateYSetter:E}),w.addedSetters||S(w),w.css(R)})}}else b=F;return b.appendChild(y),x.added=!0,x.alignOnAdd&&x.htmlUpdateTransform(),x},x}}return se}),Oe(be,"Core/Axis/AxisDefaults.js",[],function(){var oe=(()=>{return(le=oe||(oe={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},le.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:ve}=this.axis.chart;return ve(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},le.defaultLeftAxisOptions={title:{rotation:270}},le.defaultRightAxisOptions={title:{rotation:90}},le.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},le.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},oe;var le})();return oe}),Oe(be,"Core/Foundation.js",[be["Core/Utilities.js"]],function(oe){const{addEvent:le,isFunction:ve,objectEach:xe,removeEvent:me}=oe;var fe=(()=>((fe||(fe={})).registerEventOptions=function(ce,ye){ce.eventOptions=ce.eventOptions||{},xe(ye.events,function(se,W){ce.eventOptions[W]!==se&&(ce.eventOptions[W]&&(me(ce,W,ce.eventOptions[W]),delete ce.eventOptions[W]),ve(se)&&(ce.eventOptions[W]=se,le(ce,W,se,{order:0})))})},fe))();return fe}),Oe(be,"Core/Axis/Tick.js",[be["Core/Templating.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{deg2rad:xe}=le,{clamp:me,correctFloat:fe,defined:Ae,destroyObjectProperties:ce,extend:ye,fireEvent:se,isNumber:W,merge:U,objectEach:Q,pick:te}=ve;return class{constructor(A,S,N,F,G){this.isNewLabel=this.isNew=!0,this.axis=A,this.pos=S,this.type=N||"",this.parameters=G||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,se(this,"init"),N||F||this.addLabel()}addLabel(){const A=this,S=A.axis;var N=S.options;const F=S.chart;var G=S.categories;const b=S.logarithmic,w=S.names,E=A.pos,O=te(A.options&&A.options.labels,N.labels);var R=S.tickPositions;const g=E===R[0],h=E===R[R.length-1],p=(!O.step||1===O.step)&&1===S.tickInterval;R=R.info;let P,V,D,v=A.label;G=this.parameters.category||(G?te(G[E],w[E],E):E),b&&W(G)&&(G=fe(b.lin2log(G))),S.dateTime&&(R?(V=F.time.resolveDTLFormat(N.dateTimeLabelFormats[!N.grid&&R.higherRanks[E]||R.unitName]),P=V.main):W(G)&&(P=S.dateTime.getXDateFormat(G,N.dateTimeLabelFormats||{}))),A.isFirst=g,A.isLast=h;const Y={axis:S,chart:F,dateTimeLabelFormat:P,isFirst:g,isLast:h,pos:E,tick:A,tickPositionInfo:R,value:G};se(this,"labelFormat",Y);const de=Ne=>O.formatter?O.formatter.call(Ne,Ne):O.format?(Ne.text=S.defaultLabelFormatter.call(Ne,Ne),oe.format(O.format,Ne,F)):S.defaultLabelFormatter.call(Ne,Ne);N=de.call(Y,Y);const Ce=V&&V.list;A.shortenLabel=Ce?function(){for(D=0;DO&&F-R*gb&&(V=Math.round((G-F)/Math.cos(O*xe))):(G=F+(1-R)*g,F-R*gb&&(v=b-A.x+v*R,P=-1),v=Math.min(h,v),vv||S.autoRotation&&(E.styles||{}).width)&&(V=v)),V&&(this.shortenLabel?this.shortenLabel():(p.width=Math.floor(V)+"px",(N.style||{}).textOverflow||(p.textOverflow="ellipsis"),E.css(p)))}moveLabel(A,S){const N=this;var F=N.label;const G=N.axis;let b=!1;F&&F.textStr===A?(N.movedLabel=F,b=!0,delete N.label):Q(G.ticks,function(w){b||w.isNew||w===N||!w.label||w.label.textStr!==A||(N.movedLabel=w.label,b=!0,w.labelPos=N.movedLabel.xy,delete w.label)}),b||!N.labelPos&&!F||(N.movedLabel=N.createLabel(F=N.labelPos||F.xy,A,S),N.movedLabel&&N.movedLabel.attr({opacity:0}))}render(A,S,N){var F=this.axis,G=F.horiz,b=this.pos,w=te(this.tickmarkOffset,F.tickmarkOffset);w=(b=this.getPosition(G,b,w,S)).x,F=G&&w===F.pos+F.len||!G&&b.y===F.pos?-1:1,G=te(N,this.label&&this.label.newOpacity,1),N=te(N,1),this.isActive=!0,this.renderGridLine(S,N,F),this.renderMark(b,N,F),this.renderLabel(b,S,G,A),this.isNew=!1,se(this,"afterRender")}renderGridLine(A,S,N){const F=this.axis,G=F.options,b={},w=this.pos,E=this.type,O=te(this.tickmarkOffset,F.tickmarkOffset),R=F.chart.renderer;let g=this.gridLine,h=G.gridLineWidth,p=G.gridLineColor,v=G.gridLineDashStyle;"minor"===this.type&&(h=G.minorGridLineWidth,p=G.minorGridLineColor,v=G.minorGridLineDashStyle),g||(F.chart.styledMode||(b.stroke=p,b["stroke-width"]=h||0,b.dashstyle=v),E||(b.zIndex=1),A&&(S=0),this.gridLine=g=R.path().attr(b).addClass("highcharts-"+(E?E+"-":"")+"grid-line").add(F.gridGroup)),g&&(N=F.getPlotLinePath({value:w+O,lineWidth:g.strokeWidth()*N,force:"pass",old:A,acrossPanes:!1}))&&g[A||this.isNew?"attr":"animate"]({d:N,opacity:S})}renderMark(A,S,N){const F=this.axis;var G=F.options;const b=F.chart.renderer,w=this.type,E=F.tickSize(w?w+"Tick":"tick"),O=A.x;A=A.y;const R=te(G["minor"!==w?"tickWidth":"minorTickWidth"],!w&&F.isXAxis?1:0);G=G["minor"!==w?"tickColor":"minorTickColor"];let g=this.mark;const h=!g;E&&(F.opposite&&(E[0]=-E[0]),g||(this.mark=g=b.path().addClass("highcharts-"+(w?w+"-":"")+"tick").add(F.axisGroup),F.chart.styledMode||g.attr({stroke:G,"stroke-width":R})),g[h?"attr":"animate"]({d:this.getMarkPath(O,A,E[0],g.strokeWidth()*N,F.horiz,b),opacity:S}))}renderLabel(A,S,N,F){var G=this.axis;const b=G.horiz,w=G.options,E=this.label,O=w.labels,R=O.step;G=te(this.tickmarkOffset,G.tickmarkOffset);const g=A.x;A=A.y;let h=!0;E&&W(g)&&(E.xy=A=this.getLabelPosition(g,A,E,b,O,G,F,R),this.isFirst&&!this.isLast&&!w.showFirstLabel||this.isLast&&!this.isFirst&&!w.showLastLabel?h=!1:!b||O.step||O.rotation||S||0===N||this.handleOverflow(A),R&&F%R&&(h=!1),h&&W(A.y)?(A.opacity=N,E[this.isNewLabel?"attr":"animate"](A).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const A=this.label,S=this.axis;A&&!this.isNew&&(A.animate({opacity:0},void 0,A.destroy),delete this.label),S.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),Oe(be,"Core/Axis/Axis.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/AxisDefaults.js"],be["Core/Color/Color.js"],be["Core/Defaults.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Axis/Tick.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce){const{animObject:ye}=oe,{defaultOptions:se}=xe,{registerEventOptions:W}=me,{deg2rad:U}=fe,{arrayMax:Q,arrayMin:te,clamp:x,correctFloat:y,defined:A,destroyObjectProperties:S,erase:N,error:F,extend:G,fireEvent:b,getClosestDistance:w,insertItem:E,isArray:O,isNumber:R,isString:g,merge:h,normalizeTickInterval:p,objectEach:v,pick:P,relativeLength:V,removeEvent:D,splat:Y,syncTimeout:de}=ce,Ce=(X,m)=>p(m,void 0,void 0,P(X.options.allowDecimals,.5>m||void 0!==X.tickAmount),!!X.tickAmount);class Ne{constructor(m,H,Z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(m,H,Z)}init(m,H,Z=this.coll){const q="xAxis"===Z;this.chart=m,this.horiz=this.isZAxis||(m.inverted?!q:q),this.isXAxis=q,this.coll=Z,b(this,"init",{userOptions:H}),this.opposite=P(H.opposite,this.opposite),this.side=P(H.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(H);const he=(Z=this.options).labels,M=Z.type;this.userOptions=H,this.minPixelPadding=0,this.reversed=P(Z.reversed,this.reversed),this.visible=Z.visible,this.zoomEnabled=Z.zoomEnabled,this.hasNames="category"===M||!0===Z.categories,this.categories=Z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=A(Z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=Z.minRange||Z.maxZoom,this.range=Z.range,this.offset=Z.offset||0,this.min=this.max=null,H=P(Z.crosshair,Y(m.options.tooltip.crosshairs)[q?0:1]),this.crosshair=!0===H?{}:H,-1===m.axes.indexOf(this)&&(q?m.axes.splice(m.xAxis.length,0,this):m.axes.push(this),E(this,m[this.coll])),m.orderItems(this.coll),this.series=this.series||[],m.inverted&&!this.isZAxis&&q&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=R(he.rotation)?he.rotation:void 0,W(this,Z),b(this,"afterInit")}setOptions(m){this.options=h(le.defaultXAxisOptions,"yAxis"===this.coll&&le.defaultYAxisOptions,[le.defaultTopAxisOptions,le.defaultRightAxisOptions,le.defaultBottomAxisOptions,le.defaultLeftAxisOptions][this.side],h(se[this.coll],m)),b(this,"afterSetOptions",{userOptions:m})}defaultLabelFormatter(m){var H=this.axis;({numberFormatter:m}=this.chart);const Z=R(this.value)?this.value:NaN,q=H.chart.time,he=this.dateTimeLabelFormat;var M=se.lang;const B=M.numericSymbols;M=M.numericSymbolMagnitude||1e3;const I=H.logarithmic?Math.abs(Z):H.tickInterval;let ne,K=B&&B.length;if(H.categories)ne=`${this.value}`;else if(he)ne=q.dateFormat(he,Z);else if(K&&1e3<=I)for(;K--&&void 0===ne;)I>=(H=Math.pow(M,K+1))&&10*Z%H==0&&null!==B[K]&&0!==Z&&(ne=m(Z/H,-1)+B[K]);return void 0===ne&&(ne=1e4<=Math.abs(Z)?m(Z,-1):m(Z,-1,void 0,"")),ne}getSeriesExtremes(){const m=this,H=m.chart;let Z;b(this,"getSeriesExtremes",null,function(){m.hasVisibleSeries=!1,m.dataMin=m.dataMax=m.threshold=null,m.softThreshold=!m.isXAxis,m.series.forEach(function(q){if(q.visible||!H.options.chart.ignoreHiddenSeries){var he=q.options;let B,I,M=he.threshold;m.hasVisibleSeries=!0,m.positiveValuesOnly&&0>=M&&(M=null),m.isXAxis?(he=q.xData)&&he.length&&(he=m.logarithmic?he.filter(K=>0Ge)&&(Se?pe=x(pe,De,Ge):Ee=!0),pe}const Z=this,q=Z.chart,he=Z.left,M=Z.top,B=m.old,I=m.value,K=m.lineWidth,ne=B&&q.oldChartHeight||q.chartHeight,re=B&&q.oldChartWidth||q.chartWidth,_e=Z.transB;let Re,ze,ie,ee,Ee,we=m.translatedValue,Se=m.force;return b(this,"getPlotLinePath",m={value:I,lineWidth:K,old:B,force:Se,acrossPanes:m.acrossPanes,translatedValue:we},function(pe){we=P(we,Z.translate(I,void 0,void 0,B)),we=x(we,-1e5,1e5),Re=ie=Math.round(we+_e),ze=ee=Math.round(ne-we-_e),R(we)?Z.horiz?(ze=M,ee=ne-Z.bottom,Re=ie=H(Re,he,he+Z.width)):(Re=he,ie=re-Z.right,ze=ee=H(ze,M,M+Z.height)):(Ee=!0,Se=!1),pe.path=Ee&&!Se?null:q.renderer.crispLine([["M",Re,ze],["L",ie,ee]],K||1)}),m.path}getLinearTickPositions(m,H,Z){const q=y(Math.floor(H/m)*m);Z=y(Math.ceil(Z/m)*m);const he=[];let M,B;if(y(q+m)===q&&(B=20),this.single)return[H];for(H=q;H<=Z&&(he.push(H),(H=y(H+m,B))!==M);)M=H;return he}getMinorTickInterval(){const m=this.options;return!0===m.minorTicks?P(m.minorTickInterval,"auto"):!1===m.minorTicks?null:m.minorTickInterval}getMinorTickPositions(){var m=this.options;const H=this.tickPositions,Z=this.minorTickInterval;var q=this.pointRangePadding||0;const he=this.min-q,M=(q=this.max+q)-he;let B=[];if(M&&M/Z{var K;return(I.xIncrement?null===(K=I.xData)||void 0===K?void 0:K.slice(0,2):I.xData)||[]}))||0;this.minRange=Math.min(5*B,this.dataMax-this.dataMin)}q-Z=this.minRange,M=this.minRange,he=[Z-(q=(M-q+Z)/2),P(m.min,Z-q)],B&&(he[2]=H?H.log2lin(this.dataMin):this.dataMin),Z=Q(he),q=[Z+M,P(m.max,Z+M)],B&&(q[2]=H?H.log2lin(this.dataMax):this.dataMax),(q=te(q))-Zq-he),m=w([Z]))}return m&&H?Math.min(m,H):m||H}nameToX(m){const H=O(this.options.categories),Z=H?this.categories:this.names;let he,q=m.options.x;return m.series.requireSorting=!1,A(q)||(q=this.options.uniqueNames&&Z?H?Z.indexOf(m.name):P(Z.keys[m.name],-1):m.series.autoIncrement()),-1===q?!H&&Z&&(he=Z.length):he=q,void 0!==he?(this.names[he]=m.name,this.names.keys[m.name]=he):m.x&&(he=m.x),he}updateNames(){const m=this,H=this.names;0=we?(ie=we,re=0):this.dataMax<=we&&(Se=we,ne=0)),this.min=P(Re,ie,this.dataMin),this.max=P(ze,Se,this.dataMax);if(Z&&(this.positiveValuesOnly&&!m&&0>=Math.min(this.min,P(this.dataMin,this.min))&&F(10,1,H),this.min=y(Z.log2lin(this.min),16),this.max=y(Z.log2lin(this.max),16)),this.range&&A(this.max)&&(this.userMin=this.min=Re=Math.max(this.dataMin,this.minFromRange()),this.userMax=ze=this.max,this.range=null),b(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!R(this.userMin)&&R(q.softMin)&&q.softMinthis.max&&(this.max=ze=q.softMax),!(I||this.axisPointRange||this.stacking&&this.stacking.usePercentage||M)&&A(this.min)&&A(this.max)&&(H=this.max-this.min)&&(!A(Re)&&re&&(this.min-=H*re),!A(ze)&&ne&&(this.max+=H*ne)),!R(this.userMin)&&R(q.floor)&&(this.min=Math.max(this.min,q.floor)),!R(this.userMax)&&R(q.ceiling)&&(this.max=Math.min(this.max,q.ceiling)),K&&A(this.dataMin)&&(we=we||0,!A(Re)&&this.min=we?this.min=this.options.minRange?Math.min(we,this.max-this.minRange):we:!A(ze)&&this.max>we&&this.dataMax<=we&&(this.max=this.options.minRange?Math.max(we,this.min+this.minRange):we)),R(this.min)&&R(this.max)&&!this.chart.polar&&this.min>this.max&&(A(this.options.min)?this.max=this.min:A(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:M&&this.linkedParent&&!_e&&B===this.linkedParent.options.tickPixelInterval?_e=this.linkedParent.tickInterval:P(_e,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,I?1:(this.max-this.min)*B/Math.max(this.len,B)),he&&!m){const ee=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Ee){Ee.forceCrop=Ee.forceCropping&&Ee.forceCropping(),Ee.processData(ee)}),b(this,"postProcessData",{hasExtremesChanged:ee})}this.setAxisTranslation(),b(this,"initialAxisTranslation"),this.pointRange&&!_e&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),m=P(q.minTickInterval,this.dateTime&&!this.series.some(ee=>ee.noSharedTooltip)?this.closestPointRange:0),!_e&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)M=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,m.units),this.min,this.max,m.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)M=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(q=m=this.tickInterval;q<=2*m&&(M=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&M.length>this.tickAmount);)this.tickInterval=Ce(this,q*=1.1);else M=[this.min,this.max],F(19,!1,this.chart);M.length>this.len&&(M=[M[0],M[M.length-1]])[0]===M[1]&&(M.length=1),Z&&(this.tickPositions=M,(I=Z.apply(this,[this.min,this.max]))&&(M=I))}this.tickPositions=M,this.paddedTicks=M.slice(0),this.trimTicks(M,B,he),!this.isLinked&&R(this.min)&&R(this.max)&&(this.single&&2>M.length&&!this.categories&&!this.series.some(K=>K.is("heatmap")&&"between"===K.options.pointPlacement)&&(this.min-=.5,this.max+=.5),H||I||this.adjustTickAmount()),b(this,"afterSetTickPositions")}trimTicks(m,H,Z){const q=m[0],he=m[m.length-1],M=!this.isOrdinal&&this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(H&&q!==-1/0)this.min=q;else for(;this.min-M>m[0];)m.shift();if(Z)this.max=he;else for(;this.max+M{const{horiz:ne,options:re}=K;return[ne?re.left:re.top,re.width,re.height,re.pane].join()},I=B(this);this.chart[this.coll].forEach(function(K){const{series:ne}=K;ne.length&&ne.some(re=>re.visible)&&K!==m&&B(K)===I&&(M=!0,H.push(K))})}if(M&&q){H.forEach(I=>{I=I.getThresholdAlignment(m),R(I)&&he.push(I)});const B=1I+K,0)/he.length:void 0;H.forEach(I=>{I.thresholdAlignment=B})}return M}getThresholdAlignment(m){if((!R(this.dataMin)||this!==m&&this.series.some(H=>H.isDirty||H.isDirtyData))&&this.getSeriesExtremes(),R(this.threshold))return m=x((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(m=1-m),m}getTickAmount(){const m=this.options,H=m.tickPixelInterval;let Z=m.tickAmount;!A(m.tickInterval)&&!Z&&this.lenZ&&(this.finalTickAmt=Z,Z=5),this.tickAmount=Z}adjustTickAmount(){const m=this,{finalTickAmt:H,max:Z,min:q,options:he,tickPositions:M,tickAmount:B,thresholdAlignment:I}=m,K=M&&M.length;var ne=P(m.threshold,m.softThreshold?0:null),re=m.tickInterval;let _e;if(R(I)&&(_e=.5>I?Math.ceil(I*(B-1)):Math.floor(I*(B-1)),he.reversed&&(_e=B-1-_e)),m.hasData()&&R(q)&&R(Z)){const we=()=>{m.transA*=(K-1)/(B-1),m.min=he.startOnTick?M[0]:Math.min(q,M[0]),m.max=he.endOnTick?M[M.length-1]:Math.max(Z,M[M.length-1])};if(R(_e)&&R(m.threshold)){for(;M[_e]!==ne||M.length!==B||M[0]>q||M[M.length-1]m.threshold?M.unshift(y(M[0]-re)):M.push(y(M[M.length-1]+re));if(re>8*m.tickInterval)break;re*=2}we()}else if(K=H&&0I&&(ne=I)),A(he)&&(reI&&(re=I))),Z.displayBtn=void 0!==ne||void 0!==re,Z.setExtremes(ne,re,!1,void 0,{trigger:"zoom"})),K.zoomed=!0}),m.zoomed}setAxisSize(){const m=this.chart;var H=this.options;const Z=H.offsets||[0,0,0,0],q=this.horiz,he=this.width=Math.round(V(P(H.width,m.plotWidth-Z[3]+Z[1]),m.plotWidth)),M=this.height=Math.round(V(P(H.height,m.plotHeight-Z[0]+Z[2]),m.plotHeight)),B=this.top=Math.round(V(P(H.top,m.plotTop+Z[0]),m.plotHeight,m.plotTop));H=this.left=Math.round(V(P(H.left,m.plotLeft+Z[3]),m.plotWidth,m.plotLeft)),this.bottom=m.chartHeight-M-B,this.right=m.chartWidth-he-H,this.len=Math.max(q?he:M,0),this.pos=q?H:B}getExtremes(){const m=this.logarithmic;return{min:m?y(m.lin2log(this.min)):this.min,max:m?y(m.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(m){var H=this.logarithmic;const Z=H?H.lin2log(this.min):this.min;return H=H?H.lin2log(this.max):this.max,null===m||m===-1/0?m=Z:m===1/0?m=H:Z>m?m=Z:HH?Z.align="right":195H&&(Z.align="left")}),m.align}tickSize(m){const H=this.options,Z=P(H["tick"===m?"tickWidth":"minorTickWidth"],"tick"===m&&this.isXAxis&&!this.categories?1:0);let he,q=H["tick"===m?"tickLength":"minorTickLength"];return Z&&q&&("inside"===H[m+"Position"]&&(q=-q),he=[q,Z]),b(this,"afterTickSize",m={tickSize:he}),m.tickSize}labelMetrics(){const m=this.chart.renderer;var H=this.ticks;return H=H[Object.keys(H)[0]]||{},this.chart.renderer.fontMetrics(H.label||H.movedLabel||m.box)}unsquish(){const m=this.options.labels;var H=this.horiz;const Z=this.tickInterval,q=this.len/(((this.categories?1:0)+this.max-this.min)/Z),he=m.rotation,M=.75*this.labelMetrics().h,B=Math.max(this.max-this.min,0),I=function(we){let Se=we/(q||1);return Se=1B&&we!==1/0&&q!==1/0&&B&&(Se=Math.ceil(B/Z)),y(Se*Z)};let ne,_e,K=Z,re=Number.MAX_VALUE;if(H){if(m.staggerLines||(R(he)?_e=[he]:q=Se)&&(we=(H=I(Math.abs(M/Math.sin(U*Se))))+Math.abs(Se/360),weq.step)return q.rotation?0:(this.staggerLines||1)*this.len/he;if(!Z){if(void 0!==(m=q.style.width))return parseInt(String(m),10);if(M)return M-H.spacing[3]}return.33*H.chartWidth}renderUnsquish(){const m=this.chart,H=m.renderer,Z=this.tickPositions,q=this.ticks,he=this.options.labels,M=he.style,B=this.horiz,I=this.getSlotWidth();var K=Math.max(1,Math.round(I-2*he.padding));const ne={},re=this.labelMetrics(),_e=M.textOverflow;let we,Se,Re=0;if(g(he.rotation)||(ne.rotation=he.rotation||0),Z.forEach(function(ie){(ie=q[ie]).movedLabel&&ie.replaceMovedLabel(),ie&&ie.label&&ie.label.textPxLength>Re&&(Re=ie.label.textPxLength)}),this.maxLabelLength=Re,this.autoRotation)Re>K&&Re>re.h?ne.rotation=this.labelRotation:this.labelRotation=0;else if(I&&(we=K,!_e))for(Se="clip",K=Z.length;!B&&K--;){var ze=Z[K];(ze=q[ze].label)&&(ze.styles&&"ellipsis"===ze.styles.textOverflow?ze.css({textOverflow:"clip"}):ze.textPxLength>I&&ze.css({width:I+"px"}),ze.getBBox().height>this.len/Z.length-(re.h-re.f)&&(ze.specificTextOverflow="ellipsis"))}ne.rotation&&(we=Re>.5*m.chartHeight?.33*m.chartHeight:Re,_e||(Se="ellipsis")),(this.labelAlign=he.align||this.autoLabelAlign(this.labelRotation))&&(ne.align=this.labelAlign),Z.forEach(function(ie){const ee=(ie=q[ie])&&ie.label,Ee=M.width,pe={};ee&&(ee.attr(ne),ie.shortenLabel?ie.shortenLabel():we&&!Ee&&"nowrap"!==M.whiteSpace&&(wene.g(ft).attr({zIndex:Zt}).addClass(`highcharts-${I.toLowerCase()}${_t} `+(this.isRadial?`highcharts-radial-axis${_t} `:"")+(Ee||"")).add(K);m.gridGroup=yt("grid","-grid",q.gridZIndex),m.axisGroup=yt("axis","",q.zIndex),m.labelGroup=yt("axis-labels","-labels",Se.zIndex)}_e||m.isLinked?(B.forEach(function(yt){m.generateTick(yt)}),m.renderUnsquish(),m.reserveSpaceDefault=0===he||2===he||{1:"left",3:"right"}[he]===m.labelAlign,P(Se.reserveSpace,!Re&&null,"center"===m.labelAlign||null,m.reserveSpaceDefault)&&B.forEach(function(yt){ut=Math.max(M[yt].getLabelSize(),ut)}),m.staggerLines&&(ut*=m.staggerLines),m.labelOffset=ut*(m.opposite?-1:1)):v(M,function(yt,ft){yt.destroy(),delete M[ft]}),we&&we.text&&!1!==we.enabled&&(m.addTitle(pe),pe&&!Re&&!1!==we.reserveSpace&&(m.titleOffset=De=m.axisTitle.getBBox()[Z?"height":"width"],Ge=we.offset,We=A(Ge)?0:P(we.margin,Z?5:10))),m.renderLine(),m.offset=ee*P(q.offset,ze[he]?ze[he]+(q.margin||0):0),m.tickRotCorr=m.tickRotCorr||{x:0,y:0},_e=0===he?-m.labelMetrics().h:2===he?m.tickRotCorr.y:0,We=Math.abs(ut)+We,ut&&(We=We-_e+ee*(Z?P(Se.y,m.tickRotCorr.y+ee*Se.distance):P(Se.x,ee*Se.distance))),m.axisTitleMargin=P(Ge,We),m.getMaxLabelDimensions&&(m.maxLabelDimensions=m.getMaxLabelDimensions(M,B)),"colorAxis"!==I&&(Se=this.tickSize("tick"),ze[he]=Math.max(ze[he],(m.axisTitleMargin||0)+De+ee*m.offset,We,B&&B.length&&Se?Se[0]+ee*m.offset:0),ze=!m.axisLine||q.offset?0:2*Math.floor(m.axisLine.strokeWidth()/2),ie[re]=Math.max(ie[re],ze)),b(this,"afterGetOffset")}getLinePath(m){const H=this.chart,Z=this.opposite;var q=this.offset;const he=this.horiz,M=this.left+(Z?this.width:0)+q;return q=H.chartHeight-this.bottom-(Z?this.height:0)+q,Z&&(m*=-1),H.renderer.crispLine([["M",he?this.left:M,he?q:this.top],["L",he?H.chartWidth-this.right:M,he?q:H.chartHeight-this.bottom]],m)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(m){var H=this.horiz,Z=this.left;const q=this.top;var he=this.len;const M=this.options.title,B=H?Z:q,I=this.opposite,K=this.offset,ne=M.x,re=M.y,_e=this.chart.renderer.fontMetrics(m);return m=m?Math.max(m.getBBox(!1,0).height-_e.h-1,0):0,he={low:B+(H?0:he),middle:B+he/2,high:B+(H?he:0)}[M.align],Z=(H?q+this.height:Z)+(H?1:-1)*(I?-1:1)*(this.axisTitleMargin||0)+[-m,m,_e.f,-m][this.side],b(this,"afterGetTitlePosition",{titlePosition:H={x:H?he+ne:Z+(I?this.width:0)+K+ne,y:H?Z+re-(I?this.height:0)+K:he+re}}),H}renderMinorTick(m,H){const Z=this.minorTicks;Z[m]||(Z[m]=new Ae(this,m,"minor")),H&&Z[m].isNew&&Z[m].render(null,!0),Z[m].render(null,!1,1)}renderTick(m,H,Z){const q=this.ticks;(!this.isLinked||m>=this.min&&m<=this.max||this.grid&&this.grid.isColumn)&&(q[m]||(q[m]=new Ae(this,m)),Z&&q[m].isNew&&q[m].render(H,!0,-1),q[m].render(H))}render(){const m=this,H=m.chart,Z=m.logarithmic,q=m.options,he=m.isLinked,M=m.tickPositions,B=m.axisTitle,I=m.ticks,K=m.minorTicks,ne=m.alternateBands,re=q.stackLabels,_e=q.alternateGridColor;var we=q.crossing;const Se=m.tickmarkOffset,Re=m.axisLine,ze=m.showAxis,ie=ye(H.renderer.globalAnimation);let ee,Ee;if(m.labelEdge.length=0,m.overlap=!1,[I,K,ne].forEach(function(pe){v(pe,function(De){De.isActive=!1})}),R(we)){const pe=this.isXAxis?H.yAxis[0]:H.xAxis[0],De=[1,-1,-1,1][this.side];pe&&(we=pe.toPixels(we,!0),m.horiz&&(we=pe.len-we),m.offset=De*we)}if(m.hasData()||he){const pe=m.chart.hasRendered&&m.old&&R(m.old.min);m.minorTickInterval&&!m.categories&&m.getMinorTickPositions().forEach(function(De){m.renderMinorTick(De,pe)}),M.length&&(M.forEach(function(De,Ge){m.renderTick(De,Ge,pe)}),Se&&(0===m.min||m.single)&&(I[-1]||(I[-1]=new Ae(m,-1,null,!0)),I[-1].render(-1))),_e&&M.forEach(function(De,Ge){Ee=void 0!==M[Ge+1]?M[Ge+1]+Se:m.max-Se,Ge%2==0&&DeQ&&(!x||w<=te)&&void 0!==w&&N.push(w),w>te&&(E=!0),w=b}else Q=this.lin2log(Q),te=this.lin2log(te),U=x?y.getMinorTickInterval():S.tickInterval,U=xe("auto"===U?null:U,this.minorAutoInterval,S.tickPixelInterval/(x?5:1)*(te-Q)/((x?A/y.tickPositions.length:A)||1)),U=ve(U),N=y.getLinearTickPositions(U,Q,te).map(this.log2lin),x||(this.minorAutoInterval=U/5);return x||(y.tickInterval=U),N}lin2log(U){return Math.pow(10,U)}log2lin(U){return Math.log(U)/Math.LN10}}fe.Additions=se}(me||(me={})),me}),Oe(be,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[be["Core/Utilities.js"]],function(oe){const{erase:le,extend:ve,isNumber:xe}=oe;var me;return function(fe){function Ae(y){return this.addPlotBandOrLine(y,"plotBands")}function ce(y,A){const S=this.userOptions;let N=new x(this,y);if(this.visible&&(N=N.render()),N){if(this._addedPlotLB||(this._addedPlotLB=!0,(S.plotLines||[]).concat(S.plotBands||[]).forEach(F=>{this.addPlotBandOrLine(F)})),A){const F=S[A]||[];F.push(y),S[A]=F}this.plotLinesAndBands.push(N)}return N}function ye(y){return this.addPlotBandOrLine(y,"plotLines")}function se(y,A,S=this.options){const N=this.getPlotLinePath({value:A,force:!0,acrossPanes:S.acrossPanes}),F=[],G=this.horiz;let b;if(A=!xe(this.min)||!xe(this.max)||ythis.max&&A>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:S.acrossPanes}),S=1,y&&N)for(A&&(b=y.toString()===N.toString(),S=0),A=0;A{const I="x"===B;return[B,I?Y:de,I?O:R].concat(V?[I?O*Ce.scaleX:R*Ce.scaleY,I?Ce.left-p+(g.plotX+h.plotLeft)*Ce.scaleX:Ce.top-p+(g.plotY+h.plotTop)*Ce.scaleY,0,I?Y:de]:[I?O:R,I?g.plotX+h.plotLeft:g.plotY+h.plotTop,I?h.plotLeft:h.plotTop,I?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])})("y"),X=D("x");D=!!g.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(D=!D);const H=!this.followPointer&&F(g.ttBelow,!h.inverted===D),Z=function(B,I,K,ne,re,_e,we){const Se=V?"y"===B?p*Ce.scaleY:p*Ce.scaleX:p,Re=(K-ne)/2,ze=neee-P?ee:ee-P);else{if(!ie)return!1;v[B]=Math.max(_e,re+P+K>I?re:re+P)}},q=function(B,I,K,ne,re){let _e;return reI-p?_e=!1:v[B]=reI-ne/2?I-ne-2:re-K/2,_e},he=function(B){const I=Ne;Ne=X,X=I,m=B},M=function(){!1!==Z.apply(0,Ne)?!1!==q.apply(0,X)||m||(he(!0),M()):m?v.x=v.y=0:(he(!0),M())};return(h.inverted||1p.isDirectTouch||q.series.shouldShowTooltip(H,Z)))return void this.hide();R=this.getLabel(),h.style.width&&!Ce||R.css({width:(this.outside?this.getPlayingField():g.spacingBox).width+"px"}),R.attr({text:D&&D.join?D.join(""):D}),R.addClass(this.getClassName(P),!0),Ce||R.attr({stroke:h.borderColor||P.color||Y.color||"#666666"}),this.updatePosition({plotX:X,plotY:m,negative:P.negative,ttBelow:P.ttBelow,h:O[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}x(this,"refresh")}}renderSplit(O,R){function g(pe,De,Ge,We,ut=!0){return Ge?(De=K?0:Se,pe=W(pe-We/2,M.left,M.right-We-(h.outside?ne:0))):(De-=_e,pe=W(pe=ut?pe-We-Z:pe+Z,ut?pe:M.left,M.right)),{x:pe,y:De}}const h=this,{chart:p,chart:{chartWidth:v,chartHeight:P,plotHeight:V,plotLeft:D,plotTop:Y,pointer:de,scrollablePixelsY:Ce=0,scrollablePixelsX:Ne,scrollingContainer:{scrollLeft:X,scrollTop:m}={scrollLeft:0,scrollTop:0},styledMode:H},distance:Z,options:q,options:{positioner:he}}=h,M=h.outside&&"number"!=typeof Ne?Ae.documentElement.getBoundingClientRect():{left:X,right:X+v,top:m,bottom:m+P},B=h.getLabel(),I=this.renderer||p.renderer,K=!(!p.xAxis[0]||!p.xAxis[0].opposite),{left:ne,top:re}=de.getChartPosition();let _e=Y+m,we=0,Se=V-Ce;S(O)&&(O=[!1,O]),O=O.slice(0,R.length+1).reduce(function(pe,De,Ge){if(!1!==De&&""!==De){const Zt=(Ge=R[Ge-1]||{isHeader:!0,plotX:R[0].plotX,plotY:V,series:{}}).isHeader;var ut,We=Zt?h:Ge.series;{var yt=Ge;De=De.toString();var ft=We.tt;const{isHeader:Xt,series:ii}=yt;ft||(ft={padding:q.padding,r:q.borderRadius},H||(ft.fill=q.backgroundColor,ft["stroke-width"]=null!==(ut=q.borderWidth)&&void 0!==ut?ut:1),ft=I.label("",0,0,q[Xt?"headerShape":"shape"],void 0,void 0,q.useHTML).addClass(h.getClassName(yt,!0,Xt)).attr(ft).add(B)),ft.isActive=!0,ft.attr({text:De}),H||ft.css(q.style).attr({stroke:q.borderColor||yt.color||ii.color||"#333333"}),ut=ft}ut=We.tt=ut,We=(yt=ut.getBBox()).width+ut.strokeWidth(),Zt&&(we=yt.height,Se+=we,K&&(_e-=we));{const{isHeader:Xt,plotX:ii=0,plotY:Tn=0,series:tn}=Ge;if(Xt){De=D+ii;var _t=Y+V/2}else{const{xAxis:Es,yAxis:Bt}=tn;De=Es.pos+W(ii,-Z,Es.len+Z),tn.shouldShowTooltip(0,Bt.pos-Y+Tn,{ignoreX:!0})&&(_t=Bt.pos+Tn)}_t={anchorX:De=W(De,M.left-Z,M.right+Z),anchorY:_t}}const{anchorX:Nt,anchorY:Lt}=_t;"number"==typeof Lt?(_t=yt.height+1,yt=he?he.call(h,We,_t,Ge):g(Nt,Lt,Zt,We),pe.push({align:he?0:void 0,anchorX:Nt,anchorY:Lt,boxWidth:We,point:Ge,rank:F(yt.rank,Zt?1:0),size:_t,target:yt.y,tt:ut,x:yt.x})):ut.isActive=!1}return pe},[]),!he&&O.some(pe=>{var{outside:De}=h;return(De=(De?ne:0)+pe.anchorX)De})&&(O=O.map(pe=>{const{x:De,y:Ge}=g(pe.anchorX,pe.anchorY,pe.point.isHeader,pe.boxWidth,!1);return te(pe,{target:Ge,x:De})})),h.cleanSplit(),ye(O,Se);var Re=ne,ze=ne;O.forEach(function(pe){const{x:De,boxWidth:Ge,isHeader:We}=pe;We||(h.outside&&ne+Deze&&(ze=ne+De))}),O.forEach(function(pe){const{x:De,anchorX:Ge,anchorY:We,pos:ut,point:{isHeader:yt}}=pe,ft={visibility:void 0===ut?"hidden":"inherit",x:De,y:(ut||0)+_e,anchorX:Ge,anchorY:We};if(h.outside&&Deg[0]?Math.max(Math.abs(g[0]),p.width-g[0]):Math.max(Math.abs(g[0]),p.width),h.height=0>g[1]?Math.max(Math.abs(g[1]),p.height-Math.abs(g[1])):Math.max(Math.abs(g[1]),p.height),this.tracker?this.tracker.attr(h):(this.tracker=R.renderer.rect(h).addClass("highcharts-tracker").add(R),O.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(O){return O.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(O,R){const g=O.series,h=g.tooltipOptions;var p=g.xAxis;const v=p&&p.dateTime;let P=h.xDateFormat,V=h[R?"footerFormat":"headerFormat"];return x(this,"headerFormatter",p={isFooter:R,labelConfig:O},function(D){v&&!P&&A(O.key)&&(P=v.getXDateFormat(O.key,h.dateTimeLabelFormats)),v&&P&&(O.point&&O.point.tooltipDateKeys||["key"]).forEach(function(Y){V=V.replace("{point."+Y+"}","{point."+Y+":"+P+"}")}),g.chart.styledMode&&(V=this.styledModeFormat(V)),D.text=fe(V,{point:O,series:g},this.chart)}),p.text}update(O){this.destroy(),this.init(this.chart,N(!0,this.options,O))}updatePosition(O){const{chart:R,distance:g,options:h}=this;var p=R.pointer;const v=this.getLabel(),{left:P,top:V,scaleX:D,scaleY:Y}=p.getChartPosition();p=(h.positioner||this.getPosition).call(this,v.width,v.height,O);let Ce,de=(O.plotX||0)+R.plotLeft;O=(O.plotY||0)+R.plotTop,this.outside&&(h.positioner&&(p.x+=P-g,p.y+=V-g),Ce=(h.borderWidth||0)+2*g,this.renderer.setSize(v.width+Ce,v.height+Ce,!1),(1!==D||1!==Y)&&(U(this.container,{transform:`scale(${D}, ${Y})`}),de*=D,O*=Y),de+=P-p.x,O+=V-p.y),this.move(Math.round(p.x),Math.round(p.y||0),de,O)}}return function(E){const O=[];E.compose=function(R){me.pushUnique(O,R)&&se(R,"afterInit",function(){const g=this.chart;g.options.tooltip&&(g.tooltip=new E(g,g.options.tooltip))})}}(w||(w={})),w}),Oe(be,"Core/Series/Point.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Animation/AnimationUtilities.js"],be["Core/Defaults.js"],be["Core/Templating.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me){const{animObject:fe}=le,{defaultOptions:Ae}=ve,{format:ce}=xe,{addEvent:ye,defined:se,erase:W,extend:U,fireEvent:Q,getNestedProperty:te,isArray:x,isFunction:y,isNumber:A,isObject:S,merge:N,objectEach:F,pick:G,syncTimeout:b,removeEvent:w,uniqueKey:E}=me;class O{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const g=this,h={x:g.startXPos,opacity:0},p=g.getGraphicalProps();p.singular.forEach(function(v){g[v]=g[v].animate("dataLabel"===v?{x:g[v].startXPos,y:g[v].startYPos,opacity:0}:h)}),p.plural.forEach(function(v){g[v].forEach(function(P){P.element&&P.animate(U({x:g.startXPos},P.startYPos?{x:P.startXPos,y:P.startYPos}:{}))})})}applyOptions(g,h){const p=this.series,v=p.options.pointValKey||p.pointValKey;return g=O.prototype.optionsToObject.call(this,g),U(this,g),this.options=this.options?U(this.options,g):g,g.group&&delete this.group,g.dataLabels&&delete this.dataLabels,v&&(this.y=O.prototype.getNestedProperty.call(this,v)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===h&&p.xAxis&&p.xAxis.hasNames&&(this.x=p.xAxis.nameToX(this)),void 0===this.x&&p?this.x=void 0===h?p.autoIncrement():h:A(g.x)&&p.options.relativeXValue&&(this.x=p.autoIncrement(g.x)),this}destroy(){if(!this.destroyed){const h=this;var g=h.series;const p=g.chart;g=g.options.dataSorting;const v=p.hoverPoints,P=fe(h.series.chart.renderer.globalAnimation),V=()=>{(h.graphic||h.graphics||h.dataLabel||h.dataLabels)&&(w(h),h.destroyElements());for(const D in h)delete h[D]};h.legendItem&&p.legend.destroyItem(h),v&&(h.setState(),W(v,h),v.length||(p.hoverPoints=null)),h===p.hoverPoint&&h.onMouseOut(),g&&g.enabled?(this.animateBeforeDestroy(),b(V,P.duration)):V(),p.pointCount--}this.destroyed=!0}destroyElements(g){const h=this;(g=h.getGraphicalProps(g)).singular.forEach(function(p){h[p]=h[p].destroy()}),g.plural.forEach(function(p){h[p].forEach(function(v){v&&v.element&&v.destroy()}),delete h[p]})}firePointEvent(g,h,p){const v=this,P=this.series.options;(P.point.events[g]||v.options&&v.options.events&&v.options.events[g])&&v.importEvents(),"click"===g&&P.allowPointSelect&&(p=function(V){v.select&&v.select(null,V.ctrlKey||V.metaKey||V.shiftKey)}),Q(v,g,h,p)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(g){const h=this,p=[],v={singular:[],plural:[]};let P,V;for((g=g||{graphic:1,dataLabel:1}).graphic&&p.push("graphic"),g.dataLabel&&p.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),V=p.length;V--;)P=p[V],h[P]&&v.singular.push(P);return["graphic","dataLabel","connector"].forEach(function(D){const Y=D+"s";g[D]&&h[Y]&&v.plural.push(Y)}),v}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(g){if(g)return 0===g.indexOf("custom.")?te(g,this.options):this[g]}getZone(){var g=this.series;const h=g.zones;g=g.zoneAxis||"y";let p,v=0;for(p=h[v];this[g]>=p.value;)p=h[++v];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=p&&p.color&&!this.options.color?p.color:this.nonZonedColor,p}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(g,h,p){return this.series=g,this.applyOptions(h,p),this.id=se(this.id)?this.id:E(),this.resolveColor(),g.chart.pointCount++,Q(this,"afterInit"),this}isValid(){return null!==this.x&&A(this.y)}optionsToObject(g){var h=this.series;const p=h.options.keys,v=p||h.pointArrayMap||["y"],P=v.length;let V={},D=0,Y=0;if(A(g)||null===g)V[v[0]]=g;else if(x(g))for(!p&&g.length>P&&("string"==(h=typeof g[0])?V.name=g[0]:"number"===h&&(V.x=g[0]),D++);Yw()),this.eventsToUnbind=[],le.chartCount||(F.unbindDocumentMouseUp&&(F.unbindDocumentMouseUp=F.unbindDocumentMouseUp()),F.unbindDocumentTouchEnd&&(F.unbindDocumentTouchEnd=F.unbindDocumentTouchEnd())),clearInterval(b.tooltipTimeout),y(b,function(w,E){b[E]=void 0})}getSelectionMarkerAttrs(b,w){const E={args:{chartX:b,chartY:w},attrs:{},shapeType:"rect"};return Q(this,"getSelectionMarkerAttrs",E,O=>{const{chart:R,mouseDownX:g=0,mouseDownY:h=0,zoomHor:p,zoomVert:v}=this;let P;(O=O.attrs).x=R.plotLeft,O.y=R.plotTop,O.width=p?1:R.plotWidth,O.height=v?1:R.plotHeight,p&&(P=b-g,O.width=Math.abs(P),O.x=(0O+g&&(D=O+g),YR+h&&(Y=R+h),this.hasDragged=Math.sqrt(Math.pow(p-D,2)+Math.pow(v-Y,2)),10{E.result={x:b.attr?+b.attr("x"):b.x,y:b.attr?+b.attr("y"):b.y,width:b.attr?b.attr("width"):b.width,height:b.attr?b.attr("height"):b.height}}),w.result}drop(b){const w=this,E=this.chart,O=this.hasPinched;if(this.selectionMarker){const{x:R,y:g,width:h,height:p}=this.getSelectionBox(this.selectionMarker),v={originalEvent:b,xAxis:[],yAxis:[],x:R,y:g,width:h,height:p};let P=!!E.mapView;(this.hasDragged||O)&&(E.axes.forEach(function(V){if(V.zoomEnabled&&se(V.min)&&(O||w[{xAxis:"zoomX",yAxis:"zoomY"}[V.coll]])&&te(R)&&te(g)&&te(h)&&te(p)){var D=V.horiz;const Y="touchend"===b.type?V.minPixelPadding:0,de=V.toValue((D?R:g)+Y);D=V.toValue((D?R+h:g+p)-Y),v[V.coll].push({axis:V,min:Math.min(de,D),max:Math.max(de,D)}),P=!0}}),P&&Q(E,"selection",v,function(V){E.zoom(W(V,O?{animation:!1}:null))})),te(E.index)&&(this.selectionMarker=this.selectionMarker.destroy()),O&&this.scaleGroups()}E&&te(E.index)&&(ye(E.container,{cursor:E._cursor}),E.cancelClick=10R.options.findNearestPointBy.indexOf("y");if(R=R.searchPoint(E,g),(g=x(R,!0)&&R.series)&&!(g=!x(O,!0))){{const h=O.dist-R.dist,p=(R.series.group&&R.series.group.zIndex)-(O.series.group&&O.series.group.zIndex);g=0!=(g=O.distX-R.distX)&&w?g:0!==h?h:0!==p?p:O.series.index>R.series.index?-1:1}g=0D.stickyTracking&&(P.filter||p)(D));const V=O||!g?b:this.findNearestKDPoint(v,R,g);return w=V&&V.series,V&&(R&&!w.noSharedTooltip?(v=E.filter(function(D){return P.filter?P.filter(D):p(D)&&!D.noSharedTooltip}),v.forEach(function(D){let Y=U(D.points,function(de){return de.x===V.x&&!de.isNull});x(Y)&&(D.boosted&&D.boost&&(Y=D.boost.getPoint(Y)),h.push(Y))})):h.push(V)),P={hoverPoint:V},Q(this,"afterGetHoverData",P),{hoverPoint:P.hoverPoint,hoverSeries:w,hoverPoints:h}}getPointFromEvent(b){let w;for(b=b.target;b&&!w;)w=b.point,b=b.parentNode;return w}onTrackerMouseOut(b){b=b.relatedTarget;const w=this.chart.hoverSeries;this.isDirectTouch=!1,!w||!b||w.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+w.index)&&this.inClass(b,"highcharts-tracker")||w.onMouseOut()}inClass(b,w){let E;for(;b;){if(E=ce(b,"class")){if(-1!==E.indexOf(w))return!0;if(-1!==E.indexOf("highcharts-container"))return!1}b=b.parentElement}}init(b,w){this.options=w,this.chart=b,this.runChartClick=!(!w.chart.events||!w.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),Q(this,"afterInit")}normalize(b,w){var E=b.touches,O=E?E.length?E.item(0):S(E.changedTouches,b.changedTouches)[0]:b;return w||(w=this.getChartPosition()),E=O.pageX-w.left,O=O.pageY-w.top,E/=w.scaleX,O/=w.scaleY,W(b,{chartX:Math.round(E),chartY:Math.round(O)})}onContainerClick(b){const w=this.chart,E=w.hoverPoint;b=this.normalize(b);const O=w.plotLeft,R=w.plotTop;w.cancelClick||(E&&this.inClass(b.target,"highcharts-tracker")?(Q(E.series,"click",W(b,{point:E})),w.hoverPoint&&E.firePointEvent("click",b)):(W(b,this.getCoordinates(b)),w.isInsidePlot(b.chartX-O,b.chartY-R,{visiblePlotOnly:!0})&&Q(w,"click",b)))}onContainerMouseDown(b){const w=1==(1&(b.buttons||b.button));b=this.normalize(b),le.isFirefox&&0!==b.button&&this.onContainerMouseMove(b),(void 0===b.button||w)&&(this.zoomOption(b),w&&b.preventDefault&&b.preventDefault(),this.dragStart(b))}onContainerMouseLeave(b){const w=me[S(F.hoverChartIndex,-1)];b=this.normalize(b),w&&b.relatedTarget&&!this.inClass(b.relatedTarget,"highcharts-tooltip")&&(w.pointer.reset(),w.pointer.chartPosition=void 0)}onContainerMouseEnter(b){delete this.chartPosition}onContainerMouseMove(b){const w=this.chart,E=w.tooltip;b=this.normalize(b),this.setHoverChartIndex(),("mousedown"===w.mouseIsDown||this.touchSelect(b))&&this.drag(b),w.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!w.isInsidePlot(b.chartX-w.plotLeft,b.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(b)||(this.inClass(b.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))}onDocumentTouchEnd(b){const w=me[S(F.hoverChartIndex,-1)];w&&w.pointer.drop(b)}onContainerTouchMove(b){this.touchSelect(b)?this.onContainerMouseMove(b):this.touch(b)}onContainerTouchStart(b){this.touchSelect(b)?this.onContainerMouseDown(b):(this.zoomOption(b),this.touch(b,!0))}onDocumentMouseMove(b){const w=this.chart,E=w.tooltip,O=this.chartPosition;b=this.normalize(b,O),!O||w.isInsidePlot(b.chartX-w.plotLeft,b.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(b)||this.inClass(b.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(b){const w=me[S(F.hoverChartIndex,-1)];w&&w.pointer.drop(b)}pinch(b){const w=this,E=w.chart,O=w.pinchDown,R=b.touches||[],g=R.length,h=w.lastValidTouch,p=w.hasZoom,v={},P=1===g&&(w.inClass(b.target,"highcharts-tracker")&&E.runTrackerClick||w.runChartClick),V={};var D=w.chart.tooltip;D=1===g&&S(D&&D.options.followTouchMove,!0);let Y=w.selectionMarker;1{Y||(w.selectionMarker=Y=W({destroy:fe,touch:!0},E.plotBox)),w.pinchTranslate(O,R,v,Y,V,h),w.hasPinched=p,w.scaleGroups(v,V)}),w.res&&(w.res=!1,this.reset(!1,0)))}pinchTranslate(b,w,E,O,R,g){this.zoomHor&&this.pinchTranslateDirection(!0,b,w,E,O,R,g),this.zoomVert&&this.pinchTranslateDirection(!1,b,w,E,O,R,g)}pinchTranslateDirection(b,w,E,O,R,g,h,p){const v=this.chart,P=b?"x":"y",V=b?"X":"Y",D="chart"+V,Y=b?"width":"height",de=v["plot"+(b?"Left":"Top")],Ce=v.inverted,Ne=v.bounds[b?"h":"v"],X=1===w.length,m=w[0][D],H=!X&&w[1][D];w=function(){"number"==typeof B&&20Ne.max&&(E=Ne.max-Z,I=!0),I?(M-=.8*(M-h[P][0]),"number"==typeof B&&(B-=.8*(B-h[P][1])),w()):h[P]=[M,B],Ce||(g[P]=q-de,g[Y]=Z),g=Ce?1/he:he,R[Y]=Z,R[P]=E,O[Ce?b?"scaleY":"scaleX":"scale"+V]=he,O["translate"+V]=g*de+(M-g*m)}reset(b,w){const E=this.chart,O=E.hoverSeries,R=E.hoverPoint,g=E.hoverPoints,h=E.tooltip,p=h&&h.shared?g:R;b&&p&&N(p).forEach(function(v){v.series.isCartesian&&void 0===v.plotX&&(b=!1)}),b?h&&p&&N(p).length&&(h.refresh(p),h.shared&&g?g.forEach(function(v){v.setState(v.state,!0),v.series.isCartesian&&(v.series.xAxis.crosshair&&v.series.xAxis.drawCrosshair(null,v),v.series.yAxis.crosshair&&v.series.yAxis.drawCrosshair(null,v))}):R&&(R.setState(R.state,!0),E.axes.forEach(function(v){v.crosshair&&R.series[v.coll]===v&&v.drawCrosshair(null,R)}))):(R&&R.onMouseOut(),g&&g.forEach(function(v){v.setState()}),O&&O.onMouseOut(),h&&h.hide(w),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),E.axes.forEach(function(v){v.hideCrosshair()}),this.hoverX=E.hoverPoints=E.hoverPoint=null)}runPointActions(b,w,E){const O=this.chart,R=O.tooltip&&O.tooltip.options.enabled?O.tooltip:void 0,g=!!R&&R.shared;let h=w||O.hoverPoint,p=h&&h.series||O.hoverSeries;w=this.getHoverData(h,p,O.series,(!b||"touchmove"!==b.type)&&(!!w||p&&p.directTouch&&this.isDirectTouch),g,b),h=w.hoverPoint,p=w.hoverSeries;const v=w.hoverPoints;w=p&&p.tooltipOptions.followPointer&&!p.tooltipOptions.split;const P=g&&p&&!p.noSharedTooltip;if(h&&(E||h!==O.hoverPoint||R&&R.isHidden)){if((O.hoverPoints||[]).forEach(function(V){-1===v.indexOf(V)&&V.setState()}),O.hoverSeries!==p&&p.onMouseOver(),this.applyInactiveState(v),(v||[]).forEach(function(V){V.setState("hover")}),O.hoverPoint&&O.hoverPoint.firePointEvent("mouseOut"),!h.series)return;O.hoverPoints=v,O.hoverPoint=h,h.firePointEvent("mouseOver",void 0,()=>{R&&h&&R.refresh(P?v:h,b)})}else w&&R&&!R.isHidden&&(E=R.getAnchor([{}],b),O.isInsidePlot(E[0],E[1],{visiblePlotOnly:!0})&&R.updatePosition({plotX:E[0],plotY:E[1]}));this.unDocMouseMove||(this.unDocMouseMove=Ae(O.container.ownerDocument,"mousemove",function(V){const D=me[F.hoverChartIndex];D&&D.pointer.onDocumentMouseMove(V)}),this.eventsToUnbind.push(this.unDocMouseMove)),O.axes.forEach(function(V){const D=S((V.crosshair||{}).snap,!0);let Y;D&&((Y=O.hoverPoint)&&Y.series[V.coll]===V||(Y=U(v,de=>de.series&&de.series[V.coll]===V))),Y||!D?V.drawCrosshair(b,Y):V.hideCrosshair()})}scaleGroups(b,w){const E=this.chart;E.series.forEach(function(O){const R=b||O.getPlotBox();O.group&&(O.xAxis&&O.xAxis.zoomEnabled||E.mapView)&&(O.group.attr(R),O.markerGroup&&(O.markerGroup.attr(R),O.markerGroup.clip(w?E.clipRect:null)),O.dataLabelsGroup&&O.dataLabelsGroup.attr(R))}),E.clipRect.attr(w||E.clipBox)}setDOMEvents(){const b=this.chart.container,w=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this),b.onmousemove=this.onContainerMouseMove.bind(this),b.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Ae(b,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(Ae(b,"mouseleave",this.onContainerMouseLeave.bind(this))),F.unbindDocumentMouseUp||(F.unbindDocumentMouseUp=Ae(w,"mouseup",this.onDocumentMouseUp.bind(this)));let E=this.chart.renderTo.parentElement;for(;E&&"BODY"!==E.tagName;)this.eventsToUnbind.push(Ae(E,"scroll",()=>{delete this.chartPosition})),E=E.parentElement;le.hasTouch&&(this.eventsToUnbind.push(Ae(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(Ae(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),F.unbindDocumentTouchEnd||(F.unbindDocumentTouchEnd=Ae(w,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const b=this.chart,w=le.charts[S(F.hoverChartIndex,-1)];w&&w!==b&&w.pointer.onContainerMouseLeave({relatedTarget:b.container}),w&&w.mouseIsDown||(F.hoverChartIndex=b.index)}touch(b,w){const E=this.chart;let O,R;this.setHoverChartIndex(),1===b.touches.length?(b=this.normalize(b),(R=E.isInsidePlot(b.chartX-E.plotLeft,b.chartY-E.plotTop,{visiblePlotOnly:!0}))&&!E.openMenu?(w&&this.runPointActions(b),"touchmove"===b.type&&(O=!!(w=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(w[0].chartX-b.chartX,2)+Math.pow(w[0].chartY-b.chartY,2))),S(O,!0)&&this.pinch(b)):w&&this.reset()):2===b.touches.length&&this.pinch(b)}touchSelect(b){return!(!this.chart.zooming.singleTouch||!b.touches||1!==b.touches.length)}zoomOption(b){const w=this.chart,E=w.inverted;var O=w.zooming.type||"";/touch/.test(b.type)&&(O=S(w.zooming.pinchType,O)),this.zoomX=b=/x/.test(O),this.zoomY=O=/y/.test(O),this.zoomHor=b&&!E||O&&E,this.zoomVert=O&&!E||b&&E,this.hasZoom=b||O}}return function(G){const b=[],w=[];G.compose=function(E){ve.pushUnique(w,E)&&Ae(E,"beforeRender",function(){this.pointer=new G(this,this.options)})},G.dissolve=function(){for(let E=0,O=b.length;E{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(g){const h=G(g.padding,8);this.options=g,this.chart.styledMode||(this.itemStyle=g.itemStyle,this.itemHiddenStyle=F(this.itemStyle,g.itemHiddenStyle)),this.itemMarginTop=g.itemMarginTop,this.itemMarginBottom=g.itemMarginBottom,this.padding=h,this.initialItemY=h-5,this.symbolWidth=G(g.symbolWidth,16),this.pages=[],this.proximate="proximate"===g.layout&&!this.chart.inverted,this.baseline=void 0}update(g,h){const p=this.chart;this.setOptions(F(!0,this.options,g)),this.destroy(),p.isDirtyLegend=p.isDirtyBox=!0,G(h,!0)&&p.redraw(),S(this,"afterUpdate")}colorizeItem(g,h){const{group:p,label:v,line:P,symbol:V}=g.legendItem||{};if(p&&p[h?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:D}=this,Y=D.color,de=h&&g.color||Y,Ce=g.options&&g.options.marker;let Ne={fill:de};null==v||v.css(F(h?this.itemStyle:D)),null==P||P.attr({stroke:de}),V&&(Ce&&V.isMarker&&(Ne=g.pointAttribs(),h||(Ne.stroke=Ne.fill=Y)),V.attr(Ne))}S(this,"afterColorizeItem",{item:g,visible:h})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(g){const{group:h,x:p=0,y:v=0}=g.legendItem||{};var P=this.options,V=P.symbolPadding;const D=!P.rtl;P=g.checkbox,h&&h.element&&(V={translateX:D?p:this.legendWidth-p-2*V-4,translateY:v},h[x(h.translateY)?"animate":"attr"](V,void 0,()=>{S(this,"afterPositionItem",{item:g})})),P&&(P.x=p,P.y=v)}destroyItem(g){const h=g.checkbox,p=g.legendItem||{};for(const v of["group","label","line","symbol"])p[v]&&(p[v]=p[v].destroy());h&&y(h),g.legendItem=void 0}destroy(){for(const g of this.getAllItems())this.destroyItem(g);for(const g of"clipRect up down pager nav box title group".split(" "))this[g]&&(this[g]=this[g].destroy());this.display=null}positionCheckboxes(){const g=this.group&&this.group.alignAttr,h=this.clipHeight||this.legendHeight,p=this.titleHeight;let v;g&&(v=g.translateY,this.allItems.forEach(function(P){const V=P.checkbox;let D;V&&(D=v+p+V.y+(this.scrollOffset||0)+3,te(V,{left:g.translateX+P.checkboxOffset+V.x-20+"px",top:D+"px",display:this.proximate||D>v-6&&D1.5*v?p.height:v))}layoutItem(g){var h=this.options;const p=this.padding,v="horizontal"===h.layout,P=g.itemHeight,V=this.itemMarginBottom,D=this.itemMarginTop,Y=v?G(h.itemDistance,20):0,de=this.maxLegendWidth;h=h.alignColumns&&this.totalItemWidth>de?this.maxItemWidth:g.itemWidth;const Ce=g.legendItem||{};v&&this.itemX-p+h>de&&(this.itemX=p,this.lastLineHeight&&(this.itemY+=D+this.lastLineHeight+V),this.lastLineHeight=0),this.lastItemY=D+this.itemY+V,this.lastLineHeight=Math.max(P,this.lastLineHeight),Ce.x=this.itemX,Ce.y=this.itemY,v?this.itemX+=h:(this.itemY+=D+P+V,this.lastLineHeight=P),this.offsetWidth=this.widthOption||Math.max((v?this.itemX-p-(g.checkbox?0:Y):h)+p,this.offsetWidth)}getAllItems(){let g=[];return this.chart.series.forEach(function(h){const p=h&&h.options;h&&G(p.showInLegend,!x(p.linkedTo)&&void 0,!0)&&(g=g.concat((h.legendItem||{}).labels||("point"===p.legendType?h.data:h)))}),S(this,"afterGetAllItems",{allItems:g}),g}getAlignment(){const g=this.options;return this.proximate?g.align.charAt(0)+"tv":g.floating?"":g.align.charAt(0)+g.verticalAlign.charAt(0)+g.layout.charAt(0)}adjustMargins(g,h){const p=this.chart,v=this.options,P=this.getAlignment();P&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(V,D){V.test(P)&&!x(g[D])&&(p[se[D]]=Math.max(p[se[D]],p.legend[(D+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][D]*v[D%2?"x":"y"]+G(v.margin,12)+h[D]+(p.titleOffset[D]||0)))})}proximatePositions(){const g=this.chart,h=[],p="left"===this.options.align;let v;this.allItems.forEach(function(P){var V,D=p;let Y;P.yAxis&&(P.xAxis.options.reversed&&(D=!D),P.points&&(V=A(D?P.points:P.points.slice(0).reverse(),function(de){return N(de.plotY)})),D=this.itemMarginTop+P.legendItem.label.getBBox().height+this.itemMarginBottom,Y=P.yAxis.top-g.plotTop,P.visible?(V=V?V.plotY:P.yAxis.height,V+=Y-.3*D):V=Y+P.yAxis.height,h.push({target:V,size:D,item:P}))},this);for(const P of W(h,g.plotHeight))v=P.item.legendItem||{},N(P.pos)&&(v.y=g.plotTop-g.spacing[0]+P.pos)}render(){const g=this.chart,h=g.renderer,p=this.options,v=this.padding;var P=this.getAllItems();let V,D=this.group,Y=this.box;this.itemX=v,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=b(p.width,g.spacingBox.width-v);var de=g.spacingBox.width-2*v-p.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(de/=2),this.maxLegendWidth=this.widthOption||de,D||(this.group=D=h.g("legend").addClass(p.className||"").attr({zIndex:7}).add(),this.contentGroup=h.g().attr({zIndex:1}).add(D),this.scrollGroup=h.g().add(this.contentGroup)),this.renderTitle(),w(P,(Ce,Ne)=>(Ce.options&&Ce.options.legendIndex||0)-(Ne.options&&Ne.options.legendIndex||0)),p.reversed&&P.reverse(),this.allItems=P,this.display=de=!!P.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,P.forEach(this.renderItem,this),P.forEach(this.layoutItem,this),P=(this.widthOption||this.offsetWidth)+v,V=this.lastItemY+this.lastLineHeight+this.titleHeight,V=this.handleOverflow(V),V+=v,Y||(this.box=Y=h.rect().addClass("highcharts-legend-box").attr({r:p.borderRadius}).add(D)),g.styledMode||Y.attr({stroke:p.borderColor,"stroke-width":p.borderWidth||0,fill:p.backgroundColor||"none"}).shadow(p.shadow),0V&&!1!==Ce.enabled?(this.clipHeight=he=Math.max(V-20-this.titleHeight-Y,0),this.currentPage=G(this.currentPage,1),this.fullHeight=g,H.forEach((ne,re)=>{B=ne.legendItem||{},ne=B.y||0;const _e=Math.round(B.label.getBBox().height);let we=m.length;(!we||ne-m[we-1]>he&&(M||ne)!==m[we-1])&&(m.push(M||ne),we++),B.pageIx=we-1,M&&((H[re-1].legendItem||{}).pageIx=we-1),re===H.length-1&&ne+_e-m[we-1]>he&&ne>m[we-1]&&(m.push(ne),B.pageIx=we),ne!==M&&(M=ne)}),K||(K=h.clipRect=v.clipRect(0,Y-2,9999,0),h.contentGroup.clip(K)),Z(he),I||(this.nav=I=v.g().attr({zIndex:1}).add(this.group),this.up=v.symbol("triangle",0,0,X,X).add(I),q("upTracker").on("click",function(){h.scroll(-1,Ne)}),this.pager=v.text("",15,10).addClass("highcharts-legend-navigation"),!p.styledMode&&Ce.style&&this.pager.css(Ce.style),this.pager.add(I),this.down=v.symbol("triangle-down",0,0,X,X).add(I),q("downTracker").on("click",function(){h.scroll(1,Ne)})),h.scroll(0),g=V):I&&(Z(),this.nav=I.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),g}scroll(g,h){const p=this.chart,v=this.pages,P=v.length,V=this.clipHeight,D=this.options.navigation,Y=this.pager,de=this.padding;let Ce=this.currentPage+g;Ce>P&&(Ce=P),0{S(this,"afterScroll",{currentPage:Ce})},g.duration))}setItemEvents(g,h,p){const v=this,P=g.legendItem||{},V=v.chart.renderer.boxWrapper,D=g instanceof xe,Y="highcharts-legend-"+(D?"point":"series")+"-active",de=v.chart.styledMode;p=p?[h,P.symbol]:[P.group];const Ce=Ne=>{v.allItems.forEach(X=>{g!==X&&[X].concat(X.linkedSeries||[]).forEach(m=>{m.setState(Ne,!D)})})};for(const Ne of p)Ne&&Ne.on("mouseover",function(){g.visible&&Ce("inactive"),g.setState("hover"),g.visible&&V.addClass(Y),de||h.css(v.options.itemHoverStyle)}).on("mouseout",function(){v.chart.styledMode||h.css(F(g.visible?v.itemStyle:v.itemHiddenStyle)),Ce(""),V.removeClass(Y),g.setState()}).on("click",function(X){const m=function(){g.setVisible&&g.setVisible(),Ce(g.visible?"inactive":"")};V.removeClass(Y),X={browserEvent:X},g.firePointEvent?g.firePointEvent("legendItemClick",X,m):S(g,"legendItemClick",X,m)})}createCheckboxForItem(g){g.checkbox=Q("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:g.selected,defaultChecked:g.selected},this.options.itemCheckboxStyle,this.chart.container),U(g.checkbox,"click",function(h){S(g.series||g,"checkboxClick",{checked:h.target.checked,item:g},function(){g.select()})})}}return function(R){const g=[];R.compose=function(h){fe.pushUnique(g,h)&&U(h,"beforeMargins",function(){this.legend=new R(this,this.options.legend)})}}(O||(O={})),O}),Oe(be,"Core/Legend/LegendSymbol.js",[be["Core/Utilities.js"]],function(oe){const{extend:le,merge:ve,pick:xe}=oe;var me=(()=>{return(fe=me||(me={})).lineMarker=function(Ae,ce){ce=this.legendItem=this.legendItem||{};var ye=this.options;const se=Ae.symbolWidth,W=Ae.symbolHeight,U=W/2,Q=this.chart.renderer,te=ce.group;Ae=Ae.baseline-Math.round(.3*Ae.fontMetrics.b);let x={},y=ye.marker,A=0;this.chart.styledMode||(x={"stroke-width":Math.min(ye.lineWidth||0,24)},ye.dashStyle?x.dashstyle=ye.dashStyle:"square"!==ye.linecap&&(x["stroke-linecap"]="round")),ce.line=Q.path().addClass("highcharts-graph").attr(x).add(te),x["stroke-linecap"]&&(A=Math.min(ce.line.strokeWidth(),se)/2),se&&ce.line.attr({d:[["M",A,Ae],["L",se-A,Ae]]}),y&&!1!==y.enabled&&se&&(ye=Math.min(xe(y.radius,U),U),0===this.symbol.indexOf("url")&&(y=ve(y,{width:W,height:W}),ye=0),ce.symbol=ce=Q.symbol(this.symbol,se/2-ye,Ae-ye,2*ye,2*ye,le({context:"legend"},y)).addClass("highcharts-point").add(te),ce.isMarker=!0)},fe.rectangle=function(Ae,ce){const ye=Ae.symbolHeight,se=Ae.options.squareSymbol;(ce=ce.legendItem||{}).symbol=this.chart.renderer.rect(se?(Ae.symbolWidth-ye)/2:0,Ae.baseline-ye+1,se?ye:Ae.symbolWidth,ye,xe(Ae.options.symbolRadius,ye/2)).addClass("highcharts-point").attr({zIndex:3}).add(ce.group)},me;var fe})();return me}),Oe(be,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:oe}=this.series.chart;return"number"!=typeof this.y?"":oe(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),Oe(be,"Core/Series/SeriesRegistry.js",[be["Core/Globals.js"],be["Core/Defaults.js"],be["Core/Series/Point.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{defaultOptions:me}=le,{extendClass:fe,merge:Ae}=xe;var ce;return function(ye){function se(W,U){const Q=me.plotOptions||{},te=U.defaultOptions,x=U.prototype;x.type=W,x.pointClass||(x.pointClass=ve),te&&(Q[W]=te),ye.seriesTypes[W]=U}ye.seriesTypes=oe.seriesTypes,ye.registerSeriesType=se,ye.seriesType=function(W,U,Q,te,x){const y=me.plotOptions||{};return y[W]=Ae(y[U=U||""],Q),se(W,fe(ye.seriesTypes[U]||function(){},te)),ye.seriesTypes[W].prototype.type=W,x&&(ye.seriesTypes[W].prototype.pointClass=fe(ve,x)),ye.seriesTypes[W]}}(ce||(ce={})),ce}),Oe(be,"Core/Series/Series.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Defaults.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Legend/LegendSymbol.js"],be["Core/Series/Point.js"],be["Core/Series/SeriesDefaults.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se){const{animObject:W,setAnimation:U}=oe,{defaultOptions:Q}=le,{registerEventOptions:te}=ve,{hasTouch:x,svg:y,win:A}=xe,{seriesTypes:S}=ce,{arrayMax:N,arrayMin:F,clamp:G,correctFloat:b,defined:w,diffObjects:E,erase:O,error:R,extend:g,find:h,fireEvent:p,getClosestDistance:v,getNestedProperty:P,insertItem:V,isArray:D,isNumber:Y,isString:de,merge:Ce,objectEach:Ne,pick:X,removeEvent:m,splat:H,syncTimeout:Z}=se;class q{constructor(){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}init(M,B){p(this,"init",{options:B});const I=this,K=M.series;this.eventsToUnbind=[],I.chart=M,I.options=I.setOptions(B),B=I.options,I.linkedSeries=[],I.bindAxes(),g(I,{name:B.name,state:"",visible:!1!==B.visible,selected:!0===B.selected}),te(this,B);const ne=B.events;let re;(ne&&ne.click||B.point&&B.point.events&&B.point.events.click||B.allowPointSelect)&&(M.runTrackerClick=!0),I.getColor(),I.getSymbol(),I.parallelArrays.forEach(function(_e){I[_e+"Data"]||(I[_e+"Data"]=[])}),I.isCartesian&&(M.hasCartesianSeries=!0),K.length&&(re=K[K.length-1]),I._i=X(re&&re._i,-1)+1,I.opacity=I.options.opacity,M.orderItems("series",V(this,K)),B.dataSorting&&B.dataSorting.enabled?I.setDataSortingOptions():I.points||I.data||I.setData(B.data,!1),p(this,"afterInit")}is(M){return S[M]&&this instanceof S[M]}bindAxes(){const M=this,B=M.options,I=M.chart;let K;p(this,"bindAxes",null,function(){(M.axisTypes||[]).forEach(function(ne){I[ne].forEach(function(re){K=re.options,(X(B[ne],0)===re.index||void 0!==B[ne]&&B[ne]===K.id)&&(V(M,re.series),M[ne]=re,re.isDirty=!0)}),M[ne]||M.optionalAxis===ne||R(18,!0,I)})}),p(this,"afterBindAxes")}updateParallelArrays(M,B,I){const K=M.series,ne=Y(B)?function(re){const _e="y"===re&&K.toYData?K.toYData(M):M[re];K[re+"Data"][B]=_e}:function(re){Array.prototype[B].apply(K[re+"Data"],I)};K.parallelArrays.forEach(ne)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0!Re.touched&&Re.index===M.index,re&&re.matchByName?_e=Re=>!Re.touched&&Re.name===M.name:this.options.relativeXValue&&(_e=Re=>!Re.touched&&Re.options.x===M.x),!(_e=h(ne,_e))))return;return _e&&(Se=_e&&_e.index,void 0!==Se&&(we=!0)),void 0===Se&&Y(K)&&(Se=this.xData.indexOf(K,B)),-1!==Se&&void 0!==Se&&this.cropped&&(Se=Se>=this.cropStart?Se-this.cropStart:Se),!we&&Y(Se)&&ne[Se]&&ne[Se].touched&&(Se=void 0),Se}updateData(M,B){const I=this.options,K=I.dataSorting,ne=this.points,re=[],_e=this.requireSorting,we=M.length===ne.length;let Se,Re,ze,ie=!0;if(this.xIncrement=null,M.forEach(function(ee,Ee){var pe=w(ee)&&this.pointClass.prototype.optionsToObject.call({series:this},ee)||{};pe.id||Y(pe.x)?(-1===(pe=this.findPointIndex(pe,ze))||void 0===pe?re.push(ee):ne[pe]&&ee!==I.data[pe]?(ne[pe].update(ee,!1,null,!1),ne[pe].touched=!0,_e&&(ze=pe+1)):ne[pe]&&(ne[pe].touched=!0),(!we||Ee!==pe||K&&K.enabled||this.hasDerivedData)&&(Se=!0)):re.push(ee)},this),Se)for(M=ne.length;M--;)(Re=ne[M])&&!Re.touched&&Re.remove&&Re.remove(!1,B);else!we||K&&K.enabled?ie=!1:(M.forEach(function(ee,Ee){ee===ne[Ee].y||ne[Ee].destroyed||ne[Ee].update(ee,!1,null,!1)}),re.length=0);return ne.forEach(function(ee){ee&&(ee.touched=!1)}),!!ie&&(re.forEach(function(ee){this.addPoint(ee,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)}setData(M,B=!0,I,K){var ne;const re=this,_e=re.points,we=_e&&_e.length||0,Se=re.options,Re=re.chart,ze=Se.dataSorting,ie=re.xAxis,ee=Se.turboThreshold,Ee=this.xData,pe=this.yData;var De=re.pointArrayMap;De=De&&De.length;const Ge=Se.keys;let We,ut=0,yt=1,ft=null;if(!Re.options.chart.allowMutatingData){Se.data&&delete re.options.data,re.userOptions.data&&delete re.userOptions.data;var _t=Ce(!0,M)}if(_t=(M=_t||M||[]).length,ze&&ze.enabled&&(M=this.sortData(M)),Re.options.chart.allowMutatingData&&!1!==K&&_t&&we&&!re.cropped&&!re.hasGroupedData&&re.visible&&!re.boosted&&(We=this.updateData(M,I)),!We){if(re.xIncrement=null,re.colorCounter=0,this.parallelArrays.forEach(function(Zt){re[Zt+"Data"].length=0}),ee&&_t>ee)if(ft=re.getFirstValidPoint(M),Y(ft))for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I];else if(D(ft))if(De)if(ft.length===De)for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I];else for(I=0;I<_t;I++)Ee[I]=(K=M[I])[0],pe[I]=K.slice(1,De+1);else if(Ge&&(ut=Ge.indexOf("x"),yt=Ge.indexOf("y"),ut=0<=ut?ut:0,yt=0<=yt?yt:1),1===ft.length&&(yt=0),ut===yt)for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I][yt];else for(I=0;I<_t;I++)Ee[I]=(K=M[I])[ut],pe[I]=K[yt];else R(12,!1,Re);else for(I=0;I<_t;I++)re.pointClass.prototype.applyOptions.apply(K={series:re},[M[I]]),re.updateParallelArrays(K,I);for(pe&&de(pe[0])&&R(14,!0,Re),re.data=[],re.options.data=re.userOptions.data=M,I=we;I--;)null===(ne=_e[I])||void 0===ne||ne.destroy();ie&&(ie.minRange=ie.userMinRange),re.isDirty=Re.isDirtyBox=!0,re.isDirtyData=!!_e,I=!1}"point"===Se.legendType&&(this.processData(),this.generatePoints()),B&&Re.redraw(I)}sortData(M){const B=this,I=B.options.dataSorting.sortKey||"y",K=function(ne,re){return w(re)&&ne.pointClass.prototype.optionsToObject.call({series:ne},re)||{}};return M.forEach(function(ne,re){M[re]=K(B,ne),M[re].index=re},this),M.concat().sort((ne,re)=>(ne=P(I,ne),(re=P(I,re))ne?1:0)).forEach(function(ne,re){ne.x=re},this),B.linkedSeries&&B.linkedSeries.forEach(function(ne){const re=ne.options,_e=re.data;re.dataSorting&&re.dataSorting.enabled||!_e||(_e.forEach(function(we,Se){_e[Se]=K(ne,we),M[Se]&&(_e[Se].x=M[Se].x,_e[Se].index=Se)}),ne.setData(_e,!1))}),M}getProcessedData(M){const B=this;var I=B.xAxis,K=B.options;const ne=K.cropThreshold,re=M||B.getExtremesFromAll||K.getExtremesFromAll,_e=null==I?void 0:I.logarithmic,we=B.isCartesian;let Re,Se=0;K=B.yData;let ze=!1;const ie=(M=B.xData).length;if(I){var ee=I.getExtremes();Re=ee.min,ee=ee.max,ze=!(!I.categories||I.names.length)}if(we&&B.sorted&&!re&&(!ne||ie>ne||B.forceCrop))if(M[ie-1]ee)M=[],K=[];else if(B.yData&&(M[0]ee)){var Ee=this.cropData(B.xData,B.yData,Re,ee);M=Ee.xData,K=Ee.yData,Se=Ee.start,Ee=!0}return I=v([_e?M.map(_e.log2lin):M],()=>B.requireSorting&&!ze&&R(15,!1,B.chart)),{xData:M,yData:K,cropped:Ee,cropStart:Se,closestPointRange:I}}processData(M){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!M)return!1;M=this.getProcessedData(),this.cropped=M.cropped,this.cropStart=M.cropStart,this.processedXData=M.xData,this.processedYData=M.yData,this.closestPointRange=this.basePointRange=M.closestPointRange,p(this,"afterProcessData")}cropData(M,B,I,K,ne){const re=M.length;let _e,we=0,Se=re;for(ne=X(ne,this.cropShoulder),_e=0;_e=I){we=Math.max(0,_e-ne);break}for(I=_e;IK){Se=I+ne;break}return{xData:M.slice(we,Se),yData:B.slice(we,Se),start:we,end:Se}}generatePoints(){var M=this.options;const B=this.processedData||M.data,I=this.processedXData,K=this.processedYData,ne=this.pointClass,re=I.length,_e=this.cropStart||0,we=this.hasGroupedData,Se=M.keys,Re=[];M=M.dataGrouping&&M.dataGrouping.groupAll?_e:0;let ze,ie,ee,Ee=this.data;if(!Ee&&!we){var pe=[];pe.length=B.length,Ee=this.data=pe}for(Se&&we&&(this.options.keys=!1),ee=0;ee=Se&&(ne[we-_e]||Ee)<=Re,pe&&Ee)if(pe=ee.length)for(;pe--;)Y(ee[pe])&&(re[ze++]=ee[pe]);else re[ze++]=ee}return M={activeYData:re,dataMin:F(re),dataMax:N(re)},p(this,"afterGetExtremes",{dataExtremes:M}),M}applyExtremes(){const M=this.getExtremes();return this.dataMin=M.dataMin,this.dataMax=M.dataMax,M}getFirstValidPoint(M){const B=M.length;let I=0,K=null;for(;null===K&&I=Zt&&(Zt=void 0),We.total=We.stackTotal=X(yt.total),We.percentage=w(We.y)&&yt.total?We.y/yt.total*100:void 0,We.stackY=_t,this.irregularWidths||yt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),We.yBottom=w(Zt)?G(_e.translate(Zt,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(_t=this.dataModify.modifyValue(_t,ee)),Y(_t)&&void 0!==We.plotX&&(Lt=_e.translate(_t,!1,!0,!1,!0),Lt=Y(Lt)?G(Lt,-1e5,1e5):void 0),We.plotY=Lt,We.isInside=this.isPointInside(We),We.clientX=ze?b(K.translate(ut,!1,!1,!1,!0,Re)):Ee,We.negative=(We.y||0)<(ie||0),We.category=X(ne&&ne[We.x],We.x),We.isNull||!1===We.visible||(void 0!==pe&&(Ge=Math.min(Ge,Math.abs(Ee-pe))),pe=Ee),We.zone=this.zones.length?We.getZone():void 0,!We.graphic&&this.group&&re&&(We.isNew=!0)}this.closestPointRangePx=Ge,p(this,"afterTranslate")}getValidPoints(M,B,I){const K=this.chart;return(M||this.points||[]).filter(function(ne){const{plotX:re,plotY:_e}=ne;return!(!(I||!ne.isNull&&Y(_e))||B&&!K.isInsidePlot(re,_e,{inverted:K.inverted}))&&!1!==ne.visible})}getClipBox(){const{chart:M,xAxis:B,yAxis:I}=this,K=Ce(M.clipBox);return B&&B.len!==M.plotSizeX&&(K.width=B.len),I&&I.len!==M.plotSizeY&&(K.height=I.len),K}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:M,group:B,markerGroup:I}=this,K=M.sharedClips,ne=M.renderer,re=this.getClipBox(),_e=this.getSharedClipKey();let we=K[_e];we?we.animate(re):K[_e]=we=ne.clipRect(re),B&&B.clip(!1===this.options.clip?void 0:we),I&&I.clip()}animate(M){const{chart:B,group:I,markerGroup:K}=this,ne=B.inverted;var re=W(this.options.animation),_e=[this.getSharedClipKey(),re.duration,re.easing,re.defer].join();let we=B.sharedClips[_e],Se=B.sharedClips[_e+"m"];if(M&&I)re=this.getClipBox(),we?we.attr("height",re.height):(re.width=0,ne&&(re.x=B.plotHeight),we=B.renderer.clipRect(re),B.sharedClips[_e]=we,Se=B.renderer.clipRect({x:-99,y:-99,width:ne?B.plotWidth+199:99,height:ne?99:B.plotHeight+199}),B.sharedClips[_e+"m"]=Se),I.clip(we),K&&K.clip(Se);else if(we&&!we.hasClass("highcharts-animating")){_e=this.getClipBox();const Re=re.step;K&&K.element.childNodes.length&&(re.step=function(ze,ie){Re&&Re.apply(ie,arguments),"width"===ie.prop&&Se&&Se.element&&Se.attr(ne?"height":"width",ze+99)}),we.addClass("highcharts-animating").animate(_e,re)}}afterAnimate(){this.setClip(),Ne(this.chart.sharedClips,(M,B,I)=>{M&&!this.chart.container.querySelector(`[clip-path="url(#${M.id})"]`)&&(M.destroy(),delete I[B])}),this.finishedAnimating=!0,p(this,"afterAnimate")}drawPoints(M=this.points){const B=this.chart,I=B.styledMode,{colorAxis:K,options:ne}=this,re=ne.marker,_e=this[this.specialGroup||"markerGroup"],we=this.xAxis,Se=X(re.enabled,!(we&&!we.isRadial)||null,this.closestPointRangePx>=re.enabledThreshold*re.radius);let Re,ze,ie,ee,Ee,pe;if(!1!==re.enabled||this._hasPointMarkers)for(Re=0;ReRe.destroy()),se.clearTimeout(B.animationTimeout),Ne(B,function(Re,ze){Re instanceof ye&&!Re.survive&&(re=K&&"group"===ze?"hide":"destroy",Re[re]())}),I.hoverSeries===B&&(I.hoverSeries=void 0),O(I.series,B),I.orderItems("series"),Ne(B,function(Re,ze){M&&"hcEvents"===ze||delete B[ze]})}applyZones(){const M=this,B=this.chart,I=B.renderer,K=this.zones,ne=this.clips||[],re=this.graph,_e=this.area,we=Math.max(B.plotWidth,B.plotHeight),Se=this[(this.zoneAxis||"y")+"Axis"],Re=B.inverted;let ze,ie,ee,Ee,pe,De,Ge,We,ut,yt,ft,_t=!1;K.length&&(re||_e)&&Se&&void 0!==Se.min?(pe=Se.reversed,De=Se.horiz,re&&!this.showLine&&re.hide(),_e&&_e.hide(),Ee=Se.getExtremes(),K.forEach(function(Zt,Nt){ze=pe?De?B.plotWidth:0:De?0:Se.toPixels(Ee.min)||0,ze=G(X(ie,ze),0,we),ie=G(Math.round(Se.toPixels(X(Zt.value,Ee.max),!0)||0),0,we),_t&&(ze=ie=Se.toPixels(Ee.max)),Ge=Math.abs(ze-ie),We=Math.min(ze,ie),ut=Math.max(ze,ie),Se.isXAxis?(ee={x:Re?ut:We,y:0,width:Ge,height:we},De||(ee.x=B.plotHeight-ee.x)):(ee={x:0,y:Re?ut:We,width:we,height:Ge},De&&(ee.y=B.plotWidth-ee.y)),ne[Nt]?ne[Nt].animate(ee):ne[Nt]=I.clipRect(ee),yt=M["zone-area-"+Nt],ft=M["zone-graph-"+Nt],re&&ft&&ft.clip(ne[Nt]),_e&&yt&&yt.clip(ne[Nt]),_t=Zt.value>Ee.max,M.resetZones&&0===ie&&(ie=void 0)}),this.clips=ne):M.visible&&(re&&re.show(),_e&&_e.show())}plotGroup(M,B,I,K,ne){let re=this[M];const _e=!re;return I={visibility:I,zIndex:K||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(I.opacity=this.opacity),_e&&(this[M]=re=this.chart.renderer.g().add(ne)),re.addClass("highcharts-"+B+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(re.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),re.attr(I)[_e?"attr":"animate"](this.getPlotBox(B)),re}getPlotBox(M){let B=this.xAxis,I=this.yAxis;const K=this.chart;return M=K.inverted&&!K.polar&&B&&!1!==this.invertible&&"series"===M,K.inverted&&(B=I,I=this.xAxis),{translateX:B?B.left:K.plotLeft,translateY:I?I.top:K.plotTop,rotation:M?90:0,rotationOriginX:M?(B.len-I.len)/2:0,rotationOriginY:M?(B.len+I.len)/2:0,scaleX:M?-1:1,scaleY:1}}removeEvents(M){M||m(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(B){B()}),this.eventsToUnbind.length=0)}render(){const M=this;var B=M.chart;const I=M.options,K=W(I.animation),ne=M.visible?"inherit":"hidden",re=I.zIndex,_e=M.hasRendered;B=B.seriesGroup;let we=M.finishedAnimating?0:K.duration;p(this,"render"),M.plotGroup("group","series",ne,re,B),M.markerGroup=M.plotGroup("markerGroup","markers",ne,re,B),!1!==I.clip&&M.setClip(),M.animate&&we&&M.animate(!0),M.drawGraph&&(M.drawGraph(),M.applyZones()),M.visible&&M.drawPoints(),M.drawDataLabels&&M.drawDataLabels(),M.redrawPoints&&M.redrawPoints(),M.drawTracker&&I.enableMouseTracking&&M.drawTracker(),M.animate&&we&&M.animate(),_e||(we&&K.defer&&(we+=K.defer),M.animationTimeout=Z(function(){M.afterAnimate()},we||0)),M.isDirty=!1,M.hasRendered=!0,p(M,"afterRender")}redraw(){const M=this.isDirty||this.isDirtyData;this.translate(),this.render(),M&&delete this.kdTree}searchPoint(M,B){const I=this.xAxis,K=this.yAxis,ne=this.chart.inverted;return this.searchKDTree({clientX:ne?I.len-M.chartY+I.pos:M.chartX-I.pos,plotY:ne?K.len-M.chartX+K.pos:M.chartY-K.pos},B,M)}buildKDTree(M){function B(ne,re,_e){var we=ne&&ne.length;let Se;if(we)return Se=I.kdAxisArray[re%_e],ne.sort(function(Re,ze){return Re[Se]-ze[Se]}),{point:ne[we=Math.floor(we/2)],left:B(ne.slice(0,we),re+1,_e),right:B(ne.slice(we+1),re+1,_e)}}this.buildingKdTree=!0;const I=this,K=-1(Ee=Se[Ee]-ee[Ee])?"right":"left",Re[Ge=0>Ee?"left":"right"]&&(pe=(Ge=K(Se,Re[Ge],ze+1,ie))[we]pe;)ee--;this.updateParallelArrays(Ee,"splice",[ee,0,0]),this.updateParallelArrays(Ee,ee),Se&&Ee.name&&(Se[pe]=Ee.name),Re.splice(ee,0,M),(ie||this.processedData)&&(this.data.splice(ee,0,null),this.processData()),"point"===re.legendType&&this.generatePoints(),I&&(_e[0]&&_e[0].remove?_e[0].remove(!1):(_e.shift(),this.updateParallelArrays(Ee,"shift"),Re.shift())),!1!==ne&&p(this,"addPoint",{point:Ee}),this.isDirtyData=this.isDirty=!0,B&&we.redraw(K)}removePoint(M,B,I){const K=this,ne=K.data,re=ne[M],_e=K.points,we=K.chart,Se=function(){_e&&_e.length===ne.length&&_e.splice(M,1),ne.splice(M,1),K.options.data.splice(M,1),K.updateParallelArrays(re||{series:K},"splice",[M,1]),re&&re.destroy(),K.isDirty=!0,K.isDirtyData=!0,B&&we.redraw()};U(I,we),B=X(B,!0),re?re.firePointEvent("remove",null,Se):Se()}remove(M,B,I,K){function ne(){re.destroy(K),_e.isDirtyLegend=_e.isDirtyBox=!0,_e.linkSeries(K),X(M,!0)&&_e.redraw(B)}const re=this,_e=re.chart;!1!==I?p(re,"remove",null,ne):ne()}update(M,B){M=E(M,this.userOptions),p(this,"update",{options:M});const I=this,K=I.chart;var ne=I.userOptions;const re=I.initialType||I.type;var _e=K.options.plotOptions;const we=S[re].prototype;var Se=I.finishedAnimating&&{animation:!1};const Re={};let ze,ie=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ee=M.type||ne.type||K.options.chart.type;const Ee=!(this.hasDerivedData||ee&&ee!==this.type||void 0!==M.pointStart||void 0!==M.pointInterval||void 0!==M.relativeXValue||M.joinBy||M.mapData||I.hasOptionChanged("dataGrouping")||I.hasOptionChanged("pointStart")||I.hasOptionChanged("pointInterval")||I.hasOptionChanged("pointIntervalUnit")||I.hasOptionChanged("keys"));if(ee=ee||re,Ee&&(ie.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==M.visible&&ie.push("area","graph"),I.parallelArrays.forEach(function(pe){ie.push(pe+"Data")}),M.data&&(M.dataSorting&&g(I.options.dataSorting,M.dataSorting),this.setData(M.data,!1))),M=Ce(ne,Se,{index:void 0===ne.index?I.index:ne.index,pointStart:X(_e&&_e.series&&_e.series.pointStart,ne.pointStart,I.xData[0])},!Ee&&{data:I.options.data},M),Ee&&M.data&&(M.data=I.options.data),ie=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(ie),ie.forEach(function(pe){ie[pe]=I[pe],delete I[pe]}),_e=!1,S[ee]){if(_e=ee!==I.type,I.remove(!1,!1,!1,!0),_e)if(Object.setPrototypeOf)Object.setPrototypeOf(I,S[ee].prototype);else{for(ze in Se=Object.hasOwnProperty.call(I,"hcEvents")&&I.hcEvents,we)I[ze]=void 0;g(I,S[ee].prototype),Se?I.hcEvents=Se:delete I.hcEvents}}else R(17,!0,K,{missingModuleFor:ee});if(ie.forEach(function(pe){I[pe]=ie[pe]}),I.init(K,M),Ee&&this.points){if(!1===(M=I.options).visible)Re.graphic=1,Re.dataLabel=1;else if(!I._hasPointLabels){const{marker:pe,dataLabels:De}=M;ne=ne.marker||{},!pe||!1!==pe.enabled&&ne.symbol===pe.symbol&&ne.height===pe.height&&ne.width===pe.width||(Re.graphic=1),De&&!1===De.enabled&&(Re.dataLabel=1)}for(const pe of this.points)pe&&pe.series&&(pe.resolveColor(),Object.keys(Re).length&&pe.destroyElements(Re),!1===M.showInLegend&&pe.legendItem&&K.legend.destroyItem(pe))}I.initialType=re,K.linkSeries(),_e&&I.linkedSeries.length&&(I.isDirtyData=!0),p(this,"afterUpdate"),X(B,!0)&&K.redraw(!!Ee&&void 0)}setName(M){this.name=this.options.name=this.userOptions.name=M,this.chart.isDirtyLegend=!0}hasOptionChanged(M){const B=this.options[M],I=this.chart.options.plotOptions,K=this.userOptions[M];return K?B!==K:B!==X(I&&I[this.type]&&I[this.type][M],I&&I.series&&I.series[M],B)}onMouseOver(){const M=this.chart,B=M.hoverSeries;M.pointer.setHoverChartIndex(),B&&B!==this&&B.onMouseOut(),this.options.events.mouseOver&&p(this,"mouseOver"),this.setState("hover"),M.hoverSeries=this}onMouseOut(){const M=this.options,B=this.chart,I=B.tooltip,K=B.hoverPoint;B.hoverSeries=null,K&&K.onMouseOut(),this&&M.events.mouseOut&&p(this,"mouseOut"),!I||this.stickyTracking||I.shared&&!this.noSharedTooltip||I.hide(),B.series.forEach(function(ne){ne.setState("",!0)})}setState(M,B){const I=this;var K=I.options;const ne=I.graph,re=K.inactiveOtherPoints,_e=K.states,we=X(_e[M||"normal"]&&_e[M||"normal"].animation,I.chart.options.chart.animation);let Se=K.lineWidth,Re=0,ze=K.opacity;if(I.state!==(M=M||"")&&([I.group,I.markerGroup,I.dataLabelsGroup].forEach(function(ie){ie&&(I.state&&ie.removeClass("highcharts-series-"+I.state),M&&ie.addClass("highcharts-series-"+M))}),I.state=M,!I.chart.styledMode)){if(_e[M]&&!1===_e[M].enabled)return;if(M&&(Se=_e[M].lineWidth||Se+(_e[M].lineWidthPlus||0),ze=X(_e[M].opacity,ze)),ne&&!ne.dashstyle&&Y(Se))for(ne.animate(K={"stroke-width":Se},we);I["zone-graph-"+Re];)I["zone-graph-"+Re].animate(K,we),Re+=1;re||[I.group,I.markerGroup,I.dataLabelsGroup,I.labelBySeries].forEach(function(ie){ie&&ie.animate({opacity:ze},we)})}B&&re&&I.points&&I.setAllPointsToState(M||void 0)}setAllPointsToState(M){this.points.forEach(function(B){B.setState&&B.setState(M)})}setVisible(M,B){const I=this,K=I.chart,ne=K.options.chart.ignoreHiddenSeries,_e=(I.visible=M=I.options.visible=I.userOptions.visible=void 0===M?!I.visible:M)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(we){I[we]&&I[we][_e]()}),(K.hoverSeries===I||(K.hoverPoint&&K.hoverPoint.series)===I)&&I.onMouseOut(),I.legendItem&&K.legend.colorizeItem(I,M),I.isDirty=!0,I.options.stacking&&K.series.forEach(function(we){we.options.stacking&&we.visible&&(we.isDirty=!0)}),I.linkedSeries.forEach(function(we){we.setVisible(M,!1)}),ne&&(K.isDirtyBox=!0),p(I,_e),!1!==B&&K.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(M){this.selected=M=this.options.selected=void 0===M?!this.selected:M,this.checkbox&&(this.checkbox.checked=M),p(this,M?"select":"unselect")}shouldShowTooltip(M,B,I={}){return I.series=this,I.visiblePlotOnly=!0,this.chart.isInsidePlot(M,B,I)}drawLegendSymbol(M,B){var I;null===(I=me[this.options.legendSymbol||"rectangle"])||void 0===I||I.call(this,M,B)}}return q.defaultOptions=Ae,q.types=ce.seriesTypes,q.registerType=ce.registerSeriesType,g(q.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:fe,requireSorting:!0,sorted:!0}),ce.series=q,q}),Oe(be,"Core/Chart/Chart.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Defaults.js"],be["Core/Templating.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Time.js"],be["Core/Utilities.js"],be["Core/Renderer/HTML/AST.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W,U,Q){const{animate:te,animObject:x,setAnimation:y}=oe,{defaultOptions:A,defaultTime:S}=ve,{numberFormat:N}=xe,{registerEventOptions:F}=me,{charts:G,doc:b,marginNames:w,svg:E,win:O}=fe,{seriesTypes:R}=ye,{addEvent:g,attr:h,createElement:p,css:v,defined:P,diffObjects:V,discardElement:D,erase:Y,error:de,extend:Ce,find:Ne,fireEvent:X,getStyle:m,isArray:H,isNumber:Z,isObject:q,isString:he,merge:M,objectEach:B,pick:I,pInt:K,relativeLength:ne,removeEvent:re,splat:_e,syncTimeout:we,uniqueKey:Se}=U;class Re{static chart(ie,ee,Ee){return new Re(ie,ee,Ee)}constructor(ie,ee,Ee){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(ie,ee,Ee)}getArgs(ie,ee,Ee){he(ie)||ie.nodeName?(this.renderTo=ie,this.init(ee,Ee)):this.init(ie,ee)}setZoomOptions(){const ie=this.options.chart,ee=ie.zooming;this.zooming=Object.assign(Object.assign({},ee),{type:I(ie.zoomType,ee.type),key:I(ie.zoomKey,ee.key),pinchType:I(ie.pinchType,ee.pinchType),singleTouch:I(ie.zoomBySingleTouch,ee.singleTouch,!1),resetButton:M(ee.resetButton,ie.resetZoomButton)})}init(ie,ee){X(this,"init",{args:arguments},function(){const Ee=M(A,ie),pe=Ee.chart;this.userOptions=Ce({},ie),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=ee,this.isResizing=0,this.options=Ee,this.axes=[],this.series=[],this.time=ie.time&&Object.keys(ie.time).length?new W(ie.time):fe.time,this.numberFormatter=pe.numberFormatter||N,this.styledMode=pe.styledMode,this.hasCartesianSeries=pe.showAxes,this.index=G.length,G.push(this),fe.chartCount++,F(this,pe),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),X(this,"afterInit"),this.firstRender()})}initSeries(ie){var ee=this.options.chart;const Ee=R[ee=ie.type||ee.type];return Ee||de(17,!0,this,{missingModuleFor:ee}),"function"==typeof(ee=new Ee).init&&ee.init(this,ie),ee}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(ie){ie.points||ie.data||!ie.enabledDataSorting||ie.setData(ie.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(ie,ee){return ie.linkedSeries.length||ee.linkedSeries.length?ee.linkedSeries.length-ie.linkedSeries.length:0})}orderItems(ie,ee=0){const Ee=this[ie],pe=this.options[ie]=_e(this.options[ie]).slice();if(ie=this.userOptions[ie]=this.userOptions[ie]?_e(this.userOptions[ie]).slice():[],this.hasRendered&&(pe.splice(ee),ie.splice(ee)),Ee)for(let De=ee,Ge=Ee.length;De=Math.max(yt+Ge,Lt.pos)&&Nt<=Math.min(yt+Ge+Zt.width,Lt.pos+Lt.len)||(ie.isInsidePlot=!1)}return!Ee.ignoreY&&ie.isInsidePlot&&(yt=!pe&&Ee.axis&&!Ee.axis.isXAxis&&Ee.axis||_t&&(pe?_t.xAxis:_t.yAxis)||{pos:We,len:1/0},(Ee=Ee.paneCoordinates?yt.pos+ee:We+ee)>=Math.max(ft+We,yt.pos)&&Ee<=Math.min(ft+We+Zt.height,yt.pos+yt.len)||(ie.isInsidePlot=!1)),X(this,"afterIsInsidePlot",ie),ie.isInsidePlot}redraw(ie){X(this,"beforeRedraw");const ee=this.hasCartesianSeries?this.axes:this.colorAxis||[],Ee=this.series,pe=this.pointer,De=this.legend,Ge=this.userOptions.legend,We=this.renderer,ut=We.isHidden(),yt=[];let ft,_t,Lt,Zt=this.isDirtyBox,Nt=this.isDirtyLegend;for(We.rootFontSize=We.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&ie,this),ut&&this.temporaryDisplay(),this.layOutTitles(!1),ie=Ee.length;ie--;)if(Lt=Ee[ie],(Lt.options.stacking||Lt.options.centerInCategory)&&(_t=!0,Lt.isDirty)){ft=!0;break}if(ft)for(ie=Ee.length;ie--;)Lt=Ee[ie],Lt.options.stacking&&(Lt.isDirty=!0);Ee.forEach(function(Xt){Xt.isDirty&&("point"===Xt.options.legendType?("function"==typeof Xt.updateTotals&&Xt.updateTotals(),Nt=!0):Ge&&(Ge.labelFormatter||Ge.labelFormat)&&(Nt=!0)),Xt.isDirtyData&&X(Xt,"updatedData")}),Nt&&De&&De.options.enabled&&(De.render(),this.isDirtyLegend=!1),_t&&this.getStacks(),ee.forEach(function(Xt){Xt.updateNames(),Xt.setScale()}),this.getMargins(),ee.forEach(function(Xt){Xt.isDirty&&(Zt=!0)}),ee.forEach(function(Xt){const ii=Xt.min+","+Xt.max;Xt.extKey!==ii&&(Xt.extKey=ii,yt.push(function(){X(Xt,"afterSetExtremes",Ce(Xt.eventArgs,Xt.getExtremes())),delete Xt.eventArgs})),(Zt||_t)&&Xt.redraw()}),Zt&&this.drawChartBox(),X(this,"predraw"),Ee.forEach(function(Xt){(Zt||Xt.isDirty)&&Xt.visible&&Xt.redraw(),Xt.isDirtyData=!1}),pe&&pe.reset(!0),We.draw(),X(this,"redraw"),X(this,"render"),ut&&this.temporaryDisplay(!0),yt.forEach(function(Xt){Xt.call()})}get(ie){function ee(De){return De.id===ie||De.options&&De.options.id===ie}const Ee=this.series;let pe=Ne(this.axes,ee)||Ne(this.series,ee);for(let De=0;!pe&&De(ee.getPointsCollection().forEach(Ee=>{I(Ee.selectedStaging,Ee.selected)&&ie.push(Ee)}),ie),[])}getSelectedSeries(){return this.series.filter(function(ie){return ie.selected})}setTitle(ie,ee,Ee){this.applyDescription("title",ie),this.applyDescription("subtitle",ee),this.applyDescription("caption",void 0),this.layOutTitles(Ee)}applyDescription(ie,ee){const Ee=this,pe=this.options[ie]=M(this.options[ie],ee);let De=this[ie];De&&ee&&(this[ie]=De=De.destroy()),pe&&!De&&(De=this.renderer.text(pe.text,0,0,pe.useHTML).attr({align:pe.align,class:"highcharts-"+ie,zIndex:pe.zIndex||4}).add(),De.update=function(Ge,We){Ee.applyDescription(ie,Ge),Ee.layOutTitles(We)},this.styledMode||De.css(Ce("title"===ie?{fontSize:this.options.isStock?"1em":"1.2em"}:{},pe.style)),this[ie]=De)}layOutTitles(ie=!0){const ee=[0,0,0],Ee=this.renderer,pe=this.spacingBox;["title","subtitle","caption"].forEach(function(Ge){const We=this[Ge],ut=this.options[Ge],yt=ut.verticalAlign||"top";if(Ge="title"===Ge?"top"===yt?-3:0:"top"===yt?ee[0]+2:0,We){We.css({width:(ut.width||pe.width+(ut.widthAdjust||0))+"px"});const ft=Ee.fontMetrics(We).b,_t=Math.round(We.getBBox(ut.useHTML).height);We.align(Ce({y:"bottom"===yt?ft:Ge+ft,height:_t},ut),!1,"spacingBox"),ut.floating||("top"===yt?ee[0]=Math.ceil(ee[0]+_t):"bottom"===yt&&(ee[2]=Math.ceil(ee[2]+_t)))}},this),ee[0]&&"top"===(this.options.title.verticalAlign||"top")&&(ee[0]+=this.options.title.margin),ee[2]&&"bottom"===this.options.caption.verticalAlign&&(ee[2]+=this.options.caption.margin);const De=!this.titleOffset||this.titleOffset.join(",")!==ee.join(",");this.titleOffset=ee,X(this,"afterLayOutTitles"),!this.isDirtyBox&&De&&(this.isDirtyBox=this.isDirtyLegend=De,this.hasRendered&&ie&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:m(this.renderTo,"width",!0)||0,height:m(this.renderTo,"height",!0)||0}}getChartSize(){var ie=this.options.chart;const ee=ie.width;ie=ie.height;const Ee=this.getContainerBox();this.chartWidth=Math.max(0,ee||Ee.width||600),this.chartHeight=Math.max(0,ne(ie,this.chartWidth)||(1{var pe;null!==(pe=ie.options)&&void 0!==pe&&pe.chart.reflow&&ie.hasLoaded&&ie.reflow(Ee)};"function"==typeof ResizeObserver?new ResizeObserver(ee).observe(ie.renderTo):(ee=g(O,"resize",ee),g(this,"destroy",ee))}setSize(ie,ee,Ee){const pe=this,De=pe.renderer;pe.isResizing+=1,y(Ee,pe),Ee=De.globalAnimation,pe.oldChartHeight=pe.chartHeight,pe.oldChartWidth=pe.chartWidth,void 0!==ie&&(pe.options.chart.width=ie),void 0!==ee&&(pe.options.chart.height=ee),pe.getChartSize(),pe.styledMode||(Ee?te:v)(pe.container,{width:pe.chartWidth+"px",height:pe.chartHeight+"px"},Ee),pe.setChartSize(!0),De.setSize(pe.chartWidth,pe.chartHeight,Ee),pe.axes.forEach(function(Ge){Ge.isDirty=!0,Ge.setScale()}),pe.isDirtyLegend=!0,pe.isDirtyBox=!0,pe.layOutTitles(),pe.getMargins(),pe.redraw(Ee),pe.oldChartHeight=null,X(pe,"resize"),we(function(){pe&&X(pe,"endResize",null,function(){--pe.isResizing})},x(Ee).duration)}setChartSize(ie){var ee=this.inverted;const Ee=this.renderer;var pe=this.chartWidth,De=this.chartHeight;const Ge=this.options.chart,We=this.spacing,ut=this.clipOffset;let yt,ft,_t,Zt;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=ft=Math.round(this.plotTop),this.plotWidth=_t=Math.max(0,Math.round(pe-yt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(De-ft-this.marginBottom)),this.plotSizeX=ee?Zt:_t,this.plotSizeY=ee?_t:Zt,this.plotBorderWidth=Ge.plotBorderWidth||0,this.spacingBox=Ee.spacingBox={x:We[3],y:We[0],width:pe-We[3]-We[1],height:De-We[0]-We[2]},this.plotBox=Ee.plotBox={x:yt,y:ft,width:_t,height:Zt},ee=2*Math.floor(this.plotBorderWidth/2),pe=Math.ceil(Math.max(ee,ut[3])/2),De=Math.ceil(Math.max(ee,ut[0])/2),this.clipBox={x:pe,y:De,width:Math.floor(this.plotSizeX-Math.max(ee,ut[1])/2-pe),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(ee,ut[2])/2-De))},ie||(this.axes.forEach(function(Nt){Nt.setAxisSize(),Nt.setAxisTranslation()}),Ee.alignElements()),X(this,"afterSetChartSize",{skipAxes:ie})}resetMargins(){X(this,"resetMargins");const ie=this,ee=ie.options.chart;["margin","spacing"].forEach(function(Ee){const pe=ee[Ee],De=q(pe)?pe:[pe,pe,pe,pe];["Top","Right","Bottom","Left"].forEach(function(Ge,We){ie[Ee][We]=I(ee[Ee+Ge],De[We])})}),w.forEach(function(Ee,pe){ie[Ee]=I(ie.margin[pe],ie.spacing[pe])}),ie.axisOffset=[0,0,0,0],ie.clipOffset=[0,0,0,0]}drawChartBox(){const ie=this.options.chart,ee=this.renderer,Ee=this.chartWidth,pe=this.chartHeight,De=this.styledMode,Ge=this.plotBGImage;var We=ie.backgroundColor;const ut=ie.plotBackgroundColor,yt=ie.plotBackgroundImage,ft=this.plotLeft,_t=this.plotTop,Zt=this.plotWidth,Nt=this.plotHeight,Lt=this.plotBox,Xt=this.clipRect,ii=this.clipBox;let Bt,Bs,Tn=this.chartBackground,tn=this.plotBackground,Es=this.plotBorder,gs="animate";Tn||(this.chartBackground=Tn=ee.rect().addClass("highcharts-background").add(),gs="attr"),De?Bt=Bs=Tn.strokeWidth():(Bt=ie.borderWidth||0,Bs=Bt+(ie.shadow?8:0),We={fill:We||"none"},(Bt||Tn["stroke-width"])&&(We.stroke=ie.borderColor,We["stroke-width"]=Bt),Tn.attr(We).shadow(ie.shadow)),Tn[gs]({x:Bs/2,y:Bs/2,width:Ee-Bs-Bt%2,height:pe-Bs-Bt%2,r:ie.borderRadius}),gs="animate",tn||(gs="attr",this.plotBackground=tn=ee.rect().addClass("highcharts-plot-background").add()),tn[gs](Lt),De||(tn.attr({fill:ut||"none"}).shadow(ie.plotShadow),yt&&(Ge?(yt!==Ge.attr("href")&&Ge.attr("href",yt),Ge.animate(Lt)):this.plotBGImage=ee.image(yt,ft,_t,Zt,Nt).add())),Xt?Xt.animate({width:ii.width,height:ii.height}):this.clipRect=ee.clipRect(ii),gs="animate",Es||(gs="attr",this.plotBorder=Es=ee.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),De||Es.attr({stroke:ie.plotBorderColor,"stroke-width":ie.plotBorderWidth||0,fill:"none"}),Es[gs](Es.crisp({x:ft,y:_t,width:Zt,height:Nt},-Es.strokeWidth())),this.isDirtyBox=!1,X(this,"afterDrawChartBox")}propFromSeries(){const ie=this,ee=ie.options.chart,Ee=ie.options.series;let pe,De,Ge;["inverted","angular","polar"].forEach(function(We){for(De=R[ee.type],Ge=ee[We]||De&&De.prototype[We],pe=Ee&&Ee.length;!Ge&&pe--;)(De=R[Ee[pe].type])&&De.prototype[We]&&(Ge=!0);ie[We]=Ge})}linkSeries(ie){const ee=this,Ee=ee.series;Ee.forEach(function(pe){pe.linkedSeries.length=0}),Ee.forEach(function(pe){let De=pe.options.linkedTo;he(De)&&(De=":previous"===De?ee.series[pe.index-1]:ee.get(De))&&De.linkedParent!==pe&&(De.linkedSeries.push(pe),pe.linkedParent=De,De.enabledDataSorting&&pe.setDataSortingOptions(),pe.visible=I(pe.options.visible,De.options.visible,pe.visible))}),X(this,"afterLinkSeries",{isUpdating:ie})}renderSeries(){this.series.forEach(function(ie){ie.translate(),ie.render()})}render(){const ie=this.axes,ee=this.colorAxis,Ee=this.renderer,pe=function(ft){ft.forEach(function(_t){_t.visible&&_t.render()})};let De=0;this.setTitle(),X(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const Ge=this.plotWidth;ie.some(function(ft){if(ft.horiz&&ft.visible&&ft.options.labels.enabled&&ft.series.length)return De=21,!0});const We=this.plotHeight=Math.max(this.plotHeight-De,0);ie.forEach(function(ft){ft.setScale()}),this.getAxisMargins();const ut=1.1ee.pointCount))}pan(ie,ee){const Ee=this,pe=Ee.hoverPoints;ee="object"==typeof ee?ee:{enabled:ee,type:"x"};const De=Ee.options.chart;De&&De.panning&&(De.panning=ee);const Ge=ee.type;let We;X(this,"pan",{originalEvent:ie},function(){pe&&pe.forEach(function(ft){ft.setState()});let ut=Ee.xAxis;"xy"===Ge?ut=ut.concat(Ee.yAxis):"y"===Ge&&(ut=Ee.yAxis);const yt={};ut.forEach(function(ft){if(ft.options.panningEnabled&&!ft.options.isInternal){var _t=ft.horiz,Zt=ie[_t?"chartX":"chartY"],Nt=Ee[_t=_t?"mouseDownX":"mouseDownY"],Lt=ft.minPointOffset||0,Xt=ft.reversed&&!Ee.inverted||!ft.reversed&&Ee.inverted?-1:1,ii=ft.getExtremes(),Tn=ft.toValue(Nt-Zt,!0)+Lt*Xt,tn=ft.toValue(Nt+ft.len-Zt,!0)-(Lt*Xt||ft.isXAxis&&ft.pointRangePadding||0),Es=tn=Xt&&Tn<=tn&&(ft.setExtremes(Nt,Tn,!1,!1,{trigger:"pan"}),!Ee.resetZoomButton&&Nt!==Xt&&Tn!==tn&&Ge.match("y")&&(Ee.showResetZoom(),ft.displayBtn=!1),We=!0),yt[_t]=Zt)}}),B(yt,(ft,_t)=>{Ee[_t]=ft}),We&&Ee.redraw(!1),v(Ee.container,{cursor:"move"})})}}return Ce(Re.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Re.prototype.addAxis,[!0]],yAxis:[Re.prototype.addAxis,[!1]],series:[Re.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),Re}),Oe(be,"Extensions/ScrollablePlotArea.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Chart/Chart.js"],be["Core/Series/Series.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){const{stop:Ae}=oe,{addEvent:ce,createElement:ye,defined:se,merge:W,pick:U}=fe;ce(ve,"afterSetChartSize",function(Q){var te=this.options.chart.scrollablePlotArea,x=te&&te.minWidth;let y;te=te&&te.minHeight,this.renderer.forExport||(x?(this.scrollablePixelsX=x=Math.max(0,x-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=W(this.plotBox),this.plotBox.width=this.plotWidth+=x,this.inverted?this.clipBox.height+=x:this.clipBox.width+=x,y={1:{name:"right",value:x}}):te&&(this.scrollablePixelsY=x=Math.max(0,te-this.chartHeight),se(x)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=W(this.plotBox),this.plotBox.height=this.plotHeight+=x,this.inverted?this.clipBox.width+=x:this.clipBox.height+=x,y={2:{name:"bottom",value:x}})),y&&!Q.skipAxes&&this.axes.forEach(function(A){y[A.side]?A.getPlotLinePath=function(){let F,S=y[A.side].name,N=this[S];return this[S]=N-y[A.side].value,F=le.prototype.getPlotLinePath.apply(this,arguments),this[S]=N,F}:(A.setAxisSize(),A.setAxisTranslation())}))}),ce(ve,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),ve.prototype.setUpScrolling=function(){const Q={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};let te;this.scrollablePixelsX&&(Q.overflowX="auto"),this.scrollablePixelsY&&(Q.overflowY="auto"),this.scrollingParent=ye("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=ye("div",{className:"highcharts-scrolling"},Q,this.scrollingParent),ce(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(te=this.hoverPoint),this.pointer.runPointActions(void 0,te,!0))}),this.innerContainer=ye("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},ve.prototype.moveFixedElements=function(){let y,Q=this.container,te=this.fixedRenderer,x=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&x.push(`${y}:not(.highcharts-radial-axis)`,`${y}-labels:not(.highcharts-radial-axis-labels)`),x.forEach(function(A){[].forEach.call(Q.querySelectorAll(A),function(S){(S.namespaceURI===te.SVG_NS?te.box:te.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},ve.prototype.applyFixed=function(){var Q=!this.fixedDiv,te=this.options.chart,x=te.scrollablePlotArea,y=me.getRendererType();Q?(this.fixedDiv=ye("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(te.style&&te.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=te=new y(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=te.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":U(x.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),ce(this,"afterShowResetZoom",this.moveFixedElements),ce(this,"afterApplyDrilldown",this.moveFixedElements),ce(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||Q)&&(this.scrollableDirty=!1,this.moveFixedElements()),te=this.chartWidth+(this.scrollablePixelsX||0),y=this.chartHeight+(this.scrollablePixelsY||0),Ae(this.container),this.container.style.width=te+"px",this.container.style.height=y+"px",this.renderer.boxWrapper.attr({width:te,height:y,viewBox:[0,0,te,y].join(" ")}),this.chartBackground.attr({width:te,height:y}),this.scrollingContainer.style.height=this.chartHeight+"px",Q&&(x.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*x.scrollPositionX),x.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*x.scrollPositionY)),Q=this.plotTop-(y=this.axisOffset)[0]-1,x=this.plotLeft-y[3]-1,te=this.plotTop+this.plotHeight+y[2]+1,y=this.plotLeft+this.plotWidth+y[1]+1;let A=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),S=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);Q=this.scrollablePixelsX?[["M",0,Q],["L",this.plotLeft-1,Q],["L",this.plotLeft-1,te],["L",0,te],["Z"],["M",A,Q],["L",this.chartWidth,Q],["L",this.chartWidth,te],["L",A,te],["Z"]]:this.scrollablePixelsY?[["M",x,0],["L",x,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",x,S],["L",x,this.chartHeight],["L",y,this.chartHeight],["L",y,S],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:Q})},ce(le,"afterInit",function(){this.chart.scrollableDirty=!0}),ce(xe,"show",function(){this.chart.scrollableDirty=!0})}),Oe(be,"Core/Axis/Stacking/StackItem.js",[be["Core/Templating.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{format:xe}=oe,{series:me}=le,{destroyObjectProperties:fe,fireEvent:Ae,isNumber:ce,pick:ye}=ve;return class{constructor(U,Q,te,x,y){const A=U.chart.inverted,S=U.reversed;this.axis=U,U=this.isNegative=!!te!=!!S,this.options=Q=Q||{},this.x=x,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:Q.align||(A?U?"left":"right":"center"),verticalAlign:Q.verticalAlign||(A?"middle":U?"bottom":"top"),y:Q.y,x:Q.x},this.textAlign=Q.textAlign||(A?U?"right":"left":"center")}destroy(){fe(this,this.axis)}render(U){const Q=this.axis.chart,te=this.options;var x=te.format;x=x?xe(x,this,Q):te.formatter.call(this),this.label?this.label.attr({text:x,visibility:"hidden"}):(this.label=Q.renderer.label(x,null,void 0,te.shape,void 0,void 0,te.useHTML,!1,"stack-labels"),x={r:te.borderRadius||0,text:x,padding:ye(te.padding,5),visibility:"hidden"},Q.styledMode||(x.fill=te.backgroundColor,x.stroke=te.borderColor,x["stroke-width"]=te.borderWidth,this.label.css(te.style||{})),this.label.attr(x),this.label.added||this.label.add(U)),this.label.labelrank=Q.plotSizeY,Ae(this,"afterRender")}setOffset(U,Q,te,x,y,A){const{alignOptions:S,axis:N,label:F,options:G,textAlign:b}=this,w=N.chart;te=this.getStackBox({xOffset:U,width:Q,boxBottom:te,boxTop:x,defaultX:y,xAxis:A});var{verticalAlign:E}=S;if(F&&te){x=F.getBBox(),y=F.padding,A="justify"===ye(G.overflow,"justify"),S.x=G.x||0,S.y=G.y||0;const{x:O,y:R}=this.adjustStackPosition({labelBox:x,verticalAlign:E,textAlign:b});te.x-=O,te.y-=R,F.align(S,!1,te),(E=w.isInsidePlot(F.alignAttr.x+S.x+O,F.alignAttr.y+S.y+R))||(A=!1),A&&me.prototype.justifyDataLabel.call(N,F,S,F.alignAttr,x,te),F.attr({x:F.alignAttr.x,y:F.alignAttr.y,rotation:G.rotation,rotationOriginX:x.width/2,rotationOriginY:x.height/2}),ye(!A&&G.crop,!0)&&(E=ce(F.x)&&ce(F.y)&&w.isInsidePlot(F.x-y+F.width,F.y)&&w.isInsidePlot(F.x+y,F.y)),F[E?"show":"hide"]()}Ae(this,"afterSetOffset",{xOffset:U,width:Q})}adjustStackPosition({labelBox:U,verticalAlign:Q,textAlign:te}){const x={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:U.width/2+U.width/2*x[te],y:U.height/2*x[Q]}}getStackBox(U){var Q=this.axis;const te=Q.chart,{boxTop:x,defaultX:y,xOffset:A,width:S,boxBottom:N}=U;var F=Q.stacking.usePercentage?100:ye(x,this.total,0);F=Q.toPixels(F);const G=ye(y,(U=U.xAxis||te.xAxis[0]).translate(this.x))+A;Q=Q.toPixels(N||ce(Q.min)&&Q.logarithmic&&Q.logarithmic.lin2log(Q.min)||0),Q=Math.abs(F-Q);const b=this.isNegative;return te.inverted?{x:(b?F:F-Q)-te.plotLeft,y:U.height-G-S,width:Q,height:S}:{x:G+U.transB-te.plotLeft,y:(b?F-Q:F)-te.plotTop,width:S,height:Q}}}}),Oe(be,"Core/Axis/Stacking/StackingAxis.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Axis/Stacking/StackItem.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me){function fe(){const g=this,h=g.inverted;g.yAxis.forEach(p=>{p.stacking&&p.stacking.stacks&&p.hasVisibleSeries&&(p.stacking.oldStacks=p.stacking.stacks)}),g.series.forEach(p=>{const v=p.xAxis&&p.xAxis.options||{};!p.options.stacking||!0!==p.visible&&!1!==g.options.chart.ignoreHiddenSeries||(p.stackKey=[p.type,E(p.options.stack,""),h?v.top:v.left,h?v.height:v.width].join())})}function Ae(){const g=this.stacking;if(g){var h=g.stacks;w(h,function(p,v){N(p),h[v]=null}),g&&g.stackTotalGroup&&g.stackTotalGroup.destroy()}}function ce(){"yAxis"!==this.coll||this.stacking||(this.stacking=new O(this))}function ye(g,h,p,v){return!S(g)||g.x!==h||v&&g.stackKey!==v?g={x:h,index:0,key:v,stackKey:v}:g.index++,g.key=[p,h,g.index].join(),g}function se(){const g=this,h=g.stackKey,p=g.yAxis.stacking.stacks,v=g.processedXData,P=g[g.options.stacking+"Stacker"];let V;P&&[h,"-"+h].forEach(D=>{let de,Y=v.length;for(;Y--;){var Ce=v[Y];V=g.getStackIndicator(V,Ce,g.index,D),(de=(Ce=p[D]&&p[D][Ce])&&Ce.points[V.key])&&P.call(g,de,Ce,Y)}})}function W(g,h,p){g[0]=A(g[0]*(h=h.total?100/h.total:0)),g[1]=A(g[1]*h),this.stackedYData[p]=g[1]}function U(){const g=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1{"group"===p.slice(-5)&&(w(h,v=>v.destroy()),delete g.stacks[p])})}function Q(g){var h=this.chart;const p=g||this.options.stacking;if(p&&(!0===this.visible||!1===h.options.chart.ignoreHiddenSeries)){var v=this.processedXData,P=this.processedYData,V=[],D=P.length,Y=this.options,de=Y.threshold,Ce=E(Y.startFromThreshold&&de,0);Y=Y.stack;var Z,q,Ne="-"+(g=g?`${this.type},${p}`:this.stackKey),X=this.negStacks,m=(h="group"===p?h.yAxis[0]:this.yAxis).stacking.stacks,H=h.stacking.oldStacks;for(h.stacking.stacksTouched+=1,q=0;q{w(h,(p,v)=>{b(p.touched)&&p.touchedte&&ye.shadow)),y&&(y.startX=se.xMap,y.isArea=se.isArea)})}getGraphPath(ce,ye,se){const W=this,U=W.options,Q=[],te=[];let x,y=U.step;const A=(ce=ce||W.points).reversed;return A&&ce.reverse(),(y={right:1,center:2}[y]||y&&3)&&A&&(y=4-y),(ce=this.getValidPoints(ce,!1,!(U.connectNulls&&!ye&&!se))).forEach(function(S,N){const F=S.plotX,G=S.plotY,b=ce[N-1],w=S.isNull||"number"!=typeof G;(S.leftCliff||b&&b.rightCliff)&&!se&&(x=!0),w&&!xe(ye)&&0E.visible);te.forEach(function(E,O){let g,h,R=0;if(S[E]&&!S[E].isNull)Q.push(S[E]),[-1,1].forEach(function(p){const v=1===p?"rightNull":"leftNull",P=A[te[O+p]];let V=0;if(P){let D=b;for(;0<=D&&Dce&&x>U?(x=Math.max(ce,U),y=2*U-x):xse&&y>U?(y=Math.max(se,U),x=2*U-y):y=Math.abs(E)&&.5{if("number"==typeof O.x){const V=P[O.x.toString()];V&&(P=V.points[this.index],g?(P&&(p=v),V.hasValidPoints&&(h?v++:v--)):y(P)&&(P=Object.keys(V.points).filter(D=>!D.match(",")&&V.points[D]&&1Y-D),p=P.indexOf(this.index),v=P.length))}}),w=(O.plotX||0)+((v-1)*R.paddedWidth+E)/2-E-p*R.paddedWidth}return w}translate(){const w=this,E=w.chart,O=w.options;var R=w.dense=2>w.closestPointRange*w.xAxis.transA;R=w.borderWidth=N(O.borderWidth,R?0:1);const g=w.xAxis,h=w.yAxis,p=O.threshold,v=N(O.minPointLength,5),P=w.getColumnMetrics(),V=P.width,D=w.pointXOffset=P.offset,Y=w.dataMin,de=w.dataMax;let Ce=w.barW=Math.max(V,1+2*R),Ne=w.translatedThreshold=h.getThreshold(p);E.inverted&&(Ne-=.5),O.pointPadding&&(Ce=Math.ceil(Ce)),me.prototype.translate.apply(w),w.points.forEach(function(X){const m=N(X.yBottom,Ne);var H=999+Math.abs(m),Z=X.plotX||0;H=U(X.plotY,-H,h.len+H);let q=Math.min(H,m),he=Math.max(H,m)-q,M=V,B=Z+D,I=Ce;v&&Math.abs(he)v?m-v:Ne-(Z?v:0)),Q(X.options.pointWidth)&&(M=I=Math.ceil(X.options.pointWidth),B-=Math.round((M-V)/2)),O.centerInCategory&&(B=w.adjustForMissingColumns(B,M,X,P)),X.barX=B,X.pointWidth=M,X.tooltipPos=E.inverted?[U(h.len+h.pos-E.plotLeft-H,h.pos-E.plotLeft,h.len+h.pos-E.plotLeft),g.len+g.pos-E.plotTop-B-I/2,he]:[g.left-E.plotLeft+B+I/2,U(H+h.pos-E.plotTop,h.pos-E.plotTop,h.len+h.pos-E.plotTop),he],X.shapeType=w.pointClass.prototype.shapeType||"roundedRect",X.shapeArgs=w.crispCol(B,X.isNull?Ne:q,I,X.isNull?0:he)}),x(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(w,E){const O=this.options;var R=this.pointAttrToOptions||{},g=R.stroke||"borderColor";const h=R["stroke-width"]||"borderWidth";let p,v=w&&w.color||this.color,P=w&&w[g]||O[g]||v;R=w&&w.options.dashStyle||O.dashStyle;let V=w&&w[h]||O[h]||this[h]||0,D=N(w&&w.opacity,O.opacity,1);return w&&this.zones.length&&(p=w.getZone(),v=w.options.color||p&&(p.color||w.nonZonedColor)||this.color,p&&(P=p.borderColor||P,R=p.dashStyle||R,V=p.borderWidth||V)),E&&w&&(E=(w=S(O.states[E],w.options.states&&w.options.states[E]||{})).brightness,v=w.color||void 0!==E&&ye(v).brighten(w.brightness).get()||v,P=w[g]||P,V=w[h]||V,R=w.dashStyle||R,D=N(w.opacity,D)),g={fill:v,stroke:P,"stroke-width":V,opacity:D},R&&(g.dashstyle=R),g}drawPoints(w=this.points){const E=this,O=this.chart,R=E.options,g=O.renderer,h=R.animationLimit||250;let p;w.forEach(function(v){let P=v.graphic,V=!!P,D=P&&O.pointCount{var he;const M=q.dataLabels||[];for(X=te(w(Ne,q.dlOptions||(null===(he=q.options)||void 0===he?void 0:he.dataLabels))),X.forEach((B,I)=>{var K,ne=B.enabled&&(!q.isNull||q.dataLabelOnNull)&&function(R,g){var h=g.filter;return!h||(g=h.operator,R=R[h.property],h=h.value,">"===g&&R>h||"<"===g&&R="===g&&R>=h||"<="===g&&R<=h||"=="===g&&R==h||"==="===g&&R===h)}(q,B);const re=q.connectors?q.connectors[I]:q.connector,_e=B.style||{};let we={},Se=M[I],Re=!Se;const ze=Q(B.distance,q.labelDistance);if(ne){var ie=Q(B[q.formatPrefix+"Format"],B.format),ee=q.getLabelConfig();if(ee=fe(ie)?me(ie,ee,v):(B[q.formatPrefix+"Formatter"]||B.formatter).call(ee,B),ie=B.rotation,v.styledMode||(_e.color=Q(B.color,_e.color,se(p.color)?p.color:void 0,"#000000"),"contrast"===_e.color?(q.contrastColor=V.getContrast(q.color||p.color),_e.color=!fe(ze)&&B.inside||0>(ze||0)||P.stacking?q.contrastColor:Ce):delete q.contrastColor,P.cursor&&(_e.cursor=P.cursor)),we={r:B.borderRadius||0,rotation:ie,padding:B.padding,zIndex:1},!v.styledMode){const{backgroundColor:Ee,borderColor:pe}=B;we.fill="auto"===Ee?q.color:Ee,we.stroke="auto"===pe?q.color:pe,we["stroke-width"]=B.borderWidth}U(we,(Ee,pe)=>{void 0===Ee&&delete we[pe]})}!Se||ne&&fe(ee)&&!!Se.div==!!B.useHTML&&(Se.rotation&&B.rotation||Se.rotation===B.rotation)||(Se=void 0,Re=!0,re&&q.connector&&(q.connector=q.connector.destroy(),q.connectors&&(1===q.connectors.length?delete q.connectors:delete q.connectors[I]))),ne&&fe(ee)&&(Se?we.text=ee:(Se=ie?V.text(ee,0,0,B.useHTML).addClass("highcharts-data-label"):V.label(ee,0,0,B.shape,void 0,void 0,B.useHTML,void 0,"data-label"))&&Se.addClass(" highcharts-data-label-color-"+q.colorIndex+" "+(B.className||"")+(B.useHTML?" highcharts-tracker":"")),Se&&(Se.options=B,Se.attr(we),v.styledMode||Se.css(_e).shadow(B.shadow),(ne=B[q.formatPrefix+"TextPath"]||B.textPath)&&!B.useHTML&&(Se.setTextPath((null===(K=q.getDataLabelPath)||void 0===K?void 0:K.call(q,Se))||q.graphic,ne),q.dataLabelPath&&!ne.enabled&&(q.dataLabelPath=q.dataLabelPath.destroy())),Se.added||Se.add(m),p.alignDataLabel(q,Se,B,void 0,Re),Se.isActive=!0,M[I]&&M[I]!==Se&&M[I].destroy(),M[I]=Se))}),he=M.length;he--;)M[he].isActive?M[he].isActive=!1:(M[he].destroy(),M.splice(he,1));q.dataLabel=M[0],q.dataLabels=M})),ce(this,"afterDrawDataLabels")}function b(R,g,h,p,v,P){const V=this.chart,D=g.align,Y=g.verticalAlign,de=R.box?0:R.padding||0;let X,m,{x:Ce=0,y:Ne=0}=g;return X=(h.x||0)+de,0>X&&("right"===D&&0<=Ce?(g.align="left",g.inside=!0):Ce-=X,m=!0),X=(h.x||0)+p.width-de,X>V.plotWidth&&("left"===D&&0>=Ce?(g.align="right",g.inside=!0):Ce+=V.plotWidth-X,m=!0),X=h.y+de,0>X&&("bottom"===Y&&0<=Ne?(g.verticalAlign="top",g.inside=!0):Ne-=X,m=!0),X=(h.y||0)+p.height-de,X>V.plotHeight&&("top"===Y&&0>=Ne?(g.verticalAlign="bottom",g.inside=!0):Ne+=V.plotHeight-X,m=!0),m&&(g.x=Ce,g.y=Ne,R.placed=!P,R.align(g,void 0,v)),m}function w(R,g){let p,h=[];if(ye(R)&&!ye(g))h=R.map(function(v){return W(v,g)});else if(ye(g)&&!ye(R))h=g.map(function(v){return W(R,v)});else if(ye(R)||ye(g)){if(ye(R)&&ye(g))for(p=Math.max(R.length,g.length);p--;)h[p]=W(R[p],g[p])}else h=W(R,g);return h}function E(R,g,h,p,v){const P=this.chart,V=P.inverted,D=this.xAxis,Y=D.reversed,de=V?g.height/2:g.width/2;R=(R=R.pointWidth)?R/2:0,g.startXPos=V?v.x:Y?-de-R:D.width-de+R,g.startYPos=V?Y?this.yAxis.height-de+R:-de-R:v.y,p?"hidden"===g.visibility&&(g.show(),g.attr({opacity:0}).animate({opacity:1})):g.attr({opacity:1}).animate({opacity:0},void 0,g.hide),P.hasRendered&&(h&&g.attr({x:g.startXPos,y:g.startYPos}),g.placed=!0)}const O=[];y.compose=function(R){ve.pushUnique(O,R)&&((R=R.prototype).initDataLabelsGroup=N,R.initDataLabels=F,R.alignDataLabel=A,R.drawDataLabels=G,R.justifyDataLabel=b,R.setDataLabelStartPos=E)}}(x||(x={})),x}),Oe(be,"Series/Column/ColumnDataLabel.js",[be["Core/Series/DataLabel.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{series:xe}=le,{merge:me,pick:fe}=ve;var Ae;return function(ce){function ye(W,U,Q,te,x){let y=this.chart.inverted;var A=W.series;let S=(A.xAxis?A.xAxis.len:this.chart.plotSizeX)||0;var N=W.dlBox||W.shapeArgs;let F=fe(W.below,W.plotY>fe(this.translatedThreshold,A=(A.yAxis?A.yAxis.len:this.chart.plotSizeY)||0)),G=fe(Q.inside,!!this.options.stacking);N&&(0>(te=me(N)).y&&(te.height+=te.y,te.y=0),0<(N=te.y+te.height-A)&&N\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),Oe(be,"Series/Scatter/ScatterSeries.js",[be["Series/Scatter/ScatterSeriesDefaults.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{column:xe,line:me}=le.seriesTypes,{addEvent:fe,extend:Ae,merge:ce}=ve;class ye extends me{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const W=this,U=this.options.jitter,Q=this.points.length;U&&this.points.forEach(function(te,x){["x","y"].forEach(function(y,A){let N,F,S="plot"+y.toUpperCase();if(U[y]&&!te.isNull){var G=W[y+"Axis"];F=U[y]*G.transA,G&&!G.isLog&&(N=Math.max(0,te[S]-F),G=Math.min(G.len,te[S]+F),A=1e4*Math.sin(x+A*Q),A-=Math.floor(A),te[S]=N+(G-N)*A,"x"===y&&(te.clientX=te.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return ye.defaultOptions=ce(me.defaultOptions,oe),Ae(ye.prototype,{drawTracker:xe.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),fe(ye,"afterTranslate",function(){this.applyJitter()}),le.registerSeriesType("scatter",ye),ye}),Oe(be,"Series/CenteredUtilities.js",[be["Core/Globals.js"],be["Core/Series/Series.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{deg2rad:xe}=oe,{fireEvent:me,isNumber:fe,pick:Ae,relativeLength:ce}=ve;var ye=(()=>{return(se=ye||(ye={})).getCenter=function(){var W=this.options,U=this.chart;const Q=2*(W.slicedOffset||0),te=U.plotWidth-2*Q,x=U.plotHeight-2*Q;var y=W.center;const A=Math.min(te,x),S=W.thickness;var N=W.size;let F=W.innerSize||0;for("string"==typeof N&&(N=parseFloat(N)),"string"==typeof F&&(F=parseFloat(F)),W=[Ae(y[0],"50%"),Ae(y[1],"50%"),Ae(N&&0>N?void 0:W.size,"100%"),Ae(F&&0>F?void 0:W.innerSize||0,"0%")],!U.angular||this instanceof le||(W[3]=0),y=0;4>y;++y)N=W[y],U=2>y||2===y&&/%$/.test(N),W[y]=ce(N,[te,x,A,W[2]][y])+(U?Q:0);return W[3]>W[2]&&(W[3]=W[2]),fe(S)&&2*SW&&360>U-W?U:W+360,{start:xe*(W+-90),end:xe*(U+-90)}},ye;var se})();return ye}),Oe(be,"Series/Pie/PiePoint.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Series/Point.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{setAnimation:xe}=oe,{addEvent:me,defined:fe,extend:Ae,isNumber:ce,pick:ye,relativeLength:se}=ve;class W extends le{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const Q=this.labelPosition,te=this.series.options.dataLabels,x=this.connectorShapes;let y=te.connectorShape;return x[y]&&(y=x[y]),y.call(this,{x:Q.computed.x,y:Q.computed.y,alignment:Q.alignment},Q.connectorPosition,te)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(Q){const te=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(te.x,te.y,te.r+Q,te.r+Q,{innerR:te.r-1,start:te.start,end:te.end,borderRadius:te.borderRadius})}init(){super.init.apply(this,arguments),this.name=ye(this.name,"Slice");const Q=te=>{this.slice("select"===te.type)};return me(this,"select",Q),me(this,"unselect",Q),this}isValid(){return ce(this.y)&&0<=this.y}setVisible(Q,te){const x=this.series,y=x.chart,A=x.options.ignoreHiddenPoint;te=ye(te,A),Q!==this.visible&&(this.visible=this.options.visible=Q=void 0===Q?!this.visible:Q,x.options.data[x.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(S=>{this[S]&&this[S][Q?"show":"hide"](Q)}),this.legendItem&&y.legend.colorizeItem(this,Q),Q||"hover"!==this.state||this.setState(""),A&&(x.isDirty=!0),te&&y.redraw())}slice(Q,te,x){const y=this.series;xe(x,y.chart),ye(te,!0),this.sliced=this.options.sliced=fe(Q)?Q:!this.sliced,y.options.data[y.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Ae(W.prototype,{connectorShapes:{fixedOffset:function(U,Q,te){const x=Q.breakAt;return Q=Q.touchingSliceAt,[["M",U.x,U.y],te.softConnector?["C",U.x+("left"===U.alignment?-5:5),U.y,2*x.x-Q.x,2*x.y-Q.y,x.x,x.y]:["L",x.x,x.y],["L",Q.x,Q.y]]},straight:function(U,Q){return[["M",U.x,U.y],["L",(Q=Q.touchingSliceAt).x,Q.y]]},crookedLine:function(U,Q,te){const{breakAt:x,touchingSliceAt:y}=Q;({series:Q}=this);const[A,S,N]=Q.center,F=N/2,G=Q.chart.plotWidth,b=Q.chart.plotLeft;Q="left"===U.alignment;const{x:w,y:E}=U;return te.crookDistance?(U=se(te.crookDistance,1),U=Q?A+F+(G+b-A-F)*(1-U):b+(A-F)*U):U=A+(S-E)*Math.tan((this.angle||0)-Math.PI/2),te=[["M",w,E]],(Q?U<=w&&U>=x.x:U>=w&&U<=x.x)&&te.push(["L",U,E]),te.push(["L",x.x,x.y],["L",y.x,y.y]),te}}}),W}),Oe(be,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),Oe(be,"Series/Pie/PieSeries.js",[be["Series/CenteredUtilities.js"],be["Series/Column/ColumnSeries.js"],be["Core/Globals.js"],be["Series/Pie/PiePoint.js"],be["Series/Pie/PieSeriesDefaults.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/Symbols.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye){const{getStartAndEndRadians:se}=oe;({noop:ve}=ve);const{clamp:W,extend:U,fireEvent:Q,merge:te,pick:x,relativeLength:y}=ye;class A extends fe{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(N){const F=this,b=F.startAngleRad;N||F.points.forEach(function(w){const E=w.graphic,O=w.shapeArgs;E&&O&&(E.attr({r:x(w.startR,F.center&&F.center[3]/2),start:b,end:b}),E.animate({r:O.r,start:O.start,end:O.end},F.options.animation))})}drawEmpty(){const N=this.startAngleRad,F=this.endAngleRad,G=this.options;let b,w;0===this.total&&this.center?(b=this.center[0],w=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(b,w,this.center[1]/2,0,N,F).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ce.arc(b,w,this.center[2]/2,0,{start:N,end:F,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":G.borderWidth,fill:G.fillColor||"none",stroke:G.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const N=this.chart.renderer;this.points.forEach(function(F){F.graphic&&F.hasNewShapeType()&&(F.graphic=F.graphic.destroy()),F.graphic||(F.graphic=N[F.shapeType](F.shapeArgs).add(F.series.group),F.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(N,F,G){const b=this.center,w=this.radii?this.radii[G.index]||0:b[2]/2;return N=Math.asin(W((N-b[1])/(w+G.labelDistance),-1,1)),b[0]+(F?-1:1)*Math.cos(N)*(w+G.labelDistance)+(01.5*Math.PI?D-=2*Math.PI:D<-Math.PI/2&&(D+=2*Math.PI),v.slicedTranslation={translateX:Math.round(Math.cos(D)*G),translateY:Math.round(Math.sin(D)*G)},Y=Math.cos(D)*N[2]/2,h=Math.sin(D)*N[2]/2,v.tooltipPos=[N[0]+.7*Y,N[1]+.7*h],v.half=D<-Math.PI/2||D>Math.PI/2?1:0,v.angle=D,V=Math.min(b,v.labelDistance/5),v.labelPosition={natural:{x:N[0]+Y+Math.cos(D)*v.labelDistance,y:N[1]+h+Math.sin(D)*v.labelDistance},computed:{},alignment:0>v.labelDistance?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:N[0]+Y+Math.cos(D)*V,y:N[1]+h+Math.sin(D)*V},touchingSliceAt:{x:N[0]+Y,y:N[1]+h}}}}Q(this,"afterTranslate")}updateTotals(){const N=this.points,F=N.length,G=this.options.ignoreHiddenPoint;let b,w,E=0;for(b=0;bv&&(re.dataLabel.css({width:Math.round(.7*v)+"px"}),re.dataLabel.shortened=!0)):(re.dataLabel=re.dataLabel.destroy(),re.dataLabels&&1===re.dataLabels.length&&delete re.dataLabels))}),Y.forEach((re,_e)=>{const we=re.length,Se=[];let Re,ze=0;if(we){if(b.sortByAngle(re,_e-.5),0g-R&&0===_e&&(ie=Math.round(M+Z-g+R),de[1]=Math.max(ie,de[1])),0>B-he/2?de[0]=Math.max(Math.round(he/2-B),de[0]):B+he/2>h&&(de[2]=Math.max(Math.round(B+he/2-h),de[2])),H.sideOverflow=ie)}}}),0===ye(de)||this.verifyDataLabelOverflow(de))&&(this.placeDataLabels(),this.points.forEach(function(re){if(ne=U(O,re.options.dataLabels),X=Q(ne.connectorWidth,1)){let _e;m=re.connector,(H=re.dataLabel)&&H._pos&&re.visible&&0w.bottom-2?O:E,w.half,w)},justify:function(b,w,E){return E[0]+(b.half?-1:1)*(w+b.labelDistance)},alignToPlotEdges:function(b,w,E,O){return b=b.getBBox().width,w?b+O:E-b-O},alignToConnectors:function(b,w,E,O){let g,R=0;return b.forEach(function(h){g=h.dataLabel.getBBox().width,g>R&&(R=g)}),w?R+O:E-R-O}};y.compose=function(b){oe.compose(ce),me.pushUnique(F,b)&&((b=b.prototype).dataLabelPositioners=G,b.alignDataLabel=fe,b.drawDataLabels=A,b.placeDataLabels=S,b.verifyDataLabelOverflow=N)}}(x||(x={})),x}),Oe(be,"Extensions/OverlappingDataLabels.js",[be["Core/Chart/Chart.js"],be["Core/Utilities.js"]],function(oe,le){function ve(se,W){let U,Q=!1;return se&&(U=se.newOpacity,se.oldOpacity!==U&&(se.alignAttr&&se.placed?(se[U?"removeClass":"addClass"]("highcharts-data-label-hidden"),Q=!0,se.alignAttr.opacity=U,se[se.isOld?"animate":"attr"](se.alignAttr,null,function(){W.styledMode||se.css({pointerEvents:U?"auto":"none"})}),me(W,"afterHideOverlappingLabel")):se.attr({opacity:U})),se.isOld=!0),Q}const{addEvent:xe,fireEvent:me,isArray:fe,isNumber:Ae,objectEach:ce,pick:ye}=le;xe(oe,"render",function(){let se=this,W=[];(this.labelCollectors||[]).forEach(function(U){W=W.concat(U())}),(this.yAxis||[]).forEach(function(U){U.stacking&&U.options.stackLabels&&!U.options.stackLabels.allowOverlap&&ce(U.stacking.stacks,function(Q){ce(Q,function(te){te.label&&W.push(te.label)})})}),(this.series||[]).forEach(function(U){var Q=U.options.dataLabels;U.visible&&(!1!==Q.enabled||U._hasPointLabels)&&((Q=te=>te.forEach(x=>{x.visible&&(fe(x.dataLabels)?x.dataLabels:x.dataLabel?[x.dataLabel]:[]).forEach(function(y){const A=y.options;y.labelrank=ye(A.labelrank,x.labelrank,x.shapeArgs&&x.shapeArgs.height),A.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,ve(y,se)):W.push(y)})}))(U.nodes||[]),Q(U.points))}),this.hideOverlappingLabels(W)}),oe.prototype.hideOverlappingLabels=function(se){let W=this,U=se.length,Q=W.renderer;var te;let x,y,A,S,N=!1;var F=function(G){let b,w;var E;let g,h,O=G.box?0:G.padding||0,R=E=0;if(G&&(!G.alignAttr||G.placed))return b=G.alignAttr||{x:G.attr("x"),y:G.attr("y")},w=G.parentGroup,G.width||(E=G.getBBox(),G.width=E.width,G.height=E.height,E=Q.fontMetrics(G.element).h),g=G.width-2*O,(h={left:"0",center:"0.5",right:"1"}[G.alignValue])?R=+h*g:Ae(G.x)&&Math.round(G.x)!==G.translateX&&(R=G.x-G.translateX),{x:b.x+(w.translateX||0)+O-(R||0),y:b.y+(w.translateY||0)+O-E,width:G.width-2*O,height:G.height-2*O}};for(x=0;x=A.x+A.width||S.x+S.width<=A.x||S.y>=A.y+A.height||S.y+S.height<=A.y||((F.labelrank(se(x)||(x={radius:x||0}),W(Q,y,x));if(-1===xe.symbolCustomAttribs.indexOf("borderRadius")){xe.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const x=me.prototype.symbols.arc;me.prototype.symbols.arc=function(A,S,N,F,G={}){A=x(A,S,N,F,G);const{innerR:b=0,r:w=N,start:E=0,end:O=0}=G;if(G.open||!G.borderRadius)return A;for(N=O-E,S=Math.sin(N/2),G=Math.max(Math.min(U(G.borderRadius||0,w-b),(w-b)/2,w*S/(1+S)),0),N=Math.min(G,N/Math.PI*2*b),S=A.length-1;S--;){let V,D,Y;var R=S,g=1this.borderWidth&&(v="all"),v||(v="end");const P=Math.min(U(A.radius,R),R/2,"all"===v?g/2:1/0)||0;"end"===v&&(p&&(F-=P),G+=P),ye(N,{brBoxHeight:G,brBoxY:F,r:P})}}},{order:9})}return{optionsToObject:te}}),Oe(be,"Core/Responsive.js",[be["Core/Utilities.js"]],function(oe){const{diffObjects:le,extend:ve,find:xe,merge:me,pick:fe,uniqueKey:Ae}=oe;var ce;return function(ye){function se(Q,te){const x=Q.condition;(x.callback||function(){return this.chartWidth<=fe(x.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=fe(x.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=fe(x.minWidth,0)&&this.chartHeight>=fe(x.minHeight,0)}).call(this)&&te.push(Q._id)}function W(Q,te){const x=this.options.responsive;var y=this.currentResponsive;let A=[];!te&&x&&x.rules&&x.rules.forEach(S=>{void 0===S._id&&(S._id=Ae()),this.matchResponsiveRule(S,A)},this),(te=me(...A.map(S=>xe((x||{}).rules||[],N=>N._id===S)).map(S=>S&&S.chartOptions))).isResponsiveOptions=!0,A=A.toString()||void 0,A!==(y&&y.ruleIds)&&(y&&this.update(y.undoOptions,Q,!0),A?((y=le(te,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:A,mergedOptions:te,undoOptions:y},this.update(te,Q,!0)):this.currentResponsive=void 0)}const U=[];ye.compose=function(Q){return oe.pushUnique(U,Q)&&ve(Q.prototype,{matchResponsiveRule:se,setResponsive:W}),Q}}(ce||(ce={})),ce}),Oe(be,"masters/highcharts.src.js",[be["Core/Globals.js"],be["Core/Utilities.js"],be["Core/Defaults.js"],be["Core/Animation/Fx.js"],be["Core/Animation/AnimationUtilities.js"],be["Core/Renderer/HTML/AST.js"],be["Core/Templating.js"],be["Core/Renderer/RendererUtilities.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Renderer/HTML/HTMLElement.js"],be["Core/Renderer/HTML/HTMLRenderer.js"],be["Core/Axis/Axis.js"],be["Core/Axis/DateTimeAxis.js"],be["Core/Axis/LogarithmicAxis.js"],be["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],be["Core/Axis/Tick.js"],be["Core/Tooltip.js"],be["Core/Series/Point.js"],be["Core/Pointer.js"],be["Core/Legend/Legend.js"],be["Core/Chart/Chart.js"],be["Core/Axis/Stacking/StackingAxis.js"],be["Core/Axis/Stacking/StackItem.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Series/Column/ColumnSeries.js"],be["Series/Column/ColumnDataLabel.js"],be["Series/Pie/PieSeries.js"],be["Series/Pie/PieDataLabel.js"],be["Core/Series/DataLabel.js"],be["Core/Responsive.js"],be["Core/Color/Color.js"],be["Core/Time.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W,U,Q,te,x,y,A,S,N,F,G,b,w,E,O,R,g,h,p,v,P,V,D,Y){return oe.animate=me.animate,oe.animObject=me.animObject,oe.getDeferredAnimation=me.getDeferredAnimation,oe.setAnimation=me.setAnimation,oe.stop=me.stop,oe.timers=xe.timers,oe.AST=fe,oe.Axis=Q,oe.Chart=b,oe.chart=b.chart,oe.Fx=xe,oe.Legend=G,oe.PlotLineOrBand=y,oe.Point=N,oe.Pointer=F,oe.Series=O,oe.StackItem=E,oe.SVGElement=ye,oe.SVGRenderer=se,oe.Templating=Ae,oe.Tick=A,oe.Time=Y,oe.Tooltip=S,oe.Color=D,oe.color=D.parse,U.compose(se),W.compose(ye),F.compose(b),G.compose(b),oe.defaultOptions=ve.defaultOptions,oe.getOptions=ve.getOptions,oe.time=ve.defaultTime,oe.setOptions=ve.setOptions,oe.dateFormat=Ae.dateFormat,oe.format=Ae.format,oe.numberFormat=Ae.numberFormat,oe.addEvent=le.addEvent,oe.arrayMax=le.arrayMax,oe.arrayMin=le.arrayMin,oe.attr=le.attr,oe.clearTimeout=le.clearTimeout,oe.correctFloat=le.correctFloat,oe.createElement=le.createElement,oe.css=le.css,oe.defined=le.defined,oe.destroyObjectProperties=le.destroyObjectProperties,oe.discardElement=le.discardElement,oe.distribute=ce.distribute,oe.erase=le.erase,oe.error=le.error,oe.extend=le.extend,oe.extendClass=le.extendClass,oe.find=le.find,oe.fireEvent=le.fireEvent,oe.getMagnitude=le.getMagnitude,oe.getStyle=le.getStyle,oe.inArray=le.inArray,oe.isArray=le.isArray,oe.isClass=le.isClass,oe.isDOMElement=le.isDOMElement,oe.isFunction=le.isFunction,oe.isNumber=le.isNumber,oe.isObject=le.isObject,oe.isString=le.isString,oe.keys=le.keys,oe.merge=le.merge,oe.normalizeTickInterval=le.normalizeTickInterval,oe.objectEach=le.objectEach,oe.offset=le.offset,oe.pad=le.pad,oe.pick=le.pick,oe.pInt=le.pInt,oe.relativeLength=le.relativeLength,oe.removeEvent=le.removeEvent,oe.seriesType=R.seriesType,oe.splat=le.splat,oe.stableSort=le.stableSort,oe.syncTimeout=le.syncTimeout,oe.timeUnits=le.timeUnits,oe.uniqueKey=le.uniqueKey,oe.useSerialIds=le.useSerialIds,oe.wrap=le.wrap,h.compose(g),P.compose(O),te.compose(Q),x.compose(Q),v.compose(p),y.compose(Q),V.compose(b),w.compose(Q,b,O),S.compose(F),oe}),be["masters/highcharts.src.js"]._modules=be,be["masters/highcharts.src.js"]},Hn.exports?(Oe.default=Oe,Hn.exports=Kn.document?Oe(Kn):Oe):void 0!==(Di=function(){return Oe(Kn)}.call(An,In,An,Hn))&&(Hn.exports=Di)},295:(Hn,An,In)=>{"use strict";var Di,Kn,Oe;Oe=function(Oe){function be(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}be(Oe=Oe?Oe._modules:{},"Extensions/NoDataToDisplay.js",[Oe["Core/Renderer/HTML/AST.js"],Oe["Core/Chart/Chart.js"],Oe["Core/Defaults.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({getOptions:ve}=ve);const{addEvent:me,extend:fe}=xe;xe=le.prototype,ve=ve(),fe(ve.lang,{noData:"No data to display"}),ve.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"0.8em",color:"#666666"}},xe.showNoData=function(Ae){var ce=this.options;Ae=Ae||ce&&ce.lang.noData||"",ce=ce&&(ce.noData||{}),this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(Ae,0,0,void 0,void 0,void 0,ce.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(oe.filterUserAttributes(ce.attr||{})).css(ce.style||{}),this.noDataLabel.align(fe(this.noDataLabel.getBBox(),ce.position||{}),!1,"plotBox"))},xe.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())},xe.hasData=function(){let Ae=this.series||[],ce=Ae.length;for(;ce--;)if(Ae[ce].hasData()&&!Ae[ce].options.isInternal)return!0;return this.loadingShown},me(le,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})}),be(Oe,"masters/modules/no-data-to-display.src.js",[],function(){})},Hn.exports?(Oe.default=Oe,Hn.exports=Oe):(Di=[In(282)],void 0!==(Kn=function(be){return Oe(be),Oe.Highcharts=be,Oe}.apply(An,Di))&&(Hn.exports=Kn))},428:(Hn,An,In)=>{"use strict";function Di(t){return"function"==typeof t}let Kn=!1;const Oe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Kn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Kn=t},get useDeprecatedSynchronousErrorHandling(){return Kn}};function be(t){setTimeout(()=>{throw t},0)}const oe={closed:!0,next(t){},error(t){if(Oe.useDeprecatedSynchronousErrorHandling)throw t;be(t)},complete(){}},le=Array.isArray||(t=>t&&"number"==typeof t.length);function ve(t){return null!==t&&"object"==typeof t}const me=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class fe{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof fe)e.remove(this);else if(null!==e)for(let o=0;on.concat(e instanceof me?e.errors:e),[])}fe.EMPTY=((t=new fe).closed=!0,t);const ce="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class se extends fe{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=oe;break;case 1:if(!n){this.destination=oe;break}if("object"==typeof n){n instanceof se?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new W(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new W(this,n,e,i)}}[ce](){return this}static create(n,e,i){const s=new se(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class W extends se{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;Di(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==oe&&(o=Object.create(e),Di(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Oe.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Oe;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):be(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;be(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);Oe.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),Oe.useDeprecatedSynchronousErrorHandling)throw i;be(i)}}__tryOrSetError(n,e,i){if(!Oe.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return Oe.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(be(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const te="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}function y(...t){return A(t)}function A(t){return 0===t.length?x:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}let S=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function(t,n,e){if(t){if(t instanceof se)return t;if(t[ce])return t[ce]()}return t||n||e?new se(t,n,e):new se(oe)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||Oe.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Oe.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Oe.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof se?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=N(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[te](){return this}pipe(...e){return 0===e.length?this:A(e)(this)}toPromise(e){return new(e=N(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function N(t){if(t||(t=Oe.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const G=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b extends fe{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class w extends se{constructor(n){super(n),this.destination=n}}let E=(()=>{class t extends S{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ce](){return new w(this)}lift(e){const i=new O(this,this);return i.operator=e,i}next(e){if(this.closed)throw new G;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;onew O(n,e),t})();class O extends E{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):fe.EMPTY}}function R(t){return t&&"function"==typeof t.schedule}function g(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new h(t,n))}}class h{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new p(n,this.project,this.thisArg))}}class p extends se{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const v=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function X(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const m=t=>{if(t&&"function"==typeof t[te])return(t=>n=>{const e=t[te]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Ne(t))return v(t);if(X(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,be),n))(t);if(t&&"function"==typeof t[D])return(t=>n=>{const e=t[D]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function q(t,n){return new S(e=>{const i=new fe;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function K(t,n){return n?function(t,n){if(null!=t){if(function(t){return t&&"function"==typeof t[te]}(t))return function(t,n){return new S(e=>{const i=new fe;return i.add(n.schedule(()=>{const s=t[te]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(X(t))return function(t,n){return new S(e=>{const i=new fe;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(Ne(t))return q(t,n);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,n){if(!t)throw new Error("Iterable cannot be null");return new S(e=>{const i=new fe;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[D](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof S?t:new S(m(t))}class ne extends se{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _e extends se{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Se(t,n){if(n.closed)return;if(t instanceof S)return t.subscribe(n);let e;try{e=m(t)(n)}catch(i){n.error(i)}return e}function Re(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(Re((s,r)=>K(t(s,r)).pipe(g((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new ze(t,e)))}class ze{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new ie(n,this.project,this.concurrent))}}class ie extends _e{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ee(t=Number.POSITIVE_INFINITY){return Re(x,t)}function pe(t,n){return n?q(t,n):new S(v(t))}function De(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return R(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof S?t[0]:Ee(n)(pe(t,e))}function Ge(){return function(n){return n.lift(new We(n))}}class We{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new ut(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class ut extends se{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class yt extends S{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new fe,n.add(this.source.subscribe(new _t(this.getSubject(),this))),n.closed&&(this._connection=null,n=fe.EMPTY)),n}refCount(){return Ge()(this)}}const ft=(()=>{const t=yt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class _t extends w{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}function ii(){return new E}function Tn(){return t=>Ge()(function(t,n){return function(i){let s;s="function"==typeof t?t:function(){return t};const r=Object.create(i,ft);return r.source=i,r.subjectFactory=s,r}}(ii)(t))}function tn(t){for(let n in t)if(t[n]===tn)return n;throw Error("Could not find renamed property on target object.")}function Es(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Bs(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const gs=tn({__forward_ref__:tn});function nn(t){return t.__forward_ref__=nn,t.toString=function(){return Bt(this())},t}function Ut(t){return IM(t)?t():t}function IM(t){return"function"==typeof t&&t.hasOwnProperty(gs)&&t.__forward_ref__===nn}class da extends Error{constructor(n,e){super(function(t,n){return`${t?`NG0${t}: `:""}${n}`}(n,e)),this.code=n}}function hn(t){return"string"==typeof t?t:null==t?"":String(t)}function Vs(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():hn(t)}function Lf(t,n){const e=n?` in ${n}`:"";throw new da("201",`No provider for ${Vs(t)} found${e}`)}function er(t,n){null==t&&function(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Ze(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function St(t){return{providers:t.providers||[],imports:t.imports||[]}}function Lo(t){return PM(t,Bf)||PM(t,NM)}function PM(t,n){return t.hasOwnProperty(n)?t[n]:null}function RM(t){return t&&(t.hasOwnProperty(yy)||t.hasOwnProperty(iH))?t[yy]:null}const Bf=tn({\u0275prov:tn}),yy=tn({\u0275inj:tn}),NM=tn({ngInjectableDef:tn}),iH=tn({ngInjectorDef:tn});var Wt=(()=>((Wt=Wt||{})[Wt.Default=0]="Default",Wt[Wt.Host=1]="Host",Wt[Wt.Self=2]="Self",Wt[Wt.SkipSelf=4]="SkipSelf",Wt[Wt.Optional=8]="Optional",Wt))();let vy;function ua(t){const n=vy;return vy=t,n}function FM(t,n,e){const i=Lo(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Wt.Optional?null:void 0!==n?n:void Lf(Bt(t),"Injector")}function ha(t){return{toString:t}.toString()}var gr=(()=>((gr=gr||{})[gr.OnPush=0]="OnPush",gr[gr.Default=1]="Default",gr))(),Vi=(()=>((Vi=Vi||{})[Vi.Emulated=0]="Emulated",Vi[Vi.None=2]="None",Vi[Vi.ShadowDom=3]="ShadowDom",Vi))();const rH="undefined"!=typeof globalThis&&globalThis,oH="undefined"!=typeof window&&window,aH="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jn=rH||"undefined"!=typeof global&&global||oH||aH,dc={},Yn=[],Vf=tn({\u0275cmp:tn}),by=tn({\u0275dir:tn}),xy=tn({\u0275pipe:tn}),LM=tn({\u0275mod:tn}),lH=tn({\u0275loc:tn}),Bo=tn({\u0275fac:tn}),ou=tn({__NG_ELEMENT_ID__:tn});let cH=0;function mt(t){return ha(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===gr.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Yn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Vi.Emulated,id:"c",styles:t.styles||Yn,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=cH++,i.inputs=zM(t.inputs,e),i.outputs=zM(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(VM):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(HM):null,i})}function VM(t){return Ts(t)||function(t){return t[by]||null}(t)}function HM(t){return function(t){return t[xy]||null}(t)}const jM={};function kt(t){return ha(()=>{const n={type:t.type,bootstrap:t.bootstrap||Yn,declarations:t.declarations||Yn,imports:t.imports||Yn,exports:t.exports||Yn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(jM[t.id]=t.type),n})}function zM(t,n){if(null==t)return dc;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const Le=mt;function ms(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ts(t){return t[Vf]||null}function mr(t,n){const e=t[LM]||null;if(!e&&!0===n)throw new Error(`Type ${Bt(t)} does not have '\u0275mod' property.`);return e}function uo(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lr(t){return Array.isArray(t)&&!0===t[1]}function My(t){return 0!=(8&t.flags)}function Gf(t){return 2==(2&t.flags)}function $f(t){return 1==(1&t.flags)}function Br(t){return null!==t.template}function gH(t){return 0!=(512&t[2])}function sl(t,n){return t.hasOwnProperty(Bo)?t[Bo]:null}class $M{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function rn(){return UM}function UM(t){return t.type.prototype.ngOnChanges&&(t.setInput=vH),yH}function yH(){const t=YM(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===dc)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function vH(t,n,e,i){const s=YM(t)||function(t,n){return t[WM]=n}(t,{previous:dc,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new $M(l&&l.currentValue,n,o===dc),t[i]=n}rn.ngInherit=!0;const WM="__ngSimpleChanges__";function YM(t){return t[WM]||null}const qM="http://www.w3.org/2000/svg";let Ey;function Ty(){return void 0!==Ey?Ey:"undefined"!=typeof document?document:void 0}function Ei(t){return!!t.listen}const QM={createRenderer:(t,n)=>Ty()};function Hi(t){for(;Array.isArray(t);)t=t[0];return t}function Uf(t,n){return Hi(n[t])}function nr(t,n){return Hi(n[t.index])}function Ay(t,n){return t.data[n]}function gc(t,n){return t[n]}function ir(t,n){const e=n[t];return uo(e)?e:e[0]}function KM(t){return 4==(4&t[2])}function ky(t){return 128==(128&t[2])}function pa(t,n){return null==n?null:t[n]}function JM(t){t[18]=0}function Oy(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const an={lFrame:oD(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ZM(){return an.bindingsEnabled}function dt(){return an.lFrame.lView}function Pn(){return an.lFrame.tView}function Ot(t){return an.lFrame.contextLView=t,t[8]}function Xi(){let t=eD();for(;null!==t&&64===t.type;)t=t.parent;return t}function eD(){return an.lFrame.currentTNode}function ho(t,n){const e=an.lFrame;e.currentTNode=t,e.isParent=n}function Iy(){return an.lFrame.isParent}function Py(){an.lFrame.isParent=!1}function Wf(){return an.isInCheckNoChangesMode}function Yf(t){an.isInCheckNoChangesMode=t}function js(){const t=an.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fo(){return an.lFrame.bindingIndex}function mc(){return an.lFrame.bindingIndex++}function Vo(t){const n=an.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function RH(t,n){const e=an.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ry(n)}function Ry(t){an.lFrame.currentDirectiveIndex=t}function iD(){return an.lFrame.currentQueryIndex}function Fy(t){an.lFrame.currentQueryIndex=t}function FH(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function sD(t,n,e){if(e&Wt.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&Wt.Host||(s=FH(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=an.lFrame=rD();return i.currentTNode=n,i.lView=t,!0}function qf(t){const n=rD(),e=t[1];an.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function rD(){const t=an.lFrame,n=null===t?null:t.child;return null===n?oD(t):n}function oD(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function aD(){const t=an.lFrame;return an.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const lD=aD;function Xf(){const t=aD();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zs(){return an.lFrame.selectedIndex}function ga(t){an.lFrame.selectedIndex=t}function mi(){const t=an.lFrame;return Ay(t.tView,t.selectedIndex)}function pn(){an.lFrame.currentNamespace=qM}function Ti(){an.lFrame.currentNamespace=null}function Qf(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class uu{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Zf(t,n,e){const i=Ei(t);let s=0;for(;sn){o=r-1;break}}}for(;r>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Hy=!0;function tp(t){const n=Hy;return Hy=t,n}let XH=0;function fu(t,n){const e=zy(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,jy(i.data,t),jy(n,null),jy(i.blueprint,null));const s=np(t,n),r=t.injectorIndex;if(hD(s)){const o=_c(s),a=yc(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function jy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function zy(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function np(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ip(t,n,e){!function(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ou)&&(i=e[ou]),null==i&&(i=e[ou]=XH++);const s=255&i;n.data[t+(s>>5)]|=1<=0?255&n:JH:n}(e);if("function"==typeof r){if(!sD(n,t,i))return i&Wt.Host?gD(s,e,i):mD(n,e,i,s);try{const o=r(i);if(null!=o||i&Wt.Optional)return o;Lf(e)}finally{lD()}}else if("number"==typeof r){let o=null,a=zy(t,n),l=-1,c=i&Wt.Host?n[16][6]:null;for((-1===a||i&Wt.SkipSelf)&&(l=-1===a?np(t,n):n[a+8],-1!==l&&bD(i,!1)?(o=n[1],a=_c(l),n=yc(l,n)):a=-1);-1!==a;){const d=n[1];if(vD(r,a,d.data)){const u=ZH(a,n,e,o,i,c);if(u!==yD)return u}l=n[a+8],-1!==l&&bD(i,n[1].data[a+8]===c)&&vD(r,a,n)?(o=d,a=_c(l),n=yc(l,n)):a=-1}}}return mD(n,e,i,s)}const yD={};function JH(){return new vc(Xi(),dt())}function ZH(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],d=sp(a,o,e,null==i?Gf(a)&&Hy:i!=o&&0!=(3&a.type),s&Wt.Host&&r===a);return null!==d?pu(n,o,d,a):yD}function sp(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,d=r>>20,f=s?a+d:t.directiveEnd;for(let _=i?a:a+d;_=l&&T.type===e)return _}if(s){const _=o[l];if(_&&Br(_)&&_.type===e)return l}return null}function pu(t,n,e,i){let s=t[e];const r=n.data;if(function(t){return t instanceof uu}(s)){const o=s;o.resolving&&function(t,n){throw new da("200",`Circular dependency in DI detected for ${t}`)}(Vs(r[e]));const a=tp(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ua(o.injectImpl):null;sD(t,i,Wt.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=UM(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&ua(l),tp(a),o.resolving=!1,lD()}}return s}function vD(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Bo]||Gy(n),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const r=s[Bo]||Gy(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new r})}function Gy(t){return IM(t)?()=>{const n=Gy(Ut(t));return n&&n()}:sl(t)}function _s(t){return function(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let s=0;for(;s{const i=function(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(xc)?l[xc]:Object.defineProperty(l,xc,{value:[]})[xc];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class pt{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ze({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ij=new pt("AnalyzeForEntryComponents"),rp=Function;function vr(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?po(e,n):n(e))}function ap(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ol(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function _a(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Uy(t,n){const e=Cc(t,n);if(e>=0)return t[1|e]}function Cc(t,n){return function(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<n?s=r:i=r+1}return~(s< ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Bt(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(fj,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[Mc]=null,t}const Sc=xu(rl("Inject",t=>({token:t})),-1),Ki=xu(rl("Optional"),8),Vr=xu(rl("SkipSelf"),4);var rr=(()=>((rr=rr||{})[rr.Important=1]="Important",rr[rr.DashCase=2]="DashCase",rr))();const ID="__ngContext__";function ks(t,n){t[ID]=n}function Jy(t){const n=function(t){return t[ID]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function ev(t,n){return undefined(t,n)}function Mu(t){const n=t[3];return Lr(n)?n[3]:n}function tv(t){return VD(t[13])}function nv(t){return VD(t[4])}function VD(t){for(;null!==t&&!Lr(t);)t=t[4];return t}function Tc(t,n,e,i,s){if(null!=i){let r,o=!1;Lr(i)?r=i:uo(i)&&(o=!0,i=i[0]);const a=Hi(i);0===t&&null!==e?null==s?UD(n,e,a):ll(n,e,a,s||null,!0):1===t&&null!==e?ll(n,e,a,s||null,!0):2===t?function(t,n,e){const i=hp(t,n);i&&function(t,n,e,i){Ei(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function(t,n,e,i,s){const r=e[7];r!==Hi(e)&&Tc(n,t,i,r,s);for(let a=10;a0&&(t[e-1][4]=i[4]);const r=ol(t,10+n);!function(t,n){Du(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function zD(t,n){if(!(256&n[2])){const e=n[11];Ei(e)&&e.destroyNode&&Du(t,n,e,3,null,null),function(t){let n=t[13];if(!n)return ov(t[1],t);for(;n;){let e=null;if(uo(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)uo(n)&&ov(n[1],n),n=n[3];null===n&&(n=t),uo(n)&&ov(n[1],n),e=n&&n[4]}n=e}}(n)}}function ov(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;rt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return gp}())||void 0===n?void 0:n.createHTML(t))||t}function eS(t){var n;return(null===(n=function(){if(void 0===mp&&(mp=null,jn.trustedTypes))try{mp=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return mp}())||void 0===n?void 0:n.createHTML(t))||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Zj extends dl{getTypeName(){return"HTML"}}class e8 extends dl{getTypeName(){return"Style"}}class t8 extends dl{getTypeName(){return"Script"}}class n8 extends dl{getTypeName(){return"URL"}}class i8 extends dl{getTypeName(){return"ResourceURL"}}function or(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function go(t,n){const e=iS(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function iS(t){return t instanceof dl&&t.getTypeName()||null}class c8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(cl(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class d8{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=cl(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=cl(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0Su(n.trim())).join(", ")}function mo(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Eu(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const oS=mo("area,br,col,hr,img,wbr"),aS=mo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lS=mo("rp,rt"),pv=Eu(oS,Eu(aS,mo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Eu(lS,mo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Eu(lS,aS)),gv=mo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mv=mo("srcset"),cS=Eu(gv,mv,mo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),p8=mo("script,style,template");class g8{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!pv.hasOwnProperty(e))return this.sanitizedSomething=!0,!p8.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s"),!0}endElement(n){const e=n.nodeName.toLowerCase();pv.hasOwnProperty(e)&&!oS.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(dS(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const m8=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_8=/([^\#-~ |!])/g;function dS(t){return t.replace(/&/g,"&").replace(m8,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(_8,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let _p;function uS(t,n){let e=null;try{_p=_p||function(t){const n=new d8(t);return function(){try{return!!(new window.DOMParser).parseFromString(cl(""),"text/html")}catch(t){return!1}}()?new c8(n):n}(t);let i=n?String(n):"";e=_p.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=_p.getInertBodyElement(i)}while(i!==r);return cl((new g8).sanitizeChildren(_v(e)||e))}finally{if(e){const i=_v(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function _v(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ln=(()=>((Ln=Ln||{})[Ln.NONE=0]="NONE",Ln[Ln.HTML=1]="HTML",Ln[Ln.STYLE=2]="STYLE",Ln[Ln.SCRIPT=3]="SCRIPT",Ln[Ln.URL=4]="URL",Ln[Ln.RESOURCE_URL=5]="RESOURCE_URL",Ln))();function Ac(t){const n=Tu();return n?eS(n.sanitize(Ln.HTML,t)||""):go(t,"HTML")?eS(or(t)):uS(Ty(),hn(t))}function _i(t){const n=Tu();return n?n.sanitize(Ln.URL,t)||"":go(t,"URL")?or(t):Su(hn(t))}function Tu(){const t=dt();return t&&t[12]}function yp(t){return t.ngOriginalError}function T8(t,...n){t.error(...n)}class Hr{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=this._findContext(n),s=function(t){return t&&t.ngErrorLogger||T8}(n);s(this._console,"ERROR",n),e&&s(this._console,"ORIGINAL ERROR",e),i&&s(this._console,"ERROR CONTEXT",i)}_findContext(n){return n?function(t){return t.ngDebugContext}(n)||this._findContext(yp(n)):null}_findOriginalError(n){let e=n&&yp(n);for(;e&&yp(e);)e=yp(e);return e||null}}const yS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jn))();function vS(t){return t.ownerDocument.defaultView}function _o(t){return t instanceof Function?t():t}function xS(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const wS="ng-template";function N8(t,n,e){let i=0;for(;ir?"":s[u+1].toLowerCase();const _=8&i?f:null;if(_&&-1!==xS(_,c,0)||2&i&&c!==f){if(jr(i))return!1;o=!0}}}}else{if(!o&&!jr(i)&&!jr(l))return!1;if(o&&jr(l))continue;o=!1,i=l|1&i}}return jr(i)||o}function jr(t){return 0==(1&t)}function B8(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!jr(o)&&(n+=DS(r,s),s=""),i=o,r=r||!jr(i);e++}return""!==s&&(n+=DS(r,s)),n}const cn={};function ae(t){SS(Pn(),dt(),zs()+t,Wf())}function SS(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Kf(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Jf(n,r,0,e)}ga(e)}function vp(t,n){return t<<17|n<<2}function zr(t){return t>>17&32767}function vv(t){return 2|t}function Ho(t){return(131068&t)>>2}function bv(t,n){return-131069&t|n<<2}function xv(t){return 1|t}function FS(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&SS(t,n,20,Wf()),e(i,s)}finally{ga(r)}}function BS(t,n,e){if(My(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function WS(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function YS(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function g4(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&Pv(e)}}function Pv(t){for(let i=tv(t);null!==i;i=nv(i))for(let s=10;s0&&Pv(r)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Pv(s)}}function w4(t,n){const e=ir(n,t),i=e[1];(function(t,n){for(let e=n.length;ePromise.resolve(null))();function JS(t){return t[7]||(t[7]=[])}function ZS(t){return t.cleanup||(t.cleanup=[])}function tE(t,n){const e=t[9],i=e?e.get(Hr,null):null;i&&i.handleError(n)}function nE(t,n,e,i,s){for(let r=0;rthis.processProvider(a,n,e)),po([n],a=>this.processInjectorType(a,[],r)),this.records.set(ba,Rc(void 0,this));const o=this.records.get(Ou);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Bt(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=yu,i=Wt.Default){this.assertNotDestroyed();const s=Dc(this),r=ua(void 0);try{if(!(i&Wt.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof pt}(n)&&Lo(n);a=l&&this.injectableDefInScope(l)?Rc(Vv(n),Iu):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Wt.Self?sE():this.parent).get(n,e=i&Wt.Optional&&e===yu?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Mc]=o[Mc]||[]).unshift(Bt(n)),s)throw o;return SD(o,n,"R3InjectorError",this.source)}throw o}finally{ua(r),Dc(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Bt(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,e,i){if(!(n=Ut(n)))return!1;let s=RM(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=RM(r)),null==s)return!1;if(null!=s.imports&&!a){let d;i.push(o);try{po(s.imports,u=>{this.processInjectorType(u,e,i)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;uthis.processProvider(T,f,_||Yn))}}this.injectorDefTypes.add(o);const l=sl(o)||(()=>new o);this.records.set(o,Rc(l,Iu));const c=s.providers;if(null!=c&&!a){const d=n;po(c,u=>this.processProvider(u,d,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=Nc(n=Ut(n))?n:Ut(n&&n.provide);const r=function(t,n,e){return aE(t)?Rc(void 0,t.useValue):Rc(oE(t),Iu)}(n);if(Nc(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Rc(void 0,Iu,!0),o.factory=()=>al(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===Iu&&(e.value=k4,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Ut(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Vv(t){const n=Lo(t),e=null!==n?n.factory:sl(t);if(null!==e)return e;if(t instanceof pt)throw new Error(`Token ${Bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const n=t.length;if(n>0){const i=_a(n,"?");throw new Error(`Can't resolve all parameters for ${Bt(t)}: (${i.join(", ")}).`)}const e=function(t){const n=t&&(t[Bf]||t[NM]);if(n){const e=function(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Error("unreachable")}function oE(t,n,e){let i;if(Nc(t)){const s=Ut(t);return sl(s)||Vv(s)}if(aE(t))i=()=>Ut(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...al(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Ut(t.useExisting));else{const s=Ut(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return sl(s)||Vv(s);i=()=>new s(...al(t.deps))}return i}function Rc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function aE(t){return null!==t&&"object"==typeof t&&Xy in t}function Nc(t){return"function"==typeof t}const lE=function(t,n,e){return function(t,n=null,e=null,i){const s=rE(t,n,e,i);return s._resolveInjectorDefTypes(),s}({name:e},n,t,e)};let wn=(()=>{class t{static create(e,i){return Array.isArray(e)?lE(e,i,""):lE(e.providers,e.parent,e.name||"")}}return t.THROW_IF_NOT_FOUND=yu,t.NULL=new iE,t.\u0275prov=Ze({token:t,providedIn:"any",factory:()=>Me(ba)}),t.__NG_ELEMENT_ID__=-1,t})();function Z4(t,n){Qf(Jy(t)[1],Xi())}function Je(t){let n=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(Br(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Error("Directives cannot inherit Components");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=Uv(t.inputs),o.declaredInputs=Uv(t.declaredInputs),o.outputs=Uv(t.outputs);const a=s.hostBindings;a&&iz(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&tz(t,l),c&&nz(t,c),Es(t.inputs,s.inputs),Es(t.declaredInputs,s.declaredInputs),Es(t.outputs,s.outputs),Br(s)&&s.data.animation){const d=t.data;d.animation=(d.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=ep(s.hostAttrs,e=ep(e,s.hostAttrs))}}(i)}function Uv(t){return t===dc?{}:t===Yn?[]:t}function tz(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function nz(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function iz(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Dp=null;function Fc(){if(!Dp){const t=jn.Symbol;if(t&&t.iterator)Dp=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Hi(Te[i.index])):i.index;if(Ei(e)){let Te=null;if(!a&&l&&(Te=function(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;rl?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=r,Te.__ngLastListenerFn__=r,_=!1;else{r=Zv(i,n,u,r,!1);const Fe=e.listen(L,s,r);f.push(r,Fe),d&&d.push(s,ue,J,J+1)}}else r=Zv(i,n,u,r,!0),L.addEventListener(s,r,o),f.push(r),d&&d.push(s,ue,J,o)}else r=Zv(i,n,u,r,!1);const T=i.outputs;let k;if(_&&null!==T&&(k=T[s])){const $=k.length;if($)for(let L=0;L<$;L+=2){const Be=n[k[L]][k[L+1]].subscribe(r),Ue=f.length;f.push(r,Be),d&&d.push(s,i.index,Ue,-(Ue+1))}}}(r,s,s[11],o,t,n,!!e,i),nt}function XE(t,n,e,i){try{return!1!==e(i)}catch(s){return tE(t,s),!1}}function Zv(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?ir(t.index,n):n;0==(32&n[2])&&Rv(a);let l=XE(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=XE(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Ie(t=1){return function(t){return(an.lFrame.contextLView=function(t,n){for(;t>0;)n=n[15],t--;return n}(t,an.lFrame.contextLView))[8]}(t)}function Fz(t,n){let e=null;const i=function(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s=0}const Ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rT(t){return t.substring(Ji.key,Ji.keyEnd)}function oT(t,n){const e=Ji.textEnd;return e===n?-1:(n=Ji.keyEnd=function(t,n,e){for(;n32;)n++;return n}(t,Ji.key=n,e),Yc(t,n,e))}function Yc(t,n,e){for(;n=0;e=oT(n,e))sr(t,rT(n),!0)}function Wr(t,n,e,i){const s=dt(),r=Pn(),o=Vo(2);r.firstUpdatePass&&hT(r,t,o,i),n!==cn&&Os(s,o,n)&&pT(r,r.data[zs()],s,s[11],t,s[o+1]=function(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Bt(or(t)))),t}(n,e),i,o)}function Yr(t,n,e,i){const s=Pn(),r=Vo(2);s.firstUpdatePass&&hT(s,null,r,i);const o=dt();if(e!==cn&&Os(o,r,e)){const a=s.data[zs()];if(mT(a,i)&&!uT(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Bs(l,e||"")),Kv(s,a,o,e,i)}else!function(t,n,e,i,s,r,o,a){s===cn&&(s=Yn);let l=0,c=0,d=0=t.expandoStartIndex}function hT(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[zs()],o=uT(t,e);mT(r,i)&&null===n&&!o&&(n=!1),n=function(t,n,e,i){const s=function(t){const n=an.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=Lu(e=eb(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=eb(s,t,n,e,i),null===r){let l=function(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Ho(i))return t[zr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=eb(null,t,n,l[1],i),l=Lu(l,n.attrs,i),function(t,n,e,i){t[zr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)}else d=e;if(s)if(0!==l){const f=zr(t[a+1]);t[i+1]=vp(f,a),0!==f&&(t[f+1]=bv(t[f+1],i)),t[a+1]=function(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=vp(a,0),0!==a&&(t[a+1]=bv(t[a+1],i)),a=i;else t[i+1]=vp(l,0),0===a?a=i:t[l+1]=bv(t[l+1],i),l=i;c&&(t[i+1]=vv(t[i+1])),sT(t,d,i,!0),sT(t,d,i,!1),function(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Cc(r,n)>=0&&(e[i+1]=xv(e[i+1]))}(n,d,t,i,r),o=vp(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function eb(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[s],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let f=e[s+1];f===cn&&(f=u?Yn:void 0);let _=u?Uy(f,i):d===i?f:void 0;if(c&&!kp(_)&&(_=Uy(l,i)),kp(_)&&(a=_,o))return a;const T=t[s+1];s=o?zr(T):Ho(T)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Uy(l,i))}return a}function kp(t){return void 0!==t}function mT(t,n){return 0!=(t.flags&(n?16:32))}function $e(t,n=""){const e=dt(),i=Pn(),s=t+20,r=i.firstCreatePass?Oc(i,s,1,n,null):i.data[s],o=e[s]=function(t,n){return Ei(t)?t.createText(n):t.createTextNode(n)}(e[11],n);fp(i,e,o,r),ho(r,!1)}function Mt(t){return $t("",t,""),Mt}function $t(t,n,e){const i=dt(),s=Bc(i,t,n,e);return s!==cn&&zo(i,zs(),s),$t}function hl(t,n,e,i,s){const r=dt(),o=function(t,n,e,i,s,r){const a=ul(t,fo(),e,s);return Vo(2),a?n+hn(e)+i+hn(s)+r:cn}(r,t,n,e,i,s);return o!==cn&&zo(r,zs(),o),hl}function ys(t,n,e){const i=dt();return Os(i,mc(),n)&&ar(Pn(),mi(),i,t,n,i[11],e,!0),ys}const fl=void 0;var _G=["en",[["a","p"],["AM","PM"],fl],[["AM","PM"],fl,fl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fl,"{1} 'at' {0}",fl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===e?1:5}];let qc={};function $s(t){const n=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=FT(n);if(e)return e;const i=n.split("-")[0];if(e=FT(i),e)return e;if("en"===i)return _G;throw new Error(`Missing locale data for the locale "${t}".`)}function FT(t){return t in qc||(qc[t]=jn.ng&&jn.ng.common&&jn.ng.common.locales&&jn.ng.common.locales[t]),qc[t]}var Pt=(()=>((Pt=Pt||{})[Pt.LocaleId=0]="LocaleId",Pt[Pt.DayPeriodsFormat=1]="DayPeriodsFormat",Pt[Pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pt[Pt.DaysFormat=3]="DaysFormat",Pt[Pt.DaysStandalone=4]="DaysStandalone",Pt[Pt.MonthsFormat=5]="MonthsFormat",Pt[Pt.MonthsStandalone=6]="MonthsStandalone",Pt[Pt.Eras=7]="Eras",Pt[Pt.FirstDayOfWeek=8]="FirstDayOfWeek",Pt[Pt.WeekendRange=9]="WeekendRange",Pt[Pt.DateFormat=10]="DateFormat",Pt[Pt.TimeFormat=11]="TimeFormat",Pt[Pt.DateTimeFormat=12]="DateTimeFormat",Pt[Pt.NumberSymbols=13]="NumberSymbols",Pt[Pt.NumberFormats=14]="NumberFormats",Pt[Pt.CurrencyCode=15]="CurrencyCode",Pt[Pt.CurrencySymbol=16]="CurrencySymbol",Pt[Pt.CurrencyName=17]="CurrencyName",Pt[Pt.Currencies=18]="Currencies",Pt[Pt.Directionality=19]="Directionality",Pt[Pt.PluralCase=20]="PluralCase",Pt[Pt.ExtraData=21]="ExtraData",Pt))();const Op="en-US";let LT=Op;function nb(t){er(t,"Expected localeId to be defined"),"string"==typeof t&&(LT=t.toLowerCase().replace(/_/g,"-"))}function rb(t,n,e,i,s){if(t=Ut(t),Array.isArray(t))for(let r=0;r>20;if(Nc(t)||!t.multi){const _=new uu(l,s,C),T=ab(a,n,s?d:d+f,u);-1===T?(ip(fu(c,o),r,a),ob(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(_),o.push(_)):(e[T]=_,o[T]=_)}else{const _=ab(a,n,d+f,u),T=ab(a,n,d,d+f),k=_>=0&&e[_],$=T>=0&&e[T];if(s&&!$||!s&&!k){ip(fu(c,o),r,a);const L=function(t,n,e,i,s){const r=new uu(t,e,C);return r.multi=[],r.index=n,r.componentProviders=0,oA(r,s,i&&!e),r}(s?h6:u6,e.length,s,i,l);!s&&$&&(e[T].providerFactory=L),ob(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(L),o.push(L)}else ob(r,t,_>-1?_:T,oA(e[s?T:_],l,!s&&i));!s&&i&&$&&e[T].componentProviders++}}}function ob(t,n,e,i){const s=Nc(n);if(s||function(t){return!!t.useClass}(n)){const o=(n.useClass||n).prototype.ngOnDestroy;if(o){const a=t.destroyHooks||(t.destroyHooks=[]);if(!s&&n.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,o]):a[l+1].push(i,o)}else a.push(e,o)}}}function oA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function ab(t,n,e,i){for(let s=e;s{e.providersResolver=(i,s)=>function(t,n,e){const i=Pn();if(i.firstCreatePass){const s=Br(t);rb(e,i.data,i.blueprint,s,!0),rb(n,i.data,i.blueprint,s,!1)}}(i,s?s(t):t,n)}}class aA{}const cA="ngComponent";class g6{resolveComponentFactory(n){throw function(t){const n=Error(`No component factory found for ${Bt(t)}. Did you add it to @NgModule.entryComponents?`);return n[cA]=t,n}(n)}}let is=(()=>{class t{}return t.NULL=new g6,t})();function Fp(...t){}function Kc(t,n){return new tt(nr(t,n))}const y6=function(){return Kc(Xi(),dt())};let tt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=y6,t})();function dA(t){return t instanceof tt?t.nativeElement:t}class $o{}let ji=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>b6(),t})();const b6=function(){const t=dt(),e=ir(Xi().index,t);return function(t){return t[11]}(uo(e)?e:t)};let db=(()=>{class t{}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:()=>null}),t})();class Uo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const uA=new Uo("12.2.17");class hA{constructor(){}supports(n){return Ru(n)}create(n){return new M6(n)}}const C6=(t,n)=>n;class M6{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||C6}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new D6(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new fA),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fA),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class D6{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S6{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class fA{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S6,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pA(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const s=this._records.get(n);this._maybeAddToChanges(s,e);const r=s._prev,o=s._next;return r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const i=new T6(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class T6{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function mA(){return new wr([new hA])}let wr=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||mA()),deps:[[t,new Vr,new Ki]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'`)}}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:mA}),t})();function _A(){return new xa([new gA])}let xa=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||_A()),deps:[[t,new Vr,new Ki]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:_A}),t})();function Lp(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Hi(r)),Lr(r))for(let a=10;a-1&&(rv(n,i),ol(e,i))}this._attachedToViewContainer=!1}zD(this._lView[1],this._lView)}onDestroy(n){zS(this._lView[1],this._lView,null,n)}markForCheck(){Rv(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fv(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,n,e){Yf(!0);try{Fv(t,n,e)}finally{Yf(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,n){Du(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class k6 extends Gu{constructor(n){super(n),this._view=n}detectChanges(){KS(this._view)}checkNoChanges(){!function(t){Yf(!0);try{KS(t)}finally{Yf(!1)}}(this._view)}get context(){return null}}const I6=function(t){return function(t,n,e){if(Gf(t)&&!e){const i=ir(t.index,n);return new Gu(i,i)}return 47&t.type?new Gu(n[16],n):null}(Xi(),dt(),16==(16&t))};let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=I6,t})();const N6=[new gA],L6=new wr([new hA]),B6=new xa(N6),H6=function(){return Bp(Xi(),dt())};let on=(()=>{class t{}return t.__NG_ELEMENT_ID__=H6,t})();const j6=on,z6=class extends j6{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Au(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),ku(e,i,n),new Gu(i)}};function Bp(t,n){return 4&t.type?new z6(n,t,Kc(t,n)):null}class wo{}class yA{}const U6=function(){return xA(Xi(),dt())};let Fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=U6,t})();const Y6=Fn,vA=class extends Y6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Kc(this._hostTNode,this._hostLView)}get injector(){return new vc(this._hostTNode,this._hostLView)}get parentInjector(){const n=np(this._hostTNode,this._hostLView);if(hD(n)){const e=yc(n,this._hostLView),i=_c(n);return new vc(e[1].data[i+8],e)}return new vc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=bA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=i||this.parentInjector;if(!r&&null==n.ngModule&&o){const l=o.get(wo,null);l&&(r=l)}const a=n.create(o,s,void 0,r);return this.insert(a.hostView,e),a}insert(n,e){const i=n._lView,s=i[1];if(function(t){return Lr(t[3])}(i)){const d=this.indexOf(n);if(-1!==d)this.detach(d);else{const u=i[3],f=new vA(u,u[6],u[3]);f.detach(f.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),iyS});class GA extends aA{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function(t){return t.map(G8).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return zA(this.componentDef.inputs)}get outputs(){return zA(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function(t,n){return{get:(e,i,s)=>{const r=t.get(e,td,s);return r!==td||i===td?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get($o,QM),a=r.get(db,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=i?function(t,n,e){if(Ei(t))return t.selectRootElement(n,e===Vi.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):sv(o.createRenderer(null,this.componentDef),c,function(t){const n=t.toLowerCase();return"svg"===n?qM:"math"===n?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,f=function(t,n){return{components:[],scheduler:t||yS,clean:E4,playerHandler:n||null,flags:0}}(),_=wp(0,null,null,1,0,null,null,null,null,null),T=Au(null,_,f,u,null,null,o,l,a,r);let k,$;qf(T);try{const L=function(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Oc(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Mp(l,c,!0),null!==t&&(Zf(s,t,c),null!==l.classes&&uv(s,t,l.classes),null!==l.styles&&ZD(s,t,l.styles)));const d=i.createRenderer(t,n),u=Au(e,VS(n),null,n.onPush?64:16,e[20],l,i,d,r||null,null);return o.firstCreatePass&&(ip(fu(l,e),o,n.type),YS(o,l),qS(l,e.length,1)),Cp(e,u),e[20]=u}(d,this.componentDef,T,o,l);if(d)if(i)Zf(l,d,["ng-version",uA.full]);else{const{attrs:J,classes:ue}=function(t){const n=[],e=[];let i=1,s=2;for(;i0&&uv(l,d,ue.join(" "))}if($=Ay(_,20),void 0!==e){const J=$.projection=[];for(let ue=0;uel(o,n)),n.contentQueries){const l=Xi();n.contentQueries(1,o,l.directiveStart)}const a=Xi();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(ga(a.index),US(e[1],a,0,a.directiveStart,a.directiveEnd,n),WS(n,o)),o}(L,this.componentDef,T,f,[Z4]),ku(_,T,null)}finally{Xf()}return new W$(this.componentType,k,Kc($,T),T,$)}}class W$ extends class{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new k6(s),this.componentType=n}get injector(){return new vc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}const nd=new Map;class X$ extends wo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new jA(this);const i=mr(n),s=function(t){return t[lH]||null}(n);s&&nb(s),this._bootstrapComponents=_o(i.bootstrap),this._r3Injector=rE(n,e,[{provide:wo,useValue:this},{provide:is,useValue:this.componentFactoryResolver}],Bt(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=wn.THROW_IF_NOT_FOUND,i=Wt.Default){return n===wn||n===wo||n===ba?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Mb extends yA{constructor(n){super(),this.moduleType=n,null!==mr(n)&&function(t){const n=new Set;!function e(i){const s=mr(i,!0),r=s.id;null!==r&&(function(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Bt(n)} vs ${Bt(n.name)}`)}(r,nd.get(r),i),nd.set(r,i));const o=_o(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new X$(this.moduleType,n)}}function ki(t,n,e){const i=js()+t,s=dt();return s[i]===cn?vo(s,i,e?n.call(e):n()):function(t,n){return t[n]}(s,i)}function bs(t,n,e,i){return WA(dt(),js(),t,n,e,i)}function Qr(t,n,e,i,s){return YA(dt(),js(),t,n,e,i,s)}function Ku(t,n){const e=t[n];return e===cn?void 0:e}function WA(t,n,e,i,s,r){const o=n+e;return Os(t,o,s)?vo(t,o+1,r?i.call(r,s):i(s)):Ku(t,o+1)}function YA(t,n,e,i,s,r,o){const a=n+e;return ul(t,a,s,r)?vo(t,a+2,o?i.call(o,s,r):i(s,r)):Ku(t,a+2)}function qA(t,n,e,i,s,r,o,a){const l=n+e;return function(t,n,e,i,s){const r=ul(t,n,e,i);return Os(t,n+2,s)||r}(t,l,s,r,o)?vo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Ku(t,l+3)}function ct(t,n){const e=Pn();let i;const s=t+20;e.firstCreatePass?(i=function(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}throw new da("302",`The pipe '${t}' could not be found!`)}(n,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const r=i.factory||(i.factory=sl(i.type)),o=ua(C);try{const a=tp(!1),l=r();return tp(a),function(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,dt(),s,l),l}finally{ua(o)}}function vt(t,n,e){const i=t+20,s=dt(),r=gc(s,i);return Zu(s,Ju(s,i)?WA(s,js(),n,r.transform,e,r):r.transform(e))}function Co(t,n,e,i){const s=t+20,r=dt(),o=gc(r,s);return Zu(r,Ju(r,s)?YA(r,js(),n,o.transform,e,i,o):o.transform(e,i))}function ml(t,n,e,i,s){const r=t+20,o=dt(),a=gc(o,r);return Zu(o,Ju(o,r)?qA(o,js(),n,a.transform,e,i,s,a):a.transform(e,i,s))}function Ju(t,n){return t[1].data[n].pure}function Zu(t,n){return $r.isWrapped(n)&&(n=$r.unwrap(n),t[fo()]=cn),n}function Db(t){return n=>{setTimeout(t,void 0,n)}}const ot=class extends E{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const u=n;a=null===(s=u.next)||void 0===s?void 0:s.bind(u),l=null===(r=u.error)||void 0===r?void 0:r.bind(u),c=null===(o=u.complete)||void 0===o?void 0:o.bind(u)}this.__isAsync&&(l=Db(l),a&&(a=Db(a)),c&&(c=Db(c)));const d=super.subscribe({next:a,error:l,complete:c});return n instanceof fe&&n.add(d),d}};function oU(){return this._results[Fc()]()}class Mo{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fc(),i=Mo.prototype;i[e]||(i[e]=oU)}get changes(){return this._changes||(this._changes=new ot)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=vr(n);(this._changesDetected=!function(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0)i.push(o[a/2]);else{const c=r[a+1],d=n[-l];for(let u=10;u{class t{constructor(e){this.appInits=e,this.resolve=Fp,this.reject=Fp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Me(sd,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const th=new pt("AppId"),jU={provide:th,useFactory:function(){return`${Fb()}${Fb()}${Fb()}`},deps:[]};function Fb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const vk=new pt("Platform Initializer"),xs=new pt("Platform ID"),Lb=new pt("appBootstrapListener");let Wp=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const lr=new pt("LocaleId"),bk=new pt("DefaultCurrencyCode");class GU{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}const Bb=function(t){return new Mb(t)},$U=Bb,UU=function(t){return Promise.resolve(Bb(t))},xk=function(t){const n=Bb(t),i=_o(mr(t).declarations).reduce((s,r)=>{const o=Ts(r);return o&&s.push(new GA(o)),s},[]);return new GU(n,i)},WU=xk,YU=function(t){return Promise.resolve(xk(t))};let _l=(()=>{class t{constructor(){this.compileModuleSync=$U,this.compileModuleAsync=UU,this.compileModuleAndAllComponentsSync=WU,this.compileModuleAndAllComponentsAsync=YU}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const QU=(()=>Promise.resolve(0))();function Vb(t){"undefined"==typeof Zone?QU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class xt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let t=jn.requestAnimationFrame,n=jn.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function(t){const n=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jb(t),t.isCheckStableRunning=!0,Hb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return wk(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),Ck(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return wk(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Ck(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,jb(t),Hb(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(xt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,JU,Fp,Fp);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const JU={};function Hb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wk(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ck(t){t._nesting--,Hb(t)}class t7{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let zb=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xt.assertNotInAngularZone(),Vb(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Vb(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),Mk=(()=>{class t{constructor(){this._applications=new Map,Gb.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Gb.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class n7{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Gb=new n7,Dk=!0,Sk=!1;function $b(){return Sk=!0,Dk}let Kr;const Ek=new pt("AllowMultipleToken");class Ub{constructor(n,e){this.name=n,this.token=e}}function Tk(t,n,e=[]){const i=`Platform: ${n}`,s=new pt(i);return(r=[])=>{let o=Ak();if(!o||o.injector.get(Ek,!1))if(t)t(e.concat(r).concat({provide:s,useValue:!0}));else{const a=e.concat(r).concat({provide:s,useValue:!0},{provide:Ou,useValue:"platform"});!function(t){if(Kr&&!Kr.destroyed&&!Kr.injector.get(Ek,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Kr=t.get(kk);const n=t.get(vk,null);n&&n.forEach(e=>e())}(wn.create({providers:a,name:i}))}return function(t){const n=Ak();if(!n)throw new Error("No platform exists!");if(!n.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return n}(s)}}function Ak(){return Kr&&!Kr.destroyed?Kr:null}let kk=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(t,n){let e;return e="noop"===t?new t7:("zone.js"===t?void 0:t)||new xt({enableLongStackTrace:$b(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:xt,useValue:a}];return a.run(()=>{const c=wn.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(Hr,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:_=>{u.handleError(_)}});d.onDestroy(()=>{Wb(this._modules,d),f.unsubscribe()})}),function(t,n,e){try{const i=e();return Fu(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(u,a,()=>{const f=d.injector.get(rd);return f.runInitializers(),f.donePromise.then(()=>(nb(d.injector.get(lr,Op)||Op),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,i=[]){const s=Ok({},i);return function(t,n,e){const i=new Mb(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(cr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Bt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Ok(t,n){return Array.isArray(n)?n.reduce(Ok,t):Object.assign(Object.assign({},t),n)}let cr=(()=>{class t{constructor(e,i,s,r,o){this._zone=e,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new S(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new S(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{xt.assertNotInAngularZone(),Vb(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{xt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=De(a,l.pipe(Tn()))}bootstrap(e,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let s;s=e instanceof aA?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function(t){return t.isBoundToModule}(s)?void 0:this._injector.get(wo),a=s.create(wn.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(zb,null),d=c&&a.injector.get(Mk);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Wb(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Wb(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Lb,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(wn),Me(Hr),Me(is),Me(rd))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Wb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}class qp{}class _7{}const y7={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let v7=(()=>{class t{constructor(e,i){this._compiler=e,this._config=i||y7}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,s]=e.split("#");return void 0===s&&(s="default"),In(255)(i).then(r=>r[s]).then(r=>Nk(r,i,s)).then(r=>this._compiler.compileModuleAsync(r))}loadFactory(e){let[i,s]=e.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),In(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(o=>o[s+r]).then(o=>Nk(o,i,s))}}return t.\u0275fac=function(e){return new(e||t)(Me(_l),Me(_7,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Nk(t,n,e){if(!t)throw new Error(`Cannot find '${e}' in '${n}'`);return t}const A7=Tk(null,"core",[{provide:xs,useValue:"unknown"},{provide:kk,deps:[wn]},{provide:Mk,deps:[]},{provide:Wp,deps:[]}]),R7=[{provide:cr,useClass:cr,deps:[xt,wn,Hr,is,rd]},{provide:G$,deps:[xt],useFactory:function(t){let n=[];return t.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(e){n.push(e)}}},{provide:rd,useClass:rd,deps:[[new Ki,sd]]},{provide:_l,useClass:_l,deps:[]},jU,{provide:wr,useFactory:function(){return L6},deps:[]},{provide:xa,useFactory:function(){return B6},deps:[]},{provide:lr,useFactory:function(t){return nb(t=t||"undefined"!=typeof $localize&&$localize.locale||Op),t},deps:[[new Sc(lr),new Ki,new Vr]]},{provide:bk,useValue:"USD"}];let F7=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Me(cr))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:R7}),t})(),sg=null;function Do(){return sg}const wt=new pt("DocumentToken");let bl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:NW,token:t,providedIn:"platform"}),t})();function NW(){return Me(rO)}const FW=new pt("Location Initialized");let rO=(()=>{class t extends bl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Do().getBaseHref(this._doc)}onPopState(e){const i=Do().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Do().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,s){oO()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){oO()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:LW,token:t,providedIn:"platform"}),t})();function oO(){return!!window.history.pushState}function LW(){return new rO(Me(wt))}function l0(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function aO(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Yo(t){return t&&"?"!==t[0]?"?"+t:t}let ld=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:BW,token:t,providedIn:"root"}),t})();function BW(t){const n=Me(wt).location;return new lO(Me(bl),n&&n.origin||"")}const c0=new pt("appBaseHref");let lO=(()=>{class t extends ld{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return l0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Yo(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,r){const o=this.prepareExternalUrl(s+Yo(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){const o=this.prepareExternalUrl(s+Yo(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(bl),Me(c0,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),VW=(()=>{class t extends ld{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=l0(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,s,r){let o=this.prepareExternalUrl(s+Yo(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){let o=this.prepareExternalUrl(s+Yo(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(bl),Me(c0,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),oh=(()=>{class t{constructor(e,i){this._subject=new ot,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=aO(cO(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Yo(i))}normalize(e){return t.stripTrailingSlash(function(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,cO(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yo(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yo(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return t.\u0275fac=function(e){return new(e||t)(Me(ld),Me(bl))},t.normalizeQueryParams=Yo,t.joinWithSlash=l0,t.stripTrailingSlash=aO,t.\u0275prov=Ze({factory:HW,token:t,providedIn:"root"}),t})();function HW(){return new oh(Me(ld),Me(bl))}function cO(t){return t.replace(/\/index.html$/,"")}var Qs=(()=>((Qs=Qs||{})[Qs.Decimal=0]="Decimal",Qs[Qs.Percent=1]="Percent",Qs[Qs.Currency=2]="Currency",Qs[Qs.Scientific=3]="Scientific",Qs))(),zi=(()=>((zi=zi||{})[zi.Zero=0]="Zero",zi[zi.One=1]="One",zi[zi.Two=2]="Two",zi[zi.Few=3]="Few",zi[zi.Many=4]="Many",zi[zi.Other=5]="Other",zi))(),qt=(()=>((qt=qt||{})[qt.Decimal=0]="Decimal",qt[qt.Group=1]="Group",qt[qt.List=2]="List",qt[qt.PercentSign=3]="PercentSign",qt[qt.PlusSign=4]="PlusSign",qt[qt.MinusSign=5]="MinusSign",qt[qt.Exponential=6]="Exponential",qt[qt.SuperscriptingExponent=7]="SuperscriptingExponent",qt[qt.PerMille=8]="PerMille",qt[qt.Infinity=9]="Infinity",qt[qt.NaN=10]="NaN",qt[qt.TimeSeparator=11]="TimeSeparator",qt[qt.CurrencyDecimal=12]="CurrencyDecimal",qt[qt.CurrencyGroup=13]="CurrencyGroup",qt))();function Dr(t,n){const e=$s(t),i=e[Pt.NumberSymbols][n];if(void 0===i){if(n===qt.CurrencyDecimal)return e[Pt.NumberSymbols][qt.Decimal];if(n===qt.CurrencyGroup)return e[Pt.NumberSymbols][qt.Group]}return i}const UW=function(t){return $s(t)[Pt.PluralCase]},c9=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function y0(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}class pg{}let v9=(()=>{class t extends pg{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(UW(i||this.locale)(e)){case zi.Zero:return"zero";case zi.One:return"one";case zi.Two:return"two";case zi.Few:return"few";case zi.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Me(lr))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function xO(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}let Ma=(()=>{class t{constructor(e,i,s,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ru(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Bt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(C(wr),C(xa),C(tt),C(ji))},t.\u0275dir=Le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class x9{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oi=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((s,r,o)=>{if(null==s.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new x9(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new wO(s,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const a=this._viewContainer.get(r);this._viewContainer.move(a,o);const l=new wO(s,a);i.push(l)}});for(let s=0;s{this._viewContainer.get(s.currentIndex).context.$implicit=s.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(wr))},t.\u0275dir=Le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class wO{constructor(n,e){this.record=n,this.view=e}}let vn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new C9,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){CO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){CO("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on))},t.\u0275dir=Le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class C9{constructor(){this.$implicit=null,this.ngIf=null}}function CO(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Bt(n)}'.`)}class v0{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Da=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new v0(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(Da,9))},t.\u0275dir=Le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),b0=(()=>{class t{constructor(e,i,s){s._addDefault(new v0(e,i))}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(Da,9))},t.\u0275dir=Le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),xl=(()=>{class t{constructor(e,i,s){this._ngEl=e,this._differs=i,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[s,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,s,i):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xa),C(ji))},t.\u0275dir=Le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),os=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[rn]}),t})();function to(t,n){return Error(`InvalidPipeArgument: '${n}' for pipe '${Bt(t)}'`)}class D9{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class S9{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const E9=new S9,T9=new D9;let DO=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Fu(e))return E9;if(YE(e))return T9;throw to(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(C(Gt,16))},t.\u0275pipe=ms({name:"async",type:t,pure:!1}),t})(),EO=(()=>{class t{constructor(e){this._locale=e}transform(e,i,s){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function(t,n,e){return function(t,n,e,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let i,s,r,o,a,n=Math.abs(t)+"",e=0;for((s=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(s<0&&(s=r),s+=+n.slice(r+1),n=n.substring(0,r)):s<0&&(s=n.length),r=0;"0"===n.charAt(r);r++);if(r===(a=n.length))i=[0],s=1;else{for(a--;"0"===n.charAt(a);)a--;for(s-=r,i=[],o=0;r<=a;r++,o++)i[o]=Number(n.charAt(r))}return s>22&&(i=i.splice(0,21),e=s-1,s=1),{digits:i,exponent:e,integerLen:s}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let d=n.minInt,u=n.minFrac,f=n.maxFrac;if(r){const J=r.match(c9);if(null===J)throw new Error(`${r} is not a valid digit info`);const ue=J[1],Te=J[3],Fe=J[5];null!=ue&&(d=y0(ue)),null!=Te&&(u=y0(Te)),null!=Fe?f=y0(Fe):null!=Te&&u>f&&(f=u)}!function(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(n,s),e);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let u=o;u=5)if(o-1<0){for(let u=0;u>o;u--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s=c?T.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}(c,u,f);let _=c.digits,T=c.integerLen;const k=c.exponent;let $=[];for(l=_.every(J=>!J);T0?$=_.splice(T,_.length):($=_,_=[0]);const L=[];for(_.length>=n.lgSize&&L.unshift(_.splice(-n.lgSize,_.length).join(""));_.length>n.gSize;)L.unshift(_.splice(-n.gSize,_.length).join(""));_.length&&L.unshift(_.join("")),a=L.join(Dr(e,i)),$.length&&(a+=Dr(e,s)+$.join("")),k&&(a+=Dr(e,qt.Exponential)+"+"+k)}else a=Dr(e,qt.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";e.posPre=a.substr(0,a.indexOf("#"));for(let d=0;d{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[{provide:pg,useClass:v9}]}),t})();const AO="browser";function Sa(t){return t===AO}function dd(t){return"server"===t}let kO=(()=>{class t{}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:()=>new U9(Me(wt),window)}),t})();class U9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=i.currentNode;for(;s;){const r=s.shadowRoot;if(r){const o=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(o)return o}s=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],s-r[1])}attemptFocus(n){return n.focus(),this.document.activeElement===n}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=OO(this.window.history)||OO(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function OO(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class IO{}class C0 extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){sg||(sg=t)}(new C0)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=(ch=ch||document.querySelector("base"),ch?ch.getAttribute("href"):null);return null==e?null:function(t){gg=gg||document.createElement("a"),gg.setAttribute("href",t);const n=gg.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){ch=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return xO(document.cookie,n)}}let gg,ch=null;const PO=new pt("TRANSITION_ID"),K9=[{provide:sd,useFactory:function(t,n,e){return()=>{e.get(rd).donePromise.then(()=>{const i=Do(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},jn.getAllAngularTestabilities=()=>n.getAllTestabilities(),jn.getAllAngularRootElements=()=>n.getAllRootElements(),jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(i=>{const s=jn.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?Do().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let J9=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const dh=new pt("EventManagerPlugins");let _g=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t extends NO{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(FO),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(FO))}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function FO(t){Do().remove(t)}const S0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},E0=/%COMP%/g;function yg(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vg=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new T0(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Vi.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new fY(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case Vi.ShadowDom:return new pY(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=yg(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Me(_g),Me(uh),Me(th))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class T0{constructor(n){this.eventManager=n,this.data=Object.create(null)}destroy(){}createElement(n,e){return e?document.createElementNS(S0[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=S0[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=S0[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(rr.DashCase|rr.Important)?n.style.setProperty(e,i,s&rr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&rr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,VO(i)):this.eventManager.addEventListener(n,e,VO(i))}}class fY extends T0{constructor(n,e,i,s){super(n),this.component=i;const r=yg(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(E0,t)}(s+"-"+i.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(E0,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class pY extends T0{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=yg(s.id,s.styles,[]);for(let o=0;o{class t extends D0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const zO=["alt","control","meta","shift"],wY={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},GO={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},CY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let MY=(()=>{class t extends D0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Do().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(zO.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&GO.hasOwnProperty(n)&&(n=GO[n]))}return wY[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),zO.forEach(r=>{r!=s&&CY[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),wl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return Me(k0)},token:t,providedIn:"root"}),t})(),k0=(()=>{class t extends wl{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ln.NONE:return i;case Ln.HTML:return go(i,"HTML")?or(i):uS(this._doc,String(i)).toString();case Ln.STYLE:return go(i,"Style")?or(i):i;case Ln.SCRIPT:if(go(i,"Script"))return or(i);throw new Error("unsafe value used in a script context");case Ln.URL:return iS(i),go(i,"URL")?or(i):Su(String(i));case Ln.RESOURCE_URL:if(go(i,"ResourceURL"))return or(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(t){return new Zj(t)}(e)}bypassSecurityTrustStyle(e){return function(t){return new e8(t)}(e)}bypassSecurityTrustScript(e){return function(t){return new t8(t)}(e)}bypassSecurityTrustUrl(e){return function(t){return new n8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function(t){return new i8(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return function(t){return new k0(t.get(wt))}(Me(ba))},token:t,providedIn:"root"}),t})();const kY=[{provide:xs,useValue:AO},{provide:vk,useValue:function(){C0.makeCurrent(),M0.init()},multi:!0},{provide:wt,useFactory:function(){return function(t){Ey=t}(document),document},deps:[]}],IY=Tk(A7,"browser",kY),PY=[[],{provide:Ou,useValue:"root"},{provide:Hr,useFactory:function(){return new Hr},deps:[]},{provide:dh,useClass:gY,multi:!0,deps:[wt,xt,xs]},{provide:dh,useClass:MY,multi:!0,deps:[wt]},[],{provide:vg,useClass:vg,deps:[_g,uh,th]},{provide:$o,useExisting:vg},{provide:NO,useExisting:uh},{provide:uh,useClass:uh,deps:[wt]},{provide:zb,useClass:zb,deps:[xt]},{provide:_g,useClass:_g,deps:[dh,xt]},{provide:IO,useClass:J9,deps:[]},[]];let O0=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:th,useValue:e.appId},{provide:PO,useExisting:th},K9]}}}return t.\u0275fac=function(e){return new(e||t)(Me(t,12))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:PY,imports:[ei,F7]}),t})();function NY(){return new $O(Me(wt))}let $O=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:NY,token:t,providedIn:"root"}),t})();function Et(...t){let n=t[t.length-1];return R(n)?(t.pop(),q(t,n)):pe(t)}"undefined"!=typeof window&&window;class ti extends E{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new G;return this._value}next(n){super.next(this._value=n)}}class P0 extends se{notifyNext(n,e,i,s,r){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class jY extends se{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function R0(t,n,e,i,s=new jY(t,e,i)){if(!s.closed)return n instanceof S?n.subscribe(s):m(n)(s)}const WO={};function So(...t){let n,e;return R(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&le(t[0])&&(t=t[0]),pe(t,e).lift(new zY(n))}class zY{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new GY(n,this.resultSelector))}}class GY extends P0{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(WO),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function ud(...t){return Ee(1)(Et(...t))}const Eo=new S(t=>t.complete());function xg(t){return t?function(t){return new S(n=>t.schedule(()=>n.complete()))}(t):Eo}function N0(t){return new S(n=>{let e;try{e=t()}catch(s){return void n.error(s)}return(e?K(e):xg()).subscribe(n)})}function as(t,n){return"function"==typeof n?e=>e.pipe(as((i,s)=>K(t(i,s)).pipe(g((r,o)=>n(i,r,s,o))))):e=>e.lift(new WY(t))}class WY{constructor(n){this.project=n}call(n,e){return e.subscribe(new YY(n,this.project))}}class YY extends _e{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ne(this),s=this.destination;s.add(i),this.innerSubscription=Se(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const YO=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Bn(t){return n=>0===t?xg():n.lift(new qY(t))}class qY{constructor(n){if(this.total=n,this.total<0)throw new YO}call(n,e){return e.subscribe(new XY(n,this.total))}}class XY extends se{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ai(...t){const n=t[t.length-1];return R(n)?(t.pop(),e=>ud(t,e,n)):e=>ud(t,e)}function hh(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new QY(t,n,e))}}class QY{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new KY(n,this.accumulator,this.seed,this.hasSeed))}}class KY extends se{constructor(n,e,i,s){super(n),this.accumulator=e,this._seed=i,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)}}function mn(t,n){return function(i){return i.lift(new JY(t,n))}}class JY{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new ZY(n,this.predicate,this.thisArg))}}class ZY extends se{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function $i(t){return function(e){const i=new eq(t),s=e.lift(i);return i.caught=s}}class eq{constructor(n){this.selector=n}call(n,e){return e.subscribe(new tq(n,this.selector,this.caught))}}class tq extends _e{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(r){return void super.error(r)}this._unsubscribeAndRecycle();const i=new ne(this);this.add(i);const s=Se(e,i);s!==i&&this.add(s)}}}function Xo(t,n){return Re(t,n,1)}function fh(t){return function(e){return 0===t?xg():e.lift(new nq(t))}}class nq{constructor(n){if(this.total=n,this.total<0)throw new YO}call(n,e){return e.subscribe(new iq(n,this.total))}}class iq extends se{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,s=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;rn.lift(new sq(t))}class sq{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new rq(n,this.errorFactory))}}class rq extends se{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function oq(){return new bg}function F0(t=null){return n=>n.lift(new aq(t))}class aq{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new lq(n,this.defaultValue))}}class lq extends se{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function hd(t,n){const e=arguments.length>=2;return i=>i.pipe(t?mn((s,r)=>t(s,r,i)):x,Bn(1),e?F0(n):qO(()=>new bg))}function Qo(){}function fi(t,n,e){return function(s){return s.lift(new dq(t,n,e))}}class dq{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uq(n,this.nextOrObserver,this.error,this.complete))}}class uq extends se{constructor(n,e,i,s){super(n),this._tapNext=Qo,this._tapError=Qo,this._tapComplete=Qo,this._tapError=i||Qo,this._tapComplete=s||Qo,Di(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Qo,this._tapError=e.error||Qo,this._tapComplete=e.complete||Qo)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function XO(t){return n=>n.lift(new hq(t))}class hq{constructor(n){this.callback=n}call(n,e){return e.subscribe(new fq(n,this.callback))}}class fq extends se{constructor(n,e){super(n),this.add(new fe(e))}}class Ko{constructor(n,e){this.id=n,this.url=e}}class L0 extends Ko{constructor(n,e,i="imperative",s=null){super(n,e),this.navigationTrigger=i,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Cl extends Ko{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class QO extends Ko{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class pq extends Ko{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _q extends Ko{constructor(n,e,i,s,r){super(n,e),this.urlAfterRedirects=i,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KO{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class JO{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bq{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xq{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wq{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cq{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ZO{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Dn="primary";class Mq{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function fd(t){return new Mq(t)}const eI="ngNavigationCancelingError";function B0(t){const n=Error("NavigationCancelingError: "+t);return n[eI]=!0,n}function Sq(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===s)}return t===n}function nI(t){return Array.prototype.concat.apply([],t)}function iI(t){return t.length>0?t[t.length-1]:null}function ws(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Ao(t){return Tp(t)?t:Fu(t)?K(Promise.resolve(t)):Et(t)}const Aq={exact:function oI(t,n,e){if(!Dl(t.segments,n.segments)||!wg(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!oI(t.children[i],n.children[i],e))return!1;return!0},subset:aI},sI={exact:function(t,n){return To(t,n)},subset:function(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>tI(t[e],n[e]))},ignored:()=>!0};function rI(t,n,e){return Aq[e.paths](t.root,n.root,e.matrixParams)&&sI[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function aI(t,n,e){return lI(t,n,n.segments,e)}function lI(t,n,e,i){if(t.segments.length>e.length){const s=t.segments.slice(0,e.length);return!(!Dl(s,e)||n.hasChildren()||!wg(s,e,i))}if(t.segments.length===e.length){if(!Dl(t.segments,e)||!wg(t.segments,e,i))return!1;for(const s in n.children)if(!t.children[s]||!aI(t.children[s],n.children[s],i))return!1;return!0}{const s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Dl(t.segments,s)&&wg(t.segments,s,i)&&t.children[Dn])&&lI(t.children[Dn],n,r,i)}}function wg(t,n,e){return n.every((i,s)=>sI[e](t[s].parameters,i.parameters))}class Ml{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fd(this.queryParams)),this._queryParamMap}toString(){return Rq.serialize(this)}}class kn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,ws(e,(i,s)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cg(this)}}class ph{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=fd(this.parameters)),this._parameterMap}toString(){return hI(this)}}function Dl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class V0{}class cI{parse(n){const e=new Gq(n);return new Ml(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${gh(n.root,!0)}`,i=function(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(s=>`${Mg(e)}=${Mg(s)}`).join("&"):`${Mg(e)}=${Mg(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),s="string"==typeof n.fragment?`#${function(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${s}`}}const Rq=new cI;function Cg(t){return t.segments.map(n=>hI(n)).join("/")}function gh(t,n){if(!t.hasChildren())return Cg(t);if(n){const e=t.children[Dn]?gh(t.children[Dn],!1):"",i=[];return ws(t.children,(s,r)=>{r!==Dn&&i.push(`${r}:${gh(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,n){let e=[];return ws(t.children,(i,s)=>{s===Dn&&(e=e.concat(n(i,s)))}),ws(t.children,(i,s)=>{s!==Dn&&(e=e.concat(n(i,s)))}),e}(t,(i,s)=>s===Dn?[gh(t.children[Dn],!1)]:[`${s}:${gh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Dn]?`${Cg(t)}/${e[0]}`:`${Cg(t)}/(${e.join("//")})`}}function dI(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mg(t){return dI(t).replace(/%3B/gi,";")}function H0(t){return dI(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dg(t){return decodeURIComponent(t)}function uI(t){return Dg(t.replace(/\+/g,"%20"))}function hI(t){return`${H0(t.path)}${function(t){return Object.keys(t).map(n=>`;${H0(n)}=${H0(t[n])}`).join("")}(t.parameters)}`}const Bq=/^[^\/()?;=#]+/;function Sg(t){const n=t.match(Bq);return n?n[0]:""}const Vq=/^[^=?&#]+/,jq=/^[^?&#]+/;class Gq{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kn([],{}):new kn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Dn]=new kn(n,e)),i}parseSegment(){const n=Sg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new ph(Dg(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Sg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=Sg(this.remaining);s&&(i=s,this.capture(i))}n[Dg(e)]=Dg(i)}parseQueryParam(n){const e=function(t){const n=t.match(Vq);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function(t){const n=t.match(jq);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const s=uI(e),r=uI(i);if(n.hasOwnProperty(s)){let o=n[s];Array.isArray(o)||(o=[o],n[s]=o),o.push(r)}else n[s]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Sg(this.remaining),s=this.remaining[i.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Dn);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Dn]:new kn([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class fI{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=j0(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=j0(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=z0(n,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==n)}pathFromRoot(n){return z0(n,this._root).map(e=>e.value)}}function j0(t,n){if(t===n.value)return n;for(const e of n.children){const i=j0(t,e);if(i)return i}return null}function z0(t,n){if(t===n.value)return[n];for(const e of n.children){const i=z0(t,e);if(i.length)return i.unshift(n),i}return[]}class Jo{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function mh(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class pI extends fI{constructor(n,e){super(n),this.snapshot=e,G0(this,n)}toString(){return this.snapshot.toString()}}function gI(t,n){const e=function(t,n){const o=new Eg([],{},{},"",{},Dn,n,null,t.root,-1,{});return new _I("",new Jo(o,[]))}(t,n),i=new ti([new ph("",{})]),s=new ti({}),r=new ti({}),o=new ti({}),a=new ti(""),l=new Ta(i,s,o,a,r,Dn,n,e.root);return l.snapshot=e.root,new pI(new Jo(l,[]),e)}class Ta{constructor(n,e,i,s,r,o,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=s,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(g(n=>fd(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(g(n=>fd(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mI(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const s=e[i],r=e[i-1];if(s.routeConfig&&""===s.routeConfig.path)i--;else{if(r.component)break;i--}}return function(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Eg{constructor(n,e,i,s,r,o,a,l,c,d,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=s,this.data=r,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=fd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _I extends fI{constructor(n,e){super(e),this.url=n,G0(this,e)}toString(){return yI(this._root)}}function G0(t,n){n.value._routerState=t,n.children.forEach(e=>G0(t,e))}function yI(t){const n=t.children.length>0?` { ${t.children.map(yI).join(", ")} } `:"";return`${t.value}${n}`}function $0(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,To(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),To(n.params,e.params)||t.params.next(e.params),function(t,n){if(t.length!==n.length)return!1;for(let e=0;eTo(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||U0(t.parent,n.parent))}function Tg(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const s=function(t,n,e){return n.children.map(i=>{for(const s of e.children)if(t.shouldReuseRoute(i.value,s.value.snapshot))return Tg(t,i,s);return Tg(t,i)})}(t,n,e);return new Jo(i,s)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const o=r.route;return vI(n,o),o}}const i=function(t){return new Ta(new ti(t.url),new ti(t.params),new ti(t.queryParams),new ti(t.fragment),new ti(t.data),t.outlet,t.component,t)}(n.value),s=n.children.map(r=>Tg(t,r));return new Jo(i,s)}}function vI(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let e=0;e{r[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Ml(e.root===t?n:bI(e.root,t,n),r,s)}function bI(t,n,e){const i={};return ws(t.children,(s,r)=>{i[r]=s===n?e:bI(s,n,e)}),new kn(t.segments,i)}class xI{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Ag(i[0]))throw new Error("Root segment cannot have matrix parameters");const s=i.find(_h);if(s&&s!==iI(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Y0{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function wI(t,n,e){if(t||(t=new kn([],{})),0===t.segments.length&&t.hasChildren())return kg(t,n,e);const i=function(t,n,e){let i=0,s=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return r;const o=t.segments[s],a=e[i];if(_h(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!MI(l,c,o))return r;i+=2}else{if(!MI(l,{},o))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,n,e),s=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(s[o]=wI(t.children[o],n,r))}),ws(t.children,(r,o)=>{void 0===i[o]&&(s[o]=r)}),new kn(t.segments,s)}}function q0(t,n,e){const i=t.segments.slice(0,n);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=q0(new kn([],{}),0,e))}),n}function CI(t){const n={};return ws(t,(e,i)=>n[i]=`${e}`),n}function MI(t,n,e){return t==e.path&&To(n,e.parameters)}class iX{constructor(n,e,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=s}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),$0(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const s=mh(e);n.children.forEach(r=>{const o=r.value.outlet;this.deactivateRoutes(r,s[o],i),delete s[o]}),ws(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const s=n.value,r=e?e.value:null;if(s===r)if(s.component){const o=i.getContext(s.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet);if(i&&i.outlet){const s=i.outlet.detach(),r=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:r})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),s=i&&n.value.component?i.children:e,r=mh(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const s=mh(e);n.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],i),this.forwardEvent(new Cq(r.value.snapshot))}),n.children.length&&this.forwardEvent(new xq(n.value.snapshot))}activateRoutes(n,e,i){const s=n.value,r=e?e.value:null;if($0(s),s===r)if(s.component){const o=i.getOrCreateContext(s.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,i);else if(s.component){const o=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const a=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),DI(a.route)}else{const a=function(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=l,o.outlet&&o.outlet.activateWith(s,l),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}function DI(t){$0(t.value),t.children.forEach(DI)}class X0{constructor(n,e){this.routes=n,this.module=e}}function Aa(t){return"function"==typeof t}function Sl(t){return t instanceof Ml}const yh=Symbol("INITIAL_VALUE");function vh(){return as(t=>So(t.map(n=>n.pipe(Bn(1),ai(yh)))).pipe(hh((n,e)=>{let i=!1;return e.reduce((s,r,o)=>s!==yh?s:(r===yh&&(i=!0),i||!1!==r&&o!==e.length-1&&!Sl(r)?s:r),n)},yh),mn(n=>n!==yh),g(n=>Sl(n)?n:!0===n),Bn(1)))}let SI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},directives:function(){return[n1]},encapsulation:2}),t})();function EI(t,n=""){for(let e=0;eEr(i)===n);return e.push(...t.filter(i=>Er(i)!==n)),e}const AI={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Og(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},AI):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Sq)(e,t,n);if(!r)return Object.assign({},AI);const o={};ws(r.posParams,(l,c)=>{o[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ig(t,n,e,i,s="corrected"){if(e.length>0&&function(t,n,e){return e.some(i=>Pg(t,n,i)&&Er(i)!==Dn)}(t,e,i)){const o=new kn(n,function(t,n,e,i){const s={};s[Dn]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Er(r)!==Dn){const o=new kn([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,s[Er(r)]=o}return s}(t,n,i,new kn(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function(t,n,e){return e.some(i=>Pg(t,n,i))}(t,e,i)){const o=new kn(t.segments,function(t,n,e,i,s,r){const o={};for(const a of i)if(Pg(t,e,a)&&!s[Er(a)]){const l=new kn([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,o[Er(a)]=l}return Object.assign(Object.assign({},s),o)}(t,n,e,i,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new kn(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function Pg(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function kI(t,n,e,i){return!!(Er(t)===i||i!==Dn&&Pg(n,e,t))&&("**"===t.path||Og(n,t,e).matched)}function OI(t,n,e){return 0===n.length&&!t.children[e]}class bh{constructor(n){this.segmentGroup=n||null}}class II{constructor(n){this.urlTree=n}}function Rg(t){return new S(n=>n.error(new bh(t)))}function PI(t){return new S(n=>n.error(new II(t)))}function mX(t){return new S(n=>n.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vX{constructor(n,e,i,s,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(wo)}apply(){const n=Ig(this.urlTree.root,[],[],this.config).segmentGroup,e=new kn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Dn).pipe(g(r=>this.createUrlTree(K0(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe($i(r=>{if(r instanceof II)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof bh?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,Dn).pipe(g(s=>this.createUrlTree(K0(s),n.queryParams,n.fragment))).pipe($i(s=>{throw s instanceof bh?this.noMatchError(s):s}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const s=n.segments.length>0?new kn([],{[Dn]:n}):n;return new Ml(s,e,i)}expandSegmentGroup(n,e,i,s){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(g(r=>new kn([],r))):this.expandSegment(n,i,e,i.segments,s,!0)}expandChildren(n,e,i){const s=[];for(const r of Object.keys(i.children))"primary"===r?s.unshift(r):s.push(r);return K(s).pipe(Xo(r=>{const o=i.children[r],a=TI(e,r);return this.expandSegmentGroup(n,a,o,r).pipe(g(l=>({segment:l,outlet:r})))}),hh((r,o)=>(r[o.outlet]=o.segment,r),{}),function(t,n){const e=arguments.length>=2;return i=>i.pipe(t?mn((s,r)=>t(s,r,i)):x,fh(1),e?F0(n):qO(()=>new bg))}())}expandSegment(n,e,i,s,r,o){return K(i).pipe(Xo(a=>this.expandSegmentAgainstRoute(n,e,i,a,s,r,o).pipe($i(c=>{if(c instanceof bh)return Et(null);throw c}))),hd(a=>!!a),$i((a,l)=>{if(a instanceof bg||"EmptyError"===a.name){if(OI(e,s,r))return Et(new kn([],{}));throw new bh(e)}throw a}))}expandSegmentAgainstRoute(n,e,i,s,r,o,a){return kI(s,e,r,o)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(n,e,s,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o):Rg(e):Rg(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,s){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?PI(r):this.lineralizeSegments(i,r).pipe(Re(o=>{const a=new kn(o,{});return this.expandSegment(n,a,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=Og(e,s,r);if(!a)return Rg(e);const u=this.applyRedirectCommands(l,s.redirectTo,d);return s.redirectTo.startsWith("/")?PI(u):this.lineralizeSegments(s,u).pipe(Re(f=>this.expandSegment(n,e,i,f.concat(r.slice(c)),o,!1)))}matchSegmentAgainstRoute(n,e,i,s,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Et(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(g(f=>(i._loadedConfig=f,new kn(s,{})))):Et(new kn(s,{}));const{matched:o,consumedSegments:a,lastChild:l}=Og(e,i,s);if(!o)return Rg(e);const c=s.slice(l);return this.getChildConfig(n,i,s).pipe(Re(u=>{const f=u.module,_=u.routes,{segmentGroup:T,slicedSegments:k}=Ig(e,a,c,_),$=new kn(T.segments,T.children);if(0===k.length&&$.hasChildren())return this.expandChildren(f,_,$).pipe(g(Te=>new kn(a,Te)));if(0===_.length&&0===k.length)return Et(new kn(a,{}));const L=Er(i)===r;return this.expandSegment(f,$,_,k,L?Dn:r,!0).pipe(g(ue=>new kn(a.concat(ue.segments),ue.children)))}))}getChildConfig(n,e,i){return e.children?Et(new X0(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?Et(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(Re(s=>s?this.configLoader.load(n.injector,e).pipe(g(r=>(e._loadedConfig=r,r))):function(t){return new S(n=>n.error(B0(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Et(new X0([],n))}runCanLoadGuards(n,e,i){const s=e.canLoad;if(!s||0===s.length)return Et(!0);const r=s.map(o=>{const a=n.get(o);let l;if(function(t){return t&&Aa(t.canLoad)}(a))l=a.canLoad(e,i);else{if(!Aa(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ao(l)});return Et(r).pipe(vh(),fi(o=>{if(!Sl(o))return;const a=B0(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),g(o=>!0===o))}lineralizeSegments(n,e){let i=[],s=e.root;for(;;){if(i=i.concat(s.segments),0===s.numberOfChildren)return Et(i);if(s.numberOfChildren>1||!s.children[Dn])return mX(n.redirectTo);s=s.children[Dn]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,s){const r=this.createSegmentGroup(n,e.root,i,s);return new Ml(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return ws(n,(s,r)=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);i[r]=e[a]}else i[r]=s}),i}createSegmentGroup(n,e,i,s){const r=this.createSegments(n,e.segments,i,s);let o={};return ws(e.children,(a,l)=>{o[l]=this.createSegmentGroup(n,a,i,s)}),new kn(r,o)}createSegments(n,e,i,s){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,s):this.findOrReturn(r,i))}findPosParam(n,e,i){const s=i[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return s}findOrReturn(n,e){let i=0;for(const s of e){if(s.path===n.path)return e.splice(i),s;i++}return n}}function K0(t){const n={};for(const i of Object.keys(t.children)){const r=K0(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function(t){if(1===t.numberOfChildren&&t.children[Dn]){const n=t.children[Dn];return new kn(t.segments.concat(n.segments),n.children)}return t}(new kn(t.segments,n))}class RI{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ng{constructor(n,e){this.component=n,this.route=e}}function wX(t,n,e){const i=t._root;return xh(i,n?n._root:null,e,[i.value])}function Fg(t,n,e){const i=function(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function xh(t,n,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=mh(n);return t.children.forEach(o=>{(function(t,n,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Dl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Dl(t.url,n.url)||!To(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!U0(t,n)||!To(t.queryParams,n.queryParams);default:return!U0(t,n)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new RI(i)):(r.data=o.data,r._resolvedData=o._resolvedData),xh(t,n,r.component?a?a.children:null:e,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ng(a.outlet.component,o))}else o&&wh(n,a,s),s.canActivateChecks.push(new RI(i)),xh(t,null,r.component?a?a.children:null:e,i,s)})(o,r[o.value.outlet],e,i.concat([o.value]),s),delete r[o.value.outlet]}),ws(r,(o,a)=>wh(o,e.getContext(a),s)),s}function wh(t,n,e){const i=mh(t),s=t.value;ws(i,(r,o)=>{wh(r,s.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Ng(s.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,s))}class NX{}function NI(t){return new S(n=>n.error(t))}class LX{constructor(n,e,i,s,r,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const n=Ig(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,Dn);if(null===e)return null;const i=new Eg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Dn,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Jo(i,e),r=new _I(this.url,s);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=mI(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const o=e.children[r],a=TI(n,r),l=this.processSegmentGroup(a,o,r);if(null===l)return null;i.push(...l)}const s=FI(i);return function(t){t.sort((n,e)=>n.value.outlet===Dn?-1:e.value.outlet===Dn?1:n.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(n,e,i,s){for(const r of n){const o=this.processSegmentAgainstRoute(r,e,i,s);if(null!==o)return o}return OI(e,i,s)?[]:null}processSegmentAgainstRoute(n,e,i,s){if(n.redirectTo||!kI(n,e,i,s))return null;let r,o=[],a=[];if("**"===n.path){const _=i.length>0?iI(i).parameters:{};r=new Eg(i,_,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,VI(n),Er(n),n.component,n,LI(e),BI(e)+i.length,HI(n))}else{const _=Og(e,n,i);if(!_.matched)return null;o=_.consumedSegments,a=i.slice(_.lastChild),r=new Eg(o,_.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,VI(n),Er(n),n.component,n,LI(e),BI(e)+o.length,HI(n))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:c,slicedSegments:d}=Ig(e,o,a,l.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const _=this.processChildren(l,c);return null===_?null:[new Jo(r,_)]}if(0===l.length&&0===d.length)return[new Jo(r,[])];const u=Er(n)===s,f=this.processSegment(l,c,d,u?Dn:s);return null===f?null:[new Jo(r,f)]}}function HX(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function FI(t){const n=[],e=new Set;for(const i of t){if(!HX(i)){n.push(i);continue}const s=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==s?(s.children.push(...i.children),e.add(s)):n.push(i)}for(const i of e){const s=FI(i.children);n.push(new Jo(i.value,s))}return n.filter(i=>!e.has(i))}function LI(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function BI(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function VI(t){return t.data||{}}function HI(t){return t.resolve||{}}function J0(t){return as(n=>{const e=t(n);return e?K(e).pipe(g(()=>n)):Et(n)})}class qX extends class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Z0=new pt("ROUTES");class jI{constructor(n,e,i,s){this.loader=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=s}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe(g(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=r.create(n);return new X0(nI(o.injector.get(Z0,void 0,Wt.Self|Wt.Optional)).map(Q0),o)}),$i(r=>{throw e._loader$=void 0,r}));return e._loader$=new yt(s,()=>new E).pipe(Ge()),e._loader$}loadModuleFactory(n){return"string"==typeof n?K(this.loader.load(n)):Ao(n()).pipe(Re(e=>e instanceof yA?Et(e):K(this.compiler.compileModuleAsync(e))))}}class XX{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pd,this.attachRef=null}}class pd{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new XX,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}class KX{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function JX(t){throw t}function ZX(t,n,e){return n.parse("/")}function zI(t,n){return Et(null)}const eQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ls=(()=>{class t{constructor(e,i,s,r,o,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=s,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=JX,this.malformedUriErrorHandler=ZX,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:zI,afterPreactivation:zI},this.urlHandlingStrategy=new KX,this.routeReuseStrategy=new qX,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(wo),this.console=o.get(Wp);const f=o.get(xt);this.isNgZoneEnabled=f instanceof xt&&xt.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ml(new kn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new jI(a,l,_=>this.triggerEvent(new KO(_)),_=>this.triggerEvent(new JO(_))),this.routerState=gI(this.currentUrlTree,this.rootComponentType),this.transitions=new ti({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(mn(s=>0!==s.id),g(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),as(s=>{let r=!1,o=!1;return Et(s).pipe(fi(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),as(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Lg(a.source)&&(this.browserUrlTree=a.extractedUrl),Et(a).pipe(as(u=>{const f=this.transitions.getValue();return i.next(new L0(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Eo:Promise.resolve(u)}),function(t,n,e,i){return as(s=>function(t,n,e,i,s){return new vX(t,n,e,i,s).apply()}(t,n,e,s.extractedUrl,i).pipe(g(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),fi(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function(t,n,e,i,s){return Re(r=>function(t,n,e,i,s="emptyOnly",r="legacy"){try{const o=new LX(t,n,e,i,s,r).recognize();return null===o?NI(new NX):Et(o)}catch(o){return NI(o)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,s).pipe(g(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),fi(u=>{"eager"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.setBrowserUrl(u.urlAfterRedirects,u),this.browserUrlTree=u.urlAfterRedirects);const f=new gq(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:_,source:T,restoredState:k,extras:$}=a,L=new L0(f,this.serializeUrl(_),T,k);i.next(L);const J=gI(_,this.rootComponentType).snapshot;return Et(Object.assign(Object.assign({},a),{targetSnapshot:J,urlAfterRedirects:_,extras:Object.assign(Object.assign({},$),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Eo}),J0(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:_}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!_})}),fi(a=>{const l=new mq(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),g(a=>Object.assign(Object.assign({},a),{guards:wX(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,n){return Re(e=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return 0===o.length&&0===r.length?Et(Object.assign(Object.assign({},e),{guardsResult:!0})):function(t,n,e,i){return K(t).pipe(Re(s=>function(t,n,e,i,s){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(a=>{const l=Fg(a,n,s);let c;if(function(t){return t&&Aa(t.canDeactivate)}(l))c=Ao(l.canDeactivate(t,n,e,i));else{if(!Aa(l))throw new Error("Invalid CanDeactivate guard");c=Ao(l(t,n,e,i))}return c.pipe(hd())})).pipe(vh()):Et(!0)}(s.component,s.route,e,n,i)),hd(s=>!0!==s,!0))}(o,i,s,t).pipe(Re(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,n,e,i){return K(n).pipe(Xo(s=>ud(function(t,n){return null!==t&&n&&n(new bq(t)),Et(!0)}(s.route.parent,i),function(t,n){return null!==t&&n&&n(new wq(t)),Et(!0)}(s.route,i),function(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>function(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>N0(()=>Et(o.guards.map(l=>{const c=Fg(l,o.node,e);let d;if(function(t){return t&&Aa(t.canActivateChild)}(c))d=Ao(c.canActivateChild(i,t));else{if(!Aa(c))throw new Error("Invalid CanActivateChild guard");d=Ao(c(i,t))}return d.pipe(hd())})).pipe(vh())));return Et(r).pipe(vh())}(t,s.path,e),function(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const s=i.map(r=>N0(()=>{const o=Fg(r,n,e);let a;if(function(t){return t&&Aa(t.canActivate)}(o))a=Ao(o.canActivate(n,t));else{if(!Aa(o))throw new Error("Invalid CanActivate guard");a=Ao(o(n,t))}return a.pipe(hd())}));return Et(s).pipe(vh())}(t,s.route,e))),hd(s=>!0!==s,!0))}(i,r,t,n):Et(a)),g(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),fi(a=>{if(Sl(a.guardsResult)){const c=B0(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new _q(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),mn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),J0(a=>{if(a.guards.canActivateChecks.length)return Et(a).pipe(fi(l=>{const c=new yq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),as(l=>{let c=!1;return Et(l).pipe(function(t,n){return Re(e=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=e;if(!s.length)return Et(e);let r=0;return K(s).pipe(Xo(o=>function(t,n,e,i){return function(t,n,e,i){const s=Object.keys(t);if(0===s.length)return Et({});const r={};return K(s).pipe(Re(o=>function(t,n,e,i){const s=Fg(t,n,i);return Ao(s.resolve?s.resolve(n,e):s(n,e))}(t[o],n,e,i).pipe(fi(a=>{r[o]=a}))),fh(1),Re(()=>Object.keys(r).length===s.length?Et(r):Eo))}(t._resolve,t,n,i).pipe(g(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),mI(t,e).resolve),null)))}(o.route,i,t,n)),fi(()=>r++),fh(1),Re(o=>r===s.length?Et(e):Eo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),fi({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),fi(l=>{const c=new vq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),J0(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:_}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!_})}),g(a=>{const l=function(t,n,e){const i=Tg(t,n._root,e?e._root:void 0);return new pI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),fi(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>g(i=>(new iX(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),fi({next(){r=!0},complete(){r=!0}}),XO(()=>{var a;if(!r&&!o){const l=`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(s),this.cancelNavigationTransition(s,l)):this.cancelNavigationTransition(s,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===s.id&&(this.currentNavigation=null)}),$i(a=>{if(o=!0,function(t){return t&&t[eI]}(a)){const l=Sl(a.url);l||(this.navigated=!0,this.restoreHistory(s,!0));const c=new QO(s.id,this.serializeUrl(s.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lg(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const l=new pq(s.id,this.serializeUrl(s.extractedUrl),a);i.next(l);try{s.resolve(this.errorHandler(a))}catch(c){s.reject(c)}}return Eo}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:s,state:r,urlTree:o}=i,a={replaceUrl:!0};if(r){const l=Object.assign({},r);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(o,s,r,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const s=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!s||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){EI(e),this.config=e.map(Q0),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=s||this.routerState.root,d=l?this.currentUrlTree.fragment:o;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,n,e,i,s){if(0===e.length)return W0(n.root,n.root,n,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new xI(!0,0,t);let n=0,e=!1;const i=t.reduce((s,r,o)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return ws(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...s,{outlets:a}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof r?[...s,r]:0===o?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&s.push(a))}),s):[...s,r]},[]);return new xI(e,n,i)}(e);if(r.toRoot())return W0(n.root,new kn([],{}),n,i,s);const o=function(t,n,e){if(t.isAbsolute)return new Y0(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new Y0(r,r===n.root,0)}const i=Ag(t.commands[0])?0:1;return function(t,n,e){let i=t,s=n,r=e;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Y0(i,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),a=o.processChildren?kg(o.segmentGroup,o.index,r.commands):wI(o.segmentGroup,o.index,r.commands);return W0(o.segmentGroup,a,n,i,s)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,i={skipLocationChange:!1}){const s=Sl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(t){for(let n=0;n{const r=e[s];return null!=r&&(i[s]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Cl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,s,r,o){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),d=Lg(i)&&c&&!Lg(c.source),_=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(d&&_)return Promise.resolve(!0);let T,k,$;o?(T=o.resolve,k=o.reject,$=o.promise):$=new Promise((ue,Te)=>{T=ue,k=Te});const L=++this.navigationId;let J;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),J=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):J=0,this.setTransition({id:L,targetPageId:J,source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:T,reject:k,promise:$,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),$.catch(ue=>Promise.reject(ue))}setBrowserUrl(e,i){const s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,i=!1){var s,r;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const s=new QO(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)(Me(rp),Me(V0),Me(pd),Me(oh),Me(wn),Me(qp),Me(_l),Me(void 0))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Lg(t){return"imperative"!==t}let e1=(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.route=i,this.commands=[],this.onChanges=new E,null==s&&r.setAttribute(o.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:gd(this.skipLocationChange),replaceUrl:gd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),_s("tabindex"),C(ji),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&nt("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[rn]}),t})(),Ch=(()=>{class t{constructor(e,i,s){this.router=e,this.route=i,this.locationStrategy=s,this.commands=[],this.onChanges=new E,this.subscription=e.events.subscribe(r=>{r instanceof Cl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,s,r,o){if(0!==e||i||s||r||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:gd(this.skipLocationChange),replaceUrl:gd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),C(ld))},t.\u0275dir=Le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&nt("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&(ys("href",i.href,_i),At("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[rn]}),t})();function gd(t){return""===t||!!t}let t1=(()=>{class t{constructor(e,i,s,r,o,a){this.router=e,this.element=i,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Cl&&this.update()})}ngAfterContentInit(){Et(this.links.changes,this.linksWithHrefs.changes,Et(null)).pipe(Ee()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=K(i).pipe(Ee()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(s=>!!s)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}))})}isLinkActive(e){const i=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>e.isActive(s.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(tt),C(ji),C(Gt),C(e1,8),C(Ch,8))},t.\u0275dir=Le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,e1,5),Ft(s,Ch,5)),2&e){let r;st(r=rt())&&(i.links=r),st(r=rt())&&(i.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[rn]}),t})(),n1=(()=>{class t{constructor(e,i,s,r,o){this.parentContexts=e,this.location=i,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ot,this.deactivateEvents=new ot,this.name=r||Dn,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new sQ(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(C(pd),C(Fn),C(is),_s("name"),C(Gt))},t.\u0275dir=Le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class sQ{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ta?this.route:n===pd?this.childContexts:this.parent.get(n,e)}}class GI{}class $I{preload(n,e){return Et(null)}}let UI=(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new jI(i,s,c=>e.triggerEvent(new KO(c)),c=>e.triggerEvent(new JO(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(mn(e=>e instanceof Cl),Xo(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(wo);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const s=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return K(s).pipe(Ee(),g(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Et(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Re(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Me(ls),Me(qp),Me(_l),Me(wn),Me(GI))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),s1=(()=>{class t{constructor(e,i,s={}){this.router=e,this.viewportScroller=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof L0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Cl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ZO&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new ZO(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Me(ls),Me(kO),Me(void 0))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const El=new pt("ROUTER_CONFIGURATION"),WI=new pt("ROUTER_FORROOT_GUARD"),oQ=[oh,{provide:V0,useClass:cI},{provide:ls,useFactory:function(t,n,e,i,s,r,o,a={},l,c){const d=new ls(null,t,n,e,i,s,r,nI(o));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),function(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy)}(a,d),a.enableTracing&&d.events.subscribe(u=>{var f,_;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(_=console.groupEnd)||void 0===_||_.call(console)}),d},deps:[V0,pd,oh,wn,qp,_l,Z0,El,[class{},new Ki],[class{},new Ki]]},pd,{provide:Ta,useFactory:function(t){return t.routerState.root},deps:[ls]},{provide:qp,useClass:v7},UI,$I,class{preload(n,e){return e().pipe($i(()=>Et(null)))}},{provide:El,useValue:{enableTracing:!1}}];function aQ(){return new Ub("Router",ls)}let YI=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[oQ,qI(e),{provide:WI,useFactory:dQ,deps:[[ls,new Ki,new Vr]]},{provide:El,useValue:i||{}},{provide:ld,useFactory:cQ,deps:[bl,[new Sc(c0),new Ki],El]},{provide:s1,useFactory:lQ,deps:[ls,kO,El]},{provide:GI,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:$I},{provide:Ub,multi:!0,useFactory:aQ},[r1,{provide:sd,multi:!0,useFactory:pQ,deps:[r1]},{provide:XI,useFactory:gQ,deps:[r1]},{provide:Lb,multi:!0,useExisting:XI}]]}}static forChild(e){return{ngModule:t,providers:[qI(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Me(WI,8),Me(ls,8))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();function lQ(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new s1(t,n,e)}function cQ(t,n,e={}){return e.useHash?new VW(t,n):new lO(t,n)}function dQ(t){return"guarded"}function qI(t){return[{provide:ij,multi:!0,useValue:t},{provide:Z0,multi:!0,useValue:t}]}let r1=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(FW,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const s=new Promise(a=>i=a),r=this.injector.get(ls),o=this.injector.get(El);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?Et(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),s})}bootstrapListener(e){const i=this.injector.get(El),s=this.injector.get(UI),r=this.injector.get(s1),o=this.injector.get(ls),a=this.injector.get(cr);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function pQ(t){return t.appInitializer.bind(t)}function gQ(t){return t.bootstrapListener.bind(t)}const XI=new pt("Router Initializer");var Oi=(()=>(function(t){t.ANIME="anime",t.MANGA="manga"}(Oi||(Oi={})),Oi))();class Ys{static calculateScoreStatistics(n){var e;const i=new Array(10).fill(0);for(let s=0;s0&&i[n[s].score-1]++;return i}static calculateMediumScoreStatistics(n,e){let i=0;return n.forEach(s=>{s.score&&(i+=s.score)}),i/(e||n.filter(s=>s.score).length)||0}static calculateTotalEntries(n){let e=0;return n.forEach(i=>e+=i.size),e}static parseUserProfileStats(n){const e={anime:{total:0,medium:0},manga:{total:0,medium:0},general:{medium:"0"}};e.anime.total=Ys.calculateTotalEntries(n.stats.full_statuses.anime),e.manga.total=Ys.calculateTotalEntries(n.stats.full_statuses.manga);let i=0;return e.anime.medium=parseFloat(Ys.calculateMediumScoreStatistics(n.stats.scores.anime.map(s=>(i+=s.value,{score:s.value*Number(s.name)})),i).toFixed(1)),i=0,e.manga.medium=parseFloat(Ys.calculateMediumScoreStatistics(n.stats.scores.manga.map(s=>(i+=s.value,{score:s.value*Number(s.name)})),i).toFixed(1)),e.general.medium=e.anime.medium&&e.manga.medium?((e.anime.medium+e.manga.medium)/2).toFixed(1):(e.anime.medium||e.manga.medium)+"",e}}class _Q{constructor(n=((e,i)=>e>i)){this.top=0,this.parent=e=>(e+1>>>1)-1,this.left=e=>1+(e<<1),this.right=e=>e+1<<1,this._heap=[],this._comparator=n}size(){return this._heap.length}isEmpty(){return 0==this.size()}peek(){return this._heap[this.top]}push(...n){return n.forEach(e=>{this._heap.push(e),this._siftUp()}),this.size()}pop(){const n=this.peek(),e=this.size()-1;return e>this.top&&this._swap(this.top,e),this._heap.pop(),this._siftDown(),n}replace(n){const e=this.peek();return this._heap[this.top]=n,this._siftDown(),e}_greater(n,e){return this._comparator(this._heap[n],this._heap[e])}_swap(n,e){[this._heap[n],this._heap[e]]=[this._heap[e],this._heap[n]]}_siftUp(){let n=this.size()-1;for(;n>this.top&&this._greater(n,this.parent(n));)this._swap(n,this.parent(n)),n=this.parent(n)}_siftDown(){let n=this.top;for(;this.left(n)=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2}static isDefined(n){return null!=n}static shuffle(n){let i,e=n.length;for(;0!=e;)i=Math.floor(Math.random()*e),e--,[n[e],n[i]]=[n[i],n[e]];return n}static capitalizeFirstLetter(n){return n.charAt(0).toUpperCase()+n.slice(1)}static selectValidLocaleName(n){if(null==n?void 0:n.english)return null==n?void 0:n.english;if(null==n?void 0:n.synonyms){const e=n.synonyms.find(i=>/^[~`\s!@#$%^&*()_+=[\]\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(i));if(e)return e}return n.name}static flatten(n){return n.reduce(function(e,i){return e.concat(Array.isArray(i)?Rs.flatten(i):i)},[])}static translatePaginator(n,e){(null==n?void 0:n._intl)&&(n._intl.itemsPerPageLabel=e.transform("ItemsPerPage"),n._intl.nextPageLabel=e.transform("NextPage"),n._intl.previousPageLabel=e.transform("PreviousPage"),n._intl.getRangeLabel=(i,s,r)=>{if(0==r||0==s)return e.transform("OUT_OF",{first:0,second:r});const o=i*s,a=o<(r=Math.max(r,0))?Math.min(o+s,r):o+s;return e.transform("N_OUT_OF",{first:o+1,second:a,third:r})},n._intl.changes.next())}static isNumeric(n){return!isNaN(parseFloat(n))&&isFinite(n)}static getTopNi(n,e,i){var s;const r=new _Q((a,l)=>a.val((null===(s=r.peek())||void 0===s?void 0:s.val)||-1/0)&&(r.push({index:a,val:l}),r.pop())}const o=[];for(let a=0;a(function(t){t.REWATCHING="rewatching",t.PLANNED="planned",t.WATCHING="watching",t.COMPLETED="completed",t.ON_HOLD="on_hold",t.DROPPED="dropped"}(md||(md={})),md))();const bQ={anime:{episodes:"Episodes",total:"TOTAL_WATCHED_ANIME"},manga:{episodes:"Chapters",total:"TOTAL_READ_MANGA"}},JI={Action:1,Adventure:2,Comedy:4,Drama:8,"Slice of Life":36,Fantasy:10,Supernatural:37,Horror:14,Mystery:7,Thriller:41,Romance:22,"Sci-Fi":24,Ecchi:9},ZI={"Hidden gem":{icon:"\u{1f48e}",template:!1},"Watched in original":{icon:"japan",template:!0}};class xQ extends fe{constructor(n,e){super()}schedule(n,e=0){return this}}class Hg extends xQ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let eP=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class no extends eP{constructor(n,e=eP.now){super(n,()=>no.delegate&&no.delegate!==this?no.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return no.delegate&&no.delegate!==this?no.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const jg=new no(Hg);function tP(t){return!le(t)&&t-parseFloat(t)+1>=0}function Mh(t=0,n,e){let i=-1;return tP(n)?i=Number(n)<1?1:Number(n):R(n)&&(e=n),R(e)||(e=jg),new S(s=>{const r=tP(t)?t:+t-e.now();return e.schedule(wQ,r,{index:0,period:i,subscriber:s})})}function wQ(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function MQ(t){const{start:n,index:e,count:i,subscriber:s}=t;e>=i?s.complete():(s.next(n),!s.closed&&(t.index=e+1,t.start=n+1,this.schedule(t)))}function zg(t,n){return new S(n?e=>n.schedule(DQ,0,{error:t,subscriber:e}):e=>e.error(t))}function DQ({error:t,subscriber:n}){n.error(t)}function Gg(t){return n=>n.lift(new SQ(t,n))}class SQ{constructor(n,e){this.notifier=n,this.source=e}call(n,e){return e.subscribe(new EQ(n,this.notifier,this.source))}}class EQ extends _e{constructor(n,e,i){super(n),this.notifier=e,this.source=i}error(n){if(!this.isStopped){let e=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{e=new E;try{const{notifier:r}=this;i=r(e)}catch(r){return super.error(r)}s=Se(i,new ne(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=i,this.retriesSubscription=s,e.next(n)}}_unsubscribe(){const{errors:n,retriesSubscription:e}=this;n&&(n.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:n}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=n,this.source.subscribe(this)}}function nP(t,n){return arguments.length>=2?function(i){return y(hh(t,n),fh(1),F0(n))(i)}:function(i){return y(hh((s,r,o)=>t(s,r,o+1)),fh(1))(i)}}function TQ(t,n,e){return 0===e?[n]:(t.push(n),t)}class Ks{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Et(this.value);case"E":return zg(this.error);case"C":return xg()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Ks("N",n):Ks.undefinedValueNotification}static createError(n){return new Ks("E",void 0,n)}static createComplete(){return Ks.completeNotification}}function Zo(t,n=jg){const i=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return s=>s.lift(new OQ(i,n))}Ks.completeNotification=new Ks("C"),Ks.undefinedValueNotification=new Ks("N",void 0);class OQ{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new a1(n,this.delay,this.scheduler))}}class a1 extends se{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,s=n.scheduler,r=n.destination;for(;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const o=Math.max(0,i[0].time-s.now());this.schedule(n,o)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(a1.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new IQ(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ks.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ks.createComplete()),this.unsubscribe()}}class IQ{constructor(n,e){this.time=n,this.notification=e}}class RQ{constructor(n,e,i){this.project=n,this.concurrent=e,this.scheduler=i}call(n,e){return e.subscribe(new l1(n,this.project,this.concurrent,this.scheduler))}}class l1 extends _e{constructor(n,e,i,s){super(n),this.project=e,this.concurrent=i,this.scheduler=s,this.index=0,this.active=0,this.hasCompleted=!1,i0&&this._next(n.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}function iP(t,n=!1){return e=>e.lift(new NQ(t,n))}class NQ{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new FQ(n,this.predicate,this.inclusive))}}class FQ extends se{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(s){return void e.error(s)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}var c1=function(t,n){return(c1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])})(t,n)};function io(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}c1(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var et=function(){return et=Object.assign||function(n){for(var e,i=1,s=arguments.length;i0&&r[r.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]=n)break;e=s.index+s[0].length,i+=1}return{line:i,column:n+1-e}}function rK(t){return rP(t.source,h1(t.source,t.start))}function rP(t,n){const e=t.locationOffset.column-1,i="".padStart(e)+t.body,s=n.line-1,o=n.line+(t.locationOffset.line-1),l=n.column+(1===n.line?e:0),c=`${t.name}:${o}:${l}\n`,d=i.split(/\r\n|[\n\r]/g),u=d[s];if(u.length>120){const f=Math.floor(l/80),_=l%80,T=[];for(let k=0;k["|",k]),["|","^".padStart(_)],["|",T[f+1]]])}return c+oP([[o-1+" |",d[s-1]],[`${o} |`,u],["|","^".padStart(l)],[`${o+1} |`,d[s+1]]])}function oP(t){const n=t.filter(([i,s])=>void 0!==s),e=Math.max(...n.map(([i])=>i.length));return n.map(([i,s])=>i.padStart(e)+(s?" "+s:"")).join("\n")}class f1 extends Error{constructor(n,...e){var i,s,r;const{nodes:o,source:a,positions:l,path:c,originalError:d,extensions:u}=function(t){const n=t[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:n}(e);super(n),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=aP(Array.isArray(o)?o:o?[o]:void 0);const f=aP(null===(i=this.nodes)||void 0===i?void 0:i.map(T=>T.loc).filter(T=>null!=T));this.source=null!=a?a:null==f||null===(s=f[0])||void 0===s?void 0:s.source,this.positions=null!=l?l:null==f?void 0:f.map(T=>T.start),this.locations=l&&a?l.map(T=>h1(a,T)):null==f?void 0:f.map(T=>h1(T.source,T.start));const _=function(t){return"object"==typeof t&&null!==t}(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(r=null!=u?u:_)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,f1):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(n+="\n\n"+rK(e.loc));else if(this.source&&this.locations)for(const e of this.locations)n+="\n\n"+rP(this.source,e);return n}toJSON(){const n={message:this.message};return null!=this.locations&&(n.locations=this.locations),null!=this.path&&(n.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(n.extensions=this.extensions),n}}function aP(t){return void 0===t||0===t.length?void 0:t}function cs(t,n,e){return new f1(`Syntax Error: ${e}`,{source:t,positions:[n]})}class aK{constructor(n,e,i){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class lP{constructor(n,e,i,s,r,o){this.kind=n,this.start=e,this.end=i,this.line=s,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const cP={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},lK=new Set(Object.keys(cP));function dP(t){const n=null==t?void 0:t.kind;return"string"==typeof n&&lK.has(n)}var Al=(()=>(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(Al||(Al={})),Al))(),$g=(()=>(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}($g||($g={})),$g))(),Kt=(()=>(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Kt||(Kt={})),Kt))();function p1(t){return 9===t||32===t}function Eh(t){return t>=48&&t<=57}function uP(t){return t>=97&&t<=122||t>=65&&t<=90}function hP(t){return uP(t)||95===t}function cK(t){return uP(t)||Eh(t)||95===t}function dK(t){var n;let e=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let o=0;o0===a?o:o.slice(e)).slice(null!==(n=i)&&void 0!==n?n:0,s+1)}function uK(t){let n=0;for(;n(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(at||(at={})),at))();class fK{constructor(n){const e=new lP(at.SOF,0,0,0,0);this.source=n,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let n=this.token;if(n.kind!==at.EOF)do{if(n.next)n=n.next;else{const e=gK(this,n.end);n.next=e,e.prev=n,n=e}}while(n.kind===at.COMMENT);return n}}function _d(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Ug(t,n){return fP(t.charCodeAt(n))&&pP(t.charCodeAt(n+1))}function fP(t){return t>=55296&&t<=56319}function pP(t){return t>=56320&&t<=57343}function kl(t,n){const e=t.source.body.codePointAt(n);if(void 0===e)return at.EOF;if(e>=32&&e<=126){const i=String.fromCodePoint(e);return'"'===i?"'\"'":`"${i}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Ui(t,n,e,i,s){return new lP(n,e,i,t.line,1+e-t.lineStart,s)}function gK(t,n){const e=t.source.body,i=e.length;let s=n;for(;s=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function xK(t,n){const e=t.source.body;switch(e.charCodeAt(n+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw cs(t.source,n,`Invalid character escape sequence: "${e.slice(n,n+2)}".`)}function wK(t,n){const e=t.source.body,i=e.length;let s=t.lineStart,r=n+3,o=r,a="";const l=[];for(;r2)return"[Array]";const e=Math.min(10,t.length),i=t.length-e,s=[];for(let r=0;r1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(t,e);return function(t,n){const e=Object.entries(t);return 0===e.length?"{}":n.length>2?"["+function(t){const n=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return n}(t)+"]":"{ "+e.map(([s,r])=>s+": "+Yg(r,n)).join(", ")+" }"}(t,e)}(t,n);default:return String(t)}}const kK=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(n,e){return n instanceof e}:function(n,e){if(n instanceof e)return!0;if("object"==typeof n&&null!==n){var i;const s=e.prototype[Symbol.toStringTag];if(s===(Symbol.toStringTag in n?n[Symbol.toStringTag]:null===(i=n.constructor)||void 0===i?void 0:i.name)){const o=m1(n);throw new Error(`Cannot use ${s} "${o}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class _1{constructor(n,e="GraphQL request",i={line:1,column:1}){"string"==typeof n||Wg(!1,`Body must be a string. Received: ${m1(n)}.`),this.body=n,this.name=e,this.locationOffset=i,this.locationOffset.line>0||Wg(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Wg(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class qg{constructor(n,e={}){const i=function(t){return kK(t,_1)}(n)?n:new _1(n);this._lexer=new fK(i),this._options=e,this._tokenCounter=0}parseName(){const n=this.expectToken(at.NAME);return this.node(n,{kind:Kt.NAME,value:n.value})}parseDocument(){return this.node(this._lexer.token,{kind:Kt.DOCUMENT,definitions:this.many(at.SOF,this.parseDefinition,at.EOF)})}parseDefinition(){if(this.peek(at.BRACE_L))return this.parseOperationDefinition();const n=this.peekDescription(),e=n?this._lexer.lookahead():this._lexer.token;if(e.kind===at.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(n)throw cs(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const n=this._lexer.token;if(this.peek(at.BRACE_L))return this.node(n,{kind:Kt.OPERATION_DEFINITION,operation:Al.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let i;return this.peek(at.NAME)&&(i=this.parseName()),this.node(n,{kind:Kt.OPERATION_DEFINITION,operation:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const n=this.expectToken(at.NAME);switch(n.value){case"query":return Al.QUERY;case"mutation":return Al.MUTATION;case"subscription":return Al.SUBSCRIPTION}throw this.unexpected(n)}parseVariableDefinitions(){return this.optionalMany(at.PAREN_L,this.parseVariableDefinition,at.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Kt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(at.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(at.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const n=this._lexer.token;return this.expectToken(at.DOLLAR),this.node(n,{kind:Kt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Kt.SELECTION_SET,selections:this.many(at.BRACE_L,this.parseSelection,at.BRACE_R)})}parseSelection(){return this.peek(at.SPREAD)?this.parseFragment():this.parseField()}parseField(){const n=this._lexer.token,e=this.parseName();let i,s;return this.expectOptionalToken(at.COLON)?(i=e,s=this.parseName()):s=e,this.node(n,{kind:Kt.FIELD,alias:i,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(at.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(n){return this.optionalMany(at.PAREN_L,n?this.parseConstArgument:this.parseArgument,at.PAREN_R)}parseArgument(n=!1){const e=this._lexer.token,i=this.parseName();return this.expectToken(at.COLON),this.node(e,{kind:Kt.ARGUMENT,name:i,value:this.parseValueLiteral(n)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const n=this._lexer.token;this.expectToken(at.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(at.NAME)?this.node(n,{kind:Kt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(n,{kind:Kt.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const n=this._lexer.token;return this.expectKeyword("fragment"),this.node(n,!0===this._options.allowLegacyFragmentVariables?{kind:Kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(n){const e=this._lexer.token;switch(e.kind){case at.BRACKET_L:return this.parseList(n);case at.BRACE_L:return this.parseObject(n);case at.INT:return this.advanceLexer(),this.node(e,{kind:Kt.INT,value:e.value});case at.FLOAT:return this.advanceLexer(),this.node(e,{kind:Kt.FLOAT,value:e.value});case at.STRING:case at.BLOCK_STRING:return this.parseStringLiteral();case at.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:Kt.BOOLEAN,value:!0});case"false":return this.node(e,{kind:Kt.BOOLEAN,value:!1});case"null":return this.node(e,{kind:Kt.NULL});default:return this.node(e,{kind:Kt.ENUM,value:e.value})}case at.DOLLAR:if(n){if(this.expectToken(at.DOLLAR),this._lexer.token.kind===at.NAME)throw cs(this._lexer.source,e.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const n=this._lexer.token;return this.advanceLexer(),this.node(n,{kind:Kt.STRING,value:n.value,block:n.kind===at.BLOCK_STRING})}parseList(n){return this.node(this._lexer.token,{kind:Kt.LIST,values:this.any(at.BRACKET_L,()=>this.parseValueLiteral(n),at.BRACKET_R)})}parseObject(n){return this.node(this._lexer.token,{kind:Kt.OBJECT,fields:this.any(at.BRACE_L,()=>this.parseObjectField(n),at.BRACE_R)})}parseObjectField(n){const e=this._lexer.token,i=this.parseName();return this.expectToken(at.COLON),this.node(e,{kind:Kt.OBJECT_FIELD,name:i,value:this.parseValueLiteral(n)})}parseDirectives(n){const e=[];for(;this.peek(at.AT);)e.push(this.parseDirective(n));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(n){const e=this._lexer.token;return this.expectToken(at.AT),this.node(e,{kind:Kt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n)})}parseTypeReference(){const n=this._lexer.token;let e;if(this.expectOptionalToken(at.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(at.BRACKET_R),e=this.node(n,{kind:Kt.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(at.BANG)?this.node(n,{kind:Kt.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:Kt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(at.STRING)||this.peek(at.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),s=this.many(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);return this.node(n,{kind:Kt.SCHEMA_DEFINITION,description:e,directives:i,operationTypes:s})}parseOperationTypeDefinition(){const n=this._lexer.token,e=this.parseOperationType();this.expectToken(at.COLON);const i=this.parseNamedType();return this.node(n,{kind:Kt.OPERATION_TYPE_DEFINITION,operation:e,type:i})}parseScalarTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),s=this.parseConstDirectives();return this.node(n,{kind:Kt.SCALAR_TYPE_DEFINITION,description:e,name:i,directives:s})}parseObjectTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(n,{kind:Kt.OBJECT_TYPE_DEFINITION,description:e,name:i,interfaces:s,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(at.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(at.BRACE_L,this.parseFieldDefinition,at.BRACE_R)}parseFieldDefinition(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseName(),s=this.parseArgumentDefs();this.expectToken(at.COLON);const r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(n,{kind:Kt.FIELD_DEFINITION,description:e,name:i,arguments:s,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(at.PAREN_L,this.parseInputValueDef,at.PAREN_R)}parseInputValueDef(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseName();this.expectToken(at.COLON);const s=this.parseTypeReference();let r;this.expectOptionalToken(at.EQUALS)&&(r=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(n,{kind:Kt.INPUT_VALUE_DEFINITION,description:e,name:i,type:s,defaultValue:r,directives:o})}parseInterfaceTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(n,{kind:Kt.INTERFACE_TYPE_DEFINITION,description:e,name:i,interfaces:s,directives:r,fields:o})}parseUnionTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(n,{kind:Kt.UNION_TYPE_DEFINITION,description:e,name:i,directives:s,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(at.EQUALS)?this.delimitedMany(at.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(n,{kind:Kt.ENUM_TYPE_DEFINITION,description:e,name:i,directives:s,values:r})}parseEnumValuesDefinition(){return this.optionalMany(at.BRACE_L,this.parseEnumValueDefinition,at.BRACE_R)}parseEnumValueDefinition(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseEnumValueName(),s=this.parseConstDirectives();return this.node(n,{kind:Kt.ENUM_VALUE_DEFINITION,description:e,name:i,directives:s})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw cs(this._lexer.source,this._lexer.token.start,`${Xg(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(n,{kind:Kt.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:i,directives:s,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(at.BRACE_L,this.parseInputValueDef,at.BRACE_R)}parseTypeSystemExtension(){const n=this._lexer.lookahead();if(n.kind===at.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)}parseSchemaExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),i=this.optionalMany(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);if(0===e.length&&0===i.length)throw this.unexpected();return this.node(n,{kind:Kt.SCHEMA_EXTENSION,directives:e,operationTypes:i})}parseScalarTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(n,{kind:Kt.SCALAR_TYPE_EXTENSION,name:e,directives:i})}parseObjectTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===s.length&&0===r.length)throw this.unexpected();return this.node(n,{kind:Kt.OBJECT_TYPE_EXTENSION,name:e,interfaces:i,directives:s,fields:r})}parseInterfaceTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===s.length&&0===r.length)throw this.unexpected();return this.node(n,{kind:Kt.INTERFACE_TYPE_EXTENSION,name:e,interfaces:i,directives:s,fields:r})}parseUnionTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.UNION_TYPE_EXTENSION,name:e,directives:i,types:s})}parseEnumTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.ENUM_TYPE_EXTENSION,name:e,directives:i,values:s})}parseInputObjectTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:i,fields:s})}parseDirectiveDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(at.AT);const i=this.parseName(),s=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(n,{kind:Kt.DIRECTIVE_DEFINITION,description:e,name:i,arguments:s,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(at.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const n=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call($g,e.value))return e;throw this.unexpected(n)}node(n,e){return!0!==this._options.noLocation&&(e.loc=new aK(n,this._lexer.lastToken,this._lexer.source)),e}peek(n){return this._lexer.token.kind===n}expectToken(n){const e=this._lexer.token;if(e.kind===n)return this.advanceLexer(),e;throw cs(this._lexer.source,e.start,`Expected ${_P(n)}, found ${Xg(e)}.`)}expectOptionalToken(n){return this._lexer.token.kind===n&&(this.advanceLexer(),!0)}expectKeyword(n){const e=this._lexer.token;if(e.kind!==at.NAME||e.value!==n)throw cs(this._lexer.source,e.start,`Expected "${n}", found ${Xg(e)}.`);this.advanceLexer()}expectOptionalKeyword(n){const e=this._lexer.token;return e.kind===at.NAME&&e.value===n&&(this.advanceLexer(),!0)}unexpected(n){const e=null!=n?n:this._lexer.token;return cs(this._lexer.source,e.start,`Unexpected ${Xg(e)}.`)}any(n,e,i){this.expectToken(n);const s=[];for(;!this.expectOptionalToken(i);)s.push(e.call(this));return s}optionalMany(n,e,i){if(this.expectOptionalToken(n)){const s=[];do{s.push(e.call(this))}while(!this.expectOptionalToken(i));return s}return[]}many(n,e,i){this.expectToken(n);const s=[];do{s.push(e.call(this))}while(!this.expectOptionalToken(i));return s}delimitedMany(n,e){this.expectOptionalToken(n);const i=[];do{i.push(e.call(this))}while(this.expectOptionalToken(n));return i}advanceLexer(){const{maxTokens:n}=this._options,e=this._lexer.advance();if(void 0!==n&&e.kind!==at.EOF&&(++this._tokenCounter,this._tokenCounter>n))throw cs(this._lexer.source,e.start,`Document contains more that ${n} tokens. Parsing aborted.`)}}function Xg(t){const n=t.value;return _P(t.kind)+(null!=n?` "${n}"`:"")}function _P(t){return function(t){return t===at.BANG||t===at.DOLLAR||t===at.AMP||t===at.PAREN_L||t===at.PAREN_R||t===at.SPREAD||t===at.COLON||t===at.EQUALS||t===at.AT||t===at.BRACKET_L||t===at.BRACKET_R||t===at.BRACE_L||t===at.PIPE||t===at.BRACE_R}(t)?`"${t}"`:t}var Qg=new Map,y1=new Map,yP=!0,Kg=!1;function vP(t){return t.replace(/[\s,]+/g," ").trim()}function FK(t){var n=vP(t);if(!Qg.has(n)){var e=function(t,n){return new qg(t,n).parseDocument()}(t,{experimentalFragmentVariables:Kg,allowLegacyFragmentVariables:Kg});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");Qg.set(n,function(t){var n=new Set(t.definitions);n.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(s){var r=i[s];r&&"object"==typeof r&&n.add(r)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}(function(t){var n=new Set,e=[];return t.definitions.forEach(function(i){if("FragmentDefinition"===i.kind){var s=i.name.value,r=function(t){return vP(t.source.body.substring(t.start,t.end))}(i.loc),o=y1.get(s);o&&!o.has(r)?yP&&console.warn("Warning: fragment with name "+s+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||y1.set(s,o=new Set),o.add(r),n.has(r)||(n.add(r),e.push(i))}else e.push(i)}),et(et({},t),{definitions:e})}(e)))}return Qg.get(n)}function yd(t){for(var n=[],e=1;eAn in Hn?M1e(Hn,An,{enumerable:!0,configurable:!0,writable:!0,value:In}):Hn[An]=In,ca=(Hn,An)=>{for(var In in An||(An={}))E1e.call(An,In)&&Q5(Hn,In,An[In]);if(X5)for(var In of X5(An))T1e.call(An,In)&&Q5(Hn,In,An[In]);return Hn},IM=(Hn,An)=>D1e(Hn,S1e(An));(self.webpackChunkpersonal=self.webpackChunkpersonal||[]).push([[179],{255:Hn=>{function An(In){return Promise.resolve().then(()=>{var Di=new Error("Cannot find module '"+In+"'");throw Di.code="MODULE_NOT_FOUND",Di})}An.keys=()=>[],An.resolve=An,An.id=255,Hn.exports=An},527:Hn=>{!function(An){"use strict";Hn.exports?Hn.exports=An:An(Highcharts)}(function(An){var In=An.relativeLength;An.wrap(An.seriesTypes.column.prototype,"translate",function(Di){var Kn=this.options,Oe=Kn.topMargin||0,be=Kn.bottomMargin||0;Di.call(this),An.each(this.points,function(oe){var le=oe.shapeArgs,ve=le.width,xe=le.height,me=le.x,fe=le.y,Ae=In(Kn.borderRadiusTopLeft||0,ve),ce=In(Kn.borderRadiusTopRight||0,ve),ye=In(Kn.borderRadiusBottomRight||0,ve),se=In(Kn.borderRadiusBottomLeft||0,ve);if(Ae||ce||ye||se){var W=Math.min(ve,xe)/2;Ae>W&&(Ae=W),ce>W&&(ce=W),ye>W&&(ye=W),se>W&&(se=W),oe.dlBox=oe.shapeArgs,oe.shapeType="path",oe.shapeArgs={d:["M",me+Ae,fe+Oe,"L",me+ve-ce,fe+Oe,"C",me+ve-ce/2,fe,me+ve,fe+ce/2,me+ve,fe+ce,"L",me+ve,fe+xe-ye,"C",me+ve,fe+xe-ye/2,me+ve-ye/2,fe+xe,me+ve-ye,fe+xe+be,"L",me+se,fe+xe+be,"C",me+se/2,fe+xe,me,fe+xe-se/2,me,fe+xe-se,"L",me,fe+Ae,"C",me,fe+Ae/2,me+Ae/2,fe,me+Ae,fe,"Z"]}}})})})},424:(Hn,An,In)=>{"use strict";var Di,Kn,Oe;Oe=function(Oe){function be(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}be(Oe=Oe?Oe._modules:{},"Extensions/Pane.js",[Oe["Core/Chart/Chart.js"],Oe["Series/CenteredUtilities.js"],Oe["Core/Globals.js"],Oe["Core/Pointer.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me){function fe(x,y,A,S,N){let F=!0;const G=A[0],b=A[1],w=Math.sqrt(Math.pow(x-G,2)+Math.pow(y-b,2));return ye(S)&&ye(N)&&(x=Math.atan2(ce(y-b,8),ce(x-G,8)),N!==S&&(F=S>N?x>=S&&x<=Math.PI||x<=N&&x>=-Math.PI:x>=S&&x<=ce(N,8))),w<=Math.ceil(A[2]/2)&&F}const{addEvent:Ae,correctFloat:ce,defined:ye,extend:se,merge:W,pick:U,splat:Q}=me;return oe.prototype.collectionsWithUpdate.push("pane"),oe.prototype.getHoverPane=function(x){const y=this;let A;return x&&y.pane.forEach(S=>{fe(x.chartX-y.plotLeft,x.chartY-y.plotTop,S.center)&&(A=S)}),A},Ae(oe,"afterIsInsidePlot",function(x){this.polar&&(x.options.inverted&&([x.x,x.y]=[x.y,x.x]),x.isInsidePlot=this.pane.some(y=>fe(x.x,x.y,y.center,y.axis&&y.axis.normalizedStartAngleRad,y.axis&&y.axis.normalizedEndAngleRad)))}),Ae(xe,"beforeGetHoverData",function(x){const y=this.chart;y.polar?(y.hoverPane=y.getHoverPane(x),x.filter=function(A){return A.visible&&!(!x.shared&&A.directTouch)&&U(A.options.enableMouseTracking,!0)&&(!y.hoverPane||A.xAxis.pane===y.hoverPane)}):y.hoverPane=void 0}),Ae(xe,"afterGetHoverData",function(x){const y=this.chart;x.hoverPoint&&x.hoverPoint.plotX&&x.hoverPoint.plotY&&y.hoverPane&&!fe(x.hoverPoint.plotX,x.hoverPoint.plotY,y.hoverPane.center)&&(x.hoverPoint=void 0)}),ve.Pane=class{constructor(y,A){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(y,A)}init(y,A){this.chart=A,this.background=[],A.pane.push(this),this.setOptions(y)}setOptions(y){this.options=W(this.defaultOptions,this.chart.angular?{background:{}}:void 0,y)}render(){var y=this.options;let A=this.options.background;var S=this.chart.renderer;if(this.group||(this.group=S.g("pane-group").attr({zIndex:y.zIndex||0}).add()),this.updateCenter(),A)for(A=Q(A),y=Math.max(A.length,this.background.length||0),S=0;Sh,w.y=w.high,w._plotY=w.plotY,w.plotY=g,N[b]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=E,G?O.align||(O.align=E?"right":"left"):O.verticalAlign||(O.verticalAlign=E?"top":"bottom")}for(this.options.dataLabels=O,fe.drawDataLabels&&fe.drawDataLabels.apply(this,arguments),b=S;b--;)(w=A[b])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=N[b],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(R.enabled||this._hasPointLabels){for(b=S;b--;)if(w=A[b]){const{plotHigh:g=0,plotLow:h=0}=w;E=R.inside?gh,w.below=!E,G?R.align||(R.align=E?"left":"right"):R.verticalAlign||(R.verticalAlign=E?"bottom":"top")}this.options.dataLabels=R,fe.drawDataLabels&&fe.drawDataLabels.apply(this,arguments)}if(O.enabled)for(b=S;b--;)(w=A[b])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(g){return!!g}));this.options.dataLabels=F}}alignDataLabel(){Ae.alignDataLabel.apply(this,arguments)}drawPoints(){const A=this.points.length;let S,N;for(fe.drawPoints.apply(this,arguments),S=0;S\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),ce(x,"afterTranslate",function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(y=>{const A=y.high,S=y.plotY;y.isNull?y.plotY=void 0:(y.plotLow=S,y.plotHigh=U(A)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(A):A,!1,!0,void 0,!0):void 0,this.dataModify&&(y.yBottom=y.plotHigh))})},{order:0}),ce(x,"afterTranslate",function(){this.points.forEach(y=>{if(this.chart.polar)this.highToXY(y),y.plotLow=y.plotY,y.tooltipPos=[((y.plotHighX||0)+(y.plotLowX||0))/2,((y.plotHigh||0)+(y.plotLow||0))/2];else{const A=y.pos(!1,y.plotLow),S=y.pos(!1,y.plotHigh);A&&S&&(A[0]=(A[0]+S[0])/2,A[1]=(A[1]+S[1])/2),y.tooltipPos=A}})},{order:3}),se(x.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:oe,pointValKey:"low",setStackedPoints:le}),ve.registerSeriesType("arearange",x),x}),be(Oe,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[Oe["Series/AreaRange/AreaRangeSeries.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){const{spline:{prototype:xe}}=le.seriesTypes,{merge:me,extend:fe}=ve;class Ae extends oe{constructor(){super(...arguments),this.points=this.data=this.options=void 0}}return Ae.defaultOptions=me(oe.defaultOptions),fe(Ae.prototype,{getPointSpline:xe.getPointSpline}),le.registerSeriesType("areasplinerange",Ae),Ae}),be(Oe,"Series/BoxPlot/BoxPlotSeries.js",[Oe["Series/Column/ColumnSeries.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{extend:me,merge:fe,pick:Ae}=xe;class ce extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}pointAttribs(){return{}}translate(){const se=this.yAxis,W=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(U){W.forEach(function(Q){null!==U[Q]&&(U[Q+"Plot"]=se.translate(U[Q],0,1,0,1))}),U.plotHigh=U.highPlot})}drawPoints(){let te,x,y,A,S,N,G,b,w,E,R,se=this,W=se.options,U=se.chart,Q=U.renderer,F=0,O=!1!==se.doQuartiles,g=se.options.whiskerLength;se.points.forEach(function(h){var p=h.graphic;let v=p?"animate":"attr",P=h.shapeArgs,V={},D={},Y={},de={},Ce=h.color||se.color;void 0!==h.plotY&&(G=Math.round(P.width),b=Math.floor(P.x),w=b+G,E=Math.round(G/2),te=Math.floor(O?h.q1Plot:h.lowPlot),x=Math.floor(O?h.q3Plot:h.lowPlot),y=Math.floor(h.highPlot),A=Math.floor(h.lowPlot),p||(h.graphic=p=Q.g("point").add(se.group),h.stem=Q.path().addClass("highcharts-boxplot-stem").add(p),g&&(h.whiskers=Q.path().addClass("highcharts-boxplot-whisker").add(p)),O&&(h.box=Q.path(void 0).addClass("highcharts-boxplot-box").add(p)),h.medianShape=Q.path(void 0).addClass("highcharts-boxplot-median").add(p)),U.styledMode||(D.stroke=h.stemColor||W.stemColor||Ce,D["stroke-width"]=Ae(h.stemWidth,W.stemWidth,W.lineWidth),D.dashstyle=h.stemDashStyle||W.stemDashStyle||W.dashStyle,h.stem.attr(D),g&&(Y.stroke=h.whiskerColor||W.whiskerColor||Ce,Y["stroke-width"]=Ae(h.whiskerWidth,W.whiskerWidth,W.lineWidth),Y.dashstyle=h.whiskerDashStyle||W.whiskerDashStyle||W.dashStyle,h.whiskers.attr(Y)),O&&(V.fill=h.fillColor||W.fillColor||Ce,V.stroke=W.lineColor||Ce,V["stroke-width"]=W.lineWidth||0,V.dashstyle=h.boxDashStyle||W.boxDashStyle||W.dashStyle,h.box.attr(V)),de.stroke=h.medianColor||W.medianColor||Ce,de["stroke-width"]=Ae(h.medianWidth,W.medianWidth,W.lineWidth),de.dashstyle=h.medianDashStyle||W.medianDashStyle||W.dashStyle,h.medianShape.attr(de)),N=h.stem.strokeWidth()%2/2,F=b+E+N,h.stem[v]({d:p=[["M",F,x],["L",F,y],["M",F,te],["L",F,A]]}),O&&(N=h.box.strokeWidth()%2/2,te=Math.floor(te)+N,x=Math.floor(x)+N,b+=N,w+=N,h.box[v]({d:p=[["M",b,x],["L",b,te],["L",w,te],["L",w,x],["L",b,x],["Z"]]})),g&&(N=h.whiskers.strokeWidth()%2/2,y+=N,A+=N,R=/%$/.test(g)?E*parseFloat(g)/100:g/2,h.whiskers[v]({d:p=[["M",F-R,y],["L",F+R,y],["M",F-R,A],["L",F+R,A]]})),S=Math.round(h.medianPlot),N=h.medianShape.strokeWidth()%2/2,S+=N,h.medianShape[v]({d:p=[["M",b,S],["L",w,S]]}))})}toYData(se){return[se.low,se.q1,se.median,se.q3,se.high]}}return ce.defaultOptions=fe(oe.defaultOptions,{threshold:null,tooltip:{pointFormat:'\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),me(ce.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:le,setStackedPoints:le}),ve.registerSeriesType("boxplot",ce),ce}),be(Oe,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),be(Oe,"Series/Bubble/BubbleLegendItem.js",[Oe["Core/Color/Color.js"],Oe["Core/Templating.js"],Oe["Core/Globals.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){const{parse:me}=oe,{noop:fe}=ve,{arrayMax:Ae,arrayMin:ce,isNumber:ye,merge:se,pick:W,stableSort:U}=xe;return class{constructor(x,y){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.chart=void 0,this.setState=fe,this.init(x,y)}init(x,y){this.options=x,this.visible=!0,this.chart=y.chart,this.legend=y}addToLegend(x){x.splice(this.options.legendIndex,0,this)}drawLegendSymbol(x){const y=W(x.options.itemDistance,20),A=this.legendItem||{},S=this.options;var N=S.ranges,F=S.connectorDistance;if(N&&N.length&&ye(N[0].value)){U(N,function(b,w){return w.value-b.value}),this.ranges=N,this.setOptions(),this.render(),x=this.getMaxLabelSize();var G=this.ranges[0].radius;N=2*G,F=0<(F=F-G+x.width)?F:0,this.maxLabel=x,this.movementX="left"===S.labels.align?F:0,A.labelWidth=N+F+y,A.labelHeight=N+x.height/2}else x.options.bubbleLegend.autoRanges=!0}setOptions(){const x=this.ranges,y=this.options,A=this.chart.series[y.seriesIndex],S=this.legend.baseline,N={zIndex:y.zIndex,"stroke-width":y.borderWidth},F={zIndex:y.zIndex,"stroke-width":y.connectorWidth},G={align:this.legend.options.rtl||"left"===y.labels.align?"right":"left",zIndex:y.zIndex},b=A.options.marker.fillOpacity,w=this.chart.styledMode;x.forEach(function(E,O){w||(N.stroke=W(E.borderColor,y.borderColor,A.color),N.fill=W(E.color,y.color,1!==b?me(A.color).setOpacity(b).get("rgba"):A.color),F.stroke=W(E.connectorColor,y.connectorColor,A.color)),x[O].radius=this.getRangeRadius(E.value),x[O]=se(x[O],{center:x[0].radius-x[O].radius+S}),w||se(!0,x[O],{bubbleAttribs:se(N),connectorAttribs:se(F),labelAttribs:G})},this)}getRangeRadius(x){const y=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,y.ranges[y.ranges.length-1].value,y.ranges[0].value,y.minSize,y.maxSize,x)}render(){const x=this.legendItem||{},y=this.chart.renderer,A=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),x.symbol=y.g("bubble-legend"),x.label=y.g("bubble-legend-item").css(this.legend.itemStyle||{}),x.symbol.translateX=0,x.symbol.translateY=0,x.symbol.add(x.label),x.label.add(x.group);for(const S of this.ranges)S.value>=A&&this.renderRange(S);this.hideOverlappingLabels()}renderRange(x){var y=this.options;const A=y.labels;var S=this.chart;const N=S.series[y.seriesIndex],F=S.renderer,G=this.symbols;S=G.labels;const b=x.center,w=Math.abs(x.radius);var E=y.connectorDistance||0;const O=A.align,R=y.connectorWidth,g=this.ranges[0].radius||0,h=b-w-y.borderWidth/2+R/2,p=F.styledMode;E=this.legend.options.rtl||"left"===O?-E:E,"center"===O&&(E=0,y.connectorDistance=0,x.labelAttribs.align="center"),G.bubbleItems.push(F.circle(g,b+((h%1?1:.5)-(R%2?0:.5)),w).attr(p?{}:x.bubbleAttribs).addClass((p?"highcharts-color-"+N.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(y.className||"")).add(this.legendItem.symbol)),G.connectors.push(F.path(F.crispLine([["M",g,h],["L",g+E,h]],y.connectorWidth)).attr(p?{}:x.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(y.connectorClassName||"")).add(this.legendItem.symbol)),x=F.text(this.formatLabel(x)).attr(p?{}:x.labelAttribs).css(p?{}:A.style).addClass("highcharts-bubble-legend-labels "+(y.labels.className||"")).add(this.legendItem.symbol),y={x:g+E+y.labels.x,y:h+y.labels.y+.4*x.getBBox().height},x.attr(y),S.push(x),x.placed=!0,x.alignAttr=y}getMaxLabelSize(){let x,y;return this.symbols.labels.forEach(function(A){y=A.getBBox(!0),x=x?y.width>x.width?y:x:y}),x||{}}formatLabel(x){var y=this.options;const A=y.labels.formatter;y=y.labels.format;const{numberFormatter:S}=this.chart;return y?le.format(y,x):A?A.call(x):S(x.value,1)}hideOverlappingLabels(){const y=this.symbols;!this.options.labels.allowOverlap&&y&&(this.chart.hideOverlappingLabels(y.labels),y.labels.forEach(function(A,S){A.newOpacity?A.newOpacity!==A.oldOpacity&&y.connectors[S].show():y.connectors[S].hide()}))}getRanges(){const x=this.legend.bubbleLegend,y=x.options.ranges;let A,S,N=Number.MAX_VALUE,F=-Number.MAX_VALUE;return x.chart.series.forEach(function(G){G.isBubble&&!G.ignoreSeries&&(S=G.zData.filter(ye),S.length&&(N=W(G.options.zMin,Math.min(N,Math.max(ce(S),!1===G.options.displayNegative?G.options.zThreshold:-Number.MAX_VALUE))),F=W(G.options.zMax,Math.max(F,Ae(S)))))}),A=N===F?[{value:F}]:[{value:N},{value:(N+F)/2},{value:F,autoRanges:!0}],y.length&&y[0].radius&&A.reverse(),A.forEach(function(G,b){y&&y[b]&&(A[b]=se(y[b],G))}),A}predictBubbleSizes(){var x=this.chart,y=x.legend.options,A=y.floating;const S=(y="horizontal"===y.layout)?x.legend.lastLineHeight:0,N=x.plotSizeX,F=x.plotSizeY;var G=x.series[this.options.seriesIndex],b=G.getPxExtremes();x=Math.ceil(b.minPxSize),b=Math.ceil(b.maxPxSize);const w=Math.min(F,N);return G=G.options.maxSize,A||!/%$/.test(G)?A=b:(A=(w+S)*(G=parseFloat(G))/100/(G/100+1),(y&&F-A>=N||!y&&N-A>=F)&&(A=b)),[x,Math.ceil(A)]}updateRanges(x,y){const A=this.legend.options.bubbleLegend;A.minSize=x,A.maxSize=y,A.ranges=this.getRanges()}correctSizes(){const x=this.legend,y=this.chart.series[this.options.seriesIndex].getPxExtremes();1{b=w.legendItem||{},b.group&&(b.group.translateY=null)})),N.render(),this.getMargins(),this.axes.forEach(function(w){w.visible&&w.render(),G.placed||(w.setScale(),w.updateNames(),Q(w.ticks,function(E){E.isNew=!0,E.isNewLabel=!0}))}),G.placed=!0,this.getMargins(),y.call(this,A,S),N.bubbleLegend.correctSizes(),se(N,Ae(N))):(y.call(this,A,S),N&&N.options.enabled&&N.bubbleLegend&&(N.render(),se(N,Ae(N))))}function fe(y){y=y.series;let A=0;for(;Ab.height&&(b.height=y[G].itemHeight);b.step=F}}return A}function ce(y){const A=this.bubbleLegend,S=this.options,N=S.bubbleLegend,F=fe(this.chart);A&&A.ranges&&A.ranges.length&&(N.ranges.length&&(N.autoRanges=!!N.ranges[0].autoRanges),this.destroyItem(A)),0<=F&&S.enabled&&N.enabled&&(N.seriesIndex=F,this.bubbleLegend=new le(N,this),this.bubbleLegend.addToLegend(y.allItems))}function ye(y){if(y.defaultPrevented)return!1;var A=this.chart;y=this.visible;const S=this.chart.legend;S&&S.bubbleLegend&&(this.visible=!y,this.ignoreSeries=y,A=0<=fe(A),S.bubbleLegend.visible!==A&&(S.update({bubbleLegend:{enabled:A}}),S.bubbleLegend.visible=A),this.visible=y)}function se(y,A){const S=y.options.rtl;let N,F,G,b,w=0;y.allItems.forEach((E,O)=>{b=E.legendItem||{},b.group&&(N=b.group.translateX||0,F=b.y||0,((G=E.movementX)||S&&E.ranges)&&(G=S?N-E.options.maxSize/2:N+G,b.group.attr({translateX:G})),O>A[w].step&&w++,b.group.attr({translateY:Math.round(F+A[w].height/2)}),b.y=F+A[w].height/2)})}const{setOptions:W}=ve,{addEvent:U,objectEach:Q,wrap:te}=xe,x=[];return{compose:function(y,A,S){xe.pushUnique(x,y)&&(W({legend:{bubbleLegend:oe}}),te(y.prototype,"drawChartBox",me)),xe.pushUnique(x,A)&&U(A,"afterGetAllItems",ce),xe.pushUnique(x,S)&&U(S,"legendItemClick",ye)}}}),be(Oe,"Series/Bubble/BubblePoint.js",[Oe["Core/Series/Point.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){({seriesTypes:{scatter:{prototype:{pointClass:le}}}}=le),({extend:ve}=ve);class xe extends le{constructor(){super(...arguments),this.series=this.options=void 0}haloPath(fe){return oe.prototype.haloPath.call(this,0===fe?0:(this.marker&&this.marker.radius||0)+fe)}}return ve(xe.prototype,{ttBelow:!1}),xe}),be(Oe,"Series/Bubble/BubbleSeries.js",[Oe["Series/Bubble/BubbleLegendComposition.js"],Oe["Series/Bubble/BubblePoint.js"],Oe["Core/Color/Color.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){function Ae(){const b=this.len,w=this.chart,E=this.isXAxis,O=E?"xData":"yData",R=this.min,g=this.max-R;let P,h=0,p=b,v=b/g;this.series.forEach(V=>{if(V.bubblePadding&&(V.visible||!w.options.chart.ignoreHiddenSeries)){P=this.allowZoomOutside=!0;const D=V[O];if(E&&((V.onPoint||V).getRadii(0,0,V),V.onPoint&&(V.radii=V.onPoint.radii)),0{void 0===N(this.options[V[0]],this[V[1]])&&(this[V[0]]+=V[2]/v)}))}const{parse:ce}=ve;({noop:ve}=xe);const{series:ye,seriesTypes:{column:{prototype:se},scatter:W}}=me,{addEvent:U,arrayMax:Q,arrayMin:te,clamp:x,extend:y,isNumber:A,merge:S,pick:N}=fe,F=[];class G extends W{constructor(){super(...arguments),this.zData=this.yData=this.radii=this.points=this.options=this.minPxSize=this.maxPxSize=this.data=void 0}static compose(w,E,O,R){oe.compose(E,O,R),fe.pushUnique(F,w)&&(w.prototype.beforePadding=Ae)}animate(w){!w&&this.points.length{de.bubblePadding&&(de.visible||!this.chart.options.chart.ignoreHiddenSeries)&&(de=(de.onPoint||de).getZExtremes())&&(V=Math.min(N(V,de.zMin),de.zMin),D=Math.max(N(D,de.zMax),de.zMax),Y=!0)}),Y?(p={zMin:V,zMax:D},this.chart.bubbleZExtremes=p):p={zMin:0,zMax:0}}for(g=0,R=w.length;g=R/2?(h.marker=y(h.marker,{radius:p,width:2*p,height:2*p}),h.dlBox={x:h.plotX-p,y:h.plotY-p,width:2*p,height:2*p}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}}getPxExtremes(){const w=Math.min(this.chart.plotWidth,this.chart.plotHeight);var E=R=>{let g;return"string"==typeof R&&(g=/%$/.test(R),R=parseInt(R,10)),g?w*R/100:R};const O=E(N(this.options.minSize,8));return{minPxSize:O,maxPxSize:E=Math.max(E(N(this.options.maxSize,"20%")),O)}}getZExtremes(){var w=this.options;const E=(this.zData||[]).filter(A);if(E.length){const O=N(w.zMin,x(te(E),!1===w.displayNegative?w.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(w=N(w.zMax,Q(E)),A(O)&&A(w))return{zMin:O,zMax:w}}}}return G.defaultOptions=S(W.defaultOptions,{dataLabels:{formatter:function(){const{numberFormatter:b}=this.series.chart,{z:w}=this.point;return A(w)?b(w,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),y(G.prototype,{alignDataLabel:se.alignDataLabel,applyZones:ve,bubblePadding:!0,buildKDTree:ve,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:le,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),U(G,"updatedData",b=>{delete b.target.chart.bubbleZExtremes}),U(G,"remove",b=>{delete b.target.chart.bubbleZExtremes}),me.registerSeriesType("bubble",G),G}),be(Oe,"Series/ColumnRange/ColumnRangePoint.js",[Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le){const{seriesTypes:{column:{prototype:{pointClass:{prototype:ve}}},arearange:{prototype:{pointClass:xe}}}}=oe,{extend:me,isNumber:fe}=le;class Ae extends xe{constructor(){super(...arguments),this.series=this.options=void 0}isValid(){return fe(this.low)}}return me(Ae.prototype,{setState:ve.setState}),Ae}),be(Oe,"Series/ColumnRange/ColumnRangeSeries.js",[Oe["Series/ColumnRange/ColumnRangePoint.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{seriesTypes:{arearange:me,column:fe,column:{prototype:Ae}}}=ve,{addEvent:ce,clamp:ye,extend:se,isNumber:W,merge:U,pick:Q}=xe;class te extends me{setOptions(){return U(!0,arguments[0],{stacking:void 0}),me.prototype.setOptions.apply(this,arguments)}translate(){return Ae.translate.apply(this)}pointAttribs(){return Ae.pointAttribs.apply(this,arguments)}translate3dPoints(){return Ae.translate3dPoints.apply(this,arguments)}translate3dShapes(){return Ae.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){const y=this.yAxis,A=this.xAxis,S=A.startAngleRad,N=this.chart,F=this.xAxis.isRadial,G=Math.max(N.chartWidth,N.chartHeight)+999;let b,w,E,O;this.points.forEach(R=>{const g=R.shapeArgs||{},h=this.options.minPointLength,p=R.plotY,v=y.translate(R.high,0,1,0,1);if(W(v)&&W(p))if(R.plotHigh=ye(v,-G,G),R.plotLow=ye(p,-G,G),O=R.plotHigh,b=Q(R.rectPlotY,R.plotY)-R.plotHigh,Math.abs(b)b&&(b*=-1,O-=b),F&&this.polar)E=R.barX+S,R.shapeType="arc",R.shapeArgs=this.polar.arc(O+b,O,E,E+R.pointWidth);else{g.height=b,g.y=O;const{x:P=0,width:V=0}=g;R.shapeArgs=U(R.shapeArgs,this.crispCol(P,O,V,b)),R.tooltipPos=N.inverted?[y.len+y.pos-N.plotLeft-O-b/2,A.len+A.pos-N.plotTop-P-V/2,b]:[A.left-N.plotLeft+P+V/2,y.pos-N.plotTop+O+b/2,b]}})}}return te.defaultOptions=U(fe.defaultOptions,me.defaultOptions,{borderRadius:{where:"all"},pointRange:null,marker:null,states:{hover:{halo:!1}}}),ce(te,"afterColumnTranslate",function(){te.prototype.afterColumnTranslate.apply(this)},{order:5}),se(te.prototype,{directTouch:!0,pointClass:oe,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:Ae.adjustForMissingColumns,animate:Ae.animate,crispCol:Ae.crispCol,drawGraph:le,drawPoints:Ae.drawPoints,getSymbol:le,drawTracker:Ae.drawTracker,getColumnMetrics:Ae.getColumnMetrics}),ve.registerSeriesType("columnrange",te),te}),be(Oe,"Series/ColumnPyramid/ColumnPyramidSeries.js",[Oe["Series/Column/ColumnSeries.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){const{prototype:xe}=oe,{clamp:me,merge:fe,pick:Ae}=ve;class ce extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}translate(){let se=this,W=se.chart,U=se.options;var Q=se.dense=2>se.closestPointRange*se.xAxis.transA;Q=se.borderWidth=Ae(U.borderWidth,Q?0:1);let te=se.yAxis,x=U.threshold,y=se.translatedThreshold=te.getThreshold(x),A=Ae(U.minPointLength,5),S=se.getColumnMetrics(),N=S.width,F=se.barW=Math.max(N,1+2*Q),G=se.pointXOffset=S.offset;W.inverted&&(y-=.5),U.pointPadding&&(F=Math.ceil(F)),xe.translate.apply(se),se.points.forEach(function(b){var w=Ae(b.yBottom,y),E=999+Math.abs(w),O=me(b.plotY,-E,te.len+E);E=b.plotX+G;let R=F/2,g=Math.min(O,w);var h;let p,v;w=Math.max(O,w)-g,b.barX=E,b.pointWidth=N,b.tooltipPos=W.inverted?[te.len+te.pos-W.plotLeft-O,se.xAxis.len-E-R,w]:[E+R,O+te.pos-W.plotTop,w],O=x+(b.total||b.y),"percent"===U.stacking&&(O=x+(0>b.y)?-100:100),O=te.toPixels(O,!0);var P=(h=W.plotHeight-O-(W.plotHeight-y))?R*(g-O)/h:0,V=h?R*(g+w-O)/h:0;h=E-P+R,P=E+P+R;var D=E+V+R;V=E-V+R,p=g-A,v=g+w,0>b.y&&(p=g,v=g+w+A),W.inverted&&(V=R*(O-((D=te.width-g)-w))/(h=O-(te.width-y)),P=(h=E+R+(P=R*(O-D)/h))-2*P,D=E-V+R,V=E+V+R,p=g,v=g+w-A,0>b.y&&(v=g+w+A)),b.shapeType="path",b.shapeArgs={x:h,y:p,width:P-h,height:w,d:[["M",h,p],["L",P,p],["L",D,v],["L",V,v],["Z"]]}})}}return ce.defaultOptions=fe(oe.defaultOptions,{}),le.registerSeriesType("columnpyramid",ce),ce}),be(Oe,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),be(Oe,"Series/ErrorBar/ErrorBarSeries.js",[Oe["Series/BoxPlot/BoxPlotSeries.js"],Oe["Series/Column/ColumnSeries.js"],Oe["Series/ErrorBar/ErrorBarSeriesDefaults.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me){const{arearange:fe}=xe.seriesTypes,{addEvent:Ae,merge:ce,extend:ye}=me;class se extends oe{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||le.prototype.getColumnMetrics.call(this)}drawDataLabels(){const U=this.pointValKey;fe&&(fe.prototype.drawDataLabels.call(this),this.data.forEach(function(Q){Q.y=Q[U]}))}toYData(U){return[U.low,U.high]}}return se.defaultOptions=ce(oe.defaultOptions,ve),Ae(se,"afterTranslate",function(){this.points.forEach(W=>{W.plotLow=W.plotY})},{order:0}),ye(se.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),xe.registerSeriesType("errorbar",se),se}),be(Oe,"Series/Gauge/GaugePoint.js",[Oe["Core/Series/SeriesRegistry.js"]],function(oe){return({series:{prototype:{pointClass:oe}}}=oe),class extends oe{constructor(){super(...arguments),this.shapeArgs=this.series=this.options=void 0}setState(xe){this.state=xe}}}),be(Oe,"Series/Gauge/GaugeSeries.js",[Oe["Series/Gauge/GaugePoint.js"],Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({noop:le}=le);const{series:me,seriesTypes:{column:fe}}=ve,{clamp:Ae,isNumber:ce,extend:ye,merge:se,pick:W,pInt:U,defined:Q}=xe;class te extends me{constructor(){super(...arguments),this.yAxis=this.options=this.points=this.data=void 0}translate(){const y=this.yAxis,A=this.options,S=y.center;this.generatePoints(),this.points.forEach(N=>{const F=se(A.dial,N.dial),G=U(F.radius)*S[2]/200,b=U(F.baseLength)*G/100,w=U(F.rearLength)*G/100,E=F.baseWidth,O=F.topWidth;let R=A.overshoot,g=y.startAngleRad+y.translate(N.y,void 0,void 0,void 0,!0);(ce(R)||!1===A.wrap)&&(R=ce(R)?R/180*Math.PI:0,g=Ae(g,y.startAngleRad-R,y.endAngleRad+R)),g=180*g/Math.PI,N.shapeType="path",N.shapeArgs={d:F.path||[["M",-w,-E/2],["L",b,-E/2],["L",G,-O/2],["L",G,O/2],["L",b,E/2],["L",-w,E/2],["Z"]],translateX:S[0],translateY:S[1],rotation:g},N.plotX=S[0],N.plotY=S[1],Q(N.y)&&y.max-y.min&&(N.percentage=(N.y-y.min)/(y.max-y.min)*100)})}drawPoints(){const y=this,A=y.chart,S=y.yAxis.center,N=y.pivot,F=y.options,G=F.pivot,b=A.renderer;y.points.forEach(w=>{const E=w.graphic,O=w.shapeArgs,R=O.d,g=se(F.dial,w.dial);E?(E.animate(O),O.d=R):w.graphic=b[w.shapeType](O).addClass("highcharts-dial").add(y.group),A.styledMode||w.graphic[E?"animate":"attr"]({stroke:g.borderColor,"stroke-width":g.borderWidth,fill:g.backgroundColor})}),N?N.animate({translateX:S[0],translateY:S[1]}):G&&(y.pivot=b.circle(0,0,G.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(S[0],S[1]).add(y.group),A.styledMode||y.pivot.attr({fill:G.backgroundColor,stroke:G.borderColor,"stroke-width":G.borderWidth}))}animate(y){const A=this;y||A.points.forEach(S=>{const N=S.graphic;N&&(N.attr({rotation:180*A.yAxis.startAngleRad/Math.PI}),N.animate({rotation:S.shapeArgs.rotation},A.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),me.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(y,A){me.prototype.setData.call(this,y,!1),this.processData(),this.generatePoints(),W(A,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return te.defaultOptions=se(me.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),ye(te.prototype,{angular:!0,directTouch:!0,drawGraph:le,drawTracker:fe.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:oe,trackerGroups:["group","dataLabelsGroup"]}),ve.registerSeriesType("gauge",te),te}),be(Oe,"Series/DragNodesComposition.js",[Oe["Core/Utilities.js"]],function(oe){function le(){const me=this;let fe,Ae,ce;me.container&&(fe=ve(me.container,"mousedown",ye=>{const se=me.hoverPoint;se&&se.series&&se.series.hasDraggableNodes&&se.series.options.draggable&&(se.series.onMouseDown(se,ye),Ae=ve(me.container,"mousemove",W=>se&&se.series&&se.series.onMouseMove(se,W)),ce=ve(me.container.ownerDocument,"mouseup",W=>(Ae(),ce(),se&&se.series&&se.series.onMouseUp(se,W))))})),ve(me,"destroy",function(){fe()})}const{addEvent:ve}=oe,xe=[];return{compose:function(me){oe.pushUnique(xe,me)&&ve(me,"load",le)},onMouseDown:function(me,fe){fe=this.chart.pointer.normalize(fe),me.fixedPosition={chartX:fe.chartX,chartY:fe.chartY,plotX:me.plotX,plotY:me.plotY},me.inDragMode=!0},onMouseMove:function(me,fe){if(me.fixedPosition&&me.inDragMode){const ye=this.chart;fe=ye.pointer.normalize(fe);var Ae=me.fixedPosition.chartX-fe.chartX,ce=me.fixedPosition.chartY-fe.chartY;fe=ye.graphLayoutsLookup,(5{se.restartSimulation()}))}},onMouseUp:function(me,fe){me.fixedPosition&&(me.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),me.inDragMode=me.hasDragged=!1,this.options.fixedDraggable||delete me.fixedPosition)},redrawHalo:function(me){me&&this.halo&&this.halo.attr({d:me.haloPath(this.options.states.hover.halo.size)})}}}),be(Oe,"Series/GraphLayoutComposition.js",[Oe["Core/Animation/AnimationUtilities.js"],Oe["Core/Utilities.js"]],function(oe,le){function ve(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(se=>{se.updateSimulation()}),this.redraw())}function xe(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(se=>{se.updateSimulation(!1)}),this.redraw())}function me(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(se=>{se.stop()})}function fe(){let se,W=!1;const U=Q=>{Q.maxIterations--&&isFinite(Q.temperature)&&!Q.isStable()&&!Q.enableSimulation&&(Q.beforeStep&&Q.beforeStep(),Q.step(),se=!1,W=!0)};if(this.graphLayoutsLookup){for(Ae(!1,this),this.graphLayoutsLookup.forEach(Q=>Q.start());!se;)se=!0,this.graphLayoutsLookup.forEach(U);W&&this.series.forEach(Q=>{Q&&Q.layout&&Q.render()})}}const{setAnimation:Ae}=oe,{addEvent:ce}=le,ye=[];return{compose:function(se){le.pushUnique(ye,se)&&(ce(se,"afterPrint",ve),ce(se,"beforePrint",xe),ce(se,"predraw",me),ce(se,"render",fe))},integrations:{},layouts:{}}}),be(Oe,"Series/PackedBubble/PackedBubblePoint.js",[Oe["Core/Chart/Chart.js"],Oe["Core/Series/Point.js"],Oe["Core/Series/SeriesRegistry.js"]],function(oe,le,ve){return({seriesTypes:{bubble:{prototype:{pointClass:ve}}}}=ve),class extends ve{constructor(){super(...arguments),this.radius=this.mass=this.degree=NaN,this.series=this.options=void 0,this.value=null}destroy(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),le.prototype.destroy.apply(this,arguments)}firePointEvent(){const fe=this.series.options;if(this.isParentNode&&fe.parentNode){const Ae=fe.allowPointSelect;fe.allowPointSelect=fe.parentNode.allowPointSelect,le.prototype.firePointEvent.apply(this,arguments),fe.allowPointSelect=Ae}else le.prototype.firePointEvent.apply(this,arguments)}select(){const fe=this.series.chart;this.isParentNode?(fe.getSelectedPoints=fe.getSelectedParentNodes,le.prototype.select.apply(this,arguments),fe.getSelectedPoints=oe.prototype.getSelectedPoints):le.prototype.select.apply(this,arguments)}}}),be(Oe,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[Oe["Core/Utilities.js"]],function(oe){const{isNumber:le}=oe;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){const{numberFormatter:ve}=this.series.chart,{value:xe}=this.point;return le(xe)?ve(xe,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),be(Oe,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(oe,le,ve){const xe=oe.getMass(),me=-ve.x*le*this.diffTemperature;le=-ve.y*le*this.diffTemperature,oe.fromNode.fixedPosition||(oe.fromNode.plotX-=me*xe.fromNode/oe.fromNode.degree,oe.fromNode.plotY-=le*xe.fromNode/oe.fromNode.degree),oe.toNode.fixedPosition||(oe.toNode.plotX+=me*xe.toNode/oe.toNode.degree,oe.toNode.plotY+=le*xe.toNode/oe.toNode.degree)},attractiveForceFunction:function(oe,le){return(le-oe)/oe},barycenter:function(){let oe=this.options.gravitationalConstant,le=this.barycenter.xFactor,ve=this.barycenter.yFactor;le=(le-(this.box.left+this.box.width)/2)*oe,ve=(ve-(this.box.top+this.box.height)/2)*oe,this.nodes.forEach(function(xe){xe.fixedPosition||(xe.plotX-=le/xe.mass/xe.degree,xe.plotY-=ve/xe.mass/xe.degree)})},getK:function(oe){return Math.pow(oe.box.width*oe.box.height/oe.nodes.length,.5)},integrate:function(oe,le){var ve=-oe.options.friction;let xe=oe.options.maxSpeed,me=(le.plotX+le.dispX-le.prevX)*ve;ve*=le.plotY+le.dispY-le.prevY;var fe=Math.abs;let Ae=fe(me)/(me||1);fe=fe(ve)/(ve||1),me=Ae*Math.min(xe,Math.abs(me)),ve=fe*Math.min(xe,Math.abs(ve)),le.prevX=le.plotX+le.dispX,le.prevY=le.plotY+le.dispY,le.plotX+=me,le.plotY+=ve,le.temperature=oe.vectorLength({x:me,y:ve})},repulsive:function(oe,le,ve){le=le*this.diffTemperature/oe.mass/oe.degree,oe.fixedPosition||(oe.plotX+=ve.x*le,oe.plotY+=ve.y*le)},repulsiveForceFunction:function(oe,le){return(le-oe)/oe*(le>oe?1:0)}}}),be(Oe,"Series/PackedBubble/PackedBubbleIntegration.js",[Oe["Core/Globals.js"],Oe["Series/Networkgraph/VerletIntegration.js"]],function(oe,le){return({noop:oe}=oe),{barycenter:function(){const ve=this.options.gravitationalConstant,xe=this.box,me=this.nodes;let fe,Ae;for(const ce of me)this.options.splitSeries&&!ce.isParentNode?(fe=ce.series.parentNode.plotX,Ae=ce.series.parentNode.plotY):(fe=xe.width/2,Ae=xe.height/2),ce.fixedPosition||(ce.plotX-=(ce.plotX-fe)*ve/(ce.mass*Math.sqrt(me.length)),ce.plotY-=(ce.plotY-Ae)*ve/(ce.mass*Math.sqrt(me.length)))},getK:oe,integrate:le.integrate,repulsive:function(ve,xe,me,fe){const Ae=xe*this.diffTemperature/ve.mass/ve.degree;xe=me.x*Ae,me=me.y*Ae,ve.fixedPosition||(ve.plotX+=xe,ve.plotY+=me),fe.fixedPosition||(fe.plotX-=xe,fe.plotY-=me)},repulsiveForceFunction:function(ve,xe,me,fe){return Math.min(ve,(me.marker.radius+fe.marker.radius)/2)}}}),be(Oe,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(oe,le,ve,xe){const me=oe.getMass(),fe=ve.x/xe*le;le*=ve.y/xe,oe.fromNode.fixedPosition||(oe.fromNode.dispX-=fe*me.fromNode/oe.fromNode.degree,oe.fromNode.dispY-=le*me.fromNode/oe.fromNode.degree),oe.toNode.fixedPosition||(oe.toNode.dispX+=fe*me.toNode/oe.toNode.degree,oe.toNode.dispY+=le*me.toNode/oe.toNode.degree)},attractiveForceFunction:function(oe,le){return oe*oe/le},barycenter:function(){const oe=this.options.gravitationalConstant,le=this.barycenter.xFactor,ve=this.barycenter.yFactor;this.nodes.forEach(function(xe){if(!xe.fixedPosition){var me=xe.getDegree();xe.dispX+=(le-xe.plotX)*oe*(me*=1+me/2)/xe.degree,xe.dispY+=(ve-xe.plotY)*oe*me/xe.degree}})},getK:function(oe){return Math.pow(oe.box.width*oe.box.height/oe.nodes.length,.3)},integrate:function(oe,le){let ve;le.dispX+=le.dispX*oe.options.friction,le.dispY+=le.dispY*oe.options.friction,ve=le.temperature=oe.vectorLength({x:le.dispX,y:le.dispY}),0!==ve&&(le.plotX+=le.dispX/ve*Math.min(Math.abs(le.dispX),oe.temperature),le.plotY+=le.dispY/ve*Math.min(Math.abs(le.dispY),oe.temperature))},repulsive:function(oe,le,ve,xe){oe.dispX+=ve.x/xe*le/oe.degree,oe.dispY+=ve.y/xe*le/oe.degree},repulsiveForceFunction:function(oe,le){return le*le/oe}}}),be(Oe,"Series/Networkgraph/QuadTreeNode.js",[],function(){class oe{constructor(ve){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=ve,this.boxSize=Math.min(ve.width,ve.height)}divideBox(){const ve=this.box.width/2,xe=this.box.height/2;this.nodes[0]=new oe({left:this.box.left,top:this.box.top,width:ve,height:xe}),this.nodes[1]=new oe({left:this.box.left+ve,top:this.box.top,width:ve,height:xe}),this.nodes[2]=new oe({left:this.box.left+ve,top:this.box.top+xe,width:ve,height:xe}),this.nodes[3]=new oe({left:this.box.left,top:this.box.top+xe,width:ve,height:xe})}getBoxPosition(ve){const xe=ve.plotYthis.step())):(this.simulation=!1,this.series.forEach(y=>{W(y,"afterSimulation")}))}}stop(){this.simulation&&Ae.cancelAnimationFrame(this.simulation)}setArea(x,y,A,S){this.box={left:x,top:y,width:A,height:S}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(x,y){for(const A of x)-1===y.indexOf(A)&&y.push(A)}removeElementFromCollection(x,y){-1!==(x=y.indexOf(x))&&y.splice(x,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(x){this.maxIterations=U(x,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(x){this.initialRendering=x}createQuadTree(){this.quadTree=new xe(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){const x=this.options.initialPositions;if(se(x)){x.call(this);for(const y of this.nodes)ye(y.prevX)||(y.prevX=y.plotX),ye(y.prevY)||(y.prevY=y.plotY),y.dispX=0,y.dispY=0}else"circle"===x?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){const x=this.box;var y=this.nodes;const A=2*Math.PI/(y.length+1),S=y.filter(function(w){return 0===w.linksTo.length}),N={},F=this.options.initialPositionRadius,G=w=>{for(const E of w.linksFrom||[])N[E.toNode.id]||(N[E.toNode.id]=!0,b.push(E.toNode),G(E.toNode))};let b=[];for(const w of S)b.push(w),G(w);if(b.length)for(const w of y)-1===b.indexOf(w)&&b.push(w);else b=y;for(let w=0,E=b.length;w(F=F*F/Math.PI)-Math.floor(F);let N;for(let F=0,G=y.length;Fthis.barnesHutApproximation(x,y));else{let x,y,A;for(const S of this.nodes)for(const N of this.nodes)S===N||S.fixedPosition||(A=this.getDistXY(S,N),y=this.vectorLength(A),0!==y&&(x=this.repulsiveForce(y,this.k),this.force("repulsive",S,x*N.mass,A,y)))}}attractiveForces(){let x,y,A;for(const S of this.links)S.fromNode&&S.toNode&&(x=this.getDistXY(S.fromNode,S.toNode),y=this.vectorLength(x),0!==y&&(A=this.attractiveForce(y,this.k),this.force("attractive",S,A,x,y)))}applyLimits(){const x=this.nodes;for(const y of x){if(y.fixedPosition)break;this.integration.integrate(this,y),this.applyLimitBox(y,this.box),y.dispX=0,y.dispY=0}}applyLimitBox(x,y){const A=x.radius;x.plotX=ce(x.plotX,y.left+A,y.width-A),x.plotY=ce(x.plotY,y.top+A,y.height-A)}coolDown(x,y,A){return x-y*A}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature}getSystemTemperature(){let x=0;for(const y of this.nodes)x+=y.temperature;return x}vectorLength(x){return Math.sqrt(x.x*x.x+x.y*x.y)}getDistR(x,y){return x=this.getDistXY(x,y),this.vectorLength(x)}getDistXY(x,y){const A=x.plotX-y.plotX;return{x:A,y:x=x.plotY-y.plotY,absX:Math.abs(A),absY:Math.abs(x)}}}return Q}),be(Oe,"Series/PackedBubble/PackedBubbleLayout.js",[Oe["Series/GraphLayoutComposition.js"],Oe["Series/PackedBubble/PackedBubbleIntegration.js"],Oe["Series/Networkgraph/ReingoldFruchtermanLayout.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){function me(){const W=[];return this.series.forEach(U=>{U.parentNode&&U.parentNode.selected&&W.push(U.parentNode)}),W}function fe(){this.allDataPoints&&delete this.allDataPoints}const{addEvent:Ae,pick:ce}=xe,ye=[];class se extends ve{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.options=void 0,this.series=[]}static compose(U){ve.compose(U),oe.integrations.packedbubble=le,oe.layouts.packedbubble=se,xe.pushUnique(ye,U)&&(Ae(U,"beforeRedraw",fe),U.prototype.getSelectedParentNodes=me)}beforeStep(){this.options.marker&&this.series.forEach(U=>{U&&U.calculateParentRadius()})}isStable(){const U=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>U||0>=this.temperature}setCircularPositions(){const U=this.box;var Q=this.nodes;const te=2*Math.PI/(Q.length+1),x=this.options.initialPositionRadius;let y,A=0;for(const S of Q)this.options.splitSeries&&!S.isParentNode?(Q=S.series.parentNode.plotX,y=S.series.parentNode.plotY):(Q=U.width/2,y=U.height/2),S.plotX=S.prevX=ce(S.plotX,Q+x*Math.cos(S.index||A*te)),S.plotY=S.prevY=ce(S.plotY,y+x*Math.sin(S.index||A*te)),S.dispX=0,S.dispY=0,A++}repulsiveForces(){const U=this,Q=U.options.bubblePadding;let te,x,y;U.nodes.forEach(A=>{A.degree=A.mass,A.neighbours=0,U.nodes.forEach(S=>{te=0,A===S||A.fixedPosition||!U.options.seriesInteraction&&A.series!==S.series||(y=U.getDistXY(A,S),x=U.vectorLength(y)-(A.marker.radius+S.marker.radius+Q),0>x&&(A.degree+=.01,A.neighbours++,te=U.repulsiveForce(-x/Math.sqrt(A.neighbours),U.k,A,S)),U.force("repulsive",A,te*S.mass,y,S,x))})})}applyLimitBox(U,Q){let te,x;this.options.splitSeries&&!U.isParentNode&&this.options.parentNodeLimit&&(te=this.getDistXY(U,U.series.parentNode),x=U.series.parentNodeRadius-U.marker.radius-this.vectorLength(te),0>x&&x>-2*U.marker.radius&&(U.plotX-=.01*te.x,U.plotY-=.01*te.y)),super.applyLimitBox(U,Q)}}return oe.layouts.packedbubble=se}),be(Oe,"Series/SimulationSeriesUtilities.js",[Oe["Core/Utilities.js"],Oe["Core/Animation/AnimationUtilities.js"]],function(oe,le){const{syncTimeout:ve}=oe,{animObject:xe}=le;return{initDataLabels:function(){const me=this.options.dataLabels;if(!this.dataLabelsGroup){const fe=this.initDataLabelsGroup();return!this.chart.styledMode&&(null==me?0:me.style)&&fe.css(me.style),fe.attr({opacity:0}),this.visible&&fe.show(),fe}return this.dataLabelsGroup.attr({opacity:1}),this.dataLabelsGroup},initDataLabelsDefer:function(){var me;const fe=this.options.dataLabels;null!=fe&&fe.defer&&null!==(me=this.options.layoutAlgorithm)&&void 0!==me&&me.enableSimulation?ve(()=>{this.deferDataLabels=!1},fe?xe(fe.animation).defer:0):this.deferDataLabels=!1}}}),be(Oe,"Series/PackedBubble/PackedBubbleSeries.js",[Oe["Core/Color/Color.js"],Oe["Series/DragNodesComposition.js"],Oe["Series/GraphLayoutComposition.js"],Oe["Core/Globals.js"],Oe["Series/PackedBubble/PackedBubblePoint.js"],Oe["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],Oe["Series/PackedBubble/PackedBubbleLayout.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Series/SimulationSeriesUtilities.js"],Oe["Core/Utilities.js"],Oe["Core/Animation/AnimationUtilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W){const{parse:U}=oe;({noop:oe}=xe);const{series:{prototype:Q},seriesTypes:{bubble:te}}=ce,{initDataLabels:x,initDataLabelsDefer:y}=ye,{addEvent:A,clamp:S,defined:N,extend:F,fireEvent:G,isArray:b,isNumber:w,merge:E,pick:O}=se;class R extends te{constructor(){super(...arguments),this.options=this.layout=this.data=this.chart=void 0,this.parentNodeMass=0,this.xData=this.points=void 0,this.deferDataLabels=!0}static compose(h,p,v,P){te.compose(h,p,v,P),le.compose(p),Ae.compose(p)}accumulateAllPoints(){const h=this.chart,p=[];let v;for(const P of h.series)if(P.is("packedbubble")&&P.visible||!h.options.chart.ignoreHiddenSeries){v=P.yData||[];for(let V=0;V{Y.mass=2,Y.degree=1,Y.collisionNmb=1}),D.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),D.addElementsToCollection([this],D.series),D.addElementsToCollection(this.points,D.nodes)}addSeriesLayout(){var h=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{};const p=h.type||"packedbubble",v=this.chart.graphLayoutsStorage,P=this.chart.graphLayoutsLookup;h=E(h,h.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});let V=v[p+"-series"];V||(v[p+"-series"]=V=new ve.layouts[p],V.init(h),P.splice(V.index,0,V)),this.parentNodeLayout=V,this.createParentNodes()}calculateParentRadius(){const h=this.seriesBox();this.parentNodeRadius=S(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,h?Math.max(Math.sqrt(Math.pow(h.width,2)+Math.pow(h.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let h=this.options.zMin,p=this.options.zMax,v=1/0,P=-1/0;return h&&p||(this.chart.series.forEach(V=>{V.yData.forEach(D=>{N(D)&&(D>P&&(P=D),DMath.sqrt(v*v+P*P)-Math.abs(h[2]+p[2])}createParentNodes(){const h=this.pointClass,p=this.chart,v=this.parentNodeLayout,P=this.layout.options;let V,D=this.parentNode,Y={radius:this.parentNodeRadius,lineColor:this.color,fillColor:U(this.color).brighten(.4).get()};P.parentNodeOptions&&(Y=E(P.parentNodeOptions.marker||{},Y)),this.parentNodeMass=0,this.points.forEach(de=>{this.parentNodeMass+=Math.PI*Math.pow(de.marker.radius,2)}),this.calculateParentRadius(),v.nodes.forEach(de=>{de.seriesIndex===this.index&&(V=!0)}),v.setArea(0,0,p.plotWidth,p.plotHeight),V||(D||(D=(new h).init(this,{mass:this.parentNodeRadius/2,marker:Y,dataLabels:{inside:!1},states:{normal:{marker:Y},hover:{marker:Y}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(D.plotX=this.parentNode.plotX,D.plotY=this.parentNode.plotY),this.parentNode=D,v.addElementsToCollection([this],v.series),v.addElementsToCollection([D],v.nodes))}deferLayout(){const h=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),h.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(h=>{h.removeElementFromCollection(this,h.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),Q.destroy.apply(this,arguments)}drawDataLabels(){this.deferDataLabels||(Q.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",Q.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){var h;if(this.layout&&this.layout.options.splitSeries){var p=this.chart,v=this.layout.options.parentNodeOptions.marker;v={fill:v.fillColor||U(this.color).brighten(.4).get(),opacity:v.fillOpacity,stroke:v.lineColor||this.color,"stroke-width":O(v.lineWidth,this.options.lineWidth)},this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,p.seriesGroup),null===(h=this.group)||void 0===h||h.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&N(this.parentNode.plotX)&&N(this.parentNode.plotY)&&N(this.parentNodeRadius)&&(h=E({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},v),this.parentNode.graphic||(this.graph=this.parentNode.graphic=p.renderer.symbol(v.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(h))}}drawTracker(){const h=this.parentNode;let p;super.drawTracker(),h&&(p=b(h.dataLabels)?h.dataLabels:h.dataLabel?[h.dataLabel]:[],h.graphic&&(h.graphic.element.point=h),p.forEach(v=>{v.div?v.div.point=h:v.element.point=h}))}getPointRadius(){const h=this.chart,p=this.options,v=p.useSimulation,P=Math.min(h.plotWidth,h.plotHeight),V={},D=[],Y=h.allDataPoints||[],de=Y.length;let Ce,Ne,X,m;["minSize","maxSize"].forEach(Z=>{const q=parseInt(p[Z],10),he=/%$/.test(p[Z]);V[Z]=he?P*q/100:q*Math.sqrt(de)}),h.minRadius=Ce=V.minSize/Math.sqrt(de),h.maxRadius=Ne=V.maxSize/Math.sqrt(de);const H=v?this.calculateZExtremes():[Ce,Ne];Y.forEach((Z,q)=>{X=v?S(Z[2],H[0],H[1]):Z[2],m=this.getRadius(H[0],H[1],Ce,Ne,X),0===m&&(m=null),Y[q][2]=m,D.push(m)}),this.radii=D}init(){return Q.init.apply(this,arguments),y.call(this),this.eventsToUnbind.push(A(this,"updatedData",function(){this.chart.series.forEach(h=>{h.type===this.type&&(h.isDirty=!0)},this)})),this}onMouseUp(h){const p=h;if(p.fixedPosition&&!p.removed){const v=this.layout,P=this.parentNodeLayout;let V,D;P&&v.options.dragBetweenSeries&&P.nodes.forEach(Y=>{p&&p.marker&&Y!==p.series.parentNode&&(V=v.getDistXY(p,Y),D=v.vectorLength(V)-Y.marker.radius-p.marker.radius,0>D&&(Y.series.addPoint(E(p.options,{plotX:p.plotX,plotY:p.plotY}),!1),v.removeElementFromCollection(p,v.nodes),p.remove()))}),le.onMouseUp.apply(this,arguments)}}placeBubbles(h){const p=this.checkOverlap,v=this.positionBubble,P=[];let V=1,D=0,Y=0;var de=[];let Ce;if((h=h.sort((Ne,X)=>X[2]-Ne[2])).length){if(P.push([[0,0,h[0][2],h[0][3],h[0][4]]]),1h[1]-p[1]?0:Math.PI)+D+V*(0>(h[0]-p[0])*(h[1]-p[1])?1:-1),[p[0]+(p[2]+v[2])*Math.sin(h),p[1]-(p[2]+v[2])*Math.cos(h),v[2],v[3],v[4]]}render(){const h=[];Q.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(p=>{b(p.dataLabels)&&p.dataLabels.forEach(v=>{h.push(v)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(h))}resizeRadius(){const h=this.chart,p=h.rawPositions;var v=Math.min,P=Math.max;const V=h.plotLeft,D=h.plotTop,Y=h.plotHeight,de=h.plotWidth;let Ce,Ne,X,m,H;Ce=X=Number.POSITIVE_INFINITY,Ne=m=Number.NEGATIVE_INFINITY;for(const Z of p)H=Z[2],Ce=v(Ce,Z[0]-H),Ne=P(Ne,Z[0]+H),X=v(X,Z[1]-H),m=P(m,Z[1]+H);if(v=v.apply([],[(de-V)/(P=[Ne-Ce,m-X])[0],(Y-D)/P[1]]),1e-10{N(D.plotX)&&N(D.plotY)&&D.marker.radius&&(V=D.marker.radius,P[0]=v(P[0],D.plotX-V),P[1]=p(P[1],D.plotX+V),P[2]=v(P[2],D.plotY-V),P[3]=p(P[3],D.plotY+V))}),w(P.width/P.height)?P:null}setVisible(){const h=this;Q.setVisible.apply(h,arguments),h.parentNodeLayout&&h.graph?h.visible?(h.graph.show(),h.parentNode.dataLabel&&h.parentNode.dataLabel.show()):(h.graph.hide(),h.parentNodeLayout.removeElementFromCollection(h.parentNode,h.parentNodeLayout.nodes),h.parentNode.dataLabel&&h.parentNode.dataLabel.hide()):h.layout&&(h.visible?h.layout.addElementsToCollection(h.points,h.layout.nodes):h.points.forEach(p=>{h.layout.removeElementFromCollection(p,h.layout.nodes)}))}translate(){const h=this.chart,p=this.data,v=this.index,P=this.options.useSimulation;let V;if(this.processedXData=this.xData,this.generatePoints(),N(h.allDataPoints)||(h.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),P)var D=h.allDataPoints;else D=this.placeBubbles(h.allDataPoints),this.options.draggable=!1;for(const Y of D)Y[3]===v&&(D=p[Y[4]],V=O(Y[2],void 0),P||(D.plotX=Y[0]-h.plotLeft+h.diffX,D.plotY=Y[1]-h.plotTop+h.diffY),w(V)&&(D.marker=F(D.marker,{radius:V,width:2*V,height:2*V}),D.radius=V));P&&this.deferLayout(),G(this,"afterTranslate")}}return R.defaultOptions=E(te.defaultOptions,fe),F(R.prototype,{pointClass:me,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:x,alignDataLabel:Q.alignDataLabel,indexateNodes:oe,onMouseDown:le.onMouseDown,onMouseMove:le.onMouseMove,redrawHalo:le.redrawHalo,searchPoint:oe}),ce.registerSeriesType("packedbubble",R),R}),be(Oe,"Series/Polygon/PolygonSeries.js",[Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Core/Utilities.js"]],function(oe,le,ve){({noop:oe}=oe);const{series:xe,seriesTypes:{area:me,line:fe,scatter:Ae}}=le,{extend:ce,merge:ye}=ve;class se extends Ae{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getGraphPath(){let U=fe.prototype.getGraphPath.call(this),Q=U.length+1;for(;Q--;)(Q===U.length||"M"===U[Q][0])&&0te(V.y)),G=this.yAxis,b=F.length,w=Math.round(this.graph.strokeWidth())%2/2,E=Math.round(this.borderWidth)%2/2,O=this.xAxis.reversed,R=this.yAxis.reversed,g=this.options.stacking,h=[];for(let V=1;VD&&!R||0Ne.indexOf(R)&&(X=!0),b[R]||(b[R]={}),Ne=b[R])for(let H=0;Hde.height&&(de.y+=de.height,de.height*=-1);Y.plotY=de.y=Math.round(de.y||0)-this.borderWidth%2/2,de.height=Math.max(Math.round(de.height||0),.001),Y.yBottom=de.y+de.height,de.height<=b&&!Y.isNull?(de.height=b,de.y-=w,Y.plotY=de.y,Y.minPointLengthOffset=0>P?-w:w):(Y.isNull&&(de.width=0),Y.minPointLengthOffset=0),P=Y.plotY+(Y.negative?de.height:0),Y.below&&(Y.plotY+=de.height),Y.tooltipPos&&(this.chart.inverted?Y.tooltipPos[0]=G.len-P:Y.tooltipPos[1]=P),Y.isInside=this.isPointInside(Y),x(!0,Y.shapeArgs,de)}},{order:2}),Q(S.prototype,{getZonesGraphs:ce.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:fe}),ve.registerSeriesType("waterfall",S),me.compose(oe,le),S}),be(Oe,"Core/Axis/RadialAxis.js",[Oe["Core/Axis/AxisDefaults.js"],Oe["Core/Defaults.js"],Oe["Core/Globals.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){const{defaultOptions:me}=le,{noop:fe}=ve,{addEvent:Ae,correctFloat:ce,defined:ye,extend:se,fireEvent:W,merge:U,pick:Q,relativeLength:te,wrap:x}=xe;var y;return function(A){function S(){this.autoConnect=this.isCircular&&void 0===Q(this.userMax,this.options.max)&&ce(this.endAngleRad-this.startAngleRad)===ce(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function N(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&!0!==this.options.labels.allowOverlap)return this.tickPositions.map(I=>this.ticks[I]&&this.ticks[I].label).filter(I=>!!I)}}function F(){return fe}function G(I,K,ne){const re=this.pane.center;let we,_e=I.value;if(this.isCircular){if(ye(_e))I.point&&(Se=I.point.shapeArgs||{}).start&&(_e=this.chart.inverted?this.translate(I.point.rectPlotY,!0):I.point.x);else{var Se=I.chartX||0;we=I.chartY||0,_e=this.translate(Math.atan2(we-ne,Se-K)-this.startAngleRad,!0)}Se=(I=this.getPosition(_e)).x,we=I.y}else ye(_e)||(Se=I.chartX,we=I.chartY),ye(Se)&&ye(we)&&(ne=re[1]+this.chart.plotTop,_e=this.translate(Math.min(Math.sqrt(Math.pow(Se-K,2)+Math.pow(we-ne,2)),re[2]/2)-re[3]/2,!0));return[_e,Se||0,we||0]}function b(I,K,ne){const re=this.chart,_e=this.left||0,we=this.top||0;let Se=Q(K,(I=this.pane.center)[2]/2-this.offset);return void 0===ne&&(ne=this.horiz?0:this.center&&-this.center[3]/2),ne&&(Se+=ne),this.isCircular||void 0!==K?((K=this.chart.renderer.symbols.arc(_e+I[0],we+I[1],Se,Se,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[_e+I[0]],K.yBounds=[we+I[1]-Se]):(K=this.postTranslate(this.angleRad,Se),K=[["M",this.center[0]+re.plotLeft,this.center[1]+re.plotTop],["L",K.x,K.y]]),K}function w(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function E(I,K,ne){const re=this.chart;var _e=ut=>{if("string"==typeof ut){let yt=parseInt(ut,10);return Ee.test(ut)&&(yt=yt*Re/100),yt}return ut};const we=this.center;var Se=this.startAngleRad;const Re=we[2]/2;var ze=Math.min(this.offset,0),ie=this.left||0;const ee=this.top||0,Ee=/%$/;var pe=this.isCircular;let De,Ge=Q(_e(ne.outerRadius),Re),We=_e(ne.innerRadius);return _e=Q(_e(ne.thickness),10),"polygon"===this.options.gridLineInterpolation?ze=this.getPlotLinePath({value:I}).concat(this.getPlotLinePath({value:K,reverse:!0})):(I=Math.max(I,this.min),K=Math.min(K,this.max),I=this.translate(I),K=this.translate(K),pe||(Ge=I||0,We=K||0),"circle"!==ne.shape&&pe?(ne=Se+(I||0),Se+=K||0):(ne=-Math.PI/2,Se=1.5*Math.PI,De=!0),Ge-=ze,ze=re.renderer.symbols.arc(ie+we[0],ee+we[1],Ge,Ge,{start:Math.min(ne,Se),end:Math.max(ne,Se),innerR:Q(We,Ge-(_e-ze)),open:De}),pe&&(pe=(Se+ne)/2,ie=ie+we[0]+we[2]/2*Math.cos(pe),ze.xBounds=pe>-Math.PI/2&&pe-Math.PI&&0>pe||pe>Math.PI?-10:10)),ze}function O(I){var K=this.pane.center,ne=this.chart;const re=ne.inverted;var _e=I.reverse,we=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{};const Se=we.innerRadius||"0%",Re=we.outerRadius||"100%";var ze=K[0]+ne.plotLeft,ie=K[1]+ne.plotTop;const ee=this.height,Ee=I.isCrosshair;we=K[3]/2;var pe=I.value;let De;var Ge=this.getPosition(pe);let We=Ge.x;if(Ge=Ge.y,Ee&&(pe=(Ge=this.getCrosshairPosition(I,ze,ie))[0],We=Ge[1],Ge=Ge[2]),this.isCircular)pe=Math.sqrt(Math.pow(We-ze,2)+Math.pow(Ge-ie,2)),_e="string"==typeof Se?te(Se,1):Se/pe,ne="string"==typeof Re?te(Re,1):Re/pe,K&&we&&(_e<(we/=pe)&&(_e=we),nepe||pe>ee)&&(pe=0),"circle"===this.options.gridLineInterpolation)K=this.getLinePath(0,pe,we);else if(K=[],ne[re?"yAxis":"xAxis"].forEach(ut=>{ut.pane===this.pane&&(De=ut)}),De)for(ze=De.tickPositions,De.autoConnect&&(ze=ze.concat([ze[0]])),_e&&(ze=ze.slice().reverse()),pe&&(pe+=we),ie=0;ieI?0:I,this.center[2]/2)-this.offset)}function g(){const I=this.center,K=this.chart,ne=this.options.title;return{x:K.plotLeft+I[0]+(ne.x||0),y:K.plotTop+I[1]-{high:.5,middle:.25,low:0}[ne.align]*I[2]+(ne.y||0)}}function h(I){I.beforeSetTickPositions=S,I.createLabelCollector=N,I.getCrosshairPosition=G,I.getLinePath=b,I.getOffset=w,I.getPlotBandPath=E,I.getPlotLinePath=O,I.getPosition=R,I.getTitlePosition=g,I.postTranslate=Ce,I.setAxisSize=X,I.setAxisTranslation=m,I.setOptions=H}function p(){var I=this.chart,K=this.options,ne=this.pane,re=ne&&ne.options;I.angular&&this.isXAxis||!ne||!I.angular&&!I.polar||(I=2*Math.PI,ne=(Q(re.startAngle,0)-90)*Math.PI/180,re=(Q(re.endAngle,Q(re.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(K.angle||0)*Math.PI/180,this.startAngleRad=ne,this.endAngleRad=re,this.offset=K.offset||0,re=(re%I+I)%I,(K=(ne%I+I)%I)>Math.PI&&(K-=I),re>Math.PI&&(re-=I),this.normalizedStartAngleRad=K,this.normalizedEndAngleRad=re)}function v(I){this.isRadial&&(I.align=void 0,I.preventDefault())}function P(){if(this.chart&&this.chart.labelCollectors){const I=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=I&&this.chart.labelCollectors.splice(I,1)}}function V(I){const K=this.chart,ne=K.inverted,re=K.angular,_e=K.polar,we=this.isXAxis,Se=this.coll,Re=re&&we;let ze;I=I.userOptions.pane||0,I=this.pane=K.pane&&K.pane[I],"colorAxis"===Se?this.isRadial=!1:(re?(Re?(this.isHidden=!0,this.createLabelCollector=F,this.getOffset=fe,this.render=this.redraw=Ne,this.setTitle=this.setCategories=this.setScale=fe):h(this),(ze=!we)&&(this.defaultPolarOptions=M)):_e&&(h(this),this.defaultPolarOptions=(ze=this.horiz)?he:U("xAxis"===Se?oe.defaultXAxisOptions:oe.defaultYAxisOptions,B),ne&&"yAxis"===Se&&(this.defaultPolarOptions.stackLabels=oe.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),re||_e?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&K.labelCollectors.push(this.labelCollector)):this.isRadial=!1,I&&ze&&(I.axis=this),this.isCircular=ze)}function D(){this.isRadial&&this.beforeSetTickPositions()}function Y(I){const K=this.label;if(K){var ne=this.axis,re=K.getBBox(),_e=ne.options.labels,we=(ne.translate(this.pos)+ne.startAngleRad+Math.PI/2)/Math.PI*180%360,Se=Math.round(we),Re=ye(_e.y)?0:.3*-re.height,ze=_e.y,ie=20,ee=_e.align,Ee="end",pe=0>Se?Se+360:Se,De=pe,Ge=0,We=0;if(ne.isRadial){var ut=ne.getPosition(this.pos,ne.center[2]/2+te(Q(_e.distance,-25),ne.center[2]/2,-ne.center[2]/2));"auto"===_e.rotation?K.attr({rotation:we}):ye(ze)||(ze=ne.chart.renderer.fontMetrics(K).b-re.height/2),ye(ee)||(ne.isCircular?(re.width>ne.len*ne.tickInterval/(ne.max-ne.min)&&(ie=0),ee=we>ie&&we<180-ie?"left":we>180+ie&&we<360-ie?"right":"center"):ee="center",K.attr({align:ee})),"auto"===ee&&2===ne.tickPositions.length&&ne.isCircular&&(90pe?pe=180-pe:270=pe&&(pe=540-pe),180=De&&(De=360-De),(ne.pane.options.startAngle===Se||ne.pane.options.startAngle===Se+360||ne.pane.options.startAngle===Se-360)&&(Ee="start"),ee=-90<=Se&&90>=Se||-360<=Se&&-270>=Se||270<=Se&&360>=Se?"start"===Ee?"right":"left":"start"===Ee?"left":"right",70De&&(ee="center"),15>pe||180<=pe&&195>pe?Ge=.3*re.height:15<=pe&&35>=pe?Ge="start"===Ee?0:.75*re.height:195<=pe&&215>=pe?Ge="start"===Ee?.75*re.height:0:35=pe?Ge="start"===Ee?.25*-re.height:re.height:215=pe&&(Ge="start"===Ee?re.height:.25*-re.height),15>De?We="start"===Ee?.15*-re.height:.15*re.height:165=De&&(We="start"===Ee?.15*re.height:.15*-re.height),K.attr({align:ee}),K.translate(We,Ge+Re)),I.pos.x=ut.x+(_e.x||0),I.pos.y=ut.y+(ze||0)}}}function de(I){this.axis.getPosition&&se(I.pos,this.axis.getPosition(this.pos))}function Ce(I,K){const ne=this.chart,re=this.center;return I=this.startAngleRad+I,{x:ne.plotLeft+re[0]+Math.cos(I)*K,y:ne.plotTop+re[1]+Math.sin(I)*K}}function Ne(){this.isDirty=!1}function X(){let I,K;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),I=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(K=this.postTranslate(this.angleRad,I[3]/2),I[0]=K.x-this.chart.plotLeft,I[1]=K.y-this.chart.plotTop),this.len=this.width=this.height=(I[2]-I[3])*Q(this.sector,1)/2)}function m(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function H(I){(I=this.options=U(this.constructor.defaultOptions,this.defaultPolarOptions,me[this.coll],I)).plotBands||(I.plotBands=[]),W(this,"afterSetOptions")}function Z(I,K,ne,re,_e,we,Se){const Re=this.axis;return Re.isRadial?["M",K,ne,"L",(I=Re.getPosition(this.pos,Re.center[2]/2+re)).x,I.y]:I.call(this,K,ne,re,_e,we,Se)}const q=[],he={gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},M={labels:{align:"center",distance:-25,x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},B={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};A.compose=function(I,K){return xe.pushUnique(q,I)&&(Ae(I,"afterInit",p),Ae(I,"autoLabelAlign",v),Ae(I,"destroy",P),Ae(I,"init",V),Ae(I,"initialAxisTranslation",D)),xe.pushUnique(q,K)&&(Ae(K,"afterGetLabelPosition",Y),Ae(K,"afterGetPosition",de),x(K.prototype,"getMarkPath",Z)),I}}(y||(y={})),y}),be(Oe,"Series/PolarComposition.js",[Oe["Core/Animation/AnimationUtilities.js"],Oe["Core/Globals.js"],Oe["Core/Series/Series.js"],Oe["Extensions/Pane.js"],Oe["Core/Axis/RadialAxis.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){function Ae(X,m,H,Z){var q=Z?1:0,he=0<=m&&m<=X.length-1?m:0>m?X.length-1+m:0,M=X[m=0>he-1?X.length-(1+q):he-1],B=M.plotY,I=(q=X[he+1>X.length-1?q:he+1]).plotX,K=q.plotY;M=(1.5*(q=X[he].plotX)+M.plotX)/2.5,B=(1.5*(he=X[he].plotY)+B)/2.5,I=(1.5*q+I)/2.5;var ne=(1.5*he+K)/2.5;K=Math.sqrt(Math.pow(M-q,2)+Math.pow(B-he,2));const re=Math.sqrt(Math.pow(I-q,2)+Math.pow(ne-he,2));return M=Math.atan2(B-he,M-q),ne=Math.PI/2+(M+Math.atan2(ne-he,I-q))/2,Math.abs(M-ne)>Math.PI/2&&(ne-=Math.PI),M=q+Math.cos(ne)*K,B=he+Math.sin(ne)*K,q={rightContX:I=q+Math.cos(Math.PI+ne)*re,rightContY:ne=he+Math.sin(Math.PI+ne)*re,leftContX:M,leftContY:B,plotX:q,plotY:he},H&&(q.prevPointCont=Ae(X,m,!1,Z)),q}function ce(){(this.pane||[]).forEach(X=>{X.render()})}function ye(X){const m=X.args[0].xAxis,H=X.args[0].yAxis;X=X.args[0].chart,m&&H&&("polygon"===H.gridLineInterpolation?(m.startOnTick=!0,m.endOnTick=!0):"polygon"===m.gridLineInterpolation&&X.inverted&&(H.startOnTick=!0,H.endOnTick=!0))}function se(){this.pane||(this.pane=[]),this.options.pane=D(this.options.pane),this.options.pane.forEach(X=>{new xe(X,this)},this)}function W(X){var m=X.args.marker,H=this.chart.xAxis[0],Z=this.chart.yAxis[0],q=this.chart.inverted;const he=q?Z:H;if(H=q?H:Z,this.chart.polar){X.preventDefault(),Z=(m.attr?m.attr("start"):m.start)-he.startAngleRad,q=m.attr?m.attr("r"):m.r;let M=(m.attr?m.attr("end"):m.end)-he.startAngleRad;m=m.attr?m.attr("innerR"):m.innerR,X.result.x=Z+he.pos,X.result.width=M-Z,X.result.y=H.len+H.pos-m,X.result.height=m-q}}function U(X){var m=this.chart;if(m.polar&&m.hoverPane&&m.hoverPane.axis){X.preventDefault();var H=m.hoverPane.center,Z=this.mouseDownX||0;const we=this.mouseDownY||0;var q=X.args.chartY;const Se=X.args.chartX;var he=2*Math.PI,M=m.hoverPane.axis.startAngleRad,B=m.hoverPane.axis.endAngleRad,I=m.inverted?m.xAxis[0]:m.yAxis[0];const Re={};var K="arc";if(Re.x=H[0]+m.plotLeft,Re.y=H[1]+m.plotTop,this.zoomHor){var ne=0=re&&(re+=he),0>=_e&&(_e+=he),_eB+(he-ne)/2&&(_e=re,re=0>=M?M:0),he=Re.start=Math.max(re+M,M),ne=Re.end=Math.min(_e+M,B),"polygon"===I.options.gridLineInterpolation){if(_e=he-(K=m.hoverPane.axis).startAngleRad+K.pos,re=ne-he,he=I.getPlotLinePath({value:I.max}),ne=K.toValue(_e),_e=K.toValue(_e+re),neH[2]/2&&(q=H[2]/2),ZX.max?(Z[q].isNull=!0,Z[q].plotY=NaN):Z[q].isNull=Z[q].isValid&&!Z[q].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(R(this,"afterRender",function(){if(H.polar){var he=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:he[0],y:he[1],r:he[2]/2,innerR:he[3]/2});else{{var M=H.renderer,B=he[0],I=he[1],K=he[2]/2,ne=he[3]/2;he=Y();const re=M.createElement("clipPath").attr({id:he}).add(M.defs);(M=ne?M.arc(B,I,K,ne,0,2*Math.PI).add(re):M.circle(B,I,K).add(re)).id=he,M.clipPath=re}this.clipCircle=M}this.group.clip(this.clipCircle),this.setClip=le.noop}})))}}function x(X){const m=this.chart;var H=this.xAxis;return H=H.pane&&H.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(X.chartX-(H&&H[0]||0)-m.plotLeft,X.chartY-(H&&H[1]||0)-m.plotTop)})}function y(X,m,H,Z){const q=Z.tickInterval;let he=h(Z=Z.tickPositions,B=>B>=H),M=h([...Z].reverse(),B=>B<=m);return g(he)||(he=Z[Z.length-1]),g(M)||(M=Z[0],he+=q,X[0][0]="L",X.unshift(X[X.length-3])),(X=X.slice(Z.indexOf(M),Z.indexOf(he)+1))[0][0]="M",X}function A(X,m){return h(this.pane||[],function(H){return H.options.id===m})||X.call(this,m)}function S(X,m,H,Z,q,he){const M=this.chart;var B=P(Z.inside,!!this.options.stacking);M.polar?(X=m.rectPlotX/Math.PI*180,M.inverted?(this.forceDL=M.isInsidePlot(m.plotX,m.plotY),B&&m.shapeArgs?(B=this.yAxis.postTranslate((((B=m.shapeArgs).start||0)+(B.end||0))/2-this.xAxis.startAngleRad,m.barX+m.pointWidth/2),q=v(q,{x:B.x-M.plotLeft,y:B.y-M.plotTop})):m.tooltipPos&&(q=v(q,{x:m.tooltipPos[0],y:m.tooltipPos[1]})),Z.align=P(Z.align,"center"),Z.verticalAlign=P(Z.verticalAlign,"middle")):(null===Z.align&&(Z.align=20X?"left":200X?"right":"center"),null===Z.verticalAlign&&(Z.verticalAlign=45>X||315X?"top":"middle")),ve.prototype.alignDataLabel.call(this,m,H,Z,q,he),this.isRadialBar&&m.shapeArgs&&m.shapeArgs.start===m.shapeArgs.end?H.hide():H.show()):X.call(this,m,H,Z,q,he)}function N(){const X=this.options,m=X.stacking,H=this.chart;var Z=this.xAxis;const q=this.yAxis,he=q.reversed,M=q.center,B=Z.startAngleRad,I=Z.endAngleRad-B;let ne,re,_e,K=0,we=0;var Se=0;if(Z.isRadial){ne=(Z=this.points).length,re=q.translate(q.min),_e=q.translate(q.max);var Re=X.threshold||0;for(H.inverted&&p(Re)&&(K=q.translate(Re),g(K)&&(0>K?K=0:K>I&&(K=I),this.translatedThreshold=K+B));ne--;){var ze=(Re=Z[ne]).barX,ie=Re.x,ee=Re.y;if(Re.shapeType="arc",H.inverted){Re.plotY=q.translate(ee),m&&q.stacking?(ee=q.stacking.stacks[(0>ee?"-":"")+this.stackKey],this.visible&&ee&&ee[ie]&&!Re.isNull&&(Se=ee[ie].points[this.getStackIndicator(void 0,ie,this.index).key],we=q.translate(Se[0]),Se=q.translate(Se[1]),g(we)&&(we=fe.clamp(we,0,I)))):(we=K,Se=Re.plotY),we>Se&&(Se=[we,we=Se][0]),he?Se>re?Se=re:we<_e?we=_e:(we>re||Se<_e)&&(we=Se=I):we_e?Se=_e:(Se_e)&&(we=Se=0),q.min>q.max&&(we=Se=he?I:0),we+=B,Se+=B,M&&(Re.barX=ze+=M[3]/2),ie=Math.max(ze,0),ee=Math.max(ze+Re.pointWidth,0);var Ee=X.borderRadius;Ee=V(("object"==typeof Ee?Ee.radius:Ee)||0,ee-ie),Re.shapeArgs={x:M[0],y:M[1],r:ee,innerR:ie,start:we,end:Se,borderRadius:Ee},Re.opacity=we===Se?0:void 0,Re.plotY=(g(this.translatedThreshold)&&(weM[1])}}}function F(X,m){const H=this;let Z;if(this.chart.polar){m=m||this.points;for(let he=0;he{void 0===he.polarPlotY&&H.polar.toXY(he)})}return q=X.apply(this,[].slice.call(arguments,1)),Z&&m.pop(),q}function G(X,m){const H=this.chart;let Z={xAxis:[],yAxis:[]};return H.polar?H.axes.forEach(q=>{if("colorAxis"!==q.coll){var he=q.isXAxis,M=q.center,B=m.chartX-M[0]-H.plotLeft;M=m.chartY-M[1]-H.plotTop,Z[he?"xAxis":"yAxis"].push({axis:q,value:q.translate(he?Math.PI-Math.atan2(B,M):Math.sqrt(Math.pow(B,2)+Math.pow(M,2)),!0)})}}):Z=X.call(this,m),Z}function b(X,m){this.chart.polar||X.call(this,m)}function w(X,m){const H=this,Z=this.chart,q=this.group,he=this.markerGroup,M=this.xAxis&&this.xAxis.center,B=Z.plotLeft,I=Z.plotTop;let ne,re,_e,we,Se,K=this.options.animation;Z.polar?H.isRadialBar?m||(H.startAngleRad=P(H.translatedThreshold,H.xAxis.startAngleRad),le.seriesTypes.pie.prototype.animate.call(H,m)):(K=O(K),H.is("column")?m||(ne=M[3]/2,H.points.forEach(Re=>{re=Re.graphic,we=(_e=Re.shapeArgs)&&_e.r,Se=_e&&_e.innerR,re&&_e&&(re.attr({r:ne,innerR:ne}),re.animate({r:we,innerR:Se},H.options.animation))})):m?(q.attr(X={translateX:M[0]+B,translateY:M[1]+I,scaleX:.001,scaleY:.001}),he&&he.attr(X)):(q.animate(X={translateX:B,translateY:I,scaleX:1,scaleY:1},K),he&&he.animate(X,K))):X.call(this,m)}function E(X,m,H,Z){return this.chart.polar?Z?(H=(X=Ae(m,Z,!0,this.connectEnds)).prevPointCont&&X.prevPointCont.rightContY,X=["C",p(m=X.prevPointCont&&X.prevPointCont.rightContX)?m:X.plotX,p(H)?H:X.plotY,p(X.leftContX)?X.leftContX:X.plotX,p(X.leftContY)?X.leftContY:X.plotY,X.plotX,X.plotY]):X=["M",H.plotX,H.plotY]:X=X.call(this,m,H,Z),X}const{animObject:O}=oe,{addEvent:R,defined:g,find:h,isNumber:p,merge:v,pick:P,relativeLength:V,splat:D,uniqueKey:Y,wrap:de}=fe,Ce=[];class Ne{static compose(m,H,Z,q,he,M,B,I,K){me.compose(m,he),fe.pushUnique(Ce,H)&&(R(H,"afterDrawChartBox",ce),R(H,"getAxes",se),R(H,"init",ye),de(H.prototype,"get",A)),fe.pushUnique(Ce,Z)&&(de(m=Z.prototype,"getCoordinates",G),de(m,"pinch",b),R(Z,"getSelectionMarkerAttrs",U),R(Z,"getSelectionBox",W)),fe.pushUnique(Ce,q)&&(R(q,"afterInit",Q),R(q,"afterTranslate",te,{order:2}),R(q,"afterColumnTranslate",N,{order:4}),de(q.prototype,"animate",w)),B&&fe.pushUnique(Ce,B)&&(de(Z=B.prototype,"alignDataLabel",S),de(Z,"animate",w)),I&&fe.pushUnique(Ce,I)&&de(I.prototype,"getGraphPath",F),K&&fe.pushUnique(Ce,K)&&(de(I=K.prototype,"getPointSpline",E),M&&fe.pushUnique(Ce,M)&&(M.prototype.getPointSpline=I.getPointSpline))}constructor(m){this.series=m}arc(m,H,Z,q){const he=this.series,M=he.xAxis.center,B=he.yAxis.len,I=M[3]/2;return H=B-H+I,m=B-P(m,B)+I,he.yAxis.reversed&&(0>H&&(H=I),0>m&&(m=I)),{x:M[0],y:M[1],r:H,innerR:m,start:Z,end:q}}toXY(m){var H=this.series;const Z=H.chart,q=H.xAxis;var he=H.yAxis;const M=m.plotX,B=Z.inverted,I=m.y;let K=m.plotY,ne=B?M:he.len-K;B&&H&&!H.isRadialBar&&(m.plotY=K=p(I)?he.translate(I):0),m.rectPlotX=M,m.rectPlotY=K,he.center&&(ne+=he.center[3]/2),p(K)&&(he=B?he.postTranslate(K,ne):q.postTranslate(M,ne),m.plotX=m.polarPlotX=he.x-Z.plotLeft,m.plotY=m.polarPlotY=he.y-Z.plotTop),H.kdByAngle?(0>(H=(M/Math.PI*180+q.pane.options.startAngle)%360)&&(H+=360),m.clientX=H):m.clientX=m.plotX}}return Ne}),be(Oe,"masters/highcharts-more.src.js",[Oe["Core/Globals.js"],Oe["Core/Series/SeriesRegistry.js"],Oe["Series/Bubble/BubbleSeries.js"],Oe["Series/PackedBubble/PackedBubbleSeries.js"],Oe["Series/PolarComposition.js"]],function(oe,le,ve,xe,me){ve.compose(oe.Axis,oe.Chart,oe.Legend,oe.Series),xe.compose(oe.Axis,oe.Chart,oe.Legend,oe.Series),me.compose(oe.Axis,oe.Chart,oe.Pointer,oe.Series,oe.Tick,le.seriesTypes.areasplinerange,le.seriesTypes.column,le.seriesTypes.line,le.seriesTypes.spline)})},Hn.exports?(Oe.default=Oe,Hn.exports=Oe):(Di=[In(282)],void 0!==(Kn=function(be){return Oe(be),Oe.Highcharts=be,Oe}.apply(An,Di))&&(Hn.exports=Kn))},282:function(Hn,An,In){"use strict";var Di,Kn,Oe;Kn="undefined"!=typeof window?window:this,Oe=function(Kn){function Oe(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&Kn.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}var be={};return Oe(be,"Core/Globals.js",[],function(){var oe,le;return(le=oe||(oe={})).SVG_NS="http://www.w3.org/2000/svg",le.product="Highcharts",le.version="11.1.0",le.win=void 0!==Kn?Kn:{},le.doc=le.win.document,le.svg=le.doc&&le.doc.createElementNS&&!!le.doc.createElementNS(le.SVG_NS,"svg").createSVGRect,le.userAgent=le.win.navigator&&le.win.navigator.userAgent||"",le.isChrome=-1!==le.userAgent.indexOf("Chrome"),le.isFirefox=-1!==le.userAgent.indexOf("Firefox"),le.isMS=/(edge|msie|trident)/i.test(le.userAgent)&&!le.win.opera,le.isSafari=!le.isChrome&&-1!==le.userAgent.indexOf("Safari"),le.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(le.userAgent),le.isWebKit=-1!==le.userAgent.indexOf("AppleWebKit"),le.deg2rad=2*Math.PI/360,le.hasBidiBug=le.isFirefox&&4>parseInt(le.userAgent.split("Firefox/")[1],10),le.hasTouch=!!le.win.TouchEvent,le.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],le.noop=function(){},le.supportsPassiveEvents=function(){let ve=!1;if(!le.isMS){const xe=Object.defineProperty({},"passive",{get:function(){ve=!0}});le.win.addEventListener&&le.win.removeEventListener&&(le.win.addEventListener("testPassive",le.noop,xe),le.win.removeEventListener("testPassive",le.noop,xe))}return ve}(),le.charts=[],le.dateFormats={},le.seriesTypes={},le.symbolSizes={},le.chartCount=0,oe}),Oe(be,"Core/Utilities.js",[be["Core/Globals.js"]],function(oe){function le(h,p,v,P){const V=p?"Highcharts error":"Highcharts warning";32===h&&(h=`${V}: Deprecated member`);const D=ye(h);let Y=D?`${V} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(void 0!==P){let de="";D&&(Y+="?"),N(P,function(Ce,Ne){de+=`\n - ${Ne}: ${Ce}`,D&&(Y+=encodeURI(Ne)+"="+encodeURI(Ce))}),Y+=de}G(oe,"displayError",{chart:v,code:h,message:Y,params:P},function(){if(p)throw Error(Y);E.console&&-1===le.messages.indexOf(Y)&&console.warn(Y)}),le.messages.push(Y)}function ve(h,p){return parseInt(h,p||10)}function xe(h){return"string"==typeof h}function me(h){return"[object Array]"===(h=Object.prototype.toString.call(h))||"[object Array Iterator]"===h}function fe(h,p){return!(!h||"object"!=typeof h||p&&me(h))}function Ae(h){return fe(h)&&"number"==typeof h.nodeType}function ce(h){const p=h&&h.constructor;return!(!fe(h,!0)||Ae(h)||!p||!p.name||"Object"===p.name)}function ye(h){return"number"==typeof h&&!isNaN(h)&&1/0>h&&-1/0{se(Y)?h.setAttribute(de,Y):P?(V=h.getAttribute(de))||"class"!==de||(V=h.getAttribute(de+"Name")):h.removeAttribute(de)};return xe(p)?D(v,p):N(p,D),V}function U(h){return me(h)?h:[h]}function Q(h,p){let v;for(v in h||(h={}),p)h[v]=p[v];return h}function te(){const h=arguments,p=h.length;for(let v=0;vde.order-Ce.order),V.forEach(de=>{!1===de.fn.call(h,v)&&v.preventDefault()})}P&&!v.defaultPrevented&&P.call(h,v)}const{charts:b,doc:w,win:E}=oe;(le||(le={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};var O=Array.prototype.find?function(h,p){return h.find(p)}:function(h,p){let v;const P=h.length;for(v=0;vY.order-de.order),function(){F(h,p,v)}},arrayMax:function(h){let p=h.length,v=h[0];for(;p--;)h[p]>v&&(v=h[p]);return v},arrayMin:function(h){let p=h.length,v=h[0];for(;p--;)h[p]p?h{if(1D&&!v?(null==p||p(),p=void 0):D&&(void 0===P||D=p-1&&(p=Math.floor(v)),Math.max(0,p-(S(h,"padding-left",!0)||0)-(S(h,"padding-right",!0)||0))):"height"===p?Math.max(0,Math.min(h.offsetHeight,h.scrollHeight)-(S(h,"padding-top",!0)||0)-(S(h,"padding-bottom",!0)||0)):((h=E.getComputedStyle(h,void 0))&&(P=h.getPropertyValue(p),te(v,"opacity"!==p)&&(P=ve(P))),P)},inArray:function(h,p,v){return le(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),p.indexOf(h,v)},insertItem:function(h,p){const v=h.options.index,P=p.length;let V;for(V=h.options.isInternal?P:0;V=v&&(p=[1/v]))),P=0;P=h||!V&&Y<=(p[P]+(p[P+1]||p[P]))/2));P++);return A(D*v,-Math.round(Math.log(.001)/Math.LN10))},objectEach:N,offset:function(h){const p=w.documentElement;return{top:(h=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(E.pageYOffset||p.scrollTop)-(p.clientTop||0),left:h.left+(E.pageXOffset||p.scrollLeft)-(p.clientLeft||0),width:h.width,height:h.height}},pad:function(h,p,v){return Array((p||2)+1-String(h).replace("-","").length).join(v||"0")+h},pick:te,pInt:ve,pushUnique:function(h,p){return 0>h.indexOf(p)&&!!h.push(p)},relativeLength:function(h,p,v){return/%$/.test(h)?p*parseFloat(h)/100+(v||0):parseFloat(h)},removeEvent:F,splat:U,stableSort:function(h,p){const v=h.length;let P,V;for(V=0;Vnew fe(Q[1]));else if("string"==typeof ce){if(this.input=ce=fe.names[ce.toLowerCase()]||ce,"#"===ce.charAt(0)){var W=ce.length,U=parseInt(ce.substr(1),16);7===W?ye=[(16711680&U)>>16,(65280&U)>>8,255&U,1]:4===W&&(ye=[(3840&U)>>4|(3840&U)>>8,(240&U)>>4|240&U,(15&U)<<4|15&U,1])}if(!ye)for(U=fe.parsers.length;U--&&!ye;)se=fe.parsers[U],(W=se.regex.exec(ce))&&(ye=se.parse(W))}ye&&(this.rgba=ye)}get(ce){const ye=this.input,se=this.rgba;if("object"==typeof ye&&void 0!==this.stops){const W=xe(ye);return W.stops=[].slice.call(W.stops),this.stops.forEach((U,Q)=>{W.stops[Q]=[W.stops[Q][0],U.get(ce)]}),W}return se&&ve(se[0])?"rgb"===ce||!ce&&1===se[3]?"rgb("+se[0]+","+se[1]+","+se[2]+")":"a"===ce?`${se[3]}`:"rgba("+se.join(",")+")":ye}brighten(ce){const ye=this.rgba;if(this.stops)this.stops.forEach(function(se){se.brighten(ce)});else if(ve(ce)&&0!==ce)for(let se=0;3>se;se++)ye[se]+=me(255*ce),0>ye[se]&&(ye[se]=0),255w?"AM":"PM",P:12>w?"am":"pm",S:se(b.getSeconds()),L:se(Math.floor(N%1e3),3)},oe.dateFormats),ye(b,function(P,V){for(;-1!==S.indexOf("%"+V);)S=S.replace("%"+V,"function"==typeof P?P.call(G,N):P)}),F?S.substr(0,1).toUpperCase()+S.substr(1):S}resolveDTLFormat(S){return Ae(S,!0)?S:{main:(S=U(S))[0],from:S[1],to:S[2]}}getTimeTicks(S,N,F,G){const b=this,w=[],E={};var O=new b.Date(N);const R=S.unitRange,g=S.count||1;let h;if(G=W(G,1),xe(N)){if(b.set("Milliseconds",O,R>=Q.second?0:g*Math.floor(b.get("Milliseconds",O)/g)),R>=Q.second&&b.set("Seconds",O,R>=Q.minute?0:g*Math.floor(b.get("Seconds",O)/g)),R>=Q.minute&&b.set("Minutes",O,R>=Q.hour?0:g*Math.floor(b.get("Minutes",O)/g)),R>=Q.hour&&b.set("Hours",O,R>=Q.day?0:g*Math.floor(b.get("Hours",O)/g)),R>=Q.day&&b.set("Date",O,R>=Q.month?1:Math.max(1,g*Math.floor(b.get("Date",O)/g))),R>=Q.month){b.set("Month",O,R>=Q.year?0:g*Math.floor(b.get("Month",O)/g));var p=b.get("FullYear",O)}R>=Q.year&&b.set("FullYear",O,p-p%g),R===Q.week&&(p=b.get("Day",O),b.set("Date",O,b.get("Date",O)-p+G+(p4*Q.month||b.getTimezoneOffset(N)!==b.getTimezoneOffset(F)),N=O.getTime(),O=1;Nw.length&&w.forEach(function(V){V%18e5==0&&"000000000"===b.dateFormat("%H%M%S%L",V)&&(E[V]="day")})}return w.info=fe(S,{higherRanks:E,totalRange:R*g}),w}getDateFormat(S,N,F,G){const b=this.dateFormat("%m-%d %H:%M:%S.%L",N),w={millisecond:15,second:12,minute:9,hour:6,day:3};let E,O="millisecond";for(E in Q){if(S===Q.week&&+this.dateFormat("%w",N)===F&&"00:00:00.000"===b.substr(6)){E="week";break}if(Q[E]>S){E=O;break}if(w[E]&&b.substr(w[E])!=="01-01 00:00:00.000".substr(w[E]))break;"week"!==E&&(O=E)}return this.resolveDTLFormat(G[E]).main}}}),Oe(be,"Core/Defaults.js",[be["Core/Chart/ChartDefaults.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Color/Palettes.js"],be["Core/Time.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){const{isTouchDevice:Ae,svg:ce}=ve,{merge:ye}=fe,se={colors:xe.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:oe,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:ce,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:Ae?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};se.chart.styledMode=!1;const W=new me(se.time);return{defaultOptions:se,defaultTime:W,getOptions:function(){return se},setOptions:function(U){return ye(!0,se,U),(U.time||U.global)&&(ve.time?ve.time.update(ye(se.global,se.time,U.global,U.time)):ve.time=W),se}}}),Oe(be,"Core/Animation/Fx.js",[be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{parse:xe}=oe,{win:me}=le,{isNumber:fe,objectEach:Ae}=ve;return(()=>{class ye{constructor(W,U,Q){this.pos=NaN,this.options=U,this.elem=W,this.prop=Q}dSetter(){var W=this.paths;const U=W&&W[0];W=W&&W[1];const Q=this.now||0;let te=[];if(1!==Q&&U&&W)if(U.length===W.length&&1>Q)for(let x=0;x=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),S=A[this.prop]=!0,Ae(A,function(N){!0!==N&&(S=!1)}),S&&x&&x.call(te),W=!1):(this.pos=Q.easing((U-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),W=!0),W}initPath(W,U,Q){function te(w,E){for(;w.length{N=ve(N.options.animation),A=te&&me(te.defer)?y.defer:Math.max(A,N.duration+N.defer),S=Math.min(y.duration,N.duration)}),Q.renderer.forExport&&(A=0),{defer:Math.max(0,A-S),duration:Math.min(A,S)}},setAnimation:function(Q,te){te.renderer.globalAnimation=U(Q,te.options.chart.animation,!0)},stop:xe}}),Oe(be,"Core/Renderer/HTML/AST.js",[be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le){const{SVG_NS:ve,win:xe}=oe,{attr:me,createElement:fe,css:Ae,error:ce,isFunction:ye,isString:se,objectEach:W,splat:U}=le;({trustedTypes:le}=xe);const Q=le&&ye(le.createPolicy)&&le.createPolicy("highcharts",{createHTML:A=>A});le=Q?Q.createHTML(""):"";try{var te=!!(new DOMParser).parseFromString(le,"text/html")}catch(A){te=!1}const x=te;class y{static filterUserAttributes(S){return W(S,(N,F)=>{let G=!0;-1===y.allowedAttributes.indexOf(F)&&(G=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(F)&&(G=se(N)&&y.allowedReferences.some(b=>0===N.indexOf(b))),G||(ce(33,!1,void 0,{"Invalid attribute in config":`${F}`}),delete S[F]),se(N)&&S[F]&&(S[F]=N.replace(/{const G=(F=F.split(":").map(b=>b.trim())).shift();return G&&F.length&&(N[G.replace(/-([a-z])/g,b=>b[1].toUpperCase())]=F.join(":")),N},{})}static setElementHTML(S,N){S.innerHTML=y.emptyHTML,N&&new y(N).addToDOM(S)}constructor(S){this.nodes="string"==typeof S?this.parseMarkup(S):S}addToDOM(S){return function N(F,G){let b;return U(F).forEach(function(w){var E=w.tagName;const O=w.textContent?oe.doc.createTextNode(w.textContent):void 0,R=y.bypassHTMLFiltering;let g;if(E)if("#text"===E)g=O;else if(-1!==y.allowedTags.indexOf(E)||R){E=oe.doc.createElementNS("svg"===E?ve:G.namespaceURI||ve,E);const h=w.attributes||{};W(w,function(p,v){"tagName"!==v&&"attributes"!==v&&"children"!==v&&"style"!==v&&"textContent"!==v&&(h[v]=p)}),me(E,R?h:y.filterUserAttributes(h)),w.style&&Ae(E,w.style),O&&E.appendChild(O),N(w.children||[],E),g=E}else ce(33,!1,void 0,{"Invalid tagName in config":E});g&&G.appendChild(g),b=g}),b}(this.nodes,S)}parseMarkup(S){const N=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),x)S=(new DOMParser).parseFromString(Q?Q.createHTML(S):S,"text/html");else{const G=fe("div");G.innerHTML=S,S={body:G}}const F=(G,b)=>{var w=G.nodeName.toLowerCase();const E={tagName:w};if("#text"===w&&(E.textContent=G.textContent||""),w=G.attributes){const O={};[].forEach.call(w,R=>{"data-style"===R.name?E.style=y.parseStyle(R.value):O[R.name]=R.value}),E.attributes=O}if(G.childNodes.length){const O=[];[].forEach.call(G.childNodes,R=>{F(R,O)}),O.length&&(E.children=O)}b.push(E)};return[].forEach.call(S.body.childNodes,G=>F(G,N)),N}}return y.allowedAttributes="alt aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),y.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),y.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),y.emptyHTML=le,y.bypassHTMLFiltering=!1,y}),Oe(be,"Core/Templating.js",[be["Core/Defaults.js"],be["Core/Utilities.js"]],function(oe,le){function ve(x="",y,A){const S=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,N=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,F=[],G=/f$/,b=/\.([0-9])/,w=me.lang,E=A&&A.time||fe,O=A&&A.numberFormatter||xe,R=(D="")=>{let Y;return"true"===D||"false"!==D&&((Y=Number(D)).toString()===D?Y:ce(D,y))};let g,h,v,p=0;for(;null!==(g=S.exec(x));){const D=N.exec(g[1]);D&&(g=D,v=!0),h&&h.isBlock||(h={ctx:y,expression:g[1],find:g[0],isBlock:"#"===g[1].charAt(0),start:g.index,startInner:g.index+g[0].length,length:g[0].length});var P=g[1].split(" ")[0].replace("#","");if(te[P]&&(h.isBlock&&P===h.fn&&p++,h.fn||(h.fn=P)),P="else"===g[1],h.isBlock&&h.fn&&(g[1]===`/${h.fn}`||P))if(p)P||p--;else{var V=h.startInner;V=x.substr(V,g.index-V),void 0===h.body?(h.body=V,h.startInner=g.index+g[0].length):h.elseBody=V,h.find+=V+g[0],P||(F.push(h),h=void 0)}else h.isBlock||F.push(h);if(D&&(null==h||!h.isBlock))break}return F.forEach(D=>{const{body:Y,elseBody:de,expression:Ce,fn:Ne}=D;var X;if(Ne){var m=[D],H=Ce.split(" ");for(X=te[Ne].length;X--;)m.unshift(R(H[X+1]));X=te[Ne].apply(y,m),D.isBlock&&"boolean"==typeof X&&(X=ve(X?Y:de,y))}else m=Ce.split(":"),X=R(m.shift()||""),m.length&&"number"==typeof X&&(m=m.join(":"),G.test(m)?(H=parseInt((m.match(b)||["","-1"])[1],10),null!==X&&(X=O(X,H,w.decimalPoint,-1G[1]){var w=y+ +G[1];0<=w?(G[0]=(+G[0]).toExponential(w).split("e")[0],y=w):(G[0]=G[0].split(".")[0]||0,x=20>y?(G[0]*Math.pow(10,G[1])).toFixed(y):0,G[1]=0)}}else y=2;w=(Math.abs(G[1]?G[0]:x)+Math.pow(10,-Math.max(y,F)-1)).toFixed(y);const E=3<(F=String(Q(w))).length?F.length%3:0;return A=U(A,N.decimalPoint),S=U(S,N.thousandsSep),x=(0>x?"-":"")+(E?F.substr(0,E)+S:""),x=0>+G[1]&&!b?"0":x+F.substr(E).replace(/(\d{3})(?=\d)/g,"$1"+S),y&&(x+=A+w.slice(-y)),G[1]&&0!=+x&&(x+="e"+G[1]),x}const{defaultOptions:me,defaultTime:fe}=oe,{extend:Ae,getNestedProperty:ce,isArray:ye,isNumber:se,isObject:W,pick:U,pInt:Q}=le,te={add:(x,y)=>x+y,divide:(x,y)=>0!==y?x/y:"",eq:(x,y)=>x==y,each:function(x){const y=arguments[arguments.length-1];return!!ye(x)&&x.map((A,S)=>ve(y.body,Ae(W(A)?A:{"@this":A},{"@index":S,"@first":0===S,"@last":S===x.length-1}))).join("")},ge:(x,y)=>x>=y,gt:(x,y)=>x>y,if:x=>!!x,le:(x,y)=>x<=y,lt:(x,y)=>xx*y,ne:(x,y)=>x!=y,subtract:(x,y)=>x-y,unless:x=>!x};return{dateFormat:function(x,y,A){return fe.dateFormat(x,y,A)},format:ve,helpers:te,numberFormat:xe}}),Oe(be,"Core/Renderer/RendererUtilities.js",[be["Core/Utilities.js"]],function(oe){const{clamp:le,pick:ve,stableSort:xe}=oe;var me;return(me||(me={})).distribute=function Ae(ce,ye,se){const W=ce;var U=W.reducedLen||ye,Q=(N,F)=>(F.rank||0)-(N.rank||0);const te=(N,F)=>N.target-F.target;let x,y=!0,A=[],S=0;for(x=ce.length;x--;)S+=ce[x].size;if(S>U){for(xe(ce,Q),S=x=0;S<=U;)S+=ce[x].size,x++;A=ce.splice(x-1,ce.length)}for(xe(ce,te),ce=ce.map(N=>({size:N.size,targets:[N.target],align:ve(N.align,.5)}));y;){for(x=ce.length;x--;)U=ce[x],Q=(Math.min.apply(0,U.targets)+Math.max.apply(0,U.targets))/2,U.pos=le(Q-U.size*U.align,0,ye-U.size);for(x=ce.length,y=!1;x--;)0ce[x].pos&&(ce[x-1].size+=ce[x].size,ce[x-1].targets=ce[x-1].targets.concat(ce[x].targets),ce[x-1].align=.5,ce[x-1].pos+ce[x-1].size>ye&&(ce[x-1].pos=ye-ce[x-1].size),ce.splice(x,1),y=!0)}return W.push.apply(W,A),x=0,ce.some(N=>{let F=0;return(N.targets||[]).some(()=>(W[x].pos=N.pos+F,void 0!==se&&Math.abs(W[x].pos-W[x].target)>se?(W.slice(0,x+1).forEach(G=>delete G.pos),W.reducedLen=(W.reducedLen||ye)-.1*ye,W.reducedLen>.1*ye&&Ae(W,ye,se),!0):(F+=W[x].size,x++,!1)))}),xe(W,te),W},me}),Oe(be,"Core/Renderer/SVG/SVGElement.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{animate:me,animObject:fe,stop:Ae}=oe,{deg2rad:ce,doc:ye,svg:se,SVG_NS:W,win:U}=ve,{addEvent:Q,attr:te,createElement:x,css:y,defined:A,erase:S,extend:N,fireEvent:F,isArray:G,isFunction:b,isObject:w,isString:E,merge:O,objectEach:R,pick:g,pInt:h,syncTimeout:p,uniqueKey:v}=xe;class P{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=W}_defaultGetter(D){return D=g(this[D+"Value"],this[D],this.element?this.element.getAttribute(D):null,0),/^[\-0-9\.]+$/.test(D)&&(D=parseFloat(D)),D}_defaultSetter(D,Y,de){de.setAttribute(Y,D)}add(D){const Y=this.renderer,de=this.element;let Ce;return D&&(this.parentGroup=D),void 0!==this.textStr&&"text"===this.element.nodeName&&Y.buildText(this),this.added=!0,(!D||D.handleZ||this.zIndex)&&(Ce=this.zIndexSetter()),Ce||(D?D.element:Y.box).appendChild(de),this.onAdd&&this.onAdd(),this}addClass(D,Y){const de=Y?"":this.attr("class")||"";return(D=(D||"").split(/ /g).reduce(function(Ce,Ne){return-1===de.indexOf(Ne)&&Ce.push(Ne),Ce},de?[de]:[]).join(" "))!==de&&this.attr("class",D),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(D,Y,de){const Ce={};var m,Ne=this.renderer,X=Ne.alignedObjects;let H,Z;D?(this.alignOptions=D,this.alignByTranslate=Y,(!de||E(de))&&(this.alignTo=m=de||"renderer",S(X,this),X.push(this),de=void 0)):(D=this.alignOptions,Y=this.alignByTranslate,m=this.alignTo),de=g(de,Ne[m],"scrollablePlotBox"===m?Ne.plotBox:void 0,Ne);const q=D.verticalAlign;return Ne=(de.x||0)+(D.x||0),X=(de.y||0)+(D.y||0),"right"===(m=D.align)?H=1:"center"===m&&(H=2),H&&(Ne+=(de.width-(D.width||0))/H),Ce[Y?"translateX":"x"]=Math.round(Ne),"bottom"===q?Z=1:"middle"===q&&(Z=2),Z&&(X+=(de.height-(D.height||0))/Z),Ce[Y?"translateY":"y"]=Math.round(X),this[this.placed?"animate":"attr"](Ce),this.placed=!0,this.alignAttr=Ce,this}alignSetter(D){const Y={left:"start",center:"middle",right:"end"};Y[D]&&(this.alignValue=D,this.element.setAttribute("text-anchor",Y[D]))}animate(D,Y,de){const Ce=fe(g(Y,this.renderer.globalAnimation,!0));return Y=Ce.defer,ye.hidden&&(Ce.duration=0),0!==Ce.duration?(de&&(Ce.complete=de),p(()=>{this.element&&me(this,D,Ce)},Y)):(this.attr(D,void 0,de||Ce.complete),R(D,function(Ne,X){Ce.step&&Ce.step.call(this,Ne,{prop:X,pos:1,elem:this})},this)),this}applyTextOutline(D){const Y=this.element;-1!==D.indexOf("contrast")&&(D=D.replace(/contrast/g,this.renderer.getContrast(Y.style.fill)));var de=D.split(" ");if(D=de[de.length-1],(de=de[0])&&"none"!==de&&ve.svg){this.fakeTS=!0,de=de.replace(/(^[\d\.]+)(.*?)$/g,function(X,m,H){return 2*Number(m)+H}),this.removeTextOutline();const Ce=ye.createElementNS(W,"tspan");te(Ce,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":de,"stroke-linejoin":"round"}),D=Y.querySelector("textPath")||Y,[].forEach.call(D.childNodes,X=>{const m=X.cloneNode(!0);m.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(H=>m.removeAttribute(H)),Ce.appendChild(m)});let Ne=0;[].forEach.call(D.querySelectorAll("text tspan"),X=>{Ne+=Number(X.getAttribute("dy"))}),(de=ye.createElementNS(W,"tspan")).textContent="\u200b",te(de,{x:Number(Y.getAttribute("x")),dy:-Ne}),Ce.appendChild(de),D.insertBefore(Ce,D.firstChild)}}attr(D,Y,de,Ce){const Ne=this.element,X=P.symbolCustomAttribs;let m,H,q,he,Z=this;return"string"==typeof D&&void 0!==Y&&(m=D,(D={})[m]=Y),"string"==typeof D?Z=(this[D+"Getter"]||this._defaultGetter).call(this,D,Ne):(R(D,function(M,B){q=!1,Ce||Ae(this,B),this.symbolName&&-1!==X.indexOf(B)&&(H||(this.symbolAttr(D),H=!0),q=!0),!this.rotation||"x"!==B&&"y"!==B||(this.doTransform=!0),q||(he=this[B+"Setter"]||this._defaultSetter,he.call(this,M,B,Ne))},this),this.afterSetters()),de&&de.call(this),Z}clip(D){return this.attr("clip-path",D?"url("+this.renderer.url+"#"+D.id+")":"none")}crisp(D,Y){Y=Y||D.strokeWidth||0;const de=Math.round(Y)%2/2;return D.x=Math.floor(D.x||this.x||0)+de,D.y=Math.floor(D.y||this.y||0)+de,D.width=Math.floor((D.width||this.width||0)-2*de),D.height=Math.floor((D.height||this.height||0)-2*de),A(D.strokeWidth)&&(D.strokeWidth=Y),D}complexColor(D,Y,de){const Ce=this.renderer;let Ne,X,m,H,Z,q,he,M,B,I,ne,K=[];F(this.renderer,"complexColor",{args:arguments},function(){if(D.radialGradient?X="radialGradient":D.linearGradient&&(X="linearGradient"),X){if(m=D[X],Z=Ce.gradients,q=D.stops,B=de.radialReference,G(m)&&(D[X]=m={x1:m[0],y1:m[1],x2:m[2],y2:m[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===X&&B&&!A(m.gradientUnits)&&(H=m,m=O(m,Ce.getRadialAttr(B,H),{gradientUnits:"userSpaceOnUse"})),R(m,function(re,_e){"id"!==_e&&K.push(_e,re)}),R(q,function(re){K.push(re)}),K=K.join(","),Z[K])I=Z[K].attr("id");else{m.id=I=v();const re=Z[K]=Ce.createElement(X).attr(m).add(Ce.defs);re.radAttr=H,re.stops=[],q.forEach(function(_e){0===_e[1].indexOf("rgba")?(Ne=le.parse(_e[1]),he=Ne.get("rgb"),M=Ne.get("a")):(he=_e[1],M=1),_e=Ce.createElement("stop").attr({offset:_e[0],"stop-color":he,"stop-opacity":M}).add(re),re.stops.push(_e)})}ne="url("+Ce.url+"#"+I+")",de.setAttribute(Y,ne),de.gradient=K,D.toString=function(){return ne}}})}css(D){const Y=this.styles,de={},Ce=this.element;let Ne,X=!Y;if(Y&&R(D,function(m,H){Y&&Y[H]!==m&&(de[H]=m,X=!0)}),X){Y&&(D=N(Y,de)),null===D.width||"auto"===D.width?delete this.textWidth:"text"===Ce.nodeName.toLowerCase()&&D.width&&(Ne=this.textWidth=h(D.width)),this.styles=D,Ne&&!se&&this.renderer.forExport&&delete D.width;const m=O(D);Ce.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(H=>m&&delete m[H]),m.color&&(m.fill=m.color)),y(Ce,m)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),D.textOutline&&this.applyTextOutline(D.textOutline)),this}dashstyleSetter(D){let Y=this["stroke-width"];if("inherit"===Y&&(Y=1),D=D&&D.toLowerCase()){const de=D.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(D=de.length;D--;)de[D]=""+h(de[D])*g(Y,NaN);D=de.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",D)}}destroy(){const D=this;var Y=D.element||{};const de=D.renderer;var Ce=Y.ownerSVGElement;let Ne="SPAN"===Y.nodeName&&D.parentGroup||void 0;if(Y.onclick=Y.onmouseout=Y.onmouseover=Y.onmousemove=Y.point=null,Ae(D),D.clipPath&&Ce){const X=D.clipPath;[].forEach.call(Ce.querySelectorAll("[clip-path],[CLIP-PATH]"),function(m){-1Ne&&Ne.join?(X?Ce+" ":"")+Ne.join(" "):(Ne||"").toString(),"")),/(NaN| {2}|^$)/.test(D)&&(D="M 0 0"),this[Y]!==D&&(de.setAttribute(Y,D),this[Y]=D)}fadeOut(D){const Y=this;Y.animate({opacity:0},{duration:g(D,150),complete:function(){Y.hide()}})}fillSetter(D,Y,de){"string"==typeof D?de.setAttribute(Y,D):D&&this.complexColor(D,Y,de)}getBBox(D,Y){const{alignValue:de,element:Ce,renderer:Ne,styles:X,textStr:m}=this,{cache:H,cacheKeys:Z}=Ne;var q=Ce.namespaceURI===this.SVG_NS;Y=g(Y,this.rotation,0);var he=Ne.styledMode?Ce&&P.prototype.getStyle.call(Ce,"font-size"):X&&X.fontSize;let M,B;if(A(m)&&(B=m.toString(),-1===B.indexOf("<")&&(B=B.replace(/[0-9]/g,"0")),B+=["",Ne.rootFontSize,he,Y,this.textWidth,de,X&&X.textOverflow,X&&X.fontWeight].join()),B&&!D&&(M=H[B]),!M){if(q||Ne.forExport){try{var I=this.fakeTS&&function(we){const Se=Ce.querySelector(".highcharts-text-outline");Se&&y(Se,{display:we})};b(I)&&I("none"),M=Ce.getBBox?N({},Ce.getBBox()):{width:Ce.offsetWidth,height:Ce.offsetHeight,x:0,y:0},b(I)&&I("")}catch(we){}(!M||0>M.width)&&(M={x:0,y:0,width:0,height:0})}else M=this.htmlGetBBox();if(I=M.width,D=M.height,q&&(M.height=D={"11px,17":14,"13px,20":16}[`${he||""},${Math.round(D)}`]||D),Y){q=Number(Ce.getAttribute("y")||0)-M.y,he={right:1,center:.5}[de||0]||0;var K=Y*ce,ne=(Y-90)*ce,re=I*Math.cos(K);Y=I*Math.sin(K);var _e=Math.cos(ne);K=Math.sin(ne),re=(_e=(ne=(I=M.x+he*(I-re)+q*_e)+re)-D*_e)-re,Y=(D=(he=(q=M.y+q-he*Y+q*K)+Y)-D*K)-Y,M.x=Math.min(I,ne,_e,re),M.y=Math.min(q,he,D,Y),M.width=Math.max(I,ne,_e,re)-M.x,M.height=Math.max(q,he,D,Y)-M.y}}if(B&&(""===m||0{if(D&&m){let q=D.attr("id");q||D.attr("id",q=v());var Z={x:0,y:0};A(X.dx)&&(Z.dx=X.dx,delete X.dx),A(X.dy)&&(Z.dy=X.dy,delete X.dy),Ce.attr(Z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),Z=H.nodes.slice(0),H.nodes.length=0,H.nodes[0]={tagName:"textPath",attributes:N(X,{"text-anchor":X.textAnchor,href:`${de}#${q}`}),children:Z}}}),Ce.textPath={path:D,undo:Y}):(Ce.attr({dx:0,dy:0}),delete Ce.textPath),this.added&&(Ce.textCache="",this.renderer.buildText(Ce)),this}shadow(D){var Y;const{renderer:de}=this,Ce=O(90===(null===(Y=this.parentGroup)||void 0===Y?void 0:Y.rotation)?{offsetX:-1,offsetY:-1}:{},w(D)?D:{});return Y=de.shadowDefinition(Ce),this.attr({filter:D?`url(${de.url}#${Y})`:"none"})}show(D=!0){return this.attr({visibility:D?"inherit":"visible"})}"stroke-widthSetter"(D,Y,de){this[Y]=D,de.setAttribute(Y,D)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const D=this.getStyle("stroke-width");let de,Y=0;return D.indexOf("px")===D.length-2?Y=h(D):""!==D&&(de=ye.createElementNS(W,"rect"),te(de,{width:D,"stroke-width":0}),this.element.parentNode.appendChild(de),Y=de.getBBox().width,de.parentNode.removeChild(de)),Y}symbolAttr(D){const Y=this;P.symbolCustomAttribs.forEach(function(de){Y[de]=g(D[de],Y[de])}),Y.attr({d:Y.renderer.symbols[Y.symbolName](Y.x,Y.y,Y.width,Y.height,Y)})}textSetter(D){D!==this.textStr&&(delete this.textPxLength,this.textStr=D,this.added&&this.renderer.buildText(this))}titleSetter(D){const Y=this.element,de=Y.getElementsByTagName("title")[0]||ye.createElementNS(this.SVG_NS,"title");Y.insertBefore?Y.insertBefore(de,Y.firstChild):Y.appendChild(de),de.textContent=String(g(D,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){const D=this.element;return D.parentNode.appendChild(D),this}translate(D,Y){return this.attr({translateX:D,translateY:Y})}updateTransform(){const{element:D,matrix:Y,rotation:de=0,scaleX:Ce,scaleY:Ne,translateX:X=0,translateY:m=0}=this,H=["translate("+X+","+m+")"];A(Y)&&H.push("matrix("+Y.join(",")+")"),de&&H.push("rotate("+de+" "+g(this.rotationOriginX,D.getAttribute("x"),0)+" "+g(this.rotationOriginY,D.getAttribute("y")||0)+")"),(A(Ce)||A(Ne))&&H.push("scale("+g(Ce,1)+" "+g(Ne,1)+")"),H.length&&!(this.text||this).textPath&&D.setAttribute("transform",H.join(" "))}visibilitySetter(D,Y,de){"inherit"===D?de.removeAttribute(Y):this[Y]!==D&&de.setAttribute(Y,D),this[Y]=D}xGetter(D){return"circle"===this.element.nodeName&&("x"===D?D="cx":"y"===D&&(D="cy")),this._defaultGetter(D)}zIndexSetter(D,Y){var de=this.renderer,Ce=this.parentGroup;const Ne=(Ce||de).element||de.box,X=this.element;de=Ne===de.box;let H,m=!1;var Z=this.added;let q;if(A(D)?(X.setAttribute("data-z-index",D),this[Y]===(D=+D)&&(Z=!1)):A(this[Y])&&X.removeAttribute("data-z-index"),this[Y]=D,Z){for((D=this.zIndex)&&Ce&&(Ce.handleZ=!0),q=(Y=Ne.childNodes).length-1;0<=q&&!m;q--)Z=(Ce=Y[q]).getAttribute("data-z-index"),H=!A(Z),Ce!==X&&(0>D&&H&&!de&&!q?(Ne.insertBefore(X,Y[q]),m=!0):(h(Z)<=D||H&&(!A(D)||0<=D))&&(Ne.insertBefore(X,Y[q+1]),m=!0));m||(Ne.insertBefore(X,Y[de?3:0]),m=!0)}return m}}return P.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),P.prototype.strokeSetter=P.prototype.fillSetter,P.prototype.yGetter=P.prototype.xGetter,P.prototype.matrixSetter=P.prototype.rotationOriginXSetter=P.prototype.rotationOriginYSetter=P.prototype.rotationSetter=P.prototype.scaleXSetter=P.prototype.scaleYSetter=P.prototype.translateXSetter=P.prototype.translateYSetter=P.prototype.verticalAlignSetter=function(V,D){this[D]=V,this.doTransform=!0},P}),Oe(be,"Core/Renderer/RendererRegistry.js",[be["Core/Globals.js"]],function(oe){var le;return function(ve){let xe;ve.rendererTypes={},ve.getRendererType=function(me=xe){return ve.rendererTypes[me]||ve.rendererTypes[xe]},ve.registerRendererType=function(me,fe,Ae){ve.rendererTypes[me]=fe,(!xe||Ae)&&(xe=me,oe.Renderer=fe)}}(le||(le={})),le}),Oe(be,"Core/Renderer/SVG/SVGLabel.js",[be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le){const{defined:ve,extend:xe,isNumber:me,merge:fe,pick:Ae,removeEvent:ce}=le;class ye extends oe{constructor(W,U,Q,te,x,y,A,S,N,F){let G;super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(W,"g"),this.textStr=U,this.x=Q,this.y=te,this.anchorX=y,this.anchorY=A,this.baseline=N,this.className=F,this.addClass("button"===F?"highcharts-no-tooltip":"highcharts-label"),F&&this.addClass("highcharts-"+F),this.text=W.text(void 0,0,0,S).attr({zIndex:1}),"string"==typeof x&&((G=/^url\((.*?)\)$/.test(x))||this.renderer.symbols[x])&&(this.symbolKey=x),this.bBox=ye.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=W.styledMode||G,this.deferredAttr={},this.alignFactor=0}alignSetter(W){(W={left:0,center:.5,right:1}[W])!==this.alignFactor&&(this.alignFactor=W,this.bBox&&me(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(W,U){this.anchorX=W,this.boxAttr(U,Math.round(W)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(W,U){this.anchorY=W,this.boxAttr(U,W-this.ySetting)}boxAttr(W,U){this.box?this.box.attr(W,U):this.deferredAttr[W]=U}css(W){if(W){const U={};W=fe(W),ye.textProps.forEach(Q=>{void 0!==W[Q]&&(U[Q]=W[Q],delete W[Q])}),this.text.css(U),"fontSize"in U||"fontWeight"in U?this.updateTextPadding():("width"in U||"textOverflow"in U)&&this.updateBoxSize()}return oe.prototype.css.call(this,W)}destroy(){ce(this.element,"mouseenter"),ce(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),oe.prototype.destroy.call(this)}fillSetter(W,U){W&&(this.needsBox=!0),this.fill=W,this.boxAttr(U,W)}getBBox(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();const W=this.padding,U=Ae(this.paddingLeft,W);return{width:this.width,height:this.height,x:this.bBox.x-U,y:this.bBox.y-W}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(W){this.heightSetting=W}onAdd(){this.text.add(this),this.attr({text:Ae(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ve(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(W,U){me(W)?W!==this[U]&&(this[U]=W,this.updateTextPadding()):this[U]=void 0}rSetter(W,U){this.boxAttr(U,W)}strokeSetter(W,U){this.stroke=W,this.boxAttr(U,W)}"stroke-widthSetter"(W,U){W&&(this.needsBox=!0),this["stroke-width"]=W,this.boxAttr(U,W)}"text-alignSetter"(W){this.textAlign=W}textSetter(W){void 0!==W&&this.text.attr({text:W}),this.updateTextPadding()}updateBoxSize(){var W=this.text;const U={},Q=this.padding,te=this.bBox=me(this.widthSetting)&&me(this.heightSetting)&&!this.textAlign||!ve(W.textStr)?ye.emptyBBox:W.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||te.height||0)+2*Q;const x=this.renderer.fontMetrics(W);this.baselineOffset=Q+Math.min((this.text.firstLineMetrics||x).b,te.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-x.h)/2),this.needsBox&&!W.textPath&&(this.box||((W=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),W.add(this)),W=this.getCrispAdjust(),U.x=W,U.y=(this.baseline?-this.baselineOffset:0)+W,U.width=Math.round(this.width),U.height=Math.round(this.height),this.box.attr(xe(U,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const W=this.text;if(!W.textPath){this.updateBoxSize();const U=this.baseline?0:this.baselineOffset;let Q=Ae(this.paddingLeft,this.padding);ve(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(Q+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(Q!==W.x||U!==W.y)&&(W.attr("x",Q),W.hasBoxWidthChanged&&(this.bBox=W.getBBox(!0)),void 0!==U&&W.attr("y",U)),W.x=Q,W.y=U}}widthSetter(W){this.widthSetting=me(W)?W:void 0}getPaddedWidth(){var W=this.padding;const U=Ae(this.paddingLeft,W);return W=Ae(this.paddingRight,W),(this.widthSetting||this.bBox.width||0)+U+W}xSetter(W){this.x=W,this.alignFactor&&(W-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(W),this.attr("translateX",this.xSetting)}ySetter(W){this.ySetting=this.y=Math.round(W),this.attr("translateY",this.ySetting)}}return ye.emptyBBox={width:0,height:0,x:0,y:0},ye.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),ye}),Oe(be,"Core/Renderer/SVG/Symbols.js",[be["Core/Utilities.js"]],function(oe){function le(ce,ye,se,W,U){const Q=[];if(U){const te=U.start||0,x=Ae(U.r,se);se=Ae(U.r,W||se),W=(U.end||0)-.001;const y=U.innerR,A=Ae(U.open,.001>Math.abs((U.end||0)-te-2*Math.PI)),S=Math.cos(te),N=Math.sin(te),F=Math.cos(W),G=Math.sin(W),b=Ae(U.longArc,.001>W-te-Math.PI?0:1);let w=["A",x,se,0,b,Ae(U.clockwise,1),ce+x*F,ye+se*G];w.params={start:te,end:W,cx:ce,cy:ye},Q.push(["M",ce+x*S,ye+se*N],w),me(y)&&(w=["A",y,y,0,b,me(U.clockwise)?1-U.clockwise:0,ce+y*S,ye+y*N],w.params={start:W,end:te,cx:ce,cy:ye},Q.push(A?["M",ce+y*F,ye+y*G]:["L",ce+y*F,ye+y*G],w)),A||Q.push(["Z"])}return Q}function ve(ce,ye,se,W,U){return U&&U.r?xe(ce,ye,se,W,U):[["M",ce,ye],["L",ce+se,ye],["L",ce+se,ye+W],["L",ce,ye+W],["Z"]]}function xe(ce,ye,se,W,U){return[["M",ce+(U=(null==U?void 0:U.r)||0),ye],["L",ce+se-U,ye],["A",U,U,0,0,1,ce+se,ye+U],["L",ce+se,ye+W-U],["A",U,U,0,0,1,ce+se-U,ye+W],["L",ce+U,ye+W],["A",U,U,0,0,1,ce,ye+W-U],["L",ce,ye+U],["A",U,U,0,0,1,ce+U,ye],["Z"]]}const{defined:me,isNumber:fe,pick:Ae}=oe;return{arc:le,callout:function(ce,ye,se,W,U){const Q=Math.min(U&&U.r||0,se,W),te=Q+6,x=U&&U.anchorX;U=U&&U.anchorY||0;const y=xe(ce,ye,se,W,{r:Q});return fe(x)&&(ce+x>=se?U>ye+te&&U=ce+x?U>ye+te&&UW&&x>ce+te&&xU&&x>ce+te&&x/g;var b=[S,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,x.getStyle("font-size"),this.width].join();if(b!==x.textCache){for(x.textCache=b,delete x.actualWidth,b=F.length;b--;)y.removeChild(F[b]);N||this.ellipsis||this.width||x.textPath||-1!==S.indexOf(" ")&&(!this.noWrap||G.test(S))?""!==S&&(A&&A.appendChild(y),S=new oe(S),this.modifyTree(S.nodes),S.addToDOM(y),this.modifyDOM(),this.ellipsis&&-1!==(y.textContent||"").indexOf("\u2026")&&x.attr("title",this.unescapeEntities(x.textStr||"",["<",">"])),A&&A.removeChild(y)):y.appendChild(xe.createTextNode(this.unescapeEntities(S))),se(this.textOutline)&&x.applyTextOutline&&x.applyTextOutline(this.textOutline)}}modifyDOM(){const x=this.svgElement,y=Ae(x.element,"x");let A;for(x.firstLineMetrics=void 0;(A=x.element.firstChild)&&/^[\s\u200B]*$/.test(A.textContent||" ");)x.element.removeChild(A);[].forEach.call(x.element.querySelectorAll("tspan.highcharts-br"),(G,b)=>{G.nextSibling&&G.previousSibling&&(0===b&&1===G.previousSibling.nodeType&&(x.firstLineMetrics=x.renderer.fontMetrics(G.previousSibling)),Ae(G,{dy:this.getLineHeight(G.nextSibling),x:y}))});const S=this.width||0;if(S){var N=(G,b)=>{var w=G.textContent||"";const E=w.replace(/([^\^])-/g,"$1- ").split(" ");var O=!this.noWrap&&(1p.substring(0,v)+"\u2026");else if(O){for(w=[],O=[];b.firstChild&&b.firstChild!==G;)O.push(b.firstChild),b.removeChild(b.firstChild);for(;E.length;)E.length&&!this.noWrap&&0E.slice(0,v).join(" ").replace(/- /g,"-")),h=x.actualWidth,g++;O.forEach(p=>{b.insertBefore(p,G)}),w.forEach(p=>{b.insertBefore(xe.createTextNode(p),G),(p=xe.createElementNS(me,"tspan")).textContent="\u200b",Ae(p,{dy:R,x:y}),b.insertBefore(p,G)})}},F=G=>{[].slice.call(G.childNodes).forEach(b=>{b.nodeType===fe.Node.TEXT_NODE?N(b,G):(-1!==b.className.baseVal.indexOf("highcharts-br")&&(x.actualWidth=0),F(b))})};F(x.element)}}getLineHeight(x){return x=x.nodeType===fe.Node.TEXT_NODE?x.parentElement:x,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(x||this.svgElement.element).h}modifyTree(x){const y=(A,S)=>{const{attributes:N={},children:F,style:G={},tagName:b}=A,w=this.renderer.styledMode;"b"===b||"strong"===b?w?N.class="highcharts-strong":G.fontWeight="bold":("i"===b||"em"===b)&&(w?N.class="highcharts-emphasized":G.fontStyle="italic"),G&&G.color&&(G.fill=G.color),"br"===b?(N.class="highcharts-br",A.textContent="\u200b",(S=x[S+1])&&S.textContent&&(S.textContent=S.textContent.replace(/^ +/gm,""))):"a"===b&&F&&F.some(E=>"#text"===E.tagName)&&(A.children=[{children:F,tagName:"tspan"}]),"#text"!==b&&"a"!==b&&(A.tagName="tspan"),ce(A,{attributes:N,style:G}),F&&F.filter(E=>"#text"!==E.tagName).forEach(y)};x.forEach(y),ye(this.svgElement,"afterModifyTree",{nodes:x})}truncate(x,y,A,S,N,F){const G=this.svgElement,{rotation:b}=G,w=[];let g,h,E=A?1:0,O=(y||A||"").length,R=O;const p=function(v,P){if(v=P||v,(P=x.parentNode)&&void 0===w[v]&&P.getSubStringLength)try{w[v]=S+P.getSubStringLength(0,A?v+1:v)}catch(V){}return w[v]};if(G.rotation=0,h=p(x.textContent.length),S+h>N){for(;E<=O;)R=Math.ceil((E+O)/2),A&&(g=F(A,R)),h=p(R,g&&g.length-1),E===O?E=O+1:h>N?O=R-1:E=R;0===O?x.textContent="":y&&O===y.length-1||(x.textContent=g||F(y||A,R))}A&&A.splice(0,R),G.actualWidth=h,G.rotation=b}unescapeEntities(x,y){return W(this.renderer.escapes,function(A,S){y&&-1!==y.indexOf(A)||(x=x.toString().replace(new RegExp(A,"g"),S))}),x}}}),Oe(be,"Core/Renderer/SVG/SVGRenderer.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Color/Color.js"],be["Core/Globals.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGLabel.js"],be["Core/Renderer/SVG/Symbols.js"],be["Core/Renderer/SVG/TextBuilder.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye){const{charts:se,deg2rad:W,doc:U,isFirefox:Q,isMS:te,isWebKit:x,noop:y,SVG_NS:A,symbolSizes:S,win:N}=ve,{addEvent:F,attr:G,createElement:b,css:w,defined:E,destroyObjectProperties:O,extend:R,isArray:g,isNumber:h,isObject:p,isString:v,merge:P,pick:V,pInt:D,uniqueKey:Y}=ye;let de;class Ce{constructor(X,m,H,Z,q,he,M){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(X,m,H,Z,q,he,M)}init(X,m,H,Z,q,he,M){const B=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),I=B.element;let K;M||B.css(this.getStyle(Z)),X.appendChild(I),G(X,"dir","ltr"),-1===X.innerHTML.indexOf("xmlns")&&G(I,"xmlns",this.SVG_NS),this.box=I,this.boxWrapper=B,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(U.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=he,this.forExport=q,this.styledMode=M,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=B.getStyle("font-size"),this.setSize(m,H,!1),Q&&X.getBoundingClientRect&&((m=function(){w(X,{left:0,top:0}),K=X.getBoundingClientRect(),w(X,{left:Math.ceil(K.left)-K.left+"px",top:Math.ceil(K.top)-K.top+"px"})})(),this.unSubPixelFix=F(N,"resize",m))}definition(X){return new oe([X]).addToDOM(this.defs.element)}getReferenceURL(){if((Q||x)&&U.getElementsByTagName("base").length){if(!E(de)){var X=Y();X=new oe([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:X},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${X})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(U.body),w(X,{position:"fixed",top:0,left:0,zIndex:9e5});const m=U.elementFromPoint(6,6);de="hitme"===(m&&m.id),U.body.removeChild(X)}if(de)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(X){return this.style=R({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},X)}setStyle(X){this.boxWrapper.css(this.getStyle(X))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const X=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),O(this.gradients||{}),this.gradients=null,this.defs=X.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(X){const m=new this.Element;return m.init(this,X),m}getRadialAttr(X,m){return{cx:X[0]-X[2]/2+(m.cx||0)*X[2],cy:X[1]-X[2]/2+(m.cy||0)*X[2],r:(m.r||0)*X[2]}}shadowDefinition(X){const m=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(X).map(Z=>X[Z])].join("-").replace(/[^a-z0-9\-]/g,""),H=P({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},X);return this.defs.element.querySelector(`#${m}`)||this.definition({tagName:"filter",attributes:{id:m},children:[{tagName:"feDropShadow",attributes:{dx:H.offsetX,dy:H.offsetY,"flood-color":H.color,"flood-opacity":Math.min(5*H.opacity,1),stdDeviation:H.width/2}}]}),m}buildText(X){new ce(X).buildSVG()}getContrast(X){return 1.05/(.05+(X=.2126*(X=le.parse(X).rgba.map(m=>.03928>=(m/=255)?m/12.92:Math.pow((m+.055)/1.055,2.4)))[0]+.7152*X[1]+.0722*X[2]))>(X+.05)/.05?"#FFFFFF":"#000000"}button(X,m,H,Z,q={},he,M,B,I,K){const ne=this.label(X,m,H,I,void 0,void 0,K,void 0,"button"),re=this.styledMode;X=q.states||{};let _e=0;delete(q=P(q)).states;const we=P({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},q.style);delete q.style;let Re,ze,ie,Se=oe.filterUserAttributes(q);return ne.attr(P({padding:8,r:2},Se)),re||(Se=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},Se),he=P(Se,{fill:"#e6e6e6"},oe.filterUserAttributes(he||X.hover||{})),Re=he.style,delete he.style,M=P(Se,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},oe.filterUserAttributes(M||X.select||{})),ze=M.style,delete M.style,B=P(Se,{style:{color:"#cccccc"}},oe.filterUserAttributes(B||X.disabled||{})),ie=B.style,delete B.style),F(ne.element,te?"mouseover":"mouseenter",function(){3!==_e&&ne.setState(1)}),F(ne.element,te?"mouseout":"mouseleave",function(){3!==_e&&ne.setState(_e)}),ne.setState=function(ee){1!==ee&&(ne.state=_e=ee),ne.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ee||0]),re||(ne.attr([Se,he,M,B][ee||0]),p(ee=[we,Re,ze,ie][ee||0])&&ne.css(ee))},re||(ne.attr(Se).css(R({cursor:"default"},we)),K&&ne.text.css({pointerEvents:"none"})),ne.on("touchstart",ee=>ee.stopPropagation()).on("click",function(ee){3!==_e&&Z.call(ne,ee)})}crispLine(X,m,H="round"){const Z=X[0],q=X[1];return E(Z[1])&&Z[1]===q[1]&&(Z[1]=q[1]=Math[H](Z[1])-m%2/2),E(Z[2])&&Z[2]===q[2]&&(Z[2]=q[2]=Math[H](Z[2])+m%2/2),X}path(X){const m=this.styledMode?{}:{fill:"none"};return g(X)?m.d=X:p(X)&&R(m,X),this.createElement("path").attr(m)}circle(X,m,H){return X=p(X)?X:void 0===X?{}:{x:X,y:m,r:H},(m=this.createElement("circle")).xSetter=m.ySetter=function(Z,q,he){he.setAttribute("c"+q,Z)},m.attr(X)}arc(X,m,H,Z,q,he){return p(X)?(m=(Z=X).y,H=Z.r,X=Z.x):Z={innerR:Z,start:q,end:he},(X=this.symbol("arc",X,m,H,H,Z)).r=H,X}rect(X,m,H,Z,q,he){X=p(X)?X:void 0===X?{}:{x:X,y:m,r:q,width:Math.max(H||0,0),height:Math.max(Z||0,0)};const M=this.createElement("rect");return this.styledMode||(void 0!==he&&(X["stroke-width"]=he,R(X,M.crisp(X))),X.fill="none"),M.rSetter=function(B,I,K){M.r=B,G(K,{rx:B,ry:B})},M.rGetter=function(){return M.r||0},M.attr(X)}roundedRect(X){return this.symbol("roundedRect").attr(X)}setSize(X,m,H){this.width=X,this.height=m,this.boxWrapper.animate({width:X,height:m},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:V(H,!0)?void 0:0}),this.alignElements()}g(X){const m=this.createElement("g");return X?m.attr({class:"highcharts-"+X}):m}image(X,m,H,Z,q,he){const M={preserveAspectRatio:"none"};h(m)&&(M.x=m),h(H)&&(M.y=H),h(Z)&&(M.width=Z),h(q)&&(M.height=q);const B=this.createElement("image").attr(M);return m=function(I){B.attr({href:X}),he.call(B,I)},he?(B.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),H=new N.Image,F(H,"load",m),H.src=X,H.complete&&m({})):B.attr({href:X}),B}symbol(X,m,H,Z,q,he){const M=this,B=/^url\((.*?)\)$/,I=B.test(X),K=!I&&(this.symbols[X]?X:"circle"),ne=K&&this.symbols[K];let re,_e,we,Se;if(ne)"number"==typeof m&&(_e=ne.call(this.symbols,Math.round(m||0),Math.round(H||0),Z||0,q||0,he)),re=this.path(_e),M.styledMode||re.attr("fill","none"),R(re,{symbolName:K||void 0,x:m,y:H,width:Z,height:q}),he&&R(re,he);else if(I){we=X.match(B)[1];const Re=re=this.image(we);Re.imgwidth=V(he&&he.width,S[we]&&S[we].width),Re.imgheight=V(he&&he.height,S[we]&&S[we].height),Se=ze=>ze.attr({width:ze.width,height:ze.height}),["width","height"].forEach(function(ze){Re[ze+"Setter"]=function(ie,ee){this[ee]=ie;const{alignByTranslate:Ee,element:pe,width:De,height:Ge,imgwidth:We,imgheight:ut}=this;if(E(ie=this["img"+ee])){let yt=1;he&&"within"===he.backgroundSize&&De&&Ge?(yt=Math.min(De/We,Ge/ut),G(pe,{width:Math.round(We*yt),height:Math.round(ut*yt)})):pe&&pe.setAttribute(ee,ie),Ee||this.translate(((De||0)-We*yt)/2,((Ge||0)-ut*yt)/2)}}}),E(m)&&Re.attr({x:m,y:H}),Re.isImg=!0,E(Re.imgwidth)&&E(Re.imgheight)?Se(Re):(Re.attr({width:0,height:0}),b("img",{onload:function(){const ze=se[M.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),U.body.appendChild(this)),S[we]={width:this.width,height:this.height},Re.imgwidth=this.width,Re.imgheight=this.height,Re.element&&Se(Re),this.parentNode&&this.parentNode.removeChild(this),M.imgCount--,!M.imgCount&&ze&&!ze.hasLoaded&&ze.onload()},src:we}),this.imgCount++)}return re}clipRect(X,m,H,Z){const q=Y()+"-",he=this.createElement("clipPath").attr({id:q}).add(this.defs);return(X=this.rect(X,m,H,Z,0).add(he)).id=q,X.clipPath=he,X.count=0,X}text(X,m,H,Z){const q={};return!Z||!this.allowHTML&&this.forExport?(q.x=Math.round(m||0),H&&(q.y=Math.round(H)),E(X)&&(q.text=X),X=this.createElement("text").attr(q),(!Z||this.forExport&&!this.allowHTML)&&(X.xSetter=function(he,M,B){const I=B.getElementsByTagName("tspan"),K=B.getAttribute(M);for(let re,ne=0;ne(X=D(me.prototype.getStyle.call(X,"font-size")||0))?X+3:Math.round(1.2*X);return{h:m,b:Math.round(.8*m),f:X}}rotCorr(X,m,H){let Z=X;return m&&H&&(Z=Math.max(Z*Math.cos(m*W),4)),{x:-X/3*Math.sin(m*W),y:Z}}pathToSegments(X){const m=[],H=[],Z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let q=0;qX.align())}}return R(Ce.prototype,{Element:me,SVG_NS:A,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Ae,draw:y}),xe.registerRendererType("svg",Ce,!0),Ce}),Oe(be,"Core/Renderer/HTML/HTMLElement.js",[be["Core/Globals.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{isFirefox:xe,isMS:me,isWebKit:fe,win:Ae}=oe,{css:ce,defined:ye,extend:se,pick:W,pInt:U}=ve,Q=[];class te extends le{static compose(y){if(ve.pushUnique(Q,y)){const A=te.prototype,S=y.prototype;S.getSpanCorrection=A.getSpanCorrection,S.htmlCss=A.htmlCss,S.htmlGetBBox=A.htmlGetBBox,S.htmlUpdateTransform=A.htmlUpdateTransform,S.setSpanRotation=A.setSpanRotation}return y}getSpanCorrection(y,A,S){this.xCorr=-y*S,this.yCorr=-A}htmlCss(y){const A="SPAN"===this.element.tagName&&y&&"width"in y,S=W(A&&y.width,void 0);let N;return A&&(delete y.width,this.textWidth=S,N=!0),y&&"ellipsis"===y.textOverflow&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=se(this.styles,y),ce(this.element,y),N&&this.htmlUpdateTransform(),this}htmlGetBBox(){const y=this.element;return{x:y.offsetLeft,y:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}}htmlUpdateTransform(){if(this.added){var y=this.renderer,A=this.element,S=this.x||0,N=this.y||0,F=this.textAlign||"left",G={left:0,center:.5,right:1}[F],b=this.styles,w=b&&b.whiteSpace;if(ce(A,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),"SPAN"===A.tagName){b=this.rotation;const O=this.textWidth&&U(this.textWidth),R=[b,F,A.innerHTML,this.textWidth,this.textAlign].join();let g=!1;if(O!==this.oldTextWidth){if(this.textPxLength)var E=this.textPxLength;else ce(A,{width:"",whiteSpace:w||"nowrap"}),E=A.offsetWidth;(O>this.oldTextWidth||E>O)&&(/[ \-]/.test(A.textContent||A.innerText)||"ellipsis"===A.style.textOverflow)&&(ce(A,{width:E>O||b?O+"px":"auto",display:"block",whiteSpace:w||"normal"}),this.oldTextWidth=O,g=!0)}this.hasBoxWidthChanged=g,R!==this.cTT&&(y=y.fontMetrics(A).b,!ye(b)||b===(this.oldRotation||0)&&F===this.oldAlign||this.setSpanRotation(b,G,y),this.getSpanCorrection(!ye(b)&&this.textPxLength||A.offsetWidth,y,G,b,F)),ce(A,{left:S+(this.xCorr||0)+"px",top:N+(this.yCorr||0)+"px"}),this.cTT=R,this.oldRotation=b,this.oldAlign=F}}else this.alignOnAdd=!0}setSpanRotation(y,A,S){const N={},F=me&&!/Edge/.test(Ae.navigator.userAgent)?"-ms-transform":fe?"-webkit-transform":xe?"MozTransform":Ae.opera?"-o-transform":void 0;F&&(N[F]=N.transform="rotate("+y+"deg)",N[F+(xe?"Origin":"-origin")]=N.transformOrigin=100*A+"% "+S+"px",ce(this.element,N))}}return te}),Oe(be,"Core/Renderer/HTML/HTMLRenderer.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{attr:me,createElement:fe,extend:Ae,pick:ce}=xe,ye=[];class se extends ve{static compose(U){return xe.pushUnique(ye,U)&&(U.prototype.html=se.prototype.html),U}html(U,Q,te){const x=this.createElement("span"),y=x.element,A=x.renderer,S=function(N,F){["opacity","visibility"].forEach(function(G){N[G+"Setter"]=function(b,w,E){const O=N.div?N.div.style:F;le.prototype[G+"Setter"].call(this,b,w,E),O&&(O[w]=b)}}),N.addedSetters=!0};return x.textSetter=function(N){N!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,oe.setElementHTML(this.element,ce(N,"")),this.textStr=N,x.doTransform=!0)},S(x,x.element.style),x.xSetter=x.ySetter=x.alignSetter=x.rotationSetter=function(N,F){"align"===F?x.alignValue=x.textAlign=N:x[F]=N,x.doTransform=!0},x.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},x.attr({text:U,x:Math.round(Q),y:Math.round(te)}).css({position:"absolute"}),A.styledMode||x.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),y.style.whiteSpace="nowrap",x.css=x.htmlCss,x.add=function(N){const F=A.box.parentNode,G=[];let b;if(this.parentGroup=N){if(b=N.div,!b){for(;N;)G.push(N),N=N.parentGroup;G.reverse().forEach(function(w){function E(h,p){w[p]=h,"translateX"===p?g.left=h+"px":g.top=h+"px",w.doTransform=!0}const O=me(w.element,"class"),R=w.styles||{};b=w.div=w.div||fe("div",O?{className:O}:void 0,{position:"absolute",left:(w.translateX||0)+"px",top:(w.translateY||0)+"px",display:w.display,opacity:w.opacity,visibility:w.visibility},b||F);const g=b.style;var h;Ae(w,{classSetter:(h=b,function(p){this.element.setAttribute("class",p),h.className=p}),css:function(h){return x.css.call(w,h),["cursor","pointerEvents"].forEach(p=>{h[p]&&(g[p]=h[p])}),w},on:function(){return G[0].div&&x.on.apply({element:G[0].div,onEvents:w.onEvents},arguments),w},translateXSetter:E,translateYSetter:E}),w.addedSetters||S(w),w.css(R)})}}else b=F;return b.appendChild(y),x.added=!0,x.alignOnAdd&&x.htmlUpdateTransform(),x},x}}return se}),Oe(be,"Core/Axis/AxisDefaults.js",[],function(){var oe=(()=>{return(le=oe||(oe={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},le.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:ve}=this.axis.chart;return ve(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},le.defaultLeftAxisOptions={title:{rotation:270}},le.defaultRightAxisOptions={title:{rotation:90}},le.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},le.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},oe;var le})();return oe}),Oe(be,"Core/Foundation.js",[be["Core/Utilities.js"]],function(oe){const{addEvent:le,isFunction:ve,objectEach:xe,removeEvent:me}=oe;var fe=(()=>((fe||(fe={})).registerEventOptions=function(ce,ye){ce.eventOptions=ce.eventOptions||{},xe(ye.events,function(se,W){ce.eventOptions[W]!==se&&(ce.eventOptions[W]&&(me(ce,W,ce.eventOptions[W]),delete ce.eventOptions[W]),ve(se)&&(ce.eventOptions[W]=se,le(ce,W,se,{order:0})))})},fe))();return fe}),Oe(be,"Core/Axis/Tick.js",[be["Core/Templating.js"],be["Core/Globals.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{deg2rad:xe}=le,{clamp:me,correctFloat:fe,defined:Ae,destroyObjectProperties:ce,extend:ye,fireEvent:se,isNumber:W,merge:U,objectEach:Q,pick:te}=ve;return class{constructor(A,S,N,F,G){this.isNewLabel=this.isNew=!0,this.axis=A,this.pos=S,this.type=N||"",this.parameters=G||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,se(this,"init"),N||F||this.addLabel()}addLabel(){const A=this,S=A.axis;var N=S.options;const F=S.chart;var G=S.categories;const b=S.logarithmic,w=S.names,E=A.pos,O=te(A.options&&A.options.labels,N.labels);var R=S.tickPositions;const g=E===R[0],h=E===R[R.length-1],p=(!O.step||1===O.step)&&1===S.tickInterval;R=R.info;let P,V,D,v=A.label;G=this.parameters.category||(G?te(G[E],w[E],E):E),b&&W(G)&&(G=fe(b.lin2log(G))),S.dateTime&&(R?(V=F.time.resolveDTLFormat(N.dateTimeLabelFormats[!N.grid&&R.higherRanks[E]||R.unitName]),P=V.main):W(G)&&(P=S.dateTime.getXDateFormat(G,N.dateTimeLabelFormats||{}))),A.isFirst=g,A.isLast=h;const Y={axis:S,chart:F,dateTimeLabelFormat:P,isFirst:g,isLast:h,pos:E,tick:A,tickPositionInfo:R,value:G};se(this,"labelFormat",Y);const de=Ne=>O.formatter?O.formatter.call(Ne,Ne):O.format?(Ne.text=S.defaultLabelFormatter.call(Ne,Ne),oe.format(O.format,Ne,F)):S.defaultLabelFormatter.call(Ne,Ne);N=de.call(Y,Y);const Ce=V&&V.list;A.shortenLabel=Ce?function(){for(D=0;DO&&F-R*gb&&(V=Math.round((G-F)/Math.cos(O*xe))):(G=F+(1-R)*g,F-R*gb&&(v=b-A.x+v*R,P=-1),v=Math.min(h,v),vv||S.autoRotation&&(E.styles||{}).width)&&(V=v)),V&&(this.shortenLabel?this.shortenLabel():(p.width=Math.floor(V)+"px",(N.style||{}).textOverflow||(p.textOverflow="ellipsis"),E.css(p)))}moveLabel(A,S){const N=this;var F=N.label;const G=N.axis;let b=!1;F&&F.textStr===A?(N.movedLabel=F,b=!0,delete N.label):Q(G.ticks,function(w){b||w.isNew||w===N||!w.label||w.label.textStr!==A||(N.movedLabel=w.label,b=!0,w.labelPos=N.movedLabel.xy,delete w.label)}),b||!N.labelPos&&!F||(N.movedLabel=N.createLabel(F=N.labelPos||F.xy,A,S),N.movedLabel&&N.movedLabel.attr({opacity:0}))}render(A,S,N){var F=this.axis,G=F.horiz,b=this.pos,w=te(this.tickmarkOffset,F.tickmarkOffset);w=(b=this.getPosition(G,b,w,S)).x,F=G&&w===F.pos+F.len||!G&&b.y===F.pos?-1:1,G=te(N,this.label&&this.label.newOpacity,1),N=te(N,1),this.isActive=!0,this.renderGridLine(S,N,F),this.renderMark(b,N,F),this.renderLabel(b,S,G,A),this.isNew=!1,se(this,"afterRender")}renderGridLine(A,S,N){const F=this.axis,G=F.options,b={},w=this.pos,E=this.type,O=te(this.tickmarkOffset,F.tickmarkOffset),R=F.chart.renderer;let g=this.gridLine,h=G.gridLineWidth,p=G.gridLineColor,v=G.gridLineDashStyle;"minor"===this.type&&(h=G.minorGridLineWidth,p=G.minorGridLineColor,v=G.minorGridLineDashStyle),g||(F.chart.styledMode||(b.stroke=p,b["stroke-width"]=h||0,b.dashstyle=v),E||(b.zIndex=1),A&&(S=0),this.gridLine=g=R.path().attr(b).addClass("highcharts-"+(E?E+"-":"")+"grid-line").add(F.gridGroup)),g&&(N=F.getPlotLinePath({value:w+O,lineWidth:g.strokeWidth()*N,force:"pass",old:A,acrossPanes:!1}))&&g[A||this.isNew?"attr":"animate"]({d:N,opacity:S})}renderMark(A,S,N){const F=this.axis;var G=F.options;const b=F.chart.renderer,w=this.type,E=F.tickSize(w?w+"Tick":"tick"),O=A.x;A=A.y;const R=te(G["minor"!==w?"tickWidth":"minorTickWidth"],!w&&F.isXAxis?1:0);G=G["minor"!==w?"tickColor":"minorTickColor"];let g=this.mark;const h=!g;E&&(F.opposite&&(E[0]=-E[0]),g||(this.mark=g=b.path().addClass("highcharts-"+(w?w+"-":"")+"tick").add(F.axisGroup),F.chart.styledMode||g.attr({stroke:G,"stroke-width":R})),g[h?"attr":"animate"]({d:this.getMarkPath(O,A,E[0],g.strokeWidth()*N,F.horiz,b),opacity:S}))}renderLabel(A,S,N,F){var G=this.axis;const b=G.horiz,w=G.options,E=this.label,O=w.labels,R=O.step;G=te(this.tickmarkOffset,G.tickmarkOffset);const g=A.x;A=A.y;let h=!0;E&&W(g)&&(E.xy=A=this.getLabelPosition(g,A,E,b,O,G,F,R),this.isFirst&&!this.isLast&&!w.showFirstLabel||this.isLast&&!this.isFirst&&!w.showLastLabel?h=!1:!b||O.step||O.rotation||S||0===N||this.handleOverflow(A),R&&F%R&&(h=!1),h&&W(A.y)?(A.opacity=N,E[this.isNewLabel?"attr":"animate"](A).show(!0),this.isNewLabel=!1):(E.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const A=this.label,S=this.axis;A&&!this.isNew&&(A.animate({opacity:0},void 0,A.destroy),delete this.label),S.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),Oe(be,"Core/Axis/Axis.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/AxisDefaults.js"],be["Core/Color/Color.js"],be["Core/Defaults.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Axis/Tick.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce){const{animObject:ye}=oe,{defaultOptions:se}=xe,{registerEventOptions:W}=me,{deg2rad:U}=fe,{arrayMax:Q,arrayMin:te,clamp:x,correctFloat:y,defined:A,destroyObjectProperties:S,erase:N,error:F,extend:G,fireEvent:b,getClosestDistance:w,insertItem:E,isArray:O,isNumber:R,isString:g,merge:h,normalizeTickInterval:p,objectEach:v,pick:P,relativeLength:V,removeEvent:D,splat:Y,syncTimeout:de}=ce,Ce=(X,m)=>p(m,void 0,void 0,P(X.options.allowDecimals,.5>m||void 0!==X.tickAmount),!!X.tickAmount);class Ne{constructor(m,H,Z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(m,H,Z)}init(m,H,Z=this.coll){const q="xAxis"===Z;this.chart=m,this.horiz=this.isZAxis||(m.inverted?!q:q),this.isXAxis=q,this.coll=Z,b(this,"init",{userOptions:H}),this.opposite=P(H.opposite,this.opposite),this.side=P(H.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(H);const he=(Z=this.options).labels,M=Z.type;this.userOptions=H,this.minPixelPadding=0,this.reversed=P(Z.reversed,this.reversed),this.visible=Z.visible,this.zoomEnabled=Z.zoomEnabled,this.hasNames="category"===M||!0===Z.categories,this.categories=Z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=A(Z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=Z.minRange||Z.maxZoom,this.range=Z.range,this.offset=Z.offset||0,this.min=this.max=null,H=P(Z.crosshair,Y(m.options.tooltip.crosshairs)[q?0:1]),this.crosshair=!0===H?{}:H,-1===m.axes.indexOf(this)&&(q?m.axes.splice(m.xAxis.length,0,this):m.axes.push(this),E(this,m[this.coll])),m.orderItems(this.coll),this.series=this.series||[],m.inverted&&!this.isZAxis&&q&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=R(he.rotation)?he.rotation:void 0,W(this,Z),b(this,"afterInit")}setOptions(m){this.options=h(le.defaultXAxisOptions,"yAxis"===this.coll&&le.defaultYAxisOptions,[le.defaultTopAxisOptions,le.defaultRightAxisOptions,le.defaultBottomAxisOptions,le.defaultLeftAxisOptions][this.side],h(se[this.coll],m)),b(this,"afterSetOptions",{userOptions:m})}defaultLabelFormatter(m){var H=this.axis;({numberFormatter:m}=this.chart);const Z=R(this.value)?this.value:NaN,q=H.chart.time,he=this.dateTimeLabelFormat;var M=se.lang;const B=M.numericSymbols;M=M.numericSymbolMagnitude||1e3;const I=H.logarithmic?Math.abs(Z):H.tickInterval;let ne,K=B&&B.length;if(H.categories)ne=`${this.value}`;else if(he)ne=q.dateFormat(he,Z);else if(K&&1e3<=I)for(;K--&&void 0===ne;)I>=(H=Math.pow(M,K+1))&&10*Z%H==0&&null!==B[K]&&0!==Z&&(ne=m(Z/H,-1)+B[K]);return void 0===ne&&(ne=1e4<=Math.abs(Z)?m(Z,-1):m(Z,-1,void 0,"")),ne}getSeriesExtremes(){const m=this,H=m.chart;let Z;b(this,"getSeriesExtremes",null,function(){m.hasVisibleSeries=!1,m.dataMin=m.dataMax=m.threshold=null,m.softThreshold=!m.isXAxis,m.series.forEach(function(q){if(q.visible||!H.options.chart.ignoreHiddenSeries){var he=q.options;let B,I,M=he.threshold;m.hasVisibleSeries=!0,m.positiveValuesOnly&&0>=M&&(M=null),m.isXAxis?(he=q.xData)&&he.length&&(he=m.logarithmic?he.filter(K=>0Ge)&&(Se?pe=x(pe,De,Ge):Ee=!0),pe}const Z=this,q=Z.chart,he=Z.left,M=Z.top,B=m.old,I=m.value,K=m.lineWidth,ne=B&&q.oldChartHeight||q.chartHeight,re=B&&q.oldChartWidth||q.chartWidth,_e=Z.transB;let Re,ze,ie,ee,Ee,we=m.translatedValue,Se=m.force;return b(this,"getPlotLinePath",m={value:I,lineWidth:K,old:B,force:Se,acrossPanes:m.acrossPanes,translatedValue:we},function(pe){we=P(we,Z.translate(I,void 0,void 0,B)),we=x(we,-1e5,1e5),Re=ie=Math.round(we+_e),ze=ee=Math.round(ne-we-_e),R(we)?Z.horiz?(ze=M,ee=ne-Z.bottom,Re=ie=H(Re,he,he+Z.width)):(Re=he,ie=re-Z.right,ze=ee=H(ze,M,M+Z.height)):(Ee=!0,Se=!1),pe.path=Ee&&!Se?null:q.renderer.crispLine([["M",Re,ze],["L",ie,ee]],K||1)}),m.path}getLinearTickPositions(m,H,Z){const q=y(Math.floor(H/m)*m);Z=y(Math.ceil(Z/m)*m);const he=[];let M,B;if(y(q+m)===q&&(B=20),this.single)return[H];for(H=q;H<=Z&&(he.push(H),(H=y(H+m,B))!==M);)M=H;return he}getMinorTickInterval(){const m=this.options;return!0===m.minorTicks?P(m.minorTickInterval,"auto"):!1===m.minorTicks?null:m.minorTickInterval}getMinorTickPositions(){var m=this.options;const H=this.tickPositions,Z=this.minorTickInterval;var q=this.pointRangePadding||0;const he=this.min-q,M=(q=this.max+q)-he;let B=[];if(M&&M/Z{var K;return(I.xIncrement?null===(K=I.xData)||void 0===K?void 0:K.slice(0,2):I.xData)||[]}))||0;this.minRange=Math.min(5*B,this.dataMax-this.dataMin)}q-Z=this.minRange,M=this.minRange,he=[Z-(q=(M-q+Z)/2),P(m.min,Z-q)],B&&(he[2]=H?H.log2lin(this.dataMin):this.dataMin),Z=Q(he),q=[Z+M,P(m.max,Z+M)],B&&(q[2]=H?H.log2lin(this.dataMax):this.dataMax),(q=te(q))-Zq-he),m=w([Z]))}return m&&H?Math.min(m,H):m||H}nameToX(m){const H=O(this.options.categories),Z=H?this.categories:this.names;let he,q=m.options.x;return m.series.requireSorting=!1,A(q)||(q=this.options.uniqueNames&&Z?H?Z.indexOf(m.name):P(Z.keys[m.name],-1):m.series.autoIncrement()),-1===q?!H&&Z&&(he=Z.length):he=q,void 0!==he?(this.names[he]=m.name,this.names.keys[m.name]=he):m.x&&(he=m.x),he}updateNames(){const m=this,H=this.names;0=we?(ie=we,re=0):this.dataMax<=we&&(Se=we,ne=0)),this.min=P(Re,ie,this.dataMin),this.max=P(ze,Se,this.dataMax);if(Z&&(this.positiveValuesOnly&&!m&&0>=Math.min(this.min,P(this.dataMin,this.min))&&F(10,1,H),this.min=y(Z.log2lin(this.min),16),this.max=y(Z.log2lin(this.max),16)),this.range&&A(this.max)&&(this.userMin=this.min=Re=Math.max(this.dataMin,this.minFromRange()),this.userMax=ze=this.max,this.range=null),b(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!R(this.userMin)&&R(q.softMin)&&q.softMinthis.max&&(this.max=ze=q.softMax),!(I||this.axisPointRange||this.stacking&&this.stacking.usePercentage||M)&&A(this.min)&&A(this.max)&&(H=this.max-this.min)&&(!A(Re)&&re&&(this.min-=H*re),!A(ze)&&ne&&(this.max+=H*ne)),!R(this.userMin)&&R(q.floor)&&(this.min=Math.max(this.min,q.floor)),!R(this.userMax)&&R(q.ceiling)&&(this.max=Math.min(this.max,q.ceiling)),K&&A(this.dataMin)&&(we=we||0,!A(Re)&&this.min=we?this.min=this.options.minRange?Math.min(we,this.max-this.minRange):we:!A(ze)&&this.max>we&&this.dataMax<=we&&(this.max=this.options.minRange?Math.max(we,this.min+this.minRange):we)),R(this.min)&&R(this.max)&&!this.chart.polar&&this.min>this.max&&(A(this.options.min)?this.max=this.min:A(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:M&&this.linkedParent&&!_e&&B===this.linkedParent.options.tickPixelInterval?_e=this.linkedParent.tickInterval:P(_e,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,I?1:(this.max-this.min)*B/Math.max(this.len,B)),he&&!m){const ee=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Ee){Ee.forceCrop=Ee.forceCropping&&Ee.forceCropping(),Ee.processData(ee)}),b(this,"postProcessData",{hasExtremesChanged:ee})}this.setAxisTranslation(),b(this,"initialAxisTranslation"),this.pointRange&&!_e&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),m=P(q.minTickInterval,this.dateTime&&!this.series.some(ee=>ee.noSharedTooltip)?this.closestPointRange:0),!_e&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)M=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,m.units),this.min,this.max,m.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)M=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(q=m=this.tickInterval;q<=2*m&&(M=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&M.length>this.tickAmount);)this.tickInterval=Ce(this,q*=1.1);else M=[this.min,this.max],F(19,!1,this.chart);M.length>this.len&&(M=[M[0],M[M.length-1]])[0]===M[1]&&(M.length=1),Z&&(this.tickPositions=M,(I=Z.apply(this,[this.min,this.max]))&&(M=I))}this.tickPositions=M,this.paddedTicks=M.slice(0),this.trimTicks(M,B,he),!this.isLinked&&R(this.min)&&R(this.max)&&(this.single&&2>M.length&&!this.categories&&!this.series.some(K=>K.is("heatmap")&&"between"===K.options.pointPlacement)&&(this.min-=.5,this.max+=.5),H||I||this.adjustTickAmount()),b(this,"afterSetTickPositions")}trimTicks(m,H,Z){const q=m[0],he=m[m.length-1],M=!this.isOrdinal&&this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(H&&q!==-1/0)this.min=q;else for(;this.min-M>m[0];)m.shift();if(Z)this.max=he;else for(;this.max+M{const{horiz:ne,options:re}=K;return[ne?re.left:re.top,re.width,re.height,re.pane].join()},I=B(this);this.chart[this.coll].forEach(function(K){const{series:ne}=K;ne.length&&ne.some(re=>re.visible)&&K!==m&&B(K)===I&&(M=!0,H.push(K))})}if(M&&q){H.forEach(I=>{I=I.getThresholdAlignment(m),R(I)&&he.push(I)});const B=1I+K,0)/he.length:void 0;H.forEach(I=>{I.thresholdAlignment=B})}return M}getThresholdAlignment(m){if((!R(this.dataMin)||this!==m&&this.series.some(H=>H.isDirty||H.isDirtyData))&&this.getSeriesExtremes(),R(this.threshold))return m=x((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(m=1-m),m}getTickAmount(){const m=this.options,H=m.tickPixelInterval;let Z=m.tickAmount;!A(m.tickInterval)&&!Z&&this.lenZ&&(this.finalTickAmt=Z,Z=5),this.tickAmount=Z}adjustTickAmount(){const m=this,{finalTickAmt:H,max:Z,min:q,options:he,tickPositions:M,tickAmount:B,thresholdAlignment:I}=m,K=M&&M.length;var ne=P(m.threshold,m.softThreshold?0:null),re=m.tickInterval;let _e;if(R(I)&&(_e=.5>I?Math.ceil(I*(B-1)):Math.floor(I*(B-1)),he.reversed&&(_e=B-1-_e)),m.hasData()&&R(q)&&R(Z)){const we=()=>{m.transA*=(K-1)/(B-1),m.min=he.startOnTick?M[0]:Math.min(q,M[0]),m.max=he.endOnTick?M[M.length-1]:Math.max(Z,M[M.length-1])};if(R(_e)&&R(m.threshold)){for(;M[_e]!==ne||M.length!==B||M[0]>q||M[M.length-1]m.threshold?M.unshift(y(M[0]-re)):M.push(y(M[M.length-1]+re));if(re>8*m.tickInterval)break;re*=2}we()}else if(K=H&&0I&&(ne=I)),A(he)&&(reI&&(re=I))),Z.displayBtn=void 0!==ne||void 0!==re,Z.setExtremes(ne,re,!1,void 0,{trigger:"zoom"})),K.zoomed=!0}),m.zoomed}setAxisSize(){const m=this.chart;var H=this.options;const Z=H.offsets||[0,0,0,0],q=this.horiz,he=this.width=Math.round(V(P(H.width,m.plotWidth-Z[3]+Z[1]),m.plotWidth)),M=this.height=Math.round(V(P(H.height,m.plotHeight-Z[0]+Z[2]),m.plotHeight)),B=this.top=Math.round(V(P(H.top,m.plotTop+Z[0]),m.plotHeight,m.plotTop));H=this.left=Math.round(V(P(H.left,m.plotLeft+Z[3]),m.plotWidth,m.plotLeft)),this.bottom=m.chartHeight-M-B,this.right=m.chartWidth-he-H,this.len=Math.max(q?he:M,0),this.pos=q?H:B}getExtremes(){const m=this.logarithmic;return{min:m?y(m.lin2log(this.min)):this.min,max:m?y(m.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(m){var H=this.logarithmic;const Z=H?H.lin2log(this.min):this.min;return H=H?H.lin2log(this.max):this.max,null===m||m===-1/0?m=Z:m===1/0?m=H:Z>m?m=Z:HH?Z.align="right":195H&&(Z.align="left")}),m.align}tickSize(m){const H=this.options,Z=P(H["tick"===m?"tickWidth":"minorTickWidth"],"tick"===m&&this.isXAxis&&!this.categories?1:0);let he,q=H["tick"===m?"tickLength":"minorTickLength"];return Z&&q&&("inside"===H[m+"Position"]&&(q=-q),he=[q,Z]),b(this,"afterTickSize",m={tickSize:he}),m.tickSize}labelMetrics(){const m=this.chart.renderer;var H=this.ticks;return H=H[Object.keys(H)[0]]||{},this.chart.renderer.fontMetrics(H.label||H.movedLabel||m.box)}unsquish(){const m=this.options.labels;var H=this.horiz;const Z=this.tickInterval,q=this.len/(((this.categories?1:0)+this.max-this.min)/Z),he=m.rotation,M=.75*this.labelMetrics().h,B=Math.max(this.max-this.min,0),I=function(we){let Se=we/(q||1);return Se=1B&&we!==1/0&&q!==1/0&&B&&(Se=Math.ceil(B/Z)),y(Se*Z)};let ne,_e,K=Z,re=Number.MAX_VALUE;if(H){if(m.staggerLines||(R(he)?_e=[he]:q=Se)&&(we=(H=I(Math.abs(M/Math.sin(U*Se))))+Math.abs(Se/360),weq.step)return q.rotation?0:(this.staggerLines||1)*this.len/he;if(!Z){if(void 0!==(m=q.style.width))return parseInt(String(m),10);if(M)return M-H.spacing[3]}return.33*H.chartWidth}renderUnsquish(){const m=this.chart,H=m.renderer,Z=this.tickPositions,q=this.ticks,he=this.options.labels,M=he.style,B=this.horiz,I=this.getSlotWidth();var K=Math.max(1,Math.round(I-2*he.padding));const ne={},re=this.labelMetrics(),_e=M.textOverflow;let we,Se,Re=0;if(g(he.rotation)||(ne.rotation=he.rotation||0),Z.forEach(function(ie){(ie=q[ie]).movedLabel&&ie.replaceMovedLabel(),ie&&ie.label&&ie.label.textPxLength>Re&&(Re=ie.label.textPxLength)}),this.maxLabelLength=Re,this.autoRotation)Re>K&&Re>re.h?ne.rotation=this.labelRotation:this.labelRotation=0;else if(I&&(we=K,!_e))for(Se="clip",K=Z.length;!B&&K--;){var ze=Z[K];(ze=q[ze].label)&&(ze.styles&&"ellipsis"===ze.styles.textOverflow?ze.css({textOverflow:"clip"}):ze.textPxLength>I&&ze.css({width:I+"px"}),ze.getBBox().height>this.len/Z.length-(re.h-re.f)&&(ze.specificTextOverflow="ellipsis"))}ne.rotation&&(we=Re>.5*m.chartHeight?.33*m.chartHeight:Re,_e||(Se="ellipsis")),(this.labelAlign=he.align||this.autoLabelAlign(this.labelRotation))&&(ne.align=this.labelAlign),Z.forEach(function(ie){const ee=(ie=q[ie])&&ie.label,Ee=M.width,pe={};ee&&(ee.attr(ne),ie.shortenLabel?ie.shortenLabel():we&&!Ee&&"nowrap"!==M.whiteSpace&&(wene.g(ft).attr({zIndex:Zt}).addClass(`highcharts-${I.toLowerCase()}${_t} `+(this.isRadial?`highcharts-radial-axis${_t} `:"")+(Ee||"")).add(K);m.gridGroup=yt("grid","-grid",q.gridZIndex),m.axisGroup=yt("axis","",q.zIndex),m.labelGroup=yt("axis-labels","-labels",Se.zIndex)}_e||m.isLinked?(B.forEach(function(yt){m.generateTick(yt)}),m.renderUnsquish(),m.reserveSpaceDefault=0===he||2===he||{1:"left",3:"right"}[he]===m.labelAlign,P(Se.reserveSpace,!Re&&null,"center"===m.labelAlign||null,m.reserveSpaceDefault)&&B.forEach(function(yt){ut=Math.max(M[yt].getLabelSize(),ut)}),m.staggerLines&&(ut*=m.staggerLines),m.labelOffset=ut*(m.opposite?-1:1)):v(M,function(yt,ft){yt.destroy(),delete M[ft]}),we&&we.text&&!1!==we.enabled&&(m.addTitle(pe),pe&&!Re&&!1!==we.reserveSpace&&(m.titleOffset=De=m.axisTitle.getBBox()[Z?"height":"width"],Ge=we.offset,We=A(Ge)?0:P(we.margin,Z?5:10))),m.renderLine(),m.offset=ee*P(q.offset,ze[he]?ze[he]+(q.margin||0):0),m.tickRotCorr=m.tickRotCorr||{x:0,y:0},_e=0===he?-m.labelMetrics().h:2===he?m.tickRotCorr.y:0,We=Math.abs(ut)+We,ut&&(We=We-_e+ee*(Z?P(Se.y,m.tickRotCorr.y+ee*Se.distance):P(Se.x,ee*Se.distance))),m.axisTitleMargin=P(Ge,We),m.getMaxLabelDimensions&&(m.maxLabelDimensions=m.getMaxLabelDimensions(M,B)),"colorAxis"!==I&&(Se=this.tickSize("tick"),ze[he]=Math.max(ze[he],(m.axisTitleMargin||0)+De+ee*m.offset,We,B&&B.length&&Se?Se[0]+ee*m.offset:0),ze=!m.axisLine||q.offset?0:2*Math.floor(m.axisLine.strokeWidth()/2),ie[re]=Math.max(ie[re],ze)),b(this,"afterGetOffset")}getLinePath(m){const H=this.chart,Z=this.opposite;var q=this.offset;const he=this.horiz,M=this.left+(Z?this.width:0)+q;return q=H.chartHeight-this.bottom-(Z?this.height:0)+q,Z&&(m*=-1),H.renderer.crispLine([["M",he?this.left:M,he?q:this.top],["L",he?H.chartWidth-this.right:M,he?q:H.chartHeight-this.bottom]],m)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(m){var H=this.horiz,Z=this.left;const q=this.top;var he=this.len;const M=this.options.title,B=H?Z:q,I=this.opposite,K=this.offset,ne=M.x,re=M.y,_e=this.chart.renderer.fontMetrics(m);return m=m?Math.max(m.getBBox(!1,0).height-_e.h-1,0):0,he={low:B+(H?0:he),middle:B+he/2,high:B+(H?he:0)}[M.align],Z=(H?q+this.height:Z)+(H?1:-1)*(I?-1:1)*(this.axisTitleMargin||0)+[-m,m,_e.f,-m][this.side],b(this,"afterGetTitlePosition",{titlePosition:H={x:H?he+ne:Z+(I?this.width:0)+K+ne,y:H?Z+re-(I?this.height:0)+K:he+re}}),H}renderMinorTick(m,H){const Z=this.minorTicks;Z[m]||(Z[m]=new Ae(this,m,"minor")),H&&Z[m].isNew&&Z[m].render(null,!0),Z[m].render(null,!1,1)}renderTick(m,H,Z){const q=this.ticks;(!this.isLinked||m>=this.min&&m<=this.max||this.grid&&this.grid.isColumn)&&(q[m]||(q[m]=new Ae(this,m)),Z&&q[m].isNew&&q[m].render(H,!0,-1),q[m].render(H))}render(){const m=this,H=m.chart,Z=m.logarithmic,q=m.options,he=m.isLinked,M=m.tickPositions,B=m.axisTitle,I=m.ticks,K=m.minorTicks,ne=m.alternateBands,re=q.stackLabels,_e=q.alternateGridColor;var we=q.crossing;const Se=m.tickmarkOffset,Re=m.axisLine,ze=m.showAxis,ie=ye(H.renderer.globalAnimation);let ee,Ee;if(m.labelEdge.length=0,m.overlap=!1,[I,K,ne].forEach(function(pe){v(pe,function(De){De.isActive=!1})}),R(we)){const pe=this.isXAxis?H.yAxis[0]:H.xAxis[0],De=[1,-1,-1,1][this.side];pe&&(we=pe.toPixels(we,!0),m.horiz&&(we=pe.len-we),m.offset=De*we)}if(m.hasData()||he){const pe=m.chart.hasRendered&&m.old&&R(m.old.min);m.minorTickInterval&&!m.categories&&m.getMinorTickPositions().forEach(function(De){m.renderMinorTick(De,pe)}),M.length&&(M.forEach(function(De,Ge){m.renderTick(De,Ge,pe)}),Se&&(0===m.min||m.single)&&(I[-1]||(I[-1]=new Ae(m,-1,null,!0)),I[-1].render(-1))),_e&&M.forEach(function(De,Ge){Ee=void 0!==M[Ge+1]?M[Ge+1]+Se:m.max-Se,Ge%2==0&&DeQ&&(!x||w<=te)&&void 0!==w&&N.push(w),w>te&&(E=!0),w=b}else Q=this.lin2log(Q),te=this.lin2log(te),U=x?y.getMinorTickInterval():S.tickInterval,U=xe("auto"===U?null:U,this.minorAutoInterval,S.tickPixelInterval/(x?5:1)*(te-Q)/((x?A/y.tickPositions.length:A)||1)),U=ve(U),N=y.getLinearTickPositions(U,Q,te).map(this.log2lin),x||(this.minorAutoInterval=U/5);return x||(y.tickInterval=U),N}lin2log(U){return Math.pow(10,U)}log2lin(U){return Math.log(U)/Math.LN10}}fe.Additions=se}(me||(me={})),me}),Oe(be,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[be["Core/Utilities.js"]],function(oe){const{erase:le,extend:ve,isNumber:xe}=oe;var me;return function(fe){function Ae(y){return this.addPlotBandOrLine(y,"plotBands")}function ce(y,A){const S=this.userOptions;let N=new x(this,y);if(this.visible&&(N=N.render()),N){if(this._addedPlotLB||(this._addedPlotLB=!0,(S.plotLines||[]).concat(S.plotBands||[]).forEach(F=>{this.addPlotBandOrLine(F)})),A){const F=S[A]||[];F.push(y),S[A]=F}this.plotLinesAndBands.push(N)}return N}function ye(y){return this.addPlotBandOrLine(y,"plotLines")}function se(y,A,S=this.options){const N=this.getPlotLinePath({value:A,force:!0,acrossPanes:S.acrossPanes}),F=[],G=this.horiz;let b;if(A=!xe(this.min)||!xe(this.max)||ythis.max&&A>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:S.acrossPanes}),S=1,y&&N)for(A&&(b=y.toString()===N.toString(),S=0),A=0;A{const I="x"===B;return[B,I?Y:de,I?O:R].concat(V?[I?O*Ce.scaleX:R*Ce.scaleY,I?Ce.left-p+(g.plotX+h.plotLeft)*Ce.scaleX:Ce.top-p+(g.plotY+h.plotTop)*Ce.scaleY,0,I?Y:de]:[I?O:R,I?g.plotX+h.plotLeft:g.plotY+h.plotTop,I?h.plotLeft:h.plotTop,I?h.plotLeft+h.plotWidth:h.plotTop+h.plotHeight])})("y"),X=D("x");D=!!g.negative,!h.polar&&h.hoverSeries&&h.hoverSeries.yAxis&&h.hoverSeries.yAxis.reversed&&(D=!D);const H=!this.followPointer&&F(g.ttBelow,!h.inverted===D),Z=function(B,I,K,ne,re,_e,we){const Se=V?"y"===B?p*Ce.scaleY:p*Ce.scaleX:p,Re=(K-ne)/2,ze=neee-P?ee:ee-P);else{if(!ie)return!1;v[B]=Math.max(_e,re+P+K>I?re:re+P)}},q=function(B,I,K,ne,re){let _e;return reI-p?_e=!1:v[B]=reI-ne/2?I-ne-2:re-K/2,_e},he=function(B){const I=Ne;Ne=X,X=I,m=B},M=function(){!1!==Z.apply(0,Ne)?!1!==q.apply(0,X)||m||(he(!0),M()):m?v.x=v.y=0:(he(!0),M())};return(h.inverted||1p.isDirectTouch||q.series.shouldShowTooltip(H,Z)))return void this.hide();R=this.getLabel(),h.style.width&&!Ce||R.css({width:(this.outside?this.getPlayingField():g.spacingBox).width+"px"}),R.attr({text:D&&D.join?D.join(""):D}),R.addClass(this.getClassName(P),!0),Ce||R.attr({stroke:h.borderColor||P.color||Y.color||"#666666"}),this.updatePosition({plotX:X,plotY:m,negative:P.negative,ttBelow:P.ttBelow,h:O[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}x(this,"refresh")}}renderSplit(O,R){function g(pe,De,Ge,We,ut=!0){return Ge?(De=K?0:Se,pe=W(pe-We/2,M.left,M.right-We-(h.outside?ne:0))):(De-=_e,pe=W(pe=ut?pe-We-Z:pe+Z,ut?pe:M.left,M.right)),{x:pe,y:De}}const h=this,{chart:p,chart:{chartWidth:v,chartHeight:P,plotHeight:V,plotLeft:D,plotTop:Y,pointer:de,scrollablePixelsY:Ce=0,scrollablePixelsX:Ne,scrollingContainer:{scrollLeft:X,scrollTop:m}={scrollLeft:0,scrollTop:0},styledMode:H},distance:Z,options:q,options:{positioner:he}}=h,M=h.outside&&"number"!=typeof Ne?Ae.documentElement.getBoundingClientRect():{left:X,right:X+v,top:m,bottom:m+P},B=h.getLabel(),I=this.renderer||p.renderer,K=!(!p.xAxis[0]||!p.xAxis[0].opposite),{left:ne,top:re}=de.getChartPosition();let _e=Y+m,we=0,Se=V-Ce;S(O)&&(O=[!1,O]),O=O.slice(0,R.length+1).reduce(function(pe,De,Ge){if(!1!==De&&""!==De){const Zt=(Ge=R[Ge-1]||{isHeader:!0,plotX:R[0].plotX,plotY:V,series:{}}).isHeader;var ut,We=Zt?h:Ge.series;{var yt=Ge;De=De.toString();var ft=We.tt;const{isHeader:Xt,series:ii}=yt;ft||(ft={padding:q.padding,r:q.borderRadius},H||(ft.fill=q.backgroundColor,ft["stroke-width"]=null!==(ut=q.borderWidth)&&void 0!==ut?ut:1),ft=I.label("",0,0,q[Xt?"headerShape":"shape"],void 0,void 0,q.useHTML).addClass(h.getClassName(yt,!0,Xt)).attr(ft).add(B)),ft.isActive=!0,ft.attr({text:De}),H||ft.css(q.style).attr({stroke:q.borderColor||yt.color||ii.color||"#333333"}),ut=ft}ut=We.tt=ut,We=(yt=ut.getBBox()).width+ut.strokeWidth(),Zt&&(we=yt.height,Se+=we,K&&(_e-=we));{const{isHeader:Xt,plotX:ii=0,plotY:Tn=0,series:tn}=Ge;if(Xt){De=D+ii;var _t=Y+V/2}else{const{xAxis:Es,yAxis:Bt}=tn;De=Es.pos+W(ii,-Z,Es.len+Z),tn.shouldShowTooltip(0,Bt.pos-Y+Tn,{ignoreX:!0})&&(_t=Bt.pos+Tn)}_t={anchorX:De=W(De,M.left-Z,M.right+Z),anchorY:_t}}const{anchorX:Nt,anchorY:Lt}=_t;"number"==typeof Lt?(_t=yt.height+1,yt=he?he.call(h,We,_t,Ge):g(Nt,Lt,Zt,We),pe.push({align:he?0:void 0,anchorX:Nt,anchorY:Lt,boxWidth:We,point:Ge,rank:F(yt.rank,Zt?1:0),size:_t,target:yt.y,tt:ut,x:yt.x})):ut.isActive=!1}return pe},[]),!he&&O.some(pe=>{var{outside:De}=h;return(De=(De?ne:0)+pe.anchorX)De})&&(O=O.map(pe=>{const{x:De,y:Ge}=g(pe.anchorX,pe.anchorY,pe.point.isHeader,pe.boxWidth,!1);return te(pe,{target:Ge,x:De})})),h.cleanSplit(),ye(O,Se);var Re=ne,ze=ne;O.forEach(function(pe){const{x:De,boxWidth:Ge,isHeader:We}=pe;We||(h.outside&&ne+Deze&&(ze=ne+De))}),O.forEach(function(pe){const{x:De,anchorX:Ge,anchorY:We,pos:ut,point:{isHeader:yt}}=pe,ft={visibility:void 0===ut?"hidden":"inherit",x:De,y:(ut||0)+_e,anchorX:Ge,anchorY:We};if(h.outside&&Deg[0]?Math.max(Math.abs(g[0]),p.width-g[0]):Math.max(Math.abs(g[0]),p.width),h.height=0>g[1]?Math.max(Math.abs(g[1]),p.height-Math.abs(g[1])):Math.max(Math.abs(g[1]),p.height),this.tracker?this.tracker.attr(h):(this.tracker=R.renderer.rect(h).addClass("highcharts-tracker").add(R),O.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(O){return O.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(O,R){const g=O.series,h=g.tooltipOptions;var p=g.xAxis;const v=p&&p.dateTime;let P=h.xDateFormat,V=h[R?"footerFormat":"headerFormat"];return x(this,"headerFormatter",p={isFooter:R,labelConfig:O},function(D){v&&!P&&A(O.key)&&(P=v.getXDateFormat(O.key,h.dateTimeLabelFormats)),v&&P&&(O.point&&O.point.tooltipDateKeys||["key"]).forEach(function(Y){V=V.replace("{point."+Y+"}","{point."+Y+":"+P+"}")}),g.chart.styledMode&&(V=this.styledModeFormat(V)),D.text=fe(V,{point:O,series:g},this.chart)}),p.text}update(O){this.destroy(),this.init(this.chart,N(!0,this.options,O))}updatePosition(O){const{chart:R,distance:g,options:h}=this;var p=R.pointer;const v=this.getLabel(),{left:P,top:V,scaleX:D,scaleY:Y}=p.getChartPosition();p=(h.positioner||this.getPosition).call(this,v.width,v.height,O);let Ce,de=(O.plotX||0)+R.plotLeft;O=(O.plotY||0)+R.plotTop,this.outside&&(h.positioner&&(p.x+=P-g,p.y+=V-g),Ce=(h.borderWidth||0)+2*g,this.renderer.setSize(v.width+Ce,v.height+Ce,!1),(1!==D||1!==Y)&&(U(this.container,{transform:`scale(${D}, ${Y})`}),de*=D,O*=Y),de+=P-p.x,O+=V-p.y),this.move(Math.round(p.x),Math.round(p.y||0),de,O)}}return function(E){const O=[];E.compose=function(R){me.pushUnique(O,R)&&se(R,"afterInit",function(){const g=this.chart;g.options.tooltip&&(g.tooltip=new E(g,g.options.tooltip))})}}(w||(w={})),w}),Oe(be,"Core/Series/Point.js",[be["Core/Renderer/HTML/AST.js"],be["Core/Animation/AnimationUtilities.js"],be["Core/Defaults.js"],be["Core/Templating.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me){const{animObject:fe}=le,{defaultOptions:Ae}=ve,{format:ce}=xe,{addEvent:ye,defined:se,erase:W,extend:U,fireEvent:Q,getNestedProperty:te,isArray:x,isFunction:y,isNumber:A,isObject:S,merge:N,objectEach:F,pick:G,syncTimeout:b,removeEvent:w,uniqueKey:E}=me;class O{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const g=this,h={x:g.startXPos,opacity:0},p=g.getGraphicalProps();p.singular.forEach(function(v){g[v]=g[v].animate("dataLabel"===v?{x:g[v].startXPos,y:g[v].startYPos,opacity:0}:h)}),p.plural.forEach(function(v){g[v].forEach(function(P){P.element&&P.animate(U({x:g.startXPos},P.startYPos?{x:P.startXPos,y:P.startYPos}:{}))})})}applyOptions(g,h){const p=this.series,v=p.options.pointValKey||p.pointValKey;return g=O.prototype.optionsToObject.call(this,g),U(this,g),this.options=this.options?U(this.options,g):g,g.group&&delete this.group,g.dataLabels&&delete this.dataLabels,v&&(this.y=O.prototype.getNestedProperty.call(this,v)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===h&&p.xAxis&&p.xAxis.hasNames&&(this.x=p.xAxis.nameToX(this)),void 0===this.x&&p?this.x=void 0===h?p.autoIncrement():h:A(g.x)&&p.options.relativeXValue&&(this.x=p.autoIncrement(g.x)),this}destroy(){if(!this.destroyed){const h=this;var g=h.series;const p=g.chart;g=g.options.dataSorting;const v=p.hoverPoints,P=fe(h.series.chart.renderer.globalAnimation),V=()=>{(h.graphic||h.graphics||h.dataLabel||h.dataLabels)&&(w(h),h.destroyElements());for(const D in h)delete h[D]};h.legendItem&&p.legend.destroyItem(h),v&&(h.setState(),W(v,h),v.length||(p.hoverPoints=null)),h===p.hoverPoint&&h.onMouseOut(),g&&g.enabled?(this.animateBeforeDestroy(),b(V,P.duration)):V(),p.pointCount--}this.destroyed=!0}destroyElements(g){const h=this;(g=h.getGraphicalProps(g)).singular.forEach(function(p){h[p]=h[p].destroy()}),g.plural.forEach(function(p){h[p].forEach(function(v){v&&v.element&&v.destroy()}),delete h[p]})}firePointEvent(g,h,p){const v=this,P=this.series.options;(P.point.events[g]||v.options&&v.options.events&&v.options.events[g])&&v.importEvents(),"click"===g&&P.allowPointSelect&&(p=function(V){v.select&&v.select(null,V.ctrlKey||V.metaKey||V.shiftKey)}),Q(v,g,h,p)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(g){const h=this,p=[],v={singular:[],plural:[]};let P,V;for((g=g||{graphic:1,dataLabel:1}).graphic&&p.push("graphic"),g.dataLabel&&p.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),V=p.length;V--;)P=p[V],h[P]&&v.singular.push(P);return["graphic","dataLabel","connector"].forEach(function(D){const Y=D+"s";g[D]&&h[Y]&&v.plural.push(Y)}),v}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(g){if(g)return 0===g.indexOf("custom.")?te(g,this.options):this[g]}getZone(){var g=this.series;const h=g.zones;g=g.zoneAxis||"y";let p,v=0;for(p=h[v];this[g]>=p.value;)p=h[++v];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=p&&p.color&&!this.options.color?p.color:this.nonZonedColor,p}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(g,h,p){return this.series=g,this.applyOptions(h,p),this.id=se(this.id)?this.id:E(),this.resolveColor(),g.chart.pointCount++,Q(this,"afterInit"),this}isValid(){return null!==this.x&&A(this.y)}optionsToObject(g){var h=this.series;const p=h.options.keys,v=p||h.pointArrayMap||["y"],P=v.length;let V={},D=0,Y=0;if(A(g)||null===g)V[v[0]]=g;else if(x(g))for(!p&&g.length>P&&("string"==(h=typeof g[0])?V.name=g[0]:"number"===h&&(V.x=g[0]),D++);Yw()),this.eventsToUnbind=[],le.chartCount||(F.unbindDocumentMouseUp&&(F.unbindDocumentMouseUp=F.unbindDocumentMouseUp()),F.unbindDocumentTouchEnd&&(F.unbindDocumentTouchEnd=F.unbindDocumentTouchEnd())),clearInterval(b.tooltipTimeout),y(b,function(w,E){b[E]=void 0})}getSelectionMarkerAttrs(b,w){const E={args:{chartX:b,chartY:w},attrs:{},shapeType:"rect"};return Q(this,"getSelectionMarkerAttrs",E,O=>{const{chart:R,mouseDownX:g=0,mouseDownY:h=0,zoomHor:p,zoomVert:v}=this;let P;(O=O.attrs).x=R.plotLeft,O.y=R.plotTop,O.width=p?1:R.plotWidth,O.height=v?1:R.plotHeight,p&&(P=b-g,O.width=Math.abs(P),O.x=(0O+g&&(D=O+g),YR+h&&(Y=R+h),this.hasDragged=Math.sqrt(Math.pow(p-D,2)+Math.pow(v-Y,2)),10{E.result={x:b.attr?+b.attr("x"):b.x,y:b.attr?+b.attr("y"):b.y,width:b.attr?b.attr("width"):b.width,height:b.attr?b.attr("height"):b.height}}),w.result}drop(b){const w=this,E=this.chart,O=this.hasPinched;if(this.selectionMarker){const{x:R,y:g,width:h,height:p}=this.getSelectionBox(this.selectionMarker),v={originalEvent:b,xAxis:[],yAxis:[],x:R,y:g,width:h,height:p};let P=!!E.mapView;(this.hasDragged||O)&&(E.axes.forEach(function(V){if(V.zoomEnabled&&se(V.min)&&(O||w[{xAxis:"zoomX",yAxis:"zoomY"}[V.coll]])&&te(R)&&te(g)&&te(h)&&te(p)){var D=V.horiz;const Y="touchend"===b.type?V.minPixelPadding:0,de=V.toValue((D?R:g)+Y);D=V.toValue((D?R+h:g+p)-Y),v[V.coll].push({axis:V,min:Math.min(de,D),max:Math.max(de,D)}),P=!0}}),P&&Q(E,"selection",v,function(V){E.zoom(W(V,O?{animation:!1}:null))})),te(E.index)&&(this.selectionMarker=this.selectionMarker.destroy()),O&&this.scaleGroups()}E&&te(E.index)&&(ye(E.container,{cursor:E._cursor}),E.cancelClick=10R.options.findNearestPointBy.indexOf("y");if(R=R.searchPoint(E,g),(g=x(R,!0)&&R.series)&&!(g=!x(O,!0))){{const h=O.dist-R.dist,p=(R.series.group&&R.series.group.zIndex)-(O.series.group&&O.series.group.zIndex);g=0!=(g=O.distX-R.distX)&&w?g:0!==h?h:0!==p?p:O.series.index>R.series.index?-1:1}g=0D.stickyTracking&&(P.filter||p)(D));const V=O||!g?b:this.findNearestKDPoint(v,R,g);return w=V&&V.series,V&&(R&&!w.noSharedTooltip?(v=E.filter(function(D){return P.filter?P.filter(D):p(D)&&!D.noSharedTooltip}),v.forEach(function(D){let Y=U(D.points,function(de){return de.x===V.x&&!de.isNull});x(Y)&&(D.boosted&&D.boost&&(Y=D.boost.getPoint(Y)),h.push(Y))})):h.push(V)),P={hoverPoint:V},Q(this,"afterGetHoverData",P),{hoverPoint:P.hoverPoint,hoverSeries:w,hoverPoints:h}}getPointFromEvent(b){let w;for(b=b.target;b&&!w;)w=b.point,b=b.parentNode;return w}onTrackerMouseOut(b){b=b.relatedTarget;const w=this.chart.hoverSeries;this.isDirectTouch=!1,!w||!b||w.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+w.index)&&this.inClass(b,"highcharts-tracker")||w.onMouseOut()}inClass(b,w){let E;for(;b;){if(E=ce(b,"class")){if(-1!==E.indexOf(w))return!0;if(-1!==E.indexOf("highcharts-container"))return!1}b=b.parentElement}}init(b,w){this.options=w,this.chart=b,this.runChartClick=!(!w.chart.events||!w.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),Q(this,"afterInit")}normalize(b,w){var E=b.touches,O=E?E.length?E.item(0):S(E.changedTouches,b.changedTouches)[0]:b;return w||(w=this.getChartPosition()),E=O.pageX-w.left,O=O.pageY-w.top,E/=w.scaleX,O/=w.scaleY,W(b,{chartX:Math.round(E),chartY:Math.round(O)})}onContainerClick(b){const w=this.chart,E=w.hoverPoint;b=this.normalize(b);const O=w.plotLeft,R=w.plotTop;w.cancelClick||(E&&this.inClass(b.target,"highcharts-tracker")?(Q(E.series,"click",W(b,{point:E})),w.hoverPoint&&E.firePointEvent("click",b)):(W(b,this.getCoordinates(b)),w.isInsidePlot(b.chartX-O,b.chartY-R,{visiblePlotOnly:!0})&&Q(w,"click",b)))}onContainerMouseDown(b){const w=1==(1&(b.buttons||b.button));b=this.normalize(b),le.isFirefox&&0!==b.button&&this.onContainerMouseMove(b),(void 0===b.button||w)&&(this.zoomOption(b),w&&b.preventDefault&&b.preventDefault(),this.dragStart(b))}onContainerMouseLeave(b){const w=me[S(F.hoverChartIndex,-1)];b=this.normalize(b),w&&b.relatedTarget&&!this.inClass(b.relatedTarget,"highcharts-tooltip")&&(w.pointer.reset(),w.pointer.chartPosition=void 0)}onContainerMouseEnter(b){delete this.chartPosition}onContainerMouseMove(b){const w=this.chart,E=w.tooltip;b=this.normalize(b),this.setHoverChartIndex(),("mousedown"===w.mouseIsDown||this.touchSelect(b))&&this.drag(b),w.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!w.isInsidePlot(b.chartX-w.plotLeft,b.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(b)||(this.inClass(b.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))}onDocumentTouchEnd(b){const w=me[S(F.hoverChartIndex,-1)];w&&w.pointer.drop(b)}onContainerTouchMove(b){this.touchSelect(b)?this.onContainerMouseMove(b):this.touch(b)}onContainerTouchStart(b){this.touchSelect(b)?this.onContainerMouseDown(b):(this.zoomOption(b),this.touch(b,!0))}onDocumentMouseMove(b){const w=this.chart,E=w.tooltip,O=this.chartPosition;b=this.normalize(b,O),!O||w.isInsidePlot(b.chartX-w.plotLeft,b.chartY-w.plotTop,{visiblePlotOnly:!0})||E&&E.shouldStickOnContact(b)||this.inClass(b.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(b){const w=me[S(F.hoverChartIndex,-1)];w&&w.pointer.drop(b)}pinch(b){const w=this,E=w.chart,O=w.pinchDown,R=b.touches||[],g=R.length,h=w.lastValidTouch,p=w.hasZoom,v={},P=1===g&&(w.inClass(b.target,"highcharts-tracker")&&E.runTrackerClick||w.runChartClick),V={};var D=w.chart.tooltip;D=1===g&&S(D&&D.options.followTouchMove,!0);let Y=w.selectionMarker;1{Y||(w.selectionMarker=Y=W({destroy:fe,touch:!0},E.plotBox)),w.pinchTranslate(O,R,v,Y,V,h),w.hasPinched=p,w.scaleGroups(v,V)}),w.res&&(w.res=!1,this.reset(!1,0)))}pinchTranslate(b,w,E,O,R,g){this.zoomHor&&this.pinchTranslateDirection(!0,b,w,E,O,R,g),this.zoomVert&&this.pinchTranslateDirection(!1,b,w,E,O,R,g)}pinchTranslateDirection(b,w,E,O,R,g,h,p){const v=this.chart,P=b?"x":"y",V=b?"X":"Y",D="chart"+V,Y=b?"width":"height",de=v["plot"+(b?"Left":"Top")],Ce=v.inverted,Ne=v.bounds[b?"h":"v"],X=1===w.length,m=w[0][D],H=!X&&w[1][D];w=function(){"number"==typeof B&&20Ne.max&&(E=Ne.max-Z,I=!0),I?(M-=.8*(M-h[P][0]),"number"==typeof B&&(B-=.8*(B-h[P][1])),w()):h[P]=[M,B],Ce||(g[P]=q-de,g[Y]=Z),g=Ce?1/he:he,R[Y]=Z,R[P]=E,O[Ce?b?"scaleY":"scaleX":"scale"+V]=he,O["translate"+V]=g*de+(M-g*m)}reset(b,w){const E=this.chart,O=E.hoverSeries,R=E.hoverPoint,g=E.hoverPoints,h=E.tooltip,p=h&&h.shared?g:R;b&&p&&N(p).forEach(function(v){v.series.isCartesian&&void 0===v.plotX&&(b=!1)}),b?h&&p&&N(p).length&&(h.refresh(p),h.shared&&g?g.forEach(function(v){v.setState(v.state,!0),v.series.isCartesian&&(v.series.xAxis.crosshair&&v.series.xAxis.drawCrosshair(null,v),v.series.yAxis.crosshair&&v.series.yAxis.drawCrosshair(null,v))}):R&&(R.setState(R.state,!0),E.axes.forEach(function(v){v.crosshair&&R.series[v.coll]===v&&v.drawCrosshair(null,R)}))):(R&&R.onMouseOut(),g&&g.forEach(function(v){v.setState()}),O&&O.onMouseOut(),h&&h.hide(w),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),E.axes.forEach(function(v){v.hideCrosshair()}),this.hoverX=E.hoverPoints=E.hoverPoint=null)}runPointActions(b,w,E){const O=this.chart,R=O.tooltip&&O.tooltip.options.enabled?O.tooltip:void 0,g=!!R&&R.shared;let h=w||O.hoverPoint,p=h&&h.series||O.hoverSeries;w=this.getHoverData(h,p,O.series,(!b||"touchmove"!==b.type)&&(!!w||p&&p.directTouch&&this.isDirectTouch),g,b),h=w.hoverPoint,p=w.hoverSeries;const v=w.hoverPoints;w=p&&p.tooltipOptions.followPointer&&!p.tooltipOptions.split;const P=g&&p&&!p.noSharedTooltip;if(h&&(E||h!==O.hoverPoint||R&&R.isHidden)){if((O.hoverPoints||[]).forEach(function(V){-1===v.indexOf(V)&&V.setState()}),O.hoverSeries!==p&&p.onMouseOver(),this.applyInactiveState(v),(v||[]).forEach(function(V){V.setState("hover")}),O.hoverPoint&&O.hoverPoint.firePointEvent("mouseOut"),!h.series)return;O.hoverPoints=v,O.hoverPoint=h,h.firePointEvent("mouseOver",void 0,()=>{R&&h&&R.refresh(P?v:h,b)})}else w&&R&&!R.isHidden&&(E=R.getAnchor([{}],b),O.isInsidePlot(E[0],E[1],{visiblePlotOnly:!0})&&R.updatePosition({plotX:E[0],plotY:E[1]}));this.unDocMouseMove||(this.unDocMouseMove=Ae(O.container.ownerDocument,"mousemove",function(V){const D=me[F.hoverChartIndex];D&&D.pointer.onDocumentMouseMove(V)}),this.eventsToUnbind.push(this.unDocMouseMove)),O.axes.forEach(function(V){const D=S((V.crosshair||{}).snap,!0);let Y;D&&((Y=O.hoverPoint)&&Y.series[V.coll]===V||(Y=U(v,de=>de.series&&de.series[V.coll]===V))),Y||!D?V.drawCrosshair(b,Y):V.hideCrosshair()})}scaleGroups(b,w){const E=this.chart;E.series.forEach(function(O){const R=b||O.getPlotBox();O.group&&(O.xAxis&&O.xAxis.zoomEnabled||E.mapView)&&(O.group.attr(R),O.markerGroup&&(O.markerGroup.attr(R),O.markerGroup.clip(w?E.clipRect:null)),O.dataLabelsGroup&&O.dataLabelsGroup.attr(R))}),E.clipRect.attr(w||E.clipBox)}setDOMEvents(){const b=this.chart.container,w=b.ownerDocument;b.onmousedown=this.onContainerMouseDown.bind(this),b.onmousemove=this.onContainerMouseMove.bind(this),b.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Ae(b,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(Ae(b,"mouseleave",this.onContainerMouseLeave.bind(this))),F.unbindDocumentMouseUp||(F.unbindDocumentMouseUp=Ae(w,"mouseup",this.onDocumentMouseUp.bind(this)));let E=this.chart.renderTo.parentElement;for(;E&&"BODY"!==E.tagName;)this.eventsToUnbind.push(Ae(E,"scroll",()=>{delete this.chartPosition})),E=E.parentElement;le.hasTouch&&(this.eventsToUnbind.push(Ae(b,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(Ae(b,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),F.unbindDocumentTouchEnd||(F.unbindDocumentTouchEnd=Ae(w,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const b=this.chart,w=le.charts[S(F.hoverChartIndex,-1)];w&&w!==b&&w.pointer.onContainerMouseLeave({relatedTarget:b.container}),w&&w.mouseIsDown||(F.hoverChartIndex=b.index)}touch(b,w){const E=this.chart;let O,R;this.setHoverChartIndex(),1===b.touches.length?(b=this.normalize(b),(R=E.isInsidePlot(b.chartX-E.plotLeft,b.chartY-E.plotTop,{visiblePlotOnly:!0}))&&!E.openMenu?(w&&this.runPointActions(b),"touchmove"===b.type&&(O=!!(w=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(w[0].chartX-b.chartX,2)+Math.pow(w[0].chartY-b.chartY,2))),S(O,!0)&&this.pinch(b)):w&&this.reset()):2===b.touches.length&&this.pinch(b)}touchSelect(b){return!(!this.chart.zooming.singleTouch||!b.touches||1!==b.touches.length)}zoomOption(b){const w=this.chart,E=w.inverted;var O=w.zooming.type||"";/touch/.test(b.type)&&(O=S(w.zooming.pinchType,O)),this.zoomX=b=/x/.test(O),this.zoomY=O=/y/.test(O),this.zoomHor=b&&!E||O&&E,this.zoomVert=O&&!E||b&&E,this.hasZoom=b||O}}return function(G){const b=[],w=[];G.compose=function(E){ve.pushUnique(w,E)&&Ae(E,"beforeRender",function(){this.pointer=new G(this,this.options)})},G.dissolve=function(){for(let E=0,O=b.length;E{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(g){const h=G(g.padding,8);this.options=g,this.chart.styledMode||(this.itemStyle=g.itemStyle,this.itemHiddenStyle=F(this.itemStyle,g.itemHiddenStyle)),this.itemMarginTop=g.itemMarginTop,this.itemMarginBottom=g.itemMarginBottom,this.padding=h,this.initialItemY=h-5,this.symbolWidth=G(g.symbolWidth,16),this.pages=[],this.proximate="proximate"===g.layout&&!this.chart.inverted,this.baseline=void 0}update(g,h){const p=this.chart;this.setOptions(F(!0,this.options,g)),this.destroy(),p.isDirtyLegend=p.isDirtyBox=!0,G(h,!0)&&p.redraw(),S(this,"afterUpdate")}colorizeItem(g,h){const{group:p,label:v,line:P,symbol:V}=g.legendItem||{};if(p&&p[h?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:D}=this,Y=D.color,de=h&&g.color||Y,Ce=g.options&&g.options.marker;let Ne={fill:de};null==v||v.css(F(h?this.itemStyle:D)),null==P||P.attr({stroke:de}),V&&(Ce&&V.isMarker&&(Ne=g.pointAttribs(),h||(Ne.stroke=Ne.fill=Y)),V.attr(Ne))}S(this,"afterColorizeItem",{item:g,visible:h})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(g){const{group:h,x:p=0,y:v=0}=g.legendItem||{};var P=this.options,V=P.symbolPadding;const D=!P.rtl;P=g.checkbox,h&&h.element&&(V={translateX:D?p:this.legendWidth-p-2*V-4,translateY:v},h[x(h.translateY)?"animate":"attr"](V,void 0,()=>{S(this,"afterPositionItem",{item:g})})),P&&(P.x=p,P.y=v)}destroyItem(g){const h=g.checkbox,p=g.legendItem||{};for(const v of["group","label","line","symbol"])p[v]&&(p[v]=p[v].destroy());h&&y(h),g.legendItem=void 0}destroy(){for(const g of this.getAllItems())this.destroyItem(g);for(const g of"clipRect up down pager nav box title group".split(" "))this[g]&&(this[g]=this[g].destroy());this.display=null}positionCheckboxes(){const g=this.group&&this.group.alignAttr,h=this.clipHeight||this.legendHeight,p=this.titleHeight;let v;g&&(v=g.translateY,this.allItems.forEach(function(P){const V=P.checkbox;let D;V&&(D=v+p+V.y+(this.scrollOffset||0)+3,te(V,{left:g.translateX+P.checkboxOffset+V.x-20+"px",top:D+"px",display:this.proximate||D>v-6&&D1.5*v?p.height:v))}layoutItem(g){var h=this.options;const p=this.padding,v="horizontal"===h.layout,P=g.itemHeight,V=this.itemMarginBottom,D=this.itemMarginTop,Y=v?G(h.itemDistance,20):0,de=this.maxLegendWidth;h=h.alignColumns&&this.totalItemWidth>de?this.maxItemWidth:g.itemWidth;const Ce=g.legendItem||{};v&&this.itemX-p+h>de&&(this.itemX=p,this.lastLineHeight&&(this.itemY+=D+this.lastLineHeight+V),this.lastLineHeight=0),this.lastItemY=D+this.itemY+V,this.lastLineHeight=Math.max(P,this.lastLineHeight),Ce.x=this.itemX,Ce.y=this.itemY,v?this.itemX+=h:(this.itemY+=D+P+V,this.lastLineHeight=P),this.offsetWidth=this.widthOption||Math.max((v?this.itemX-p-(g.checkbox?0:Y):h)+p,this.offsetWidth)}getAllItems(){let g=[];return this.chart.series.forEach(function(h){const p=h&&h.options;h&&G(p.showInLegend,!x(p.linkedTo)&&void 0,!0)&&(g=g.concat((h.legendItem||{}).labels||("point"===p.legendType?h.data:h)))}),S(this,"afterGetAllItems",{allItems:g}),g}getAlignment(){const g=this.options;return this.proximate?g.align.charAt(0)+"tv":g.floating?"":g.align.charAt(0)+g.verticalAlign.charAt(0)+g.layout.charAt(0)}adjustMargins(g,h){const p=this.chart,v=this.options,P=this.getAlignment();P&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(V,D){V.test(P)&&!x(g[D])&&(p[se[D]]=Math.max(p[se[D]],p.legend[(D+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][D]*v[D%2?"x":"y"]+G(v.margin,12)+h[D]+(p.titleOffset[D]||0)))})}proximatePositions(){const g=this.chart,h=[],p="left"===this.options.align;let v;this.allItems.forEach(function(P){var V,D=p;let Y;P.yAxis&&(P.xAxis.options.reversed&&(D=!D),P.points&&(V=A(D?P.points:P.points.slice(0).reverse(),function(de){return N(de.plotY)})),D=this.itemMarginTop+P.legendItem.label.getBBox().height+this.itemMarginBottom,Y=P.yAxis.top-g.plotTop,P.visible?(V=V?V.plotY:P.yAxis.height,V+=Y-.3*D):V=Y+P.yAxis.height,h.push({target:V,size:D,item:P}))},this);for(const P of W(h,g.plotHeight))v=P.item.legendItem||{},N(P.pos)&&(v.y=g.plotTop-g.spacing[0]+P.pos)}render(){const g=this.chart,h=g.renderer,p=this.options,v=this.padding;var P=this.getAllItems();let V,D=this.group,Y=this.box;this.itemX=v,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=b(p.width,g.spacingBox.width-v);var de=g.spacingBox.width-2*v-p.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(de/=2),this.maxLegendWidth=this.widthOption||de,D||(this.group=D=h.g("legend").addClass(p.className||"").attr({zIndex:7}).add(),this.contentGroup=h.g().attr({zIndex:1}).add(D),this.scrollGroup=h.g().add(this.contentGroup)),this.renderTitle(),w(P,(Ce,Ne)=>(Ce.options&&Ce.options.legendIndex||0)-(Ne.options&&Ne.options.legendIndex||0)),p.reversed&&P.reverse(),this.allItems=P,this.display=de=!!P.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,P.forEach(this.renderItem,this),P.forEach(this.layoutItem,this),P=(this.widthOption||this.offsetWidth)+v,V=this.lastItemY+this.lastLineHeight+this.titleHeight,V=this.handleOverflow(V),V+=v,Y||(this.box=Y=h.rect().addClass("highcharts-legend-box").attr({r:p.borderRadius}).add(D)),g.styledMode||Y.attr({stroke:p.borderColor,"stroke-width":p.borderWidth||0,fill:p.backgroundColor||"none"}).shadow(p.shadow),0V&&!1!==Ce.enabled?(this.clipHeight=he=Math.max(V-20-this.titleHeight-Y,0),this.currentPage=G(this.currentPage,1),this.fullHeight=g,H.forEach((ne,re)=>{B=ne.legendItem||{},ne=B.y||0;const _e=Math.round(B.label.getBBox().height);let we=m.length;(!we||ne-m[we-1]>he&&(M||ne)!==m[we-1])&&(m.push(M||ne),we++),B.pageIx=we-1,M&&((H[re-1].legendItem||{}).pageIx=we-1),re===H.length-1&&ne+_e-m[we-1]>he&&ne>m[we-1]&&(m.push(ne),B.pageIx=we),ne!==M&&(M=ne)}),K||(K=h.clipRect=v.clipRect(0,Y-2,9999,0),h.contentGroup.clip(K)),Z(he),I||(this.nav=I=v.g().attr({zIndex:1}).add(this.group),this.up=v.symbol("triangle",0,0,X,X).add(I),q("upTracker").on("click",function(){h.scroll(-1,Ne)}),this.pager=v.text("",15,10).addClass("highcharts-legend-navigation"),!p.styledMode&&Ce.style&&this.pager.css(Ce.style),this.pager.add(I),this.down=v.symbol("triangle-down",0,0,X,X).add(I),q("downTracker").on("click",function(){h.scroll(1,Ne)})),h.scroll(0),g=V):I&&(Z(),this.nav=I.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),g}scroll(g,h){const p=this.chart,v=this.pages,P=v.length,V=this.clipHeight,D=this.options.navigation,Y=this.pager,de=this.padding;let Ce=this.currentPage+g;Ce>P&&(Ce=P),0{S(this,"afterScroll",{currentPage:Ce})},g.duration))}setItemEvents(g,h,p){const v=this,P=g.legendItem||{},V=v.chart.renderer.boxWrapper,D=g instanceof xe,Y="highcharts-legend-"+(D?"point":"series")+"-active",de=v.chart.styledMode;p=p?[h,P.symbol]:[P.group];const Ce=Ne=>{v.allItems.forEach(X=>{g!==X&&[X].concat(X.linkedSeries||[]).forEach(m=>{m.setState(Ne,!D)})})};for(const Ne of p)Ne&&Ne.on("mouseover",function(){g.visible&&Ce("inactive"),g.setState("hover"),g.visible&&V.addClass(Y),de||h.css(v.options.itemHoverStyle)}).on("mouseout",function(){v.chart.styledMode||h.css(F(g.visible?v.itemStyle:v.itemHiddenStyle)),Ce(""),V.removeClass(Y),g.setState()}).on("click",function(X){const m=function(){g.setVisible&&g.setVisible(),Ce(g.visible?"inactive":"")};V.removeClass(Y),X={browserEvent:X},g.firePointEvent?g.firePointEvent("legendItemClick",X,m):S(g,"legendItemClick",X,m)})}createCheckboxForItem(g){g.checkbox=Q("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:g.selected,defaultChecked:g.selected},this.options.itemCheckboxStyle,this.chart.container),U(g.checkbox,"click",function(h){S(g.series||g,"checkboxClick",{checked:h.target.checked,item:g},function(){g.select()})})}}return function(R){const g=[];R.compose=function(h){fe.pushUnique(g,h)&&U(h,"beforeMargins",function(){this.legend=new R(this,this.options.legend)})}}(O||(O={})),O}),Oe(be,"Core/Legend/LegendSymbol.js",[be["Core/Utilities.js"]],function(oe){const{extend:le,merge:ve,pick:xe}=oe;var me=(()=>{return(fe=me||(me={})).lineMarker=function(Ae,ce){ce=this.legendItem=this.legendItem||{};var ye=this.options;const se=Ae.symbolWidth,W=Ae.symbolHeight,U=W/2,Q=this.chart.renderer,te=ce.group;Ae=Ae.baseline-Math.round(.3*Ae.fontMetrics.b);let x={},y=ye.marker,A=0;this.chart.styledMode||(x={"stroke-width":Math.min(ye.lineWidth||0,24)},ye.dashStyle?x.dashstyle=ye.dashStyle:"square"!==ye.linecap&&(x["stroke-linecap"]="round")),ce.line=Q.path().addClass("highcharts-graph").attr(x).add(te),x["stroke-linecap"]&&(A=Math.min(ce.line.strokeWidth(),se)/2),se&&ce.line.attr({d:[["M",A,Ae],["L",se-A,Ae]]}),y&&!1!==y.enabled&&se&&(ye=Math.min(xe(y.radius,U),U),0===this.symbol.indexOf("url")&&(y=ve(y,{width:W,height:W}),ye=0),ce.symbol=ce=Q.symbol(this.symbol,se/2-ye,Ae-ye,2*ye,2*ye,le({context:"legend"},y)).addClass("highcharts-point").add(te),ce.isMarker=!0)},fe.rectangle=function(Ae,ce){const ye=Ae.symbolHeight,se=Ae.options.squareSymbol;(ce=ce.legendItem||{}).symbol=this.chart.renderer.rect(se?(Ae.symbolWidth-ye)/2:0,Ae.baseline-ye+1,se?ye:Ae.symbolWidth,ye,xe(Ae.options.symbolRadius,ye/2)).addClass("highcharts-point").attr({zIndex:3}).add(ce.group)},me;var fe})();return me}),Oe(be,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:oe}=this.series.chart;return"number"!=typeof this.y?"":oe(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),Oe(be,"Core/Series/SeriesRegistry.js",[be["Core/Globals.js"],be["Core/Defaults.js"],be["Core/Series/Point.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe){const{defaultOptions:me}=le,{extendClass:fe,merge:Ae}=xe;var ce;return function(ye){function se(W,U){const Q=me.plotOptions||{},te=U.defaultOptions,x=U.prototype;x.type=W,x.pointClass||(x.pointClass=ve),te&&(Q[W]=te),ye.seriesTypes[W]=U}ye.seriesTypes=oe.seriesTypes,ye.registerSeriesType=se,ye.seriesType=function(W,U,Q,te,x){const y=me.plotOptions||{};return y[W]=Ae(y[U=U||""],Q),se(W,fe(ye.seriesTypes[U]||function(){},te)),ye.seriesTypes[W].prototype.type=W,x&&(ye.seriesTypes[W].prototype.pointClass=fe(ve,x)),ye.seriesTypes[W]}}(ce||(ce={})),ce}),Oe(be,"Core/Series/Series.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Defaults.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Legend/LegendSymbol.js"],be["Core/Series/Point.js"],be["Core/Series/SeriesDefaults.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se){const{animObject:W,setAnimation:U}=oe,{defaultOptions:Q}=le,{registerEventOptions:te}=ve,{hasTouch:x,svg:y,win:A}=xe,{seriesTypes:S}=ce,{arrayMax:N,arrayMin:F,clamp:G,correctFloat:b,defined:w,diffObjects:E,erase:O,error:R,extend:g,find:h,fireEvent:p,getClosestDistance:v,getNestedProperty:P,insertItem:V,isArray:D,isNumber:Y,isString:de,merge:Ce,objectEach:Ne,pick:X,removeEvent:m,splat:H,syncTimeout:Z}=se;class q{constructor(){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}init(M,B){p(this,"init",{options:B});const I=this,K=M.series;this.eventsToUnbind=[],I.chart=M,I.options=I.setOptions(B),B=I.options,I.linkedSeries=[],I.bindAxes(),g(I,{name:B.name,state:"",visible:!1!==B.visible,selected:!0===B.selected}),te(this,B);const ne=B.events;let re;(ne&&ne.click||B.point&&B.point.events&&B.point.events.click||B.allowPointSelect)&&(M.runTrackerClick=!0),I.getColor(),I.getSymbol(),I.parallelArrays.forEach(function(_e){I[_e+"Data"]||(I[_e+"Data"]=[])}),I.isCartesian&&(M.hasCartesianSeries=!0),K.length&&(re=K[K.length-1]),I._i=X(re&&re._i,-1)+1,I.opacity=I.options.opacity,M.orderItems("series",V(this,K)),B.dataSorting&&B.dataSorting.enabled?I.setDataSortingOptions():I.points||I.data||I.setData(B.data,!1),p(this,"afterInit")}is(M){return S[M]&&this instanceof S[M]}bindAxes(){const M=this,B=M.options,I=M.chart;let K;p(this,"bindAxes",null,function(){(M.axisTypes||[]).forEach(function(ne){I[ne].forEach(function(re){K=re.options,(X(B[ne],0)===re.index||void 0!==B[ne]&&B[ne]===K.id)&&(V(M,re.series),M[ne]=re,re.isDirty=!0)}),M[ne]||M.optionalAxis===ne||R(18,!0,I)})}),p(this,"afterBindAxes")}updateParallelArrays(M,B,I){const K=M.series,ne=Y(B)?function(re){const _e="y"===re&&K.toYData?K.toYData(M):M[re];K[re+"Data"][B]=_e}:function(re){Array.prototype[B].apply(K[re+"Data"],I)};K.parallelArrays.forEach(ne)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0!Re.touched&&Re.index===M.index,re&&re.matchByName?_e=Re=>!Re.touched&&Re.name===M.name:this.options.relativeXValue&&(_e=Re=>!Re.touched&&Re.options.x===M.x),!(_e=h(ne,_e))))return;return _e&&(Se=_e&&_e.index,void 0!==Se&&(we=!0)),void 0===Se&&Y(K)&&(Se=this.xData.indexOf(K,B)),-1!==Se&&void 0!==Se&&this.cropped&&(Se=Se>=this.cropStart?Se-this.cropStart:Se),!we&&Y(Se)&&ne[Se]&&ne[Se].touched&&(Se=void 0),Se}updateData(M,B){const I=this.options,K=I.dataSorting,ne=this.points,re=[],_e=this.requireSorting,we=M.length===ne.length;let Se,Re,ze,ie=!0;if(this.xIncrement=null,M.forEach(function(ee,Ee){var pe=w(ee)&&this.pointClass.prototype.optionsToObject.call({series:this},ee)||{};pe.id||Y(pe.x)?(-1===(pe=this.findPointIndex(pe,ze))||void 0===pe?re.push(ee):ne[pe]&&ee!==I.data[pe]?(ne[pe].update(ee,!1,null,!1),ne[pe].touched=!0,_e&&(ze=pe+1)):ne[pe]&&(ne[pe].touched=!0),(!we||Ee!==pe||K&&K.enabled||this.hasDerivedData)&&(Se=!0)):re.push(ee)},this),Se)for(M=ne.length;M--;)(Re=ne[M])&&!Re.touched&&Re.remove&&Re.remove(!1,B);else!we||K&&K.enabled?ie=!1:(M.forEach(function(ee,Ee){ee===ne[Ee].y||ne[Ee].destroyed||ne[Ee].update(ee,!1,null,!1)}),re.length=0);return ne.forEach(function(ee){ee&&(ee.touched=!1)}),!!ie&&(re.forEach(function(ee){this.addPoint(ee,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)}setData(M,B=!0,I,K){var ne;const re=this,_e=re.points,we=_e&&_e.length||0,Se=re.options,Re=re.chart,ze=Se.dataSorting,ie=re.xAxis,ee=Se.turboThreshold,Ee=this.xData,pe=this.yData;var De=re.pointArrayMap;De=De&&De.length;const Ge=Se.keys;let We,ut=0,yt=1,ft=null;if(!Re.options.chart.allowMutatingData){Se.data&&delete re.options.data,re.userOptions.data&&delete re.userOptions.data;var _t=Ce(!0,M)}if(_t=(M=_t||M||[]).length,ze&&ze.enabled&&(M=this.sortData(M)),Re.options.chart.allowMutatingData&&!1!==K&&_t&&we&&!re.cropped&&!re.hasGroupedData&&re.visible&&!re.boosted&&(We=this.updateData(M,I)),!We){if(re.xIncrement=null,re.colorCounter=0,this.parallelArrays.forEach(function(Zt){re[Zt+"Data"].length=0}),ee&&_t>ee)if(ft=re.getFirstValidPoint(M),Y(ft))for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I];else if(D(ft))if(De)if(ft.length===De)for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I];else for(I=0;I<_t;I++)Ee[I]=(K=M[I])[0],pe[I]=K.slice(1,De+1);else if(Ge&&(ut=Ge.indexOf("x"),yt=Ge.indexOf("y"),ut=0<=ut?ut:0,yt=0<=yt?yt:1),1===ft.length&&(yt=0),ut===yt)for(I=0;I<_t;I++)Ee[I]=this.autoIncrement(),pe[I]=M[I][yt];else for(I=0;I<_t;I++)Ee[I]=(K=M[I])[ut],pe[I]=K[yt];else R(12,!1,Re);else for(I=0;I<_t;I++)re.pointClass.prototype.applyOptions.apply(K={series:re},[M[I]]),re.updateParallelArrays(K,I);for(pe&&de(pe[0])&&R(14,!0,Re),re.data=[],re.options.data=re.userOptions.data=M,I=we;I--;)null===(ne=_e[I])||void 0===ne||ne.destroy();ie&&(ie.minRange=ie.userMinRange),re.isDirty=Re.isDirtyBox=!0,re.isDirtyData=!!_e,I=!1}"point"===Se.legendType&&(this.processData(),this.generatePoints()),B&&Re.redraw(I)}sortData(M){const B=this,I=B.options.dataSorting.sortKey||"y",K=function(ne,re){return w(re)&&ne.pointClass.prototype.optionsToObject.call({series:ne},re)||{}};return M.forEach(function(ne,re){M[re]=K(B,ne),M[re].index=re},this),M.concat().sort((ne,re)=>(ne=P(I,ne),(re=P(I,re))ne?1:0)).forEach(function(ne,re){ne.x=re},this),B.linkedSeries&&B.linkedSeries.forEach(function(ne){const re=ne.options,_e=re.data;re.dataSorting&&re.dataSorting.enabled||!_e||(_e.forEach(function(we,Se){_e[Se]=K(ne,we),M[Se]&&(_e[Se].x=M[Se].x,_e[Se].index=Se)}),ne.setData(_e,!1))}),M}getProcessedData(M){const B=this;var I=B.xAxis,K=B.options;const ne=K.cropThreshold,re=M||B.getExtremesFromAll||K.getExtremesFromAll,_e=null==I?void 0:I.logarithmic,we=B.isCartesian;let Re,Se=0;K=B.yData;let ze=!1;const ie=(M=B.xData).length;if(I){var ee=I.getExtremes();Re=ee.min,ee=ee.max,ze=!(!I.categories||I.names.length)}if(we&&B.sorted&&!re&&(!ne||ie>ne||B.forceCrop))if(M[ie-1]ee)M=[],K=[];else if(B.yData&&(M[0]ee)){var Ee=this.cropData(B.xData,B.yData,Re,ee);M=Ee.xData,K=Ee.yData,Se=Ee.start,Ee=!0}return I=v([_e?M.map(_e.log2lin):M],()=>B.requireSorting&&!ze&&R(15,!1,B.chart)),{xData:M,yData:K,cropped:Ee,cropStart:Se,closestPointRange:I}}processData(M){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!M)return!1;M=this.getProcessedData(),this.cropped=M.cropped,this.cropStart=M.cropStart,this.processedXData=M.xData,this.processedYData=M.yData,this.closestPointRange=this.basePointRange=M.closestPointRange,p(this,"afterProcessData")}cropData(M,B,I,K,ne){const re=M.length;let _e,we=0,Se=re;for(ne=X(ne,this.cropShoulder),_e=0;_e=I){we=Math.max(0,_e-ne);break}for(I=_e;IK){Se=I+ne;break}return{xData:M.slice(we,Se),yData:B.slice(we,Se),start:we,end:Se}}generatePoints(){var M=this.options;const B=this.processedData||M.data,I=this.processedXData,K=this.processedYData,ne=this.pointClass,re=I.length,_e=this.cropStart||0,we=this.hasGroupedData,Se=M.keys,Re=[];M=M.dataGrouping&&M.dataGrouping.groupAll?_e:0;let ze,ie,ee,Ee=this.data;if(!Ee&&!we){var pe=[];pe.length=B.length,Ee=this.data=pe}for(Se&&we&&(this.options.keys=!1),ee=0;ee=Se&&(ne[we-_e]||Ee)<=Re,pe&&Ee)if(pe=ee.length)for(;pe--;)Y(ee[pe])&&(re[ze++]=ee[pe]);else re[ze++]=ee}return M={activeYData:re,dataMin:F(re),dataMax:N(re)},p(this,"afterGetExtremes",{dataExtremes:M}),M}applyExtremes(){const M=this.getExtremes();return this.dataMin=M.dataMin,this.dataMax=M.dataMax,M}getFirstValidPoint(M){const B=M.length;let I=0,K=null;for(;null===K&&I=Zt&&(Zt=void 0),We.total=We.stackTotal=X(yt.total),We.percentage=w(We.y)&&yt.total?We.y/yt.total*100:void 0,We.stackY=_t,this.irregularWidths||yt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),We.yBottom=w(Zt)?G(_e.translate(Zt,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(_t=this.dataModify.modifyValue(_t,ee)),Y(_t)&&void 0!==We.plotX&&(Lt=_e.translate(_t,!1,!0,!1,!0),Lt=Y(Lt)?G(Lt,-1e5,1e5):void 0),We.plotY=Lt,We.isInside=this.isPointInside(We),We.clientX=ze?b(K.translate(ut,!1,!1,!1,!0,Re)):Ee,We.negative=(We.y||0)<(ie||0),We.category=X(ne&&ne[We.x],We.x),We.isNull||!1===We.visible||(void 0!==pe&&(Ge=Math.min(Ge,Math.abs(Ee-pe))),pe=Ee),We.zone=this.zones.length?We.getZone():void 0,!We.graphic&&this.group&&re&&(We.isNew=!0)}this.closestPointRangePx=Ge,p(this,"afterTranslate")}getValidPoints(M,B,I){const K=this.chart;return(M||this.points||[]).filter(function(ne){const{plotX:re,plotY:_e}=ne;return!(!(I||!ne.isNull&&Y(_e))||B&&!K.isInsidePlot(re,_e,{inverted:K.inverted}))&&!1!==ne.visible})}getClipBox(){const{chart:M,xAxis:B,yAxis:I}=this,K=Ce(M.clipBox);return B&&B.len!==M.plotSizeX&&(K.width=B.len),I&&I.len!==M.plotSizeY&&(K.height=I.len),K}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:M,group:B,markerGroup:I}=this,K=M.sharedClips,ne=M.renderer,re=this.getClipBox(),_e=this.getSharedClipKey();let we=K[_e];we?we.animate(re):K[_e]=we=ne.clipRect(re),B&&B.clip(!1===this.options.clip?void 0:we),I&&I.clip()}animate(M){const{chart:B,group:I,markerGroup:K}=this,ne=B.inverted;var re=W(this.options.animation),_e=[this.getSharedClipKey(),re.duration,re.easing,re.defer].join();let we=B.sharedClips[_e],Se=B.sharedClips[_e+"m"];if(M&&I)re=this.getClipBox(),we?we.attr("height",re.height):(re.width=0,ne&&(re.x=B.plotHeight),we=B.renderer.clipRect(re),B.sharedClips[_e]=we,Se=B.renderer.clipRect({x:-99,y:-99,width:ne?B.plotWidth+199:99,height:ne?99:B.plotHeight+199}),B.sharedClips[_e+"m"]=Se),I.clip(we),K&&K.clip(Se);else if(we&&!we.hasClass("highcharts-animating")){_e=this.getClipBox();const Re=re.step;K&&K.element.childNodes.length&&(re.step=function(ze,ie){Re&&Re.apply(ie,arguments),"width"===ie.prop&&Se&&Se.element&&Se.attr(ne?"height":"width",ze+99)}),we.addClass("highcharts-animating").animate(_e,re)}}afterAnimate(){this.setClip(),Ne(this.chart.sharedClips,(M,B,I)=>{M&&!this.chart.container.querySelector(`[clip-path="url(#${M.id})"]`)&&(M.destroy(),delete I[B])}),this.finishedAnimating=!0,p(this,"afterAnimate")}drawPoints(M=this.points){const B=this.chart,I=B.styledMode,{colorAxis:K,options:ne}=this,re=ne.marker,_e=this[this.specialGroup||"markerGroup"],we=this.xAxis,Se=X(re.enabled,!(we&&!we.isRadial)||null,this.closestPointRangePx>=re.enabledThreshold*re.radius);let Re,ze,ie,ee,Ee,pe;if(!1!==re.enabled||this._hasPointMarkers)for(Re=0;ReRe.destroy()),se.clearTimeout(B.animationTimeout),Ne(B,function(Re,ze){Re instanceof ye&&!Re.survive&&(re=K&&"group"===ze?"hide":"destroy",Re[re]())}),I.hoverSeries===B&&(I.hoverSeries=void 0),O(I.series,B),I.orderItems("series"),Ne(B,function(Re,ze){M&&"hcEvents"===ze||delete B[ze]})}applyZones(){const M=this,B=this.chart,I=B.renderer,K=this.zones,ne=this.clips||[],re=this.graph,_e=this.area,we=Math.max(B.plotWidth,B.plotHeight),Se=this[(this.zoneAxis||"y")+"Axis"],Re=B.inverted;let ze,ie,ee,Ee,pe,De,Ge,We,ut,yt,ft,_t=!1;K.length&&(re||_e)&&Se&&void 0!==Se.min?(pe=Se.reversed,De=Se.horiz,re&&!this.showLine&&re.hide(),_e&&_e.hide(),Ee=Se.getExtremes(),K.forEach(function(Zt,Nt){ze=pe?De?B.plotWidth:0:De?0:Se.toPixels(Ee.min)||0,ze=G(X(ie,ze),0,we),ie=G(Math.round(Se.toPixels(X(Zt.value,Ee.max),!0)||0),0,we),_t&&(ze=ie=Se.toPixels(Ee.max)),Ge=Math.abs(ze-ie),We=Math.min(ze,ie),ut=Math.max(ze,ie),Se.isXAxis?(ee={x:Re?ut:We,y:0,width:Ge,height:we},De||(ee.x=B.plotHeight-ee.x)):(ee={x:0,y:Re?ut:We,width:we,height:Ge},De&&(ee.y=B.plotWidth-ee.y)),ne[Nt]?ne[Nt].animate(ee):ne[Nt]=I.clipRect(ee),yt=M["zone-area-"+Nt],ft=M["zone-graph-"+Nt],re&&ft&&ft.clip(ne[Nt]),_e&&yt&&yt.clip(ne[Nt]),_t=Zt.value>Ee.max,M.resetZones&&0===ie&&(ie=void 0)}),this.clips=ne):M.visible&&(re&&re.show(),_e&&_e.show())}plotGroup(M,B,I,K,ne){let re=this[M];const _e=!re;return I={visibility:I,zIndex:K||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(I.opacity=this.opacity),_e&&(this[M]=re=this.chart.renderer.g().add(ne)),re.addClass("highcharts-"+B+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(re.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),re.attr(I)[_e?"attr":"animate"](this.getPlotBox(B)),re}getPlotBox(M){let B=this.xAxis,I=this.yAxis;const K=this.chart;return M=K.inverted&&!K.polar&&B&&!1!==this.invertible&&"series"===M,K.inverted&&(B=I,I=this.xAxis),{translateX:B?B.left:K.plotLeft,translateY:I?I.top:K.plotTop,rotation:M?90:0,rotationOriginX:M?(B.len-I.len)/2:0,rotationOriginY:M?(B.len+I.len)/2:0,scaleX:M?-1:1,scaleY:1}}removeEvents(M){M||m(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(B){B()}),this.eventsToUnbind.length=0)}render(){const M=this;var B=M.chart;const I=M.options,K=W(I.animation),ne=M.visible?"inherit":"hidden",re=I.zIndex,_e=M.hasRendered;B=B.seriesGroup;let we=M.finishedAnimating?0:K.duration;p(this,"render"),M.plotGroup("group","series",ne,re,B),M.markerGroup=M.plotGroup("markerGroup","markers",ne,re,B),!1!==I.clip&&M.setClip(),M.animate&&we&&M.animate(!0),M.drawGraph&&(M.drawGraph(),M.applyZones()),M.visible&&M.drawPoints(),M.drawDataLabels&&M.drawDataLabels(),M.redrawPoints&&M.redrawPoints(),M.drawTracker&&I.enableMouseTracking&&M.drawTracker(),M.animate&&we&&M.animate(),_e||(we&&K.defer&&(we+=K.defer),M.animationTimeout=Z(function(){M.afterAnimate()},we||0)),M.isDirty=!1,M.hasRendered=!0,p(M,"afterRender")}redraw(){const M=this.isDirty||this.isDirtyData;this.translate(),this.render(),M&&delete this.kdTree}searchPoint(M,B){const I=this.xAxis,K=this.yAxis,ne=this.chart.inverted;return this.searchKDTree({clientX:ne?I.len-M.chartY+I.pos:M.chartX-I.pos,plotY:ne?K.len-M.chartX+K.pos:M.chartY-K.pos},B,M)}buildKDTree(M){function B(ne,re,_e){var we=ne&&ne.length;let Se;if(we)return Se=I.kdAxisArray[re%_e],ne.sort(function(Re,ze){return Re[Se]-ze[Se]}),{point:ne[we=Math.floor(we/2)],left:B(ne.slice(0,we),re+1,_e),right:B(ne.slice(we+1),re+1,_e)}}this.buildingKdTree=!0;const I=this,K=-1(Ee=Se[Ee]-ee[Ee])?"right":"left",Re[Ge=0>Ee?"left":"right"]&&(pe=(Ge=K(Se,Re[Ge],ze+1,ie))[we]pe;)ee--;this.updateParallelArrays(Ee,"splice",[ee,0,0]),this.updateParallelArrays(Ee,ee),Se&&Ee.name&&(Se[pe]=Ee.name),Re.splice(ee,0,M),(ie||this.processedData)&&(this.data.splice(ee,0,null),this.processData()),"point"===re.legendType&&this.generatePoints(),I&&(_e[0]&&_e[0].remove?_e[0].remove(!1):(_e.shift(),this.updateParallelArrays(Ee,"shift"),Re.shift())),!1!==ne&&p(this,"addPoint",{point:Ee}),this.isDirtyData=this.isDirty=!0,B&&we.redraw(K)}removePoint(M,B,I){const K=this,ne=K.data,re=ne[M],_e=K.points,we=K.chart,Se=function(){_e&&_e.length===ne.length&&_e.splice(M,1),ne.splice(M,1),K.options.data.splice(M,1),K.updateParallelArrays(re||{series:K},"splice",[M,1]),re&&re.destroy(),K.isDirty=!0,K.isDirtyData=!0,B&&we.redraw()};U(I,we),B=X(B,!0),re?re.firePointEvent("remove",null,Se):Se()}remove(M,B,I,K){function ne(){re.destroy(K),_e.isDirtyLegend=_e.isDirtyBox=!0,_e.linkSeries(K),X(M,!0)&&_e.redraw(B)}const re=this,_e=re.chart;!1!==I?p(re,"remove",null,ne):ne()}update(M,B){M=E(M,this.userOptions),p(this,"update",{options:M});const I=this,K=I.chart;var ne=I.userOptions;const re=I.initialType||I.type;var _e=K.options.plotOptions;const we=S[re].prototype;var Se=I.finishedAnimating&&{animation:!1};const Re={};let ze,ie=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ee=M.type||ne.type||K.options.chart.type;const Ee=!(this.hasDerivedData||ee&&ee!==this.type||void 0!==M.pointStart||void 0!==M.pointInterval||void 0!==M.relativeXValue||M.joinBy||M.mapData||I.hasOptionChanged("dataGrouping")||I.hasOptionChanged("pointStart")||I.hasOptionChanged("pointInterval")||I.hasOptionChanged("pointIntervalUnit")||I.hasOptionChanged("keys"));if(ee=ee||re,Ee&&(ie.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==M.visible&&ie.push("area","graph"),I.parallelArrays.forEach(function(pe){ie.push(pe+"Data")}),M.data&&(M.dataSorting&&g(I.options.dataSorting,M.dataSorting),this.setData(M.data,!1))),M=Ce(ne,Se,{index:void 0===ne.index?I.index:ne.index,pointStart:X(_e&&_e.series&&_e.series.pointStart,ne.pointStart,I.xData[0])},!Ee&&{data:I.options.data},M),Ee&&M.data&&(M.data=I.options.data),ie=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(ie),ie.forEach(function(pe){ie[pe]=I[pe],delete I[pe]}),_e=!1,S[ee]){if(_e=ee!==I.type,I.remove(!1,!1,!1,!0),_e)if(Object.setPrototypeOf)Object.setPrototypeOf(I,S[ee].prototype);else{for(ze in Se=Object.hasOwnProperty.call(I,"hcEvents")&&I.hcEvents,we)I[ze]=void 0;g(I,S[ee].prototype),Se?I.hcEvents=Se:delete I.hcEvents}}else R(17,!0,K,{missingModuleFor:ee});if(ie.forEach(function(pe){I[pe]=ie[pe]}),I.init(K,M),Ee&&this.points){if(!1===(M=I.options).visible)Re.graphic=1,Re.dataLabel=1;else if(!I._hasPointLabels){const{marker:pe,dataLabels:De}=M;ne=ne.marker||{},!pe||!1!==pe.enabled&&ne.symbol===pe.symbol&&ne.height===pe.height&&ne.width===pe.width||(Re.graphic=1),De&&!1===De.enabled&&(Re.dataLabel=1)}for(const pe of this.points)pe&&pe.series&&(pe.resolveColor(),Object.keys(Re).length&&pe.destroyElements(Re),!1===M.showInLegend&&pe.legendItem&&K.legend.destroyItem(pe))}I.initialType=re,K.linkSeries(),_e&&I.linkedSeries.length&&(I.isDirtyData=!0),p(this,"afterUpdate"),X(B,!0)&&K.redraw(!!Ee&&void 0)}setName(M){this.name=this.options.name=this.userOptions.name=M,this.chart.isDirtyLegend=!0}hasOptionChanged(M){const B=this.options[M],I=this.chart.options.plotOptions,K=this.userOptions[M];return K?B!==K:B!==X(I&&I[this.type]&&I[this.type][M],I&&I.series&&I.series[M],B)}onMouseOver(){const M=this.chart,B=M.hoverSeries;M.pointer.setHoverChartIndex(),B&&B!==this&&B.onMouseOut(),this.options.events.mouseOver&&p(this,"mouseOver"),this.setState("hover"),M.hoverSeries=this}onMouseOut(){const M=this.options,B=this.chart,I=B.tooltip,K=B.hoverPoint;B.hoverSeries=null,K&&K.onMouseOut(),this&&M.events.mouseOut&&p(this,"mouseOut"),!I||this.stickyTracking||I.shared&&!this.noSharedTooltip||I.hide(),B.series.forEach(function(ne){ne.setState("",!0)})}setState(M,B){const I=this;var K=I.options;const ne=I.graph,re=K.inactiveOtherPoints,_e=K.states,we=X(_e[M||"normal"]&&_e[M||"normal"].animation,I.chart.options.chart.animation);let Se=K.lineWidth,Re=0,ze=K.opacity;if(I.state!==(M=M||"")&&([I.group,I.markerGroup,I.dataLabelsGroup].forEach(function(ie){ie&&(I.state&&ie.removeClass("highcharts-series-"+I.state),M&&ie.addClass("highcharts-series-"+M))}),I.state=M,!I.chart.styledMode)){if(_e[M]&&!1===_e[M].enabled)return;if(M&&(Se=_e[M].lineWidth||Se+(_e[M].lineWidthPlus||0),ze=X(_e[M].opacity,ze)),ne&&!ne.dashstyle&&Y(Se))for(ne.animate(K={"stroke-width":Se},we);I["zone-graph-"+Re];)I["zone-graph-"+Re].animate(K,we),Re+=1;re||[I.group,I.markerGroup,I.dataLabelsGroup,I.labelBySeries].forEach(function(ie){ie&&ie.animate({opacity:ze},we)})}B&&re&&I.points&&I.setAllPointsToState(M||void 0)}setAllPointsToState(M){this.points.forEach(function(B){B.setState&&B.setState(M)})}setVisible(M,B){const I=this,K=I.chart,ne=K.options.chart.ignoreHiddenSeries,_e=(I.visible=M=I.options.visible=I.userOptions.visible=void 0===M?!I.visible:M)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(we){I[we]&&I[we][_e]()}),(K.hoverSeries===I||(K.hoverPoint&&K.hoverPoint.series)===I)&&I.onMouseOut(),I.legendItem&&K.legend.colorizeItem(I,M),I.isDirty=!0,I.options.stacking&&K.series.forEach(function(we){we.options.stacking&&we.visible&&(we.isDirty=!0)}),I.linkedSeries.forEach(function(we){we.setVisible(M,!1)}),ne&&(K.isDirtyBox=!0),p(I,_e),!1!==B&&K.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(M){this.selected=M=this.options.selected=void 0===M?!this.selected:M,this.checkbox&&(this.checkbox.checked=M),p(this,M?"select":"unselect")}shouldShowTooltip(M,B,I={}){return I.series=this,I.visiblePlotOnly=!0,this.chart.isInsidePlot(M,B,I)}drawLegendSymbol(M,B){var I;null===(I=me[this.options.legendSymbol||"rectangle"])||void 0===I||I.call(this,M,B)}}return q.defaultOptions=Ae,q.types=ce.seriesTypes,q.registerType=ce.registerSeriesType,g(q.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:fe,requireSorting:!0,sorted:!0}),ce.series=q,q}),Oe(be,"Core/Chart/Chart.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Defaults.js"],be["Core/Templating.js"],be["Core/Foundation.js"],be["Core/Globals.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Time.js"],be["Core/Utilities.js"],be["Core/Renderer/HTML/AST.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W,U,Q){const{animate:te,animObject:x,setAnimation:y}=oe,{defaultOptions:A,defaultTime:S}=ve,{numberFormat:N}=xe,{registerEventOptions:F}=me,{charts:G,doc:b,marginNames:w,svg:E,win:O}=fe,{seriesTypes:R}=ye,{addEvent:g,attr:h,createElement:p,css:v,defined:P,diffObjects:V,discardElement:D,erase:Y,error:de,extend:Ce,find:Ne,fireEvent:X,getStyle:m,isArray:H,isNumber:Z,isObject:q,isString:he,merge:M,objectEach:B,pick:I,pInt:K,relativeLength:ne,removeEvent:re,splat:_e,syncTimeout:we,uniqueKey:Se}=U;class Re{static chart(ie,ee,Ee){return new Re(ie,ee,Ee)}constructor(ie,ee,Ee){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(ie,ee,Ee)}getArgs(ie,ee,Ee){he(ie)||ie.nodeName?(this.renderTo=ie,this.init(ee,Ee)):this.init(ie,ee)}setZoomOptions(){const ie=this.options.chart,ee=ie.zooming;this.zooming=Object.assign(Object.assign({},ee),{type:I(ie.zoomType,ee.type),key:I(ie.zoomKey,ee.key),pinchType:I(ie.pinchType,ee.pinchType),singleTouch:I(ie.zoomBySingleTouch,ee.singleTouch,!1),resetButton:M(ee.resetButton,ie.resetZoomButton)})}init(ie,ee){X(this,"init",{args:arguments},function(){const Ee=M(A,ie),pe=Ee.chart;this.userOptions=Ce({},ie),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=ee,this.isResizing=0,this.options=Ee,this.axes=[],this.series=[],this.time=ie.time&&Object.keys(ie.time).length?new W(ie.time):fe.time,this.numberFormatter=pe.numberFormatter||N,this.styledMode=pe.styledMode,this.hasCartesianSeries=pe.showAxes,this.index=G.length,G.push(this),fe.chartCount++,F(this,pe),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),X(this,"afterInit"),this.firstRender()})}initSeries(ie){var ee=this.options.chart;const Ee=R[ee=ie.type||ee.type];return Ee||de(17,!0,this,{missingModuleFor:ee}),"function"==typeof(ee=new Ee).init&&ee.init(this,ie),ee}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(ie){ie.points||ie.data||!ie.enabledDataSorting||ie.setData(ie.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(ie,ee){return ie.linkedSeries.length||ee.linkedSeries.length?ee.linkedSeries.length-ie.linkedSeries.length:0})}orderItems(ie,ee=0){const Ee=this[ie],pe=this.options[ie]=_e(this.options[ie]).slice();if(ie=this.userOptions[ie]=this.userOptions[ie]?_e(this.userOptions[ie]).slice():[],this.hasRendered&&(pe.splice(ee),ie.splice(ee)),Ee)for(let De=ee,Ge=Ee.length;De=Math.max(yt+Ge,Lt.pos)&&Nt<=Math.min(yt+Ge+Zt.width,Lt.pos+Lt.len)||(ie.isInsidePlot=!1)}return!Ee.ignoreY&&ie.isInsidePlot&&(yt=!pe&&Ee.axis&&!Ee.axis.isXAxis&&Ee.axis||_t&&(pe?_t.xAxis:_t.yAxis)||{pos:We,len:1/0},(Ee=Ee.paneCoordinates?yt.pos+ee:We+ee)>=Math.max(ft+We,yt.pos)&&Ee<=Math.min(ft+We+Zt.height,yt.pos+yt.len)||(ie.isInsidePlot=!1)),X(this,"afterIsInsidePlot",ie),ie.isInsidePlot}redraw(ie){X(this,"beforeRedraw");const ee=this.hasCartesianSeries?this.axes:this.colorAxis||[],Ee=this.series,pe=this.pointer,De=this.legend,Ge=this.userOptions.legend,We=this.renderer,ut=We.isHidden(),yt=[];let ft,_t,Lt,Zt=this.isDirtyBox,Nt=this.isDirtyLegend;for(We.rootFontSize=We.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&ie,this),ut&&this.temporaryDisplay(),this.layOutTitles(!1),ie=Ee.length;ie--;)if(Lt=Ee[ie],(Lt.options.stacking||Lt.options.centerInCategory)&&(_t=!0,Lt.isDirty)){ft=!0;break}if(ft)for(ie=Ee.length;ie--;)Lt=Ee[ie],Lt.options.stacking&&(Lt.isDirty=!0);Ee.forEach(function(Xt){Xt.isDirty&&("point"===Xt.options.legendType?("function"==typeof Xt.updateTotals&&Xt.updateTotals(),Nt=!0):Ge&&(Ge.labelFormatter||Ge.labelFormat)&&(Nt=!0)),Xt.isDirtyData&&X(Xt,"updatedData")}),Nt&&De&&De.options.enabled&&(De.render(),this.isDirtyLegend=!1),_t&&this.getStacks(),ee.forEach(function(Xt){Xt.updateNames(),Xt.setScale()}),this.getMargins(),ee.forEach(function(Xt){Xt.isDirty&&(Zt=!0)}),ee.forEach(function(Xt){const ii=Xt.min+","+Xt.max;Xt.extKey!==ii&&(Xt.extKey=ii,yt.push(function(){X(Xt,"afterSetExtremes",Ce(Xt.eventArgs,Xt.getExtremes())),delete Xt.eventArgs})),(Zt||_t)&&Xt.redraw()}),Zt&&this.drawChartBox(),X(this,"predraw"),Ee.forEach(function(Xt){(Zt||Xt.isDirty)&&Xt.visible&&Xt.redraw(),Xt.isDirtyData=!1}),pe&&pe.reset(!0),We.draw(),X(this,"redraw"),X(this,"render"),ut&&this.temporaryDisplay(!0),yt.forEach(function(Xt){Xt.call()})}get(ie){function ee(De){return De.id===ie||De.options&&De.options.id===ie}const Ee=this.series;let pe=Ne(this.axes,ee)||Ne(this.series,ee);for(let De=0;!pe&&De(ee.getPointsCollection().forEach(Ee=>{I(Ee.selectedStaging,Ee.selected)&&ie.push(Ee)}),ie),[])}getSelectedSeries(){return this.series.filter(function(ie){return ie.selected})}setTitle(ie,ee,Ee){this.applyDescription("title",ie),this.applyDescription("subtitle",ee),this.applyDescription("caption",void 0),this.layOutTitles(Ee)}applyDescription(ie,ee){const Ee=this,pe=this.options[ie]=M(this.options[ie],ee);let De=this[ie];De&&ee&&(this[ie]=De=De.destroy()),pe&&!De&&(De=this.renderer.text(pe.text,0,0,pe.useHTML).attr({align:pe.align,class:"highcharts-"+ie,zIndex:pe.zIndex||4}).add(),De.update=function(Ge,We){Ee.applyDescription(ie,Ge),Ee.layOutTitles(We)},this.styledMode||De.css(Ce("title"===ie?{fontSize:this.options.isStock?"1em":"1.2em"}:{},pe.style)),this[ie]=De)}layOutTitles(ie=!0){const ee=[0,0,0],Ee=this.renderer,pe=this.spacingBox;["title","subtitle","caption"].forEach(function(Ge){const We=this[Ge],ut=this.options[Ge],yt=ut.verticalAlign||"top";if(Ge="title"===Ge?"top"===yt?-3:0:"top"===yt?ee[0]+2:0,We){We.css({width:(ut.width||pe.width+(ut.widthAdjust||0))+"px"});const ft=Ee.fontMetrics(We).b,_t=Math.round(We.getBBox(ut.useHTML).height);We.align(Ce({y:"bottom"===yt?ft:Ge+ft,height:_t},ut),!1,"spacingBox"),ut.floating||("top"===yt?ee[0]=Math.ceil(ee[0]+_t):"bottom"===yt&&(ee[2]=Math.ceil(ee[2]+_t)))}},this),ee[0]&&"top"===(this.options.title.verticalAlign||"top")&&(ee[0]+=this.options.title.margin),ee[2]&&"bottom"===this.options.caption.verticalAlign&&(ee[2]+=this.options.caption.margin);const De=!this.titleOffset||this.titleOffset.join(",")!==ee.join(",");this.titleOffset=ee,X(this,"afterLayOutTitles"),!this.isDirtyBox&&De&&(this.isDirtyBox=this.isDirtyLegend=De,this.hasRendered&&ie&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:m(this.renderTo,"width",!0)||0,height:m(this.renderTo,"height",!0)||0}}getChartSize(){var ie=this.options.chart;const ee=ie.width;ie=ie.height;const Ee=this.getContainerBox();this.chartWidth=Math.max(0,ee||Ee.width||600),this.chartHeight=Math.max(0,ne(ie,this.chartWidth)||(1{var pe;null!==(pe=ie.options)&&void 0!==pe&&pe.chart.reflow&&ie.hasLoaded&&ie.reflow(Ee)};"function"==typeof ResizeObserver?new ResizeObserver(ee).observe(ie.renderTo):(ee=g(O,"resize",ee),g(this,"destroy",ee))}setSize(ie,ee,Ee){const pe=this,De=pe.renderer;pe.isResizing+=1,y(Ee,pe),Ee=De.globalAnimation,pe.oldChartHeight=pe.chartHeight,pe.oldChartWidth=pe.chartWidth,void 0!==ie&&(pe.options.chart.width=ie),void 0!==ee&&(pe.options.chart.height=ee),pe.getChartSize(),pe.styledMode||(Ee?te:v)(pe.container,{width:pe.chartWidth+"px",height:pe.chartHeight+"px"},Ee),pe.setChartSize(!0),De.setSize(pe.chartWidth,pe.chartHeight,Ee),pe.axes.forEach(function(Ge){Ge.isDirty=!0,Ge.setScale()}),pe.isDirtyLegend=!0,pe.isDirtyBox=!0,pe.layOutTitles(),pe.getMargins(),pe.redraw(Ee),pe.oldChartHeight=null,X(pe,"resize"),we(function(){pe&&X(pe,"endResize",null,function(){--pe.isResizing})},x(Ee).duration)}setChartSize(ie){var ee=this.inverted;const Ee=this.renderer;var pe=this.chartWidth,De=this.chartHeight;const Ge=this.options.chart,We=this.spacing,ut=this.clipOffset;let yt,ft,_t,Zt;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=ft=Math.round(this.plotTop),this.plotWidth=_t=Math.max(0,Math.round(pe-yt-this.marginRight)),this.plotHeight=Zt=Math.max(0,Math.round(De-ft-this.marginBottom)),this.plotSizeX=ee?Zt:_t,this.plotSizeY=ee?_t:Zt,this.plotBorderWidth=Ge.plotBorderWidth||0,this.spacingBox=Ee.spacingBox={x:We[3],y:We[0],width:pe-We[3]-We[1],height:De-We[0]-We[2]},this.plotBox=Ee.plotBox={x:yt,y:ft,width:_t,height:Zt},ee=2*Math.floor(this.plotBorderWidth/2),pe=Math.ceil(Math.max(ee,ut[3])/2),De=Math.ceil(Math.max(ee,ut[0])/2),this.clipBox={x:pe,y:De,width:Math.floor(this.plotSizeX-Math.max(ee,ut[1])/2-pe),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(ee,ut[2])/2-De))},ie||(this.axes.forEach(function(Nt){Nt.setAxisSize(),Nt.setAxisTranslation()}),Ee.alignElements()),X(this,"afterSetChartSize",{skipAxes:ie})}resetMargins(){X(this,"resetMargins");const ie=this,ee=ie.options.chart;["margin","spacing"].forEach(function(Ee){const pe=ee[Ee],De=q(pe)?pe:[pe,pe,pe,pe];["Top","Right","Bottom","Left"].forEach(function(Ge,We){ie[Ee][We]=I(ee[Ee+Ge],De[We])})}),w.forEach(function(Ee,pe){ie[Ee]=I(ie.margin[pe],ie.spacing[pe])}),ie.axisOffset=[0,0,0,0],ie.clipOffset=[0,0,0,0]}drawChartBox(){const ie=this.options.chart,ee=this.renderer,Ee=this.chartWidth,pe=this.chartHeight,De=this.styledMode,Ge=this.plotBGImage;var We=ie.backgroundColor;const ut=ie.plotBackgroundColor,yt=ie.plotBackgroundImage,ft=this.plotLeft,_t=this.plotTop,Zt=this.plotWidth,Nt=this.plotHeight,Lt=this.plotBox,Xt=this.clipRect,ii=this.clipBox;let Bt,Bs,Tn=this.chartBackground,tn=this.plotBackground,Es=this.plotBorder,gs="animate";Tn||(this.chartBackground=Tn=ee.rect().addClass("highcharts-background").add(),gs="attr"),De?Bt=Bs=Tn.strokeWidth():(Bt=ie.borderWidth||0,Bs=Bt+(ie.shadow?8:0),We={fill:We||"none"},(Bt||Tn["stroke-width"])&&(We.stroke=ie.borderColor,We["stroke-width"]=Bt),Tn.attr(We).shadow(ie.shadow)),Tn[gs]({x:Bs/2,y:Bs/2,width:Ee-Bs-Bt%2,height:pe-Bs-Bt%2,r:ie.borderRadius}),gs="animate",tn||(gs="attr",this.plotBackground=tn=ee.rect().addClass("highcharts-plot-background").add()),tn[gs](Lt),De||(tn.attr({fill:ut||"none"}).shadow(ie.plotShadow),yt&&(Ge?(yt!==Ge.attr("href")&&Ge.attr("href",yt),Ge.animate(Lt)):this.plotBGImage=ee.image(yt,ft,_t,Zt,Nt).add())),Xt?Xt.animate({width:ii.width,height:ii.height}):this.clipRect=ee.clipRect(ii),gs="animate",Es||(gs="attr",this.plotBorder=Es=ee.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),De||Es.attr({stroke:ie.plotBorderColor,"stroke-width":ie.plotBorderWidth||0,fill:"none"}),Es[gs](Es.crisp({x:ft,y:_t,width:Zt,height:Nt},-Es.strokeWidth())),this.isDirtyBox=!1,X(this,"afterDrawChartBox")}propFromSeries(){const ie=this,ee=ie.options.chart,Ee=ie.options.series;let pe,De,Ge;["inverted","angular","polar"].forEach(function(We){for(De=R[ee.type],Ge=ee[We]||De&&De.prototype[We],pe=Ee&&Ee.length;!Ge&&pe--;)(De=R[Ee[pe].type])&&De.prototype[We]&&(Ge=!0);ie[We]=Ge})}linkSeries(ie){const ee=this,Ee=ee.series;Ee.forEach(function(pe){pe.linkedSeries.length=0}),Ee.forEach(function(pe){let De=pe.options.linkedTo;he(De)&&(De=":previous"===De?ee.series[pe.index-1]:ee.get(De))&&De.linkedParent!==pe&&(De.linkedSeries.push(pe),pe.linkedParent=De,De.enabledDataSorting&&pe.setDataSortingOptions(),pe.visible=I(pe.options.visible,De.options.visible,pe.visible))}),X(this,"afterLinkSeries",{isUpdating:ie})}renderSeries(){this.series.forEach(function(ie){ie.translate(),ie.render()})}render(){const ie=this.axes,ee=this.colorAxis,Ee=this.renderer,pe=function(ft){ft.forEach(function(_t){_t.visible&&_t.render()})};let De=0;this.setTitle(),X(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const Ge=this.plotWidth;ie.some(function(ft){if(ft.horiz&&ft.visible&&ft.options.labels.enabled&&ft.series.length)return De=21,!0});const We=this.plotHeight=Math.max(this.plotHeight-De,0);ie.forEach(function(ft){ft.setScale()}),this.getAxisMargins();const ut=1.1ee.pointCount))}pan(ie,ee){const Ee=this,pe=Ee.hoverPoints;ee="object"==typeof ee?ee:{enabled:ee,type:"x"};const De=Ee.options.chart;De&&De.panning&&(De.panning=ee);const Ge=ee.type;let We;X(this,"pan",{originalEvent:ie},function(){pe&&pe.forEach(function(ft){ft.setState()});let ut=Ee.xAxis;"xy"===Ge?ut=ut.concat(Ee.yAxis):"y"===Ge&&(ut=Ee.yAxis);const yt={};ut.forEach(function(ft){if(ft.options.panningEnabled&&!ft.options.isInternal){var _t=ft.horiz,Zt=ie[_t?"chartX":"chartY"],Nt=Ee[_t=_t?"mouseDownX":"mouseDownY"],Lt=ft.minPointOffset||0,Xt=ft.reversed&&!Ee.inverted||!ft.reversed&&Ee.inverted?-1:1,ii=ft.getExtremes(),Tn=ft.toValue(Nt-Zt,!0)+Lt*Xt,tn=ft.toValue(Nt+ft.len-Zt,!0)-(Lt*Xt||ft.isXAxis&&ft.pointRangePadding||0),Es=tn=Xt&&Tn<=tn&&(ft.setExtremes(Nt,Tn,!1,!1,{trigger:"pan"}),!Ee.resetZoomButton&&Nt!==Xt&&Tn!==tn&&Ge.match("y")&&(Ee.showResetZoom(),ft.displayBtn=!1),We=!0),yt[_t]=Zt)}}),B(yt,(ft,_t)=>{Ee[_t]=ft}),We&&Ee.redraw(!1),v(Ee.container,{cursor:"move"})})}}return Ce(Re.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Re.prototype.addAxis,[!0]],yAxis:[Re.prototype.addAxis,[!1]],series:[Re.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),Re}),Oe(be,"Extensions/ScrollablePlotArea.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Chart/Chart.js"],be["Core/Series/Series.js"],be["Core/Renderer/RendererRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe){const{stop:Ae}=oe,{addEvent:ce,createElement:ye,defined:se,merge:W,pick:U}=fe;ce(ve,"afterSetChartSize",function(Q){var te=this.options.chart.scrollablePlotArea,x=te&&te.minWidth;let y;te=te&&te.minHeight,this.renderer.forExport||(x?(this.scrollablePixelsX=x=Math.max(0,x-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=W(this.plotBox),this.plotBox.width=this.plotWidth+=x,this.inverted?this.clipBox.height+=x:this.clipBox.width+=x,y={1:{name:"right",value:x}}):te&&(this.scrollablePixelsY=x=Math.max(0,te-this.chartHeight),se(x)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=W(this.plotBox),this.plotBox.height=this.plotHeight+=x,this.inverted?this.clipBox.width+=x:this.clipBox.height+=x,y={2:{name:"bottom",value:x}})),y&&!Q.skipAxes&&this.axes.forEach(function(A){y[A.side]?A.getPlotLinePath=function(){let F,S=y[A.side].name,N=this[S];return this[S]=N-y[A.side].value,F=le.prototype.getPlotLinePath.apply(this,arguments),this[S]=N,F}:(A.setAxisSize(),A.setAxisTranslation())}))}),ce(ve,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),ve.prototype.setUpScrolling=function(){const Q={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};let te;this.scrollablePixelsX&&(Q.overflowX="auto"),this.scrollablePixelsY&&(Q.overflowY="auto"),this.scrollingParent=ye("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=ye("div",{className:"highcharts-scrolling"},Q,this.scrollingParent),ce(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(te=this.hoverPoint),this.pointer.runPointActions(void 0,te,!0))}),this.innerContainer=ye("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},ve.prototype.moveFixedElements=function(){let y,Q=this.container,te=this.fixedRenderer,x=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&x.push(`${y}:not(.highcharts-radial-axis)`,`${y}-labels:not(.highcharts-radial-axis-labels)`),x.forEach(function(A){[].forEach.call(Q.querySelectorAll(A),function(S){(S.namespaceURI===te.SVG_NS?te.box:te.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},ve.prototype.applyFixed=function(){var Q=!this.fixedDiv,te=this.options.chart,x=te.scrollablePlotArea,y=me.getRendererType();Q?(this.fixedDiv=ye("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(te.style&&te.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=te=new y(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=te.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":U(x.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),ce(this,"afterShowResetZoom",this.moveFixedElements),ce(this,"afterApplyDrilldown",this.moveFixedElements),ce(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||Q)&&(this.scrollableDirty=!1,this.moveFixedElements()),te=this.chartWidth+(this.scrollablePixelsX||0),y=this.chartHeight+(this.scrollablePixelsY||0),Ae(this.container),this.container.style.width=te+"px",this.container.style.height=y+"px",this.renderer.boxWrapper.attr({width:te,height:y,viewBox:[0,0,te,y].join(" ")}),this.chartBackground.attr({width:te,height:y}),this.scrollingContainer.style.height=this.chartHeight+"px",Q&&(x.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*x.scrollPositionX),x.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*x.scrollPositionY)),Q=this.plotTop-(y=this.axisOffset)[0]-1,x=this.plotLeft-y[3]-1,te=this.plotTop+this.plotHeight+y[2]+1,y=this.plotLeft+this.plotWidth+y[1]+1;let A=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),S=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);Q=this.scrollablePixelsX?[["M",0,Q],["L",this.plotLeft-1,Q],["L",this.plotLeft-1,te],["L",0,te],["Z"],["M",A,Q],["L",this.chartWidth,Q],["L",this.chartWidth,te],["L",A,te],["Z"]]:this.scrollablePixelsY?[["M",x,0],["L",x,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",x,S],["L",x,this.chartHeight],["L",y,this.chartHeight],["L",y,S],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:Q})},ce(le,"afterInit",function(){this.chart.scrollableDirty=!0}),ce(xe,"show",function(){this.chart.scrollableDirty=!0})}),Oe(be,"Core/Axis/Stacking/StackItem.js",[be["Core/Templating.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{format:xe}=oe,{series:me}=le,{destroyObjectProperties:fe,fireEvent:Ae,isNumber:ce,pick:ye}=ve;return class{constructor(U,Q,te,x,y){const A=U.chart.inverted,S=U.reversed;this.axis=U,U=this.isNegative=!!te!=!!S,this.options=Q=Q||{},this.x=x,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:Q.align||(A?U?"left":"right":"center"),verticalAlign:Q.verticalAlign||(A?"middle":U?"bottom":"top"),y:Q.y,x:Q.x},this.textAlign=Q.textAlign||(A?U?"right":"left":"center")}destroy(){fe(this,this.axis)}render(U){const Q=this.axis.chart,te=this.options;var x=te.format;x=x?xe(x,this,Q):te.formatter.call(this),this.label?this.label.attr({text:x,visibility:"hidden"}):(this.label=Q.renderer.label(x,null,void 0,te.shape,void 0,void 0,te.useHTML,!1,"stack-labels"),x={r:te.borderRadius||0,text:x,padding:ye(te.padding,5),visibility:"hidden"},Q.styledMode||(x.fill=te.backgroundColor,x.stroke=te.borderColor,x["stroke-width"]=te.borderWidth,this.label.css(te.style||{})),this.label.attr(x),this.label.added||this.label.add(U)),this.label.labelrank=Q.plotSizeY,Ae(this,"afterRender")}setOffset(U,Q,te,x,y,A){const{alignOptions:S,axis:N,label:F,options:G,textAlign:b}=this,w=N.chart;te=this.getStackBox({xOffset:U,width:Q,boxBottom:te,boxTop:x,defaultX:y,xAxis:A});var{verticalAlign:E}=S;if(F&&te){x=F.getBBox(),y=F.padding,A="justify"===ye(G.overflow,"justify"),S.x=G.x||0,S.y=G.y||0;const{x:O,y:R}=this.adjustStackPosition({labelBox:x,verticalAlign:E,textAlign:b});te.x-=O,te.y-=R,F.align(S,!1,te),(E=w.isInsidePlot(F.alignAttr.x+S.x+O,F.alignAttr.y+S.y+R))||(A=!1),A&&me.prototype.justifyDataLabel.call(N,F,S,F.alignAttr,x,te),F.attr({x:F.alignAttr.x,y:F.alignAttr.y,rotation:G.rotation,rotationOriginX:x.width/2,rotationOriginY:x.height/2}),ye(!A&&G.crop,!0)&&(E=ce(F.x)&&ce(F.y)&&w.isInsidePlot(F.x-y+F.width,F.y)&&w.isInsidePlot(F.x+y,F.y)),F[E?"show":"hide"]()}Ae(this,"afterSetOffset",{xOffset:U,width:Q})}adjustStackPosition({labelBox:U,verticalAlign:Q,textAlign:te}){const x={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:U.width/2+U.width/2*x[te],y:U.height/2*x[Q]}}getStackBox(U){var Q=this.axis;const te=Q.chart,{boxTop:x,defaultX:y,xOffset:A,width:S,boxBottom:N}=U;var F=Q.stacking.usePercentage?100:ye(x,this.total,0);F=Q.toPixels(F);const G=ye(y,(U=U.xAxis||te.xAxis[0]).translate(this.x))+A;Q=Q.toPixels(N||ce(Q.min)&&Q.logarithmic&&Q.logarithmic.lin2log(Q.min)||0),Q=Math.abs(F-Q);const b=this.isNegative;return te.inverted?{x:(b?F:F-Q)-te.plotLeft,y:U.height-G-S,width:Q,height:S}:{x:G+U.transB-te.plotLeft,y:(b?F-Q:F)-te.plotTop,width:S,height:Q}}}}),Oe(be,"Core/Axis/Stacking/StackingAxis.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Axis/Axis.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Axis/Stacking/StackItem.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me){function fe(){const g=this,h=g.inverted;g.yAxis.forEach(p=>{p.stacking&&p.stacking.stacks&&p.hasVisibleSeries&&(p.stacking.oldStacks=p.stacking.stacks)}),g.series.forEach(p=>{const v=p.xAxis&&p.xAxis.options||{};!p.options.stacking||!0!==p.visible&&!1!==g.options.chart.ignoreHiddenSeries||(p.stackKey=[p.type,E(p.options.stack,""),h?v.top:v.left,h?v.height:v.width].join())})}function Ae(){const g=this.stacking;if(g){var h=g.stacks;w(h,function(p,v){N(p),h[v]=null}),g&&g.stackTotalGroup&&g.stackTotalGroup.destroy()}}function ce(){"yAxis"!==this.coll||this.stacking||(this.stacking=new O(this))}function ye(g,h,p,v){return!S(g)||g.x!==h||v&&g.stackKey!==v?g={x:h,index:0,key:v,stackKey:v}:g.index++,g.key=[p,h,g.index].join(),g}function se(){const g=this,h=g.stackKey,p=g.yAxis.stacking.stacks,v=g.processedXData,P=g[g.options.stacking+"Stacker"];let V;P&&[h,"-"+h].forEach(D=>{let de,Y=v.length;for(;Y--;){var Ce=v[Y];V=g.getStackIndicator(V,Ce,g.index,D),(de=(Ce=p[D]&&p[D][Ce])&&Ce.points[V.key])&&P.call(g,de,Ce,Y)}})}function W(g,h,p){g[0]=A(g[0]*(h=h.total?100/h.total:0)),g[1]=A(g[1]*h),this.stackedYData[p]=g[1]}function U(){const g=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1{"group"===p.slice(-5)&&(w(h,v=>v.destroy()),delete g.stacks[p])})}function Q(g){var h=this.chart;const p=g||this.options.stacking;if(p&&(!0===this.visible||!1===h.options.chart.ignoreHiddenSeries)){var v=this.processedXData,P=this.processedYData,V=[],D=P.length,Y=this.options,de=Y.threshold,Ce=E(Y.startFromThreshold&&de,0);Y=Y.stack;var Z,q,Ne="-"+(g=g?`${this.type},${p}`:this.stackKey),X=this.negStacks,m=(h="group"===p?h.yAxis[0]:this.yAxis).stacking.stacks,H=h.stacking.oldStacks;for(h.stacking.stacksTouched+=1,q=0;q{w(h,(p,v)=>{b(p.touched)&&p.touchedte&&ye.shadow)),y&&(y.startX=se.xMap,y.isArea=se.isArea)})}getGraphPath(ce,ye,se){const W=this,U=W.options,Q=[],te=[];let x,y=U.step;const A=(ce=ce||W.points).reversed;return A&&ce.reverse(),(y={right:1,center:2}[y]||y&&3)&&A&&(y=4-y),(ce=this.getValidPoints(ce,!1,!(U.connectNulls&&!ye&&!se))).forEach(function(S,N){const F=S.plotX,G=S.plotY,b=ce[N-1],w=S.isNull||"number"!=typeof G;(S.leftCliff||b&&b.rightCliff)&&!se&&(x=!0),w&&!xe(ye)&&0E.visible);te.forEach(function(E,O){let g,h,R=0;if(S[E]&&!S[E].isNull)Q.push(S[E]),[-1,1].forEach(function(p){const v=1===p?"rightNull":"leftNull",P=A[te[O+p]];let V=0;if(P){let D=b;for(;0<=D&&Dce&&x>U?(x=Math.max(ce,U),y=2*U-x):xse&&y>U?(y=Math.max(se,U),x=2*U-y):y=Math.abs(E)&&.5{if("number"==typeof O.x){const V=P[O.x.toString()];V&&(P=V.points[this.index],g?(P&&(p=v),V.hasValidPoints&&(h?v++:v--)):y(P)&&(P=Object.keys(V.points).filter(D=>!D.match(",")&&V.points[D]&&1Y-D),p=P.indexOf(this.index),v=P.length))}}),w=(O.plotX||0)+((v-1)*R.paddedWidth+E)/2-E-p*R.paddedWidth}return w}translate(){const w=this,E=w.chart,O=w.options;var R=w.dense=2>w.closestPointRange*w.xAxis.transA;R=w.borderWidth=N(O.borderWidth,R?0:1);const g=w.xAxis,h=w.yAxis,p=O.threshold,v=N(O.minPointLength,5),P=w.getColumnMetrics(),V=P.width,D=w.pointXOffset=P.offset,Y=w.dataMin,de=w.dataMax;let Ce=w.barW=Math.max(V,1+2*R),Ne=w.translatedThreshold=h.getThreshold(p);E.inverted&&(Ne-=.5),O.pointPadding&&(Ce=Math.ceil(Ce)),me.prototype.translate.apply(w),w.points.forEach(function(X){const m=N(X.yBottom,Ne);var H=999+Math.abs(m),Z=X.plotX||0;H=U(X.plotY,-H,h.len+H);let q=Math.min(H,m),he=Math.max(H,m)-q,M=V,B=Z+D,I=Ce;v&&Math.abs(he)v?m-v:Ne-(Z?v:0)),Q(X.options.pointWidth)&&(M=I=Math.ceil(X.options.pointWidth),B-=Math.round((M-V)/2)),O.centerInCategory&&(B=w.adjustForMissingColumns(B,M,X,P)),X.barX=B,X.pointWidth=M,X.tooltipPos=E.inverted?[U(h.len+h.pos-E.plotLeft-H,h.pos-E.plotLeft,h.len+h.pos-E.plotLeft),g.len+g.pos-E.plotTop-B-I/2,he]:[g.left-E.plotLeft+B+I/2,U(H+h.pos-E.plotTop,h.pos-E.plotTop,h.len+h.pos-E.plotTop),he],X.shapeType=w.pointClass.prototype.shapeType||"roundedRect",X.shapeArgs=w.crispCol(B,X.isNull?Ne:q,I,X.isNull?0:he)}),x(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(w,E){const O=this.options;var R=this.pointAttrToOptions||{},g=R.stroke||"borderColor";const h=R["stroke-width"]||"borderWidth";let p,v=w&&w.color||this.color,P=w&&w[g]||O[g]||v;R=w&&w.options.dashStyle||O.dashStyle;let V=w&&w[h]||O[h]||this[h]||0,D=N(w&&w.opacity,O.opacity,1);return w&&this.zones.length&&(p=w.getZone(),v=w.options.color||p&&(p.color||w.nonZonedColor)||this.color,p&&(P=p.borderColor||P,R=p.dashStyle||R,V=p.borderWidth||V)),E&&w&&(E=(w=S(O.states[E],w.options.states&&w.options.states[E]||{})).brightness,v=w.color||void 0!==E&&ye(v).brighten(w.brightness).get()||v,P=w[g]||P,V=w[h]||V,R=w.dashStyle||R,D=N(w.opacity,D)),g={fill:v,stroke:P,"stroke-width":V,opacity:D},R&&(g.dashstyle=R),g}drawPoints(w=this.points){const E=this,O=this.chart,R=E.options,g=O.renderer,h=R.animationLimit||250;let p;w.forEach(function(v){let P=v.graphic,V=!!P,D=P&&O.pointCount{var he;const M=q.dataLabels||[];for(X=te(w(Ne,q.dlOptions||(null===(he=q.options)||void 0===he?void 0:he.dataLabels))),X.forEach((B,I)=>{var K,ne=B.enabled&&(!q.isNull||q.dataLabelOnNull)&&function(R,g){var h=g.filter;return!h||(g=h.operator,R=R[h.property],h=h.value,">"===g&&R>h||"<"===g&&R="===g&&R>=h||"<="===g&&R<=h||"=="===g&&R==h||"==="===g&&R===h)}(q,B);const re=q.connectors?q.connectors[I]:q.connector,_e=B.style||{};let we={},Se=M[I],Re=!Se;const ze=Q(B.distance,q.labelDistance);if(ne){var ie=Q(B[q.formatPrefix+"Format"],B.format),ee=q.getLabelConfig();if(ee=fe(ie)?me(ie,ee,v):(B[q.formatPrefix+"Formatter"]||B.formatter).call(ee,B),ie=B.rotation,v.styledMode||(_e.color=Q(B.color,_e.color,se(p.color)?p.color:void 0,"#000000"),"contrast"===_e.color?(q.contrastColor=V.getContrast(q.color||p.color),_e.color=!fe(ze)&&B.inside||0>(ze||0)||P.stacking?q.contrastColor:Ce):delete q.contrastColor,P.cursor&&(_e.cursor=P.cursor)),we={r:B.borderRadius||0,rotation:ie,padding:B.padding,zIndex:1},!v.styledMode){const{backgroundColor:Ee,borderColor:pe}=B;we.fill="auto"===Ee?q.color:Ee,we.stroke="auto"===pe?q.color:pe,we["stroke-width"]=B.borderWidth}U(we,(Ee,pe)=>{void 0===Ee&&delete we[pe]})}!Se||ne&&fe(ee)&&!!Se.div==!!B.useHTML&&(Se.rotation&&B.rotation||Se.rotation===B.rotation)||(Se=void 0,Re=!0,re&&q.connector&&(q.connector=q.connector.destroy(),q.connectors&&(1===q.connectors.length?delete q.connectors:delete q.connectors[I]))),ne&&fe(ee)&&(Se?we.text=ee:(Se=ie?V.text(ee,0,0,B.useHTML).addClass("highcharts-data-label"):V.label(ee,0,0,B.shape,void 0,void 0,B.useHTML,void 0,"data-label"))&&Se.addClass(" highcharts-data-label-color-"+q.colorIndex+" "+(B.className||"")+(B.useHTML?" highcharts-tracker":"")),Se&&(Se.options=B,Se.attr(we),v.styledMode||Se.css(_e).shadow(B.shadow),(ne=B[q.formatPrefix+"TextPath"]||B.textPath)&&!B.useHTML&&(Se.setTextPath((null===(K=q.getDataLabelPath)||void 0===K?void 0:K.call(q,Se))||q.graphic,ne),q.dataLabelPath&&!ne.enabled&&(q.dataLabelPath=q.dataLabelPath.destroy())),Se.added||Se.add(m),p.alignDataLabel(q,Se,B,void 0,Re),Se.isActive=!0,M[I]&&M[I]!==Se&&M[I].destroy(),M[I]=Se))}),he=M.length;he--;)M[he].isActive?M[he].isActive=!1:(M[he].destroy(),M.splice(he,1));q.dataLabel=M[0],q.dataLabels=M})),ce(this,"afterDrawDataLabels")}function b(R,g,h,p,v,P){const V=this.chart,D=g.align,Y=g.verticalAlign,de=R.box?0:R.padding||0;let X,m,{x:Ce=0,y:Ne=0}=g;return X=(h.x||0)+de,0>X&&("right"===D&&0<=Ce?(g.align="left",g.inside=!0):Ce-=X,m=!0),X=(h.x||0)+p.width-de,X>V.plotWidth&&("left"===D&&0>=Ce?(g.align="right",g.inside=!0):Ce+=V.plotWidth-X,m=!0),X=h.y+de,0>X&&("bottom"===Y&&0<=Ne?(g.verticalAlign="top",g.inside=!0):Ne-=X,m=!0),X=(h.y||0)+p.height-de,X>V.plotHeight&&("top"===Y&&0>=Ne?(g.verticalAlign="bottom",g.inside=!0):Ne+=V.plotHeight-X,m=!0),m&&(g.x=Ce,g.y=Ne,R.placed=!P,R.align(g,void 0,v)),m}function w(R,g){let p,h=[];if(ye(R)&&!ye(g))h=R.map(function(v){return W(v,g)});else if(ye(g)&&!ye(R))h=g.map(function(v){return W(R,v)});else if(ye(R)||ye(g)){if(ye(R)&&ye(g))for(p=Math.max(R.length,g.length);p--;)h[p]=W(R[p],g[p])}else h=W(R,g);return h}function E(R,g,h,p,v){const P=this.chart,V=P.inverted,D=this.xAxis,Y=D.reversed,de=V?g.height/2:g.width/2;R=(R=R.pointWidth)?R/2:0,g.startXPos=V?v.x:Y?-de-R:D.width-de+R,g.startYPos=V?Y?this.yAxis.height-de+R:-de-R:v.y,p?"hidden"===g.visibility&&(g.show(),g.attr({opacity:0}).animate({opacity:1})):g.attr({opacity:1}).animate({opacity:0},void 0,g.hide),P.hasRendered&&(h&&g.attr({x:g.startXPos,y:g.startYPos}),g.placed=!0)}const O=[];y.compose=function(R){ve.pushUnique(O,R)&&((R=R.prototype).initDataLabelsGroup=N,R.initDataLabels=F,R.alignDataLabel=A,R.drawDataLabels=G,R.justifyDataLabel=b,R.setDataLabelStartPos=E)}}(x||(x={})),x}),Oe(be,"Series/Column/ColumnDataLabel.js",[be["Core/Series/DataLabel.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{series:xe}=le,{merge:me,pick:fe}=ve;var Ae;return function(ce){function ye(W,U,Q,te,x){let y=this.chart.inverted;var A=W.series;let S=(A.xAxis?A.xAxis.len:this.chart.plotSizeX)||0;var N=W.dlBox||W.shapeArgs;let F=fe(W.below,W.plotY>fe(this.translatedThreshold,A=(A.yAxis?A.yAxis.len:this.chart.plotSizeY)||0)),G=fe(Q.inside,!!this.options.stacking);N&&(0>(te=me(N)).y&&(te.height+=te.y,te.y=0),0<(N=te.y+te.height-A)&&N\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),Oe(be,"Series/Scatter/ScatterSeries.js",[be["Series/Scatter/ScatterSeriesDefaults.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{column:xe,line:me}=le.seriesTypes,{addEvent:fe,extend:Ae,merge:ce}=ve;class ye extends me{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const W=this,U=this.options.jitter,Q=this.points.length;U&&this.points.forEach(function(te,x){["x","y"].forEach(function(y,A){let N,F,S="plot"+y.toUpperCase();if(U[y]&&!te.isNull){var G=W[y+"Axis"];F=U[y]*G.transA,G&&!G.isLog&&(N=Math.max(0,te[S]-F),G=Math.min(G.len,te[S]+F),A=1e4*Math.sin(x+A*Q),A-=Math.floor(A),te[S]=N+(G-N)*A,"x"===y&&(te.clientX=te.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return ye.defaultOptions=ce(me.defaultOptions,oe),Ae(ye.prototype,{drawTracker:xe.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),fe(ye,"afterTranslate",function(){this.applyJitter()}),le.registerSeriesType("scatter",ye),ye}),Oe(be,"Series/CenteredUtilities.js",[be["Core/Globals.js"],be["Core/Series/Series.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{deg2rad:xe}=oe,{fireEvent:me,isNumber:fe,pick:Ae,relativeLength:ce}=ve;var ye=(()=>{return(se=ye||(ye={})).getCenter=function(){var W=this.options,U=this.chart;const Q=2*(W.slicedOffset||0),te=U.plotWidth-2*Q,x=U.plotHeight-2*Q;var y=W.center;const A=Math.min(te,x),S=W.thickness;var N=W.size;let F=W.innerSize||0;for("string"==typeof N&&(N=parseFloat(N)),"string"==typeof F&&(F=parseFloat(F)),W=[Ae(y[0],"50%"),Ae(y[1],"50%"),Ae(N&&0>N?void 0:W.size,"100%"),Ae(F&&0>F?void 0:W.innerSize||0,"0%")],!U.angular||this instanceof le||(W[3]=0),y=0;4>y;++y)N=W[y],U=2>y||2===y&&/%$/.test(N),W[y]=ce(N,[te,x,A,W[2]][y])+(U?Q:0);return W[3]>W[2]&&(W[3]=W[2]),fe(S)&&2*SW&&360>U-W?U:W+360,{start:xe*(W+-90),end:xe*(U+-90)}},ye;var se})();return ye}),Oe(be,"Series/Pie/PiePoint.js",[be["Core/Animation/AnimationUtilities.js"],be["Core/Series/Point.js"],be["Core/Utilities.js"]],function(oe,le,ve){const{setAnimation:xe}=oe,{addEvent:me,defined:fe,extend:Ae,isNumber:ce,pick:ye,relativeLength:se}=ve;class W extends le{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const Q=this.labelPosition,te=this.series.options.dataLabels,x=this.connectorShapes;let y=te.connectorShape;return x[y]&&(y=x[y]),y.call(this,{x:Q.computed.x,y:Q.computed.y,alignment:Q.alignment},Q.connectorPosition,te)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(Q){const te=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(te.x,te.y,te.r+Q,te.r+Q,{innerR:te.r-1,start:te.start,end:te.end,borderRadius:te.borderRadius})}init(){super.init.apply(this,arguments),this.name=ye(this.name,"Slice");const Q=te=>{this.slice("select"===te.type)};return me(this,"select",Q),me(this,"unselect",Q),this}isValid(){return ce(this.y)&&0<=this.y}setVisible(Q,te){const x=this.series,y=x.chart,A=x.options.ignoreHiddenPoint;te=ye(te,A),Q!==this.visible&&(this.visible=this.options.visible=Q=void 0===Q?!this.visible:Q,x.options.data[x.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(S=>{this[S]&&this[S][Q?"show":"hide"](Q)}),this.legendItem&&y.legend.colorizeItem(this,Q),Q||"hover"!==this.state||this.setState(""),A&&(x.isDirty=!0),te&&y.redraw())}slice(Q,te,x){const y=this.series;xe(x,y.chart),ye(te,!0),this.sliced=this.options.sliced=fe(Q)?Q:!this.sliced,y.options.data[y.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return Ae(W.prototype,{connectorShapes:{fixedOffset:function(U,Q,te){const x=Q.breakAt;return Q=Q.touchingSliceAt,[["M",U.x,U.y],te.softConnector?["C",U.x+("left"===U.alignment?-5:5),U.y,2*x.x-Q.x,2*x.y-Q.y,x.x,x.y]:["L",x.x,x.y],["L",Q.x,Q.y]]},straight:function(U,Q){return[["M",U.x,U.y],["L",(Q=Q.touchingSliceAt).x,Q.y]]},crookedLine:function(U,Q,te){const{breakAt:x,touchingSliceAt:y}=Q;({series:Q}=this);const[A,S,N]=Q.center,F=N/2,G=Q.chart.plotWidth,b=Q.chart.plotLeft;Q="left"===U.alignment;const{x:w,y:E}=U;return te.crookDistance?(U=se(te.crookDistance,1),U=Q?A+F+(G+b-A-F)*(1-U):b+(A-F)*U):U=A+(S-E)*Math.tan((this.angle||0)-Math.PI/2),te=[["M",w,E]],(Q?U<=w&&U>=x.x:U>=w&&U<=x.x)&&te.push(["L",U,E]),te.push(["L",x.x,x.y],["L",y.x,y.y]),te}}}),W}),Oe(be,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),Oe(be,"Series/Pie/PieSeries.js",[be["Series/CenteredUtilities.js"],be["Series/Column/ColumnSeries.js"],be["Core/Globals.js"],be["Series/Pie/PiePoint.js"],be["Series/Pie/PieSeriesDefaults.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Core/Renderer/SVG/Symbols.js"],be["Core/Utilities.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye){const{getStartAndEndRadians:se}=oe;({noop:ve}=ve);const{clamp:W,extend:U,fireEvent:Q,merge:te,pick:x,relativeLength:y}=ye;class A extends fe{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(N){const F=this,b=F.startAngleRad;N||F.points.forEach(function(w){const E=w.graphic,O=w.shapeArgs;E&&O&&(E.attr({r:x(w.startR,F.center&&F.center[3]/2),start:b,end:b}),E.animate({r:O.r,start:O.start,end:O.end},F.options.animation))})}drawEmpty(){const N=this.startAngleRad,F=this.endAngleRad,G=this.options;let b,w;0===this.total&&this.center?(b=this.center[0],w=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(b,w,this.center[1]/2,0,N,F).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ce.arc(b,w,this.center[2]/2,0,{start:N,end:F,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":G.borderWidth,fill:G.fillColor||"none",stroke:G.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const N=this.chart.renderer;this.points.forEach(function(F){F.graphic&&F.hasNewShapeType()&&(F.graphic=F.graphic.destroy()),F.graphic||(F.graphic=N[F.shapeType](F.shapeArgs).add(F.series.group),F.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(N,F,G){const b=this.center,w=this.radii?this.radii[G.index]||0:b[2]/2;return N=Math.asin(W((N-b[1])/(w+G.labelDistance),-1,1)),b[0]+(F?-1:1)*Math.cos(N)*(w+G.labelDistance)+(01.5*Math.PI?D-=2*Math.PI:D<-Math.PI/2&&(D+=2*Math.PI),v.slicedTranslation={translateX:Math.round(Math.cos(D)*G),translateY:Math.round(Math.sin(D)*G)},Y=Math.cos(D)*N[2]/2,h=Math.sin(D)*N[2]/2,v.tooltipPos=[N[0]+.7*Y,N[1]+.7*h],v.half=D<-Math.PI/2||D>Math.PI/2?1:0,v.angle=D,V=Math.min(b,v.labelDistance/5),v.labelPosition={natural:{x:N[0]+Y+Math.cos(D)*v.labelDistance,y:N[1]+h+Math.sin(D)*v.labelDistance},computed:{},alignment:0>v.labelDistance?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:N[0]+Y+Math.cos(D)*V,y:N[1]+h+Math.sin(D)*V},touchingSliceAt:{x:N[0]+Y,y:N[1]+h}}}}Q(this,"afterTranslate")}updateTotals(){const N=this.points,F=N.length,G=this.options.ignoreHiddenPoint;let b,w,E=0;for(b=0;bv&&(re.dataLabel.css({width:Math.round(.7*v)+"px"}),re.dataLabel.shortened=!0)):(re.dataLabel=re.dataLabel.destroy(),re.dataLabels&&1===re.dataLabels.length&&delete re.dataLabels))}),Y.forEach((re,_e)=>{const we=re.length,Se=[];let Re,ze=0;if(we){if(b.sortByAngle(re,_e-.5),0g-R&&0===_e&&(ie=Math.round(M+Z-g+R),de[1]=Math.max(ie,de[1])),0>B-he/2?de[0]=Math.max(Math.round(he/2-B),de[0]):B+he/2>h&&(de[2]=Math.max(Math.round(B+he/2-h),de[2])),H.sideOverflow=ie)}}}),0===ye(de)||this.verifyDataLabelOverflow(de))&&(this.placeDataLabels(),this.points.forEach(function(re){if(ne=U(O,re.options.dataLabels),X=Q(ne.connectorWidth,1)){let _e;m=re.connector,(H=re.dataLabel)&&H._pos&&re.visible&&0w.bottom-2?O:E,w.half,w)},justify:function(b,w,E){return E[0]+(b.half?-1:1)*(w+b.labelDistance)},alignToPlotEdges:function(b,w,E,O){return b=b.getBBox().width,w?b+O:E-b-O},alignToConnectors:function(b,w,E,O){let g,R=0;return b.forEach(function(h){g=h.dataLabel.getBBox().width,g>R&&(R=g)}),w?R+O:E-R-O}};y.compose=function(b){oe.compose(ce),me.pushUnique(F,b)&&((b=b.prototype).dataLabelPositioners=G,b.alignDataLabel=fe,b.drawDataLabels=A,b.placeDataLabels=S,b.verifyDataLabelOverflow=N)}}(x||(x={})),x}),Oe(be,"Extensions/OverlappingDataLabels.js",[be["Core/Chart/Chart.js"],be["Core/Utilities.js"]],function(oe,le){function ve(se,W){let U,Q=!1;return se&&(U=se.newOpacity,se.oldOpacity!==U&&(se.alignAttr&&se.placed?(se[U?"removeClass":"addClass"]("highcharts-data-label-hidden"),Q=!0,se.alignAttr.opacity=U,se[se.isOld?"animate":"attr"](se.alignAttr,null,function(){W.styledMode||se.css({pointerEvents:U?"auto":"none"})}),me(W,"afterHideOverlappingLabel")):se.attr({opacity:U})),se.isOld=!0),Q}const{addEvent:xe,fireEvent:me,isArray:fe,isNumber:Ae,objectEach:ce,pick:ye}=le;xe(oe,"render",function(){let se=this,W=[];(this.labelCollectors||[]).forEach(function(U){W=W.concat(U())}),(this.yAxis||[]).forEach(function(U){U.stacking&&U.options.stackLabels&&!U.options.stackLabels.allowOverlap&&ce(U.stacking.stacks,function(Q){ce(Q,function(te){te.label&&W.push(te.label)})})}),(this.series||[]).forEach(function(U){var Q=U.options.dataLabels;U.visible&&(!1!==Q.enabled||U._hasPointLabels)&&((Q=te=>te.forEach(x=>{x.visible&&(fe(x.dataLabels)?x.dataLabels:x.dataLabel?[x.dataLabel]:[]).forEach(function(y){const A=y.options;y.labelrank=ye(A.labelrank,x.labelrank,x.shapeArgs&&x.shapeArgs.height),A.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,ve(y,se)):W.push(y)})}))(U.nodes||[]),Q(U.points))}),this.hideOverlappingLabels(W)}),oe.prototype.hideOverlappingLabels=function(se){let W=this,U=se.length,Q=W.renderer;var te;let x,y,A,S,N=!1;var F=function(G){let b,w;var E;let g,h,O=G.box?0:G.padding||0,R=E=0;if(G&&(!G.alignAttr||G.placed))return b=G.alignAttr||{x:G.attr("x"),y:G.attr("y")},w=G.parentGroup,G.width||(E=G.getBBox(),G.width=E.width,G.height=E.height,E=Q.fontMetrics(G.element).h),g=G.width-2*O,(h={left:"0",center:"0.5",right:"1"}[G.alignValue])?R=+h*g:Ae(G.x)&&Math.round(G.x)!==G.translateX&&(R=G.x-G.translateX),{x:b.x+(w.translateX||0)+O-(R||0),y:b.y+(w.translateY||0)+O-E,width:G.width-2*O,height:G.height-2*O}};for(x=0;x=A.x+A.width||S.x+S.width<=A.x||S.y>=A.y+A.height||S.y+S.height<=A.y||((F.labelrank(se(x)||(x={radius:x||0}),W(Q,y,x));if(-1===xe.symbolCustomAttribs.indexOf("borderRadius")){xe.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const x=me.prototype.symbols.arc;me.prototype.symbols.arc=function(A,S,N,F,G={}){A=x(A,S,N,F,G);const{innerR:b=0,r:w=N,start:E=0,end:O=0}=G;if(G.open||!G.borderRadius)return A;for(N=O-E,S=Math.sin(N/2),G=Math.max(Math.min(U(G.borderRadius||0,w-b),(w-b)/2,w*S/(1+S)),0),N=Math.min(G,N/Math.PI*2*b),S=A.length-1;S--;){let V,D,Y;var R=S,g=1this.borderWidth&&(v="all"),v||(v="end");const P=Math.min(U(A.radius,R),R/2,"all"===v?g/2:1/0)||0;"end"===v&&(p&&(F-=P),G+=P),ye(N,{brBoxHeight:G,brBoxY:F,r:P})}}},{order:9})}return{optionsToObject:te}}),Oe(be,"Core/Responsive.js",[be["Core/Utilities.js"]],function(oe){const{diffObjects:le,extend:ve,find:xe,merge:me,pick:fe,uniqueKey:Ae}=oe;var ce;return function(ye){function se(Q,te){const x=Q.condition;(x.callback||function(){return this.chartWidth<=fe(x.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=fe(x.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=fe(x.minWidth,0)&&this.chartHeight>=fe(x.minHeight,0)}).call(this)&&te.push(Q._id)}function W(Q,te){const x=this.options.responsive;var y=this.currentResponsive;let A=[];!te&&x&&x.rules&&x.rules.forEach(S=>{void 0===S._id&&(S._id=Ae()),this.matchResponsiveRule(S,A)},this),(te=me(...A.map(S=>xe((x||{}).rules||[],N=>N._id===S)).map(S=>S&&S.chartOptions))).isResponsiveOptions=!0,A=A.toString()||void 0,A!==(y&&y.ruleIds)&&(y&&this.update(y.undoOptions,Q,!0),A?((y=le(te,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:A,mergedOptions:te,undoOptions:y},this.update(te,Q,!0)):this.currentResponsive=void 0)}const U=[];ye.compose=function(Q){return oe.pushUnique(U,Q)&&ve(Q.prototype,{matchResponsiveRule:se,setResponsive:W}),Q}}(ce||(ce={})),ce}),Oe(be,"masters/highcharts.src.js",[be["Core/Globals.js"],be["Core/Utilities.js"],be["Core/Defaults.js"],be["Core/Animation/Fx.js"],be["Core/Animation/AnimationUtilities.js"],be["Core/Renderer/HTML/AST.js"],be["Core/Templating.js"],be["Core/Renderer/RendererUtilities.js"],be["Core/Renderer/SVG/SVGElement.js"],be["Core/Renderer/SVG/SVGRenderer.js"],be["Core/Renderer/HTML/HTMLElement.js"],be["Core/Renderer/HTML/HTMLRenderer.js"],be["Core/Axis/Axis.js"],be["Core/Axis/DateTimeAxis.js"],be["Core/Axis/LogarithmicAxis.js"],be["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],be["Core/Axis/Tick.js"],be["Core/Tooltip.js"],be["Core/Series/Point.js"],be["Core/Pointer.js"],be["Core/Legend/Legend.js"],be["Core/Chart/Chart.js"],be["Core/Axis/Stacking/StackingAxis.js"],be["Core/Axis/Stacking/StackItem.js"],be["Core/Series/Series.js"],be["Core/Series/SeriesRegistry.js"],be["Series/Column/ColumnSeries.js"],be["Series/Column/ColumnDataLabel.js"],be["Series/Pie/PieSeries.js"],be["Series/Pie/PieDataLabel.js"],be["Core/Series/DataLabel.js"],be["Core/Responsive.js"],be["Core/Color/Color.js"],be["Core/Time.js"]],function(oe,le,ve,xe,me,fe,Ae,ce,ye,se,W,U,Q,te,x,y,A,S,N,F,G,b,w,E,O,R,g,h,p,v,P,V,D,Y){return oe.animate=me.animate,oe.animObject=me.animObject,oe.getDeferredAnimation=me.getDeferredAnimation,oe.setAnimation=me.setAnimation,oe.stop=me.stop,oe.timers=xe.timers,oe.AST=fe,oe.Axis=Q,oe.Chart=b,oe.chart=b.chart,oe.Fx=xe,oe.Legend=G,oe.PlotLineOrBand=y,oe.Point=N,oe.Pointer=F,oe.Series=O,oe.StackItem=E,oe.SVGElement=ye,oe.SVGRenderer=se,oe.Templating=Ae,oe.Tick=A,oe.Time=Y,oe.Tooltip=S,oe.Color=D,oe.color=D.parse,U.compose(se),W.compose(ye),F.compose(b),G.compose(b),oe.defaultOptions=ve.defaultOptions,oe.getOptions=ve.getOptions,oe.time=ve.defaultTime,oe.setOptions=ve.setOptions,oe.dateFormat=Ae.dateFormat,oe.format=Ae.format,oe.numberFormat=Ae.numberFormat,oe.addEvent=le.addEvent,oe.arrayMax=le.arrayMax,oe.arrayMin=le.arrayMin,oe.attr=le.attr,oe.clearTimeout=le.clearTimeout,oe.correctFloat=le.correctFloat,oe.createElement=le.createElement,oe.css=le.css,oe.defined=le.defined,oe.destroyObjectProperties=le.destroyObjectProperties,oe.discardElement=le.discardElement,oe.distribute=ce.distribute,oe.erase=le.erase,oe.error=le.error,oe.extend=le.extend,oe.extendClass=le.extendClass,oe.find=le.find,oe.fireEvent=le.fireEvent,oe.getMagnitude=le.getMagnitude,oe.getStyle=le.getStyle,oe.inArray=le.inArray,oe.isArray=le.isArray,oe.isClass=le.isClass,oe.isDOMElement=le.isDOMElement,oe.isFunction=le.isFunction,oe.isNumber=le.isNumber,oe.isObject=le.isObject,oe.isString=le.isString,oe.keys=le.keys,oe.merge=le.merge,oe.normalizeTickInterval=le.normalizeTickInterval,oe.objectEach=le.objectEach,oe.offset=le.offset,oe.pad=le.pad,oe.pick=le.pick,oe.pInt=le.pInt,oe.relativeLength=le.relativeLength,oe.removeEvent=le.removeEvent,oe.seriesType=R.seriesType,oe.splat=le.splat,oe.stableSort=le.stableSort,oe.syncTimeout=le.syncTimeout,oe.timeUnits=le.timeUnits,oe.uniqueKey=le.uniqueKey,oe.useSerialIds=le.useSerialIds,oe.wrap=le.wrap,h.compose(g),P.compose(O),te.compose(Q),x.compose(Q),v.compose(p),y.compose(Q),V.compose(b),w.compose(Q,b,O),S.compose(F),oe}),be["masters/highcharts.src.js"]._modules=be,be["masters/highcharts.src.js"]},Hn.exports?(Oe.default=Oe,Hn.exports=Kn.document?Oe(Kn):Oe):void 0!==(Di=function(){return Oe(Kn)}.call(An,In,An,Hn))&&(Hn.exports=Di)},295:(Hn,An,In)=>{"use strict";var Di,Kn,Oe;Oe=function(Oe){function be(oe,le,ve,xe){oe.hasOwnProperty(le)||(oe[le]=xe.apply(null,ve),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:le,module:oe[le]}})))}be(Oe=Oe?Oe._modules:{},"Extensions/NoDataToDisplay.js",[Oe["Core/Renderer/HTML/AST.js"],Oe["Core/Chart/Chart.js"],Oe["Core/Defaults.js"],Oe["Core/Utilities.js"]],function(oe,le,ve,xe){({getOptions:ve}=ve);const{addEvent:me,extend:fe}=xe;xe=le.prototype,ve=ve(),fe(ve.lang,{noData:"No data to display"}),ve.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"0.8em",color:"#666666"}},xe.showNoData=function(Ae){var ce=this.options;Ae=Ae||ce&&ce.lang.noData||"",ce=ce&&(ce.noData||{}),this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(Ae,0,0,void 0,void 0,void 0,ce.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(oe.filterUserAttributes(ce.attr||{})).css(ce.style||{}),this.noDataLabel.align(fe(this.noDataLabel.getBBox(),ce.position||{}),!1,"plotBox"))},xe.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())},xe.hasData=function(){let Ae=this.series||[],ce=Ae.length;for(;ce--;)if(Ae[ce].hasData()&&!Ae[ce].options.isInternal)return!0;return this.loadingShown},me(le,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})}),be(Oe,"masters/modules/no-data-to-display.src.js",[],function(){})},Hn.exports?(Oe.default=Oe,Hn.exports=Oe):(Di=[In(282)],void 0!==(Kn=function(be){return Oe(be),Oe.Highcharts=be,Oe}.apply(An,Di))&&(Hn.exports=Kn))},428:(Hn,An,In)=>{"use strict";function Di(t){return"function"==typeof t}let Kn=!1;const Oe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else Kn&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Kn=t},get useDeprecatedSynchronousErrorHandling(){return Kn}};function be(t){setTimeout(()=>{throw t},0)}const oe={closed:!0,next(t){},error(t){if(Oe.useDeprecatedSynchronousErrorHandling)throw t;be(t)},complete(){}},le=Array.isArray||(t=>t&&"number"==typeof t.length);function ve(t){return null!==t&&"object"==typeof t}const me=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class fe{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof fe)e.remove(this);else if(null!==e)for(let o=0;on.concat(e instanceof me?e.errors:e),[])}fe.EMPTY=((t=new fe).closed=!0,t);const ce="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class se extends fe{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=oe;break;case 1:if(!n){this.destination=oe;break}if("object"==typeof n){n instanceof se?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new W(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new W(this,n,e,i)}}[ce](){return this}static create(n,e,i){const s=new se(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class W extends se{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;Di(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==oe&&(o=Object.create(e),Di(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Oe.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Oe;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):be(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;be(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);Oe.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),Oe.useDeprecatedSynchronousErrorHandling)throw i;be(i)}}__tryOrSetError(n,e,i){if(!Oe.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return Oe.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(be(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const te="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}function y(...t){return A(t)}function A(t){return 0===t.length?x:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}let S=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function(t,n,e){if(t){if(t instanceof se)return t;if(t[ce])return t[ce]()}return t||n||e?new se(t,n,e):new se(oe)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||Oe.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Oe.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Oe.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof se?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=N(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[te](){return this}pipe(...e){return 0===e.length?this:A(e)(this)}toPromise(e){return new(e=N(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function N(t){if(t||(t=Oe.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const G=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b extends fe{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class w extends se{constructor(n){super(n),this.destination=n}}let E=(()=>{class t extends S{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ce](){return new w(this)}lift(e){const i=new O(this,this);return i.operator=e,i}next(e){if(this.closed)throw new G;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;onew O(n,e),t})();class O extends E{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):fe.EMPTY}}function R(t){return t&&"function"==typeof t.schedule}function g(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new h(t,n))}}class h{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new p(n,this.project,this.thisArg))}}class p extends se{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const v=t=>n=>{for(let e=0,i=t.length;et&&"number"==typeof t.length&&"function"!=typeof t;function X(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const m=t=>{if(t&&"function"==typeof t[te])return(t=>n=>{const e=t[te]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(Ne(t))return v(t);if(X(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,be),n))(t);if(t&&"function"==typeof t[D])return(t=>n=>{const e=t[D]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${ve(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function q(t,n){return new S(e=>{const i=new fe;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function K(t,n){return n?function(t,n){if(null!=t){if(function(t){return t&&"function"==typeof t[te]}(t))return function(t,n){return new S(e=>{const i=new fe;return i.add(n.schedule(()=>{const s=t[te]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(X(t))return function(t,n){return new S(e=>{const i=new fe;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(Ne(t))return q(t,n);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,n){if(!t)throw new Error("Iterable cannot be null");return new S(e=>{const i=new fe;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[D](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof S?t:new S(m(t))}class ne extends se{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _e extends se{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Se(t,n){if(n.closed)return;if(t instanceof S)return t.subscribe(n);let e;try{e=m(t)(n)}catch(i){n.error(i)}return e}function Re(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(Re((s,r)=>K(t(s,r)).pipe(g((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new ze(t,e)))}class ze{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new ie(n,this.project,this.concurrent))}}class ie extends _e{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ee(t=Number.POSITIVE_INFINITY){return Re(x,t)}function pe(t,n){return n?q(t,n):new S(v(t))}function De(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return R(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof S?t[0]:Ee(n)(pe(t,e))}function Ge(){return function(n){return n.lift(new We(n))}}class We{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new ut(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class ut extends se{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class yt extends S{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new fe,n.add(this.source.subscribe(new _t(this.getSubject(),this))),n.closed&&(this._connection=null,n=fe.EMPTY)),n}refCount(){return Ge()(this)}}const ft=(()=>{const t=yt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class _t extends w{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}function ii(){return new E}function Tn(){return t=>Ge()(function(t,n){return function(i){let s;s="function"==typeof t?t:function(){return t};const r=Object.create(i,ft);return r.source=i,r.subjectFactory=s,r}}(ii)(t))}function tn(t){for(let n in t)if(t[n]===tn)return n;throw Error("Could not find renamed property on target object.")}function Es(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Bs(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const gs=tn({__forward_ref__:tn});function nn(t){return t.__forward_ref__=nn,t.toString=function(){return Bt(this())},t}function Ut(t){return PM(t)?t():t}function PM(t){return"function"==typeof t&&t.hasOwnProperty(gs)&&t.__forward_ref__===nn}class da extends Error{constructor(n,e){super(function(t,n){return`${t?`NG0${t}: `:""}${n}`}(n,e)),this.code=n}}function hn(t){return"string"==typeof t?t:null==t?"":String(t)}function Vs(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():hn(t)}function Lf(t,n){const e=n?` in ${n}`:"";throw new da("201",`No provider for ${Vs(t)} found${e}`)}function er(t,n){null==t&&function(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Ze(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function St(t){return{providers:t.providers||[],imports:t.imports||[]}}function Lo(t){return RM(t,Bf)||RM(t,FM)}function RM(t,n){return t.hasOwnProperty(n)?t[n]:null}function NM(t){return t&&(t.hasOwnProperty(yy)||t.hasOwnProperty(iH))?t[yy]:null}const Bf=tn({\u0275prov:tn}),yy=tn({\u0275inj:tn}),FM=tn({ngInjectableDef:tn}),iH=tn({ngInjectorDef:tn});var Wt=(()=>((Wt=Wt||{})[Wt.Default=0]="Default",Wt[Wt.Host=1]="Host",Wt[Wt.Self=2]="Self",Wt[Wt.SkipSelf=4]="SkipSelf",Wt[Wt.Optional=8]="Optional",Wt))();let vy;function ua(t){const n=vy;return vy=t,n}function LM(t,n,e){const i=Lo(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Wt.Optional?null:void 0!==n?n:void Lf(Bt(t),"Injector")}function ha(t){return{toString:t}.toString()}var gr=(()=>((gr=gr||{})[gr.OnPush=0]="OnPush",gr[gr.Default=1]="Default",gr))(),Vi=(()=>((Vi=Vi||{})[Vi.Emulated=0]="Emulated",Vi[Vi.None=2]="None",Vi[Vi.ShadowDom=3]="ShadowDom",Vi))();const rH="undefined"!=typeof globalThis&&globalThis,oH="undefined"!=typeof window&&window,aH="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jn=rH||"undefined"!=typeof global&&global||oH||aH,dc={},Yn=[],Vf=tn({\u0275cmp:tn}),by=tn({\u0275dir:tn}),xy=tn({\u0275pipe:tn}),BM=tn({\u0275mod:tn}),lH=tn({\u0275loc:tn}),Bo=tn({\u0275fac:tn}),ou=tn({__NG_ELEMENT_ID__:tn});let cH=0;function mt(t){return ha(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===gr.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Yn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Vi.Emulated,id:"c",styles:t.styles||Yn,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=cH++,i.inputs=GM(t.inputs,e),i.outputs=GM(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(HM):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(jM):null,i})}function HM(t){return Ts(t)||function(t){return t[by]||null}(t)}function jM(t){return function(t){return t[xy]||null}(t)}const zM={};function kt(t){return ha(()=>{const n={type:t.type,bootstrap:t.bootstrap||Yn,declarations:t.declarations||Yn,imports:t.imports||Yn,exports:t.exports||Yn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(zM[t.id]=t.type),n})}function GM(t,n){if(null==t)return dc;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const Le=mt;function ms(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ts(t){return t[Vf]||null}function mr(t,n){const e=t[BM]||null;if(!e&&!0===n)throw new Error(`Type ${Bt(t)} does not have '\u0275mod' property.`);return e}function uo(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lr(t){return Array.isArray(t)&&!0===t[1]}function My(t){return 0!=(8&t.flags)}function Gf(t){return 2==(2&t.flags)}function $f(t){return 1==(1&t.flags)}function Br(t){return null!==t.template}function gH(t){return 0!=(512&t[2])}function sl(t,n){return t.hasOwnProperty(Bo)?t[Bo]:null}class UM{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function rn(){return WM}function WM(t){return t.type.prototype.ngOnChanges&&(t.setInput=vH),yH}function yH(){const t=qM(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===dc)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function vH(t,n,e,i){const s=qM(t)||function(t,n){return t[YM]=n}(t,{previous:dc,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new UM(l&&l.currentValue,n,o===dc),t[i]=n}rn.ngInherit=!0;const YM="__ngSimpleChanges__";function qM(t){return t[YM]||null}const XM="http://www.w3.org/2000/svg";let Ey;function Ty(){return void 0!==Ey?Ey:"undefined"!=typeof document?document:void 0}function Ei(t){return!!t.listen}const KM={createRenderer:(t,n)=>Ty()};function Hi(t){for(;Array.isArray(t);)t=t[0];return t}function Uf(t,n){return Hi(n[t])}function nr(t,n){return Hi(n[t.index])}function Ay(t,n){return t.data[n]}function gc(t,n){return t[n]}function ir(t,n){const e=n[t];return uo(e)?e:e[0]}function JM(t){return 4==(4&t[2])}function ky(t){return 128==(128&t[2])}function pa(t,n){return null==n?null:t[n]}function ZM(t){t[18]=0}function Oy(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const an={lFrame:aD(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function eD(){return an.bindingsEnabled}function dt(){return an.lFrame.lView}function Pn(){return an.lFrame.tView}function Ot(t){return an.lFrame.contextLView=t,t[8]}function Xi(){let t=tD();for(;null!==t&&64===t.type;)t=t.parent;return t}function tD(){return an.lFrame.currentTNode}function ho(t,n){const e=an.lFrame;e.currentTNode=t,e.isParent=n}function Iy(){return an.lFrame.isParent}function Py(){an.lFrame.isParent=!1}function Wf(){return an.isInCheckNoChangesMode}function Yf(t){an.isInCheckNoChangesMode=t}function js(){const t=an.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function fo(){return an.lFrame.bindingIndex}function mc(){return an.lFrame.bindingIndex++}function Vo(t){const n=an.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function RH(t,n){const e=an.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ry(n)}function Ry(t){an.lFrame.currentDirectiveIndex=t}function sD(){return an.lFrame.currentQueryIndex}function Fy(t){an.lFrame.currentQueryIndex=t}function FH(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function rD(t,n,e){if(e&Wt.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&Wt.Host||(s=FH(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=an.lFrame=oD();return i.currentTNode=n,i.lView=t,!0}function qf(t){const n=oD(),e=t[1];an.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function oD(){const t=an.lFrame,n=null===t?null:t.child;return null===n?aD(t):n}function aD(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function lD(){const t=an.lFrame;return an.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const cD=lD;function Xf(){const t=lD();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zs(){return an.lFrame.selectedIndex}function ga(t){an.lFrame.selectedIndex=t}function mi(){const t=an.lFrame;return Ay(t.tView,t.selectedIndex)}function pn(){an.lFrame.currentNamespace=XM}function Ti(){an.lFrame.currentNamespace=null}function Qf(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class uu{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Zf(t,n,e){const i=Ei(t);let s=0;for(;sn){o=r-1;break}}}for(;r>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Hy=!0;function tp(t){const n=Hy;return Hy=t,n}let XH=0;function fu(t,n){const e=zy(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,jy(i.data,t),jy(n,null),jy(i.blueprint,null));const s=np(t,n),r=t.injectorIndex;if(fD(s)){const o=_c(s),a=yc(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function jy(t,n){t.push(0,0,0,0,0,0,0,0,n)}function zy(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function np(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ip(t,n,e){!function(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ou)&&(i=e[ou]),null==i&&(i=e[ou]=XH++);const s=255&i;n.data[t+(s>>5)]|=1<=0?255&n:JH:n}(e);if("function"==typeof r){if(!rD(n,t,i))return i&Wt.Host?mD(s,e,i):_D(n,e,i,s);try{const o=r(i);if(null!=o||i&Wt.Optional)return o;Lf(e)}finally{cD()}}else if("number"==typeof r){let o=null,a=zy(t,n),l=-1,c=i&Wt.Host?n[16][6]:null;for((-1===a||i&Wt.SkipSelf)&&(l=-1===a?np(t,n):n[a+8],-1!==l&&xD(i,!1)?(o=n[1],a=_c(l),n=yc(l,n)):a=-1);-1!==a;){const d=n[1];if(bD(r,a,d.data)){const u=ZH(a,n,e,o,i,c);if(u!==vD)return u}l=n[a+8],-1!==l&&xD(i,n[1].data[a+8]===c)&&bD(r,a,n)?(o=d,a=_c(l),n=yc(l,n)):a=-1}}}return _D(n,e,i,s)}const vD={};function JH(){return new vc(Xi(),dt())}function ZH(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],d=sp(a,o,e,null==i?Gf(a)&&Hy:i!=o&&0!=(3&a.type),s&Wt.Host&&r===a);return null!==d?pu(n,o,d,a):vD}function sp(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,d=r>>20,f=s?a+d:t.directiveEnd;for(let _=i?a:a+d;_=l&&T.type===e)return _}if(s){const _=o[l];if(_&&Br(_)&&_.type===e)return l}return null}function pu(t,n,e,i){let s=t[e];const r=n.data;if(function(t){return t instanceof uu}(s)){const o=s;o.resolving&&function(t,n){throw new da("200",`Circular dependency in DI detected for ${t}`)}(Vs(r[e]));const a=tp(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ua(o.injectImpl):null;rD(t,i,Wt.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=WM(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&ua(l),tp(a),o.resolving=!1,cD()}}return s}function bD(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Bo]||Gy(n),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const r=s[Bo]||Gy(s);if(r&&r!==e)return r;s=Object.getPrototypeOf(s)}return r=>new r})}function Gy(t){return PM(t)?()=>{const n=Gy(Ut(t));return n&&n()}:sl(t)}function _s(t){return function(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let s=0;for(;s{const i=function(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,d){const u=l.hasOwnProperty(xc)?l[xc]:Object.defineProperty(l,xc,{value:[]})[xc];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class pt{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ze({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ij=new pt("AnalyzeForEntryComponents"),rp=Function;function vr(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?po(e,n):n(e))}function ap(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ol(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function _a(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Uy(t,n){const e=Cc(t,n);if(e>=0)return t[1|e]}function Cc(t,n){return function(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<n?s=r:i=r+1}return~(s< ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Bt(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(fj,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[Mc]=null,t}const Sc=xu(rl("Inject",t=>({token:t})),-1),Ki=xu(rl("Optional"),8),Vr=xu(rl("SkipSelf"),4);var rr=(()=>((rr=rr||{})[rr.Important=1]="Important",rr[rr.DashCase=2]="DashCase",rr))();const PD="__ngContext__";function ks(t,n){t[PD]=n}function Jy(t){const n=function(t){return t[PD]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function ev(t,n){return undefined(t,n)}function Mu(t){const n=t[3];return Lr(n)?n[3]:n}function tv(t){return HD(t[13])}function nv(t){return HD(t[4])}function HD(t){for(;null!==t&&!Lr(t);)t=t[4];return t}function Tc(t,n,e,i,s){if(null!=i){let r,o=!1;Lr(i)?r=i:uo(i)&&(o=!0,i=i[0]);const a=Hi(i);0===t&&null!==e?null==s?WD(n,e,a):ll(n,e,a,s||null,!0):1===t&&null!==e?ll(n,e,a,s||null,!0):2===t?function(t,n,e){const i=hp(t,n);i&&function(t,n,e,i){Ei(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function(t,n,e,i,s){const r=e[7];r!==Hi(e)&&Tc(n,t,i,r,s);for(let a=10;a0&&(t[e-1][4]=i[4]);const r=ol(t,10+n);!function(t,n){Du(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function GD(t,n){if(!(256&n[2])){const e=n[11];Ei(e)&&e.destroyNode&&Du(t,n,e,3,null,null),function(t){let n=t[13];if(!n)return ov(t[1],t);for(;n;){let e=null;if(uo(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)uo(n)&&ov(n[1],n),n=n[3];null===n&&(n=t),uo(n)&&ov(n[1],n),e=n&&n[4]}n=e}}(n)}}function ov(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;rt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return gp}())||void 0===n?void 0:n.createHTML(t))||t}function tS(t){var n;return(null===(n=function(){if(void 0===mp&&(mp=null,jn.trustedTypes))try{mp=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return mp}())||void 0===n?void 0:n.createHTML(t))||t}class dl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Zj extends dl{getTypeName(){return"HTML"}}class e8 extends dl{getTypeName(){return"Style"}}class t8 extends dl{getTypeName(){return"Script"}}class n8 extends dl{getTypeName(){return"URL"}}class i8 extends dl{getTypeName(){return"ResourceURL"}}function or(t){return t instanceof dl?t.changingThisBreaksApplicationSecurity:t}function go(t,n){const e=sS(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function sS(t){return t instanceof dl&&t.getTypeName()||null}class c8{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(cl(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class d8{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=cl(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=cl(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0Su(n.trim())).join(", ")}function mo(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Eu(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const aS=mo("area,br,col,hr,img,wbr"),lS=mo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cS=mo("rp,rt"),pv=Eu(aS,Eu(lS,mo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Eu(cS,mo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Eu(cS,lS)),gv=mo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mv=mo("srcset"),dS=Eu(gv,mv,mo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),p8=mo("script,style,template");class g8{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!pv.hasOwnProperty(e))return this.sanitizedSomething=!0,!p8.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s"),!0}endElement(n){const e=n.nodeName.toLowerCase();pv.hasOwnProperty(e)&&!aS.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(uS(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const m8=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_8=/([^\#-~ |!])/g;function uS(t){return t.replace(/&/g,"&").replace(m8,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(_8,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let _p;function hS(t,n){let e=null;try{_p=_p||function(t){const n=new d8(t);return function(){try{return!!(new window.DOMParser).parseFromString(cl(""),"text/html")}catch(t){return!1}}()?new c8(n):n}(t);let i=n?String(n):"";e=_p.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=_p.getInertBodyElement(i)}while(i!==r);return cl((new g8).sanitizeChildren(_v(e)||e))}finally{if(e){const i=_v(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function _v(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ln=(()=>((Ln=Ln||{})[Ln.NONE=0]="NONE",Ln[Ln.HTML=1]="HTML",Ln[Ln.STYLE=2]="STYLE",Ln[Ln.SCRIPT=3]="SCRIPT",Ln[Ln.URL=4]="URL",Ln[Ln.RESOURCE_URL=5]="RESOURCE_URL",Ln))();function Ac(t){const n=Tu();return n?tS(n.sanitize(Ln.HTML,t)||""):go(t,"HTML")?tS(or(t)):hS(Ty(),hn(t))}function _i(t){const n=Tu();return n?n.sanitize(Ln.URL,t)||"":go(t,"URL")?or(t):Su(hn(t))}function Tu(){const t=dt();return t&&t[12]}function yp(t){return t.ngOriginalError}function T8(t,...n){t.error(...n)}class Hr{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=this._findContext(n),s=function(t){return t&&t.ngErrorLogger||T8}(n);s(this._console,"ERROR",n),e&&s(this._console,"ORIGINAL ERROR",e),i&&s(this._console,"ERROR CONTEXT",i)}_findContext(n){return n?function(t){return t.ngDebugContext}(n)||this._findContext(yp(n)):null}_findOriginalError(n){let e=n&&yp(n);for(;e&&yp(e);)e=yp(e);return e||null}}const vS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jn))();function bS(t){return t.ownerDocument.defaultView}function _o(t){return t instanceof Function?t():t}function wS(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const CS="ng-template";function N8(t,n,e){let i=0;for(;ir?"":s[u+1].toLowerCase();const _=8&i?f:null;if(_&&-1!==wS(_,c,0)||2&i&&c!==f){if(jr(i))return!1;o=!0}}}}else{if(!o&&!jr(i)&&!jr(l))return!1;if(o&&jr(l))continue;o=!1,i=l|1&i}}return jr(i)||o}function jr(t){return 0==(1&t)}function B8(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!jr(o)&&(n+=SS(r,s),s=""),i=o,r=r||!jr(i);e++}return""!==s&&(n+=SS(r,s)),n}const cn={};function ae(t){ES(Pn(),dt(),zs()+t,Wf())}function ES(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Kf(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Jf(n,r,0,e)}ga(e)}function vp(t,n){return t<<17|n<<2}function zr(t){return t>>17&32767}function vv(t){return 2|t}function Ho(t){return(131068&t)>>2}function bv(t,n){return-131069&t|n<<2}function xv(t){return 1|t}function LS(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&ES(t,n,20,Wf()),e(i,s)}finally{ga(r)}}function VS(t,n,e){if(My(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function YS(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function qS(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function g4(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&Pv(e)}}function Pv(t){for(let i=tv(t);null!==i;i=nv(i))for(let s=10;s0&&Pv(r)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Pv(s)}}function w4(t,n){const e=ir(n,t),i=e[1];(function(t,n){for(let e=n.length;ePromise.resolve(null))();function ZS(t){return t[7]||(t[7]=[])}function eE(t){return t.cleanup||(t.cleanup=[])}function nE(t,n){const e=t[9],i=e?e.get(Hr,null):null;i&&i.handleError(n)}function iE(t,n,e,i,s){for(let r=0;rthis.processProvider(a,n,e)),po([n],a=>this.processInjectorType(a,[],r)),this.records.set(ba,Rc(void 0,this));const o=this.records.get(Ou);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Bt(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=yu,i=Wt.Default){this.assertNotDestroyed();const s=Dc(this),r=ua(void 0);try{if(!(i&Wt.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof pt}(n)&&Lo(n);a=l&&this.injectableDefInScope(l)?Rc(Vv(n),Iu):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Wt.Self?rE():this.parent).get(n,e=i&Wt.Optional&&e===yu?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Mc]=o[Mc]||[]).unshift(Bt(n)),s)throw o;return ED(o,n,"R3InjectorError",this.source)}throw o}finally{ua(r),Dc(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Bt(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,e,i){if(!(n=Ut(n)))return!1;let s=NM(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=NM(r)),null==s)return!1;if(null!=s.imports&&!a){let d;i.push(o);try{po(s.imports,u=>{this.processInjectorType(u,e,i)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;uthis.processProvider(T,f,_||Yn))}}this.injectorDefTypes.add(o);const l=sl(o)||(()=>new o);this.records.set(o,Rc(l,Iu));const c=s.providers;if(null!=c&&!a){const d=n;po(c,u=>this.processProvider(u,d,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=Nc(n=Ut(n))?n:Ut(n&&n.provide);const r=function(t,n,e){return lE(t)?Rc(void 0,t.useValue):Rc(aE(t),Iu)}(n);if(Nc(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Rc(void 0,Iu,!0),o.factory=()=>al(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===Iu&&(e.value=k4,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Ut(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Vv(t){const n=Lo(t),e=null!==n?n.factory:sl(t);if(null!==e)return e;if(t instanceof pt)throw new Error(`Token ${Bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const n=t.length;if(n>0){const i=_a(n,"?");throw new Error(`Can't resolve all parameters for ${Bt(t)}: (${i.join(", ")}).`)}const e=function(t){const n=t&&(t[Bf]||t[FM]);if(n){const e=function(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Error("unreachable")}function aE(t,n,e){let i;if(Nc(t)){const s=Ut(t);return sl(s)||Vv(s)}if(lE(t))i=()=>Ut(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...al(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Me(Ut(t.useExisting));else{const s=Ut(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return sl(s)||Vv(s);i=()=>new s(...al(t.deps))}return i}function Rc(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function lE(t){return null!==t&&"object"==typeof t&&Xy in t}function Nc(t){return"function"==typeof t}const cE=function(t,n,e){return function(t,n=null,e=null,i){const s=oE(t,n,e,i);return s._resolveInjectorDefTypes(),s}({name:e},n,t,e)};let wn=(()=>{class t{static create(e,i){return Array.isArray(e)?cE(e,i,""):cE(e.providers,e.parent,e.name||"")}}return t.THROW_IF_NOT_FOUND=yu,t.NULL=new sE,t.\u0275prov=Ze({token:t,providedIn:"any",factory:()=>Me(ba)}),t.__NG_ELEMENT_ID__=-1,t})();function Z4(t,n){Qf(Jy(t)[1],Xi())}function Je(t){let n=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(Br(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Error("Directives cannot inherit Components");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=Uv(t.inputs),o.declaredInputs=Uv(t.declaredInputs),o.outputs=Uv(t.outputs);const a=s.hostBindings;a&&iz(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&tz(t,l),c&&nz(t,c),Es(t.inputs,s.inputs),Es(t.declaredInputs,s.declaredInputs),Es(t.outputs,s.outputs),Br(s)&&s.data.animation){const d=t.data;d.animation=(d.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=ep(s.hostAttrs,e=ep(e,s.hostAttrs))}}(i)}function Uv(t){return t===dc?{}:t===Yn?[]:t}function tz(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function nz(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function iz(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Dp=null;function Fc(){if(!Dp){const t=jn.Symbol;if(t&&t.iterator)Dp=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Hi(Te[i.index])):i.index;if(Ei(e)){let Te=null;if(!a&&l&&(Te=function(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;rl?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=r,Te.__ngLastListenerFn__=r,_=!1;else{r=Zv(i,n,u,r,!1);const Fe=e.listen(L,s,r);f.push(r,Fe),d&&d.push(s,ue,J,J+1)}}else r=Zv(i,n,u,r,!0),L.addEventListener(s,r,o),f.push(r),d&&d.push(s,ue,J,o)}else r=Zv(i,n,u,r,!1);const T=i.outputs;let k;if(_&&null!==T&&(k=T[s])){const $=k.length;if($)for(let L=0;L<$;L+=2){const Be=n[k[L]][k[L+1]].subscribe(r),Ue=f.length;f.push(r,Be),d&&d.push(s,i.index,Ue,-(Ue+1))}}}(r,s,s[11],o,t,n,!!e,i),nt}function QE(t,n,e,i){try{return!1!==e(i)}catch(s){return nE(t,s),!1}}function Zv(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?ir(t.index,n):n;0==(32&n[2])&&Rv(a);let l=QE(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=QE(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Ie(t=1){return function(t){return(an.lFrame.contextLView=function(t,n){for(;t>0;)n=n[15],t--;return n}(t,an.lFrame.contextLView))[8]}(t)}function Fz(t,n){let e=null;const i=function(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s=0}const Ji={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oT(t){return t.substring(Ji.key,Ji.keyEnd)}function aT(t,n){const e=Ji.textEnd;return e===n?-1:(n=Ji.keyEnd=function(t,n,e){for(;n32;)n++;return n}(t,Ji.key=n,e),Yc(t,n,e))}function Yc(t,n,e){for(;n=0;e=aT(n,e))sr(t,oT(n),!0)}function Wr(t,n,e,i){const s=dt(),r=Pn(),o=Vo(2);r.firstUpdatePass&&fT(r,t,o,i),n!==cn&&Os(s,o,n)&&gT(r,r.data[zs()],s,s[11],t,s[o+1]=function(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Bt(or(t)))),t}(n,e),i,o)}function Yr(t,n,e,i){const s=Pn(),r=Vo(2);s.firstUpdatePass&&fT(s,null,r,i);const o=dt();if(e!==cn&&Os(o,r,e)){const a=s.data[zs()];if(_T(a,i)&&!hT(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Bs(l,e||"")),Kv(s,a,o,e,i)}else!function(t,n,e,i,s,r,o,a){s===cn&&(s=Yn);let l=0,c=0,d=0=t.expandoStartIndex}function fT(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[zs()],o=hT(t,e);_T(r,i)&&null===n&&!o&&(n=!1),n=function(t,n,e,i){const s=function(t){const n=an.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=Lu(e=eb(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=eb(s,t,n,e,i),null===r){let l=function(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Ho(i))return t[zr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=eb(null,t,n,l[1],i),l=Lu(l,n.attrs,i),function(t,n,e,i){t[zr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(c=!0)}else d=e;if(s)if(0!==l){const f=zr(t[a+1]);t[i+1]=vp(f,a),0!==f&&(t[f+1]=bv(t[f+1],i)),t[a+1]=function(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=vp(a,0),0!==a&&(t[a+1]=bv(t[a+1],i)),a=i;else t[i+1]=vp(l,0),0===a?a=i:t[l+1]=bv(t[l+1],i),l=i;c&&(t[i+1]=vv(t[i+1])),rT(t,d,i,!0),rT(t,d,i,!1),function(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Cc(r,n)>=0&&(e[i+1]=xv(e[i+1]))}(n,d,t,i,r),o=vp(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function eb(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[s],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let f=e[s+1];f===cn&&(f=u?Yn:void 0);let _=u?Uy(f,i):d===i?f:void 0;if(c&&!kp(_)&&(_=Uy(l,i)),kp(_)&&(a=_,o))return a;const T=t[s+1];s=o?zr(T):Ho(T)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Uy(l,i))}return a}function kp(t){return void 0!==t}function _T(t,n){return 0!=(t.flags&(n?16:32))}function $e(t,n=""){const e=dt(),i=Pn(),s=t+20,r=i.firstCreatePass?Oc(i,s,1,n,null):i.data[s],o=e[s]=function(t,n){return Ei(t)?t.createText(n):t.createTextNode(n)}(e[11],n);fp(i,e,o,r),ho(r,!1)}function Mt(t){return $t("",t,""),Mt}function $t(t,n,e){const i=dt(),s=Bc(i,t,n,e);return s!==cn&&zo(i,zs(),s),$t}function hl(t,n,e,i,s){const r=dt(),o=function(t,n,e,i,s,r){const a=ul(t,fo(),e,s);return Vo(2),a?n+hn(e)+i+hn(s)+r:cn}(r,t,n,e,i,s);return o!==cn&&zo(r,zs(),o),hl}function ys(t,n,e){const i=dt();return Os(i,mc(),n)&&ar(Pn(),mi(),i,t,n,i[11],e,!0),ys}const fl=void 0;var _G=["en",[["a","p"],["AM","PM"],fl],[["AM","PM"],fl,fl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],fl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],fl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",fl,"{1} 'at' {0}",fl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===e?1:5}];let qc={};function $s(t){const n=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=LT(n);if(e)return e;const i=n.split("-")[0];if(e=LT(i),e)return e;if("en"===i)return _G;throw new Error(`Missing locale data for the locale "${t}".`)}function LT(t){return t in qc||(qc[t]=jn.ng&&jn.ng.common&&jn.ng.common.locales&&jn.ng.common.locales[t]),qc[t]}var Pt=(()=>((Pt=Pt||{})[Pt.LocaleId=0]="LocaleId",Pt[Pt.DayPeriodsFormat=1]="DayPeriodsFormat",Pt[Pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pt[Pt.DaysFormat=3]="DaysFormat",Pt[Pt.DaysStandalone=4]="DaysStandalone",Pt[Pt.MonthsFormat=5]="MonthsFormat",Pt[Pt.MonthsStandalone=6]="MonthsStandalone",Pt[Pt.Eras=7]="Eras",Pt[Pt.FirstDayOfWeek=8]="FirstDayOfWeek",Pt[Pt.WeekendRange=9]="WeekendRange",Pt[Pt.DateFormat=10]="DateFormat",Pt[Pt.TimeFormat=11]="TimeFormat",Pt[Pt.DateTimeFormat=12]="DateTimeFormat",Pt[Pt.NumberSymbols=13]="NumberSymbols",Pt[Pt.NumberFormats=14]="NumberFormats",Pt[Pt.CurrencyCode=15]="CurrencyCode",Pt[Pt.CurrencySymbol=16]="CurrencySymbol",Pt[Pt.CurrencyName=17]="CurrencyName",Pt[Pt.Currencies=18]="Currencies",Pt[Pt.Directionality=19]="Directionality",Pt[Pt.PluralCase=20]="PluralCase",Pt[Pt.ExtraData=21]="ExtraData",Pt))();const Op="en-US";let BT=Op;function nb(t){er(t,"Expected localeId to be defined"),"string"==typeof t&&(BT=t.toLowerCase().replace(/_/g,"-"))}function rb(t,n,e,i,s){if(t=Ut(t),Array.isArray(t))for(let r=0;r>20;if(Nc(t)||!t.multi){const _=new uu(l,s,C),T=ab(a,n,s?d:d+f,u);-1===T?(ip(fu(c,o),r,a),ob(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(_),o.push(_)):(e[T]=_,o[T]=_)}else{const _=ab(a,n,d+f,u),T=ab(a,n,d,d+f),k=_>=0&&e[_],$=T>=0&&e[T];if(s&&!$||!s&&!k){ip(fu(c,o),r,a);const L=function(t,n,e,i,s){const r=new uu(t,e,C);return r.multi=[],r.index=n,r.componentProviders=0,aA(r,s,i&&!e),r}(s?h6:u6,e.length,s,i,l);!s&&$&&(e[T].providerFactory=L),ob(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),e.push(L),o.push(L)}else ob(r,t,_>-1?_:T,aA(e[s?T:_],l,!s&&i));!s&&i&&$&&e[T].componentProviders++}}}function ob(t,n,e,i){const s=Nc(n);if(s||function(t){return!!t.useClass}(n)){const o=(n.useClass||n).prototype.ngOnDestroy;if(o){const a=t.destroyHooks||(t.destroyHooks=[]);if(!s&&n.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,o]):a[l+1].push(i,o)}else a.push(e,o)}}}function aA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function ab(t,n,e,i){for(let s=e;s{e.providersResolver=(i,s)=>function(t,n,e){const i=Pn();if(i.firstCreatePass){const s=Br(t);rb(e,i.data,i.blueprint,s,!0),rb(n,i.data,i.blueprint,s,!1)}}(i,s?s(t):t,n)}}class lA{}const dA="ngComponent";class g6{resolveComponentFactory(n){throw function(t){const n=Error(`No component factory found for ${Bt(t)}. Did you add it to @NgModule.entryComponents?`);return n[dA]=t,n}(n)}}let is=(()=>{class t{}return t.NULL=new g6,t})();function Fp(...t){}function Kc(t,n){return new tt(nr(t,n))}const y6=function(){return Kc(Xi(),dt())};let tt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=y6,t})();function uA(t){return t instanceof tt?t.nativeElement:t}class $o{}let ji=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>b6(),t})();const b6=function(){const t=dt(),e=ir(Xi().index,t);return function(t){return t[11]}(uo(e)?e:t)};let db=(()=>{class t{}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:()=>null}),t})();class Uo{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const hA=new Uo("12.2.17");class fA{constructor(){}supports(n){return Ru(n)}create(n){return new M6(n)}}const C6=(t,n)=>n;class M6{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||C6}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new D6(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new pA),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pA),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class D6{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class S6{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class pA{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new S6,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gA(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const s=this._records.get(n);this._maybeAddToChanges(s,e);const r=s._prev,o=s._next;return r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const i=new T6(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class T6{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function _A(){return new wr([new fA])}let wr=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||_A()),deps:[[t,new Vr,new Ki]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'`)}}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:_A}),t})();function yA(){return new xa([new mA])}let xa=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||yA()),deps:[[t,new Vr,new Ki]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:yA}),t})();function Lp(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Hi(r)),Lr(r))for(let a=10;a-1&&(rv(n,i),ol(e,i))}this._attachedToViewContainer=!1}GD(this._lView[1],this._lView)}onDestroy(n){GS(this._lView[1],this._lView,null,n)}markForCheck(){Rv(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fv(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,n,e){Yf(!0);try{Fv(t,n,e)}finally{Yf(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,n){Du(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class k6 extends Gu{constructor(n){super(n),this._view=n}detectChanges(){JS(this._view)}checkNoChanges(){!function(t){Yf(!0);try{JS(t)}finally{Yf(!1)}}(this._view)}get context(){return null}}const I6=function(t){return function(t,n,e){if(Gf(t)&&!e){const i=ir(t.index,n);return new Gu(i,i)}return 47&t.type?new Gu(n[16],n):null}(Xi(),dt(),16==(16&t))};let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=I6,t})();const N6=[new mA],L6=new wr([new fA]),B6=new xa(N6),H6=function(){return Bp(Xi(),dt())};let on=(()=>{class t{}return t.__NG_ELEMENT_ID__=H6,t})();const j6=on,z6=class extends j6{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Au(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),ku(e,i,n),new Gu(i)}};function Bp(t,n){return 4&t.type?new z6(n,t,Kc(t,n)):null}class wo{}class vA{}const U6=function(){return wA(Xi(),dt())};let Fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=U6,t})();const Y6=Fn,bA=class extends Y6{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Kc(this._hostTNode,this._hostLView)}get injector(){return new vc(this._hostTNode,this._hostLView)}get parentInjector(){const n=np(this._hostTNode,this._hostLView);if(fD(n)){const e=yc(n,this._hostLView),i=_c(n);return new vc(e[1].data[i+8],e)}return new vc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=xA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=i||this.parentInjector;if(!r&&null==n.ngModule&&o){const l=o.get(wo,null);l&&(r=l)}const a=n.create(o,s,void 0,r);return this.insert(a.hostView,e),a}insert(n,e){const i=n._lView,s=i[1];if(function(t){return Lr(t[3])}(i)){const d=this.indexOf(n);if(-1!==d)this.detach(d);else{const u=i[3],f=new bA(u,u[6],u[3]);f.detach(f.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),ivS});class $A extends lA{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function(t){return t.map(G8).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return GA(this.componentDef.inputs)}get outputs(){return GA(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function(t,n){return{get:(e,i,s)=>{const r=t.get(e,td,s);return r!==td||i===td?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get($o,KM),a=r.get(db,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=i?function(t,n,e){if(Ei(t))return t.selectRootElement(n,e===Vi.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):sv(o.createRenderer(null,this.componentDef),c,function(t){const n=t.toLowerCase();return"svg"===n?XM:"math"===n?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,f=function(t,n){return{components:[],scheduler:t||vS,clean:E4,playerHandler:n||null,flags:0}}(),_=wp(0,null,null,1,0,null,null,null,null,null),T=Au(null,_,f,u,null,null,o,l,a,r);let k,$;qf(T);try{const L=function(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=Oc(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Mp(l,c,!0),null!==t&&(Zf(s,t,c),null!==l.classes&&uv(s,t,l.classes),null!==l.styles&&eS(s,t,l.styles)));const d=i.createRenderer(t,n),u=Au(e,HS(n),null,n.onPush?64:16,e[20],l,i,d,r||null,null);return o.firstCreatePass&&(ip(fu(l,e),o,n.type),qS(o,l),XS(l,e.length,1)),Cp(e,u),e[20]=u}(d,this.componentDef,T,o,l);if(d)if(i)Zf(l,d,["ng-version",hA.full]);else{const{attrs:J,classes:ue}=function(t){const n=[],e=[];let i=1,s=2;for(;i0&&uv(l,d,ue.join(" "))}if($=Ay(_,20),void 0!==e){const J=$.projection=[];for(let ue=0;uel(o,n)),n.contentQueries){const l=Xi();n.contentQueries(1,o,l.directiveStart)}const a=Xi();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(ga(a.index),WS(e[1],a,0,a.directiveStart,a.directiveEnd,n),YS(n,o)),o}(L,this.componentDef,T,f,[Z4]),ku(_,T,null)}finally{Xf()}return new W$(this.componentType,k,Kc($,T),T,$)}}class W$ extends class{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new k6(s),this.componentType=n}get injector(){return new vc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}const nd=new Map;class X$ extends wo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new zA(this);const i=mr(n),s=function(t){return t[lH]||null}(n);s&&nb(s),this._bootstrapComponents=_o(i.bootstrap),this._r3Injector=oE(n,e,[{provide:wo,useValue:this},{provide:is,useValue:this.componentFactoryResolver}],Bt(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=wn.THROW_IF_NOT_FOUND,i=Wt.Default){return n===wn||n===wo||n===ba?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Mb extends vA{constructor(n){super(),this.moduleType=n,null!==mr(n)&&function(t){const n=new Set;!function e(i){const s=mr(i,!0),r=s.id;null!==r&&(function(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Bt(n)} vs ${Bt(n.name)}`)}(r,nd.get(r),i),nd.set(r,i));const o=_o(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new X$(this.moduleType,n)}}function ki(t,n,e){const i=js()+t,s=dt();return s[i]===cn?vo(s,i,e?n.call(e):n()):function(t,n){return t[n]}(s,i)}function bs(t,n,e,i){return YA(dt(),js(),t,n,e,i)}function Qr(t,n,e,i,s){return qA(dt(),js(),t,n,e,i,s)}function Ku(t,n){const e=t[n];return e===cn?void 0:e}function YA(t,n,e,i,s,r){const o=n+e;return Os(t,o,s)?vo(t,o+1,r?i.call(r,s):i(s)):Ku(t,o+1)}function qA(t,n,e,i,s,r,o){const a=n+e;return ul(t,a,s,r)?vo(t,a+2,o?i.call(o,s,r):i(s,r)):Ku(t,a+2)}function XA(t,n,e,i,s,r,o,a){const l=n+e;return function(t,n,e,i,s){const r=ul(t,n,e,i);return Os(t,n+2,s)||r}(t,l,s,r,o)?vo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Ku(t,l+3)}function ct(t,n){const e=Pn();let i;const s=t+20;e.firstCreatePass?(i=function(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}throw new da("302",`The pipe '${t}' could not be found!`)}(n,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const r=i.factory||(i.factory=sl(i.type)),o=ua(C);try{const a=tp(!1),l=r();return tp(a),function(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,dt(),s,l),l}finally{ua(o)}}function vt(t,n,e){const i=t+20,s=dt(),r=gc(s,i);return Zu(s,Ju(s,i)?YA(s,js(),n,r.transform,e,r):r.transform(e))}function Co(t,n,e,i){const s=t+20,r=dt(),o=gc(r,s);return Zu(r,Ju(r,s)?qA(r,js(),n,o.transform,e,i,o):o.transform(e,i))}function ml(t,n,e,i,s){const r=t+20,o=dt(),a=gc(o,r);return Zu(o,Ju(o,r)?XA(o,js(),n,a.transform,e,i,s,a):a.transform(e,i,s))}function Ju(t,n){return t[1].data[n].pure}function Zu(t,n){return $r.isWrapped(n)&&(n=$r.unwrap(n),t[fo()]=cn),n}function Db(t){return n=>{setTimeout(t,void 0,n)}}const ot=class extends E{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const u=n;a=null===(s=u.next)||void 0===s?void 0:s.bind(u),l=null===(r=u.error)||void 0===r?void 0:r.bind(u),c=null===(o=u.complete)||void 0===o?void 0:o.bind(u)}this.__isAsync&&(l=Db(l),a&&(a=Db(a)),c&&(c=Db(c)));const d=super.subscribe({next:a,error:l,complete:c});return n instanceof fe&&n.add(d),d}};function oU(){return this._results[Fc()]()}class Mo{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fc(),i=Mo.prototype;i[e]||(i[e]=oU)}get changes(){return this._changes||(this._changes=new ot)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=vr(n);(this._changesDetected=!function(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i0)i.push(o[a/2]);else{const c=r[a+1],d=n[-l];for(let u=10;u{class t{constructor(e){this.appInits=e,this.resolve=Fp,this.reject=Fp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Me(sd,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const th=new pt("AppId"),jU={provide:th,useFactory:function(){return`${Fb()}${Fb()}${Fb()}`},deps:[]};function Fb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bk=new pt("Platform Initializer"),xs=new pt("Platform ID"),Lb=new pt("appBootstrapListener");let Wp=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const lr=new pt("LocaleId"),xk=new pt("DefaultCurrencyCode");class GU{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}const Bb=function(t){return new Mb(t)},$U=Bb,UU=function(t){return Promise.resolve(Bb(t))},wk=function(t){const n=Bb(t),i=_o(mr(t).declarations).reduce((s,r)=>{const o=Ts(r);return o&&s.push(new $A(o)),s},[]);return new GU(n,i)},WU=wk,YU=function(t){return Promise.resolve(wk(t))};let _l=(()=>{class t{constructor(){this.compileModuleSync=$U,this.compileModuleAsync=UU,this.compileModuleAndAllComponentsSync=WU,this.compileModuleAndAllComponentsAsync=YU}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const QU=(()=>Promise.resolve(0))();function Vb(t){"undefined"==typeof Zone?QU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class xt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ot(!1),this.onMicrotaskEmpty=new ot(!1),this.onStable=new ot(!1),this.onError=new ot(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let t=jn.requestAnimationFrame,n=jn.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function(t){const n=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,jb(t),t.isCheckStableRunning=!0,Hb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),jb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return Ck(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),Mk(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return Ck(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Mk(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,jb(t),Hb(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(xt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,JU,Fp,Fp);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const JU={};function Hb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ck(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Mk(t){t._nesting--,Hb(t)}class t7{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ot,this.onMicrotaskEmpty=new ot,this.onStable=new ot,this.onError=new ot}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let zb=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xt.assertNotInAngularZone(),Vb(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Vb(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),Dk=(()=>{class t{constructor(){this._applications=new Map,Gb.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Gb.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class n7{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Gb=new n7,Sk=!0,Ek=!1;function $b(){return Ek=!0,Sk}let Kr;const Tk=new pt("AllowMultipleToken");class Ub{constructor(n,e){this.name=n,this.token=e}}function Ak(t,n,e=[]){const i=`Platform: ${n}`,s=new pt(i);return(r=[])=>{let o=kk();if(!o||o.injector.get(Tk,!1))if(t)t(e.concat(r).concat({provide:s,useValue:!0}));else{const a=e.concat(r).concat({provide:s,useValue:!0},{provide:Ou,useValue:"platform"});!function(t){if(Kr&&!Kr.destroyed&&!Kr.injector.get(Tk,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Kr=t.get(Ok);const n=t.get(bk,null);n&&n.forEach(e=>e())}(wn.create({providers:a,name:i}))}return function(t){const n=kk();if(!n)throw new Error("No platform exists!");if(!n.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return n}(s)}}function kk(){return Kr&&!Kr.destroyed?Kr:null}let Ok=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(t,n){let e;return e="noop"===t?new t7:("zone.js"===t?void 0:t)||new xt({enableLongStackTrace:$b(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:xt,useValue:a}];return a.run(()=>{const c=wn.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(Hr,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:_=>{u.handleError(_)}});d.onDestroy(()=>{Wb(this._modules,d),f.unsubscribe()})}),function(t,n,e){try{const i=e();return Fu(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(u,a,()=>{const f=d.injector.get(rd);return f.runInitializers(),f.donePromise.then(()=>(nb(d.injector.get(lr,Op)||Op),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,i=[]){const s=Ik({},i);return function(t,n,e){const i=new Mb(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(cr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Bt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Ik(t,n){return Array.isArray(n)?n.reduce(Ik,t):Object.assign(Object.assign({},t),n)}let cr=(()=>{class t{constructor(e,i,s,r,o){this._zone=e,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new S(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new S(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{xt.assertNotInAngularZone(),Vb(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{xt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=De(a,l.pipe(Tn()))}bootstrap(e,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let s;s=e instanceof lA?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function(t){return t.isBoundToModule}(s)?void 0:this._injector.get(wo),a=s.create(wn.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(zb,null),d=c&&a.injector.get(Dk);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Wb(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Wb(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Lb,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(wn),Me(Hr),Me(is),Me(rd))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Wb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}class qp{}class _7{}const y7={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let v7=(()=>{class t{constructor(e,i){this._compiler=e,this._config=i||y7}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,s]=e.split("#");return void 0===s&&(s="default"),In(255)(i).then(r=>r[s]).then(r=>Fk(r,i,s)).then(r=>this._compiler.compileModuleAsync(r))}loadFactory(e){let[i,s]=e.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),In(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(o=>o[s+r]).then(o=>Fk(o,i,s))}}return t.\u0275fac=function(e){return new(e||t)(Me(_l),Me(_7,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Fk(t,n,e){if(!t)throw new Error(`Cannot find '${e}' in '${n}'`);return t}const A7=Ak(null,"core",[{provide:xs,useValue:"unknown"},{provide:Ok,deps:[wn]},{provide:Dk,deps:[]},{provide:Wp,deps:[]}]),R7=[{provide:cr,useClass:cr,deps:[xt,wn,Hr,is,rd]},{provide:G$,deps:[xt],useFactory:function(t){let n=[];return t.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(e){n.push(e)}}},{provide:rd,useClass:rd,deps:[[new Ki,sd]]},{provide:_l,useClass:_l,deps:[]},jU,{provide:wr,useFactory:function(){return L6},deps:[]},{provide:xa,useFactory:function(){return B6},deps:[]},{provide:lr,useFactory:function(t){return nb(t=t||"undefined"!=typeof $localize&&$localize.locale||Op),t},deps:[[new Sc(lr),new Ki,new Vr]]},{provide:xk,useValue:"USD"}];let F7=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Me(cr))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:R7}),t})(),sg=null;function Do(){return sg}const wt=new pt("DocumentToken");let bl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:NW,token:t,providedIn:"platform"}),t})();function NW(){return Me(oO)}const FW=new pt("Location Initialized");let oO=(()=>{class t extends bl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Do().getBaseHref(this._doc)}onPopState(e){const i=Do().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Do().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,s){aO()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){aO()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:LW,token:t,providedIn:"platform"}),t})();function aO(){return!!window.history.pushState}function LW(){return new oO(Me(wt))}function l0(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function lO(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Yo(t){return t&&"?"!==t[0]?"?"+t:t}let ld=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:BW,token:t,providedIn:"root"}),t})();function BW(t){const n=Me(wt).location;return new cO(Me(bl),n&&n.origin||"")}const c0=new pt("appBaseHref");let cO=(()=>{class t extends ld{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return l0(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Yo(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,r){const o=this.prepareExternalUrl(s+Yo(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){const o=this.prepareExternalUrl(s+Yo(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(bl),Me(c0,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),VW=(()=>{class t extends ld{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=l0(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,s,r){let o=this.prepareExternalUrl(s+Yo(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){let o=this.prepareExternalUrl(s+Yo(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(bl),Me(c0,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),oh=(()=>{class t{constructor(e,i){this._subject=new ot,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=lO(dO(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Yo(i))}normalize(e){return t.stripTrailingSlash(function(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,dO(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yo(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Yo(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return t.\u0275fac=function(e){return new(e||t)(Me(ld),Me(bl))},t.normalizeQueryParams=Yo,t.joinWithSlash=l0,t.stripTrailingSlash=lO,t.\u0275prov=Ze({factory:HW,token:t,providedIn:"root"}),t})();function HW(){return new oh(Me(ld),Me(bl))}function dO(t){return t.replace(/\/index.html$/,"")}var Qs=(()=>((Qs=Qs||{})[Qs.Decimal=0]="Decimal",Qs[Qs.Percent=1]="Percent",Qs[Qs.Currency=2]="Currency",Qs[Qs.Scientific=3]="Scientific",Qs))(),zi=(()=>((zi=zi||{})[zi.Zero=0]="Zero",zi[zi.One=1]="One",zi[zi.Two=2]="Two",zi[zi.Few=3]="Few",zi[zi.Many=4]="Many",zi[zi.Other=5]="Other",zi))(),qt=(()=>((qt=qt||{})[qt.Decimal=0]="Decimal",qt[qt.Group=1]="Group",qt[qt.List=2]="List",qt[qt.PercentSign=3]="PercentSign",qt[qt.PlusSign=4]="PlusSign",qt[qt.MinusSign=5]="MinusSign",qt[qt.Exponential=6]="Exponential",qt[qt.SuperscriptingExponent=7]="SuperscriptingExponent",qt[qt.PerMille=8]="PerMille",qt[qt.Infinity=9]="Infinity",qt[qt.NaN=10]="NaN",qt[qt.TimeSeparator=11]="TimeSeparator",qt[qt.CurrencyDecimal=12]="CurrencyDecimal",qt[qt.CurrencyGroup=13]="CurrencyGroup",qt))();function Dr(t,n){const e=$s(t),i=e[Pt.NumberSymbols][n];if(void 0===i){if(n===qt.CurrencyDecimal)return e[Pt.NumberSymbols][qt.Decimal];if(n===qt.CurrencyGroup)return e[Pt.NumberSymbols][qt.Group]}return i}const UW=function(t){return $s(t)[Pt.PluralCase]},c9=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function y0(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}class pg{}let v9=(()=>{class t extends pg{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(UW(i||this.locale)(e)){case zi.Zero:return"zero";case zi.One:return"one";case zi.Two:return"two";case zi.Few:return"few";case zi.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Me(lr))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function wO(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}let Ma=(()=>{class t{constructor(e,i,s,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ru(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Bt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(C(wr),C(xa),C(tt),C(ji))},t.\u0275dir=Le({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class x9{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oi=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((s,r,o)=>{if(null==s.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new x9(null,this._ngForOf,-1,-1),null===o?void 0:o),l=new CO(s,a);i.push(l)}else if(null==o)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const a=this._viewContainer.get(r);this._viewContainer.move(a,o);const l=new CO(s,a);i.push(l)}});for(let s=0;s{this._viewContainer.get(s.currentIndex).context.$implicit=s.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(wr))},t.\u0275dir=Le({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class CO{constructor(n,e){this.record=n,this.view=e}}let vn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new C9,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){MO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){MO("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on))},t.\u0275dir=Le({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class C9{constructor(){this.$implicit=null,this.ngIf=null}}function MO(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Bt(n)}'.`)}class v0{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Da=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,s){this.ngSwitch=s,s._addCase(),this._view=new v0(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(Da,9))},t.\u0275dir=Le({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),b0=(()=>{class t{constructor(e,i,s){s._addDefault(new v0(e,i))}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(on),C(Da,9))},t.\u0275dir=Le({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),xl=(()=>{class t{constructor(e,i,s){this._ngEl=e,this._differs=i,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[s,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,s,i):this._renderer.removeStyle(this._ngEl.nativeElement,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xa),C(ji))},t.\u0275dir=Le({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),os=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[rn]}),t})();function to(t,n){return Error(`InvalidPipeArgument: '${n}' for pipe '${Bt(t)}'`)}class D9{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class S9{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const E9=new S9,T9=new D9;let SO=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Fu(e))return E9;if(qE(e))return T9;throw to(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(C(Gt,16))},t.\u0275pipe=ms({name:"async",type:t,pure:!1}),t})(),TO=(()=>{class t{constructor(e){this._locale=e}transform(e,i,s){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function(t,n,e){return function(t,n,e,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let i,s,r,o,a,n=Math.abs(t)+"",e=0;for((s=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(s<0&&(s=r),s+=+n.slice(r+1),n=n.substring(0,r)):s<0&&(s=n.length),r=0;"0"===n.charAt(r);r++);if(r===(a=n.length))i=[0],s=1;else{for(a--;"0"===n.charAt(a);)a--;for(s-=r,i=[],o=0;r<=a;r++,o++)i[o]=Number(n.charAt(r))}return s>22&&(i=i.splice(0,21),e=s-1,s=1),{digits:i,exponent:e,integerLen:s}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let d=n.minInt,u=n.minFrac,f=n.maxFrac;if(r){const J=r.match(c9);if(null===J)throw new Error(`${r} is not a valid digit info`);const ue=J[1],Te=J[3],Fe=J[5];null!=ue&&(d=y0(ue)),null!=Te&&(u=y0(Te)),null!=Fe?f=y0(Fe):null!=Te&&u>f&&(f=u)}!function(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(n,s),e);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let u=o;u=5)if(o-1<0){for(let u=0;u>o;u--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s=c?T.pop():l=!1),f>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}(c,u,f);let _=c.digits,T=c.integerLen;const k=c.exponent;let $=[];for(l=_.every(J=>!J);T0?$=_.splice(T,_.length):($=_,_=[0]);const L=[];for(_.length>=n.lgSize&&L.unshift(_.splice(-n.lgSize,_.length).join(""));_.length>n.gSize;)L.unshift(_.splice(-n.gSize,_.length).join(""));_.length&&L.unshift(_.join("")),a=L.join(Dr(e,i)),$.length&&(a+=Dr(e,s)+$.join("")),k&&(a+=Dr(e,qt.Exponential)+"+"+k)}else a=Dr(e,qt.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";e.posPre=a.substr(0,a.indexOf("#"));for(let d=0;d{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[{provide:pg,useClass:v9}]}),t})();const kO="browser";function Sa(t){return t===kO}function dd(t){return"server"===t}let OO=(()=>{class t{}return t.\u0275prov=Ze({token:t,providedIn:"root",factory:()=>new U9(Me(wt),window)}),t})();class U9{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=i.currentNode;for(;s;){const r=s.shadowRoot;if(r){const o=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(o)return o}s=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],s-r[1])}attemptFocus(n){return n.focus(),this.document.activeElement===n}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=IO(this.window.history)||IO(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function IO(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class PO{}class C0 extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){sg||(sg=t)}(new C0)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=(ch=ch||document.querySelector("base"),ch?ch.getAttribute("href"):null);return null==e?null:function(t){gg=gg||document.createElement("a"),gg.setAttribute("href",t);const n=gg.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){ch=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wO(document.cookie,n)}}let gg,ch=null;const RO=new pt("TRANSITION_ID"),K9=[{provide:sd,useFactory:function(t,n,e){return()=>{e.get(rd).donePromise.then(()=>{const i=Do(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},jn.getAllAngularTestabilities=()=>n.getAllTestabilities(),jn.getAllAngularRootElements=()=>n.getAllRootElements(),jn.frameworkStabilizers||(jn.frameworkStabilizers=[]),jn.frameworkStabilizers.push(i=>{const s=jn.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?Do().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let J9=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const dh=new pt("EventManagerPlugins");let _g=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t extends FO{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(LO),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LO))}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function LO(t){Do().remove(t)}const S0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},E0=/%COMP%/g;function yg(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let vg=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new T0(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Vi.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new fY(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case Vi.ShadowDom:return new pY(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=yg(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Me(_g),Me(uh),Me(th))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class T0{constructor(n){this.eventManager=n,this.data=Object.create(null)}destroy(){}createElement(n,e){return e?document.createElementNS(S0[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=S0[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=S0[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(rr.DashCase|rr.Important)?n.style.setProperty(e,i,s&rr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&rr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,HO(i)):this.eventManager.addEventListener(n,e,HO(i))}}class fY extends T0{constructor(n,e,i,s){super(n),this.component=i;const r=yg(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(E0,t)}(s+"-"+i.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(E0,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class pY extends T0{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=yg(s.id,s.styles,[]);for(let o=0;o{class t extends D0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const GO=["alt","control","meta","shift"],wY={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$O={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},CY={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let MY=(()=>{class t extends D0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Do().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(GO.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&$O.hasOwnProperty(n)&&(n=$O[n]))}return wY[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),GO.forEach(r=>{r!=s&&CY[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),wl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return Me(k0)},token:t,providedIn:"root"}),t})(),k0=(()=>{class t extends wl{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ln.NONE:return i;case Ln.HTML:return go(i,"HTML")?or(i):hS(this._doc,String(i)).toString();case Ln.STYLE:return go(i,"Style")?or(i):i;case Ln.SCRIPT:if(go(i,"Script"))return or(i);throw new Error("unsafe value used in a script context");case Ln.URL:return sS(i),go(i,"URL")?or(i):Su(String(i));case Ln.RESOURCE_URL:if(go(i,"ResourceURL"))return or(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function(t){return new Zj(t)}(e)}bypassSecurityTrustStyle(e){return function(t){return new e8(t)}(e)}bypassSecurityTrustScript(e){return function(t){return new t8(t)}(e)}bypassSecurityTrustUrl(e){return function(t){return new n8(t)}(e)}bypassSecurityTrustResourceUrl(e){return function(t){return new i8(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return function(t){return new k0(t.get(wt))}(Me(ba))},token:t,providedIn:"root"}),t})();const kY=[{provide:xs,useValue:kO},{provide:bk,useValue:function(){C0.makeCurrent(),M0.init()},multi:!0},{provide:wt,useFactory:function(){return function(t){Ey=t}(document),document},deps:[]}],IY=Ak(A7,"browser",kY),PY=[[],{provide:Ou,useValue:"root"},{provide:Hr,useFactory:function(){return new Hr},deps:[]},{provide:dh,useClass:gY,multi:!0,deps:[wt,xt,xs]},{provide:dh,useClass:MY,multi:!0,deps:[wt]},[],{provide:vg,useClass:vg,deps:[_g,uh,th]},{provide:$o,useExisting:vg},{provide:FO,useExisting:uh},{provide:uh,useClass:uh,deps:[wt]},{provide:zb,useClass:zb,deps:[xt]},{provide:_g,useClass:_g,deps:[dh,xt]},{provide:PO,useClass:J9,deps:[]},[]];let O0=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:th,useValue:e.appId},{provide:RO,useExisting:th},K9]}}}return t.\u0275fac=function(e){return new(e||t)(Me(t,12))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:PY,imports:[ei,F7]}),t})();function NY(){return new UO(Me(wt))}let UO=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:NY,token:t,providedIn:"root"}),t})();function Et(...t){let n=t[t.length-1];return R(n)?(t.pop(),q(t,n)):pe(t)}"undefined"!=typeof window&&window;class ti extends E{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new G;return this._value}next(n){super.next(this._value=n)}}class P0 extends se{notifyNext(n,e,i,s,r){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class jY extends se{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function R0(t,n,e,i,s=new jY(t,e,i)){if(!s.closed)return n instanceof S?n.subscribe(s):m(n)(s)}const YO={};function So(...t){let n,e;return R(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&le(t[0])&&(t=t[0]),pe(t,e).lift(new zY(n))}class zY{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new GY(n,this.resultSelector))}}class GY extends P0{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(YO),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function ud(...t){return Ee(1)(Et(...t))}const Eo=new S(t=>t.complete());function xg(t){return t?function(t){return new S(n=>t.schedule(()=>n.complete()))}(t):Eo}function N0(t){return new S(n=>{let e;try{e=t()}catch(s){return void n.error(s)}return(e?K(e):xg()).subscribe(n)})}function as(t,n){return"function"==typeof n?e=>e.pipe(as((i,s)=>K(t(i,s)).pipe(g((r,o)=>n(i,r,s,o))))):e=>e.lift(new WY(t))}class WY{constructor(n){this.project=n}call(n,e){return e.subscribe(new YY(n,this.project))}}class YY extends _e{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ne(this),s=this.destination;s.add(i),this.innerSubscription=Se(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const qO=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Bn(t){return n=>0===t?xg():n.lift(new qY(t))}class qY{constructor(n){if(this.total=n,this.total<0)throw new qO}call(n,e){return e.subscribe(new XY(n,this.total))}}class XY extends se{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function ai(...t){const n=t[t.length-1];return R(n)?(t.pop(),e=>ud(t,e,n)):e=>ud(t,e)}function hh(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new QY(t,n,e))}}class QY{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new KY(n,this.accumulator,this.seed,this.hasSeed))}}class KY extends se{constructor(n,e,i,s){super(n),this.accumulator=e,this._seed=i,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)}}function mn(t,n){return function(i){return i.lift(new JY(t,n))}}class JY{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new ZY(n,this.predicate,this.thisArg))}}class ZY extends se{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}function $i(t){return function(e){const i=new eq(t),s=e.lift(i);return i.caught=s}}class eq{constructor(n){this.selector=n}call(n,e){return e.subscribe(new tq(n,this.selector,this.caught))}}class tq extends _e{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(r){return void super.error(r)}this._unsubscribeAndRecycle();const i=new ne(this);this.add(i);const s=Se(e,i);s!==i&&this.add(s)}}}function Xo(t,n){return Re(t,n,1)}function fh(t){return function(e){return 0===t?xg():e.lift(new nq(t))}}class nq{constructor(n){if(this.total=n,this.total<0)throw new qO}call(n,e){return e.subscribe(new iq(n,this.total))}}class iq extends se{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,s=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;rn.lift(new sq(t))}class sq{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new rq(n,this.errorFactory))}}class rq extends se{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function oq(){return new bg}function F0(t=null){return n=>n.lift(new aq(t))}class aq{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new lq(n,this.defaultValue))}}class lq extends se{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function hd(t,n){const e=arguments.length>=2;return i=>i.pipe(t?mn((s,r)=>t(s,r,i)):x,Bn(1),e?F0(n):XO(()=>new bg))}function Qo(){}function fi(t,n,e){return function(s){return s.lift(new dq(t,n,e))}}class dq{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new uq(n,this.nextOrObserver,this.error,this.complete))}}class uq extends se{constructor(n,e,i,s){super(n),this._tapNext=Qo,this._tapError=Qo,this._tapComplete=Qo,this._tapError=i||Qo,this._tapComplete=s||Qo,Di(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Qo,this._tapError=e.error||Qo,this._tapComplete=e.complete||Qo)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function QO(t){return n=>n.lift(new hq(t))}class hq{constructor(n){this.callback=n}call(n,e){return e.subscribe(new fq(n,this.callback))}}class fq extends se{constructor(n,e){super(n),this.add(new fe(e))}}class Ko{constructor(n,e){this.id=n,this.url=e}}class L0 extends Ko{constructor(n,e,i="imperative",s=null){super(n,e),this.navigationTrigger=i,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Cl extends Ko{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class KO extends Ko{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class pq extends Ko{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _q extends Ko{constructor(n,e,i,s,r){super(n,e),this.urlAfterRedirects=i,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vq extends Ko{constructor(n,e,i,s){super(n,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JO{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ZO{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bq{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xq{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wq{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cq{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eI{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Dn="primary";class Mq{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function fd(t){return new Mq(t)}const tI="ngNavigationCancelingError";function B0(t){const n=Error("NavigationCancelingError: "+t);return n[tI]=!0,n}function Sq(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===s)}return t===n}function iI(t){return Array.prototype.concat.apply([],t)}function sI(t){return t.length>0?t[t.length-1]:null}function ws(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Ao(t){return Tp(t)?t:Fu(t)?K(Promise.resolve(t)):Et(t)}const Aq={exact:function aI(t,n,e){if(!Dl(t.segments,n.segments)||!wg(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!aI(t.children[i],n.children[i],e))return!1;return!0},subset:lI},rI={exact:function(t,n){return To(t,n)},subset:function(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>nI(t[e],n[e]))},ignored:()=>!0};function oI(t,n,e){return Aq[e.paths](t.root,n.root,e.matrixParams)&&rI[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function lI(t,n,e){return cI(t,n,n.segments,e)}function cI(t,n,e,i){if(t.segments.length>e.length){const s=t.segments.slice(0,e.length);return!(!Dl(s,e)||n.hasChildren()||!wg(s,e,i))}if(t.segments.length===e.length){if(!Dl(t.segments,e)||!wg(t.segments,e,i))return!1;for(const s in n.children)if(!t.children[s]||!lI(t.children[s],n.children[s],i))return!1;return!0}{const s=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Dl(t.segments,s)&&wg(t.segments,s,i)&&t.children[Dn])&&cI(t.children[Dn],n,r,i)}}function wg(t,n,e){return n.every((i,s)=>rI[e](t[s].parameters,i.parameters))}class Ml{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fd(this.queryParams)),this._queryParamMap}toString(){return Rq.serialize(this)}}class kn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,ws(e,(i,s)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cg(this)}}class ph{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=fd(this.parameters)),this._parameterMap}toString(){return fI(this)}}function Dl(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class V0{}class dI{parse(n){const e=new Gq(n);return new Ml(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${gh(n.root,!0)}`,i=function(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(s=>`${Mg(e)}=${Mg(s)}`).join("&"):`${Mg(e)}=${Mg(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),s="string"==typeof n.fragment?`#${function(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${s}`}}const Rq=new dI;function Cg(t){return t.segments.map(n=>fI(n)).join("/")}function gh(t,n){if(!t.hasChildren())return Cg(t);if(n){const e=t.children[Dn]?gh(t.children[Dn],!1):"",i=[];return ws(t.children,(s,r)=>{r!==Dn&&i.push(`${r}:${gh(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,n){let e=[];return ws(t.children,(i,s)=>{s===Dn&&(e=e.concat(n(i,s)))}),ws(t.children,(i,s)=>{s!==Dn&&(e=e.concat(n(i,s)))}),e}(t,(i,s)=>s===Dn?[gh(t.children[Dn],!1)]:[`${s}:${gh(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Dn]?`${Cg(t)}/${e[0]}`:`${Cg(t)}/(${e.join("//")})`}}function uI(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mg(t){return uI(t).replace(/%3B/gi,";")}function H0(t){return uI(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dg(t){return decodeURIComponent(t)}function hI(t){return Dg(t.replace(/\+/g,"%20"))}function fI(t){return`${H0(t.path)}${function(t){return Object.keys(t).map(n=>`;${H0(n)}=${H0(t[n])}`).join("")}(t.parameters)}`}const Bq=/^[^\/()?;=#]+/;function Sg(t){const n=t.match(Bq);return n?n[0]:""}const Vq=/^[^=?&#]+/,jq=/^[^?&#]+/;class Gq{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kn([],{}):new kn([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Dn]=new kn(n,e)),i}parseSegment(){const n=Sg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new ph(Dg(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Sg(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=Sg(this.remaining);s&&(i=s,this.capture(i))}n[Dg(e)]=Dg(i)}parseQueryParam(n){const e=function(t){const n=t.match(Vq);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function(t){const n=t.match(jq);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const s=hI(e),r=hI(i);if(n.hasOwnProperty(s)){let o=n[s];Array.isArray(o)||(o=[o],n[s]=o),o.push(r)}else n[s]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Sg(this.remaining),s=this.remaining[i.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Dn);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[Dn]:new kn([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class pI{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=j0(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=j0(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=z0(n,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==n)}pathFromRoot(n){return z0(n,this._root).map(e=>e.value)}}function j0(t,n){if(t===n.value)return n;for(const e of n.children){const i=j0(t,e);if(i)return i}return null}function z0(t,n){if(t===n.value)return[n];for(const e of n.children){const i=z0(t,e);if(i.length)return i.unshift(n),i}return[]}class Jo{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function mh(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class gI extends pI{constructor(n,e){super(n),this.snapshot=e,G0(this,n)}toString(){return this.snapshot.toString()}}function mI(t,n){const e=function(t,n){const o=new Eg([],{},{},"",{},Dn,n,null,t.root,-1,{});return new yI("",new Jo(o,[]))}(t,n),i=new ti([new ph("",{})]),s=new ti({}),r=new ti({}),o=new ti({}),a=new ti(""),l=new Ta(i,s,o,a,r,Dn,n,e.root);return l.snapshot=e.root,new gI(new Jo(l,[]),e)}class Ta{constructor(n,e,i,s,r,o,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=s,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(g(n=>fd(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(g(n=>fd(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _I(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const s=e[i],r=e[i-1];if(s.routeConfig&&""===s.routeConfig.path)i--;else{if(r.component)break;i--}}return function(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Eg{constructor(n,e,i,s,r,o,a,l,c,d,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=s,this.data=r,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=fd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yI extends pI{constructor(n,e){super(e),this.url=n,G0(this,e)}toString(){return vI(this._root)}}function G0(t,n){n.value._routerState=t,n.children.forEach(e=>G0(t,e))}function vI(t){const n=t.children.length>0?` { ${t.children.map(vI).join(", ")} } `:"";return`${t.value}${n}`}function $0(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,To(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),To(n.params,e.params)||t.params.next(e.params),function(t,n){if(t.length!==n.length)return!1;for(let e=0;eTo(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||U0(t.parent,n.parent))}function Tg(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const s=function(t,n,e){return n.children.map(i=>{for(const s of e.children)if(t.shouldReuseRoute(i.value,s.value.snapshot))return Tg(t,i,s);return Tg(t,i)})}(t,n,e);return new Jo(i,s)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const o=r.route;return bI(n,o),o}}const i=function(t){return new Ta(new ti(t.url),new ti(t.params),new ti(t.queryParams),new ti(t.fragment),new ti(t.data),t.outlet,t.component,t)}(n.value),s=n.children.map(r=>Tg(t,r));return new Jo(i,s)}}function bI(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let e=0;e{r[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Ml(e.root===t?n:xI(e.root,t,n),r,s)}function xI(t,n,e){const i={};return ws(t.children,(s,r)=>{i[r]=s===n?e:xI(s,n,e)}),new kn(t.segments,i)}class wI{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Ag(i[0]))throw new Error("Root segment cannot have matrix parameters");const s=i.find(_h);if(s&&s!==sI(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Y0{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function CI(t,n,e){if(t||(t=new kn([],{})),0===t.segments.length&&t.hasChildren())return kg(t,n,e);const i=function(t,n,e){let i=0,s=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return r;const o=t.segments[s],a=e[i];if(_h(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!DI(l,c,o))return r;i+=2}else{if(!DI(l,{},o))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,n,e),s=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(s[o]=CI(t.children[o],n,r))}),ws(t.children,(r,o)=>{void 0===i[o]&&(s[o]=r)}),new kn(t.segments,s)}}function q0(t,n,e){const i=t.segments.slice(0,n);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=q0(new kn([],{}),0,e))}),n}function MI(t){const n={};return ws(t,(e,i)=>n[i]=`${e}`),n}function DI(t,n,e){return t==e.path&&To(n,e.parameters)}class iX{constructor(n,e,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=s}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),$0(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const s=mh(e);n.children.forEach(r=>{const o=r.value.outlet;this.deactivateRoutes(r,s[o],i),delete s[o]}),ws(s,(r,o)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const s=n.value,r=e?e.value:null;if(s===r)if(s.component){const o=i.getContext(s.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet);if(i&&i.outlet){const s=i.outlet.detach(),r=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:r})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),s=i&&n.value.component?i.children:e,r=mh(n);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],s);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const s=mh(e);n.children.forEach(r=>{this.activateRoutes(r,s[r.value.outlet],i),this.forwardEvent(new Cq(r.value.snapshot))}),n.children.length&&this.forwardEvent(new xq(n.value.snapshot))}activateRoutes(n,e,i){const s=n.value,r=e?e.value:null;if($0(s),s===r)if(s.component){const o=i.getOrCreateContext(s.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,i);else if(s.component){const o=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const a=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),SI(a.route)}else{const a=function(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=l,o.outlet&&o.outlet.activateWith(s,l),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}function SI(t){$0(t.value),t.children.forEach(SI)}class X0{constructor(n,e){this.routes=n,this.module=e}}function Aa(t){return"function"==typeof t}function Sl(t){return t instanceof Ml}const yh=Symbol("INITIAL_VALUE");function vh(){return as(t=>So(t.map(n=>n.pipe(Bn(1),ai(yh)))).pipe(hh((n,e)=>{let i=!1;return e.reduce((s,r,o)=>s!==yh?s:(r===yh&&(i=!0),i||!1!==r&&o!==e.length-1&&!Sl(r)?s:r),n)},yh),mn(n=>n!==yh),g(n=>Sl(n)?n:!0===n),Bn(1)))}let EI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&je(0,"router-outlet")},directives:function(){return[n1]},encapsulation:2}),t})();function TI(t,n=""){for(let e=0;eEr(i)===n);return e.push(...t.filter(i=>Er(i)!==n)),e}const kI={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Og(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},kI):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Sq)(e,t,n);if(!r)return Object.assign({},kI);const o={};ws(r.posParams,(l,c)=>{o[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ig(t,n,e,i,s="corrected"){if(e.length>0&&function(t,n,e){return e.some(i=>Pg(t,n,i)&&Er(i)!==Dn)}(t,e,i)){const o=new kn(n,function(t,n,e,i){const s={};s[Dn]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Er(r)!==Dn){const o=new kn([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,s[Er(r)]=o}return s}(t,n,i,new kn(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function(t,n,e){return e.some(i=>Pg(t,n,i))}(t,e,i)){const o=new kn(t.segments,function(t,n,e,i,s,r){const o={};for(const a of i)if(Pg(t,e,a)&&!s[Er(a)]){const l=new kn([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,o[Er(a)]=l}return Object.assign(Object.assign({},s),o)}(t,n,e,i,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new kn(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function Pg(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function OI(t,n,e,i){return!!(Er(t)===i||i!==Dn&&Pg(n,e,t))&&("**"===t.path||Og(n,t,e).matched)}function II(t,n,e){return 0===n.length&&!t.children[e]}class bh{constructor(n){this.segmentGroup=n||null}}class PI{constructor(n){this.urlTree=n}}function Rg(t){return new S(n=>n.error(new bh(t)))}function RI(t){return new S(n=>n.error(new PI(t)))}function mX(t){return new S(n=>n.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class vX{constructor(n,e,i,s,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(wo)}apply(){const n=Ig(this.urlTree.root,[],[],this.config).segmentGroup,e=new kn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Dn).pipe(g(r=>this.createUrlTree(K0(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe($i(r=>{if(r instanceof PI)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof bh?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,Dn).pipe(g(s=>this.createUrlTree(K0(s),n.queryParams,n.fragment))).pipe($i(s=>{throw s instanceof bh?this.noMatchError(s):s}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const s=n.segments.length>0?new kn([],{[Dn]:n}):n;return new Ml(s,e,i)}expandSegmentGroup(n,e,i,s){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(g(r=>new kn([],r))):this.expandSegment(n,i,e,i.segments,s,!0)}expandChildren(n,e,i){const s=[];for(const r of Object.keys(i.children))"primary"===r?s.unshift(r):s.push(r);return K(s).pipe(Xo(r=>{const o=i.children[r],a=AI(e,r);return this.expandSegmentGroup(n,a,o,r).pipe(g(l=>({segment:l,outlet:r})))}),hh((r,o)=>(r[o.outlet]=o.segment,r),{}),function(t,n){const e=arguments.length>=2;return i=>i.pipe(t?mn((s,r)=>t(s,r,i)):x,fh(1),e?F0(n):XO(()=>new bg))}())}expandSegment(n,e,i,s,r,o){return K(i).pipe(Xo(a=>this.expandSegmentAgainstRoute(n,e,i,a,s,r,o).pipe($i(c=>{if(c instanceof bh)return Et(null);throw c}))),hd(a=>!!a),$i((a,l)=>{if(a instanceof bg||"EmptyError"===a.name){if(II(e,s,r))return Et(new kn([],{}));throw new bh(e)}throw a}))}expandSegmentAgainstRoute(n,e,i,s,r,o,a){return OI(s,e,r,o)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(n,e,s,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o):Rg(e):Rg(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,s){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?RI(r):this.lineralizeSegments(i,r).pipe(Re(o=>{const a=new kn(o,{});return this.expandSegment(n,a,e,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,s,r,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=Og(e,s,r);if(!a)return Rg(e);const u=this.applyRedirectCommands(l,s.redirectTo,d);return s.redirectTo.startsWith("/")?RI(u):this.lineralizeSegments(s,u).pipe(Re(f=>this.expandSegment(n,e,i,f.concat(r.slice(c)),o,!1)))}matchSegmentAgainstRoute(n,e,i,s,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Et(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(g(f=>(i._loadedConfig=f,new kn(s,{})))):Et(new kn(s,{}));const{matched:o,consumedSegments:a,lastChild:l}=Og(e,i,s);if(!o)return Rg(e);const c=s.slice(l);return this.getChildConfig(n,i,s).pipe(Re(u=>{const f=u.module,_=u.routes,{segmentGroup:T,slicedSegments:k}=Ig(e,a,c,_),$=new kn(T.segments,T.children);if(0===k.length&&$.hasChildren())return this.expandChildren(f,_,$).pipe(g(Te=>new kn(a,Te)));if(0===_.length&&0===k.length)return Et(new kn(a,{}));const L=Er(i)===r;return this.expandSegment(f,$,_,k,L?Dn:r,!0).pipe(g(ue=>new kn(a.concat(ue.segments),ue.children)))}))}getChildConfig(n,e,i){return e.children?Et(new X0(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?Et(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(Re(s=>s?this.configLoader.load(n.injector,e).pipe(g(r=>(e._loadedConfig=r,r))):function(t){return new S(n=>n.error(B0(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Et(new X0([],n))}runCanLoadGuards(n,e,i){const s=e.canLoad;if(!s||0===s.length)return Et(!0);const r=s.map(o=>{const a=n.get(o);let l;if(function(t){return t&&Aa(t.canLoad)}(a))l=a.canLoad(e,i);else{if(!Aa(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ao(l)});return Et(r).pipe(vh(),fi(o=>{if(!Sl(o))return;const a=B0(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),g(o=>!0===o))}lineralizeSegments(n,e){let i=[],s=e.root;for(;;){if(i=i.concat(s.segments),0===s.numberOfChildren)return Et(i);if(s.numberOfChildren>1||!s.children[Dn])return mX(n.redirectTo);s=s.children[Dn]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,s){const r=this.createSegmentGroup(n,e.root,i,s);return new Ml(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return ws(n,(s,r)=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);i[r]=e[a]}else i[r]=s}),i}createSegmentGroup(n,e,i,s){const r=this.createSegments(n,e.segments,i,s);let o={};return ws(e.children,(a,l)=>{o[l]=this.createSegmentGroup(n,a,i,s)}),new kn(r,o)}createSegments(n,e,i,s){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,s):this.findOrReturn(r,i))}findPosParam(n,e,i){const s=i[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return s}findOrReturn(n,e){let i=0;for(const s of e){if(s.path===n.path)return e.splice(i),s;i++}return n}}function K0(t){const n={};for(const i of Object.keys(t.children)){const r=K0(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function(t){if(1===t.numberOfChildren&&t.children[Dn]){const n=t.children[Dn];return new kn(t.segments.concat(n.segments),n.children)}return t}(new kn(t.segments,n))}class NI{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ng{constructor(n,e){this.component=n,this.route=e}}function wX(t,n,e){const i=t._root;return xh(i,n?n._root:null,e,[i.value])}function Fg(t,n,e){const i=function(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function xh(t,n,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=mh(n);return t.children.forEach(o=>{(function(t,n,e,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Dl(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Dl(t.url,n.url)||!To(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!U0(t,n)||!To(t.queryParams,n.queryParams);default:return!U0(t,n)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new NI(i)):(r.data=o.data,r._resolvedData=o._resolvedData),xh(t,n,r.component?a?a.children:null:e,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ng(a.outlet.component,o))}else o&&wh(n,a,s),s.canActivateChecks.push(new NI(i)),xh(t,null,r.component?a?a.children:null:e,i,s)})(o,r[o.value.outlet],e,i.concat([o.value]),s),delete r[o.value.outlet]}),ws(r,(o,a)=>wh(o,e.getContext(a),s)),s}function wh(t,n,e){const i=mh(t),s=t.value;ws(i,(r,o)=>{wh(r,s.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Ng(s.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,s))}class NX{}function FI(t){return new S(n=>n.error(t))}class LX{constructor(n,e,i,s,r,o){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const n=Ig(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,Dn);if(null===e)return null;const i=new Eg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Dn,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Jo(i,e),r=new yI(this.url,s);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=_I(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const o=e.children[r],a=AI(n,r),l=this.processSegmentGroup(a,o,r);if(null===l)return null;i.push(...l)}const s=LI(i);return function(t){t.sort((n,e)=>n.value.outlet===Dn?-1:e.value.outlet===Dn?1:n.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(n,e,i,s){for(const r of n){const o=this.processSegmentAgainstRoute(r,e,i,s);if(null!==o)return o}return II(e,i,s)?[]:null}processSegmentAgainstRoute(n,e,i,s){if(n.redirectTo||!OI(n,e,i,s))return null;let r,o=[],a=[];if("**"===n.path){const _=i.length>0?sI(i).parameters:{};r=new Eg(i,_,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,HI(n),Er(n),n.component,n,BI(e),VI(e)+i.length,jI(n))}else{const _=Og(e,n,i);if(!_.matched)return null;o=_.consumedSegments,a=i.slice(_.lastChild),r=new Eg(o,_.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,HI(n),Er(n),n.component,n,BI(e),VI(e)+o.length,jI(n))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:c,slicedSegments:d}=Ig(e,o,a,l.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const _=this.processChildren(l,c);return null===_?null:[new Jo(r,_)]}if(0===l.length&&0===d.length)return[new Jo(r,[])];const u=Er(n)===s,f=this.processSegment(l,c,d,u?Dn:s);return null===f?null:[new Jo(r,f)]}}function HX(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function LI(t){const n=[],e=new Set;for(const i of t){if(!HX(i)){n.push(i);continue}const s=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==s?(s.children.push(...i.children),e.add(s)):n.push(i)}for(const i of e){const s=LI(i.children);n.push(new Jo(i.value,s))}return n.filter(i=>!e.has(i))}function BI(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function VI(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function HI(t){return t.data||{}}function jI(t){return t.resolve||{}}function J0(t){return as(n=>{const e=t(n);return e?K(e).pipe(g(()=>n)):Et(n)})}class qX extends class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Z0=new pt("ROUTES");class zI{constructor(n,e,i,s){this.loader=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=s}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe(g(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=r.create(n);return new X0(iI(o.injector.get(Z0,void 0,Wt.Self|Wt.Optional)).map(Q0),o)}),$i(r=>{throw e._loader$=void 0,r}));return e._loader$=new yt(s,()=>new E).pipe(Ge()),e._loader$}loadModuleFactory(n){return"string"==typeof n?K(this.loader.load(n)):Ao(n()).pipe(Re(e=>e instanceof vA?Et(e):K(this.compiler.compileModuleAsync(e))))}}class XX{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pd,this.attachRef=null}}class pd{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new XX,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}class KX{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function JX(t){throw t}function ZX(t,n,e){return n.parse("/")}function GI(t,n){return Et(null)}const eQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ls=(()=>{class t{constructor(e,i,s,r,o,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=s,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=JX,this.malformedUriErrorHandler=ZX,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:GI,afterPreactivation:GI},this.urlHandlingStrategy=new KX,this.routeReuseStrategy=new qX,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(wo),this.console=o.get(Wp);const f=o.get(xt);this.isNgZoneEnabled=f instanceof xt&&xt.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ml(new kn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zI(a,l,_=>this.triggerEvent(new JO(_)),_=>this.triggerEvent(new ZO(_))),this.routerState=mI(this.currentUrlTree,this.rootComponentType),this.transitions=new ti({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(mn(s=>0!==s.id),g(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),as(s=>{let r=!1,o=!1;return Et(s).pipe(fi(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),as(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Lg(a.source)&&(this.browserUrlTree=a.extractedUrl),Et(a).pipe(as(u=>{const f=this.transitions.getValue();return i.next(new L0(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Eo:Promise.resolve(u)}),function(t,n,e,i){return as(s=>function(t,n,e,i,s){return new vX(t,n,e,i,s).apply()}(t,n,e,s.extractedUrl,i).pipe(g(r=>Object.assign(Object.assign({},s),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),fi(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function(t,n,e,i,s){return Re(r=>function(t,n,e,i,s="emptyOnly",r="legacy"){try{const o=new LX(t,n,e,i,s,r).recognize();return null===o?FI(new NX):Et(o)}catch(o){return FI(o)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,s).pipe(g(o=>Object.assign(Object.assign({},r),{targetSnapshot:o}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),fi(u=>{"eager"===this.urlUpdateStrategy&&(u.extras.skipLocationChange||this.setBrowserUrl(u.urlAfterRedirects,u),this.browserUrlTree=u.urlAfterRedirects);const f=new gq(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:_,source:T,restoredState:k,extras:$}=a,L=new L0(f,this.serializeUrl(_),T,k);i.next(L);const J=mI(_,this.rootComponentType).snapshot;return Et(Object.assign(Object.assign({},a),{targetSnapshot:J,urlAfterRedirects:_,extras:Object.assign(Object.assign({},$),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Eo}),J0(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:_}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!_})}),fi(a=>{const l=new mq(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),g(a=>Object.assign(Object.assign({},a),{guards:wX(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,n){return Re(e=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=e;return 0===o.length&&0===r.length?Et(Object.assign(Object.assign({},e),{guardsResult:!0})):function(t,n,e,i){return K(t).pipe(Re(s=>function(t,n,e,i,s){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?Et(r.map(a=>{const l=Fg(a,n,s);let c;if(function(t){return t&&Aa(t.canDeactivate)}(l))c=Ao(l.canDeactivate(t,n,e,i));else{if(!Aa(l))throw new Error("Invalid CanDeactivate guard");c=Ao(l(t,n,e,i))}return c.pipe(hd())})).pipe(vh()):Et(!0)}(s.component,s.route,e,n,i)),hd(s=>!0!==s,!0))}(o,i,s,t).pipe(Re(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,n,e,i){return K(n).pipe(Xo(s=>ud(function(t,n){return null!==t&&n&&n(new bq(t)),Et(!0)}(s.route.parent,i),function(t,n){return null!==t&&n&&n(new wq(t)),Et(!0)}(s.route,i),function(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>function(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>N0(()=>Et(o.guards.map(l=>{const c=Fg(l,o.node,e);let d;if(function(t){return t&&Aa(t.canActivateChild)}(c))d=Ao(c.canActivateChild(i,t));else{if(!Aa(c))throw new Error("Invalid CanActivateChild guard");d=Ao(c(i,t))}return d.pipe(hd())})).pipe(vh())));return Et(r).pipe(vh())}(t,s.path,e),function(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Et(!0);const s=i.map(r=>N0(()=>{const o=Fg(r,n,e);let a;if(function(t){return t&&Aa(t.canActivate)}(o))a=Ao(o.canActivate(n,t));else{if(!Aa(o))throw new Error("Invalid CanActivate guard");a=Ao(o(n,t))}return a.pipe(hd())}));return Et(s).pipe(vh())}(t,s.route,e))),hd(s=>!0!==s,!0))}(i,r,t,n):Et(a)),g(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),fi(a=>{if(Sl(a.guardsResult)){const c=B0(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new _q(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),mn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),J0(a=>{if(a.guards.canActivateChecks.length)return Et(a).pipe(fi(l=>{const c=new yq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),as(l=>{let c=!1;return Et(l).pipe(function(t,n){return Re(e=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=e;if(!s.length)return Et(e);let r=0;return K(s).pipe(Xo(o=>function(t,n,e,i){return function(t,n,e,i){const s=Object.keys(t);if(0===s.length)return Et({});const r={};return K(s).pipe(Re(o=>function(t,n,e,i){const s=Fg(t,n,i);return Ao(s.resolve?s.resolve(n,e):s(n,e))}(t[o],n,e,i).pipe(fi(a=>{r[o]=a}))),fh(1),Re(()=>Object.keys(r).length===s.length?Et(r):Eo))}(t._resolve,t,n,i).pipe(g(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),_I(t,e).resolve),null)))}(o.route,i,t,n)),fi(()=>r++),fh(1),Re(o=>r===s.length?Et(e):Eo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),fi({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),fi(l=>{const c=new vq(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),J0(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:_}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!_})}),g(a=>{const l=function(t,n,e){const i=Tg(t,n._root,e?e._root:void 0);return new gI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),fi(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>g(i=>(new iX(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),fi({next(){r=!0},complete(){r=!0}}),QO(()=>{var a;if(!r&&!o){const l=`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(s),this.cancelNavigationTransition(s,l)):this.cancelNavigationTransition(s,l)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===s.id&&(this.currentNavigation=null)}),$i(a=>{if(o=!0,function(t){return t&&t[tI]}(a)){const l=Sl(a.url);l||(this.navigated=!0,this.restoreHistory(s,!0));const c=new KO(s.id,this.serializeUrl(s.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lg(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const l=new pq(s.id,this.serializeUrl(s.extractedUrl),a);i.next(l);try{s.resolve(this.errorHandler(a))}catch(c){s.reject(c)}}return Eo}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:s,state:r,urlTree:o}=i,a={replaceUrl:!0};if(r){const l=Object.assign({},r);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(o,s,r,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const s=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!s||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){TI(e),this.config=e.map(Q0),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:s,queryParams:r,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=s||this.routerState.root,d=l?this.currentUrlTree.fragment:o;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,n,e,i,s){if(0===e.length)return W0(n.root,n.root,n,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new wI(!0,0,t);let n=0,e=!1;const i=t.reduce((s,r,o)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return ws(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...s,{outlets:a}]}if(r.segmentPath)return[...s,r.segmentPath]}return"string"!=typeof r?[...s,r]:0===o?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&s.push(a))}),s):[...s,r]},[]);return new wI(e,n,i)}(e);if(r.toRoot())return W0(n.root,new kn([],{}),n,i,s);const o=function(t,n,e){if(t.isAbsolute)return new Y0(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new Y0(r,r===n.root,0)}const i=Ag(t.commands[0])?0:1;return function(t,n,e){let i=t,s=n,r=e;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Y0(i,!1,s-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),a=o.processChildren?kg(o.segmentGroup,o.index,r.commands):CI(o.segmentGroup,o.index,r.commands);return W0(o.segmentGroup,a,n,i,s)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,i={skipLocationChange:!1}){const s=Sl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(t){for(let n=0;n{const r=e[s];return null!=r&&(i[s]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Cl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,s,r,o){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),d=Lg(i)&&c&&!Lg(c.source),_=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(d&&_)return Promise.resolve(!0);let T,k,$;o?(T=o.resolve,k=o.reject,$=o.promise):$=new Promise((ue,Te)=>{T=ue,k=Te});const L=++this.navigationId;let J;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),J=s&&s.\u0275routerPageId?s.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):J=0,this.setTransition({id:L,targetPageId:J,source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:T,reject:k,promise:$,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),$.catch(ue=>Promise.reject(ue))}setBrowserUrl(e,i){const s=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl?this.location.replaceState(s,"",r):this.location.go(s,"",r)}restoreHistory(e,i=!1){var s,r;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===o?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const s=new KO(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)(Me(rp),Me(V0),Me(pd),Me(oh),Me(wn),Me(qp),Me(_l),Me(void 0))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Lg(t){return"imperative"!==t}let e1=(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.route=i,this.commands=[],this.onChanges=new E,null==s&&r.setAttribute(o.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:gd(this.skipLocationChange),replaceUrl:gd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),_s("tabindex"),C(ji),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&nt("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[rn]}),t})(),Ch=(()=>{class t{constructor(e,i,s){this.router=e,this.route=i,this.locationStrategy=s,this.commands=[],this.onChanges=new E,this.subscription=e.events.subscribe(r=>{r instanceof Cl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,s,r,o){if(0!==e||i||s||r||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:gd(this.skipLocationChange),replaceUrl:gd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gd(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),C(ld))},t.\u0275dir=Le({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&nt("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&(ys("href",i.href,_i),At("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[rn]}),t})();function gd(t){return""===t||!!t}let t1=(()=>{class t{constructor(e,i,s,r,o,a){this.router=e,this.element=i,this.renderer=s,this.cdr=r,this.link=o,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Cl&&this.update()})}ngAfterContentInit(){Et(this.links.changes,this.linksWithHrefs.changes,Et(null)).pipe(Ee()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=K(i).pipe(Ee()).subscribe(s=>{this.isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(s=>!!s)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}))})}isLinkActive(e){const i=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>e.isActive(s.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(tt),C(ji),C(Gt),C(e1,8),C(Ch,8))},t.\u0275dir=Le({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,e1,5),Ft(s,Ch,5)),2&e){let r;st(r=rt())&&(i.links=r),st(r=rt())&&(i.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[rn]}),t})(),n1=(()=>{class t{constructor(e,i,s,r,o){this.parentContexts=e,this.location=i,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ot,this.deactivateEvents=new ot,this.name=r||Dn,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new sQ(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(C(pd),C(Fn),C(is),_s("name"),C(Gt))},t.\u0275dir=Le({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class sQ{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ta?this.route:n===pd?this.childContexts:this.parent.get(n,e)}}class $I{}class UI{preload(n,e){return Et(null)}}let WI=(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new zI(i,s,c=>e.triggerEvent(new JO(c)),c=>e.triggerEvent(new ZO(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(mn(e=>e instanceof Cl),Xo(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(wo);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const s=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const o=r._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?s.push(this.preloadConfig(e,r)):r.children&&s.push(this.processRoutes(e,r.children));return K(s).pipe(Ee(),g(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Et(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Re(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Me(ls),Me(qp),Me(_l),Me(wn),Me($I))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),s1=(()=>{class t{constructor(e,i,s={}){this.router=e,this.viewportScroller=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof L0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Cl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof eI&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new eI(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Me(ls),Me(OO),Me(void 0))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const El=new pt("ROUTER_CONFIGURATION"),YI=new pt("ROUTER_FORROOT_GUARD"),oQ=[oh,{provide:V0,useClass:dI},{provide:ls,useFactory:function(t,n,e,i,s,r,o,a={},l,c){const d=new ls(null,t,n,e,i,s,r,iI(o));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),function(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy)}(a,d),a.enableTracing&&d.events.subscribe(u=>{var f,_;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(_=console.groupEnd)||void 0===_||_.call(console)}),d},deps:[V0,pd,oh,wn,qp,_l,Z0,El,[class{},new Ki],[class{},new Ki]]},pd,{provide:Ta,useFactory:function(t){return t.routerState.root},deps:[ls]},{provide:qp,useClass:v7},WI,UI,class{preload(n,e){return e().pipe($i(()=>Et(null)))}},{provide:El,useValue:{enableTracing:!1}}];function aQ(){return new Ub("Router",ls)}let qI=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[oQ,XI(e),{provide:YI,useFactory:dQ,deps:[[ls,new Ki,new Vr]]},{provide:El,useValue:i||{}},{provide:ld,useFactory:cQ,deps:[bl,[new Sc(c0),new Ki],El]},{provide:s1,useFactory:lQ,deps:[ls,OO,El]},{provide:$I,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:UI},{provide:Ub,multi:!0,useFactory:aQ},[r1,{provide:sd,multi:!0,useFactory:pQ,deps:[r1]},{provide:QI,useFactory:gQ,deps:[r1]},{provide:Lb,multi:!0,useExisting:QI}]]}}static forChild(e){return{ngModule:t,providers:[XI(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Me(YI,8),Me(ls,8))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();function lQ(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new s1(t,n,e)}function cQ(t,n,e={}){return e.useHash?new VW(t,n):new cO(t,n)}function dQ(t){return"guarded"}function XI(t){return[{provide:ij,multi:!0,useValue:t},{provide:Z0,multi:!0,useValue:t}]}let r1=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(FW,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const s=new Promise(a=>i=a),r=this.injector.get(ls),o=this.injector.get(El);return"disabled"===o.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?Et(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),s})}bootstrapListener(e){const i=this.injector.get(El),s=this.injector.get(WI),r=this.injector.get(s1),o=this.injector.get(ls),a=this.injector.get(cr);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),r.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function pQ(t){return t.appInitializer.bind(t)}function gQ(t){return t.bootstrapListener.bind(t)}const QI=new pt("Router Initializer");var Oi=(()=>(function(t){t.ANIME="anime",t.MANGA="manga"}(Oi||(Oi={})),Oi))();class Ys{static calculateScoreStatistics(n){var e;const i=new Array(10).fill(0);for(let s=0;s0&&i[n[s].score-1]++;return i}static calculateMediumScoreStatistics(n,e){let i=0;return n.forEach(s=>{s.score&&(i+=s.score)}),i/(e||n.filter(s=>s.score).length)||0}static calculateTotalEntries(n){let e=0;return n.forEach(i=>e+=i.size),e}static parseUserProfileStats(n){const e={anime:{total:0,medium:0},manga:{total:0,medium:0},general:{medium:"0"}};e.anime.total=Ys.calculateTotalEntries(n.stats.full_statuses.anime),e.manga.total=Ys.calculateTotalEntries(n.stats.full_statuses.manga);let i=0;return e.anime.medium=parseFloat(Ys.calculateMediumScoreStatistics(n.stats.scores.anime.map(s=>(i+=s.value,{score:s.value*Number(s.name)})),i).toFixed(1)),i=0,e.manga.medium=parseFloat(Ys.calculateMediumScoreStatistics(n.stats.scores.manga.map(s=>(i+=s.value,{score:s.value*Number(s.name)})),i).toFixed(1)),e.general.medium=e.anime.medium&&e.manga.medium?((e.anime.medium+e.manga.medium)/2).toFixed(1):(e.anime.medium||e.manga.medium)+"",e}}class _Q{constructor(n=((e,i)=>e>i)){this.top=0,this.parent=e=>(e+1>>>1)-1,this.left=e=>1+(e<<1),this.right=e=>e+1<<1,this._heap=[],this._comparator=n}size(){return this._heap.length}isEmpty(){return 0==this.size()}peek(){return this._heap[this.top]}push(...n){return n.forEach(e=>{this._heap.push(e),this._siftUp()}),this.size()}pop(){const n=this.peek(),e=this.size()-1;return e>this.top&&this._swap(this.top,e),this._heap.pop(),this._siftDown(),n}replace(n){const e=this.peek();return this._heap[this.top]=n,this._siftDown(),e}_greater(n,e){return this._comparator(this._heap[n],this._heap[e])}_swap(n,e){[this._heap[n],this._heap[e]]=[this._heap[e],this._heap[n]]}_siftUp(){let n=this.size()-1;for(;n>this.top&&this._greater(n,this.parent(n));)this._swap(n,this.parent(n)),n=this.parent(n)}_siftDown(){let n=this.top;for(;this.left(n)=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2}static isDefined(n){return null!=n}static shuffle(n){let i,e=n.length;for(;0!=e;)i=Math.floor(Math.random()*e),e--,[n[e],n[i]]=[n[i],n[e]];return n}static capitalizeFirstLetter(n){return n.charAt(0).toUpperCase()+n.slice(1)}static selectValidLocaleName(n){if(null==n?void 0:n.english)return null==n?void 0:n.english;if(null==n?void 0:n.synonyms){const e=n.synonyms.find(i=>/^[~`\s!@#$%^&*()_+=[\]\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(i));if(e)return e}return n.name}static flatten(n){return n.reduce(function(e,i){return e.concat(Array.isArray(i)?Rs.flatten(i):i)},[])}static translatePaginator(n,e){(null==n?void 0:n._intl)&&(n._intl.itemsPerPageLabel=e.transform("ItemsPerPage"),n._intl.nextPageLabel=e.transform("NextPage"),n._intl.previousPageLabel=e.transform("PreviousPage"),n._intl.getRangeLabel=(i,s,r)=>{if(0==r||0==s)return e.transform("OUT_OF",{first:0,second:r});const o=i*s,a=o<(r=Math.max(r,0))?Math.min(o+s,r):o+s;return e.transform("N_OUT_OF",{first:o+1,second:a,third:r})},n._intl.changes.next())}static isNumeric(n){return!isNaN(parseFloat(n))&&isFinite(n)}static getTopNi(n,e,i){var s;const r=new _Q((a,l)=>a.val((null===(s=r.peek())||void 0===s?void 0:s.val)||-1/0)&&(r.push({index:a,val:l}),r.pop())}const o=[];for(let a=0;a(function(t){t.REWATCHING="rewatching",t.PLANNED="planned",t.WATCHING="watching",t.COMPLETED="completed",t.ON_HOLD="on_hold",t.DROPPED="dropped"}(md||(md={})),md))();const bQ={anime:{episodes:"Episodes",total:"TOTAL_WATCHED_ANIME"},manga:{episodes:"Chapters",total:"TOTAL_READ_MANGA"}},ZI={Action:1,Adventure:2,Comedy:4,Drama:8,"Slice of Life":36,Fantasy:10,Supernatural:37,Horror:14,Mystery:7,Thriller:41,Romance:22,"Sci-Fi":24,Ecchi:9},eP={"Hidden gem":{icon:"\u{1f48e}",template:!1},"Watched in original":{icon:"japan",template:!0}};class xQ extends fe{constructor(n,e){super()}schedule(n,e=0){return this}}class Hg extends xQ{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let tP=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class no extends tP{constructor(n,e=tP.now){super(n,()=>no.delegate&&no.delegate!==this?no.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return no.delegate&&no.delegate!==this?no.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const jg=new no(Hg);function nP(t){return!le(t)&&t-parseFloat(t)+1>=0}function Mh(t=0,n,e){let i=-1;return nP(n)?i=Number(n)<1?1:Number(n):R(n)&&(e=n),R(e)||(e=jg),new S(s=>{const r=nP(t)?t:+t-e.now();return e.schedule(wQ,r,{index:0,period:i,subscriber:s})})}function wQ(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function MQ(t){const{start:n,index:e,count:i,subscriber:s}=t;e>=i?s.complete():(s.next(n),!s.closed&&(t.index=e+1,t.start=n+1,this.schedule(t)))}function zg(t,n){return new S(n?e=>n.schedule(DQ,0,{error:t,subscriber:e}):e=>e.error(t))}function DQ({error:t,subscriber:n}){n.error(t)}function Gg(t){return n=>n.lift(new SQ(t,n))}class SQ{constructor(n,e){this.notifier=n,this.source=e}call(n,e){return e.subscribe(new EQ(n,this.notifier,this.source))}}class EQ extends _e{constructor(n,e,i){super(n),this.notifier=e,this.source=i}error(n){if(!this.isStopped){let e=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{e=new E;try{const{notifier:r}=this;i=r(e)}catch(r){return super.error(r)}s=Se(i,new ne(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=i,this.retriesSubscription=s,e.next(n)}}_unsubscribe(){const{errors:n,retriesSubscription:e}=this;n&&(n.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:n}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=n,this.source.subscribe(this)}}function iP(t,n){return arguments.length>=2?function(i){return y(hh(t,n),fh(1),F0(n))(i)}:function(i){return y(hh((s,r,o)=>t(s,r,o+1)),fh(1))(i)}}function TQ(t,n,e){return 0===e?[n]:(t.push(n),t)}class Ks{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Et(this.value);case"E":return zg(this.error);case"C":return xg()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Ks("N",n):Ks.undefinedValueNotification}static createError(n){return new Ks("E",void 0,n)}static createComplete(){return Ks.completeNotification}}function Zo(t,n=jg){const i=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return s=>s.lift(new OQ(i,n))}Ks.completeNotification=new Ks("C"),Ks.undefinedValueNotification=new Ks("N",void 0);class OQ{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new a1(n,this.delay,this.scheduler))}}class a1 extends se{constructor(n,e,i){super(n),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,i=e.queue,s=n.scheduler,r=n.destination;for(;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(r);if(i.length>0){const o=Math.max(0,i[0].time-s.now());this.schedule(n,o)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(a1.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,i=new IQ(e.now()+this.delay,n);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(Ks.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(Ks.createComplete()),this.unsubscribe()}}class IQ{constructor(n,e){this.time=n,this.notification=e}}class RQ{constructor(n,e,i){this.project=n,this.concurrent=e,this.scheduler=i}call(n,e){return e.subscribe(new l1(n,this.project,this.concurrent,this.scheduler))}}class l1 extends _e{constructor(n,e,i,s){super(n),this.project=e,this.concurrent=i,this.scheduler=s,this.index=0,this.active=0,this.hasCompleted=!1,i0&&this._next(n.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}function sP(t,n=!1){return e=>e.lift(new NQ(t,n))}class NQ{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new FQ(n,this.predicate,this.inclusive))}}class FQ extends se{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(s){return void e.error(s)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}var c1=function(t,n){return(c1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])})(t,n)};function io(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}c1(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var et=function(){return et=Object.assign||function(n){for(var e,i=1,s=arguments.length;i0&&r[r.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]=n)break;e=s.index+s[0].length,i+=1}return{line:i,column:n+1-e}}function rK(t){return oP(t.source,h1(t.source,t.start))}function oP(t,n){const e=t.locationOffset.column-1,i="".padStart(e)+t.body,s=n.line-1,o=n.line+(t.locationOffset.line-1),l=n.column+(1===n.line?e:0),c=`${t.name}:${o}:${l}\n`,d=i.split(/\r\n|[\n\r]/g),u=d[s];if(u.length>120){const f=Math.floor(l/80),_=l%80,T=[];for(let k=0;k["|",k]),["|","^".padStart(_)],["|",T[f+1]]])}return c+aP([[o-1+" |",d[s-1]],[`${o} |`,u],["|","^".padStart(l)],[`${o+1} |`,d[s+1]]])}function aP(t){const n=t.filter(([i,s])=>void 0!==s),e=Math.max(...n.map(([i])=>i.length));return n.map(([i,s])=>i.padStart(e)+(s?" "+s:"")).join("\n")}class f1 extends Error{constructor(n,...e){var i,s,r;const{nodes:o,source:a,positions:l,path:c,originalError:d,extensions:u}=function(t){const n=t[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:n}(e);super(n),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=lP(Array.isArray(o)?o:o?[o]:void 0);const f=lP(null===(i=this.nodes)||void 0===i?void 0:i.map(T=>T.loc).filter(T=>null!=T));this.source=null!=a?a:null==f||null===(s=f[0])||void 0===s?void 0:s.source,this.positions=null!=l?l:null==f?void 0:f.map(T=>T.start),this.locations=l&&a?l.map(T=>h1(a,T)):null==f?void 0:f.map(T=>h1(T.source,T.start));const _=function(t){return"object"==typeof t&&null!==t}(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(r=null!=u?u:_)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,f1):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let n=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(n+="\n\n"+rK(e.loc));else if(this.source&&this.locations)for(const e of this.locations)n+="\n\n"+oP(this.source,e);return n}toJSON(){const n={message:this.message};return null!=this.locations&&(n.locations=this.locations),null!=this.path&&(n.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(n.extensions=this.extensions),n}}function lP(t){return void 0===t||0===t.length?void 0:t}function cs(t,n,e){return new f1(`Syntax Error: ${e}`,{source:t,positions:[n]})}class aK{constructor(n,e,i){this.start=n.start,this.end=e.end,this.startToken=n,this.endToken=e,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class cP{constructor(n,e,i,s,r,o){this.kind=n,this.start=e,this.end=i,this.line=s,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const dP={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},lK=new Set(Object.keys(dP));function uP(t){const n=null==t?void 0:t.kind;return"string"==typeof n&&lK.has(n)}var Al=(()=>(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(Al||(Al={})),Al))(),$g=(()=>(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}($g||($g={})),$g))(),Kt=(()=>(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Kt||(Kt={})),Kt))();function p1(t){return 9===t||32===t}function Eh(t){return t>=48&&t<=57}function hP(t){return t>=97&&t<=122||t>=65&&t<=90}function fP(t){return hP(t)||95===t}function cK(t){return hP(t)||Eh(t)||95===t}function dK(t){var n;let e=Number.MAX_SAFE_INTEGER,i=null,s=-1;for(let o=0;o0===a?o:o.slice(e)).slice(null!==(n=i)&&void 0!==n?n:0,s+1)}function uK(t){let n=0;for(;n(function(t){t.SOF="",t.EOF="",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(at||(at={})),at))();class fK{constructor(n){const e=new cP(at.SOF,0,0,0,0);this.source=n,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let n=this.token;if(n.kind!==at.EOF)do{if(n.next)n=n.next;else{const e=gK(this,n.end);n.next=e,e.prev=n,n=e}}while(n.kind===at.COMMENT);return n}}function _d(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Ug(t,n){return pP(t.charCodeAt(n))&&gP(t.charCodeAt(n+1))}function pP(t){return t>=55296&&t<=56319}function gP(t){return t>=56320&&t<=57343}function kl(t,n){const e=t.source.body.codePointAt(n);if(void 0===e)return at.EOF;if(e>=32&&e<=126){const i=String.fromCodePoint(e);return'"'===i?"'\"'":`"${i}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function Ui(t,n,e,i,s){return new cP(n,e,i,t.line,1+e-t.lineStart,s)}function gK(t,n){const e=t.source.body,i=e.length;let s=n;for(;s=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function xK(t,n){const e=t.source.body;switch(e.charCodeAt(n+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw cs(t.source,n,`Invalid character escape sequence: "${e.slice(n,n+2)}".`)}function wK(t,n){const e=t.source.body,i=e.length;let s=t.lineStart,r=n+3,o=r,a="";const l=[];for(;r2)return"[Array]";const e=Math.min(10,t.length),i=t.length-e,s=[];for(let r=0;r1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}(t,e);return function(t,n){const e=Object.entries(t);return 0===e.length?"{}":n.length>2?"["+function(t){const n=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return n}(t)+"]":"{ "+e.map(([s,r])=>s+": "+Yg(r,n)).join(", ")+" }"}(t,e)}(t,n);default:return String(t)}}const kK=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(n,e){return n instanceof e}:function(n,e){if(n instanceof e)return!0;if("object"==typeof n&&null!==n){var i;const s=e.prototype[Symbol.toStringTag];if(s===(Symbol.toStringTag in n?n[Symbol.toStringTag]:null===(i=n.constructor)||void 0===i?void 0:i.name)){const o=m1(n);throw new Error(`Cannot use ${s} "${o}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class _1{constructor(n,e="GraphQL request",i={line:1,column:1}){"string"==typeof n||Wg(!1,`Body must be a string. Received: ${m1(n)}.`),this.body=n,this.name=e,this.locationOffset=i,this.locationOffset.line>0||Wg(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Wg(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class qg{constructor(n,e={}){const i=function(t){return kK(t,_1)}(n)?n:new _1(n);this._lexer=new fK(i),this._options=e,this._tokenCounter=0}parseName(){const n=this.expectToken(at.NAME);return this.node(n,{kind:Kt.NAME,value:n.value})}parseDocument(){return this.node(this._lexer.token,{kind:Kt.DOCUMENT,definitions:this.many(at.SOF,this.parseDefinition,at.EOF)})}parseDefinition(){if(this.peek(at.BRACE_L))return this.parseOperationDefinition();const n=this.peekDescription(),e=n?this._lexer.lookahead():this._lexer.token;if(e.kind===at.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(n)throw cs(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const n=this._lexer.token;if(this.peek(at.BRACE_L))return this.node(n,{kind:Kt.OPERATION_DEFINITION,operation:Al.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let i;return this.peek(at.NAME)&&(i=this.parseName()),this.node(n,{kind:Kt.OPERATION_DEFINITION,operation:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const n=this.expectToken(at.NAME);switch(n.value){case"query":return Al.QUERY;case"mutation":return Al.MUTATION;case"subscription":return Al.SUBSCRIPTION}throw this.unexpected(n)}parseVariableDefinitions(){return this.optionalMany(at.PAREN_L,this.parseVariableDefinition,at.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Kt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(at.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(at.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const n=this._lexer.token;return this.expectToken(at.DOLLAR),this.node(n,{kind:Kt.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Kt.SELECTION_SET,selections:this.many(at.BRACE_L,this.parseSelection,at.BRACE_R)})}parseSelection(){return this.peek(at.SPREAD)?this.parseFragment():this.parseField()}parseField(){const n=this._lexer.token,e=this.parseName();let i,s;return this.expectOptionalToken(at.COLON)?(i=e,s=this.parseName()):s=e,this.node(n,{kind:Kt.FIELD,alias:i,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(at.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(n){return this.optionalMany(at.PAREN_L,n?this.parseConstArgument:this.parseArgument,at.PAREN_R)}parseArgument(n=!1){const e=this._lexer.token,i=this.parseName();return this.expectToken(at.COLON),this.node(e,{kind:Kt.ARGUMENT,name:i,value:this.parseValueLiteral(n)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const n=this._lexer.token;this.expectToken(at.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(at.NAME)?this.node(n,{kind:Kt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(n,{kind:Kt.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const n=this._lexer.token;return this.expectKeyword("fragment"),this.node(n,!0===this._options.allowLegacyFragmentVariables?{kind:Kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Kt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(n){const e=this._lexer.token;switch(e.kind){case at.BRACKET_L:return this.parseList(n);case at.BRACE_L:return this.parseObject(n);case at.INT:return this.advanceLexer(),this.node(e,{kind:Kt.INT,value:e.value});case at.FLOAT:return this.advanceLexer(),this.node(e,{kind:Kt.FLOAT,value:e.value});case at.STRING:case at.BLOCK_STRING:return this.parseStringLiteral();case at.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:Kt.BOOLEAN,value:!0});case"false":return this.node(e,{kind:Kt.BOOLEAN,value:!1});case"null":return this.node(e,{kind:Kt.NULL});default:return this.node(e,{kind:Kt.ENUM,value:e.value})}case at.DOLLAR:if(n){if(this.expectToken(at.DOLLAR),this._lexer.token.kind===at.NAME)throw cs(this._lexer.source,e.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const n=this._lexer.token;return this.advanceLexer(),this.node(n,{kind:Kt.STRING,value:n.value,block:n.kind===at.BLOCK_STRING})}parseList(n){return this.node(this._lexer.token,{kind:Kt.LIST,values:this.any(at.BRACKET_L,()=>this.parseValueLiteral(n),at.BRACKET_R)})}parseObject(n){return this.node(this._lexer.token,{kind:Kt.OBJECT,fields:this.any(at.BRACE_L,()=>this.parseObjectField(n),at.BRACE_R)})}parseObjectField(n){const e=this._lexer.token,i=this.parseName();return this.expectToken(at.COLON),this.node(e,{kind:Kt.OBJECT_FIELD,name:i,value:this.parseValueLiteral(n)})}parseDirectives(n){const e=[];for(;this.peek(at.AT);)e.push(this.parseDirective(n));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(n){const e=this._lexer.token;return this.expectToken(at.AT),this.node(e,{kind:Kt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n)})}parseTypeReference(){const n=this._lexer.token;let e;if(this.expectOptionalToken(at.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(at.BRACKET_R),e=this.node(n,{kind:Kt.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(at.BANG)?this.node(n,{kind:Kt.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:Kt.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(at.STRING)||this.peek(at.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),s=this.many(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);return this.node(n,{kind:Kt.SCHEMA_DEFINITION,description:e,directives:i,operationTypes:s})}parseOperationTypeDefinition(){const n=this._lexer.token,e=this.parseOperationType();this.expectToken(at.COLON);const i=this.parseNamedType();return this.node(n,{kind:Kt.OPERATION_TYPE_DEFINITION,operation:e,type:i})}parseScalarTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),s=this.parseConstDirectives();return this.node(n,{kind:Kt.SCALAR_TYPE_DEFINITION,description:e,name:i,directives:s})}parseObjectTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(n,{kind:Kt.OBJECT_TYPE_DEFINITION,description:e,name:i,interfaces:s,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(at.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(at.BRACE_L,this.parseFieldDefinition,at.BRACE_R)}parseFieldDefinition(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseName(),s=this.parseArgumentDefs();this.expectToken(at.COLON);const r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(n,{kind:Kt.FIELD_DEFINITION,description:e,name:i,arguments:s,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(at.PAREN_L,this.parseInputValueDef,at.PAREN_R)}parseInputValueDef(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseName();this.expectToken(at.COLON);const s=this.parseTypeReference();let r;this.expectOptionalToken(at.EQUALS)&&(r=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(n,{kind:Kt.INPUT_VALUE_DEFINITION,description:e,name:i,type:s,defaultValue:r,directives:o})}parseInterfaceTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(n,{kind:Kt.INTERFACE_TYPE_DEFINITION,description:e,name:i,interfaces:s,directives:r,fields:o})}parseUnionTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(n,{kind:Kt.UNION_TYPE_DEFINITION,description:e,name:i,directives:s,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(at.EQUALS)?this.delimitedMany(at.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(n,{kind:Kt.ENUM_TYPE_DEFINITION,description:e,name:i,directives:s,values:r})}parseEnumValuesDefinition(){return this.optionalMany(at.BRACE_L,this.parseEnumValueDefinition,at.BRACE_R)}parseEnumValueDefinition(){const n=this._lexer.token,e=this.parseDescription(),i=this.parseEnumValueName(),s=this.parseConstDirectives();return this.node(n,{kind:Kt.ENUM_VALUE_DEFINITION,description:e,name:i,directives:s})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw cs(this._lexer.source,this._lexer.token.start,`${Xg(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(n,{kind:Kt.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:i,directives:s,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(at.BRACE_L,this.parseInputValueDef,at.BRACE_R)}parseTypeSystemExtension(){const n=this._lexer.lookahead();if(n.kind===at.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)}parseSchemaExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),i=this.optionalMany(at.BRACE_L,this.parseOperationTypeDefinition,at.BRACE_R);if(0===e.length&&0===i.length)throw this.unexpected();return this.node(n,{kind:Kt.SCHEMA_EXTENSION,directives:e,operationTypes:i})}parseScalarTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(n,{kind:Kt.SCALAR_TYPE_EXTENSION,name:e,directives:i})}parseObjectTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===s.length&&0===r.length)throw this.unexpected();return this.node(n,{kind:Kt.OBJECT_TYPE_EXTENSION,name:e,interfaces:i,directives:s,fields:r})}parseInterfaceTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===s.length&&0===r.length)throw this.unexpected();return this.node(n,{kind:Kt.INTERFACE_TYPE_EXTENSION,name:e,interfaces:i,directives:s,fields:r})}parseUnionTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.UNION_TYPE_EXTENSION,name:e,directives:i,types:s})}parseEnumTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.ENUM_TYPE_EXTENSION,name:e,directives:i,values:s})}parseInputObjectTypeExtension(){const n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();if(0===i.length&&0===s.length)throw this.unexpected();return this.node(n,{kind:Kt.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:i,fields:s})}parseDirectiveDefinition(){const n=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(at.AT);const i=this.parseName(),s=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(n,{kind:Kt.DIRECTIVE_DEFINITION,description:e,name:i,arguments:s,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(at.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const n=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call($g,e.value))return e;throw this.unexpected(n)}node(n,e){return!0!==this._options.noLocation&&(e.loc=new aK(n,this._lexer.lastToken,this._lexer.source)),e}peek(n){return this._lexer.token.kind===n}expectToken(n){const e=this._lexer.token;if(e.kind===n)return this.advanceLexer(),e;throw cs(this._lexer.source,e.start,`Expected ${yP(n)}, found ${Xg(e)}.`)}expectOptionalToken(n){return this._lexer.token.kind===n&&(this.advanceLexer(),!0)}expectKeyword(n){const e=this._lexer.token;if(e.kind!==at.NAME||e.value!==n)throw cs(this._lexer.source,e.start,`Expected "${n}", found ${Xg(e)}.`);this.advanceLexer()}expectOptionalKeyword(n){const e=this._lexer.token;return e.kind===at.NAME&&e.value===n&&(this.advanceLexer(),!0)}unexpected(n){const e=null!=n?n:this._lexer.token;return cs(this._lexer.source,e.start,`Unexpected ${Xg(e)}.`)}any(n,e,i){this.expectToken(n);const s=[];for(;!this.expectOptionalToken(i);)s.push(e.call(this));return s}optionalMany(n,e,i){if(this.expectOptionalToken(n)){const s=[];do{s.push(e.call(this))}while(!this.expectOptionalToken(i));return s}return[]}many(n,e,i){this.expectToken(n);const s=[];do{s.push(e.call(this))}while(!this.expectOptionalToken(i));return s}delimitedMany(n,e){this.expectOptionalToken(n);const i=[];do{i.push(e.call(this))}while(this.expectOptionalToken(n));return i}advanceLexer(){const{maxTokens:n}=this._options,e=this._lexer.advance();if(void 0!==n&&e.kind!==at.EOF&&(++this._tokenCounter,this._tokenCounter>n))throw cs(this._lexer.source,e.start,`Document contains more that ${n} tokens. Parsing aborted.`)}}function Xg(t){const n=t.value;return yP(t.kind)+(null!=n?` "${n}"`:"")}function yP(t){return function(t){return t===at.BANG||t===at.DOLLAR||t===at.AMP||t===at.PAREN_L||t===at.PAREN_R||t===at.SPREAD||t===at.COLON||t===at.EQUALS||t===at.AT||t===at.BRACKET_L||t===at.BRACKET_R||t===at.BRACE_L||t===at.PIPE||t===at.BRACE_R}(t)?`"${t}"`:t}var Qg=new Map,y1=new Map,vP=!0,Kg=!1;function bP(t){return t.replace(/[\s,]+/g," ").trim()}function FK(t){var n=bP(t);if(!Qg.has(n)){var e=function(t,n){return new qg(t,n).parseDocument()}(t,{experimentalFragmentVariables:Kg,allowLegacyFragmentVariables:Kg});if(!e||"Document"!==e.kind)throw new Error("Not a valid GraphQL document.");Qg.set(n,function(t){var n=new Set(t.definitions);n.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(s){var r=i[s];r&&"object"==typeof r&&n.add(r)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}(function(t){var n=new Set,e=[];return t.definitions.forEach(function(i){if("FragmentDefinition"===i.kind){var s=i.name.value,r=function(t){return bP(t.source.body.substring(t.start,t.end))}(i.loc),o=y1.get(s);o&&!o.has(r)?vP&&console.warn("Warning: fragment with name "+s+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||y1.set(s,o=new Set),o.add(r),n.has(r)||(n.add(r),e.push(i))}else e.push(i)}),et(et({},t),{definitions:e})}(e)))}return Qg.get(n)}function yd(t){for(var n=[],e=1;ei=>i.pipe(Re((s,r)=>{const o=r+1;return o>t||e.find(a=>{var l;return a===s.status||a===(null===(l=null==s?void 0:s.networkError)||void 0===l?void 0:l.status)})?zg(s):Et(s).pipe(Zo(o*n))}));class xP{}class wP{}class so{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const s=e.slice(0,i),r=s.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const s=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(s,i),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof so?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new so;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof so?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const s=("a"===n.op?this.headers.get(e):void 0)||[];s.push(...i),this.headers.set(e,s);break;case"d":const r=n.value;if(r){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===r.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class GK{encodeKey(n){return CP(n)}encodeValue(n){return CP(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UK=/%(\d[a-f0-9])/gi,WK={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function CP(t){return encodeURIComponent(t).replace(UK,(n,e)=>{var i;return null!==(i=WK[e])&&void 0!==i?i:n})}function MP(t){return`${t}`}class Ia{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new GK,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const r=s.indexOf("="),[o,a]=-1==r?[n.decodeKey(s),""]:[n.decodeKey(s.slice(0,r)),n.decodeValue(s.slice(r+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const s=n[i];Array.isArray(s)?s.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:s,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ia({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(MP(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const s=i.indexOf(MP(n.value));-1!==s&&i.splice(s,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YK{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}keys(){return this.map.keys()}}function DP(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function SP(t){return"undefined"!=typeof Blob&&t instanceof Blob}function EP(t){return"undefined"!=typeof FormData&&t instanceof FormData}class kh{constructor(n,e,i,s){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==i?i:null,r=s):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new so),this.context||(this.context=new YK),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":af.set(_,n.setHeaders[_]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((f,_)=>f.set(_,n.setParams[_]),d)),new kh(i,s,o,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a})}}var Wi=(()=>((Wi=Wi||{})[Wi.Sent=0]="Sent",Wi[Wi.UploadProgress=1]="UploadProgress",Wi[Wi.ResponseHeader=2]="ResponseHeader",Wi[Wi.DownloadProgress=3]="DownloadProgress",Wi[Wi.Response=4]="Response",Wi[Wi.User=5]="User",Wi))();class b1{constructor(n,e=200,i="OK"){this.headers=n.headers||new so,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class x1 extends b1{constructor(n={}){super(n),this.type=Wi.ResponseHeader}clone(n={}){return new x1({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Jg extends b1{constructor(n={}){super(n),this.type=Wi.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Jg({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class TP extends b1{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function w1(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pa=(()=>{class t{constructor(e){this.handler=e}request(e,i,s={}){let r;if(e instanceof kh)r=e;else{let l,c;l=s.headers instanceof so?s.headers:new so(s.headers),s.params&&(c=s.params instanceof Ia?s.params:new Ia({fromObject:s.params})),r=new kh(e,i,void 0!==s.body?s.body:null,{headers:l,context:s.context,params:c,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const o=Et(r).pipe(Xo(l=>this.handler.handle(l)));if(e instanceof kh||"events"===s.observe)return o;const a=o.pipe(mn(l=>l instanceof Jg));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(g(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(g(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(g(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(g(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ia).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,s={}){return this.request("PATCH",e,w1(s,i))}post(e,i,s={}){return this.request("POST",e,w1(s,i))}put(e,i,s={}){return this.request("PUT",e,w1(s,i))}}return t.\u0275fac=function(e){return new(e||t)(Me(xP))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class AP{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const kP=new pt("HTTP_INTERCEPTORS");let QK=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const KK=/^\)\]\}',?\n/;let OP=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new S(i=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,T)=>s.setRequestHeader(_,T.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const _=e.detectContentTypeHeader();null!==_&&s.setRequestHeader("Content-Type",_)}if(e.responseType){const _=e.responseType.toLowerCase();s.responseType="json"!==_?_:"text"}const r=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const _=1223===s.status?204:s.status,T=s.statusText||"OK",k=new so(s.getAllResponseHeaders()),$=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return o=new x1({headers:k,status:_,statusText:T,url:$}),o},l=()=>{let{headers:_,status:T,statusText:k,url:$}=a(),L=null;204!==T&&(L=void 0===s.response?s.responseText:s.response),0===T&&(T=L?200:0);let J=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof L){const ue=L;L=L.replace(KK,"");try{L=""!==L?JSON.parse(L):null}catch(Te){L=ue,J&&(J=!1,L={error:Te,text:L})}}J?(i.next(new Jg({body:L,headers:_,status:T,statusText:k,url:$||void 0})),i.complete()):i.error(new TP({error:L,headers:_,status:T,statusText:k,url:$||void 0}))},c=_=>{const{url:T}=a(),k=new TP({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});i.error(k)};let d=!1;const u=_=>{d||(i.next(a()),d=!0);let T={type:Wi.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),"text"===e.responseType&&!!s.responseText&&(T.partialText=s.responseText),i.next(T)},f=_=>{let T={type:Wi.UploadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),i.next(T)};return s.addEventListener("load",l),s.addEventListener("error",c),s.addEventListener("timeout",c),s.addEventListener("abort",c),e.reportProgress&&(s.addEventListener("progress",u),null!==r&&s.upload&&s.upload.addEventListener("progress",f)),s.send(r),i.next({type:Wi.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",l),s.removeEventListener("timeout",c),e.reportProgress&&(s.removeEventListener("progress",u),null!==r&&s.upload&&s.upload.removeEventListener("progress",f)),s.readyState!==s.DONE&&s.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Me(IO))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const C1=new pt("XSRF_COOKIE_NAME"),M1=new pt("XSRF_HEADER_NAME");class IP{}let ZK=(()=>{class t{constructor(e,i,s){this.doc=e,this.platform=i,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=xO(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(xs),Me(C1))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),D1=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(IP),Me(M1))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),eJ=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(kP,[]);this.chain=i.reduceRight((s,r)=>new AP(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(wP),Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),tJ=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:D1,useClass:QK}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:C1,useValue:e.cookieName}:[],e.headerName?{provide:M1,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[D1,{provide:kP,useExisting:D1,multi:!0},{provide:IP,useClass:ZK},{provide:C1,useValue:"XSRF-TOKEN"},{provide:M1,useValue:"X-XSRF-TOKEN"}]}),t})(),nJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Pa,{provide:xP,useClass:eJ},OP,{provide:wP,useExisting:OP}],imports:[[tJ.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),qs=(()=>{class t{constructor(e){this.http=e,this.selectedLanguage="en",this.data={},this.localeChange=new ti(null)}getLanguage(){return this.selectedLanguage}use(e){return new Promise(i=>{this.http.get(`assets/i18n/${e||"en"}.json`).subscribe(r=>{this.data=r||{},i(this.data);const o=this.selectedLanguage;this.selectedLanguage=e,o!==this.selectedLanguage&&this.localeChange.next()},r=>{"en"==e?(this.data={},i(this.data)):this.use("en")})})}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var $n=(()=>(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}($n||($n={})),$n))();function Oh(t){return!!t&&t<7}var S1="Invariant Violation",PP=Object.setPrototypeOf,iJ=void 0===PP?function(t,n){return t.__proto__=n,t}:PP,Qn=function(t){function n(e){void 0===e&&(e=S1);var i=t.call(this,"number"==typeof e?S1+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return i.framesToPop=1,i.name=S1,iJ(i,n.prototype),i}return io(n,t),n}(Error);function Rt(t,n){if(!t)throw new Qn(n)}var Zg=["debug","log","warn","error","silent"],E1=Zg.indexOf("log");function em(t){return function(){if(Zg.indexOf(t)>=E1){var n=console[t]||console.log;return n.apply(console,arguments)}}}function Tr(t){try{return t()}catch(n){}}!function(t){t.debug=em("debug"),t.log=em("log"),t.warn=em("warn"),t.error=em("error")}(Rt||(Rt={}));const RP=Tr(function(){return globalThis})||Tr(function(){return window})||Tr(function(){return self})||Tr(function(){return global})||Tr(function(){return Tr.constructor("return this")()});var NP="__",FP=[NP,NP].join("DEV");const T1=function(){try{return Boolean(__DEV__)}catch(t){return Object.defineProperty(RP,FP,{value:"production"!==Tr(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),RP[FP]}}();function Ra(t){try{return t()}catch(n){}}var A1=Ra(function(){return globalThis})||Ra(function(){return window})||Ra(function(){return self})||Ra(function(){return global})||Ra(function(){return Ra.constructor("return this")()}),k1=!1;function BP(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e1,a=!1,l=arguments[1],c=l;return new r(function(d){return s.subscribe({next:function(u){var f=!a;if(a=!0,!f||o)try{c=i(c,u)}catch(_){return d.error(_)}else c=u},error:function(u){d.error(u)},complete:function(){if(!a&&!o)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(c),d.complete()}})})},n.concat=function(){for(var i=this,s=arguments.length,r=new Array(s),o=0;o=0&&a.splice(f,1),c()}});a.push(u)},error:function(d){o.error(d)},complete:function(){c()}});function c(){l.closed&&0===a.length&&o.complete()}return function(){a.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},n[N1]=function(){return this},t.from=function(i){var s="function"==typeof this?this:t;if(null==i)throw new TypeError(i+" is not an object");var r=tm(i,N1);if(r){var o=r.call(i);if(Object(o)!==o)throw new TypeError(o+" is not an object");return function(t){return t instanceof li}(o)&&o.constructor===s?o:new s(function(a){return o.subscribe(a)})}if(P1("iterator")&&(r=tm(i,dJ)))return new s(function(a){nm(function(){if(!a.closed){for(var c,l=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return BP(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return BP(t,n)}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(i));!(c=l()).done;)if(a.next(c.value),a.closed)return;a.complete()}})});if(Array.isArray(i))return new s(function(a){nm(function(){if(!a.closed){for(var l=0;l0){var i=e.connection.filter?e.connection.filter:[];i.sort();var s={};return i.forEach(function(a){s[a]=n[a]}),"".concat(e.connection.key,"(").concat(Ph(s),")")}return e.connection.key}var r=t;if(n){var o=Ph(n);r+="(".concat(o,")")}return e&&Object.keys(e).forEach(function(a){-1===TJ.indexOf(a)&&(e[a]&&Object.keys(e[a]).length?r+="@".concat(a,"(").concat(Ph(e[a]),")"):r+="@".concat(a))}),r},{setStringify:function(t){var n=Ph;return Ph=t,n}}),Ph=function(n){return JSON.stringify(n,AJ)};function AJ(t,n){return Ii(n)&&!Array.isArray(n)&&(n=Object.keys(n).sort().reduce(function(e,i){return e[i]=n[i],e},{})),n}function sm(t,n){if(t.arguments&&t.arguments.length){var e={};return t.arguments.forEach(function(i){return xd(e,i.name,i.value,n)}),e}return null}function Ol(t){return t.alias?t.alias.value:t.name.value}function H1(t,n,e){if("string"==typeof t.__typename)return t.__typename;for(var i=0,s=n.selections;it.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ht(t.definitions,"\n\n")},OperationDefinition:{leave(t){const n=On("(",Ht(t.variableDefinitions,", "),")"),e=Ht([t.operation,Ht([t.name,n]),Ht(t.directives," ")]," ");return("query"===e?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:e,directives:i})=>t+": "+n+On(" = ",e)+On(" ",Ht(i," "))},SelectionSet:{leave:({selections:t})=>ro(t)},Field:{leave({alias:t,name:n,arguments:e,directives:i,selectionSet:s}){const r=On("",t,": ")+n;let o=r+On("(",Ht(e,", "),")");return o.length>80&&(o=r+On("(\n",lm(Ht(e,"\n")),"\n)")),Ht([o,Ht(i," "),s]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+On(" ",Ht(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:e})=>Ht(["...",On("on ",t),Ht(n," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:e,directives:i,selectionSet:s})=>`fragment ${t}${On("(",Ht(e,", "),")")} on ${n} ${On("",Ht(i," ")," ")}`+s},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?function(t,n){const e=t.replace(/"""/g,'\\"""'),i=e.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every(_=>0===_.length||p1(_.charCodeAt(0))),o=e.endsWith('\\"""'),a=t.endsWith('"')&&!o,l=t.endsWith("\\"),c=a||l,d=!s||t.length>70||c||r||o;let u="";const f=s&&p1(t.charCodeAt(0));return(d&&!f||r)&&(u+="\n"),u+=e,(d||c)&&(u+="\n"),'"""'+u+'"""'}(t):function(t){return`"${t.replace(VJ,HJ)}"`}(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ht(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ht(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+On("(",Ht(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:e})=>On("",t,"\n")+Ht(["schema",Ht(n," "),ro(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:e})=>On("",t,"\n")+Ht(["scalar",n,Ht(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:s})=>On("",t,"\n")+Ht(["type",n,On("implements ",Ht(e," & ")),Ht(i," "),ro(s)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:e,type:i,directives:s})=>On("",t,"\n")+n+(XP(e)?On("(\n",lm(Ht(e,"\n")),"\n)"):On("(",Ht(e,", "),")"))+": "+i+On(" ",Ht(s," "))},InputValueDefinition:{leave:({description:t,name:n,type:e,defaultValue:i,directives:s})=>On("",t,"\n")+Ht([n+": "+e,On("= ",i),Ht(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:s})=>On("",t,"\n")+Ht(["interface",n,On("implements ",Ht(e," & ")),Ht(i," "),ro(s)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:e,types:i})=>On("",t,"\n")+Ht(["union",n,Ht(e," "),On("= ",Ht(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:e,values:i})=>On("",t,"\n")+Ht(["enum",n,Ht(e," "),ro(i)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:e})=>On("",t,"\n")+Ht([n,Ht(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:e,fields:i})=>On("",t,"\n")+Ht(["input",n,Ht(e," "),ro(i)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:e,repeatable:i,locations:s})=>On("",t,"\n")+"directive @"+n+(XP(e)?On("(\n",lm(Ht(e,"\n")),"\n)"):On("(",Ht(e,", "),")"))+(i?" repeatable":"")+" on "+Ht(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>Ht(["extend schema",Ht(t," "),ro(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>Ht(["extend scalar",t,Ht(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>Ht(["extend type",t,On("implements ",Ht(n," & ")),Ht(e," "),ro(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>Ht(["extend interface",t,On("implements ",Ht(n," & ")),Ht(e," "),ro(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:e})=>Ht(["extend union",t,Ht(n," "),On("= ",Ht(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:e})=>Ht(["extend enum",t,Ht(n," "),ro(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:e})=>Ht(["extend input",t,Ht(n," "),ro(e)]," ")}};function Ht(t,n=""){var e;return null!==(e=null==t?void 0:t.filter(i=>i).join(n))&&void 0!==e?e:""}function ro(t){return On("{\n",lm(Ht(t,"\n")),"\n}")}function On(t,n,e=""){return null!=n&&""!==n?t+n+e:""}function lm(t){return On(" ",t.replace(/\n/g,"\n "))}function XP(t){var n;return null!==(n=null==t?void 0:t.some(e=>e.includes("\n")))&&void 0!==n&&n}var YJ={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},QP=function(t,n){return n(t)};function qJ(t){if(t){var n=Object.create(null);return Object.keys(Object(t)).forEach(function(e){n[e.toLowerCase()]=t[e]}),n}return t}function JP(t){return new li(function(n){n.error(t)})}var ZP=Tr(function(){return fetch}),KJ=function(t){void 0===t&&(t={});var n=t.uri,e=void 0===n?"/graphql":n,i=t.fetch,s=t.print,r=void 0===s?QP:s,o=t.includeExtensions,a=t.useGETForQueries,l=t.includeUnusedVariables,c=void 0!==l&&l,d=Tl(t,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(t){if(!t&&"undefined"==typeof fetch)throw __DEV__?new Qn("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new Qn(20)}(i||ZP);var u={http:{includeExtensions:o},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new wd(function(f){var _=function(t,n){return t.getContext().uri||("function"==typeof n?n(t):n||"/graphql")}(f,e),T=f.getContext(),k={};if(T.clientAwareness){var $=T.clientAwareness,L=$.name,J=$.version;L&&(k["apollographql-client-name"]=L),J&&(k["apollographql-client-version"]=J)}var it,ue=et(et({},k),T.headers),Fe=function(t,n){for(var e=[],i=2;i=300&&WP(n,e,"Response not successful: Received status code ".concat(n.status)),!Array.isArray(e)&&!YP.call(e,"data")&&!YP.call(e,"errors")&&WP(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(i){return i.operationName}):t.operationName,"'.")),e})}}(f)).then(function(bt){return Qe.next(bt),Qe.complete(),bt}).catch(function(bt){"AbortError"!==bt.name&&(bt.result&&bt.result.errors&&bt.result.data&&Qe.next(bt.result),Qe.error(bt))}),function(){it&&it.abort()}})})},JJ=function(t){function n(e){void 0===e&&(e={});var i=t.call(this,KJ(e).request)||this;return i.options=e,i}return io(n,t),n}(wd);const{toString:eR,hasOwnProperty:ZJ}=Object.prototype,tR=Function.prototype.toString,Y1=new Map;function ds(t,n){try{return q1(t,n)}finally{Y1.clear()}}function q1(t,n){if(t===n)return!0;const e=eR.call(t);if(e!==eR.call(n))return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(iR(t,n))return!0;const s=nR(t),r=nR(n),o=s.length;if(o!==r.length)return!1;for(let a=0;a=0&&t.indexOf(n,e)===e}(s,tZ)}}return!1}function nR(t){return Object.keys(t).filter(eZ,t)}function eZ(t){return void 0!==this[t]}const tZ="{ [native code] }";function iR(t,n){let e=Y1.get(t);if(e){if(e.has(n))return!0}else Y1.set(t,e=new Set);return e.add(n),!1}var iZ=function(){return Object.create(null)},sR=Array.prototype,sZ=sR.forEach,rZ=sR.slice,Fh=function(){function t(n,e){void 0===n&&(n=!0),void 0===e&&(e=iZ),this.weakness=n,this.makeData=e}return t.prototype.lookup=function(){for(var n=[],e=0;e-1})}function hZ(t){return t&&X1(["client"],t)&&X1(["export"],t)}Tr(function(){return window.document.createElement}),Tr(function(){return navigator.userAgent.indexOf("jsdom")>=0});var gZ=Object.prototype.hasOwnProperty;function rR(){for(var t=[],n=0;n1)for(var i=new Md,s=1;s0||!1}function uR(t,n,e){var i=0;return t.forEach(function(s,r){n.call(this,s,r,t)&&(t[i++]=s)},e),t.length=i,t}var hR={kind:"Field",name:{kind:"Name",value:"__typename"}};function fR(t,n){return t.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&fR(n[e.name.value],n)})}function nx(t){return fR(Rh(t)||function(t){__DEV__?Rt("Document"===t.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Rt("Document"===t.kind,48),__DEV__?Rt(t.definitions.length<=1,"Fragment must have exactly one definition."):Rt(t.definitions.length<=1,49);var n=t.definitions[0];return __DEV__?Rt("FragmentDefinition"===n.kind,"Must be a fragment definition."):Rt("FragmentDefinition"===n.kind,50),n}(t),im(om(t)))?null:t}function ix(t){return function(e){return t.some(function(i){return i.name&&i.name===e.name.value||i.test&&i.test(e)})}}function pR(t,n){var e=Object.create(null),i=[],s=Object.create(null),r=[],o=nx(ko(n,{Variable:{enter:function(a,l,c){"VariableDefinition"!==c.kind&&(e[a.name.value]=!0)}},Field:{enter:function(a){if(t&&a.directives&&t.some(function(c){return c.remove})&&a.directives&&a.directives.some(ix(t)))return a.arguments&&a.arguments.forEach(function(c){"Variable"===c.value.kind&&i.push({name:c.value.name.value})}),a.selectionSet&&gR(a.selectionSet).forEach(function(c){r.push({name:c.name.value})}),null}},FragmentSpread:{enter:function(a){s[a.name.value]=!0}},Directive:{enter:function(a){if(ix(t)(a))return null}}}));return o&&uR(i,function(a){return!!a.name&&!e[a.name]}).length&&(o=function(t,n){var e=function(t){return function(e){return t.some(function(i){return e.value&&"Variable"===e.value.kind&&e.value.name&&(i.name===e.value.name.value||i.test&&i.test(e))})}}(t);return nx(ko(n,{OperationDefinition:{enter:function(i){return et(et({},i),{variableDefinitions:i.variableDefinitions?i.variableDefinitions.filter(function(s){return!t.some(function(r){return r.name===s.variable.name.value})}):[]})}},Field:{enter:function(i){var s=t.some(function(o){return o.remove});if(s){var r=0;if(i.arguments&&i.arguments.forEach(function(o){e(o)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(i){if(e(i))return null}}}))}(i,o)),o&&uR(r,function(a){return!!a.name&&!s[a.name]}).length&&(o=function(t,n){function e(i){if(t.some(function(s){return s.name===i.name.value}))return null}return nx(ko(n,{FragmentSpread:{enter:e},FragmentDefinition:{enter:e}}))}(r,o)),o}var sx=Object.assign(function(t){return ko(t,{SelectionSet:{enter:function(n,e,i){if(!i||"OperationDefinition"!==i.kind){var s=n.selections;if(s&&!s.some(function(a){return ea(a)&&("__typename"===a.name.value||0===a.name.value.lastIndexOf("__",0))})){var o=i;if(!(ea(o)&&o.directives&&o.directives.some(function(a){return"export"===a.name.value})))return et(et({},n),{selections:Dh(Dh([],s,!0),[hR],!1)})}}}}})},{added:function(t){return t===hR}}),xZ={test:function(t){var n="connection"===t.name.value;return n&&(!t.arguments||!t.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&Rt.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),n}};function gR(t){var n=[];return t.selections.forEach(function(e){(ea(e)||GP(e))&&e.selectionSet?gR(e.selectionSet).forEach(function(i){return n.push(i)}):"FragmentSpread"===e.kind&&n.push(e)}),n}function TZ(t){return"query"===z1(t).operation?t:ko(t,{OperationDefinition:{enter:function(s){return et(et({},s),{operation:"query"})}}})}var mR=new Map;function rx(t){var n=mR.get(t)||1;return mR.set(t,n+1),"".concat(t,":").concat(n,":").concat(Math.random().toString(36).slice(2))}function Lh(t,n,e){var i=[];t.forEach(function(s){return s[n]&&i.push(s)}),i.forEach(function(s){return s[n](e)})}function _R(t){function n(e){Object.defineProperty(t,e,{value:li})}return lZ&&Symbol.species&&n(Symbol.species),n("@@species"),t}function yR(t){return t&&"function"==typeof t.then}var Bh=function(t){function n(e){var i=t.call(this,function(s){return i.addObserver(s),function(){return i.removeObserver(s)}})||this;return i.observers=new Set,i.addCount=0,i.promise=new Promise(function(s,r){i.resolve=s,i.reject=r}),i.handlers={next:function(s){null!==i.sub&&(i.latest=["next",s],Lh(i.observers,"next",s))},error:function(s){var r=i.sub;null!==r&&(r&&setTimeout(function(){return r.unsubscribe()}),i.sub=null,i.latest=["error",s],i.reject(s),Lh(i.observers,"error",s))},complete:function(){var s=i.sub;if(null!==s){var r=i.sources.shift();r?yR(r)?r.then(function(o){return i.sub=o.subscribe(i.handlers)}):i.sub=r.subscribe(i.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),Lh(i.observers,"complete"))}}},i.cancel=function(s){i.reject(s),i.sources=[],i.handlers.complete()},i.promise.catch(function(s){}),"function"==typeof e&&(e=[new li(e)]),yR(e)?e.then(function(s){return i.start(s)},i.handlers.error):i.start(e),i}return io(n,t),n.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},n.prototype.deliverLastMessage=function(e){if(this.latest){var i=this.latest[0],s=e[i];s&&s.call(e,this.latest[1]),null===this.sub&&"next"===i&&e.complete&&e.complete()}},n.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},n.prototype.removeObserver=function(e,i){this.observers.delete(e)&&--this.addCount<1&&!i&&this.handlers.complete()},n.prototype.cleanup=function(e){var i=this,s=!1,r=function(){s||(s=!0,i.observers.delete(o),e())},o={next:r,error:r,complete:r},a=this.addCount;this.addObserver(o),this.addCount=a},n}(li);function Rl(t){return Array.isArray(t)&&t.length>0}_R(Bh);var Sd=function(t){function n(e){var i=e.graphQLErrors,s=e.clientErrors,r=e.networkError,o=e.errorMessage,a=e.extraInfo,l=t.call(this,o)||this;return l.graphQLErrors=i||[],l.clientErrors=s||[],l.networkError=r||null,l.message=o||function(t){var n="";return(Rl(t.graphQLErrors)||Rl(t.clientErrors))&&(t.graphQLErrors||[]).concat(t.clientErrors||[]).forEach(function(i){n+="".concat(i?i.message:"Error message not found.","\n")}),t.networkError&&(n+="".concat(t.networkError.message,"\n")),n=n.replace(/\n$/,"")}(l),l.extraInfo=a,l.__proto__=n.prototype,l}return io(n,t),n}(Error),IZ=Object.prototype.toString;function vR(t){return ox(t)}function ox(t,n){switch(IZ.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var e=t.slice(0);return n.set(t,e),e.forEach(function(s,r){e[r]=ox(s,n)}),e;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach(function(s){i[s]=ox(t[s],n)}),i;default:return t}}var PZ=Object.assign,RZ=Object.hasOwnProperty,ax=function(t){function n(e){var i=e.queryManager,s=e.queryInfo,r=e.options,o=t.call(this,function($){try{var L=$._subscription._observer;L&&!L.error&&(L.error=NZ)}catch(Te){}var J=!o.observers.size;o.observers.add($);var ue=o.last;return ue&&ue.error?$.error&&$.error(ue.error):ue&&ue.result&&$.next&&$.next(ue.result),J&&o.reobserve().catch(function(){}),function(){o.observers.delete($)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=s,o.queryManager=i,o.isTornDown=!1;var a=i.defaultOptions.watchQuery,c=(void 0===a?{}:a).fetchPolicy,d=void 0===c?"cache-first":c,u=r.fetchPolicy,f=void 0===u?d:u,_=r.initialFetchPolicy,T=void 0===_?"standby"===f?d:f:_;o.options=et(et({},r),{initialFetchPolicy:T,fetchPolicy:f}),o.queryId=s.queryId||i.generateQueryId();var k=Rh(o.query);return o.queryName=k&&k.name&&k.name.value,o}return io(n,t),Object.defineProperty(n.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),n.prototype.result=function(){var e=this;return new Promise(function(i,s){var r={next:function(a){i(a),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:s},o=e.subscribe(r)})},n.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var i=this.getLastResult(!0),s=this.queryInfo.networkStatus||i&&i.networkStatus||$n.ready,r=et(et({},i),{loading:Oh(s),networkStatus:s}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"!==a&&"no-cache"!==a&&"standby"!==a&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(r.data=l.result),ds(r.data,{})&&(r.data=void 0),l.complete?(delete r.partial,l.complete&&r.networkStatus===$n.loading&&("cache-first"===a||"cache-only"===a)&&(r.networkStatus=$n.ready,r.loading=!1)):r.partial=!0,__DEV__&&!l.complete&&!this.options.partialRefetch&&!r.loading&&!r.data&&!r.error&&xR(l.missing)}return e&&this.updateLastResult(r),r},n.prototype.isDifferentFromLastResult=function(e){return!this.last||!ds(this.last.result,e)},n.prototype.getLast=function(e,i){var s=this.last;if(s&&s[e]&&(!i||ds(s.variables,this.variables)))return s[e]},n.prototype.getLastResult=function(e){return this.getLast("result",e)},n.prototype.getLastError=function(e){return this.getLast("error",e)},n.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},n.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},n.prototype.refetch=function(e){var i,s={pollInterval:0},r=this.options.fetchPolicy;if(s.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&RZ.call(e,"variables")){var o=$P(this.query),a=o.variableDefinitions;(!a||!a.some(function(l){return"variables"===l.variable.name.value}))&&__DEV__&&Rt.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(i=o.name)||void 0===i?void 0:i.value)||JSON.stringify(o),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!ds(this.options.variables,e)&&(s.variables=this.options.variables=et(et({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(s,$n.refetch)},n.prototype.fetchMore=function(e){var i=this,s=et(et({},e.query?e:et(et(et(et({},this.options),{query:this.query}),e),{variables:et(et({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=$n.fetchMore,s.notifyOnNetworkStatusChange&&this.observe();var l=new Set;return this.queryManager.fetchQuery(r,s,$n.fetchMore).then(function(c){return i.queryManager.removeQuery(r),o.networkStatus===$n.fetchMore&&(o.networkStatus=a),i.queryManager.cache.batch({update:function(d){var u=e.updateQuery;u?d.updateQuery({query:i.query,variables:i.variables,returnPartialData:!0,optimistic:!1},function(f){return u(f,{fetchMoreResult:c.data,variables:s.variables})}):d.writeQuery({query:s.query,variables:s.variables,data:c.data})},onWatchUpdated:function(d){l.add(d.query)}}),c}).finally(function(){l.has(i.query)||bR(i)})},n.prototype.subscribeToMore=function(e){var i=this,s=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var o=e.updateQuery;o&&i.updateQuery(function(a,l){return o(a,{subscriptionData:r,variables:l.variables})})},error:function(r){e.onError?e.onError(r):__DEV__&&Rt.error("Unhandled GraphQL subscription error",r)}});return this.subscriptions.add(s),function(){i.subscriptions.delete(s)&&s.unsubscribe()}},n.prototype.setOptions=function(e){return this.reobserve(e)},n.prototype.setVariables=function(e){return ds(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},$n.setVariables):Promise.resolve())},n.prototype.updateQuery=function(e){var i=this.queryManager,r=e(i.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(i.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),i.broadcastQueries())},n.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},n.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},n.prototype.applyNextFetchPolicy=function(e,i){if(i.nextFetchPolicy){var s=i.fetchPolicy,r=void 0===s?"cache-first":s,o=i.initialFetchPolicy,a=void 0===o?r:o;"standby"===r||(i.fetchPolicy="function"==typeof i.nextFetchPolicy?i.nextFetchPolicy(r,{reason:e,options:i,observable:this,initialFetchPolicy:a}):"variables-changed"===e?a:i.nextFetchPolicy)}return i.fetchPolicy},n.prototype.fetch=function(e,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,i)},n.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var s=this.pollingInfo,r=this.options.pollInterval;if(!r)return void(s&&(clearTimeout(s.timeout),delete this.pollingInfo));if(!s||s.interval!==r){__DEV__?Rt(r,"Attempted to start a polling query without a polling interval."):Rt(r,10),(s||(this.pollingInfo={})).interval=r;var a=function(){e.pollingInfo&&(Oh(e.queryInfo.networkStatus)?l():e.reobserve({fetchPolicy:"network-only"},$n.poll).then(l,l))},l=function(){var c=e.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(a,c.interval))};l()}}},n.prototype.updateLastResult=function(e,i){return void 0===i&&(i=this.variables),this.last=et(et({},this.last),{result:this.queryManager.assumeImmutableResults?e:vR(e),variables:i}),Rl(e.errors)||delete this.last.error,this.last},n.prototype.reobserve=function(e,i){var s=this;this.isTornDown=!1;var r=i===$n.refetch||i===$n.fetchMore||i===$n.poll,o=this.options.variables,a=this.options.fetchPolicy,l=cm(this.options,e||{}),c=r?l:PZ(this.options,l);r||(this.updatePolling(),e&&e.variables&&!ds(e.variables,o)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",c),void 0===i&&(i=$n.setVariables)));var d=c.variables&&et({},c.variables),u=this.fetch(c,i),f={next:function(_){s.reportResult(_,d)},error:function(_){s.reportError(_,d)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=f),u.addObserver(f),u.promise},n.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},n.prototype.reportResult=function(e,i){var s=this.getLastError();(s||this.isDifferentFromLastResult(e))&&((s||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,i),Lh(this.observers,"next",e))},n.prototype.reportError=function(e,i){var s=et(et({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:$n.error,loading:!1});this.updateLastResult(s,i),Lh(this.observers,"error",this.last.error=e)},n.prototype.hasObservers=function(){return this.observers.size>0},n.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},n}(li);function bR(t){var n=t.options,e=n.fetchPolicy,i=n.nextFetchPolicy;return"cache-and-network"===e||"network-only"===e?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=i,"function"==typeof i?i.apply(this,arguments):e}}):t.reobserve()}function NZ(t){__DEV__&&Rt.error("Unhandled error",t.message,t.stack)}function xR(t){__DEV__&&t&&__DEV__&&Rt.debug("Missing cache result fields: ".concat(JSON.stringify(t)),t)}_R(ax);let Cs=null;const wR={};let FZ=1;function CR(t){try{return t()}catch(n){}}const lx="@wry/context:Slot",MR=CR(()=>globalThis)||CR(()=>global)||Object.create(null),DR=MR[lx]||Array[lx]||function(t){try{Object.defineProperty(MR,lx,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(class{constructor(){this.id=["slot",FZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=Cs;n;n=n.parent)if(this.id in n.slots){const e=n.slots[this.id];if(e===wR)break;return n!==Cs&&(Cs.slots[this.id]=e),!0}return Cs&&(Cs.slots[this.id]=wR),!1}getValue(){if(this.hasValue())return Cs.slots[this.id]}withValue(n,e,i,s){const o=Cs;Cs={parent:o,slots:{__proto__:null,[this.id]:n}};try{return e.apply(s,i)}finally{Cs=o}}static bind(n){const e=Cs;return function(){const i=Cs;try{return Cs=e,n.apply(this,arguments)}finally{Cs=i}}}static noContext(n,e,i){if(!Cs)return n.apply(i,e);{const s=Cs;try{return Cs=null,n.apply(i,e)}finally{Cs=s}}}});function HZ(){}var dx,jZ=function(){function t(n,e){void 0===n&&(n=1/0),void 0===e&&(e=HZ),this.max=n,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(n){return this.map.has(n)},t.prototype.get=function(n){var e=this.getNode(n);return e&&e.value},t.prototype.getNode=function(n){var e=this.map.get(n);if(e&&e!==this.newest){var i=e.older,s=e.newer;s&&(s.older=i),i&&(i.newer=s),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=s)}return e},t.prototype.set=function(n,e){var i=this.getNode(n);return i?i.value=e:(i={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.map.set(n,i),i.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(n){var e=this.map.get(n);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(n),this.dispose(e.value,n),!0)},t}(),hm=new DR,zZ=Object.prototype.hasOwnProperty,ux=void 0===(dx=Array.from)?function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n}:dx;function fm(t){var n=t.unsubscribe;"function"==typeof n&&(t.unsubscribe=void 0,n())}var Vh=[];function Ed(t,n){if(!t)throw new Error(n||"assertion failure")}function ER(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var WZ=function(){function t(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}return t.prototype.peek=function(){if(1===this.value.length&&!Fa(this))return TR(this),this.value[0]},t.prototype.recompute=function(n){return Ed(!this.recomputing,"already recomputing"),TR(this),Fa(this)?function(t,n){return RR(t),hm.withValue(t,qZ,[t,n]),function(t,n){if("function"==typeof t.subscribe)try{fm(t),t.unsubscribe=t.subscribe.apply(null,n)}catch(e){return t.setDirty(),!1}return!0}(t,n)&&function(t){t.dirty=!1,!Fa(t)&&kR(t)}(t),ER(t.value)}(this,n):ER(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,AR(this),fm(this))},t.prototype.dispose=function(){var n=this;this.setDirty(),RR(this),hx(this,function(e,i){e.setDirty(),NR(e,n)})},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(n){n.add(this),this.deps||(this.deps=Vh.pop()||new Set),this.deps.add(n)},t.prototype.forgetDeps=function(){var n=this;this.deps&&(ux(this.deps).forEach(function(e){return e.delete(n)}),this.deps.clear(),Vh.push(this.deps),this.deps=null)},t.count=0,t}();function TR(t){var n=hm.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),Fa(t)?OR(n,t):IR(n,t),n}function qZ(t,n){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,n)}catch(e){t.value[1]=e}t.recomputing=!1}function Fa(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function AR(t){hx(t,OR)}function kR(t){hx(t,IR)}function hx(t,n){var e=t.parents.size;if(e)for(var i=ux(t.parents),s=0;s0&&e===n.length&&t[e-1]===n[e-1]}(e,n.value)||t.setDirty(),PR(t,n),!Fa(t)&&kR(t)}function PR(t,n){var e=t.dirtyChildren;e&&(e.delete(n),0===e.size&&(Vh.length<100&&Vh.push(e),t.dirtyChildren=null))}function RR(t){t.childValues.size>0&&t.childValues.forEach(function(n,e){NR(t,e)}),t.forgetDeps(),Ed(null===t.dirtyChildren)}function NR(t,n){n.parents.delete(t),t.childValues.delete(n),PR(t,n)}var KZ={setDirty:!0,dispose:!0,forget:!0};function FR(t){var n=new Map,e=t&&t.subscribe;function i(s){var r=hm.getValue();if(r){var o=n.get(s);o||n.set(s,o=new Set),r.dependOn(o),"function"==typeof e&&(fm(o),o.unsubscribe=e(s))}}return i.dirty=function(r,o){var a=n.get(r);if(a){var l=o&&zZ.call(KZ,o)?o:"setDirty";ux(a).forEach(function(c){return c[l]()}),n.delete(r),fm(a)}},i}function LR(){var t=new Fh("function"==typeof WeakMap);return function(){return t.lookupArray(arguments)}}LR();var fx=new Set;function pm(t,n){void 0===n&&(n=Object.create(null));var e=new jZ(n.max||Math.pow(2,16),function(c){return c.dispose()}),i=n.keyArgs,s=n.makeCacheKey||LR(),r=function(){var c=s.apply(null,i?i.apply(null,arguments):arguments);if(void 0===c)return t.apply(null,arguments);var d=e.get(c);d||(e.set(c,d=new WZ(t)),d.subscribe=n.subscribe,d.forget=function(){return e.delete(c)});var u=d.recompute(Array.prototype.slice.call(arguments));return e.set(c,d),fx.add(e),hm.hasValue()||(fx.forEach(function(f){return f.clean()}),fx.clear()),u};function o(c){var d=e.get(c);d&&d.setDirty()}function a(c){var d=e.get(c);if(d)return d.peek()}function l(c){return e.delete(c)}return Object.defineProperty(r,"size",{get:function(){return e.map.size},configurable:!1,enumerable:!1}),r.dirtyKey=o,r.dirty=function(){o(s.apply(null,arguments))},r.peekKey=a,r.peek=function(){return a(s.apply(null,arguments))},r.forgetKey=l,r.forget=function(){return l(s.apply(null,arguments))},r.makeCacheKey=s,r.getKey=i?function(){return s.apply(null,i.apply(null,arguments))}:s,Object.freeze(r)}var Ms=null,BR={},JZ=1,px="@wry/context:Slot",gx=Array,mx=gx[px]||function(){var t=function(){function t(){this.id=["slot",JZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var n=Ms;n;n=n.parent)if(this.id in n.slots){var e=n.slots[this.id];if(e===BR)break;return n!==Ms&&(Ms.slots[this.id]=e),!0}return Ms&&(Ms.slots[this.id]=BR),!1},t.prototype.getValue=function(){if(this.hasValue())return Ms.slots[this.id]},t.prototype.withValue=function(n,e,i,s){var r,o=((r={__proto__:null})[this.id]=n,r),a=Ms;Ms={parent:a,slots:o};try{return e.apply(s,i)}finally{Ms=a}},t.bind=function(n){var e=Ms;return function(){var i=Ms;try{return Ms=e,n.apply(this,arguments)}finally{Ms=i}}},t.noContext=function(n,e,i){if(!Ms)return n.apply(i,e);var s=Ms;try{return Ms=null,n.apply(i,e)}finally{Ms=s}},t}();try{Object.defineProperty(gx,px,{value:gx[px]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}(),yx=new mx,HR=new WeakMap;function Hh(t){var n=HR.get(t);return n||HR.set(t,n={vars:new Set,dep:FR()}),n}function jR(t){Hh(t).vars.forEach(function(n){return n.forgetCache(t)})}function iee(t){var n=new Set,e=new Set,i=function(r){if(arguments.length>0){if(t!==r){t=r,n.forEach(function(l){Hh(l).dep.dirty(i),see(l)});var o=Array.from(e);e.clear(),o.forEach(function(l){return l(t)})}}else{var a=yx.getValue();a&&(s(a),Hh(a).dep(i))}return t};i.onNextChange=function(r){return e.add(r),function(){e.delete(r)}};var s=i.attachCache=function(r){return n.add(r),Hh(r).vars.add(i),i};return i.forgetCache=function(r){return n.delete(r)},i}function see(t){t.broadcastWatches&&t.broadcastWatches()}var zR=function(){function t(n){var i=n.client,s=n.resolvers,r=n.fragmentMatcher;this.cache=n.cache,i&&(this.client=i),s&&this.addResolvers(s),r&&this.setFragmentMatcher(r)}return t.prototype.addResolvers=function(n){var e=this;this.resolvers=this.resolvers||{},Array.isArray(n)?n.forEach(function(i){e.resolvers=rR(e.resolvers,i)}):this.resolvers=rR(this.resolvers,n)},t.prototype.setResolvers=function(n){this.resolvers={},this.addResolvers(n)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(n){var e=n.document,i=n.remoteResult,s=n.context,r=n.variables,o=n.onlyRunForcedResolvers,a=void 0!==o&&o;return ka(this,void 0,void 0,function(){return Oa(this,function(l){return e?[2,this.resolveDocument(e,i.data,s,r,this.fragmentMatcher,a).then(function(c){return et(et({},i),{data:c.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(n){this.fragmentMatcher=n},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(n){return X1(["client"],n)&&this.resolvers?n:null},t.prototype.serverQuery=function(n){return function(t){rm(t);var n=pR([{test:function(e){return"client"===e.name.value},remove:!0}],t);return n&&(n=ko(n,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(s){return ea(s)&&"__typename"===s.name.value}))return null}}})),n}(n)},t.prototype.prepareContext=function(n){var e=this.cache;return et(et({},n),{cache:e,getCacheKey:function(i){return e.identify(i)}})},t.prototype.addExportedVariables=function(n,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),ka(this,void 0,void 0,function(){return Oa(this,function(s){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,e)||{},this.prepareContext(i),e).then(function(r){return et(et({},e),r.exportedVariables)})]:[2,et({},e)]})})},t.prototype.shouldForceResolvers=function(n){var e=!1;return ko(n,{Directive:{enter:function(i){if("client"===i.name.value&&i.arguments&&(e=i.arguments.some(function(s){return"always"===s.name.value&&"BooleanValue"===s.value.kind&&!0===s.value.value})))return Cd}}}),e},t.prototype.buildRootValueFromCache=function(n,e){return this.cache.diff({query:TZ(n),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(n,e,i,s,r,o){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=!1),ka(this,void 0,void 0,function(){var a,l,c,d,u,f,_,T,k;return Oa(this,function($){return a=z1(n),l=om(n),c=im(l),u=(d=a.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",_=(f=this).cache,T=f.client,k={fragmentMap:c,context:et(et({},i),{cache:_,client:T}),variables:s,fragmentMatcher:r,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,e,k).then(function(L){return{result:L,exportedVariables:k.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(n,e,i){return ka(this,void 0,void 0,function(){var s,r,o,a,c=this;return Oa(this,function(d){return s=i.fragmentMap,r=i.context,o=i.variables,a=[e],[2,Promise.all(n.selections.map(function(u){return ka(c,void 0,void 0,function(){var f;return Oa(this,function(T){return dm(u,o)?ea(u)?[2,this.resolveField(u,e,i).then(function(k){var $;void 0!==k&&a.push((($={})[Ol(u)]=k,$))})]:(GP(u)?f=u:(f=s[u.name.value],__DEV__?Rt(f,"No fragment named ".concat(u.name.value)):Rt(f,9)),f&&f.typeCondition&&i.fragmentMatcher(e,f.typeCondition.name.value,r)?[2,this.resolveSelectionSet(f.selectionSet,e,i).then(function(k){a.push(k)})]:[2]):[2]})})})).then(function(){return Q1(a)})]})})},t.prototype.resolveField=function(n,e,i){return ka(this,void 0,void 0,function(){var s,r,o,a,l,c,d,u,f,_=this;return Oa(this,function(T){return s=i.variables,r=n.name.value,o=Ol(n),a=r!==o,l=e[o]||e[r],c=Promise.resolve(l),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(n))&&(d=e.__typename||i.defaultOperationType,(u=this.resolvers&&this.resolvers[d])&&(f=u[a?r:o])&&(c=Promise.resolve(yx.withValue(this.cache,f,[e,sm(n,s),i.context,{field:n,fragmentMap:i.fragmentMap}])))),[2,c.then(function(k){return void 0===k&&(k=l),n.directives&&n.directives.forEach(function($){"export"===$.name.value&&$.arguments&&$.arguments.forEach(function(L){"as"===L.name.value&&"StringValue"===L.value.kind&&(i.exportedVariables[L.value.value]=k)})}),n.selectionSet&&null!=k?Array.isArray(k)?_.resolveSubSelectedArray(n,k,i):n.selectionSet?_.resolveSelectionSet(n.selectionSet,k,i):void 0:k})]})})},t.prototype.resolveSubSelectedArray=function(n,e,i){var s=this;return Promise.all(e.map(function(r){return null===r?null:Array.isArray(r)?s.resolveSubSelectedArray(n,r,i):n.selectionSet?s.resolveSelectionSet(n.selectionSet,r,i):void 0}))},t}(),Td=new(Il?WeakMap:Map);function vx(t,n){var e=t[n];"function"==typeof e&&(t[n]=function(){return Td.set(t,(Td.get(t)+1)%1e15),e.apply(this,arguments)})}function GR(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var bx=function(){function t(n,e){void 0===e&&(e=n.generateQueryId()),this.queryId=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=n.cache;Td.has(i)||(Td.set(i,0),vx(i,"evict"),vx(i,"modify"),vx(i,"reset"))}return t.prototype.init=function(n){var e=n.networkStatus||$n.loading;return this.variables&&this.networkStatus!==$n.loading&&!ds(this.variables,n.variables)&&(e=$n.setVariables),ds(n.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:n.document,variables:n.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),n.observableQuery&&this.setObservableQuery(n.observableQuery),n.lastRequestId&&(this.lastRequestId=n.lastRequestId),this},t.prototype.reset=function(){GR(this),this.lastDiff=void 0,this.dirty=!1},t.prototype.getDiff=function(n){void 0===n&&(n=this.variables);var e=this.getDiffOptions(n);if(this.lastDiff&&ds(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=n);var i=this.observableQuery;if(i&&"no-cache"===i.options.fetchPolicy)return{complete:!1};var s=this.cache.diff(e);return this.updateLastDiff(s,e),s},t.prototype.updateLastDiff=function(n,e){this.lastDiff=n?{diff:n,options:e||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(n){var e;return void 0===n&&(n=this.variables),{query:this.document,variables:n,returnPartialData:!0,optimistic:!0,canonizeResults:null===(e=this.observableQuery)||void 0===e?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(n){var e=this,i=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(n),!this.dirty&&!ds(i&&i.result,n&&n.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.setObservableQuery=function(n){var e=this;n!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=n,n?(n.queryInfo=this,this.listeners.add(this.oqListener=function(){e.getDiff().fromOptimisticTransaction?n.observe():bR(n)})):delete this.oqListener)},t.prototype.notify=function(){var n=this;GR(this),this.shouldNotify()&&this.listeners.forEach(function(e){return e(n)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Oh(this.networkStatus)&&this.observableQuery){var n=this.observableQuery.options.fetchPolicy;if("cache-only"!==n&&"cache-and-network"!==n)return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var n=this.observableQuery;n&&n.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(n){var e=this;void 0===n&&(n=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var s=et(et({},this.getDiffOptions(n)),{watcher:this,callback:function(r){return e.setDiff(r)}});(!this.lastWatch||!ds(s,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=s))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(n,e){var i=this.lastWrite;return!(i&&i.dmCount===Td.get(this.cache)&&ds(e,i.variables)&&ds(n.data,i.result.data))},t.prototype.markResult=function(n,e,i){var s=this;this.graphQLErrors=Rl(n.errors)?n.errors:[],this.reset(),"no-cache"===e.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(e.variables)):0!==i&&(xx(n,e.errorPolicy)?this.cache.performTransaction(function(r){if(s.shouldWrite(n,e.variables))r.writeQuery({query:s.document,data:n.data,variables:e.variables,overwrite:1===i}),s.lastWrite={result:n,variables:e.variables,dmCount:Td.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete)return void(n.data=s.lastDiff.diff.result);var o=s.getDiffOptions(e.variables),a=r.diff(o);s.stopped||s.updateWatch(e.variables),s.updateLastDiff(a,o),a.complete&&(n.data=a.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=$n.ready},t.prototype.markError=function(n){return this.networkStatus=$n.error,this.lastWrite=void 0,this.reset(),n.graphQLErrors&&(this.graphQLErrors=n.graphQLErrors),n.networkError&&(this.networkError=n.networkError),n},t}();function xx(t,n){void 0===n&&(n="none");var e="ignore"===n||"all"===n,i=!um(t);return!i&&e&&t.data&&(i=!0),i}var ree=Object.prototype.hasOwnProperty,oee=function(){function t(n){var e=n.cache,i=n.link,s=n.defaultOptions,r=n.queryDeduplication,o=void 0!==r&&r,a=n.onBroadcast,l=n.ssrMode,c=void 0!==l&&l,d=n.clientAwareness,u=void 0===d?{}:d,f=n.localState,_=n.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Il?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=e,this.link=i,this.defaultOptions=s||Object.create(null),this.queryDeduplication=o,this.clientAwareness=u,this.localState=f||new zR({cache:e}),this.ssrMode=c,this.assumeImmutableResults=!!_,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var n=this;this.queries.forEach(function(e,i){n.stopQueryNoBroadcast(i)}),this.cancelPendingFetches(__DEV__?new Qn("QueryManager stopped while query was in flight"):new Qn(11))},t.prototype.cancelPendingFetches=function(n){this.fetchCancelFns.forEach(function(e){return e(n)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(n){var e,i,s=n.mutation,r=n.variables,o=n.optimisticResponse,a=n.updateQueries,l=n.refetchQueries,c=void 0===l?[]:l,d=n.awaitRefetchQueries,u=void 0!==d&&d,f=n.update,_=n.onQueryUpdated,T=n.fetchPolicy,k=void 0===T?(null===(e=this.defaultOptions.mutate)||void 0===e?void 0:e.fetchPolicy)||"network-only":T,$=n.errorPolicy,L=void 0===$?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.errorPolicy)||"none":$,J=n.keepRootFields,ue=n.context;return ka(this,void 0,void 0,function(){var Te,Fe,Be;return Oa(this,function(Ue){switch(Ue.label){case 0:return __DEV__?Rt(s,"mutation option is required. You must specify your GraphQL document in the mutation option."):Rt(s,12),__DEV__?Rt("network-only"===k||"no-cache"===k,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Rt("network-only"===k||"no-cache"===k,13),Te=this.generateMutationId(),s=this.transform(s).document,r=this.getVariables(s,r),this.transform(s).hasClientExports?[4,this.localState.addExportedVariables(s,r,ue)]:[3,2];case 1:r=Ue.sent(),Ue.label=2;case 2:return Fe=this.mutationStore&&(this.mutationStore[Te]={mutation:s,variables:r,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:Te,document:s,variables:r,fetchPolicy:k,errorPolicy:L,context:ue,updateQueries:a,update:f,keepRootFields:J}),this.broadcastQueries(),Be=this,[2,new Promise(function(He,it){return tx(Be.getObservableFromLink(s,et(et({},ue),{optimisticResponse:o}),r,!1),function(lt){if(um(lt)&&"none"===L)throw new Sd({graphQLErrors:lt.errors});Fe&&(Fe.loading=!1,Fe.error=null);var Xe=et({},lt);return"function"==typeof c&&(c=c(Xe)),"ignore"===L&&um(Xe)&&delete Xe.errors,Be.markMutationResult({mutationId:Te,result:Xe,document:s,variables:r,fetchPolicy:k,errorPolicy:L,context:ue,update:f,updateQueries:a,awaitRefetchQueries:u,refetchQueries:c,removeOptimistic:o?Te:void 0,onQueryUpdated:_,keepRootFields:J})}).subscribe({next:function(lt){Be.broadcastQueries(),He(lt)},error:function(lt){Fe&&(Fe.loading=!1,Fe.error=lt),o&&Be.cache.removeOptimistic(Te),Be.broadcastQueries(),it(lt instanceof Sd?lt:new Sd({networkError:lt}))}})})]}})})},t.prototype.markMutationResult=function(n,e){var i=this;void 0===e&&(e=this.cache);var s=n.result,r=[],o="no-cache"===n.fetchPolicy;if(!o&&xx(s,n.errorPolicy)){r.push({result:s.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables});var a=n.updateQueries;a&&this.queries.forEach(function(c,d){var u=c.observableQuery,f=u&&u.queryName;if(f&&ree.call(a,f)){var _=a[f],T=i.queries.get(d),k=T.document,$=T.variables,L=e.diff({query:k,variables:$,returnPartialData:!0,optimistic:!1}),J=L.result;if(L.complete&&J){var Te=_(J,{mutationResult:s,queryName:k&&j1(k)||void 0,queryVariables:$});Te&&r.push({result:Te,dataId:"ROOT_QUERY",query:k,variables:$})}}})}if(r.length>0||n.refetchQueries||n.update||n.onQueryUpdated||n.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(c){o||r.forEach(function(f){return c.write(f)});var d=n.update;if(d){if(!o){var u=c.diff({id:"ROOT_MUTATION",query:i.transform(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});u.complete&&(s=et(et({},s),{data:u.result}))}d(c,s,{context:n.context,variables:n.variables})}!o&&!n.keepRootFields&&c.modify({id:"ROOT_MUTATION",fields:function(f,_){return"__typename"===_.fieldName?f:_.DELETE}})},include:n.refetchQueries,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(function(c){return l.push(c)}),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(l).then(function(){return s})}return Promise.resolve(s)},t.prototype.markMutationOptimistic=function(n,e){var i=this,s="function"==typeof n?n(e.variables):n;return this.cache.recordOptimisticTransaction(function(r){try{i.markMutationResult(et(et({},e),{result:{data:s}}),r)}catch(o){__DEV__&&Rt.error(o)}},e.mutationId)},t.prototype.fetchQuery=function(n,e,i){return this.fetchQueryObservable(n,e,i).promise},t.prototype.getQueryStore=function(){var n=Object.create(null);return this.queries.forEach(function(e,i){n[i]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}}),n},t.prototype.resetErrors=function(n){var e=this.queries.get(n);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(n){var e=this.transformCache;if(!e.has(n)){var i=this.cache.transformDocument(n),s=function(t){return pR([xZ],rm(t))}(this.cache.transformForLink(i)),r=this.localState.clientQuery(i),o=s&&this.localState.serverQuery(s),a={document:i,hasClientExports:hZ(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:r,serverQuery:o,defaultVars:G1(Rh(i)),asQuery:et(et({},i),{definitions:i.definitions.map(function(c){return"OperationDefinition"===c.kind&&"query"!==c.operation?et(et({},c),{operation:"query"}):c})})},l=function(c){c&&!e.has(c)&&e.set(c,a)};l(n),l(i),l(r),l(o)}return e.get(n)},t.prototype.getVariables=function(n,e){return et(et({},this.transform(n).defaultVars),e)},t.prototype.watchQuery=function(n){void 0===(n=et(et({},n),{variables:this.getVariables(n.query,n.variables)})).notifyOnNetworkStatusChange&&(n.notifyOnNetworkStatusChange=!1);var e=new bx(this),i=new ax({queryManager:this,queryInfo:e,options:n});return this.queries.set(i.queryId,e),e.init({document:i.query,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(n,e){var i=this;return void 0===e&&(e=this.generateQueryId()),__DEV__?Rt(n.query,"query option is required. You must specify your GraphQL document in the query option."):Rt(n.query,14),__DEV__?Rt("Document"===n.query.kind,'You must wrap the query string in a "gql" tag.'):Rt("Document"===n.query.kind,15),__DEV__?Rt(!n.returnPartialData,"returnPartialData option only supported on watchQuery."):Rt(!n.returnPartialData,16),__DEV__?Rt(!n.pollInterval,"pollInterval option only supported on watchQuery."):Rt(!n.pollInterval,17),this.fetchQuery(e,n).finally(function(){return i.stopQuery(e)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(n){this.stopQueryInStoreNoBroadcast(n),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(n){var e=this.queries.get(n);e&&e.stop()},t.prototype.clearStore=function(n){return void 0===n&&(n={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Qn("Store reset while query was in flight (not completed in link chain)"):new Qn(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=$n.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(n)},t.prototype.getObservableQueries=function(n){var e=this;void 0===n&&(n="active");var i=new Map,s=new Map,r=new Set;return Array.isArray(n)&&n.forEach(function(o){"string"==typeof o?s.set(o,!1):function(t){return Ii(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}(o)?s.set(e.transform(o).document,!1):Ii(o)&&o.query&&r.add(o)}),this.queries.forEach(function(o,a){var l=o.observableQuery,c=o.document;if(l){if("all"===n)return void i.set(a,l);var d=l.queryName;if("standby"===l.options.fetchPolicy||"active"===n&&!l.hasObservers())return;("active"===n||d&&s.has(d)||c&&s.has(c))&&(i.set(a,l),d&&s.set(d,!0),c&&s.set(c,!0))}}),r.size&&r.forEach(function(o){var a=rx("legacyOneTimeQuery"),l=e.getQuery(a).init({document:o.query,variables:o.variables}),c=new ax({queryManager:e,queryInfo:l,options:et(et({},o),{fetchPolicy:"network-only"})});Rt(c.queryId===a),l.setObservableQuery(c),i.set(a,c)}),__DEV__&&s.size&&s.forEach(function(o,a){o||__DEV__&&Rt.warn("Unknown query ".concat("string"==typeof a?"named ":"").concat(JSON.stringify(a,null,2)," requested in refetchQueries options.include array"))}),i},t.prototype.reFetchObservableQueries=function(n){var e=this;void 0===n&&(n=!1);var i=[];return this.getObservableQueries(n?"all":"active").forEach(function(s,r){var o=s.options.fetchPolicy;s.resetLastResults(),(n||"standby"!==o&&"cache-only"!==o)&&i.push(s.refetch()),e.getQuery(r).setDiff(null)}),this.broadcastQueries(),Promise.all(i)},t.prototype.setObservableQuery=function(n){this.getQuery(n.queryId).setObservableQuery(n)},t.prototype.startGraphQLSubscription=function(n){var e=this,i=n.query,s=n.fetchPolicy,r=n.errorPolicy,o=n.variables,a=n.context,l=void 0===a?{}:a;i=this.transform(i).document,o=this.getVariables(i,o);var c=function(u){return e.getObservableFromLink(i,l,u).map(function(f){if("no-cache"!==s&&(xx(f,r)&&e.cache.write({query:i,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:u}),e.broadcastQueries()),um(f))throw new Sd({graphQLErrors:f.errors});return f})};if(this.transform(i).hasClientExports){var d=this.localState.addExportedVariables(i,o,l).then(c);return new li(function(u){var f=null;return d.then(function(_){return f=_.subscribe(u)},u.error),function(){return f&&f.unsubscribe()}})}return c(o)},t.prototype.stopQuery=function(n){this.stopQueryNoBroadcast(n),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(n){this.stopQueryInStoreNoBroadcast(n),this.removeQuery(n)},t.prototype.removeQuery=function(n){this.fetchCancelFns.delete(n),this.queries.has(n)&&(this.getQuery(n).stop(),this.queries.delete(n))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(n){return n.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(n,e,i,s){var o,r=this;void 0===s&&(s=null!==(o=null==e?void 0:e.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var a,l=this.transform(n).serverQuery;if(l){var d=this.inFlightLinkObservables,u=this.link,f={query:l,variables:i,operationName:j1(l)||void 0,context:this.prepareContext(et(et({},e),{forceFetch:!s}))};if(e=f.context,s){var _=d.get(l)||new Map;d.set(l,_);var T=Pl(i);if(!(a=_.get(T))){var k=new Bh([$1(u,f)]);_.set(T,a=k),k.cleanup(function(){_.delete(T)&&_.size<1&&d.delete(l)})}}else a=new Bh([$1(u,f)])}else a=new Bh([li.of({data:{}})]),e=this.prepareContext(e);var $=this.transform(n).clientQuery;return $&&(a=tx(a,function(L){return r.localState.runResolvers({document:$,remoteResult:L,context:e,variables:i})})),a},t.prototype.getResultsFromLink=function(n,e,i){var s=n.lastRequestId=this.generateRequestId();return tx(this.getObservableFromLink(n.document,i.context,i.variables),function(r){var o=Rl(r.errors);if(s>=n.lastRequestId){if(o&&"none"===i.errorPolicy)throw n.markError(new Sd({graphQLErrors:r.errors}));n.markResult(r,i,e),n.markReady()}var a={data:r.data,loading:!1,networkStatus:$n.ready};return o&&"ignore"!==i.errorPolicy&&(a.errors=r.errors,a.networkStatus=$n.error),a},function(r){var o=function(t){return t.hasOwnProperty("graphQLErrors")}(r)?r:new Sd({networkError:r});throw s>=n.lastRequestId&&n.markError(o),o})},t.prototype.fetchQueryObservable=function(n,e,i){var s=this;void 0===i&&(i=$n.loading);var r=this.transform(e.query).document,o=this.getVariables(r,e.variables),a=this.getQuery(n),l=this.defaultOptions.watchQuery,c=e.fetchPolicy,u=e.errorPolicy,_=e.returnPartialData,k=e.notifyOnNetworkStatusChange,L=e.context,ue=Object.assign({},e,{query:r,variables:o,fetchPolicy:void 0===c?l&&l.fetchPolicy||"cache-first":c,errorPolicy:void 0===u?l&&l.errorPolicy||"none":u,returnPartialData:void 0!==_&&_,notifyOnNetworkStatusChange:void 0!==k&&k,context:void 0===L?{}:L}),Te=function(Ue){ue.variables=Ue;var He=s.fetchQueryByPolicy(a,ue,i);return"standby"!==ue.fetchPolicy&&He.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",e),He},Fe=function(){return s.fetchCancelFns.delete(n)};this.fetchCancelFns.set(n,function(Ue){Fe(),setTimeout(function(){return Be.cancel(Ue)})});var Be=new Bh(this.transform(ue.query).hasClientExports?this.localState.addExportedVariables(ue.query,ue.variables,ue.context).then(Te):Te(ue.variables));return Be.promise.then(Fe,Fe),Be},t.prototype.refetchQueries=function(n){var e=this,i=n.updateCache,s=n.include,r=n.optimistic,o=void 0!==r&&r,a=n.removeOptimistic,l=void 0===a?o?rx("refetchQueries"):void 0:a,c=n.onQueryUpdated,d=new Map;s&&this.getObservableQueries(s).forEach(function(f,_){d.set(_,{oq:f,lastDiff:e.getQuery(_).getDiff()})});var u=new Map;return i&&this.cache.batch({update:i,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(f,_,T){var k=f.watcher instanceof bx&&f.watcher.observableQuery;if(k){if(c){d.delete(k.queryId);var $=c(k,_,T);return!0===$&&($=k.refetch()),!1!==$&&u.set(k,$),$}null!==c&&d.set(k.queryId,{oq:k,lastDiff:T,diff:_})}}}),d.size&&d.forEach(function(f,_){var L,T=f.oq,k=f.lastDiff,$=f.diff;if(c){if(!$){var J=T.queryInfo;J.reset(),$=J.getDiff()}L=c(T,$,k)}(!c||!0===L)&&(L=T.refetch()),!1!==L&&u.set(T,L),_.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(_)}),l&&this.cache.removeOptimistic(l),u},t.prototype.fetchQueryByPolicy=function(n,e,i){var s=this,r=e.query,o=e.variables,a=e.fetchPolicy,l=e.refetchWritePolicy,c=e.errorPolicy,d=e.returnPartialData,u=e.context,f=e.notifyOnNetworkStatusChange,_=n.networkStatus;n.init({document:this.transform(r).document,variables:o,networkStatus:i});var T=function(){return n.getDiff(o)},k=function(Te,Fe){void 0===Fe&&(Fe=n.networkStatus||$n.loading);var Be=Te.result;__DEV__&&!d&&!ds(Be,{})&&xR(Te.missing);var Ue=function(He){return li.of(et({data:He,loading:Oh(Fe),networkStatus:Fe},Te.complete?null:{partial:!0}))};return Be&&s.transform(r).hasForcedResolvers?s.localState.runResolvers({document:r,remoteResult:{data:Be},context:u,variables:o,onlyRunForcedResolvers:!0}).then(function(He){return Ue(He.data||void 0)}):Ue(Be)},$="no-cache"===a?0:i===$n.refetch&&"merge"!==l?1:2,L=function(){return s.getResultsFromLink(n,$,{variables:o,context:u,fetchPolicy:a,errorPolicy:c})},J=f&&"number"==typeof _&&_!==i&&Oh(i);switch(a){default:case"cache-first":return(ue=T()).complete?[k(ue,n.markReady())]:d||J?[k(ue),L()]:[L()];case"cache-and-network":var ue;return(ue=T()).complete||d||J?[k(ue),L()]:[L()];case"cache-only":return[k(T(),n.markReady())];case"network-only":return J?[k(T()),L()]:[L()];case"no-cache":return J?[k(n.getDiff()),L()]:[L()];case"standby":return[]}},t.prototype.getQuery=function(n){return n&&!this.queries.has(n)&&this.queries.set(n,new bx(this,n)),this.queries.get(n)},t.prototype.prepareContext=function(n){void 0===n&&(n={});var e=this.localState.prepareContext(n);return et(et({},e),{clientAwareness:this.clientAwareness})},t}();function wx(t,n){return cm(t,n,n.variables&&{variables:et(et({},t&&t.variables),n.variables)})}var $R=!1,UR=function(){function t(n){var e=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var i=n.uri,o=n.cache,a=n.ssrMode,l=void 0!==a&&a,c=n.ssrForceFetchDelay,d=void 0===c?0:c,u=n.connectToDevTools,f=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,_=n.queryDeduplication,T=void 0===_||_,k=n.defaultOptions,$=n.assumeImmutableResults,L=void 0!==$&&$,J=n.resolvers,ue=n.typeDefs,Te=n.fragmentMatcher,Fe=n.name,Be=n.version,Ue=n.link;if(Ue||(Ue=i?new JJ({uri:i,credentials:n.credentials,headers:n.headers}):wd.empty()),!o)throw __DEV__?new Qn("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Qn(7);if(this.link=Ue,this.cache=o,this.disableNetworkFetches=l||d>0,this.queryDeduplication=T,this.defaultOptions=k||Object.create(null),this.typeDefs=ue,d&&setTimeout(function(){return e.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!$R&&__DEV__&&($R=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var He=window.navigator,it=He&&He.userAgent,lt=void 0;"string"==typeof it&&(it.indexOf("Chrome/")>-1?lt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":it.indexOf("Firefox/")>-1&&(lt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),lt&&__DEV__&&Rt.log("Download the Apollo DevTools for a better development experience: "+lt)}this.version="3.6.9",this.localState=new zR({cache:o,client:this,resolvers:J,fragmentMatcher:Te}),this.queryManager=new oee({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:T,ssrMode:l,clientAwareness:{name:Fe,version:Be},localState:this.localState,assumeImmutableResults:L,onBroadcast:f?function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.getQueryStore(),mutations:e.queryManager.mutationStore||{}},dataWithOptimisticResults:e.cache.extract(!0)})}:void 0})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(n){return this.defaultOptions.watchQuery&&(n=wx(this.defaultOptions.watchQuery,n)),this.disableNetworkFetches&&("network-only"===n.fetchPolicy||"cache-and-network"===n.fetchPolicy)&&(n=et(et({},n),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(n)},t.prototype.query=function(n){return this.defaultOptions.query&&(n=wx(this.defaultOptions.query,n)),__DEV__?Rt("cache-and-network"!==n.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Rt("cache-and-network"!==n.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===n.fetchPolicy&&(n=et(et({},n),{fetchPolicy:"cache-first"})),this.queryManager.query(n)},t.prototype.mutate=function(n){return this.defaultOptions.mutate&&(n=wx(this.defaultOptions.mutate,n)),this.queryManager.mutate(n)},t.prototype.subscribe=function(n){return this.queryManager.startGraphQLSubscription(n)},t.prototype.readQuery=function(n,e){return void 0===e&&(e=!1),this.cache.readQuery(n,e)},t.prototype.readFragment=function(n,e){return void 0===e&&(e=!1),this.cache.readFragment(n,e)},t.prototype.writeQuery=function(n){this.cache.writeQuery(n),this.queryManager.broadcastQueries()},t.prototype.writeFragment=function(n){this.cache.writeFragment(n),this.queryManager.broadcastQueries()},t.prototype.__actionHookForDevTools=function(n){this.devToolsHookCb=n},t.prototype.__requestRaw=function(n){return $1(this.link,n)},t.prototype.resetStore=function(){var n=this;return Promise.resolve().then(function(){return n.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(n.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return n.reFetchObservableQueries()})},t.prototype.clearStore=function(){var n=this;return Promise.resolve().then(function(){return n.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(n.clearStoreCallbacks.map(function(e){return e()}))})},t.prototype.onResetStore=function(n){var e=this;return this.resetStoreCallbacks.push(n),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(i){return i!==n})}},t.prototype.onClearStore=function(n){var e=this;return this.clearStoreCallbacks.push(n),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(i){return i!==n})}},t.prototype.reFetchObservableQueries=function(n){return this.queryManager.reFetchObservableQueries(n)},t.prototype.refetchQueries=function(n){var e=this.queryManager.refetchQueries(n),i=[],s=[];e.forEach(function(o,a){i.push(a),s.push(o)});var r=Promise.all(s);return r.queries=i,r.results=s,r.catch(function(o){__DEV__&&Rt.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(o))}),r},t.prototype.getObservableQueries=function(n){return void 0===n&&(n="active"),this.queryManager.getObservableQueries(n)},t.prototype.extract=function(n){return this.cache.extract(n)},t.prototype.restore=function(n){return this.cache.restore(n)},t.prototype.addResolvers=function(n){this.localState.addResolvers(n)},t.prototype.setResolvers=function(n){this.localState.setResolvers(n)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(n){this.localState.setFragmentMatcher(n)},t.prototype.setLink=function(n){this.link=this.queryManager.link=n},t}();const WR=new class extends no{}(class extends Hg{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}});class uee{constructor(n,e=0){this.scheduler=n,this.delay=e}call(n,e){return e.subscribe(new gm(n,this.scheduler,this.delay))}}class gm extends se{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(gm.dispatch,this.delay,new hee(n,this.destination)))}_next(n){this.scheduleMessage(Ks.createNext(n))}_error(n){this.scheduleMessage(Ks.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Ks.createComplete()),this.unsubscribe()}}class hee{constructor(n,e){this.notification=n,this.destination=e}}function YR(t){return new S(n=>(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}class pee{constructor(n){this.zone=n,this.now=Date.now?Date.now:()=>+new Date}schedule(n,e=0,i){return this.zone.run(()=>WR.schedule(n,e,i))}}function qR(t){return t[te]=()=>t,t}function XR(t,n){return t.pipe(function(t,n=0){return function(i){return i.lift(new uee(t,n))}}(new pee(n)))}function QR(t,n,e){return t&&void 0!==t[n]?t[n]:e}class mee{constructor(n,e,i){this.obsQuery=n;const s=XR(K(qR(this.obsQuery)),e);this.valueChanges=i.useInitialLoading?s.pipe(function(t){return function(e){return new S(function(s){const r=t.getCurrentResult(),{loading:o,errors:a,error:l,partial:c,data:d}=r,{partialRefetch:u,fetchPolicy:f}=t.options,_=a||l;return u&&c&&(!d||0===Object.keys(d).length)&&"cache-only"!==f&&!o&&!_&&s.next(Object.assign(Object.assign({},r),{loading:!0,networkStatus:$n.loading})),e.subscribe(s)})}}(this.obsQuery)):s,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setOptions(n){return this.obsQuery.setOptions(n)}setVariables(n){return this.obsQuery.setVariables(n)}}const _ee=new pt("APOLLO_FLAGS"),Cx=new pt("APOLLO_OPTIONS"),yee=new pt("APOLLO_NAMED_OPTIONS");class KR{constructor(n,e,i){this.ngZone=n,this.flags=e,this._client=i,this.useInitialLoading=QR(e,"useInitialLoading",!1),this.useMutationLoading=QR(e,"useMutationLoading",!1)}watchQuery(n){return new mee(this.ensureClient().watchQuery(Object.assign({},n)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},n))}query(n){return YR(()=>this.ensureClient().query(Object.assign({},n)))}mutate(n){var e;return function(t,n){return n?t.pipe(ai({loading:!0}),g(e=>Object.assign(Object.assign({},e),{loading:!!e.loading}))):t.pipe(g(e=>Object.assign(Object.assign({},e),{loading:!1})))}(YR(()=>this.ensureClient().mutate(Object.assign({},n))),null!==(e=n.useMutationLoading)&&void 0!==e?e:this.useMutationLoading)}subscribe(n,e){const i=K(qR(this.ensureClient().subscribe(Object.assign({},n))));return e&&!0!==e.useZone?i:XR(i,this.ngZone)}getClient(){return this.client}setClient(n){this.client=n}get client(){return this._client}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let JR=(()=>{class t extends KR{constructor(e,i,s,r){if(super(e,r),this._ngZone=e,this.map=new Map,i&&this.createDefault(i),s&&"object"==typeof s)for(let o in s)s.hasOwnProperty(o)&&this.createNamed(o,s[o])}create(e,i){Mx(i)?this.createDefault(e):this.createNamed(i,e)}default(){return this}use(e){return Mx(e)?this.default():this.map.get(e)}createDefault(e){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new UR(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new KR(this._ngZone,this.flags,new UR(i)))}removeClient(e){Mx(e)?this._client=void 0:this.map.delete(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(Cx,8),Me(yee,8),Me(_ee,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Mx(t){return!t||"default"===t}const vee=[JR];let bee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:vee}),t})(),jh=(()=>{class t{constructor(e,i,s){this.http=e,this.translateService=i,this.apollo=s,this.userId=Vg,this.lastErrTime=0,this.lastFailedRequestTime=0}setUserId(e){return e=encodeURI(e),this.getUserData(e).pipe(g(i=>(this.userId=null==i?void 0:i.id,i)))}useDefaultId(){this.userId=Vg}getUserData(e){return this.http.get(`${dr}/api/users/${e}`)}getGeneralGenresStats(){return this.http.get(`${KI}/main/genres-stats`)}getTotalTimeSpentAnime(){return this.http.get(`${KI}/main/total-time`)}getUserHistory(){return this.http.get(`${dr}/api/users/${this.userId}/history?limit=2&locale=${this.translateService.getLanguage()}`).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})))}getUserList(){return this.http.get(`${dr}/api/v2/user_rates/?user_id=${this.userId}`)}getAnimeDetailedList(e,i=1){return(null==e?void 0:e.length)>0?this.http.get(`${dr}/api/animes/?ids=${e.join(",")}&limit=50&page=${i}`):Et([])}getAnimeList(e=1,i){return this.http.get(`${dr}/api/users/${i.id||this.userId}/anime_rates?limit=${Bg[Oi.ANIME]}&page=${e}`)}getMangaList(e=1,i){return this.http.get(`${dr}/api/users/${i.id||this.userId}/manga_rates?limit=${Bg[Oi.MANGA]}&page=${e}`)}getUserRates(e=1,i){return this.apollo.query({query:"Anime"===i.targetType?jK:zK,variables:{userId:i.id||this.userId,limit:i.limit,targetType:i.targetType,page:e}}).pipe(g(s=>{var r;return null===(r=null==s?void 0:s.data)||void 0===r?void 0:r.userRates}))}getDataTypeListGraphQL(e,i){return this.fetchPaginatedData(this.getUserRates,{id:i,targetType:Rs.capitalizeFirstLetter(e)})}getDataTypeListGraphQLParallel(e,i,s){return this.fetchDataInParallel(this.getUserRates,i,{id:null==s?void 0:s.id,targetType:Rs.capitalizeFirstLetter(e),statuses:null==s?void 0:s.statuses}).pipe(nP(TQ,[]),g(r=>Rs.flatten(r)))}getAllAnimeList(e){return this.fetchPaginatedData(this.getAnimeList,{id:e,targetType:Oi.MANGA}).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})),$i(()=>Et([])))}getAllMangaList(e){return this.fetchPaginatedData(this.getMangaList,{id:e,targetType:Oi.MANGA}).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})),$i(()=>Et([])))}rateLimit(e,i,s,r){return e.pipe(hh((a,l)=>{const c=Date.now(),d=c-s;if((a=a.filter(u=>u.until>d)).length>=i){const f=a[a.length-1],_=a[0].until+s*Math.floor(a.length/i);a.push({delay:f.until{const l=a[a.length-1],c=Et(l.value);if(this.lastErrTime>0){const d=Date.now()-this.lastErrTime;return d0){const a=Math.max(Math.ceil(i/Bg[Oi.ANIME]),1);return this.rateLimit(function(t=0,n,e){return new S(i=>{void 0===n&&(n=t,t=0);let s=0,r=t;if(e)return e.schedule(MQ,0,{index:s,count:n,start:t,subscriber:i});for(;;){if(s++>=n){i.complete();break}if(i.next(r++),i.closed)break}})}(1,a),4,1500,2e4).pipe(Re(l=>0===l?[]:e.bind(this).call(this,l,s).pipe(Zo(250),fi(c=>o=0),Gg(c=>c.pipe(Xo((d,u)=>{var f;const _=this.lastFailedRequestTime,T=Date.now();return r++,o++,this.lastFailedRequestTime=Date.now(),429===(null===(f=null==d?void 0:d.networkError)||void 0===f?void 0:f.status)&&r<20?T-_>5e3?Et(d).pipe(Zo(100)):(this.lastErrTime=T,Et(d).pipe(Zo(1e4+200*o))):zg(d)}))))))}return Et([])}fetchPaginatedData(e,i){let s=!0,r=1;return e.bind(this).call(this,r,i).pipe(function(t,n=Number.POSITIVE_INFINITY,e){return n=(n||0)<1?Number.POSITIVE_INFINITY:n,i=>i.lift(new RQ(t,n,e))}(o=>s?e.bind(this).call(this,r,i):Eo),iP(o=>{var a;return!!s&&(o.length<(i.limit||Bg[null===(a=null==i?void 0:i.targetType)||void 0===a?void 0:a.toLowerCase()])?s=!1:r++,!0)}),nP((o,a)=>[...o,...a],[]))}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa),Me(qs),Me(JR))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dee={provide:Lb,useFactory:function(t,n){return()=>{if(Sa(n)){const e=Array.from(t.querySelectorAll(`[class*=${ZR}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(s=>{s.classList.contains(`${ZR}ssr`)&&s.parentNode?s.parentNode.removeChild(s):s.className.replace(i,"")})}}},deps:[wt,xs],multi:!0},ZR="flex-layout-";let Dx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Dee]}),t})();class Nl{constructor(n=!1,e="all",i="",s="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=s,this.priority=r,this.property=""}clone(){return new Nl(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let eN=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,s){const r=this.stylesheet.get(e);r?r.set(i,s):this.stylesheet.set(e,new Map([[i,s]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const s=this.stylesheet.get(e);let r="";if(s){const o=s.get(i);("number"==typeof o||"string"==typeof o)&&(r=o+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Sx={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},oo=new pt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Sx}),Fl=new pt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Ex=new pt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function tN(t,n){return t=t?t.clone():new Nl,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}const Tx="inline",nN=["row","column","row-reverse","column-reverse"];function Tee(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let xi=(()=>{class t{constructor(e,i,s,r){this.elementRef=e,this.styleBuilder=i,this.styler=s,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const s=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,s)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const s=this.styleBuilder,r=s.shouldCache;let o=this.styleCache.get(e);(!o||!r)&&(o=s.buildStyles(e,i),r&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),s.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[s,r]=this.styler.getFlowDirection(e);if(!r&&i){const o=function(t){let[n,e,i]=function(t){t=t?t.toLowerCase():"";let[n,e,i]=t.split(" ");return nN.find(s=>s===n)||(n=nN[0]),e===Tx&&(e=i!==Tx?i:"",i=Tx),[n,Tee(e),!!i]}(t);return function(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}(s);this.styler.applyStyleToElements(o,[e])}return s.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,s=this.nativeElement){this.styler.applyStyleToElement(s,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){!function(){throw new Error("invalid")}()},t.\u0275dir=Le({type:t,features:[rn]}),t})();const kee=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],iN="(orientation: portrait) and (max-width: 599.98px)",sN="(orientation: landscape) and (max-width: 959.98px)",rN="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",oN="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",aN="(orientation: portrait) and (min-width: 840px)",lN="(orientation: landscape) and (min-width: 1280px)",ta={HANDSET:`${iN}, ${sN}`,TABLET:`${rN} , ${oN}`,WEB:`${aN}, ${lN} `,HANDSET_PORTRAIT:`${iN}`,TABLET_PORTRAIT:`${rN} `,WEB_PORTRAIT:`${aN}`,HANDSET_LANDSCAPE:`${sN}`,TABLET_LANDSCAPE:`${oN}`,WEB_LANDSCAPE:`${lN}`},Oee=[{alias:"handset",priority:2e3,mediaQuery:ta.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ta.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ta.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ta.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ta.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ta.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ta.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ta.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ta.WEB_PORTRAIT,overlapping:!0}],Pee=/(\.|-|_)/g;function Ree(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function Lee(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?function(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e[i.alias],i):e[i.alias]=i}),function(t){return t.forEach(n=>{n.suffix||(n.suffix=function(t){return t.replace(Pee,"|").split("|").map(Ree).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}const cN=new pt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=bu(Ex),n=bu(oo),e=[].concat.apply([],(t||[]).map(s=>Array.isArray(s)?s:[s]));return Lee((n.disableDefaultBps?[]:kee).concat(n.addOrientationBps?Oee:[]),e)}});function zh(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function Bee(t,n){return(t.priority||0)-(n.priority||0)}let Gh=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Bee)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias==e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery==e)}get overlappings(){return this.items.filter(e=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,i){let s=this.findByMap.get(e);return s||(s=this.items.find(i)||null,this.findByMap.set(e,s)),s||null}}return t.\u0275fac=function(e){return new(e||t)(Me(cN))},t.\u0275prov=Ze({factory:function(){return new t(Me(cN))},token:t,providedIn:"root"}),t})(),ym=(()=>{class t{constructor(e,i,s){this._zone=e,this._platformId=i,this._document=s,this.source=new ti(new Nl(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,s)=>{i.matches&&e.push(s)}),e}isActive(e){const i=this.registry.get(e);return i?i.matches:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const s=this._observable$.pipe(mn(o=>!i||e.indexOf(o.mediaQuery)>-1));return De(new S(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),s)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],s=[];return function(t,n){const e=t.filter(i=>!dN[i]);if(e.length>0){const i=e.join(", ");try{const s=n.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(s),e.forEach(r=>dN[r]=s)}catch(s){console.error(s)}}}(i,this._document),i.forEach(r=>{const o=l=>{this._zone.run(()=>this.source.next(new Nl(l.matches,r)))};let a=this.registry.get(r);a||(a=this.buildMQL(r),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(r,a)),a.matches&&s.push(new Nl(!0,r))}),s}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Sa(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(xs),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(xs),Me(wt))},token:t,providedIn:"root"}),t})();const dN={},Ad="print",Gee={alias:Ad,mediaQuery:Ad,priority:1e3};let uN=(()=>{class t{constructor(e,i,s){this.breakpoints=e,this.layoutConfig=i,this._document=s,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new $ee,this.deactivations=[]}withPrintQuery(e){return[...e,Ad]}isPrintEvent(e){return e.mediaQuery.startsWith(Ad)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(zh)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?i.mediaQuery:""),tN(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Nl(!0,Ad))),e.updateStyles())},s=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",s),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(s)}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const i=this.breakpoints.findByQuery(e.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(zh))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(Me(Gh),Me(oo),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(Gh),Me(oo),Me(wt))},token:t,providedIn:"root"}),t})();class $ee{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Gee),n.sort(zh),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Ad)}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}function hN(t){for(let n in t){let e=t[n]||"";switch(n){case"display":t.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":e=e||"row",t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e}}return t}let ci=(()=>{class t{constructor(e,i,s,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=s,this.layoutConfig=r}applyStyleToElement(e,i,s=null){let r={};"string"==typeof i&&(r[i]=s,i=r),r=this.layoutConfig.disableVendorPrefixes?i:hN(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const s=this.layoutConfig.disableVendorPrefixes?e:hN(e);i.forEach(r=>{this._applyMultiValueStyleToElement(s,r)})}getFlowDirection(e){const i="flex-direction";let s=this.lookupStyle(e,i);return[s||"row",this.lookupInlineStyle(e,i)||dd(this._platformId)&&this._serverModuleLoaded?s:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){return e.getAttribute(i)||""}lookupInlineStyle(e,i){return Sa(this._platformId)?e.style.getPropertyValue(i):this._getServerStyle(e,i)}lookupStyle(e,i,s=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(Sa(this._platformId)?s||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(s=>{const r=e[s],o=Array.isArray(r)?r:[r];o.sort();for(let a of o)a=a?a+"":"",Sa(this._platformId)||!this._serverModuleLoaded?Sa(this._platformId)?i.style.setProperty(s,a):this._setServerStyle(i,s,a):this._serverStylesheet.addStyleToElement(i,s,a)})}_setServerStyle(e,i,s){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=this._readStyleAttribute(e);r[i]=s||"",this._writeStyleAttribute(e,r)}_getServerStyle(e,i){return this._readStyleAttribute(e)[i]||""}_readStyleAttribute(e){const i={},s=e.getAttribute("style");if(s){const r=s.split(/;+/g);for(let o=0;o0){const l=a.indexOf(":");if(-1===l)throw new Error(`Invalid CSS style: ${a}`);i[a.substr(0,l).trim()]=a.substr(l+1).trim()}}}return i}_writeStyleAttribute(e,i){let s="";for(const r in i)i[r]&&(s+=r+":"+i[r]+";");e.setAttribute("style",s)}}return t.\u0275fac=function(e){return new(e||t)(Me(eN),Me(Fl),Me(xs),Me(oo))},t.\u0275prov=Ze({factory:function(){return new t(Me(eN),Me(Fl),Me(xs),Me(oo))},token:t,providedIn:"root"}),t})(),wi=(()=>{class t{constructor(e,i,s){this.matchMedia=e,this.breakpoints=i,this.hook=s,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);i&&((e=tN(e,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(zh),this.updateStyles()):!e.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(zh),this.updateStyles()))}init(e,i,s,r,o=[]){gN(this.updateMap,e,i,s),gN(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,s){const r=this.elementMap.get(e);if(r){const o=void 0!==s?r.get(s):this.getActivatedValues(r,i);if(o)return o.get(i)}}hasValue(e,i){const s=this.elementMap.get(e);if(s){const r=this.getActivatedValues(s,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,s,r){let o=this.elementMap.get(e);if(o){const l=(o.get(r)||new Map).set(i,s);o.set(r,l),this.elementMap.set(e,o)}else o=(new Map).set(r,(new Map).set(i,s)),this.elementMap.set(e,o);const a=this.getValue(e,i);void 0!==a&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(mn(s=>s.element===e&&s.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const s=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((o,a)=>{this.updateElement(i,a,o),s.delete(a)}),s.forEach(o=>{if(r=this.getActivatedValues(e,o),r){const a=r.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const s=this.clearMap.get(e);if(s){const r=s.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,s){const r=this.updateMap.get(e);if(r){const o=r.get(i);o&&(o(s),this.subject.next({element:e,key:i,value:s}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const s=this.elementMap.get(e);s&&(s.forEach((r,o)=>s.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const s=this.elementMap.get(e);if(s){const r=this.getActivatedValues(s,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let s=this.elementKeyMap.get(e);s||(s=new Set,this.elementKeyMap.set(e,s)),s.add(i)}watchExtraTriggers(e,i,s){if(s&&s.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const a=De(...s).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});r.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;rs.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(fi(this.hook.interceptEvents(this)),mn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Me(ym),Me(Gh),Me(uN))},t.\u0275prov=Ze({factory:function(){return new t(Me(ym),Me(Gh),Me(uN))},token:t,providedIn:"root"}),t})();function gN(t,n,e,i){if(void 0!==i){let s=t.get(n);s||(s=new Map,t.set(n,s)),s.set(e,i)}}function Vt(t){return null!=t&&"false"!=`${t}`}function Li(t,n=0){return mN(t)?Number(t):n}function mN(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function vm(t){return Array.isArray(t)?t:[t]}function Yi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function na(t){return t instanceof tt?t.nativeElement:t}function Tt(t){return n=>n.lift(new Wee(t))}class Wee{constructor(n){this.notifier=n}call(n,e){const i=new Yee(n),s=Se(this.notifier,new ne(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class Yee extends _e{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Zee=(()=>{class t extends xi{constructor(e,i,s,r,o,a,l){super(e,null,i,s),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Ma(r,o,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ci),C(wi),C(wr),C(xa),C(ji),C(Ma,10))},t.\u0275dir=Le({type:t,inputs:{klass:["class","klass"]},features:[Je]}),t})();const ete=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Ax=(()=>{class t extends Zee{constructor(){super(...arguments),this.inputs=ete}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Je]}),t})();class rte{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function _N(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function vN(t){const[n,...e]=t.split(":");return new rte(n,e.join(":"))}function bN(t,n){return n.key&&(t[n.key]=n.value),t}let lte=(()=>{class t extends xi{constructor(e,i,s,r,o,a,l,c,d){super(e,null,i,s),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new xl(e,o,a)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=c&&dd(d)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=s=>this.sanitizer.sanitize(Ln.STYLE,s)||"";if(e)switch(_N(e)){case"string":return xN(function(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return xN(e,i);default:return function(t,n){let e=[];return"set"===_N(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function(t,n){return t.map(vN).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(bN,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ci),C(wi),C(wl),C(xa),C(ji),C(xl,10),C(Fl),C(xs))},t.\u0275dir=Le({type:t,features:[Je]}),t})();const cte=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let $h=(()=>{class t extends lte{constructor(){super(...arguments),this.inputs=cte}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Je]}),t})();function xN(t,n){return t.map(vN).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(bN,{})}let Ix,wN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx]]}),t})();function Ar(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Cm(t,n=jg){return e=>e.lift(new xte(t,n))}class xte{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new wte(n,this.dueTime,this.scheduler))}}class wte extends se{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Cte,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function Cte(t){t.debouncedNext()}function Mm(t){return n=>n.lift(new Mte(t))}class Mte{constructor(n){this.total=n}call(n,e){return e.subscribe(new Dte(n,this.total))}}class Dte extends se{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}function ia(t,n){return e=>e.lift(new Ste(t,n))}class Ste{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new Ete(n,this.compare,this.keySelector))}}class Ete extends se{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:s}=this;e=s?s(n):n}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}try{Ix="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){Ix=!1}let Od,yn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Sa(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ix)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Me(xs))},t.\u0275prov=Ze({factory:function(){return new t(Me(xs))},token:t,providedIn:"root"}),t})(),kd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const CN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function MN(){if(Od)return Od;if("object"!=typeof document||!document)return Od=new Set(CN),Od;let t=document.createElement("input");return Od=new Set(CN.filter(n=>(t.setAttribute("type",n),t.type===n))),Od}let Yh,Bl,Px;function Ll(t){return function(){if(null==Yh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function DN(){if(null==Bl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Bl=!1,Bl;if("scrollBehavior"in document.documentElement.style)Bl=!0;else{const t=Element.prototype.scrollTo;Bl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Bl}function SN(t){if(function(){if(null==Px){const t="undefined"!=typeof document?document.head:null;Px=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Px}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Vl(t){return t.composedPath?t.composedPath()[0]:t.target}function Rx(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Nx=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})(),EN=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=na(e);return new S(s=>{const o=this._observeElement(i).subscribe(s);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new E,s=this._mutationObserverFactory.create(r=>i.next(r));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:s}=this._observedElements.get(e);i&&i.disconnect(),s.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(Me(Nx))},t.\u0275prov=Ze({factory:function(){return new t(Me(Nx))},token:t,providedIn:"root"}),t})(),Sm=(()=>{class t{constructor(e,i,s){this._contentObserver=e,this._elementRef=i,this._ngZone=s,this.event=new ot,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Li(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Cm(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(EN),C(tt),C(xt))},t.\u0275dir=Le({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Nx]}),t})();function Tm(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const AN="cdk-describedby-message-container",kN="cdk-describedby-message",Am="cdk-describedby-host";let Pte=0;const Oo=new Map;let Ds=null,Fx=(()=>{class t{constructor(e){this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const r=Lx(i,s);"string"!=typeof i?(ON(i),Oo.set(r,{messageElement:i,referenceCount:0})):Oo.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;const r=Lx(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const o=Oo.get(r);o&&0===o.referenceCount&&this._deleteMessageElement(r)}Ds&&0===Ds.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Am}]`);for(let i=0;i0!=s.indexOf(kN));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=Oo.get(i);(function(t,n,e){const i=Tm(t,n);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Am,""),s.referenceCount++}_removeMessageReference(e,i){const s=Oo.get(i);s.referenceCount--,function(t,n,e){const s=Tm(t,n).filter(r=>r!=e.trim());s.length?t.setAttribute(n,s.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Am)}_isElementDescribedByMessage(e,i){const s=Tm(e,"aria-describedby"),r=Oo.get(i),o=r&&r.messageElement.id;return!!o&&-1!=s.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!s||r&&r.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})();function Lx(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function ON(t){t.id||(t.id=`${kN}-${Pte++}`)}class IN{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=fe.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,n instanceof Mo&&n.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Cm(n),mn(()=>this._pressedLetters.length>0),g(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let s=1;s!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Ar(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),s=e[i];this._activeItem=null==s?null:s,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const s=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Mo?this._items.toArray():this._items}}class Rte extends IN{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class km extends IN{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function Bx(t){return 0===t.offsetX&&0===t.offsetY}function Vx(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}"undefined"!=typeof Element&∈const LN=new pt("cdk-input-modality-detector-options"),Qte={ignoreKeys:[18,17,224,91,16]},Id=Ll({passive:!0,capture:!0});let VN=(()=>{class t{constructor(e,i,s,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ti(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Vl(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Bx(o)?"keyboard":"mouse"),this._mostRecentTarget=Vl(o))},this._onTouchstart=o=>{Vx(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vl(o))},this._options=Object.assign(Object.assign({},Qte),r),this.modalityDetected=this._modality.pipe(Mm(1)),this.modalityChanged=this.modalityDetected.pipe(ia()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Id),s.addEventListener("mousedown",this._onMousedown,Id),s.addEventListener("touchstart",this._onTouchstart,Id)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Id),document.removeEventListener("mousedown",this._onMousedown,Id),document.removeEventListener("touchstart",this._onTouchstart,Id))}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt),Me(wt),Me(LN,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt),Me(wt),Me(LN,8))},token:t,providedIn:"root"}),t})();const HN=new pt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),jN=new pt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let zN=(()=>{class t{constructor(e,i,s,r){this._ngZone=i,this._defaultOptions=r,this._document=s,this._liveElement=e||this._createLiveElement()}announce(e,...i){const s=this._defaultOptions;let r,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[r,o]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),null==o&&s&&(o=s.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let r=0;r{class t{constructor(e,i,s,r,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new E,this._rootNodeFocusAndBlurListener=a=>{const l=Vl(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const s=na(e);if(!this._platform.isBrowser||1!==s.nodeType)return Et(null);const r=SN(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new E,rootNode:r};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=na(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const r=na(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,s){s?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),r=Vl(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Om),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Om)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Om),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Om),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(yn),Me(VN),Me(wt,8),Me(GN,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(yn),Me(VN),Me(wt,8),Me(GN,8))},token:t,providedIn:"root"}),t})(),Jte=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new ot}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Js))},t.\u0275dir=Le({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const $N="cdk-high-contrast-black-on-white",UN="cdk-high-contrast-white-on-black",Hx="cdk-high-contrast-active";let WN=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Hx),e.remove($N),e.remove(UN),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Hx),e.add($N)):2===i&&(e.add(Hx),e.add(UN))}}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(wt))},token:t,providedIn:"root"}),t})(),YN=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(Me(WN))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[kd,Em]]}),t})();const qN=new pt("cdk-dir-doc",{providedIn:"root",factory:function(){return bu(wt)}});let Bi=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new ot,e){const s=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||s;this.value="ltr"===r||"rtl"===r?r:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Me(qN,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(qN,8))},token:t,providedIn:"root"}),t})(),Pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const XN=new Uo("12.2.13");class QN{}const sa="*";function Ns(t,n){return{type:7,name:t,definitions:n,options:{}}}function pi(t,n=null){return{type:4,styles:n,timings:t}}function KN(t,n=null){return{type:2,steps:t,options:n}}function Jt(t){return{type:6,styles:t,offset:null}}function Wn(t,n,e){return{type:0,name:t,styles:n,options:e}}function Xh(t){return{type:5,steps:t}}function ni(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function JN(t=null){return{type:9,options:t}}function ZN(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function eF(t){Promise.resolve(null).then(t)}class Rd{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){eF(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class tF{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?eF(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function nF(){return"undefined"!=typeof window&&void 0!==window.document}function zx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Va(t){switch(t.length){case 0:return new Rd;case 1:return t[0];default:return new tF(t)}}function iF(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(d=>{const u=d.offset,f=u==l,_=f&&c||{};Object.keys(d).forEach(T=>{let k=T,$=d[T];if("offset"!==T)switch(k=n.normalizePropertyName(k,o),$){case"!":$=s[T];break;case sa:$=r[T];break;default:$=n.normalizeStyleValue(T,k,$,o)}_[k]=$}),f||a.push(_),c=_,l=u}),o.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${o.join(d)}`)}return a}function Gx(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&$x(e,"start",t)));break;case"done":t.onDone(()=>i(e&&$x(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&$x(e,"destroy",t)))}}function $x(t,n,e){const i=e.totalTime,r=Ux(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function Ux(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ur(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function sF(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Wx=(t,n)=>!1,Yx=(t,n)=>!1,rF=(t,n,e)=>[];const oF=zx();(oF||"undefined"!=typeof Element)&&(Wx=nF()?(t,n)=>{for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1}:(t,n)=>t.contains(n),Yx=(()=>{if(oF||Element.prototype.matches)return(t,n)=>t.matches(n);{const t=Element.prototype,n=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return n?(e,i)=>n.apply(e,[i]):Yx}})(),rF=(t,n,e)=>{let i=[];if(e){const s=t.querySelectorAll(n);for(let r=0;r{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");n[i]=t[e]}),n}let cF=(()=>{class t{validateStyleProperty(e){return qx(e)}matchesElement(e,i){return Xx(e,i)}containsElement(e,i){return Qx(e,i)}query(e,i,s){return Kx(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new Rd(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),Jx=(()=>{class t{}return t.NOOP=new cF,t})();const Zx="ng-enter",Im="ng-leave",Pm="ng-trigger",Rm=".ng-trigger",uF="ng-animating",ew=".ng-animating";function jl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:tw(parseFloat(n[1]),n[2])}function tw(t,n){return"s"===n?1e3*t:t}function Nm(t,n,e){return t.hasOwnProperty("duration")?t:function(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=tw(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=tw(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push("Duration values below 0 are not allowed for this animation step."),a=!0),r<0&&(n.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&n.splice(l,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:r,easing:o}}(t,n,e)}function Nd(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ha(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else Nd(t,e);return e}function fF(t,n,e){return e?n+":"+e+";":""}function pF(t){let n="";for(let e=0;e{const s=iw(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),zx()&&pF(t))}function zl(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=iw(e);t.style[i]=""}),zx()&&pF(t))}function Qh(t){return Array.isArray(t)?1==t.length?t[0]:KN(t):t}const nw=new RegExp("{{\\s*(.+?)\\s*}}","g");function gF(t){let n=[];if("string"==typeof t){let e;for(;e=nw.exec(t);)n.push(e[1]);nw.lastIndex=0}return n}function Fm(t,n,e){const i=t.toString(),s=i.replace(nw,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return s==i?t:s}function Lm(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const ane=/-+([a-z0-9])/g;function iw(t){return t.replace(ane,(...n)=>n[1].toUpperCase())}function lne(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function mF(t,n){return 0===t||0===n}function _F(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;sfunction(t,n,e){if(":"==t[0]){const l=function(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${t}" is not supported`),n;const s=i[1],r=i[2],o=i[3];n.push(yF(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(yF(o,s))}(i,e,n)):e.push(t),e}const Vm=new Set(["true","1"]),Hm=new Set(["false","0"]);function yF(t,n){const e=Vm.has(t)||Hm.has(t),i=Vm.has(n)||Hm.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Vm.has(t):Hm.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Vm.has(n):Hm.has(n)),o&&a}}const hne=new RegExp("s*:selfs*,?","g");function rw(t,n,e){return new fne(t).build(n,e)}class fne{constructor(n){this._driver=n}build(n,e){const i=new mne(e);return this._resetContextStyleTimingState(i),hr(this,Qh(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};if(i.styles.forEach(a=>{if(jm(a)){const l=a;Object.keys(l).forEach(c=>{gF(l[c]).forEach(d=>{o.hasOwnProperty(d)||r.add(d)})})}}),r.size){const a=Lm(r.values());e.errors.push(`state("${n.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=hr(this,Qh(n.animation),e);return{type:1,matchers:cne(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Gl(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>hr(this,i,e)),options:Gl(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=hr(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:Gl(n.options)}}visitAnimate(n,e){const i=function(t,n){let e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return ow(Nm(t,n).duration,0,"");const i=t;if(i.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=ow(0,0,"");return r.dynamic=!0,r.strValue=i,r}return e=e||Nm(i,n),ow(e.duration,e.delay,e.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:Jt({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Jt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==sa?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(jm(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),d=!1),r=c.startTime),d&&(l[a]={startTime:r,endTime:s}),e.options&&function(t,n,e){const i=n.params||{},s=gF(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(`Unable to resolve the local animation param ${r} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let r=0;const o=[];let a=!1,l=!1,c=0;const d=n.steps.map(L=>{const J=this._makeStyleAst(L,e);let ue=null!=J.offset?J.offset:function(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(jm(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(jm(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(J.styles),Te=0;return null!=ue&&(r++,Te=J.offset=ue),l=l||Te<0||Te>1,a=a||Te0&&r{const ue=f>0?J==_?1:f*J:o[J],Te=ue*$;e.currentTime=T+k.delay+Te,k.duration=Te,this._validateStyleAst(L,e),L.offset=ue,i.styles.push(L)}),i}visitReference(n,e){return{type:8,animation:hr(this,Qh(n.animation),e),options:Gl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Gl(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Gl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(hne,"")),t=t.replace(/@\*/g,Rm).replace(/@\w+/g,e=>Rm+"-"+e.substr(1)).replace(/:animating/g,ew),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ur(e.collectedStyles,e.currentQuerySelector,{});const a=hr(this,Qh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Gl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Nm(n.timings,e.errors,!0);return{type:12,animation:hr(this,Qh(n.animation),e),timings:i,options:null}}}class mne{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function jm(t){return!Array.isArray(t)&&"object"==typeof t}function Gl(t){return t?(t=Nd(t)).params&&(t.params=function(t){return t?Nd(t):null}(t.params)):t={},t}function ow(t,n,e){return{duration:t,delay:n,easing:e}}function aw(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class zm{constructor(){this._map=new Map}consume(n){let e=this._map.get(n);return e?this._map.delete(n):e=[],e}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const xne=new RegExp(":enter","g"),Cne=new RegExp(":leave","g");function lw(t,n,e,i,s,r={},o={},a,l,c=[]){return(new Mne).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class Mne{buildKeyframes(n,e,i,s,r,o,a,l,c,d=[]){c=c||new zm;const u=new cw(n,e,c,s,r,d,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),hr(this,i,u);const f=u.timelines.filter(_=>_.containsAnimation());if(f.length&&Object.keys(a).length){const _=f[f.length-1];_.allowOnlyTimelineStyles()||_.setStyles([a],null,u.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[aw(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.consume(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?jl(i.duration):null,a=null!=i.delay?jl(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),hr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Gm);const o=jl(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>hr(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?jl(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),hr(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Nm(e.params?Fm(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?jl(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gm);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(n.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),hr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;hr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-u+(s.startTime-i.currentTimeline.startTime)}}const Gm={};class cw{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $m(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=jl(i.duration)),null!=i.delay&&(s.delay=jl(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Fm(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new cw(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Gm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new Dne(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(xne,"."+this._enterClassName)).replace(Cne,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class $m{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new $m(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||sa,this._currentKeyframe[e]=sa}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=sa})):Ha(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Fm(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:sa),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=Ha(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?n.add(d):u==sa&&e.add(d)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?Lm(n.values()):[],o=e.size?Lm(e.values()):[];if(i){const a=s[0],l=Nd(a);a.offset=0,l.offset=1,s=[a,l]}return aw(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class Dne extends $m{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=Ha(n[0],!1);l.offset=0,r.push(l);const c=Ha(n[0],!1);c.offset=xF(a),r.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let f=Ha(n[u],!1);f.offset=xF((e+f.offset*i)/o),r.push(f)}i=o,e=0,s="",n=r}return aw(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function xF(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class dw{}class Ene extends dw{normalizePropertyName(n,e){return iw(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(Tne[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(`Please provide a CSS unit value for ${n}:${i}`)}return o+r}}const Tne=(()=>function(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function wF(t,n,e,i,s,r,o,a,l,c,d,u,f){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:f}}const uw={};class CF{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,d){const u=[],f=this.ast.options&&this.ast.options.params||uw,T=this.buildStyles(i,a&&a.params||uw,u),k=l&&l.params||uw,$=this.buildStyles(s,k,u),L=new Set,J=new Map,ue=new Map,Te="void"===s,Fe={params:Object.assign(Object.assign({},f),k)},Be=d?[]:lw(n,e,this.ast.animation,r,o,T,$,Fe,c,u);let Ue=0;if(Be.forEach(it=>{Ue=Math.max(it.duration+it.delay,Ue)}),u.length)return wF(e,this._triggerName,i,s,Te,T,$,[],[],J,ue,Ue,u);Be.forEach(it=>{const lt=it.element,Xe=ur(J,lt,{});it.preStyleProps.forEach(Pe=>Xe[Pe]=!0);const qe=ur(ue,lt,{});it.postStyleProps.forEach(Pe=>qe[Pe]=!0),lt!==e&&L.add(lt)});const He=Lm(L.values());return wF(e,this._triggerName,i,s,Te,T,$,Be,He,J,ue,Ue)}}class One{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=Nd(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Fm(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Pne{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new One(s.style,s.options&&s.options.params||{},i)}),MF(this.states,"true","1"),MF(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new CF(n,s,this.states))}),this.fallbackTransition=function(t,n,e){return new CF(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function MF(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const Nne=new zm;class Fne{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],s=rw(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[n]=s}_buildPlayer(n,e,i){const s=n.element,r=iF(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=lw(this._driver,e,r,Zx,Im,{},{},i,Nne,s),o.forEach(d=>{const u=ur(a,d.element,{});d.postStyleProps.forEach(f=>u[f]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(f=>{d[f]=this._driver.computeStyle(u,f,sa)})});const c=Va(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw new Error(`Unable to find the timeline player referenced by ${n}`);return e}listen(n,e,i,s){const r=Ux(e,"","","");return Gx(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const DF="ng-animate-queued",SF="ng-animate-disabled",EF=".ng-animate-disabled",Hne=[],TF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jne={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},kr="__ng_removed";class hw{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(i?n.value:n),i){const r=Nd(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const Kh="void",fw=new hw(Kh);class zne{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Or(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const r=ur(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ur(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Or(n,Pm),Or(n,Pm+"-"+e),a[e]=fw),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw new Error(`The provided animation trigger "${n}" has not been registered!`);return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new pw(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Or(n,Pm),Or(n,Pm+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new hw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=fw),c.value!==Kh&&l.value===c.value){if(!function(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s{zl(n,$),Io(n,L)})}return}const f=ur(this._engine.playersByElement,n,[]);f.forEach(k=>{k.namespaceId==this.id&&k.triggerName==e&&k.queued&&k.destroy()});let _=r.matchTransition(l.value,c.value,n,c.params),T=!1;if(!_){if(!s)return;_=r.fallbackTransition,T=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:T}),T||(Or(n,DF),o.onStart(()=>{Fd(n,DF)})),o.onDone(()=>{let k=this.players.indexOf(o);k>=0&&this.players.splice(k,1);const $=this._engine.playersByElement.get(n);if($){let L=$.indexOf(o);L>=0&&$.splice(L,1)}}),this.players.push(o),f.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Rm,!0);i.forEach(s=>{if(s[kr])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n);if(r){const o=[];if(Object.keys(r).forEach(a=>{if(this._triggers[a]){const l=this.trigger(n,a,Kh,s);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,n,!0,e),i&&Va(o).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||fw,d=new hw(Kh),u=new pw(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[kr];(!r||r===TF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Or(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Ux(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Gx(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class Gne{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new zne(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList.length-1;if(i>=0){let s=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,n),s=!0;break}s||this._namespaceList.splice(0,0,n)}else this._namespaceList.push(n);return this.namespacesByHostElement.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Or(n,SF)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Fd(n,SF))}removeNode(n,e,i,s){if(Um(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s){this.collectedLeaveElements.push(e),e[kr]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1}}listen(n,e,i,s,r){return Um(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Rm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,ew,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Va(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[kr];if(e&&e.setForRemoval){if(n[kr]=TF,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}this.driver.matchesElement(n,EF)&&this.markElementAsDisabled(n,!1),this.driver.query(n,EF,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Va(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${n.join("\n")}`)}_flushAnimations(n,e){const i=new zm,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ve=>{d.add(Ve);const Qe=this.driver.query(Ve,".ng-animate-queued",!0);for(let Ke=0;Ke{const Ke=Zx+k++;T.set(Qe,Ke),Ve.forEach(bt=>Or(bt,Ke))});const $=[],L=new Set,J=new Set;for(let Ve=0;VeL.add(bt)):J.add(Qe))}const ue=new Map,Te=OF(f,Array.from(L));Te.forEach((Ve,Qe)=>{const Ke=Im+k++;ue.set(Qe,Ke),Ve.forEach(bt=>Or(bt,Ke))}),n.push(()=>{_.forEach((Ve,Qe)=>{const Ke=T.get(Qe);Ve.forEach(bt=>Fd(bt,Ke))}),Te.forEach((Ve,Qe)=>{const Ke=ue.get(Qe);Ve.forEach(bt=>Fd(bt,Ke))}),$.forEach(Ve=>{this.processLeaveNode(Ve)})});const Fe=[],Be=[];for(let Ve=this._namespaceList.length-1;Ve>=0;Ve--)this._namespaceList[Ve].drainQueuedTransitions(e).forEach(Ke=>{const bt=Ke.player,un=Ke.element;if(Fe.push(bt),this.collectedEnterElements.length){const ps=un[kr];if(ps&&ps.setForMove)return void bt.destroy()}const ui=!u||!this.driver.containsElement(u,un),zt=ue.get(un),En=T.get(un),Vn=this._buildInstruction(Ke,i,En,zt,ui);if(Vn.errors&&Vn.errors.length)Be.push(Vn);else{if(ui)return bt.onStart(()=>zl(un,Vn.fromStyles)),bt.onDestroy(()=>Io(un,Vn.toStyles)),void s.push(bt);if(Ke.isFallbackTransition)return bt.onStart(()=>zl(un,Vn.fromStyles)),bt.onDestroy(()=>Io(un,Vn.toStyles)),void s.push(bt);Vn.timelines.forEach(ps=>ps.stretchStartingKeyframe=!0),i.append(un,Vn.timelines),o.push({instruction:Vn,player:bt,element:un}),Vn.queriedElements.forEach(ps=>ur(a,ps,[]).push(bt)),Vn.preStyleProps.forEach((ps,Za)=>{const cc=Object.keys(ps);if(cc.length){let No=l.get(Za);No||l.set(Za,No=new Set),cc.forEach(ru=>No.add(ru))}}),Vn.postStyleProps.forEach((ps,Za)=>{const cc=Object.keys(ps);let No=c.get(Za);No||c.set(Za,No=new Set),cc.forEach(ru=>No.add(ru))})}});if(Be.length){const Ve=[];Be.forEach(Qe=>{Ve.push(`@${Qe.triggerName} has failed due to:\n`),Qe.errors.forEach(Ke=>Ve.push(`- ${Ke}\n`))}),Fe.forEach(Qe=>Qe.destroy()),this.reportError(Ve)}const Ue=new Map,He=new Map;o.forEach(Ve=>{const Qe=Ve.element;i.has(Qe)&&(He.set(Qe,Qe),this._beforeAnimationBuild(Ve.player.namespaceId,Ve.instruction,Ue))}),s.forEach(Ve=>{const Qe=Ve.element;this._getPreviousPlayers(Qe,!1,Ve.namespaceId,Ve.triggerName,null).forEach(bt=>{ur(Ue,Qe,[]).push(bt),bt.destroy()})});const it=$.filter(Ve=>PF(Ve,l,c)),lt=new Map;kF(lt,this.driver,J,c,sa).forEach(Ve=>{PF(Ve,l,c)&&it.push(Ve)});const qe=new Map;_.forEach((Ve,Qe)=>{kF(qe,this.driver,new Set(Ve),l,"!")}),it.forEach(Ve=>{const Qe=lt.get(Ve),Ke=qe.get(Ve);lt.set(Ve,Object.assign(Object.assign({},Qe),Ke))});const Pe=[],Ye=[],ht={};o.forEach(Ve=>{const{element:Qe,player:Ke,instruction:bt}=Ve;if(i.has(Qe)){if(d.has(Qe))return Ke.onDestroy(()=>Io(Qe,bt.toStyles)),Ke.disabled=!0,Ke.overrideTotalTime(bt.totalTime),void s.push(Ke);let un=ht;if(He.size>1){let zt=Qe;const En=[];for(;zt=zt.parentNode;){const Vn=He.get(zt);if(Vn){un=Vn;break}En.push(zt)}En.forEach(Vn=>He.set(Vn,un))}const ui=this._buildAnimation(Ke.namespaceId,bt,Ue,r,qe,lt);if(Ke.setRealPlayer(ui),un===ht)Pe.push(Ke);else{const zt=this.playersByElement.get(un);zt&&zt.length&&(Ke.parentPlayer=Va(zt)),s.push(Ke)}}else zl(Qe,bt.fromStyles),Ke.onDestroy(()=>Io(Qe,bt.toStyles)),Ye.push(Ke),d.has(Qe)&&s.push(Ke)}),Ye.forEach(Ve=>{const Qe=r.get(Ve.element);if(Qe&&Qe.length){const Ke=Va(Qe);Ve.setRealPlayer(Ke)}}),s.forEach(Ve=>{Ve.parentPlayer?Ve.syncPlayerEvents(Ve.parentPlayer):Ve.destroy()});for(let Ve=0;Ve<$.length;Ve++){const Qe=$[Ve],Ke=Qe[kr];if(Fd(Qe,Im),Ke&&Ke.hasAnimation)continue;let bt=[];if(a.size){let ui=a.get(Qe);ui&&ui.length&&bt.push(...ui);let zt=this.driver.query(Qe,ew,!0);for(let En=0;En!ui.destroyed);un.length?Yne(this,Qe,un):this.processLeaveNode(Qe)}return $.length=0,Pe.forEach(Ve=>{this.players.push(Ve),Ve.onDone(()=>{Ve.destroy();const Qe=this.players.indexOf(Ve);this.players.splice(Qe,1)}),Ve.play()}),Pe}elementContainsData(n,e){let i=!1;const s=e[kr];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Kh;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=ur(i,c,[]);this._getPreviousPlayers(c,d,o,a,e.toState).forEach(_=>{const T=_.getRealPlayer();T.beforeDestroy&&T.beforeDestroy(),_.destroy(),u.push(_)})}zl(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,f=e.timelines.map(T=>{const k=T.element;d.add(k);const $=k[kr];if($&&$.removedBeforeQueried)return new Rd(T.duration,T.delay);const L=k!==l,J=function(t){const n=[];return IF(t,n),n}((i.get(k)||Hne).map(Ue=>Ue.getRealPlayer())).filter(Ue=>!!Ue.element&&Ue.element===k),ue=r.get(k),Te=o.get(k),Fe=iF(0,this._normalizer,0,T.keyframes,ue,Te),Be=this._buildPlayer(T,Fe,J);if(T.subTimeline&&s&&u.add(k),L){const Ue=new pw(n,a,k);Ue.setRealPlayer(Be),c.push(Ue)}return Be});c.forEach(T=>{ur(this.playersByQueriedElement,T.element,[]).push(T),T.onDone(()=>function(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,T.element,T))}),d.forEach(T=>Or(T,uF));const _=Va(f);return _.onDestroy(()=>{d.forEach(T=>Fd(T,uF)),Io(l,e.toStyles)}),u.forEach(T=>{ur(s,T,[]).push(_)}),_}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Rd(n.duration,n.delay)}}class pw{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Rd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Gx(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ur(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Um(t){return t&&1===t.nodeType}function AF(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function kF(t,n,e,i,s){const r=[];e.forEach(l=>r.push(AF(l)));const o=[];i.forEach((l,c)=>{const d={};l.forEach(u=>{const f=d[u]=n.computeStyle(c,u,s);(!f||0==f.length)&&(c[kr]=jne,o.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>AF(l,r[a++])),o}function OF(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const Wm="$$classes";function Or(t,n){if(t.classList)t.classList.add(n);else{let e=t[Wm];e||(e=t[Wm]={}),e[n]=!0}}function Fd(t,n){if(t.classList)t.classList.remove(n);else{let e=t[Wm];e&&delete e[n]}}function Yne(t,n,e){Va(e).onDone(()=>t.processLeaveNode(n))}function IF(t,n){for(let e=0;es.add(r)):n.set(t,i),e.delete(t),!0}class Ym{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Gne(n,e,i),this._timelineEngine=new Fne(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],c=rw(this._driver,r,l);if(l.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(t,n,e){return new Pne(t,n,e)}(s,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=sF(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=sF(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function RF(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=gw(n[0]),n.length>1&&(i=gw(n[n.length-1]))):n&&(e=gw(n)),e||i?new Qne(t,e,i):null}let Qne=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Io(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Io(this._element,this._initialStyles),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(zl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zl(this._element,this._endStyles),this._endStyles=null),Io(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function gw(t){let n=null;const e=Object.keys(t);for(let i=0;ithis._handleCallback(l)}apply(){(function(t,n){const e=_w(t,"").trim();let i=0;e.length&&(function(t,n){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),VF(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,n){const i=_w(t,"").split(","),s=mw(i,n);s>=0&&(i.splice(s,1),qm(t,"",i.join(",")))}(this._element,this._name))}}function LF(t,n,e){qm(t,"PlayState",e,BF(t,n))}function BF(t,n){const e=_w(t,"");return e.indexOf(",")>0?mw(e.split(","),n):mw([e],n)}function mw(t,n){for(let e=0;e=0)return e;return-1}function VF(t,n,e){e?t.removeEventListener(FF,n):t.addEventListener(FF,n)}function qm(t,n,e,i){const s=NF+n;if(null!=i){const r=t.style[s];if(r.length){const o=r.split(",");o[i]=e,e=o.join(",")}}t.style[s]=e}function _w(t,n){return t.style[NF+n]||""}class HF{constructor(n,e,i,s,r,o,a,l){this.element=n,this.keyframes=e,this.animationName=i,this._duration=s,this._delay=r,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+r,this._buildStyler()}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(n){this._styler.setPosition(n)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new eie(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const n={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(n[i]=e?this._finalStyles[i]:sw(this.element,i))})}this.currentSnapshot=n}}class oie extends Rd{constructor(n,e){super(),this.element=n,this._startingStyles={},this.__initialized=!1,this._styles=lF(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(n=>{this._startingStyles[n]=this.element.style[n]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(n=>this.element.style.setProperty(n,this._styles[n])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(n=>{const e=this._startingStyles[n];e?this.element.style.setProperty(n,e):this.element.style.removeProperty(n)}),this._startingStyles=null,super.destroy())}}class zF{constructor(){this._count=0}validateStyleProperty(n){return qx(n)}matchesElement(n,e){return Xx(n,e)}containsElement(n,e){return Qx(n,e)}query(n,e,i){return Kx(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}buildKeyframeElement(n,e,i){i=i.map(a=>lF(a));let s=`@keyframes ${e} {\n`,r="";i.forEach(a=>{r=" ";const l=parseFloat(a.offset);s+=`${r}${100*l}% {\n`,r+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(s+=`${r}animation-timing-function: ${d};\n`));default:return void(s+=`${r}${c}: ${d};\n`)}}),s+=`${r}}\n`}),s+="}\n";const o=document.createElement("style");return o.textContent=s,o}animate(n,e,i,s,r,o=[],a){const l=o.filter($=>$ instanceof HF),c={};mF(i,s)&&l.forEach($=>{let L=$.currentSnapshot;Object.keys(L).forEach(J=>c[J]=L[J])});const d=function(t){let n={};return t&&(Array.isArray(t)?t:[t]).forEach(i=>{Object.keys(i).forEach(s=>{"offset"==s||"easing"==s||(n[s]=i[s])})}),n}(e=_F(n,e,c));if(0==i)return new oie(n,d);const u="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(n,u,e);(function(t){var n;const e=null===(n=t.getRootNode)||void 0===n?void 0:n.call(t);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(n).appendChild(f);const T=RF(n,e),k=new HF(n,e,u,i,s,r,d,T);return k.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(f)),k}}class $F{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(n[e]=this._finished?this._finalKeyframe[e]:sw(this.element,e))}),this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class uie{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(UF().toString()),this._cssKeyframesDriver=new zF}validateStyleProperty(n){return qx(n)}matchesElement(n,e){return Xx(n,e)}containsElement(n,e){return Qx(n,e)}query(n,e,i){return Kx(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}overrideWebAnimationsSupport(n){this._isNativeImpl=n}animate(n,e,i,s,r,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(n,e,i,s,r,o);const d={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(d.easing=r);const u={},f=o.filter(T=>T instanceof $F);mF(i,s)&&f.forEach(T=>{let k=T.currentSnapshot;Object.keys(k).forEach($=>u[$]=k[$])});const _=RF(n,e=_F(n,e=e.map(T=>Ha(T,!1)),u));return new $F(n,e,d,_)}}function UF(){return nF()&&Element.prototype.animate||{}}let fie=(()=>{class t extends QN{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Vi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?KN(e):e;return WF(this._renderer,null,i,"register",[s]),new pie(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Me($o),Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class pie extends class{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new gie(this._id,n,e||{},this._renderer)}}class gie{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return WF(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function WF(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const YF="@.disabled";let mie=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{o&&o.parentNode(r)&&o.removeChild(r.parentNode,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(r);return d||(d=new qF("",r,this.engine),this._rendererCache.set(r,d)),d}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(o,a,e,d.name,d)};return i.data.animation.forEach(l),new _ie(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&ei(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Me($o),Me(Ym),Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class qF{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==YF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class _ie extends qF{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==YF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let bie=(()=>{class t extends Ym{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(Jx),Me(dw))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const Ci=new pt("AnimationModuleType"),XF=[{provide:QN,useClass:fie},{provide:dw,useFactory:function(){return new Ene}},{provide:Ym,useClass:bie},{provide:$o,useFactory:function(t,n,e){return new mie(t,n,e)},deps:[vg,Ym,xt]}],QF=[{provide:Jx,useFactory:function(){return"function"==typeof UF()?new uie:new zF}},{provide:Ci,useValue:"BrowserAnimations"},...XF],KF=[{provide:Jx,useClass:cF},{provide:Ci,useValue:"NoopAnimations"},...XF];let Mie=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?KF:QF}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:QF,imports:[O0]}),t})();function Eie(t,n){if(1&t&&je(0,"mat-pseudo-checkbox",4),2&t){const e=Ie();ge("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Tie(t,n){if(1&t&&(j(0,"span",5),$e(1),z()),2&t){const e=Ie();ae(1),$t("(",e.group.label,")")}}const Aie=["*"];let kie=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Oie=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const JF=new Uo("12.2.13"),Pie=new pt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ul,Sn=(()=>{class t{constructor(e,i,s){this._hasDoneGlobalChecks=!1,this._document=s,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!$b()||Rx())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&JF.full!==XN.full&&console.warn("The Angular Material version ("+JF.full+") does not match the Angular CDK version ("+XN.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(Me(WN),Me(Pie,8),Me(wt))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Pd],Pd]}),t})();function Ir(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=Vt(n)}}}function $l(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Po(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Vt(n)}}}function Qm(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Li(e):this.defaultTabIndex}}}function ZF(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new E,this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}function e2(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new S(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}try{Ul="undefined"!=typeof Intl}catch(t){Ul=!1}let yw=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})(),r2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})();class Uie{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const o2={enterDuration:225,exitDuration:150},vw=Ll({passive:!0}),a2=["mousedown","touchstart"],l2=["mouseup","mouseleave","touchend","touchcancel"];class c2{constructor(n,e,i,s){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=na(i))}fadeInRipple(n,e,i={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},o2),i.animation);i.centered&&(n=s.left+s.width/2,e=s.top+s.height/2);const o=i.radius||function(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),s=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+s*s)}(n,e,s),a=n-s.left,l=e-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new Uie(this,d,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const f=u===this._mostRecentTransientRipple;u.state=1,!i.persistent&&(!f||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,s=Object.assign(Object.assign({},o2),n.config.animation);i.style.transitionDuration=`${s.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.parentNode.removeChild(i)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=na(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(a2))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(l2),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=Bx(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,vw)})})}_removeTriggerEvents(){this._triggerElement&&(a2.forEach(n=>{this._triggerElement.removeEventListener(n,this,vw)}),this._pointerUpEventsRegistered&&l2.forEach(n=>{this._triggerElement.removeEventListener(n,this,vw)}))}}const bw=new pt("mat-ripple-global-options");let Pr=(()=>{class t{constructor(e,i,s,r,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new c2(this,i,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C(yn),C(bw,8),C(Ci,8))},t.\u0275dir=Le({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&>("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn,kd],Sn]}),t})(),d2=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&>("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn]]}),t})();const ww=new pt("MAT_OPTION_PARENT_COMPONENT"),Xie=Ir(class{});let Qie=0,u2=(()=>{class t extends Xie{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+Qie++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return t.\u0275fac=function(e){return new(e||t)(C(ww,8))},t.\u0275dir=Le({type:t,inputs:{label:"label"},features:[Je]}),t})();const Cw=new pt("MatOptgroup");let Kie=0;class Jie{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Zie=(()=>{class t{constructor(e,i,s,r){this._element=e,this._changeDetectorRef=i,this._parent=s,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Kie++,this.onSelectionChange=new ot,this._stateChanges=new E}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Vt(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ar(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Jie(this,e))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(void 0),C(u2))},t.\u0275dir=Le({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),h2=(()=>{class t extends Zie{constructor(e,i,s,r){super(e,i,s,r)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(ww,8),C(Cw,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&nt("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(ys("id",i.id),At("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),gt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Je],ngContentSelectors:Aie,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Cn(),ke(0,Eie,1,2,"mat-pseudo-checkbox",0),j(1,"span",1),jt(2),z(),ke(3,Tie,2,1,"span",2),je(4,"div",3)),2&e&&(ge("ngIf",i.multiple),ae(3),ge("ngIf",i.group&&i.group._inert),ae(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[vn,Pr,d2],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function f2(t,n,e){if(e.length){let i=n.toArray(),s=e.toArray(),r=0;for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,ei,Sn,xw]]}),t})();const g2=["mat-button",""],m2=["*"],nse=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ise=$l(Ir(Po(class{constructor(t){this._elementRef=t}})));let Zh=(()=>{class t extends ise{constructor(e,i,s){super(e),this._focusMonitor=i,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of nse)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Js),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Yt(Pr,5),2&e){let s;st(s=rt())&&(i.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(At("disabled",i.disabled||null),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Je],attrs:g2,ngContentSelectors:m2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Cn(),j(0,"span",0),jt(1),z(),je(2,"span",1),je(3,"span",2)),2&e&&(ae(2),gt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),ge("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Pr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,Sn],Sn]}),t})();function di(t,n,e,i){return Di(e)&&(i=e,e=void 0),i?di(t,n,e).pipe(g(s=>le(s)?i(...s):i(s))):new S(s=>{y2(t,n,function(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function y2(t,n,e,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o enter",[Jt({opacity:0,transform:"translateY(-5px)"}),pi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Jm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t}),t})();const b2=new pt("MatHint");let Bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-label"]]}),t})(),Ese=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-placeholder"]]}),t})();const x2=new pt("MatPrefix"),w2=new pt("MatSuffix");let C2=0;const Ase=$l(class{constructor(t){this._elementRef=t}},"primary"),kse=new pt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dw=new pt("MatFormField");let ef=(()=>{class t extends Ase{constructor(e,i,s,r,o,a,l,c){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+C2++,this._labelId="mat-form-field-label-"+C2++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Vt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ai(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),De(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ai(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ai(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,di(this._label.nativeElement,"transitionend").pipe(Bn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,s=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,s=0;const r=this._connectionContainerRef.nativeElement,o=r.querySelectorAll(".mat-form-field-outline-start"),a=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=r.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let f=0;for(let _=0;_0?.75*f+10:0}for(let l=0;l{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,Em],Sn]}),t})();class Ise{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new Pse(n,this.durationSelector))}}class Pse extends _e{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(n)}catch(s){return this.destination.error(s)}const i=Se(e,new ne(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Zm(t,n=jg){return function(t){return function(e){return e.lift(new Ise(t))}}(()=>Mh(t,n))}const D2=Ll({passive:!0});let S2=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Eo;const i=na(e),s=this._monitoredElements.get(i);if(s)return s.subject;const r=new E,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,D2),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,D2)}}),r}stopMonitoring(e){const i=na(e),s=this._monitoredElements.get(i);s&&(s.unlisten(),s.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt))},token:t,providedIn:"root"}),t})(),E2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[kd]]}),t})();function T2(...t){if(1===t.length){const n=t[0];if(le(n))return e_(n,null);if(ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return e_(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return e_(t=1===t.length&&le(t[0])?t[0]:t,null).pipe(g(e=>n(...e)))}return e_(t,null)}function e_(t,n){return new S(e=>{const i=t.length;if(0===i)return void e.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=d},error:d=>e.error(d),complete:()=>{r++,(r===i||!c)&&(o===i&&e.next(n?n.reduce((d,u,f)=>(d[u]=s[f],d),{}):s),e.complete())}}))}})}let A2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(C(ji),C(tt))},t.\u0275dir=Le({type:t}),t})(),Wl=(()=>{class t extends A2{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,features:[Je]}),t})();const qi=new pt("NgValueAccessor"),Fse={provide:qi,useExisting:nn(()=>nf),multi:!0},Bse=new pt("CompositionEventMode");let nf=(()=>{class t extends A2{constructor(e,i,s){super(e,i),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Do()?Do().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ji),C(tt),C(Bse,8))},t.\u0275dir=Le({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&nt("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Dt([Fse]),Je]}),t})();const hs=new pt("NgValidators"),za=new pt("NgAsyncValidators");function H2(t){return null!=t}function j2(t){const n=Fu(t)?K(t):t;return Tp(n),n}function z2(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function G2(t,n){return n.map(e=>e(t))}function $2(t){return t.map(n=>function(t){return!t.validate}(n)?n:e=>n.validate(e))}function Sw(t){return null!=t?function(t){if(!t)return null;const n=t.filter(H2);return 0==n.length?null:function(e){return z2(G2(e,n))}}($2(t)):null}function Ew(t){return null!=t?function(t){if(!t)return null;const n=t.filter(H2);return 0==n.length?null:function(e){return T2(G2(e,n).map(j2)).pipe(g(z2))}}($2(t)):null}function Y2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function q2(t){return t._rawValidators}function X2(t){return t._rawAsyncValidators}function Tw(t){return t?Array.isArray(t)?t:[t]:[]}function t_(t,n){return Array.isArray(t)?t.includes(n):t===n}function Q2(t,n){const e=Tw(n);return Tw(t).forEach(s=>{t_(e,s)||e.push(s)}),e}function K2(t,n){return Tw(n).filter(e=>!t_(t,e))}let J2=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Sw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ew(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t}),t})(),Xs=(()=>{class t extends J2{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,features:[Je]}),t})();class Ro extends J2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Aw=(()=>{class t extends class{constructor(n){this._cd=n}is(n){var e,i,s;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===s?void 0:s[n])}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(C(Ro,2))},t.\u0275dir=Le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&>("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Je]}),t})();function sf(t,n){Iw(t,n),n.valueAccessor.writeValue(t.value),function(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&eL(t,n)})}(t,n),function(t,n){const e=(i,s)=>{n.valueAccessor.writeValue(i),s&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&eL(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function s_(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),o_(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function r_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Iw(t,n){const e=q2(t);null!==n.validator?t.setValidators(Y2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=X2(t);null!==n.asyncValidator?t.setAsyncValidators(Y2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();r_(n._rawValidators,s),r_(n._rawAsyncValidators,s)}function o_(t,n){let e=!1;if(null!==t){if(null!==n.validator){const s=q2(t);if(Array.isArray(s)&&s.length>0){const r=s.filter(o=>o!==n.validator);r.length!==s.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const s=X2(t);if(Array.isArray(s)&&s.length>0){const r=s.filter(o=>o!==n.asyncValidator);r.length!==s.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return r_(n._rawValidators,i),r_(n._rawAsyncValidators,i),e}function eL(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tL(t,n){Iw(t,n)}function nL(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function a_(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const rf="VALID",l_="INVALID",Vd="PENDING",af="DISABLED";function Nw(t){return(Lw(t)?t.validators:t)||null}function iL(t){return Array.isArray(t)?Sw(t):t||null}function Fw(t,n){return(Lw(n)?n.asyncValidators:t)||null}function sL(t){return Array.isArray(t)?Ew(t):t||null}function Lw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Bw{constructor(n,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=iL(this._rawValidators),this._composedAsyncValidatorFn=sL(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===rf}get invalid(){return this.status===l_}get pending(){return this.status==Vd}get disabled(){return this.status===af}get enabled(){return this.status!==af}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=iL(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=sL(n)}addValidators(n){this.setValidators(Q2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Q2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(K2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}hasValidator(n){return t_(this._rawValidators,n)}hasAsyncValidator(n){return t_(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Vd,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=af,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=rf,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rf||this.status===Vd)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?af:rf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Vd,this._hasOwnPendingAsyncValidator=!0;const e=j2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(".")),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(s=>{i=i instanceof Vw?i.controls.hasOwnProperty(s)?i.controls[s]:null:i instanceof Zse&&i.at(s)||null}),i}(this,n)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?af:this.errors?l_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vd)?Vd:this._anyControlsHaveStatus(l_)?l_:rf}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Lw(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class c_ extends Bw{constructor(n=null,e,i){super(Nw(e),Fw(i,e)),this._onChange=[],this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=null,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){a_(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){a_(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class Vw extends Bw{constructor(n,e,i){super(Nw(e),Fw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){this._checkAllValuesPresent(n),Object.keys(n).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,s)=>{i.reset(n[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e instanceof c_?e.value:e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[n])throw new Error(`Cannot find form control with name: ${n}.`)}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((s,r)=>{i=e(i,s,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Zse extends Bw{constructor(n,e,i){super(Nw(e),Fw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){this._checkAllValuesPresent(n),n.forEach((i,s)=>{this._throwIfControlMissing(s),this.at(s).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,s)=>{this.at(s)&&this.at(s).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,s)=>{i.reset(n[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n instanceof c_?n.value:n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error(`Cannot find form control at index ${n}`)}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const ere={provide:Xs,useExisting:nn(()=>cf)},lf=(()=>Promise.resolve(null))();let cf=(()=>{class t extends Xs{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ot,this.form=new Vw({},Sw(e),Ew(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lf.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),sf(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),a_(this._directives,e)})}addFormGroup(e){lf.then(()=>{const i=this._findContainer(e.path),s=new Vw({});tL(s,e),i.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){lf.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,nL(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(C(hs,10),C(za,10))},t.\u0275dir=Le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&nt("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([ere]),Je]}),t})();const nre={provide:Ro,useExisting:nn(()=>d_)},aL=(()=>Promise.resolve(null))();let d_=(()=>{class t extends Ro{constructor(e,i,s,r){super(),this.control=new c_,this._registered=!1,this.update=new ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(s),this.valueAccessor=function(t,n){if(!n)return null;let e,i,s;return Array.isArray(n),n.forEach(r=>{r.constructor===nf?e=r:function(t){return Object.getPrototypeOf(t.constructor)===Wl}(r)?i=r:s=r}),s||i||e||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,n){return[...n.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){aL.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,s=""===i||i&&"false"!==i;aL.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(C(Xs,9),C(hs,10),C(za,10),C(qi,10))},t.\u0275dir=Le({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Dt([nre]),Je,rn]}),t})(),cL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const cre={provide:Xs,useExisting:nn(()=>df)};let df=(()=>{class t extends Xs{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(o_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return sf(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){s_(e.control||null,e,!1),a_(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,nL(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,s=this.form.get(e.path);i!==s&&(s_(i||null,e),s instanceof c_&&(sf(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);tL(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(t,n){return o_(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Iw(this.form,this),this._oldForm&&o_(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(C(hs,10),C(za,10))},t.\u0275dir=Le({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&nt("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([cre]),Je,rn]}),t})(),EL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[cL]]}),t})(),Yw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[EL]}),t})();const Dre=new pt("MAT_INPUT_VALUE_ACCESSOR"),Sre=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ere=0;const Tre=ZF(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let u_=(()=>{class t extends Tre{constructor(e,i,s,r,o,a,l,c,d,u){super(a,r,o,s),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+Ere++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(T=>MN().has(T));const f=this._elementRef.nativeElement,_=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",T=>{const k=T.target;!k.value&&0===k.selectionStart&&0===k.selectionEnd&&(k.setSelectionRange(1,1),k.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===_,this._isTextarea="textarea"===_,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Vt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Vt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&MN().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Vt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const s=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=s,s?r.setAttribute("placeholder",s):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Sre.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(yn),C(Ro,10),C(cf,8),C(df,8),C(yw),C(Dre,10),C(S2),C(xt),C(Dw,8))},t.\u0275dir=Le({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&nt("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ys("disabled",i.disabled)("required",i.required),At("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),gt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Dt([{provide:Jm,useExisting:t}]),Je,rn]}),t})(),TL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[yw],imports:[[E2,tf,Sn],E2,tf]}),t})(),Gn=(()=>{class t{constructor(e){this.translate=e,this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}transform(e,...i){var s;let r;if(Rs.isDefined(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return r?(null===(s=this.translate.data[e])||void 0===s?void 0:s.replace(this.templateMatcher,(o,a)=>r[a]))||e:this.translate.data[e]||e}}return t.\u0275fac=function(e){return new(e||t)(C(qs,16))},t.\u0275pipe=ms({name:"translate",type:t,pure:!1}),t})();const Are=function(){return["/anime/compare"]},kre=function(t){return{ids:t}},Ore=function(){return["/anime/recommendations"]};let Ire=(()=>{class t{constructor(){}set left(e){this._left=(null==e?void 0:e.id)||Vg}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-redirect-block"]],inputs:{left:"left"},decls:18,vars:13,consts:[[1,"redirect-block"],[1,"redirect-block-wrap"],[1,"redirect-block-a",3,"routerLink","queryParams"],[1,"redirect-block-link"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-bullseye"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M8 13A5 5 0 1 1 8 3a5 5 0 0 1 0 10zm0 1A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"],["d","M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"],["d","M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"],[1,"redirect-block-wrap","disabled"],[1,"redirect-block-a",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-search"],["d","M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),j(2,"a",2),j(3,"span",3),$e(4),ct(5,"translate"),z(),pn(),j(6,"svg",4),je(7,"path",5),je(8,"path",6),je(9,"path",7),je(10,"path",8),z(),z(),z(),Ti(),j(11,"div",9),j(12,"a",10),j(13,"span",3),$e(14),ct(15,"translate"),z(),pn(),j(16,"svg",11),je(17,"path",12),z(),z(),z(),z()),2&e&&(ae(2),ge("routerLink",ki(9,Are))("queryParams",bs(10,kre,i._left)),ae(2),Mt(vt(5,5,"NAV_TO_COMPARATOR")),ae(8),ge("routerLink",ki(12,Ore)),ae(2),Mt(vt(15,7,"NAV_TO_RECOMMENDATIONS")))},directives:[Ch],pipes:[Gn],styles:["a[_ngcontent-%COMP%]{color:unset}a[_ngcontent-%COMP%]:hover{text-decoration:unset}.redirect-block[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.redirect-block-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:30px}.redirect-block-a[_ngcontent-%COMP%]{display:flex;align-items:center}.redirect-block-link[_ngcontent-%COMP%]{font-weight:500;text-align:center;margin-right:3px;flex:1}"]}),t})();function Pre(t,n){if(1&t){const e=sn();pn(),Ti(),j(0,"div",7),j(1,"div",1),j(2,"mat-form-field",8),j(3,"mat-label"),$e(4),ct(5,"translate"),z(),j(6,"input",9),nt("ngModelChange",function(s){return Ot(e),Ie().username=s}),ct(7,"translate"),z(),z(),j(8,"button",2),nt("click",function(){return Ot(e),Ie().apply()}),pn(),j(9,"svg",10),je(10,"path",11),z(),z(),z(),Ti(),je(11,"app-redirect-block",12),z()}if(2&t){const e=Ie();ae(4),Mt(vt(5,4,"CUSTOM_NICK_NAME")),ae(2),yi("placeholder",vt(7,6,"CUSTOM_NICK_NAME_EXAMPLE")),ge("ngModel",e.username),ae(5),ge("left",e.user)}}let Rre=(()=>{class t{constructor(e){this.router=e,this.enabledField=!1}ngOnInit(){}enableEdit(){this.enabledField=!this.enabledField}apply(){this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.router.onSameUrlNavigation="reload",this.router.navigate(["anime"],{queryParams:{username:this.username}})}}return t.\u0275fac=function(e){return new(e||t)(C(ls))},t.\u0275cmp=mt({type:t,selectors:[["app-custom-id-field"]],inputs:{user:"user"},decls:10,vars:4,consts:[[1,"custom-id-field__wrapper"],[1,"custom-id-field__wrapper-button"],["mat-icon-button","",1,"custom-id-field__button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-eye"],["d","M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"],["d","M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"],["class","custom-id-field__wrapper-mini",4,"ngIf"],[1,"custom-id-field__wrapper-mini"],[1,"custom-id-field__filter"],["matInput","","autocomplete","off",3,"placeholder","ngModel","ngModelChange"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-send"],["d","M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z"],[3,"left"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),j(2,"span"),$e(3),ct(4,"translate"),z(),j(5,"button",2),nt("click",function(){return i.enableEdit()}),pn(),j(6,"svg",3),je(7,"path",4),je(8,"path",5),z(),z(),z(),ke(9,Pre,12,8,"div",6),z()),2&e&&(ae(3),Mt(vt(4,2,"CUSTOM_NICK_NAME_BTN")),ae(6),ge("ngIf",i.enabledField))},directives:[Zh,vn,ef,Bd,u_,nf,Aw,d_,Ire],pipes:[Gn],styles:[".custom-id-field__filter[_ngcontent-%COMP%]{width:80%}.custom-id-field__wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:column;align-content:center;margin-top:5px;font-weight:800}.custom-id-field__wrapper-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center}.mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:unset}.mat-expansion-panel-header-title[_ngcontent-%COMP%], .mat-expansion-panel-header-description[_ngcontent-%COMP%]{display:flex;flex:1;margin-right:16px}"]}),t})();function AL(...t){if(1===t.length){if(!le(t[0]))return t[0];t=t[0]}return pe(t,void 0).lift(new Nre)}class Nre{call(n,e){return e.subscribe(new Fre(n))}}class Fre extends P0{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class jre extends _e{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[D](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Se(this.observable,new ne(this))}}function qw(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new Gre(t,e))}}class Gre{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new $re(n,this.observables,this.project))}}class $re extends P0{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const s=e.length;this.values=new Array(s);for(let r=0;r0){const r=s.indexOf(i);-1!==r&&s.splice(r,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Hd=["*"],Ioe=["dialog"],Poe=["ngbNavOutlet",""];function Roe(t,n){}const Noe=function(t){return{$implicit:t}};function Foe(t,n){if(1&t&&(j(0,"div",2),ke(1,Roe,0,0,"ng-template",3),z()),2&t){const e=Ie().$implicit,i=Ie();ge("item",e)("nav",i.nav)("role",i.paneRole),ae(1),ge("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",bs(5,Noe,e.active||i.isPanelTransitioning(e)))}}function Loe(t,n){if(1&t&&ke(0,Foe,2,7,"div",1),2&t){const e=n.$implicit,i=Ie();ge("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function $a(t){return null!=t}function zd(t){return(t||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const PL={animation:!0,transitionTimerDelayMs:5};let fs=(()=>{class t{constructor(){this.animation=PL.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const $ae=()=>{},{transitionTimerDelayMs:Uae}=PL,ff=new Map,es=(t,n,e,i)=>{let s=i.context||{};const r=ff.get(n);if(r)switch(i.runningTransition){case"continue":return Eo;case"stop":t.run(()=>r.transition$.complete()),s=Object.assign(r.context,s),ff.delete(n)}const o=e(n,i.animation,s)||$ae;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>o()),Et(void 0).pipe(function(t){return n=>new S(e=>n.subscribe(o=>t.run(()=>e.next(o)),o=>t.run(()=>e.error(o)),()=>t.run(()=>e.complete())))}(t));const a=new E,l=new E,c=a.pipe(function(...t){return n=>ud(n,Et(...t))}(!0));ff.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:s});const d=function(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const u=di(n,"transitionend").pipe(Tt(c),mn(({target:_})=>_===n));AL(Mh(d+Uae).pipe(Tt(c)),u,l).pipe(Tt(c)).subscribe(()=>{ff.delete(n),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let BL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),VL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),jL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),$L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),UL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();var bn=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(bn||(bn={})),bn))();const y_=(t,n)=>!!n&&n.some(e=>e.contains(t)),XL=(t,n)=>!n||null!=function(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),Dle="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const QL=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function KL(t){const n=Array.from(t.querySelectorAll(QL)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const Tle=/\s+/,ZL=new class{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,s={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const r=this.offsetParent(n);i=this.offset(n,!1),r!==document.documentElement&&(s=this.offset(r,!1)),s.top+=r.clientTop,s.left+=r.clientLeft}return i.top-=s.top,i.bottom-=s.top,i.left-=s.left,i.right-=s.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),s_top=window.pageYOffset-document.documentElement.clientTop,s_left=window.pageXOffset-document.documentElement.clientLeft;let r={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+s_top,bottom:i.bottom+s_top,left:i.left+s_left,right:i.right+s_left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(n,e,i,s){const[r="top",o="center"]=i.split("-"),a=s?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),d=parseFloat(l.marginBottom),u=parseFloat(l.marginLeft),f=parseFloat(l.marginRight);let _=0,T=0;switch(r){case"top":_=a.top-(e.offsetHeight+c+d);break;case"bottom":_=a.top+a.height;break;case"left":T=a.left-(e.offsetWidth+u+f);break;case"right":T=a.left+a.width}switch(o){case"top":_=a.top;break;case"bottom":_=a.top+a.height-e.offsetHeight;break;case"left":T=a.left;break;case"right":T=a.left+a.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?T=a.left+a.width/2-e.offsetWidth/2:_=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(T)}px, ${Math.round(_)}px)`;const k=e.getBoundingClientRect(),$=document.documentElement,L=window.innerHeight||$.clientHeight,J=window.innerWidth||$.clientWidth;return k.left>=0&&k.top>=0&&k.right<=J&&k.bottom<=L}};new Date(1882,10,12),new Date(2174,10,25);let aB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Yw]]}),t})(),uB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),hB=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})();class Kl{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class aC{constructor(n,e,i,s,r,o,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=s,this._ngZone=r,this._componentFactoryResolver=o,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:s}=this._windowRef.location,r=this._ngZone.onStable.pipe(Bn(1),Re(()=>es(this._ngZone,s,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?es(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(fi(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Et(void 0)}_getContentRef(n,e){if(n){if(n instanceof on){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Kl([i.rootNodes],i)}return new Kl([[this._renderer.createText(`${n}`)]])}return new Kl([])}}const zle=()=>{};let fB=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):zle}_adjustBody(e){const i=this._document.body,s=i.style.paddingRight,r=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${r+e}px`,()=>i.style["padding-right"]=s}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const s=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),s}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Gle=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Bn(1)).subscribe(()=>{es(this._zone,this._el.nativeElement,(e,i)=>{i&&zd(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return es(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Ur("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),gt("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class pB{close(n){}dismiss(n){}}class $le{constructor(n,e,i,s){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=s,this._closed=new E,this._dismissed=new E,this._hidden=new E,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,o)=>{this._resolve=r,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Tt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Tt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Et(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),uf(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var vf=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(vf||(vf={})),vf))();let Ule=(()=>{class t{constructor(e,i,s){this._document=e,this._elRef=i,this._zone=s,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new E,this.hidden=new E}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Bn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=uf(es(this._zone,e,()=>e.classList.remove("show"),i),es(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const e={animation:this.animation,runningTransition:"continue"};uf(es(this._zone,this._elRef.nativeElement,(r,o)=>{o&&zd(r),r.classList.add("show")},e),es(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{di(e,"keydown").pipe(Tt(this._closed$),mn(s=>s.which===bn.Escape)).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(vf.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;di(this._dialogEl.nativeElement,"mousedown").pipe(Tt(this._closed$),fi(()=>i=!1),as(()=>di(e,"mouseup").pipe(Tt(this._closed$),Bn(1))),mn(({target:s})=>e===s)).subscribe(()=>{i=!0}),di(e,"click").pipe(Tt(this._closed$)).subscribe(({target:s})=>{e===s&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(vf.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),s=KL(e)[0];(i||s||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let s;s=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&es(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(C(wt),C(tt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&Yt(Ioe,7),2&e){let s;st(s=rt())&&(i._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(At("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Ur("modal d-block"+(i.windowClass?" "+i.windowClass:"")),gt("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Hd,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cn(),j(0,"div",0,1),j(2,"div",2),jt(3),z(),z()),2&e&&Ur("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),gB=(()=>{class t{constructor(e,i,s,r,o,a){this._applicationRef=e,this._injector=i,this._document=s,this._scrollBar=r,this._rendererFactory=o,this._ngZone=a,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const s=di(n,"focusin").pipe(Tt(e),g(r=>r.target));di(n,"keydown").pipe(Tt(e),mn(r=>r.which===bn.Tab),qw(s)).subscribe(([r,o])=>{const[a,l]=KL(n);(o===a||o===n)&&r.shiftKey&&(l.focus(),r.preventDefault()),o===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),i&&di(n,"click").pipe(Tt(e),qw(s),g(r=>r[1])).subscribe(r=>r.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,s,r){const o=r.container instanceof HTMLElement?r.container:$a(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const d=new pB,u=this._getContentRef(e,r.injector||i,s,d,r);let f=!1!==r.backdrop?this._attachBackdrop(e,o):void 0,_=this._attachWindowComponent(e,o,u),T=new $le(_,u,f,r.beforeDismiss);return this._registerModalRef(T),this._registerWindowCmpt(_),T.result.then(l,l),T.result.then(c,c),d.close=k=>{T.close(k)},d.dismiss=k=>{T.dismiss(k)},this._applyWindowOptions(_.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),f&&f.instance&&(this._applyBackdropOptions(f.instance,r),f.changeDetectorRef.detectChanges()),_.changeDetectorRef.detectChanges(),T}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(Gle).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,s){let o=e.resolveComponentFactory(Ule).create(this._injector,s.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(s=>{$a(i[s])&&(e[s]=i[s])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(s=>{$a(i[s])&&(e[s]=i[s])})}_getContentRef(e,i,s,r,o){return s?s instanceof on?this._createFromTemplateRef(s,r):function(t){return"string"==typeof t}(s)?this._createFromString(s):this._createFromComponent(e,i,s,r,o):new Kl([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(r),new Kl([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Kl([[i]])}_createFromComponent(e,i,s,r,o){const a=e.resolveComponentFactory(s),l=wn.create({providers:[{provide:pB,useValue:r}],parent:i}),c=a.create(l),d=c.location.nativeElement;return o.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Kl([[d]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(s=>{s!==e&&"SCRIPT"!==s.nodeName&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const s=this._modalRefs.indexOf(e);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(Me(cr),Me(wn),Me(wt),Me(fB),Me($o),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(cr),Me(ba),Me(wt),Me(fB),Me($o),Me(xt))},token:t,providedIn:"root"}),t})(),Wle=(()=>{class t{constructor(e,i,s,r){this._moduleCFR=e,this._injector=i,this._modalStack=s,this._config=r}open(e,i={}){const s=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(Me(is),Me(wn),Me(gB),Me(hB))},t.\u0275prov=Ze({factory:function(){return new t(Me(is),Me(ba),Me(gB),Me(hB))},token:t,providedIn:"root"}),t})(),mB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Wle]}),t})(),Yle=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})();const _B=t=>$a(t)&&""!==t;let qle=0,M_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),Wd=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){$a(this.domId)||(this.domId="ngb-nav-"+qle++)}get active(){return this._nav.activeId===this.id}get id(){return _B(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return($a(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(C(nn(()=>Yd)),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,s){if(1&e&&Ft(s,M_,4),2&e){let r;st(r=rt())&&(i.contentTpls=r)}},hostVars:2,hostBindings:function(e,i){2&e&>("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),Yd=(()=>{class t{constructor(e,i,s,r){this.role=e,this._cd=s,this._document=r,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new E,this.navItemChange$=new E,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,s=this.links.filter(a=>!a.navItem.disabled),{length:r}=s;let o=-1;if(s.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(o=l)}),r){switch(i){case bn.ArrowLeft:if("vertical"===this.orientation)return;o=(o-1+r)%r;break;case bn.ArrowRight:if("vertical"===this.orientation)return;o=(o+1)%r;break;case bn.ArrowDown:if("horizontal"===this.orientation)return;o=(o+1)%r;break;case bn.ArrowUp:if("horizontal"===this.orientation)return;o=(o-1+r)%r;break;case bn.Home:o=0;break;case bn.End:o=r-1}"changeWithArrows"===this.keyboard&&this.select(s[o].navItem.id),s[o].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!$a(this.activeId)){const e=this.items.first?this.items.first.id:null;_B(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Tt(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let s=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{s=!0}}),s||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(_s("role"),C(Yle),C(Gt),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,Wd,4),Ft(s,bf,5)),2&e){let r;st(r=rt())&&(i.items=r),st(r=rt())&&(i.links=r)}},hostVars:6,hostBindings:function(e,i){1&e&&nt("keydown.arrowLeft",function(r){return i.onKeyDown(r)})("keydown.arrowRight",function(r){return i.onKeyDown(r)})("keydown.arrowDown",function(r){return i.onKeyDown(r)})("keydown.arrowUp",function(r){return i.onKeyDown(r)})("keydown.Home",function(r){return i.onKeyDown(r)})("keydown.End",function(r){return i.onKeyDown(r)}),2&e&&(At("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),gt("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[rn]}),t})(),bf=(()=>{class t{constructor(e,i,s,r){this.role=e,this.navItem=i,this.nav=s,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(_s("role"),C(Wd),C(Yd),C(tt))},t.\u0275dir=Le({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&nt("click",function(r){return i.nav.click(i.navItem),r.preventDefault()}),2&e&&(ys("id",i.navItem.domId),At("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),gt("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})();const Xle=({classList:t})=>(t.remove("show"),()=>t.remove("active")),Qle=(t,n)=>{n&&zd(t),t.classList.add("show")};let lC=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ys("id",i.item.panelDomId),At("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),gt("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),D_=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){var i;return(null===(i=this._activePane)||void 0===i?void 0:i.item)===e}ngAfterViewInit(){var e;this._updateActivePane(),this.nav.navItemChange$.pipe(Tt(this.nav.destroy$),ai((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),ia(),Mm(1)).subscribe(i=>{const s={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?es(this._ngZone,this._activePane.elRef.nativeElement,Xle,s).subscribe(()=>{var r;const o=null===(r=this._activePane)||void 0===r?void 0:r.item;this._activePane=this._getPaneForItem(i),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),es(this._ngZone,this._activePane.elRef.nativeElement,Qle,s).subscribe(()=>{i&&(i.shown.emit(),this.nav.shown.emit(i.id))})),o&&(o.hidden.emit(),this.nav.hidden.emit(o.id))}):this._updateActivePane()})}_updateActivePane(){var e,i;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(i=this._activePane)||void 0===i||i.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&Yt(lC,5),2&e){let s;st(s=rt())&&(i._panes=s)}},hostVars:2,hostBindings:function(e,i){2&e&>("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:Poe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&ke(0,Loe,1,1,"ng-template",0),2&e&&ge("ngForOf",i.nav.items)},directives:[oi,vn,lC,os],encapsulation:2,changeDetection:0}),t})(),yB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),SB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})();class Zle{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const ece={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},EB=t=>t>0?Zo(t):n=>n;let AB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),kB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),OB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),NB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),FB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),vce=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})(),bce=0,xce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(ys("id",i.id),Ur("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),gt("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Hd,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cn(),je(0,"div",0),j(1,"div",1),jt(2),z())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],encapsulation:2,changeDetection:0}),t})(),cC=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=d,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+bce++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new aC(xce,s,o,i,this._ngZone,r,u),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&function(t,n,e,i,s){let r=Array.isArray(e)?e:e.split(Tle);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=_=>{const[T,k]=_.split("-"),$=[];return s&&($.push(`${s}-${T}`),k&&$.push(`${s}-${T}-${k}`),$.forEach(L=>{a.add(L)})),$};s&&o.forEach(_=>{a.remove(`${s}-${_}`)});let c=r.findIndex(_=>"auto"===_);c>=0&&o.forEach(function(_){null==r.find(T=>-1!==T.search("^"+_))&&r.splice(c++,1,_)});const d=n.style;d.position="absolute",d.top="0",d.left="0",d["will-change"]="transform";let u=null,f=!1;for(u of r){let _=l(u);if(ZL.positionElements(t,n,u,i)){f=!0;break}s&&_.forEach(T=>{a.remove(T)})}f||(u=r[0],l(u),ZL.positionElements(t,n,u,i))}(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:s}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),function(t,n,e,i,s,r,o,a){e&&t.runOutsideAngular((t=>Dle?()=>setTimeout(()=>t(),100):t)(()=>{const c=di(n,"keydown").pipe(Tt(s),mn(f=>f.which===bn.Escape),fi(f=>f.preventDefault())),d=di(n,"mousedown").pipe(g(f=>{const _=f.target;return 2!==f.button&&!y_(_,o)&&("inside"===e?y_(_,r)&&XL(_,a):"outside"===e?!y_(_,r):XL(_,a)||!y_(_,r))}),Tt(s)),u=di(n,"mouseup").pipe(qw(d),mn(([f,_])=>_),Zo(0),Tt(s));AL([c.pipe(g(f=>0)),u.pipe(g(f=>1))]).subscribe(f=>t.run(()=>i(f)))}))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),s.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,n,e,i,s,r,o=0,a=0){const l=function(t,n=ece){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=n[r[0]]||r;return new Zle(o[0],o[1])}),s=i.filter(r=>r.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,n,e,i){return new S(s=>{const r=[],o=()=>s.next(!0),a=()=>s.next(!1),l=()=>s.next(!i());return e.forEach(c=>{c.open===c.close?r.push(t.listen(n,c.open,l)):r.push(t.listen(n,c.open,o),t.listen(n,c.close,a))}),()=>{r.forEach(c=>c())}})}(t,n,l,i).pipe(function(t,n,e){return i=>{let s=null;const r=i.pipe(g(l=>({open:l})),mn(l=>{const c=e();return c===l.open||s&&s.open!==c?(s&&s.open!==l.open&&(s=null),!1):(s=l,!0)}),Tn());return De(r.pipe(mn(l=>l.open),EB(t)),r.pipe(mn(l=>!l.open),EB(n))).pipe(mn(l=>l===s&&(s=null,l.open!==e())),g(l=>l.open))}}(o,a,i)).subscribe(d=>d?s():r());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ji),C(wn),C(is),C(Fn),C(vce),C(xt),C(wt),C(Gt),C(cr))},t.\u0275dir=Le({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[rn]}),t})(),LB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();new pt("live announcer delay",{providedIn:"root",factory:function(){return 100}});let HB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})();const Tce=[BL,VL,jL,$L,UL,aB,uB,mB,yB,SB,AB,kB,OB,NB,FB,LB,HB];let jB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[Tce,BL,VL,jL,$L,UL,aB,uB,mB,yB,SB,AB,kB,OB,NB,FB,LB,HB]}),t})(),Wa=(()=>{class t{constructor(e){this.translationService=e}transform(e,i,s){return this.translationService.getLanguage()!==i?s:e}}return t.\u0275fac=function(e){return new(e||t)(C(qs,16))},t.\u0275pipe=ms({name:"languageContent",type:t,pure:!1}),t})();function Ace(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function kce(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function Oce(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function Ice(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}const zB=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",Rce=$l(class{constructor(t){this._elementRef=t}},"primary"),GB=new pt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class ra extends Rce{constructor(n,e,i,s,r){super(n),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=ra._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=e.EDGE||e.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(n){this._diameter=Li(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Li(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Li(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=SN(n)||this._document.head,this._attachStyleNode(),n.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=ra._diameters;let s=i.get(n);if(!s||!s.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),s||(s=new Set,i.set(n,s)),s.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ra.\u0275fac=function(n){return new(n||ra)(C(tt),C(yn),C(wt,8),C(Ci,8),C(GB))},ra.\u0275cmp=mt({type:ra,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(At("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),si("width",e.diameter,"px")("height",e.diameter,"px"),gt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Je],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(pn(),j(0,"svg",0),ke(1,Ace,1,9,"circle",1),ke(2,kce,1,7,"circle",2),z()),2&n&&(si("width",e.diameter,"px")("height",e.diameter,"px"),ge("ngSwitch","indeterminate"===e.mode),At("viewBox",e._getViewBox()),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1))},directives:[Da,cd],styles:[zB],encapsulation:2,changeDetection:0}),ra._diameters=new WeakMap;let Lce=(()=>{class t extends ra{constructor(e,i,s,r,o){super(e,i,s,r,o),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(yn),C(wt,8),C(Ci,8),C(GB))},t.\u0275cmp=mt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(si("width",i.diameter,"px")("height",i.diameter,"px"),gt("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[Je],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(pn(),j(0,"svg",0),ke(1,Oce,1,9,"circle",1),ke(2,Ice,1,7,"circle",2),z()),2&e&&(si("width",i.diameter,"px")("height",i.diameter,"px"),ge("ngSwitch","indeterminate"===i.mode),At("viewBox",i._getViewBox()),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1))},directives:[Da,cd],styles:[zB],encapsulation:2,changeDetection:0}),t})(),Bce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn,ei],Sn]}),t})();const Vce=["*"];function $B(t){return Error(`Unable to find icon with the name "${t}"`)}function UB(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function WB(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Jl{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let S_=(()=>{class t{constructor(e,i,s,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=s}addSvgIcon(e,i,s){return this.addSvgIconInNamespace("",e,i,s)}addSvgIconLiteral(e,i,s){return this.addSvgIconLiteralInNamespace("",e,i,s)}addSvgIconInNamespace(e,i,s,r){return this._addSvgIconConfig(e,i,new Jl(s,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,s,r){const o=this._sanitizer.sanitize(Ln.HTML,s);if(!o)throw WB(s);return this._addSvgIconConfig(e,i,new Jl("",o,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,s){return this._addSvgIconSetConfig(e,new Jl(i,null,s))}addSvgIconSetLiteralInNamespace(e,i,s){const r=this._sanitizer.sanitize(Ln.HTML,i);if(!r)throw WB(i);return this._addSvgIconSetConfig(e,new Jl("",r,s))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Ln.RESOURCE_URL,e);if(!i)throw UB(e);const s=this._cachedIconsByUrl.get(i);return s?Et(E_(s)):this._loadSvgIconFromConfig(new Jl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(i,r)),g(r=>E_(r)))}getNamedSvgIcon(e,i=""){const s=YB(i,e);let r=this._svgIconConfigs.get(s);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(s,r),this._getSvgFromConfig(r);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):zg($B(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Et(E_(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(g(i=>E_(i)))}_getSvgFromIconSetConfigs(e,i){const s=this._extractIconWithNameFromAnySet(e,i);return s?Et(s):T2(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe($i(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Et(null)})))).pipe(g(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw $B(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let s=i.length-1;s>=0;s--){const r=i[s];if(r.svgText&&r.svgText.indexOf(e)>-1){const o=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(o,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(i=>e.svgText=i),g(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Et(null):this._fetchIcon(e).pipe(fi(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,s){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const o=r.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,s);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),s);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,s)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const s=i.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const i=this._svgElementFromString(""),s=e.attributes;for(let r=0;rthis._inProgressUrlFetches.delete(a)),Tn());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,s){return this._svgIconConfigs.set(YB(e,i),s),this}_addSvgIconSetConfig(e,i){const s=this._iconSetConfigs.get(e);return s?s.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let s=0;sn?n.pathname+n.search:""}}}),qB=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Wce=t=>`[${t}]`,Yce=qB.map(Wce).join(", "),qce=/^url\(['"]?#(.*?)['"]?\)$/;let XB=(()=>{class t extends Gce{constructor(e,i,s,r,o){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=o,this._inline=!1,this._currentIconFetch=fe.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Vt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let r=0;r{s.forEach(o=>{r.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Yce),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const a=i[r],l=a.getAttribute(o),c=l?l.match(qce):null;if(c){let d=s.get(a);d||(d=[],s.set(a,d)),d.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,s]=this._splitIconName(e);i&&(this._svgNamespace=i),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,i).pipe(Bn(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${s}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(S_),_s("aria-hidden"),C($ce),C(Hr))},t.\u0275cmp=mt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(At("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),gt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Je],ngContentSelectors:Vce,decls:1,vars:0,template:function(e,i){1&e&&(Cn(),jt(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),QB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),uC=(()=>{class t{constructor(e,i){this.translatePipe=e,this.translateService=i}transform(e,i){if(e){const s=Math.floor((+new Date-+new Date(e))/1e3);if(s<29)return this.translatePipe.transform("TIME_NOW");const r={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let o;for(const a in r)if(o=Math.floor(s/r[a]),o>0){const l=Rs.getPluralForm(o,this.translateService.getLanguage());return`${o} ${this.translatePipe.transform(a+"_"+l+"_ago")}`}}return e}}return t.\u0275fac=function(e){return new(e||t)(C(Gn,16),C(qs,16))},t.\u0275pipe=ms({name:"dateAgo",type:t,pure:!1}),t})();function Xce(t,n){1&t&&je(0,"mat-spinner")}function Qce(t,n){1&t&&(j(0,"div",17),j(1,"mat-icon"),$e(2,"keyboard_arrow_right"),z(),j(3,"mat-icon"),$e(4,"keyboard_arrow_right"),z(),j(5,"mat-icon"),$e(6,"keyboard_arrow_right"),z(),z())}function Kce(t,n){if(1&t){const e=sn();j(0,"div",8),j(1,"div",8),j(2,"div",9),j(3,"span",10),nt("click",function(){const r=Ot(e).$implicit,o=Ie(3);return o.goToHistory(o.imageDataPath+r.target.url,r.target.malUrl)}),je(4,"img",11),j(5,"div",12),j(6,"a",13),ct(7,"languageContent"),$e(8),z(),je(9,"span",14),j(10,"span",15),$e(11),ct(12,"dateAgo"),z(),z(),z(),ke(13,Qce,7,0,"div",16),z(),z(),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie(3);ae(4),yi("src",s.imageDataPath+e.target.image.x96,_i),ae(2),yi("href",ml(7,6,s.imageDataPath+e.target.url,"ru",e.target.malUrl),_i),ae(2),Mt(e.target[s.historyFieldName]),ae(1),yi("innerHTML",e.description,Ac),ae(2),Mt(vt(12,10,e.created_at)),ae(2),ge("ngIf",i!==(null==s.history?null:s.history.length)-1)}}function Jce(t,n){if(1&t&&(j(0,"div",6),ke(1,Kce,14,12,"div",7),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.history)}}function Zce(t,n){if(1&t&&ke(0,Jce,2,1,"div",5),2&t){const e=Ie(),i=Qt(8);ge("ngIf",(null==e.history?null:e.history.length)>0)("ngIfElse",i)}}function ede(t,n){1&t&&(j(0,"span",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"LANDING_NO_DATA")))}let tde=(()=>{class t{constructor(e,i,s,r){this.translationPipe=e,this.languageContentPipe=i,this.translationService=s,this.animeService=r,this.isHistoryLoading=!0,this.historyFieldName="name",this.imageDataPath=dr}ngOnInit(){this.translationService.localeChange.subscribe(()=>{this.updateHistoryFieldName(),this.getHistory()})}getHistory(){this.isHistoryLoading=!0,this.animeService.getUserHistory().pipe($i(()=>Et([])),fi(()=>{this.isHistoryLoading=!1})).subscribe(e=>{var i;this.history=null==e?void 0:e.filter(s=>s.target),null===(i=this.history)||void 0===i||i.forEach(s=>{var r,o,a,l;const c=(null===(o=null===(r=this.data)||void 0===r?void 0:r.anime)||void 0===o?void 0:o.find(d=>d.anime.id==s.target.id))||(null===(l=null===(a=this.data)||void 0===a?void 0:a.manga)||void 0===l?void 0:l.find(d=>d.manga.id==s.target.id));s.target.malUrl=`https://myanimelist.net/${c.anime?"anime":"manga"}/${s.target.id}`})})}updateHistoryFieldName(){this.historyFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}goToHistory(e,i){window.location.href=this.languageContentPipe.transform(e,"ru",i)}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(Wa),C(qs),C(jh))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-history"]],inputs:{data:"data"},decls:9,vars:5,consts:[[1,"anime-history__container"],[1,"anime-history__header"],[4,"ngIf","ngIfElse"],["historyTemplate",""],["emptyTemplate",""],["class","anime-history__item-image-wrapper",4,"ngIf","ngIfElse"],[1,"anime-history__item-image-wrapper"],["class","anime-history__item",4,"ngFor","ngForOf"],[1,"anime-history__item"],[1,"anime-history__item-image"],[1,"anime-history__selectable",3,"click"],[1,"anime-history__thumbnail",3,"src"],[1,"anime-history__item-block"],["target","_blank","rel","noopener noreferrer",1,"anime-history__item-title",3,"href"],[1,"anime-history__bottom",3,"innerHTML"],[1,"anime-history__bottom"],["class","anime-history__arrows",4,"ngIf"],[1,"anime-history__arrows"],[1,"anime-history__no-data"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Xce,1,0,"mat-spinner",2),z(),ke(5,Zce,1,2,"ng-template",null,3,Mn),ke(7,ede,3,3,"ng-template",null,4,Mn)),2&e){const s=Qt(6);ae(2),Mt(vt(3,3,"ANIME_HISTORY")),ae(2),ge("ngIf",i.isHistoryLoading)("ngIfElse",s)}},directives:[vn,Lce,oi,XB],pipes:[Gn,Wa,uC],styles:['@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr70w-.ttf) format("truetype")}.anime-history__no-data[_ngcontent-%COMP%]{font-weight:450;margin-bottom:10px}.anime-history__thumbnail[_ngcontent-%COMP%]{height:120px;border-radius:5px}.anime-history__header[_ngcontent-%COMP%]{font-size:1.7em;margin-top:5px;margin-bottom:5px;text-transform:uppercase;text-align:center}.anime-history__arrows[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:3px 15px 15px;justify-content:center}.anime-history__bottom[_ngcontent-%COMP%]{margin-left:15px;color:#9c27b0}.anime-history__item[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-right:5px;display:flex;flex:1}.anime-history__item-block[_ngcontent-%COMP%]{display:flex;flex-direction:column}.anime-history__item-title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.2em;font-weight:500}.anime-history__item-image[_ngcontent-%COMP%]{display:flex}.anime-history__item-image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-bottom:15px;flex-wrap:wrap}@media (max-width: 900px){.anime-history__item-image-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}.anime-history__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.anime-history__selectable[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;padding:5px;border-radius:5px;cursor:pointer}.anime-history__selectable[_ngcontent-%COMP%]:hover{background-color:#f6f2ff5e}']}),t})();function KB(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function hC(t={},n={}){Object.keys(n).forEach(e=>{void 0===t[e]?t[e]=n[e]:KB(n[e])&&KB(t[e])&&Object.keys(n[e]).length>0&&hC(t[e],n[e])})}const JB={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Fs(){const t="undefined"!=typeof document?document:{};return hC(t,JB),t}const nde={document:JB,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Ri(){const t="undefined"!=typeof window?window:{};return hC(t,nde),t}function Zl(t,n=0){return setTimeout(t,n)}function Rr(){return Date.now()}function fC(t,n="x"){const e=Ri();let i,s,r;const o=function(t){const n=Ri();let e;return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return e.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new e.WebKitCSSMatrix("none"===s?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===n&&(s=e.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(s=e.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}function xf(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function rde(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function fr(...t){const n=Object(t[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(o)<0);for(let o=0,a=r.length;os?"next":"prev",c=(u,f)=>"next"===l&&u>=f||"prev"===l&&u<=f,d=()=>{o=(new Date).getTime(),null===r&&(r=o);const u=Math.max(Math.min((o-r)/a,1),0),f=.5-Math.cos(u*Math.PI)/2;let _=s+f*(n-s);if(c(_,n)&&(_=n),t.wrapperEl.scrollTo({[e]:_}),c(_,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[e]:_})}),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function ec(t){return t.querySelector(".swiper-slide-transform")||t.shadowEl&&t.shadowEl.querySelector(".swiper-slide-transform")||t}function Ls(t,n=""){return[...t.children].filter(e=>e.matches(n))}function lo(t,n=[]){const e=document.createElement(t);return e.classList.add(...Array.isArray(n)?n:[n]),e}function T_(t){const n=Ri(),e=Fs(),i=t.getBoundingClientRect(),s=e.body;return{top:i.top+(t===n?n.scrollY:t.scrollTop)-(t.clientTop||s.clientTop||0),left:i.left+(t===n?n.scrollX:t.scrollLeft)-(t.clientLeft||s.clientLeft||0)}}function Ya(t,n){return Ri().getComputedStyle(t,null).getPropertyValue(n)}function Cf(t){let e,n=t;if(n){for(e=0;null!==(n=n.previousSibling);)1===n.nodeType&&(e+=1);return e}}function tc(t,n){const e=[];let i=t.parentElement;for(;i;)n?i.matches(n)&&e.push(i):e.push(i),i=i.parentElement;return e}function Mf(t,n){n&&t.addEventListener("transitionend",function e(i){i.target===t&&(n.call(t,i),t.removeEventListener("transitionend",e))})}function pC(t,n,e){const i=Ri();return e?t["width"===n?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===n?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===n?"margin-left":"margin-bottom")):t.offsetWidth}let gC,mC,_C;function e3(){return gC||(gC=function(){const t=Ri(),n=Fs();return{smoothScroll:n.documentElement&&n.documentElement.style&&"scrollBehavior"in n.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&n instanceof t.DocumentTouch)}}()),gC}const gde={on(t,n,e){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof n)return i;const s=e?"unshift":"push";return t.split(" ").forEach(r=>{i.eventsListeners[r]||(i.eventsListeners[r]=[]),i.eventsListeners[r][s](n)}),i},once(t,n,e){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof n)return i;function s(...r){i.off(t,s),s.__emitterProxy&&delete s.__emitterProxy,n.apply(i,r)}return s.__emitterProxy=n,i.on(t,s,e)},onAny(t,n){const e=this;if(!e.eventsListeners||e.destroyed||"function"!=typeof t)return e;const i=n?"unshift":"push";return e.eventsAnyListeners.indexOf(t)<0&&e.eventsAnyListeners[i](t),e},offAny(t){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsAnyListeners)return n;const e=n.eventsAnyListeners.indexOf(t);return e>=0&&n.eventsAnyListeners.splice(e,1),n},off(t,n){const e=this;return!e.eventsListeners||e.destroyed||!e.eventsListeners||t.split(" ").forEach(i=>{void 0===n?e.eventsListeners[i]=[]:e.eventsListeners[i]&&e.eventsListeners[i].forEach((s,r)=>{(s===n||s.__emitterProxy&&s.__emitterProxy===n)&&e.eventsListeners[i].splice(r,1)})}),e},emit(...t){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,i,s;return"string"==typeof t[0]||Array.isArray(t[0])?(e=t[0],i=t.slice(1,t.length),s=n):(e=t[0].events,i=t[0].data,s=t[0].context||n),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(o=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(a=>{a.apply(s,[o,...i])}),n.eventsListeners&&n.eventsListeners[o]&&n.eventsListeners[o].forEach(a=>{a.apply(s,i)})}),n}},A_=(t,n)=>{if(!t||t.destroyed||!t.params)return;const i=n.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){const s=i.querySelector(`.${t.params.lazyPreloaderClass}`);s&&s.remove()}},yC=(t,n)=>{if(!t.slides[n])return;const e=t.slides[n].querySelector('[loading="lazy"]');e&&e.removeAttribute("loading")},vC=t=>{if(!t||t.destroyed||!t.params)return;let n=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!n||n<0)return;n=Math.min(n,e);const i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=s,a=[o-n];return a.push(...Array.from({length:n}).map((l,c)=>o+i+c)),void t.slides.forEach((l,c)=>{a.includes(l.column)&&yC(t,c)})}const r=s+i-1;if(t.params.rewind||t.params.loop)for(let o=s-n;o<=r+n;o+=1){const a=(o%e+e)%e;(ar)&&yC(t,a)}else for(let o=Math.max(s-n,0);o<=Math.min(r+n,e-1);o+=1)o!==s&&(o>r||o=0?Te=parseFloat(Te.replace("%",""))/100*o:"string"==typeof Te&&(Te=parseFloat(Te)),t.virtualSize=-Te,u.forEach(Xe=>{a?Xe.style.marginLeft="":Xe.style.marginRight="",Xe.style.marginBottom="",Xe.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(wf(s,"--swiper-centered-offset-before",""),wf(s,"--swiper-centered-offset-after",""));const He=i.grid&&i.grid.rows>1&&t.grid;let it;He&&t.grid.initSlides(f);const lt="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(Xe=>void 0!==i.breakpoints[Xe].slidesPerView).length>0;for(let Xe=0;Xe1&&_.push(t.virtualSize-o)}if(c&&i.loop){const Xe=k[0]+Te;if(i.slidesPerGroup>1){const qe=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),Pe=Xe*i.slidesPerGroup;for(let Ye=0;Ye!(i.cssMode&&!i.loop)||Pe!==u.length-1).forEach(qe=>{qe.style[Xe]=`${Te}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let Xe=0;k.forEach(Pe=>{Xe+=Pe+(Te||0)}),Xe-=Te;const qe=Xe-o;_=_.map(Pe=>Pe<=0?-$:Pe>qe?qe+L:Pe)}if(i.centerInsufficientSlides){let Xe=0;if(k.forEach(qe=>{Xe+=qe+(Te||0)}),Xe-=Te,Xe{_[Ye]=Pe-qe}),T.forEach((Pe,Ye)=>{T[Ye]=Pe+qe})}}if(Object.assign(t,{slides:u,snapGrid:_,slidesGrid:T,slidesSizesGrid:k}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){wf(s,"--swiper-centered-offset-before",-_[0]+"px"),wf(s,"--swiper-centered-offset-after",t.size/2-k[k.length-1]/2+"px");const Xe=-t.snapGrid[0],qe=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(Pe=>Pe+Xe),t.slidesGrid=t.slidesGrid.map(Pe=>Pe+qe)}if(f!==d&&t.emit("slidesLengthChange"),_.length!==J&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),T.length!==ue&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!(c||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const Xe=`${i.containerModifierClass}backface-hidden`,qe=t.el.classList.contains(Xe);f<=i.maxBackfaceHiddenSlides?qe||t.el.classList.add(Xe):qe&&t.el.classList.remove(Xe)}},updateAutoHeight:function(t){const n=this,e=[],i=n.virtual&&n.params.virtual.enabled;let r,s=0;"number"==typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed);const o=a=>i?n.slides[n.getSlideIndexByData(a)]:n.slides[a];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(a=>{e.push(a)});else for(r=0;rn.slides.length&&!i)break;e.push(o(a))}else e.push(o(n.activeIndex));for(r=0;rs?a:s}(s||0===s)&&(n.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){const t=this,n=t.slides,e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i{l.classList.remove(e.slideVisibleClass)}),n.visibleSlidesIndexes=[],n.visibleSlides=[];let a=e.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*n.size:"string"==typeof a&&(a=parseFloat(a));for(let l=0;l=0&&_1&&T<=n.size||_<=0&&T>=n.size)&&(n.visibleSlides.push(c),n.visibleSlidesIndexes.push(l),i[l].classList.add(e.slideVisibleClass)),c.progress=s?-u:u,c.originalProgress=s?-f:f}},updateProgress:function(t){const n=this;if(void 0===t){const d=n.rtlTranslate?-1:1;t=n&&n.translate&&n.translate*d||0}const e=n.params,i=n.maxTranslate()-n.minTranslate();let{progress:s,isBeginning:r,isEnd:o,progressLoop:a}=n;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(t-n.minTranslate())/i;const d=Math.abs(t-n.minTranslate())<1,u=Math.abs(t-n.maxTranslate())<1;r=d||s<=0,o=u||s>=1,d&&(s=0),u&&(s=1)}if(e.loop){const d=n.getSlideIndexByData(0),u=n.getSlideIndexByData(n.slides.length-1),f=n.slidesGrid[d],_=n.slidesGrid[u],T=n.slidesGrid[n.slidesGrid.length-1],k=Math.abs(t);a=k>=f?(k-f)/T:(k+T-_)/T,a>1&&(a-=1)}Object.assign(n,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)&&n.updateSlidesProgress(t),r&&!l&&n.emit("reachBeginning toEdge"),o&&!c&&n.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&n.emit("fromEdge"),n.emit("progress",s)},updateSlidesClasses:function(){const t=this,{slides:n,params:e,slidesEl:i,activeIndex:s}=t,r=t.virtual&&e.virtual.enabled,o=l=>Ls(i,`.${e.slideClass}${l}, swiper-slide${l}`)[0];let a;if(n.forEach(l=>{l.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}),r)if(e.loop){let l=s-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${l}"]`)}else a=o(`[data-swiper-slide-index="${s}"]`);else a=n[s];if(a){a.classList.add(e.slideActiveClass);let l=function(t,n){const e=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}(a,`.${e.slideClass}, swiper-slide`)[0];e.loop&&!l&&(l=n[0]),l&&l.classList.add(e.slideNextClass);let c=function(t,n){const e=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}(a,`.${e.slideClass}, swiper-slide`)[0];e.loop&&0===!c&&(c=n[n.length-1]),c&&c.classList.add(e.slidePrevClass)}t.emitSlidesClasses()},updateActiveIndex:function(t){const n=this,e=n.rtlTranslate?n.translate:-n.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=n;let c,l=t;const d=f=>{let _=f-n.virtual.slidesBefore;return _<0&&(_=n.virtual.slides.length+_),_>=n.virtual.slides.length&&(_-=n.virtual.slides.length),_};if(void 0===l&&(l=function(t){const{slidesGrid:n,params:e}=t,i=t.rtlTranslate?t.translate:-t.translate;let s;for(let r=0;r=n[r]&&i=n[r]&&i=n[r]&&(s=r);return e.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(n)),i.indexOf(e)>=0)c=i.indexOf(e);else{const f=Math.min(s.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/s.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===r)return c!==a&&(n.snapIndex=c,n.emit("snapIndexChange")),void(n.params.loop&&n.virtual&&n.params.virtual.enabled&&(n.realIndex=d(l)));let u;u=n.virtual&&s.virtual.enabled&&s.loop?d(l):n.slides[l]?parseInt(n.slides[l].getAttribute("data-swiper-slide-index")||l,10):l,Object.assign(n,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:u,previousIndex:r,activeIndex:l}),n.initialized&&vC(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),o!==u&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")},updateClickedSlide:function(t){const n=this,e=n.params,i=t.closest(`.${e.slideClass}, swiper-slide`);let r,s=!1;if(i)for(let o=0;ol?l:i&&tr?"next":s=l.length&&($=l.length-1);const L=-l[$];if(a.normalizeSlideIndex)for(let ue=0;ue=Fe&&Te=Fe&&Te=Fe&&(o=ue)}if(r.initialized&&o!==u&&(!r.allowSlideNext&&(f?L>r.translate&&L>r.minTranslate():Lr.translate&&L>r.maxTranslate()&&(u||0)!==o))return!1;let J;if(o!==(d||0)&&e&&r.emit("beforeSlideChangeStart"),r.updateProgress(L),J=o>u?"next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{_[ue?"scrollLeft":"scrollTop"]=Te})):_[ue?"scrollLeft":"scrollTop"]=Te,Fe&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return ZB({swiper:r,targetPosition:Te,side:ue?"left":"top"}),!0;_.scrollTo({[ue?"left":"top"]:Te,behavior:"smooth"})}return!0}return r.setTransition(n),r.setTranslate(L),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",n,i),r.transitionStart(e,J),0===n?r.transitionEnd(e,J):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(Te){!r||r.destroyed||Te.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(e,J))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,n=this.params.speed,e=!0,i){"string"==typeof t&&(t=parseInt(t,10));const s=this;let r=t;return s.params.loop&&(s.virtual&&s.params.virtual.enabled?r+=s.virtual.slidesBefore:r=s.getSlideIndexByData(r)),s.slideTo(r,n,e,i)},slideNext:function(t=this.params.speed,n=!0,e){const i=this,{enabled:s,params:r,animating:o}=i;if(!s)return i;let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndexf(L));let k=r[T.indexOf(_)-1];if(void 0===k&&s.cssMode){let L;r.forEach((J,ue)=>{_>=J&&(L=ue)}),void 0!==L&&(k=r[L>0?L-1:L])}let $=0;return void 0!==k&&($=o.indexOf(k),$<0&&($=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&($=$-i.slidesPerViewDynamic("previous",!0)+1,$=Math.max($,0))),i.slideTo(s.rewind&&i.isBeginning?i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:$,t,n,e)},slideReset:function(t=this.params.speed,n=!0,e){return this.slideTo(this.activeIndex,t,n,e)},slideToClosest:function(t=this.params.speed,n=!0,e,i=.5){const s=this;let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const c=s.snapGrid[a];l-c>(s.snapGrid[a+1]-c)*i&&(r+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1];l-c<=(s.snapGrid[a]-c)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,t,n,e)},slideToClickedSlide:function(){const t=this,{params:n,slidesEl:e}=t,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView;let r,s=t.clickedIndex;const o=t.isElement?"swiper-slide":`.${n.slideClass}`;if(n.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?st.slides.length-t.loopedSlides+i/2?(t.loopFix(),s=t.getSlideIndex(Ls(e,`${o}[data-swiper-slide-index="${r}"]`)[0]),Zl(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-i?(t.loopFix(),s=t.getSlideIndex(Ls(e,`${o}[data-swiper-slide-index="${r}"]`)[0]),Zl(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},qde={loopCreate:function(t){const n=this,{params:e,slidesEl:i}=n;!e.loop||n.virtual&&n.params.virtual.enabled||(Ls(i,`.${e.slideClass}, swiper-slide`).forEach((r,o)=>{r.setAttribute("data-swiper-slide-index",o)}),n.loopFix({slideRealIndex:t,direction:e.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:t,slideTo:n=!0,direction:e,setTranslate:i,activeSlideIndex:s,byController:r,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:d,slidesEl:u,params:f}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==a.snapIndex?f.centeredSlides&&a.snapIndexBe.classList.contains(f.slideActiveClass))[0]):L=s;const J="next"===e||!e,ue="prev"===e||!e;let Te=0,Fe=0;if(sa.slides.length-2*T){Fe=Math.max(s-(a.slides.length-2*T),f.slidesPerGroup);for(let Be=0;Be{a.slides[Be].swiperLoopMoveDOM=!0,u.prepend(a.slides[Be]),a.slides[Be].swiperLoopMoveDOM=!1}),J&&$.forEach(Be=>{a.slides[Be].swiperLoopMoveDOM=!0,u.append(a.slides[Be]),a.slides[Be].swiperLoopMoveDOM=!1}),a.recalcSlides(),"auto"===f.slidesPerView&&a.updateSlides(),f.watchSlidesProgress&&a.updateSlidesOffset(),n)if(k.length>0&&ue)if(void 0===t){const He=a.slidesGrid[L+Te]-a.slidesGrid[L];o?a.setTranslate(a.translate-He):(a.slideTo(L+Te,0,!1,!0),i&&(a.touches[a.isHorizontal()?"startX":"startY"]+=He))}else i&&a.slideToLoop(t,0,!1,!0);else if($.length>0&&J)if(void 0===t){const He=a.slidesGrid[L-Fe]-a.slidesGrid[L];o?a.setTranslate(a.translate-He):(a.slideTo(L-Fe,0,!1,!0),i&&(a.touches[a.isHorizontal()?"startX":"startY"]+=He))}else a.slideToLoop(t,0,!1,!0);if(a.allowSlidePrev=c,a.allowSlideNext=d,a.controller&&a.controller.control&&!r){const Be={slideRealIndex:t,slideTo:!1,direction:e,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(Ue=>{!Ue.destroyed&&Ue.params.loop&&Ue.loopFix(Be)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(Be)}a.emit("loopFix")},loopDestroy:function(){const t=this,{params:n,slidesEl:e}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(s=>{const r=void 0===s.swiperSlideIndex?1*s.getAttribute("data-swiper-slide-index"):s.swiperSlideIndex;i[r]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),i.forEach(s=>{e.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}},Kde={setGrabCursor:function(t){const n=this;if(!n.params.simulateTouch||n.params.watchOverflow&&n.isLocked||n.params.cssMode)return;const e="container"===n.params.touchEventsTarget?n.el:n.wrapperEl;n.isElement&&(n.__preventObserver__=!0),e.style.cursor="move",e.style.cursor=t?"grabbing":"grab",n.isElement&&requestAnimationFrame(()=>{n.__preventObserver__=!1})},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}};function Zde(t){const n=this,e=Fs(),i=Ri(),s=n.touchEventsData;s.evCache.push(t);const{params:r,touches:o,enabled:a}=n;if(!a||!r.simulateTouch&&"mouse"===t.pointerType||n.animating&&r.preventInteractionOnTransition)return;!n.animating&&r.cssMode&&r.loop&&n.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=l.target;if("wrapper"===r.touchEventsTarget&&!n.wrapperEl.contains(c)||"which"in l&&3===l.which||"button"in l&&l.button>0||s.isTouched&&s.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass,u=t.composedPath?t.composedPath():t.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;if(r.noSwiping&&(l.target&&l.target.shadowRoot?function(t,n=this){return function e(i){if(!i||i===Fs()||i===Ri())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return s||i.getRootNode?s||e(i.getRootNode().host):null}(n)}(f,c):c.closest(f)))return void(n.allowClick=!0);if(r.swipeHandler&&!c.closest(r.swipeHandler))return;o.currentX=l.pageX,o.currentY=l.pageY;const T=o.currentX,k=o.currentY,$=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,L=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if($&&(T<=L||T>=i.innerWidth-L)){if("prevent"!==$)return;t.preventDefault()}Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=T,o.startY=k,s.touchStartTime=Rr(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let J=!0;c.matches(s.focusableElements)&&(J=!1,"SELECT"===c.nodeName&&(s.isTouched=!1)),e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==c&&e.activeElement.blur(),(r.touchStartForcePreventDefault||J&&n.allowTouchMove&&r.touchStartPreventDefault)&&!c.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.animating&&!r.cssMode&&n.freeMode.onTouchStart(),n.emit("touchStart",l)}function eue(t){const n=Fs(),e=this,i=e.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:a}=e;if(!a||!s.simulateTouch&&"mouse"===t.pointerType)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",l));const c=i.evCache.findIndex(Be=>Be.pointerId===l.pointerId);c>=0&&(i.evCache[c]=l);const d=i.evCache.length>1?i.evCache[0]:l,u=d.pageX,f=d.pageY;if(l.preventedByNestedSwiper)return r.startX=u,void(r.startY=f);if(!e.allowTouchMove)return l.target.matches(i.focusableElements)||(e.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:u,startY:f,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:u,currentY:f}),i.touchStartTime=Rr()));if(s.touchReleaseOnEdges&&!s.loop)if(e.isVertical()){if(fr.startY&&e.translate>=e.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(ur.startX&&e.translate>=e.minTranslate())return;if(n.activeElement&&l.target===n.activeElement&&l.target.matches(i.focusableElements))return i.isMoved=!0,void(e.allowClick=!1);if(i.allowTouchCallbacks&&e.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=u,r.currentY=f;const _=r.currentX-r.startX,T=r.currentY-r.startY;if(e.params.threshold&&Math.sqrt(_**2+T**2)=25&&(Be=180*Math.atan2(Math.abs(T),Math.abs(_))/Math.PI,i.isScrolling=e.isHorizontal()?Be>s.touchAngle:90-Be>s.touchAngle)}if(i.isScrolling&&e.emit("touchMoveOpposite",l),void 0===i.startMoving&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(i.startMoving=!0),i.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&i.evCache.length>1)return void(i.isTouched=!1);if(!i.startMoving)return;e.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let k=e.isHorizontal()?_:T,$=e.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(k=Math.abs(k)*(o?1:-1),$=Math.abs($)*(o?1:-1)),r.diff=k,k*=s.touchRatio,o&&(k=-k,$=-$);const L=e.touchesDirection;e.swipeDirection=k>0?"prev":"next",e.touchesDirection=$>0?"prev":"next";const J=e.params.loop&&!s.cssMode;if(!i.isMoved){if(J&&e.loopFix({direction:e.swipeDirection}),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating){const Be=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(Be)}i.allowMomentumBounce=!1,s.grabCursor&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",l)}let ue;i.isMoved&&L!==e.touchesDirection&&J&&Math.abs(k)>=1&&(e.loopFix({direction:e.swipeDirection,setTranslate:!0}),ue=!0),e.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=k+i.startTranslate;let Te=!0,Fe=s.resistanceRatio;if(s.touchReleaseOnEdges&&(Fe=0),k>0?(J&&!ue&&i.currentTranslate>(s.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())&&e.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>e.minTranslate()&&(Te=!1,s.resistance&&(i.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+i.startTranslate+k)**Fe))):k<0&&(J&&!ue&&i.currentTranslate<(s.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())&&e.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:e.slides.length-("auto"===s.slidesPerView?e.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&!e.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(k)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=e.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&e.freeMode||s.watchSlidesProgress)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.freeMode.onTouchMove(),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}function tue(t){const n=this,e=n.touchEventsData,i=e.evCache.findIndex(ue=>ue.pointerId===t.pointerId);if(i>=0&&e.evCache.splice(i,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&("pointercancel"!==t.type||!n.browser.isSafari&&!n.browser.isWebView))return;const{params:s,touches:r,rtlTranslate:o,slidesGrid:a,enabled:l}=n;if(!l||!s.simulateTouch&&"mouse"===t.pointerType)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),e.allowTouchCallbacks&&n.emit("touchEnd",c),e.allowTouchCallbacks=!1,!e.isTouched)return e.isMoved&&s.grabCursor&&n.setGrabCursor(!1),e.isMoved=!1,void(e.startMoving=!1);s.grabCursor&&e.isMoved&&e.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);const d=Rr(),u=d-e.touchStartTime;if(n.allowClick){const ue=c.path||c.composedPath&&c.composedPath();n.updateClickedSlide(ue&&ue[0]||c.target),n.emit("tap click",c),u<300&&d-e.lastClickTime<300&&n.emit("doubleTap doubleClick",c)}if(e.lastClickTime=Rr(),Zl(()=>{n.destroyed||(n.allowClick=!0)}),!e.isTouched||!e.isMoved||!n.swipeDirection||0===r.diff||e.currentTranslate===e.startTranslate)return e.isTouched=!1,e.isMoved=!1,void(e.startMoving=!1);let f;if(e.isTouched=!1,e.isMoved=!1,e.startMoving=!1,f=s.followFinger?o?n.translate:-n.translate:-e.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void n.freeMode.onTouchEnd({currentPos:f});let _=0,T=n.slidesSizesGrid[0];for(let ue=0;ue=a[ue]&&f=a[ue]&&(_=ue,T=a[a.length-1]-a[a.length-2])}let k=null,$=null;s.rewind&&(n.isBeginning?$=s.virtual&&s.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(k=0));const L=(f-a[_])/T,J=_s.longSwipesMs){if(!s.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&n.slideTo(L>=s.longSwipesRatio?s.rewind&&n.isEnd?k:_+J:_),"prev"===n.swipeDirection&&(L>1-s.longSwipesRatio?n.slideTo(_+J):null!==$&&L<0&&Math.abs(L)>s.longSwipesRatio?n.slideTo($):n.slideTo(_))}else{if(!s.shortSwipes)return void n.slideTo(n.activeIndex);!n.navigation||c.target!==n.navigation.nextEl&&c.target!==n.navigation.prevEl?("next"===n.swipeDirection&&n.slideTo(null!==k?k:_+J),"prev"===n.swipeDirection&&n.slideTo(null!==$?$:_)):n.slideTo(c.target===n.navigation.nextEl?_+J:_)}}function n3(){const t=this,{params:n,el:e}=t;if(e&&0===e.offsetWidth)return;n.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),!("auto"===n.slidesPerView||n.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||o&&n.loop?t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=i,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function nue(t){const n=this;!n.enabled||n.allowClick||(n.params.preventClicks&&t.preventDefault(),n.params.preventClicksPropagation&&n.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function iue(){const t=this,{wrapperEl:n,rtlTranslate:e,enabled:i}=t;if(!i)return;let s;t.previousTranslate=t.translate,t.translate=t.isHorizontal()?-n.scrollLeft:-n.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const r=t.maxTranslate()-t.minTranslate();s=0===r?0:(t.translate-t.minTranslate())/r,s!==t.progress&&t.updateProgress(e?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function sue(t){const n=this;A_(n,t.target),!n.params.cssMode&&("auto"===n.params.slidesPerView||n.params.autoHeight)&&n.update()}let i3=!1;function rue(){}const s3=(t,n)=>{const e=Fs(),{params:i,el:s,wrapperEl:r,device:o}=t,a=!!i.nested,l="on"===n?"addEventListener":"removeEventListener",c=n;s[l]("pointerdown",t.onTouchStart,{passive:!1}),e[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),e[l]("pointerup",t.onTouchEnd,{passive:!0}),e[l]("pointercancel",t.onTouchEnd,{passive:!0}),e[l]("pointerout",t.onTouchEnd,{passive:!0}),e[l]("pointerleave",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",t.onClick,!0),i.cssMode&&r[l]("scroll",t.onScroll),t[c](i.updateOnWindowResize?o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",n3,!0),s[l]("load",t.onLoad,{capture:!0})},lue={attachEvents:function(){const t=this,n=Fs(),{params:e}=t;t.onTouchStart=Zde.bind(t),t.onTouchMove=eue.bind(t),t.onTouchEnd=tue.bind(t),e.cssMode&&(t.onScroll=iue.bind(t)),t.onClick=nue.bind(t),t.onLoad=sue.bind(t),i3||(n.addEventListener("touchstart",rue),i3=!0),s3(t,"on")},detachEvents:function(){s3(this,"off")}},r3=(t,n)=>t.grid&&n.grid&&n.grid.rows>1,uue={setBreakpoint:function(){const t=this,{realIndex:n,initialized:e,params:i,el:s}=t,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=r3(t,i),d=r3(t,l),u=i.enabled;c&&!d?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(k=>{if(void 0===l[k])return;const $=i[k]&&i[k].enabled,L=l[k]&&l[k].enabled;$&&!L&&t[k].disable(),!$&&L&&t[k].enable()});const f=l.direction&&l.direction!==i.direction,_=i.loop&&(l.slidesPerView!==i.slidesPerView||f);f&&e&&t.changeDirection(),fr(t.params,l);const T=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!T?t.disable():!u&&T&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),_&&e&&(t.loopDestroy(),t.loopCreate(n),t.updateSlides()),t.emit("breakpoint",l)},getBreakpoint:function(t,n="window",e){if(!t||"container"===n&&!e)return;let i=!1;const s=Ri(),r="window"===n?s.innerHeight:e.clientHeight,o=Object.keys(t).map(a=>{if("string"==typeof a&&0===a.indexOf("@")){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{"object"==typeof i?Object.keys(i).forEach(s=>{i[s]&&e.push(n+s)}):"string"==typeof i&&e.push(n+i)}),e}(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&"column"===e.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);n.push(...o),s.classList.add(...n),t.emitContainerClasses()},removeClasses:function(){const{el:n,classNames:e}=this;n.classList.remove(...e),this.emitContainerClasses()}},bC={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function yue(t,n){return function(i={}){const s=Object.keys(i)[0],r=i[s];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===t[s]&&(t[s]={auto:!0}),s in t&&"enabled"in r?(!0===t[s]&&(t[s]={enabled:!0}),"object"==typeof t[s]&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),fr(n,i)):fr(n,i)):fr(n,i)}}const xC={eventsEmitter:gde,update:Sde,translate:Ide,transition:Fde,slide:$de,loop:qde,grabCursor:Kde,events:lue,breakpoints:uue,checkOverflow:{checkOverflow:function(){const t=this,{isLocked:n,params:e}=t,{slidesOffsetBefore:i}=e;if(i){const s=t.slides.length-1;t.isLocked=t.size>t.slidesGrid[s]+t.slidesSizesGrid[s]+2*i}else t.isLocked=1===t.snapGrid.length;!0===e.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===e.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),n&&n!==t.isLocked&&(t.isEnd=!1),n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:gue},wC={};class Nr{constructor(...n){let e,i;1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?i=n[0]:[e,i]=n,i||(i={}),i=fr({},i),e&&!i.el&&(i.el=e);const s=Fs();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){const l=[];return s.querySelectorAll(i.el).forEach(c=>{const d=fr({},i,{el:c});l.push(new Nr(d))}),l}const r=this;r.__swiper__=!0,r.support=e3(),r.device=function(t={}){return mC||(mC=function({userAgent:t}={}){const n=e3(),e=Ri(),i=e.navigator.platform,s=t||e.navigator.userAgent,r={ios:!1,android:!1},o=e.screen.width,a=e.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i;let _="MacIntel"===i;return!c&&_&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),_=!1),l&&!f&&(r.os="android",r.android=!0),(c||u||d)&&(r.os="ios",r.ios=!0),r}(t)),mC}({userAgent:i.userAgent}),r.browser=(_C||(_C=function(){const t=Ri();let n=!1;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const i=String(t.navigator.userAgent);if(i.includes("Version/")){const[s,r]=i.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));n=s<16||16===s&&r<2}}return{isSafari:n||e(),needPerspectiveFix:n,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),_C),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const o={};r.modules.forEach(l=>{l({params:i,swiper:r,extendParams:yue(i,o),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const a=fr({},bC,o);return r.params=fr({},a,wC,i),r.originalParams=fr({},r.params),r.passedParams=fr({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(l=>{r.on(l,r.params.on[l])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getSlideIndex(n){const{slidesEl:e,params:i}=this,r=Cf(Ls(e,`.${i.slideClass}, swiper-slide`)[0]);return Cf(n)-r}getSlideIndexByData(n){return this.getSlideIndex(this.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===n)[0])}recalcSlides(){const{slidesEl:e,params:i}=this;this.slides=Ls(e,`.${i.slideClass}, swiper-slide`)}enable(){const n=this;n.enabled||(n.enabled=!0,n.params.grabCursor&&n.setGrabCursor(),n.emit("enable"))}disable(){const n=this;!n.enabled||(n.enabled=!1,n.params.grabCursor&&n.unsetGrabCursor(),n.emit("disable"))}setProgress(n,e){const i=this;n=Math.min(Math.max(n,0),1);const s=i.minTranslate(),o=(i.maxTranslate()-s)*n+s;i.translateTo(o,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const e=n.el.className.split(" ").filter(i=>0===i.indexOf("swiper")||0===i.indexOf(n.params.containerModifierClass));n.emit("_containerClasses",e.join(" "))}getSlideClasses(n){const e=this;return e.destroyed?"":n.className.split(" ").filter(i=>0===i.indexOf("swiper-slide")||0===i.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const e=[];n.slides.forEach(i=>{const s=n.getSlideClasses(i);e.push({slideEl:i,classNames:s}),n.emit("_slideClass",i,s)}),n.emit("_slideClasses",e)}slidesPerViewDynamic(n="current",e=!1){const{params:s,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=this;let d=1;if(s.centeredSlides){let f,u=r[c]?r[c].swiperSlideSize:0;for(let _=c+1;_l&&(f=!0));for(let _=c-1;_>=0;_-=1)r[_]&&!f&&(u+=r[_].swiperSlideSize,d+=1,u>l&&(f=!0))}else if("current"===n)for(let u=c+1;u=0;u-=1)o[c]-o[u]{o.complete&&A_(n,o)}),n.updateSize(),n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode?(s(),i.autoHeight&&n.updateAutoHeight()):(r=n.slideTo(("auto"===i.slidesPerView||i.slidesPerView>1)&&n.isEnd&&!i.centeredSlides?(n.virtual&&i.virtual.enabled?n.virtual.slides:n.slides).length-1:n.activeIndex,0,!1,!0),r||s()),i.watchOverflow&&e!==n.snapGrid&&n.checkOverflow(),n.emit("update")}changeDirection(n,e=!0){const i=this,s=i.params.direction;return n||(n="horizontal"===s?"vertical":"horizontal"),n===s||"horizontal"!==n&&"vertical"!==n||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${n}`),i.emitContainerClasses(),i.params.direction=n,i.slides.forEach(r=>{"vertical"===n?r.style.width="":r.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(n){const e=this;e.rtl&&"rtl"===n||!e.rtl&&"ltr"===n||(e.rtl="rtl"===n,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(n){const e=this;if(e.mounted)return!0;let i=n||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.shadowEl&&(e.isElement=!0);const s=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):Ls(i,s())[0];return!o&&e.params.createElements&&(o=lo("div",e.params.wrapperClass),i.append(o),Ls(i,`.${e.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(e,{el:i,wrapperEl:o,slidesEl:e.isElement?i:o,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===Ya(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===Ya(i,"direction")),wrongRTL:"-webkit-box"===Ya(o,"display")}),!0}init(n){const e=this;return e.initialized||!1===e.mount(n)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.slideTo(e.params.loop&&e.virtual&&e.params.virtual.enabled?e.params.initialSlide+e.virtual.slidesBefore:e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(),e.attachEvents(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete?A_(e,s):s.addEventListener("load",r=>{A_(e,r.target)})}),vC(e),e.initialized=!0,vC(e),e.emit("init"),e.emit("afterInit")),e}destroy(n=!0,e=!0){const i=this,{params:s,el:r,wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),!1!==n&&(i.el.swiper=null,function(t){const n=t;Object.keys(n).forEach(e=>{try{n[e]=null}catch(i){}try{delete n[e]}catch(i){}})}(i)),i.destroyed=!0),null}static extendDefaults(n){fr(wC,n)}static get extendedDefaults(){return wC}static get defaults(){return bC}static installModule(n){Nr.prototype.__modules__||(Nr.prototype.__modules__=[]);const e=Nr.prototype.__modules__;"function"==typeof n&&e.indexOf(n)<0&&e.push(n)}static use(n){return Array.isArray(n)?(n.forEach(e=>Nr.installModule(e)),Nr):(Nr.installModule(n),Nr)}}Object.keys(xC).forEach(t=>{Object.keys(xC[t]).forEach(n=>{Nr.prototype[n]=xC[t][n]})}),Nr.use([function({swiper:t,on:n,emit:e}){const i=Ri();let s=null,r=null;const o=()=>{!t||t.destroyed||!t.initialized||(e("beforeResize"),e("resize"))},c=()=>{!t||t.destroyed||!t.initialized||e("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{r=i.requestAnimationFrame(()=>{const{width:u,height:f}=t;let _=u,T=f;d.forEach(({contentBoxSize:k,contentRect:$,target:L})=>{L&&L!==t.el||(_=$?$.width:(k[0]||k).inlineSize,T=$?$.height:(k[0]||k).blockSize)}),(_!==u||T!==f)&&o()})}),s.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",c))}),n("destroy",()=>{r&&i.cancelAnimationFrame(r),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",c)})},function({swiper:t,extendParams:n,on:e,emit:i}){const s=[],r=Ri(),o=(c,d={})=>{const f=new(r.MutationObserver||r.WebkitMutationObserver)(_=>{if(t.__preventObserver__)return;if(1===_.length)return void i("observerUpdate",_[0]);const T=function(){i("observerUpdate",_[0])};r.requestAnimationFrame?r.requestAnimationFrame(T):r.setTimeout(T,0)});f.observe(c,{attributes:void 0===d.attributes||d.attributes,childList:void 0===d.childList||d.childList,characterData:void 0===d.characterData||d.characterData}),s.push(f)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),e("init",()=>{if(t.params.observer){if(t.params.observeParents){const c=tc(t.el);for(let d=0;d{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)})}]);const CC=Nr;function MC({swiper:t,extendParams:n,on:e,emit:i}){const s=Ri();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let r,a,o=Rr();const l=[];function d(){!t.enabled||(t.mouseEntered=!0)}function u(){!t.enabled||(t.mouseEntered=!1)}function f(J){return!(t.params.mousewheel.thresholdDelta&&J.delta=6&&Rr()-o<60||(J.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),i("scroll",J.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),i("scroll",J.raw)),o=(new s.Date).getTime(),!1))}function T(J){let ue=J,Te=!0;if(!t.enabled||J.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const Fe=t.params.mousewheel;t.params.cssMode&&ue.preventDefault();let Be=t.el;"container"!==t.params.mousewheel.eventsTarget&&(Be=document.querySelector(t.params.mousewheel.eventsTarget));const Ue=Be&&Be.contains(ue.target);if(!t.mouseEntered&&!Ue&&!Fe.releaseOnEdges)return!0;ue.originalEvent&&(ue=ue.originalEvent);let He=0;const it=t.rtlTranslate?-1:1,lt=function(J){let Be=0,Ue=0,He=0,it=0;return"detail"in J&&(Ue=J.detail),"wheelDelta"in J&&(Ue=-J.wheelDelta/120),"wheelDeltaY"in J&&(Ue=-J.wheelDeltaY/120),"wheelDeltaX"in J&&(Be=-J.wheelDeltaX/120),"axis"in J&&J.axis===J.HORIZONTAL_AXIS&&(Be=Ue,Ue=0),He=10*Be,it=10*Ue,"deltaY"in J&&(it=J.deltaY),"deltaX"in J&&(He=J.deltaX),J.shiftKey&&!He&&(He=it,it=0),(He||it)&&J.deltaMode&&(1===J.deltaMode?(He*=40,it*=40):(He*=800,it*=800)),He&&!Be&&(Be=He<1?-1:1),it&&!Ue&&(Ue=it<1?-1:1),{spinX:Be,spinY:Ue,pixelX:He,pixelY:it}}(ue);if(Fe.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(lt.pixelX)>Math.abs(lt.pixelY)))return!0;He=-lt.pixelX*it}else{if(!(Math.abs(lt.pixelY)>Math.abs(lt.pixelX)))return!0;He=-lt.pixelY}else He=Math.abs(lt.pixelX)>Math.abs(lt.pixelY)?-lt.pixelX*it:-lt.pixelY;if(0===He)return!0;Fe.invert&&(He=-He);let Xe=t.getTranslate()+He*Fe.sensitivity;if(Xe>=t.minTranslate()&&(Xe=t.minTranslate()),Xe<=t.maxTranslate()&&(Xe=t.maxTranslate()),Te=!!t.params.loop||!(Xe===t.minTranslate()||Xe===t.maxTranslate()),Te&&t.params.nested&&ue.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const qe={time:Rr(),delta:Math.abs(He),direction:Math.sign(He)},Pe=a&&qe.time=t.minTranslate()&&(Ye=t.minTranslate()),Ye<=t.maxTranslate()&&(Ye=t.maxTranslate()),t.setTransition(0),t.setTranslate(Ye),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!ht&&t.isBeginning||!Ve&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:qe.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(r),r=void 0,l.length>=15&&l.shift();const Qe=l.length?l[l.length-1]:void 0,Ke=l[0];if(l.push(qe),Qe&&(qe.delta>Qe.delta||qe.direction!==Qe.direction))l.splice(0);else if(l.length>=15&&qe.time-Ke.time<500&&Ke.delta-qe.delta>=1&&qe.delta<=6){const bt=He>0?.8:.2;a=qe,l.splice(0),r=Zl(()=>{t.slideToClosest(t.params.speed,!0,void 0,bt)},0)}r||(r=Zl(()=>{a=qe,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(Pe||i("scroll",ue),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),Ye===t.minTranslate()||Ye===t.maxTranslate())return!0}}else{const qe={time:Rr(),delta:Math.abs(He),direction:Math.sign(He),raw:J};l.length>=2&&l.shift();const Pe=l.length?l[l.length-1]:void 0;if(l.push(qe),Pe?(qe.direction!==Pe.direction||qe.delta>Pe.delta||qe.time>Pe.time+150)&&f(qe):f(qe),function(J){const ue=t.params.mousewheel;if(J.direction<0){if(t.isEnd&&!t.params.loop&&ue.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&ue.releaseOnEdges)return!0;return!1}(qe))return!0}return ue.preventDefault?ue.preventDefault():ue.returnValue=!1,!1}function k(J){let ue=t.el;"container"!==t.params.mousewheel.eventsTarget&&(ue=document.querySelector(t.params.mousewheel.eventsTarget)),ue[J]("mouseenter",d),ue[J]("mouseleave",u),ue[J]("wheel",T)}function $(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",T),!0):!t.mousewheel.enabled&&(k("addEventListener"),t.mousewheel.enabled=!0,!0)}function L(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,T),!0):!!t.mousewheel.enabled&&(k("removeEventListener"),t.mousewheel.enabled=!1,!0)}e("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&L(),t.params.mousewheel.enabled&&$()}),e("destroy",()=>{t.params.cssMode&&$(),t.mousewheel.enabled&&L()}),Object.assign(t.mousewheel,{enable:$,disable:L})}function DC(t,n,e,i){return t.params.createElements&&Object.keys(i).forEach(s=>{if(!e[s]&&!0===e.auto){let r=Ls(t.el,`.${i[s]}`)[0];r||(r=lo("div",i[s]),r.className=i[s],t.el.append(r)),e[s]=r,n[s]=r}}),e}function SC({swiper:t,extendParams:n,on:e,emit:i}){n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};const s=T=>(Array.isArray(T)||(T=[T].filter(k=>!!k)),T);function r(T){let k;return T&&"string"==typeof T&&t.isElement&&(k=t.el.shadowRoot.querySelector(T),k)?k:(T&&("string"==typeof T&&(k=[...document.querySelectorAll(T)]),t.params.uniqueNavElements&&"string"==typeof T&&k.length>1&&1===t.el.querySelectorAll(T).length&&(k=t.el.querySelector(T))),T&&!k?T:k)}function o(T,k){const $=t.params.navigation;(T=s(T)).forEach(L=>{L&&(L.classList[k?"add":"remove"](...$.disabledClass.split(" ")),"BUTTON"===L.tagName&&(L.disabled=k),t.params.watchOverflow&&t.enabled&&L.classList[t.isLocked?"add":"remove"]($.lockClass))})}function a(){const{nextEl:T,prevEl:k}=t.navigation;if(t.params.loop)return o(k,!1),void o(T,!1);o(k,t.isBeginning&&!t.params.rewind),o(T,t.isEnd&&!t.params.rewind)}function l(T){T.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(T){T.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function d(){const T=t.params.navigation;if(t.params.navigation=DC(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!T.nextEl&&!T.prevEl)return;let k=r(T.nextEl),$=r(T.prevEl);Object.assign(t.navigation,{nextEl:k,prevEl:$}),k=s(k),$=s($);const L=(J,ue)=>{J&&J.addEventListener("click","next"===ue?c:l),!t.enabled&&J&&J.classList.add(...T.lockClass.split(" "))};k.forEach(J=>L(J,"next")),$.forEach(J=>L(J,"prev"))}function u(){let{nextEl:T,prevEl:k}=t.navigation;T=s(T),k=s(k);const $=(L,J)=>{L.removeEventListener("click","next"===J?c:l),L.classList.remove(...t.params.navigation.disabledClass.split(" "))};T.forEach(L=>$(L,"next")),k.forEach(L=>$(L,"prev"))}e("init",()=>{!1===t.params.navigation.enabled?_():(d(),a())}),e("toEdge fromEdge lock unlock",()=>{a()}),e("destroy",()=>{u()}),e("enable disable",()=>{let{nextEl:T,prevEl:k}=t.navigation;T=s(T),k=s(k),[...T,...k].filter($=>!!$).forEach($=>$.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass))}),e("click",(T,k)=>{let{nextEl:$,prevEl:L}=t.navigation;$=s($),L=s(L);const J=k.target;if(t.params.navigation.hideOnClick&&!L.includes(J)&&!$.includes(J)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===J||t.pagination.el.contains(J)))return;let ue;$.length?ue=$[0].classList.contains(t.params.navigation.hiddenClass):L.length&&(ue=L[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===ue?"navigationShow":"navigationHide"),[...$,...L].filter(Te=>!!Te).forEach(Te=>Te.classList.toggle(t.params.navigation.hiddenClass))}});const _=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},disable:_,update:a,init:d,destroy:u})}function qa(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function EC({swiper:t,extendParams:n,on:e,emit:i}){const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:L=>L,formatFractionTotal:L=>L,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let r,o=0;const a=L=>(Array.isArray(L)||(L=[L].filter(J=>!!J)),L);function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(L,J){const{bulletActiveClass:ue}=t.params.pagination;!L||(L=L[("prev"===J?"previous":"next")+"ElementSibling"])&&(L.classList.add(`${ue}-${J}`),(L=L[("prev"===J?"previous":"next")+"ElementSibling"])&&L.classList.add(`${ue}-${J}-${J}`))}function d(L){const J=L.target.closest(qa(t.params.pagination.bulletClass));if(!J)return;L.preventDefault();const ue=Cf(J)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===ue)return;const Te=t.getSlideIndexByData(ue),Fe=t.getSlideIndexByData(t.realIndex);Te>t.slides.length-t.loopedSlides&&t.loopFix({direction:Te>Fe?"next":"prev",activeSlideIndex:Te,slideTo:!1}),t.slideToLoop(ue)}else t.slideTo(ue)}function u(){const L=t.rtl,J=t.params.pagination;if(l())return;let Te,Fe,ue=t.pagination.el;ue=a(ue);const Ue=t.params.loop?Math.ceil((t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(Fe=t.previousRealIndex||0,Te=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(Te=t.snapIndex,Fe=t.previousSnapIndex):(Fe=t.previousIndex||0,Te=t.activeIndex||0),"bullets"===J.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const He=t.pagination.bullets;let it,lt,Xe;if(J.dynamicBullets&&(r=pC(He[0],t.isHorizontal()?"width":"height",!0),ue.forEach(qe=>{qe.style[t.isHorizontal()?"width":"height"]=r*(J.dynamicMainBullets+4)+"px"}),J.dynamicMainBullets>1&&void 0!==Fe&&(o+=Te-(Fe||0),o>J.dynamicMainBullets-1?o=J.dynamicMainBullets-1:o<0&&(o=0)),it=Math.max(Te-o,0),lt=it+(Math.min(He.length,J.dynamicMainBullets)-1),Xe=(lt+it)/2),He.forEach(qe=>{const Pe=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(Ye=>`${J.bulletActiveClass}${Ye}`)].map(Ye=>"string"==typeof Ye&&Ye.includes(" ")?Ye.split(" "):Ye).flat();qe.classList.remove(...Pe)}),ue.length>1)He.forEach(qe=>{const Pe=Cf(qe);Pe===Te?qe.classList.add(...J.bulletActiveClass.split(" ")):t.isElement&&qe.setAttribute("part","bullet"),J.dynamicBullets&&(Pe>=it&&Pe<=lt&&qe.classList.add(...`${J.bulletActiveClass}-main`.split(" ")),Pe===it&&c(qe,"prev"),Pe===lt&&c(qe,"next"))});else{const qe=He[Te];if(qe&&qe.classList.add(...J.bulletActiveClass.split(" ")),t.isElement&&He.forEach((Pe,Ye)=>{Pe.setAttribute("part",Ye===Te?"bullet-active":"bullet")}),J.dynamicBullets){const Pe=He[it],Ye=He[lt];for(let ht=it;ht<=lt;ht+=1)He[ht]&&He[ht].classList.add(...`${J.bulletActiveClass}-main`.split(" "));c(Pe,"prev"),c(Ye,"next")}}if(J.dynamicBullets){const qe=Math.min(He.length,J.dynamicMainBullets+4),Pe=(r*qe-r)/2-Xe*r,Ye=L?"right":"left";He.forEach(ht=>{ht.style[t.isHorizontal()?Ye:"top"]=`${Pe}px`})}}ue.forEach((He,it)=>{if("fraction"===J.type&&(He.querySelectorAll(qa(J.currentClass)).forEach(lt=>{lt.textContent=J.formatFractionCurrent(Te+1)}),He.querySelectorAll(qa(J.totalClass)).forEach(lt=>{lt.textContent=J.formatFractionTotal(Ue)})),"progressbar"===J.type){let lt;lt=J.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const Xe=(Te+1)/Ue;let qe=1,Pe=1;"horizontal"===lt?qe=Xe:Pe=Xe,He.querySelectorAll(qa(J.progressbarFillClass)).forEach(Ye=>{Ye.style.transform=`translate3d(0,0,0) scaleX(${qe}) scaleY(${Pe})`,Ye.style.transitionDuration=`${t.params.speed}ms`})}"custom"===J.type&&J.renderCustom?(He.innerHTML=J.renderCustom(t,Te+1,Ue),0===it&&i("paginationRender",He)):(0===it&&i("paginationRender",He),i("paginationUpdate",He)),t.params.watchOverflow&&t.enabled&&He.classList[t.isLocked?"add":"remove"](J.lockClass)})}function f(){const L=t.params.pagination;if(l())return;const J=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let ue=t.pagination.el;ue=a(ue);let Te="";if("bullets"===L.type){let Fe=t.params.loop?Math.ceil(J/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&Fe>J&&(Fe=J);for(let Be=0;Be`}"fraction"===L.type&&(Te=L.renderFraction?L.renderFraction.call(t,L.currentClass,L.totalClass):` / `),"progressbar"===L.type&&(Te=L.renderProgressbar?L.renderProgressbar.call(t,L.progressbarFillClass):``),t.pagination.bullets=[],ue.forEach(Fe=>{"custom"!==L.type&&(Fe.innerHTML=Te||""),"bullets"===L.type&&t.pagination.bullets.push(...Fe.querySelectorAll(qa(L.bulletClass)))}),"custom"!==L.type&&i("paginationRender",ue[0])}function _(){t.params.pagination=DC(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const L=t.params.pagination;if(!L.el)return;let J;"string"==typeof L.el&&t.isElement&&(J=t.el.shadowRoot.querySelector(L.el)),!J&&"string"==typeof L.el&&(J=[...document.querySelectorAll(L.el)]),J||(J=L.el),J&&0!==J.length&&(t.params.uniqueNavElements&&"string"==typeof L.el&&Array.isArray(J)&&J.length>1&&(J=[...t.el.querySelectorAll(L.el)],J.length>1&&(J=J.filter(ue=>tc(ue,".swiper")[0]===t.el)[0])),Array.isArray(J)&&1===J.length&&(J=J[0]),Object.assign(t.pagination,{el:J}),J=a(J),J.forEach(ue=>{"bullets"===L.type&&L.clickable&&ue.classList.add(L.clickableClass),ue.classList.add(L.modifierClass+L.type),ue.classList.add(t.isHorizontal()?L.horizontalClass:L.verticalClass),"bullets"===L.type&&L.dynamicBullets&&(ue.classList.add(`${L.modifierClass}${L.type}-dynamic`),o=0,L.dynamicMainBullets<1&&(L.dynamicMainBullets=1)),"progressbar"===L.type&&L.progressbarOpposite&&ue.classList.add(L.progressbarOppositeClass),L.clickable&&ue.addEventListener("click",d),t.enabled||ue.classList.add(L.lockClass)}))}function T(){const L=t.params.pagination;if(l())return;let J=t.pagination.el;J&&(J=a(J),J.forEach(ue=>{ue.classList.remove(L.hiddenClass),ue.classList.remove(L.modifierClass+L.type),ue.classList.remove(t.isHorizontal()?L.horizontalClass:L.verticalClass),L.clickable&&ue.removeEventListener("click",d)})),t.pagination.bullets&&t.pagination.bullets.forEach(ue=>ue.classList.remove(...L.bulletActiveClass.split(" ")))}e("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const L=t.params.pagination;let{el:J}=t.pagination;J=a(J),J.forEach(ue=>{ue.classList.remove(L.horizontalClass,L.verticalClass),ue.classList.add(t.isHorizontal()?L.horizontalClass:L.verticalClass)})}),e("init",()=>{!1===t.params.pagination.enabled?$():(_(),f(),u())}),e("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),e("snapIndexChange",()=>{u()}),e("snapGridLengthChange",()=>{f(),u()}),e("destroy",()=>{T()}),e("enable disable",()=>{let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),e("lock unlock",()=>{u()}),e("click",(L,J)=>{const ue=J.target;let{el:Te}=t.pagination;if(Array.isArray(Te)||(Te=[Te].filter(Fe=>!!Fe)),t.params.pagination.el&&t.params.pagination.hideOnClick&&Te&&Te.length>0&&!ue.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&ue===t.navigation.nextEl||t.navigation.prevEl&&ue===t.navigation.prevEl))return;const Fe=Te[0].classList.contains(t.params.pagination.hiddenClass);i(!0===Fe?"paginationShow":"paginationHide"),Te.forEach(Be=>Be.classList.toggle(t.params.pagination.hiddenClass))}});const $=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList.add(t.params.pagination.paginationDisabledClass))),T()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList.remove(t.params.pagination.paginationDisabledClass))),_(),f(),u()},disable:$,render:f,update:u,init:_,destroy:T})}function TC({swiper:t,extendParams:n,on:e}){n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let i=null;function s(Pe){const Ye=i;0!==Ye.length&&(Ye.innerHTML="",Ye.innerHTML=Pe)}const r=Pe=>(Array.isArray(Pe)||(Pe=[Pe].filter(Ye=>!!Ye)),Pe);function a(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("tabIndex","0")})}function l(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("tabIndex","-1")})}function c(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("role",Ye)})}function d(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-roledescription",Ye)})}function f(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-label",Ye)})}function k(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("aria-disabled",!0)})}function $(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("aria-disabled",!1)})}function L(Pe){if(13!==Pe.keyCode&&32!==Pe.keyCode)return;const Ye=t.params.a11y,ht=Pe.target;t.pagination&&t.pagination.el&&(ht===t.pagination.el||t.pagination.el.contains(Pe.target))&&!Pe.target.matches(qa(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&ht===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),s(t.isEnd?Ye.lastSlideMessage:Ye.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&ht===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),s(t.isBeginning?Ye.firstSlideMessage:Ye.prevSlideMessage)),t.pagination&&ht.matches(qa(t.params.pagination.bulletClass))&&ht.click())}function ue(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function Te(){return ue()&&t.params.pagination.clickable}const Be=(Pe,Ye,ht)=>{a(Pe),"BUTTON"!==Pe.tagName&&(c(Pe,"button"),Pe.addEventListener("keydown",L)),f(Pe,ht),function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-controls",Ye)})}(Pe,Ye)},Ue=()=>{t.a11y.clicked=!0},He=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},it=Pe=>{if(t.a11y.clicked)return;const Ye=Pe.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!Ye||!t.slides.includes(Ye))return;const ht=t.slides.indexOf(Ye)===t.activeIndex,Ve=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(Ye);ht||Ve||Pe.sourceCapabilities&&Pe.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(Ye),0))},lt=()=>{const Pe=t.params.a11y;Pe.itemRoleDescriptionMessage&&d(t.slides,Pe.itemRoleDescriptionMessage),Pe.slideRole&&c(t.slides,Pe.slideRole);const Ye=t.slides.length;Pe.slideLabelMessage&&t.slides.forEach((ht,Ve)=>{const Qe=t.params.loop?parseInt(ht.getAttribute("data-swiper-slide-index"),10):Ve;f(ht,Pe.slideLabelMessage.replace(/\{\{index\}\}/,Qe+1).replace(/\{\{slidesLength\}\}/,Ye))})};e("beforeInit",()=>{i=lo("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),e("afterInit",()=>{!t.params.a11y.enabled||(()=>{const Pe=t.params.a11y;t.isElement?t.el.shadowEl.append(i):t.el.append(i);const Ye=t.el;Pe.containerRoleDescriptionMessage&&d(Ye,Pe.containerRoleDescriptionMessage),Pe.containerMessage&&f(Ye,Pe.containerMessage);const ht=t.wrapperEl,Ve=Pe.id||ht.getAttribute("id")||`swiper-wrapper-${function(Pe=16){return"x".repeat(Pe).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,Qe=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";(function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("id",Ye)})})(ht,Ve),function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-live",Ye)})}(ht,Qe),lt();let{nextEl:Ke,prevEl:bt}=t.navigation?t.navigation:{};Ke=r(Ke),bt=r(bt),Ke&&Ke.forEach(un=>Be(un,Ve,Pe.nextSlideMessage)),bt&&bt.forEach(un=>Be(un,Ve,Pe.prevSlideMessage)),Te()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(ui=>{ui.addEventListener("keydown",L)}),t.el.addEventListener("focus",it,!0),t.el.addEventListener("pointerdown",Ue,!0),t.el.addEventListener("pointerup",He,!0)})()}),e("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{!t.params.a11y.enabled||lt()}),e("fromEdge toEdge afterInit lock unlock",()=>{!t.params.a11y.enabled||function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:Pe,prevEl:Ye}=t.navigation;Ye&&(t.isBeginning?(k(Ye),l(Ye)):($(Ye),a(Ye))),Pe&&(t.isEnd?(k(Pe),l(Pe)):($(Pe),a(Pe)))}()}),e("paginationUpdate",()=>{!t.params.a11y.enabled||function(){const Pe=t.params.a11y;!ue()||t.pagination.bullets.forEach(Ye=>{t.params.pagination.clickable&&(a(Ye),t.params.pagination.renderBullet||(c(Ye,"button"),f(Ye,Pe.paginationBulletMessage.replace(/\{\{index\}\}/,Cf(Ye)+1)))),Ye.matches(qa(t.params.pagination.bulletActiveClass))?Ye.setAttribute("aria-current","true"):Ye.removeAttribute("aria-current")})}()}),e("destroy",()=>{!t.params.a11y.enabled||function(){i&&i.remove();let{nextEl:Pe,prevEl:Ye}=t.navigation?t.navigation:{};Pe=r(Pe),Ye=r(Ye),Pe&&Pe.forEach(ht=>ht.removeEventListener("keydown",L)),Ye&&Ye.forEach(ht=>ht.removeEventListener("keydown",L)),Te()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(Ve=>{Ve.removeEventListener("keydown",L)}),t.el.removeEventListener("focus",it,!0),t.el.removeEventListener("pointerdown",Ue,!0),t.el.removeEventListener("pointerup",He,!0)}()})}function AC({swiper:t,extendParams:n,on:e,emit:i,params:s}){t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,o,c,u,f,_,T,k,$,a=s&&s.autoplay?s.autoplay.delay:3e3,l=s&&s.autoplay?s.autoplay.delay:3e3,d=(new Date).getTime;function L(Ve){!t||t.destroyed||!t.wrapperEl||Ve.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",L),He())}const J=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?u=!0:u&&(l=c,u=!1);const Ve=t.autoplay.paused?c:d+l-(new Date).getTime();t.autoplay.timeLeft=Ve,i("autoplayTimeLeft",Ve,Ve/a),o=requestAnimationFrame(()=>{J()})},Te=Ve=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),J();let Qe=void 0===Ve?t.params.autoplay.delay:Ve;a=t.params.autoplay.delay,l=t.params.autoplay.delay;const Ke=(()=>{let Ve;return Ve=t.virtual&&t.params.virtual.enabled?t.slides.filter(Ke=>Ke.classList.contains("swiper-slide-active"))[0]:t.slides[t.activeIndex],Ve?parseInt(Ve.getAttribute("data-swiper-autoplay"),10):void 0})();!Number.isNaN(Ke)&&Ke>0&&void 0===Ve&&(Qe=Ke,a=Ke,l=Ke),c=Qe;const bt=t.params.speed,un=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(bt,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,bt,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(bt,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,bt,!0,!0),i("autoplay")),t.params.cssMode&&(d=(new Date).getTime(),requestAnimationFrame(()=>{Te()})))};return Qe>0?(clearTimeout(r),r=setTimeout(()=>{un()},Qe)):requestAnimationFrame(()=>{un()}),Qe},Fe=()=>{t.autoplay.running=!0,Te(),i("autoplayStart")},Be=()=>{t.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),i("autoplayStop")},Ue=(Ve,Qe)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(r),Ve||($=!0);const Ke=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",L):He()};if(t.autoplay.paused=!0,Qe)return k&&(c=t.params.autoplay.delay),k=!1,void Ke();c=(c||t.params.autoplay.delay)-((new Date).getTime()-d),(!(t.isEnd&&c<0)||t.params.loop)&&(c<0&&(c=0),Ke())},He=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=(new Date).getTime(),$?($=!1,Te(c)):Te(),t.autoplay.paused=!1,i("autoplayResume"))},it=()=>{if(t.destroyed||!t.autoplay.running)return;const Ve=Fs();"hidden"===Ve.visibilityState&&($=!0,Ue(!0)),"visible"===Ve.visibilityState&&He()},lt=Ve=>{"mouse"===Ve.pointerType&&($=!0,Ue(!0))},Xe=Ve=>{"mouse"===Ve.pointerType&&t.autoplay.paused&&He()};e("init",()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",lt),t.el.addEventListener("pointerleave",Xe)),Fs().addEventListener("visibilitychange",it),d=(new Date).getTime(),Fe())}),e("destroy",()=>{t.el.removeEventListener("pointerenter",lt),t.el.removeEventListener("pointerleave",Xe),Fs().removeEventListener("visibilitychange",it),t.autoplay.running&&Be()}),e("beforeTransitionStart",(Ve,Qe,Ke)=>{t.destroyed||!t.autoplay.running||(Ke||!t.params.autoplay.disableOnInteraction?Ue(!0,!0):Be())}),e("sliderFirstMove",()=>{if(!t.destroyed&&t.autoplay.running){if(t.params.autoplay.disableOnInteraction)return void Be();f=!0,_=!1,$=!1,T=setTimeout(()=>{$=!0,_=!0,Ue(!0)},200)}}),e("touchEnd",()=>{if(!t.destroyed&&t.autoplay.running&&f){if(clearTimeout(T),clearTimeout(r),t.params.autoplay.disableOnInteraction)return _=!1,void(f=!1);_&&t.params.cssMode&&He(),_=!1,f=!1}}),e("slideChange",()=>{t.destroyed||!t.autoplay.running||(k=!0)}),Object.assign(t.autoplay,{start:Fe,stop:Be,pause:Ue,resume:He})}function qd(t){const{effect:n,swiper:e,on:i,setTranslate:s,setTransition:r,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=t;let d;i("beforeInit",()=>{if(e.params.effect!==n)return;e.classNames.push(`${e.params.containerModifierClass}${n}`),a&&a()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const u=o?o():{};Object.assign(e.params,u),Object.assign(e.originalParams,u)}),i("setTranslate",()=>{e.params.effect===n&&s()}),i("setTransition",(u,f)=>{e.params.effect===n&&r(f)}),i("transitionEnd",()=>{if(e.params.effect===n&&l){if(!c||!c().slideShadows)return;e.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}}),i("virtualUpdate",()=>{e.params.effect===n&&(e.slides.length||(d=!0),requestAnimationFrame(()=>{d&&e.slides&&e.slides.length&&(s(),d=!1)}))})}function Df(t,n){const e=ec(n);return e!==n&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}function k_({swiper:t,duration:n,transformElements:e,allSlides:i}){const{activeIndex:s}=t;if(t.params.virtualTranslate&&0!==n){let a,o=!1;a=i?e:e.filter(l=>{const c=l.classList.contains("swiper-slide-transform")?(o=>o.parentElement?o.parentElement:t.slides.filter(l=>l.shadowEl&&l.shadowEl===o.parentNode)[0])(l):l;return t.getSlideIndex(c)===s}),a.forEach(l=>{Mf(l,()=>{if(o||!t||t.destroyed)return;o=!0,t.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(c)})})}}function Xd(t,n,e){const i="swiper-slide-shadow"+(e?`-${e}`:""),s=ec(n);let r=s.querySelector(`.${i}`);return r||(r=lo("div","swiper-slide-shadow"+(e?`-${e}`:"")),s.append(r)),r}function kC({swiper:t,extendParams:n,on:e}){n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),qd({effect:"coverflow",swiper:t,on:e,setTranslate:()=>{const{width:r,height:o,slides:a,slidesSizesGrid:l}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),u=t.translate,f=d?r/2-u:o/2-u,_=d?c.rotate:-c.rotate,T=c.depth;for(let k=0,$=a.length;k<$;k+=1){const L=a[k],J=l[k],Te=(f-L.swiperSlideOffset-J/2)/J,Fe="function"==typeof c.modifier?c.modifier(Te):Te*c.modifier;let Be=d?_*Fe:0,Ue=d?0:_*Fe,He=-T*Math.abs(Fe),it=c.stretch;"string"==typeof it&&-1!==it.indexOf("%")&&(it=parseFloat(c.stretch)/100*J);let lt=d?0:it*Fe,Xe=d?it*Fe:0,qe=1-(1-c.scale)*Math.abs(Fe);Math.abs(Xe)<.001&&(Xe=0),Math.abs(lt)<.001&&(lt=0),Math.abs(He)<.001&&(He=0),Math.abs(Be)<.001&&(Be=0),Math.abs(Ue)<.001&&(Ue=0),Math.abs(qe)<.001&&(qe=0);const Pe=`translate3d(${Xe}px,${lt}px,${He}px) rotateX(${Ue}deg) rotateY(${Be}deg) scale(${qe})`;if(Df(0,L).style.transform=Pe,L.style.zIndex=1-Math.abs(Math.round(Fe)),c.slideShadows){let ht=L.querySelector(d?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),Ve=L.querySelector(d?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");ht||(ht=Xd(0,L,d?"left":"top")),Ve||(Ve=Xd(0,L,d?"right":"bottom")),ht&&(ht.style.opacity=Fe>0?Fe:0),Ve&&(Ve.style.opacity=-Fe>0?-Fe:0)}}},setTransition:r=>{t.slides.map(a=>ec(a)).forEach(a=>{a.style.transitionDuration=`${r}ms`,a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${r}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}const Rue=function(t,n){return{height:t,width:n}};let Nue=(()=>{class t{constructor(){this.height=300,this.width=200}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["image-load"]],inputs:{height:"height",width:"width"},decls:1,vars:4,consts:[[1,"image-load",3,"ngStyle"]],template:function(e,i){1&e&&je(0,"span",0),2&e&&ge("ngStyle",Qr(1,Rue,i.height+"px",i.width+"px"))},directives:[xl,$h],styles:[".image-load[_ngcontent-%COMP%]{background:#dddddd;background:linear-gradient(to right,#dddddd 0%,#e6e6e6 5%,#e6e6e6 15%,#dddddd 20%,#dddddd 100%);background-size:400px 30px;background-position:-200px 0;animation:pulseBG 1s linear infinite;display:block}@keyframes pulseBG{0%{background-position:-200px 0}50%{background-position:200px 0}to{background-position:200px 0}}"]}),t})(),o3=(()=>{class t{constructor(e,i,s,r){this.el=e,this.renderer=i,this.componentFactoryResolver=s,this.viewContainerRef=r}ngOnInit(){const e=this.componentFactoryResolver.resolveComponentFactory(Nue);this.loaderComponentRef=this.viewContainerRef.createComponent(e),this.el.nativeElement.height&&(this.loaderComponentRef.instance.height=this.el.nativeElement.height),this.el.nativeElement.width&&(this.loaderComponentRef.instance.width=this.el.nativeElement.width),this.renderer.insertBefore(this.el.nativeElement.parentNode,this.loaderComponentRef.location.nativeElement,this.el.nativeElement),this.renderer.setStyle(this.el.nativeElement,"display","none")}onLoad(){this.loaderComponentRef.destroy(),this.renderer.setStyle(this.el.nativeElement,"display","block")}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ji),C(is),C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","loadImage",""]],hostBindings:function(e,i){1&e&&nt("load",function(){return i.onLoad()})}}),t})(),a3=(()=>{class t{constructor(e){this.el=e,this.swiperElement=e.nativeElement}ngAfterViewInit(){Object.assign(this.el.nativeElement,this.config),this.el.nativeElement.initialize()}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","fmSwiper",""]],inputs:{config:"config"}}),t})();function Fue(t,n){if(1&t&&(j(0,"swiper-slide",2,3),j(2,"fm-stream-item"),j(3,"a",4),ct(4,"languageContent"),j(5,"div",5),j(6,"div",6),je(7,"img",7),z(),j(8,"div",8),j(9,"span"),$e(10),z(),z(),z(),z(),z(),z()),2&t){const e=n.$implicit;ae(3),yi("href",ml(4,3,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(4),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(3),$t("",e.score," \u2764\ufe0f")}}let Lue=(()=>{class t{constructor(){this._topArr=[],this.imageDataPath=dr,this.config={modules:[SC,EC,TC,MC,kC,AC],loop:!0,speed:1e3,autoplay:{delay:2e3,disableOnInteraction:!1},effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:80,depth:200,modifier:1,slideShadows:!1}}}set topArr(e){this._topArr=[...e,...e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["fm-streams-swiper"]],inputs:{topArr:"topArr",fieldName:"fieldName"},decls:2,vars:2,consts:[["fmSwiper","","init","false",1,"swiper-display-container",3,"config"],["class","swiper-display-slider",4,"ngFor","ngForOf"],[1,"swiper-display-slider"],["switch",""],["target","_blank","rel","noopener noreferrer",1,"swiper-display-link",3,"href"],[1,"swiper-display-item"],[1,"swiper-display-thumbnail-container"],[1,"swiper-display-item-img",3,"src"],[1,"swiper-display-item-name"]],template:function(e,i){1&e&&(j(0,"swiper-container",0),ke(1,Fue,11,7,"swiper-slide",1),z()),2&e&&(ge("config",i.config),ae(1),ge("ngForOf",i._topArr))},directives:[a3,oi],pipes:[Wa],styles:[".swiper-display-thumbnail-container{grid-area:1/-1}.swiper-display-link:hover{cursor:pointer;text-decoration:none;color:unset}.swiper-display-item{border-radius:5px;display:grid;width:225px;height:320px;margin-right:5px;transform-origin:90%;overflow:hidden}.swiper-display-item-name{word-break:break-word;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;grid-area:1/-1;padding:1rem;color:#fff;background:linear-gradient(to top,#000000d9,#0000) bottom / 100% 60% no-repeat;border-radius:5px;transition:1s ease}.swiper-display-item-img{border-radius:5px;width:225px;height:320px}.swiper-display-item img{transition:1s ease}.swiper-display-container{width:330px;padding-top:50px;padding-bottom:50px}.swiper-display-slider{width:210px}\n"],encapsulation:2}),t})();function Bue(t,n){if(1&t&&(j(0,"div",8),j(1,"div",9),je(2,"img",10),z(),j(3,"div",11),j(4,"a",12),ct(5,"languageContent"),$e(6),z(),j(7,"span"),$e(8),z(),z(),z()),2&t){const e=n.$implicit,i=Ie(3);ae(2),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(2),yi("href",ml(5,4,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(2),$t(" ",(null==e.anime?null:e.anime[i.fieldName])||(null==e.manga?null:e.manga[i.fieldName])," "),ae(2),$t("",e.score," \u2764\ufe0f")}}function Vue(t,n){if(1&t&&(j(0,"div",6),ke(1,Bue,9,8,"div",7),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.topArr)}}function Hue(t,n){if(1&t&&(Rn(0),ke(1,Vue,2,1,"div",5),Nn()),2&t){const e=Ie();ae(1),ge("ngIf",e.getScreenWidth>=1e3)}}function jue(t,n){if(1&t&&je(0,"fm-streams-swiper",13),2&t){const e=Ie();ge("topArr",e.topArr)("fieldName",e.fieldName)}}function zue(t,n){1&t&&(j(0,"div"),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"NEED_MORE_DATA")," "))}let Uue=(()=>{class t{constructor(e){this.translationService=e,this.topArr=[],this.fieldName="name",this.imageDataPath=dr}set allData(e){for(let i of Object.keys(e))e[i].forEach(s=>{var r,o,a,l,c,d,u,f,_,T,k,$;s[i].thumbnail=(null==s?void 0:s.__typename)?(null===(o=null===(r=s.anime)||void 0===r?void 0:r.poster)||void 0===o?void 0:o.preview2xUrl)||(null===(l=null===(a=s.manga)||void 0===a?void 0:a.poster)||void 0===l?void 0:l.preview2xUrl):dr+"/"+((null===(d=null===(c=s.anime)||void 0===c?void 0:c.image)||void 0===d?void 0:d.original)||(null===(f=null===(u=s.manga)||void 0===u?void 0:u.image)||void 0===f?void 0:f.original)),s[i].url=(null==s?void 0:s.__typename)?(null===(_=s.anime)||void 0===_?void 0:_.url)||(null===(T=s.manga)||void 0===T?void 0:T.url):`${dr}/${(null===(k=s.anime)||void 0===k?void 0:k.url)||(null===($=s.manga)||void 0===$?void 0:$.url)}`});this.topArr=[...this.maxValues(e.anime,9),...this.maxValues(e.manga,8)],this.topArr=Rs.shuffle(this.topArr).slice(0,3)}onWindowResize(){this.getScreenWidth=window.innerWidth}ngOnInit(){new CC(".swiper-container",{loop:!0,speed:1e3,autoplay:{delay:3e3,disableOnInteraction:!1},effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:80,depth:200,modifier:1,slideShadows:!1},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),this.translationService.localeChange.subscribe(()=>{this.updateFieldName()})}ngAfterContentInit(){this.getScreenWidth=window.innerWidth}updateFieldName(){this.fieldName="ru"===this.translationService.getLanguage()?"russian":"name"}maxValues(e,i){return e&&0!==e.length?e.reduce((s,r)=>r.score>=i?[...s,r]:s,[]):[]}}return t.\u0275fac=function(e){return new(e||t)(C(qs))},t.\u0275cmp=mt({type:t,selectors:[["app-top-anime"]],hostBindings:function(e,i){1&e&&nt("resize",function(r){return i.onWindowResize(r)},!1,vS)},inputs:{allData:"allData"},decls:8,vars:6,consts:[[1,"top-anime__container"],[1,"top-anime__header-text"],[4,"ngIf","ngIfElse"],[3,"topArr","fieldName",4,"ngIf"],["notEnoughData",""],["class","top-anime__wrapper",4,"ngIf"],[1,"top-anime__wrapper"],["class","top-anime-item",4,"ngFor","ngForOf"],[1,"top-anime-item"],[1,"top-anime-thumbnail-container"],["loadImage","",1,"top-anime-item-img",3,"src"],[1,"top-anime-item-name"],["target","_blank","rel","noopener noreferrer",1,"top-anime-item-name__text",3,"href"],[3,"topArr","fieldName"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Hue,2,1,"ng-container",2),z(),ke(5,jue,1,2,"fm-streams-swiper",3),ke(6,zue,3,3,"ng-template",null,4,Mn)),2&e){const s=Qt(7);ae(2),Mt(vt(3,4,"Favourite_anime")),ae(2),ge("ngIf",(null==i.topArr?null:i.topArr.length)>0)("ngIfElse",s),ae(1),ge("ngIf",(null==i.topArr?null:i.topArr.length)>0&&i.getScreenWidth<1e3)}},directives:[vn,oi,o3,Lue],pipes:[Gn,Wa],styles:[".top-anime-thumbnail-container[_ngcontent-%COMP%]{grid-area:1/-1}.top-anime-item[_ngcontent-%COMP%]{border-radius:5px;display:grid;width:225px;height:320px;margin-right:5px;transform-origin:90%;overflow:hidden}.top-anime-item[_ngcontent-%COMP%]:nth-child(1){margin-top:35px}.top-anime-item[_ngcontent-%COMP%]:nth-child(3){margin-top:35px}.top-anime-item-name[_ngcontent-%COMP%]{word-break:break-word;display:flex;flex-direction:column;justify-content:flex-end;grid-area:1/-1;padding:1rem;color:#fff;background:linear-gradient(to top,#000000d9,#0000) bottom / 100% 60% no-repeat;border-radius:5px;transition:1s ease}.top-anime-item-name__text[_ngcontent-%COMP%]{cursor:pointer;color:#fff;text-decoration:none}.top-anime-item-img[_ngcontent-%COMP%]{border-radius:5px;width:225px;height:320px}.top-anime-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:1s ease}.top-anime-item[_ngcontent-%COMP%]:hover{filter:drop-shadow(0 0 10px rgba(0,0,0,.3))}.top-anime-item[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.15)}.top-anime-item[_ngcontent-%COMP%]:hover .top-anime-item-name[_ngcontent-%COMP%]{transform:scale(1)}.top-anime__container[_ngcontent-%COMP%]{display:flex;margin-bottom:25px;flex-direction:column;justify-content:center;align-items:center}.top-anime__wrapper[_ngcontent-%COMP%]{position:relative;clear:both;display:grid;grid-gap:60px;margin-bottom:11%;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(1,250px)}@media (max-width: 992px){.top-anime__wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}.top-anime__header-text[_ngcontent-%COMP%]{font-size:1.7em;margin-top:5px;margin-bottom:5px;text-transform:uppercase}"]}),t})();const que=["completed"],l3=new Set;let Qd,c3=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Que}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!l3.has(t))try{Qd||(Qd=document.createElement("style"),Qd.setAttribute("type","text/css"),document.head.appendChild(Qd)),Qd.sheet&&(Qd.sheet.insertRule(`@media ${t} {body{ }}`,0),l3.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(yn))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn))},token:t,providedIn:"root"}),t})();function Que(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let nc=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return d3(vm(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let r=So(d3(vm(e)).map(o=>this._registerQuery(o).observable));return r=ud(r.pipe(Bn(1)),r.pipe(Mm(1),Cm(0))),r.pipe(g(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new S(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ai(i),g(({matches:o})=>({query:e,matches:o})),Tt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(Me(c3),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(c3),Me(xt))},token:t,providedIn:"root"}),t})();function d3(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const O__Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)";function Kue(t,n){if(1&t&&(j(0,"div",4),qn(1,5),z()),2&t){const e=Ie();ge("ngbTooltip",Qt(6))("triggers",e.selectedEvents)("placement",e.placement),ae(1),ge("ngTemplateOutlet",e.templateMain)}}function Jue(t,n){if(1&t&&(j(0,"span",4),$e(1),z()),2&t){const e=Ie();ge("ngbTooltip",Qt(6))("triggers",e.selectedEvents)("placement",e.placement),ae(1),Mt(e.textMain)}}function Zue(t,n){1&t&&qn(0,5),2&t&&ge("ngTemplateOutlet",Ie(2).templateTooltip)}function ehe(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.textTooltip)}}function the(t,n){if(1&t&&(j(0,"div",6),ke(1,Zue,1,1,"ng-container",7),ke(2,ehe,2,1,"span",8),z()),2&t){const e=Ie();ae(1),ge("ngIf",e.templateTooltip),ae(1),ge("ngIf",e.textTooltip)}}let OC=(()=>{class t{constructor(e){this.breakpointObserver=e,this.placement="auto",this.mobileEvents="click",this.desktopEvents="hover focus",this.selectedEvents=this.desktopEvents}ngOnInit(){this.breakpointObserver.observe([O__Handset]).subscribe(e=>{this.selectedEvents=e.matches?this.mobileEvents:this.desktopEvents})}}return t.\u0275fac=function(e){return new(e||t)(C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-tool-tip-text"]],inputs:{templateMain:"templateMain",templateTooltip:"templateTooltip",textMain:"textMain",textTooltip:"textTooltip",placement:"placement"},decls:7,vars:2,consts:[[1,"tooltip-control"],[1,"tooltip-control__text"],[3,"ngbTooltip","triggers","placement",4,"ngIf"],["tooltip",""],[3,"ngbTooltip","triggers","placement"],[3,"ngTemplateOutlet"],[1,"d-flex","flex-column"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngIf"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div"),j(2,"div",1),ke(3,Kue,2,4,"div",2),ke(4,Jue,2,4,"span",2),z(),z(),z(),ke(5,the,3,2,"ng-template",null,3,Mn)),2&e&&(ae(3),ge("ngIf",i.templateMain),ae(1),ge("ngIf",i.textMain))},directives:[vn,cC,os],styles:[".tooltip-control__text[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;border-bottom:1px dashed}"]}),t})();const nhe=function(t){return{animeTime:t}},ihe=function(t){return{mangaTime:t}};function she(t,n){if(1&t&&(j(0,"div",9),j(1,"span"),$e(2),ct(3,"translate"),z(),j(4,"span"),$e(5),ct(6,"translate"),z(),z()),2&t){const e=Ie();ae(2),Mt(Co(3,2,"TIME_SPENT_ANIME_TEMPL",bs(8,nhe,e.totalAnimeDays))),ae(3),Mt(Co(6,5,"TIME_SPENT_MANGA_TEMPL",bs(10,ihe,e.totalMangaDays)))}}let rhe=(()=>{class t{constructor(e,i){this.translatePipe=e,this.translateService=i,this._allData={},this.mangaDays=0,this.animeDays=0,this.totalMangaDays="?",this.totalAnimeDays="?",this.totalDaysSpent="?",this.displayTimeString="?"}set allData(e){var i,s;this._allData=e,(null===(i=e.anime)||void 0===i?void 0:i.length)>0&&this.calculateAnimeTime(),(null===(s=e.manga)||void 0===s?void 0:s.length)>0&&this.calculateMangaTime(),(this.mangaDays||this.animeDays)&&(this.totalDaysSpent=(this.mangaDays+this.animeDays).toFixed(0)),this.displayTimeString=`${this.totalDaysSpent} ${this.translatePipe.transform("DAYS_SHORT")}`}ngOnInit(){this.translateService.localeChange.subscribe(()=>{this.displayTimeString=`${this.totalDaysSpent} ${this.translatePipe.transform("DAYS_SHORT")}`})}calculateAnimeTime(){var e;let i=0,s=!1;null===(e=this._allData.anime)||void 0===e||e.forEach(r=>{r.anime.duration&&(i+=r.anime.duration*r.episodes*(0===r.rewatches?1:r.rewatches+1),s=!0)}),s&&(this.animeDays=i/60/24,this.totalAnimeDays=this.animeDays.toFixed(2))}calculateMangaTime(){var e,i;let s=0,r=0;null===(i=null===(e=this._allData)||void 0===e?void 0:e[Oi.MANGA])||void 0===i||i.forEach(o=>{var a,l,c,d,u;s=72*(null!==(a=o.volumes)&&void 0!==a?a:0),r=8*(null!==(l=o.chapters)&&void 0!==l?l:0),-1!==que.indexOf(null===(c=null==o?void 0:o.manga)||void 0===c?void 0:c.status)&&(this.mangaDays+=Math.max((null!==(d=o.rewatches)&&void 0!==d?d:0)*r,(null!==(u=o.rewatches)&&void 0!==u?u:0)*s)/60/24),this.mangaDays+=Math.max(s,r)/60/24}),this.totalMangaDays=this.mangaDays.toFixed(2)}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(qs))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-time"]],inputs:{allData:"allData"},decls:13,vars:5,consts:[[1,"anime-time"],[1,"anime-time__icon"],["xmlns","http://www.w3.org/2000/svg","width","35","height","35","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-clock-history"],["d","M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z"],["d","M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z"],["d","M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z"],[1,"anime-time__text"],[1,"anime-time__amount",3,"textMain","templateTooltip"],["tooltip",""],[1,"d-flex","flex-column"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"div",1),pn(),j(2,"svg",2),je(3,"path",3),je(4,"path",4),je(5,"path",5),z(),z(),Ti(),j(6,"div"),j(7,"div",6),$e(8),ct(9,"translate"),z(),je(10,"app-tool-tip-text",7),z(),z(),ke(11,she,7,12,"ng-template",null,8,Mn)),2&e){const s=Qt(12);ae(8),$t(" ",vt(9,3,"TIME_SPENT_ANIME_SUM")," "),ae(2),ge("textMain",i.displayTimeString)("templateTooltip",s)}},directives:[OC],pipes:[Gn],styles:[".anime-time[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:30px}.anime-time__icon[_ngcontent-%COMP%]{margin-right:15px;display:flex;align-items:center}.anime-time__text[_ngcontent-%COMP%]{font-size:1.2em;font-weight:410;text-transform:uppercase}.anime-time__amount[_ngcontent-%COMP%]{font-size:1.2em;width:-moz-fit-content;width:fit-content;border-bottom:1px dashed}"]}),t})();var I_=In(282),ohe=In(424),ahe=In.n(ohe),lhe=In(527);In.n(lhe)()(I_);class ic{static prepareChartData(n,e){var i,s,r;const o=[];for(let a=0;a${this.point.headerName}: ${this.key}
\n ${this.point.pointName}: ${this.y}`},useHTML:!0},series:[{name:null,innerSize:"50%",data:a}]}),o))}}var dhe=In(295),uhe=In.n(dhe);function hhe(t,n){if(1&t&&(j(0,"div"),j(1,"div",2),$e(2),ct(3,"translate"),z(),z()),2&t){const e=Ie();ae(2),Mt(vt(3,1,e.type+"_EMPTY_USER_DATA"))}}function fhe(t,n){1&t&&(j(0,"div",2),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"EMPTY_FETCHED_DATA")))}let phe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-empty-typed-data"]],inputs:{type:"type"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noData",""],[1,"empty-typed-data__text"]],template:function(e,i){if(1&e&&(ke(0,hhe,4,3,"div",0),ke(1,fhe,3,3,"ng-template",null,1,Mn)),2&e){const s=Qt(2);ge("ngIf",i.type)("ngIfElse",s)}},directives:[vn],pipes:[Gn],styles:[".empty-typed-data__text[_ngcontent-%COMP%]{font-weight:800;font-size:2em;margin-top:15px;margin-bottom:15px;text-align:center}"]}),t})();function ghe(t,n){1&t&&qn(0,8)}const mhe=function(t){return{$implicit:t}};function _he(t,n){if(1&t&&(j(0,"div",4),ke(1,ghe,1,0,"ng-container",7),z()),2&t){const e=n.$implicit,i=Ie(3),s=Qt(5),r=Qt(3);ae(1),ge("ngTemplateOutlet",(null==i._allData[e]?null:i._allData[e].length)>0?s:r)("ngTemplateOutletContext",bs(2,mhe,e))}}function yhe(t,n){if(1&t&&(Rn(0),ke(1,_he,2,4,"div",6),Nn()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.generalTypes)}}function vhe(t,n){if(1&t&&(j(0,"div",4),ke(1,yhe,2,1,"ng-container",5),z()),2&t){const e=Ie(),i=Qt(3);ae(1),ge("ngIf",(null==e._allData||null==e._allData.anime?null:e._allData.anime.length)>0||(null==e._allData||null==e._allData.manga?null:e._allData.manga.length)>0)("ngIfElse",i)}}function bhe(t,n){1&t&&je(0,"app-empty-typed-data",9),2&t&&ge("type",n.$implicit)}const xhe=function(t){return{"background-color":t}};function whe(t,n){if(1&t&&(j(0,"div",15),je(1,"div",18),j(2,"div",19),j(3,"div",20),$e(4),z(),j(5,"div",20),$e(6),z(),z(),z()),2&t){const e=n.$implicit;ae(1),ge("ngStyle",bs(3,xhe,e.color)),ae(3),Mt(e.name),ae(2),Mt(e.number)}}function Che(t,n){if(1&t&&(je(0,"div",10),j(1,"div",11),j(2,"div",12),ke(3,whe,7,5,"div",13),z(),j(4,"div",14),j(5,"div",15),j(6,"span",16),$e(7),ct(8,"translate"),z(),j(9,"span",17),$e(10),z(),z(),j(11,"div",15),j(12,"span",16),$e(13),ct(14,"translate"),z(),j(15,"span",17),$e(16),ct(17,"number"),z(),z(),j(18,"div",15),j(19,"span",16),$e(20),ct(21,"translate"),z(),j(22,"span",17),$e(23),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ge("id",e),ae(3),ge("ngForOf",i._legendMap[e]),ae(4),Mt(vt(8,8,"TOTAL_GENERAL_COUNTER")),ae(3),Mt(null==i.statistics[e]?null:i.statistics[e].totalAmount),ae(3),Mt(vt(14,10,"MEDIUM_RATING")),ae(3),Mt(Co(17,12,null==i.statistics[e]?null:i.statistics[e].mediumScore,"1.0-1")),ae(4),Mt(vt(21,15,i.generalParametersNames[e].episodes)),ae(3),Mt(i.episodesCounters[e])}}ahe()(I_),uhe()(I_);let Mhe=(()=>{class t{constructor(e,i,s,r){this.translationPipe=e,this.translationService=i,this.animeService=s,this.cdr=r,this.statistics={},this._allData={},this._legendMap={},this.ready=!1,this.generalTypes=["anime","manga"],this.generalParametersNames=bQ,this.episodesCounters={anime:0,manga:0},this.animeStatusesColorsArr=["#fcd581","#C6ECAE","#94C9A9","#777DA7","#885053","#FE5F55"],this.genresStatistics={}}set allData(e){if(this._allData=Object.assign({},e),0!==Object.keys(this._allData).length&&this._allData.constructor===Object){this.ready=!0,this.cdr.detectChanges();for(let i of Object.keys(this._allData))this.drawGeneralStatistics(i),this._allData[i].map(s=>{var r,o;null===(o=null===(r=s[i].genres)||void 0===r?void 0:r.map(a=>a.name))||void 0===o||o.forEach(a=>{a in this.genresStatistics?this.genresStatistics[a]++:this.genresStatistics[a]=0})});this.drawRadarGraph()}else this.ready=!1,this.cdr.detectChanges()}ngOnInit(){this.curUrl=location.href}ngAfterViewInit(){this.translationService.localeChange.subscribe(()=>{if(this.curUrl===location.href){for(let e of Object.keys(this._allData))this.drawGeneralStatistics(e);this.drawRadarGraph()}})}drawRadarGraph(){const e=this.translationPipe.transform("GENRES_TITLE"),i=[...Object.keys(JI)],s=[{type:"area",data:[]}];0!==Object.keys(this.genresStatistics).length&&Object.keys(JI).forEach(o=>s[0].data.push(this.genresStatistics[o]||0));const r=window.innerWidth<900?"auto":"50%";for(let o=0;o{r.push({name:o.toLowerCase(),color:this.animeStatusesColorsArr[a],data:[0]})}),null===(s=this._allData[e])||void 0===s||s.forEach(o=>{r.find(l=>l.name===o.status).data[0]++,this.episodesCounters[e]+=e===Oi.ANIME?o.episodes:o.chapters}),r.forEach(o=>{o.name=this.translationPipe.transform(`${o.name}_${e}`)}),r=r.filter(o=>o.data[0]>0),r[0].borderRadiusTopRight=20,r[0].borderRadiusTopLeft=20,r[r.length-1].borderRadiusBottomRight=20,r[r.length-1].borderRadiusBottomLeft=20,ic.drawChart(e,[],"bar",this.translationPipe.transform(`${e} by status`),{headerName:this.translationPipe.transform("STATUS"),pointName:this.translationPipe.transform("AMOUNT")},{chart:{height:140,type:"bar",backgroundColor:null,events:{load:o=>{let l;o.target.series.forEach(c=>{var d;l={color:c.data[0].color,name:c.name,number:c.data[0].y},(null===(d=this._legendMap[e])||void 0===d?void 0:d.length)>0?this._legendMap[e].push(l):this._legendMap[e]=[l]})}}},plotOptions:{series:{borderColor:"#ffffff00",stacking:"normal"}},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{visible:!1,max:this._allData[e].length,endOnTick:!1},legend:!1,series:r})}drawTypeGroupGraphics(e){var i;(null===(i=this._allData[e])||void 0===i?void 0:i.length)>0&&(this.drawStatusPie(e),this.drawScoreBar(e))}drawScoreBar(e){const i=Ys.calculateScoreStatistics(this._allData[e]).map((r,o)=>({name:`${o+1} \u2b50`,value:r,x:o+1})),s={headerName:this.translationPipe.transform("SCORE"),pointName:this.translationPipe.transform("AMOUNT")};ic.drawChart(`score-${e}-bar`,Ys.calculateScoreStatistics(this._allData[e]).map((r,o)=>({name:`${o+1} \u2b50`,value:r})),"bar",this.translationPipe.transform(`${e} by score`),s,{yAxis:{visible:!1},xAxis:{allowDecimals:!1,tickInterval:1,labels:{step:1}},series:[{name:null,innerSize:"50%",data:ic.prepareChartData(i,s),dataLabels:{enabled:!0},showInLegend:!1}]})}drawStatusPie(e){const i=new Map;this._allData[e].forEach(s=>{const r=i.get(s.status);r?(r.value++,i.set(s.status,r)):i.set(s.status,{name:this.translationPipe.transform(`${s.status}_${e}`),value:1})}),ic.drawChart(`status-${e}-pie`,Array.from(i.values()),"pie",this.translationPipe.transform(`${e} by status`),{headerName:this.translationPipe.transform("STATUS"),pointName:this.translationPipe.transform("AMOUNT")})}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(qs),C(jh),C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-graphics"]],inputs:{allData:"allData",statistics:"statistics"},decls:6,vars:1,consts:[["class","anime-stats-graphics__statistics-container",4,"ngIf"],["id","radar"],["noData",""],["data",""],[1,"anime-stats-graphics__statistics-container"],[4,"ngIf","ngIfElse"],["class","anime-stats-graphics__statistics-container",4,"ngFor","ngForOf"],["class","",4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,""],[3,"type"],[1,"anime-stats-graphics__bar-container",3,"id"],["id","legend",1,"anime-stats-graphics__legend"],[1,"anime-stats-graphics__item-wrap"],["class","anime-stats-graphics__item",4,"ngFor","ngForOf"],[1,"anime-stats-graphics__statistics-block"],[1,"anime-stats-graphics__item"],[1,"anime-stats-graphics__header-medium"],[1,"anime-stats-graphics__header-data"],[1,"anime-stats-graphics__symbol",3,"ngStyle"],[1,"anime-stats-graphics__big-gap"],[1,"anime-stats-graphics__seriesName"]],template:function(e,i){1&e&&(ke(0,vhe,2,2,"div",0),je(1,"div",1),ke(2,bhe,1,1,"ng-template",null,2,Mn),ke(4,Che,24,17,"ng-template",null,3,Mn)),2&e&&ge("ngIf",i.ready)},directives:[vn,oi,os,phe,xl,$h],pipes:[Gn,EO],styles:[".anime-stats-graphics__legend[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;justify-content:space-between;margin-left:15px;margin-right:15px}@media (max-width: 900px){.anime-stats-graphics__legend[_ngcontent-%COMP%]{flex-direction:column}}.anime-stats-graphics__seriesName[_ngcontent-%COMP%]{float:left;cursor:pointer;display:flex}.anime-stats-graphics__symbol[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:2px;float:left;border-radius:10px;border:1px solid gray}.anime-stats-graphics__item[_ngcontent-%COMP%]{height:35px;clear:both;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;justify-content:space-between}.anime-stats-graphics__item-wrap[_ngcontent-%COMP%]{height:100px;clear:both;display:flex;flex-direction:column;width:25%}@media (max-width: 900px){.anime-stats-graphics__item-wrap[_ngcontent-%COMP%]{width:100%;margin-bottom:30px}}.anime-stats-graphics__bar-container[_ngcontent-%COMP%]{width:100%}.anime-stats-graphics__big-gap[_ngcontent-%COMP%]{display:flex;width:90%;justify-content:space-between}.anime-stats-graphics__statistics[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.anime-stats-graphics__statistics-container[_ngcontent-%COMP%]{width:100%;margin-bottom:45px;flex-wrap:wrap;flex-direction:row;display:flex;justify-content:center}@media (max-width: 900px){.anime-stats-graphics__statistics-container[_ngcontent-%COMP%]{margin-bottom:19px}}.anime-stats-graphics__statistics-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:25%}@media (max-width: 900px){.anime-stats-graphics__statistics-block[_ngcontent-%COMP%]{width:100%}}.anime-stats-graphics__header[_ngcontent-%COMP%]{font-size:3em;display:flex;justify-content:center}.anime-stats-graphics__header-medium[_ngcontent-%COMP%], .anime-stats-graphics__header-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime-stats-graphics__header-data[_ngcontent-%COMP%]{font-weight:500;margin-left:5px}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}"]}),t})();const u3=function(t){return{"anime-community-data-swiper-bold":t}};function Dhe(t,n){if(1&t&&(j(0,"swiper-slide",2),j(1,"fm-stream-item"),j(2,"a",3),ct(3,"languageContent"),j(4,"div",4),j(5,"div",5),je(6,"img",6),z(),j(7,"div",7),j(8,"div",8),j(9,"span",9),$e(10),z(),pn(),j(11,"svg",10),je(12,"path",11),z(),z(),Ti(),j(13,"span",12),$e(14),z(),z(),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(2),yi("href",ml(3,6,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(4),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(3),ge("ngClass",bs(10,u3,!i.isUserScoreHigher)),ae(1),Mt((null==e.anime?null:e.anime.score)||(null==e.manga?null:e.manga.score)),ae(3),ge("ngClass",bs(12,u3,i.isUserScoreHigher)),ae(1),$t("",e.score," \u2764\ufe0f")}}let She=(()=>{class t{constructor(){this.config={modules:[SC,EC,TC,MC,kC,AC],speed:1e3,centerInsufficientSlides:!0,grabCursor:!0,slidesPerView:"auto",watchOverflow:!0}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-data-swiper"]],inputs:{data:"data",isUserScoreHigher:"isUserScoreHigher"},decls:2,vars:2,consts:[["fmSwiper","","init","false",1,"anime-community-data-swiper-container",3,"config"],["class","anime-community-data-swiper-slide",4,"ngFor","ngForOf"],[1,"anime-community-data-swiper-slide"],["target","_blank","rel","noopener noreferrer",1,"anime-community-data-swiper-link",3,"href"],[1,"test"],[1,"anime-community-data-swiper-name-img__container"],["loadImage","",1,"anime-community-data-swiper-img",3,"src"],[1,"anime-community-data-swiper-name"],[1,"d-flex","flex-row","align-items-center"],[1,"mr-2",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-people-fill"],["d","M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"],[3,"ngClass"]],template:function(e,i){1&e&&(j(0,"swiper-container",0),ke(1,Dhe,15,14,"swiper-slide",1),z()),2&e&&(ge("config",i.config),ae(1),ge("ngForOf",i.data))},directives:[a3,oi,o3,Ma,Ax],pipes:[Wa],styles:[".anime-community-data-swiper-img[_ngcontent-%COMP%]{width:200px;border-radius:4px}@media (max-width: 900px){.anime-community-data-swiper-img[_ngcontent-%COMP%]{width:150px}}.anime-community-data-swiper-img__container[_ngcontent-%COMP%]{position:relative}.anime-community-data-swiper-name[_ngcontent-%COMP%]{word-break:break-word;display:flex;align-items:center;flex-direction:row;justify-content:space-between;width:100%;bottom:0;position:absolute;padding:1rem;color:#fff;background:linear-gradient(to top,#000000,#0000) bottom / 100% 100% no-repeat;border-radius:5px;transition:1s ease}.anime-community-data-swiper-bold[_ngcontent-%COMP%]{font-weight:800}.anime-community-data-swiper-container[_ngcontent-%COMP%]{width:100%;padding-top:15px;padding-bottom:15px}.anime-community-data-swiper-slide[_ngcontent-%COMP%]{width:200px;margin-right:15px}@media (max-width: 900px){.anime-community-data-swiper-slide[_ngcontent-%COMP%]{width:150px}}"]}),t})();function Ehe(t,n){1&t&&je(0,"anime-community-data-swiper",8),2&t&&ge("data",Ie(2).liked)("isUserScoreHigher",!0)}function The(t,n){1&t&&je(0,"anime-community-data-swiper",9),2&t&&ge("data",Ie(2).disliked)}function Ahe(t,n){if(1&t&&(j(0,"div"),j(1,"div",4),j(2,"span",5),$e(3),ct(4,"translate"),z(),ke(5,Ehe,1,2,"anime-community-data-swiper",6),z(),j(6,"div",4),j(7,"span",5),$e(8),ct(9,"translate"),z(),ke(10,The,1,1,"anime-community-data-swiper",7),z(),z()),2&t){const e=Ie(),i=Qt(6);ae(3),Mt(vt(4,6,"PERSONALLY_LIKED")),ae(2),ge("ngIf",e.liked.length>2)("ngIfElse",i),ae(3),Mt(vt(9,8,"PERSONALLY_DISLIKED")),ae(2),ge("ngIf",e.disliked.length>2)("ngIfElse",i)}}function khe(t,n){1&t&&(j(0,"span",10),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"NEED_MORE_DATA")))}let Ohe=(()=>{class t{constructor(){}ngOnInit(){this.liked=this.liked.filter(e=>(null==e?void 0:e.diffMe)>1.5),this.disliked=this.disliked.filter(e=>(null==e?void 0:e.diffThem)>1.5)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-block"]],inputs:{type:"type",liked:"liked",disliked:"disliked"},decls:7,vars:5,consts:[[1,"community-block-wrapper"],[1,"community-block-title","community-block-large"],[4,"ngIf","ngIfElse"],["notEnoughData",""],[1,"community-block-full-width"],[1,"community-block-title","ml-3"],[3,"data","isUserScoreHigher",4,"ngIf","ngIfElse"],[3,"data",4,"ngIf","ngIfElse"],[3,"data","isUserScoreHigher"],[3,"data"],[1,"community-block-more-data"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Ahe,11,10,"div",2),z(),ke(5,khe,3,3,"ng-template",null,3,Mn)),2&e){const s=Qt(6);ae(2),Mt(vt(3,3,i.type)),ae(2),ge("ngIf",i.liked.length>2||i.disliked.length>2)("ngIfElse",s)}},directives:[vn,She],pipes:[Gn],styles:[".community-block-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.community-block-title[_ngcontent-%COMP%]{font-weight:800;font-size:large}.community-block-large[_ngcontent-%COMP%]{font-size:2rem}.community-block-full-width[_ngcontent-%COMP%]{width:100%}.community-block-more-data[_ngcontent-%COMP%]{display:flex;justify-content:center;font-size:2rem}"]}),t})();function Ihe(t,n){if(1&t&&(Rn(0),je(1,"anime-community-block",2),Nn()),2&t){const e=n.$implicit,i=Ie();ae(1),ge("type",e)("liked",i.liked[e])("disliked",i.disliked[e])}}let Phe=(()=>{class t{constructor(){this.data={},this.types=Object.values(Oi),this.liked={},this.disliked={}}ngOnInit(){var e;for(let i of Object.values(Oi))null===(e=this.data[i])||void 0===e||e.forEach(s=>{s.diffMe=0===s.score?0:s.score-s[i].score,s.diffThem=0===s.score?0:s[i].score-s.score}),this.liked[i]=this.parseIndexArray(Rs.getTopNi(5,this.data[i],"diffMe"),this.data[i]),this.disliked[i]=this.parseIndexArray(Rs.getTopNi(5,this.data[i],"diffThem"),this.data[i])}parseIndexArray(e,i){if(e.some(r=>r.val===-1/0))return[];const s=[];for(let r=4;r>=0;r--)s.push(i[e[r].index]);return s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-stats"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"community-stats"],[4,"ngFor","ngForOf"],[3,"type","liked","disliked"]],template:function(e,i){1&e&&(j(0,"div",0),ke(1,Ihe,2,3,"ng-container",1),z()),2&e&&(ae(1),ge("ngForOf",i.types))},directives:[oi,Ohe],styles:[".community-stats[_ngcontent-%COMP%]{margin-bottom:30px}"]}),t})();const Rhe=["extensionPanels"];let f3=(()=>{class t{constructor(e){this.cdr=e,this.dataSources=[],this.extensionPanelsMap={panels:{},isAllExpanded:!0}}ngOnInit(){}ngAfterViewInit(){this.afterViewInitRoutine()}applyFilter(e){this.filterValue=e}updateAllValuesCheckbox(){let e=!0;Object.keys(this.extensionPanelsMap.panels).forEach(i=>{this.extensionPanelsMap.panels[i].expanded||(e=!1)}),this.extensionPanelsMap.isAllExpanded=e}afterViewInitRoutine(){this.dataSources.forEach((e,i)=>this.extensionPanelsMap.panels[e.key]=this.extensionPanels.get(i))}updateFilteredData(e,i){this.dataSources.find(r=>r.key===i).summary.filtered=0,this.dataSources=[...this.dataSources],this.updateTableVisibility(0===e.length,i)}updateTableVisibility(e,i){var s,r,o,a;i?e?null===(s=this.extensionPanelsMap.panels[i])||void 0===s||s.close():null===(r=this.extensionPanelsMap.panels[i])||void 0===r||r.open():e?null===(o=Object.keys(this.extensionPanelsMap.panels))||void 0===o||o.forEach(l=>{var c;return null===(c=this.extensionPanelsMap.panels[l])||void 0===c?void 0:c.open()}):null===(a=Object.keys(this.extensionPanelsMap.panels))||void 0===a||a.forEach(l=>{var c;return null===(c=this.extensionPanelsMap.panels[l])||void 0===c?void 0:c.close()}),this.cdr.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["table-list"]],viewQuery:function(e,i){if(1&e&&Yt(Rhe,5),2&e){let s;st(s=rt())&&(i.extensionPanels=s)}},decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"table-list works!"),z())},styles:[""]}),t})();const Nhe=function(t){return{episodes:t}};function Fhe(t,n){if(1&t&&(j(0,"span",11),$e(1),ct(2,"translate"),z()),2&t){const e=Ie().$implicit,i=Ie();let s;ae(1),$t(" ",Co(2,1,i.isAnime?"SUMMARY_TABLE_EPISODES":"SUMMARY_TABLE_CHAPTERS",bs(4,Nhe,null!==(s=null==e.summary?null:e.summary.filtered)&&void 0!==s?s:null==e.summary?null:e.summary.episodes))," ")}}function Lhe(t,n){if(1&t){const e=sn();j(0,"app-anime-stats-table",12),nt("onFilterChanges",function(s){Ot(e);const r=Ie().$implicit;return Ie().updateFilteredData(s,r.key)}),z()}if(2&t){const e=Ie().$implicit,i=Ie();ge("tableData",e.data)("isAnime",i.isAnime)("filter",i.filterValue)("defaultSort",null==e?null:e.defaultSort)}}function Bhe(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"mat-expansion-panel",5,6),nt("closed",function(){return Ot(e),Ie().updateAllValuesCheckbox()})("opened",function(){return Ot(e),Ie().updateAllValuesCheckbox()}),j(3,"mat-expansion-panel-header"),j(4,"mat-panel-title"),j(5,"div",7),$e(6),ct(7,"translate"),ct(8,"translate"),z(),z(),j(9,"mat-panel-description"),ke(10,Fhe,3,6,"span",8),z(),z(),j(11,"div",9),ke(12,Lhe,1,4,"app-anime-stats-table",10),z(),z(),z()}if(2&t){const e=n.$implicit,i=Ie();ae(6),Mt(i.isAnime?vt(7,3,e.key+"_anime"):vt(8,5,e.key+"_manga")),ae(4),ge("ngIf",null==e.summary?null:e.summary.episodes),ae(2),ge("ngIf",e.data)}}let p3=(()=>{class t extends f3{constructor(e){super(e),this.isAnime=!1}set data(e){if((null==e?void 0:e.length)>0){const i=e.map((o,a)=>{var l,c,d,u,f,_,T,k,$,L,J,ue,Te,Fe,Be,Ue,He,it,lt,Xe,qe,Pe,Ye,ht;return{name:(null===(l=o.anime)||void 0===l?void 0:l.name)||(null===(c=o.manga)||void 0===c?void 0:c.name),russian:(null===(d=o.anime)||void 0===d?void 0:d.russian)||(null===(u=o.manga)||void 0===u?void 0:u.russian),score:0===o.score?void 0:o.score,kind:(null===(f=o.anime)||void 0===f?void 0:f.kind)||(null===(_=o.manga)||void 0===_?void 0:_.kind),status:(null===(T=o.anime)||void 0===T?void 0:T.status)||(null===(k=o.manga)||void 0===k?void 0:k.status),myStatus:o.status,text:o.text,episodesWatched:o.episodes,episodes:null===($=o.anime)||void 0===$?void 0:$.episodes,chaptersRead:o.chapters,updatedAt:null==o?void 0:o.updatedAt,chapters:null===(L=o.manga)||void 0===L?void 0:L.chapters,thumbnail:(null==o?void 0:o.__typename)?(null===(ue=null===(J=o.anime)||void 0===J?void 0:J.poster)||void 0===ue?void 0:ue.miniUrl)||(null===(Fe=null===(Te=o.manga)||void 0===Te?void 0:Te.poster)||void 0===Fe?void 0:Fe.miniUrl):dr+"/"+((null===(Ue=null===(Be=o.anime)||void 0===Be?void 0:Be.image)||void 0===Ue?void 0:Ue.x48)||(null===(it=null===(He=o.manga)||void 0===He?void 0:He.image)||void 0===it?void 0:it.x48)),url:(null==o?void 0:o.__typename)?(null===(lt=o.anime)||void 0===lt?void 0:lt.url)||(null===(Xe=o.manga)||void 0===Xe?void 0:Xe.url):`${dr}/${(null===(qe=o.anime)||void 0===qe?void 0:qe.url)||(null===(Pe=o.manga)||void 0===Pe?void 0:Pe.url)}`,malUrl:(null===(Ye=o.anime)||void 0===Ye?void 0:Ye.malUrl)||(null===(ht=o.manga)||void 0===ht?void 0:ht.malUrl)}});let s,r;for(let o of Object.values(md))r=0,s=i.filter(a=>a.myStatus===o),s.forEach(a=>r+=a.chaptersRead||a.episodesWatched),s.length>0&&this.dataSources.push({key:o,data:s,defaultSort:"score",summary:{episodes:r,filtered:null}});this.isAnime=-1!==e.findIndex(o=>{var a;return(null===(a=o.anime)||void 0===a?void 0:a.episodes)>0}),this.dataSources.find(o=>o.key===md.PLANNED).defaultSort="updatedAt"}}ngAfterViewInit(){this.afterViewInitRoutine()}updateFilteredData(e,i){let s=0;e.forEach(r=>s+=r.chaptersRead||r.episodesWatched),this.dataSources.find(r=>r.key===i).summary.filtered=s,this.dataSources=[...this.dataSources],this.updateTableVisibility(0===e.length,i)}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-lists"]],inputs:{data:"data"},features:[Je],decls:11,vars:11,consts:[[1,"anime-stat-lists__filter"],["matInput","",3,"placeholder","keyup"],["input",""],["color","accent",3,"checked","change"],[4,"ngFor","ngForOf"],["expanded","true",1,"anime-stat-lists__extension",3,"closed","opened"],["extensionPanels",""],[1,"anime-stat-lists__list-title"],["class","anime-stat-lists__summary",4,"ngIf"],[1,"anime-stat-lists__table"],[3,"tableData","isAnime","filter","defaultSort","onFilterChanges",4,"ngIf"],[1,"anime-stat-lists__summary"],[3,"tableData","isAnime","filter","defaultSort","onFilterChanges"]],template:function(e,i){1&e&&(j(0,"mat-form-field",0),j(1,"mat-label"),$e(2),ct(3,"translate"),z(),j(4,"input",1,2),nt("keyup",function(r){return i.applyFilter(r)}),ct(6,"translate"),z(),z(),j(7,"mat-checkbox",3),nt("change",function(r){return i.updateTableVisibility(r.checked)}),$e(8),ct(9,"translate"),z(),ke(10,Bhe,13,7,"div",4)),2&e&&(ae(2),Mt(vt(3,5,"Filter")),ae(2),yi("placeholder",vt(6,7,"EXAMPLE SEARCH")),ae(3),ge("checked",i.extensionPanelsMap.isAllExpanded),ae(1),Mt(vt(9,9,"SHOW_ALL_TABLES")),ae(2),ge("ngForOf",i.dataSources))},styles:[".anime-stat-lists__summary{font-weight:700;margin-right:5px}.anime-stat-lists__extension{background-color:transparent;box-shadow:unset!important}.anime-stat-lists__table{margin-bottom:15px}.anime-stat-lists__filter{width:100%}.anime-stat-lists__list-title{font-size:1.1em;margin-bottom:15px}@media (max-width: 900px){.mat-expansion-panel-body{padding:0!important;overflow-x:auto!important}}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex:1;margin-right:16px}\n"],encapsulation:2}),t})();function Vhe(t,n){if(1&t&&(j(0,"a",22),$e(1),ct(2,"translate"),j(3,"span",23),$e(4),z(),z()),2&t){const e=Ie(2);ge("href",null==e.currentUser?null:e.currentUser.url,_i),ae(1),$t("",vt(2,3,"FROM_PERSPECTIVE")," "),ae(3),Mt(e.username)}}function Hhe(t,n){1&t&&je(0,"app-top-anime",33),2&t&&ge("allData",Ie(3).allData)}function jhe(t,n){1&t&&je(0,"app-anime-time",33),2&t&&ge("allData",Ie(3).allData)}function zhe(t,n){if(1&t&&je(0,"app-anime-stats-graphics",34),2&t){const e=Ie(3);ge("allData",e.allData)("statistics",e.statistics)}}function Ghe(t,n){1&t&&je(0,"anime-community-stats",32),2&t&&ge("data",Ie(4).allData)}function $he(t,n){1&t&&ke(0,Ghe,1,1,"anime-community-stats",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[2])}function Uhe(t,n){1&t&&je(0,"app-anime-stats-lists",32),2&t&&ge("data",Ie(4).allData.anime)}function Whe(t,n){1&t&&ke(0,Uhe,1,1,"app-anime-stats-lists",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[3])}function Yhe(t,n){1&t&&je(0,"app-anime-stats-lists",32),2&t&&ge("data",Ie(4).allData.manga)}function qhe(t,n){1&t&&ke(0,Yhe,1,1,"app-anime-stats-lists",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[4])}const P_=function(){return["active"]};function Xhe(t,n){if(1&t){const e=sn();Rn(0),ke(1,Hhe,1,1,"app-top-anime",24),ke(2,jhe,1,1,"app-anime-time",24),j(3,"div"),j(4,"ul",25,26),nt("activeIdChange",function(s){return Ot(e),Ie(2).active=s})("navChange",function(s){return Ot(e),Ie(2).tabStatus[s.nextId]=!0}),j(6,"li",27),j(7,"a",28),$e(8),ct(9,"translate"),z(),ke(10,zhe,1,2,"ng-template",29),z(),j(11,"li",30),j(12,"a",28),$e(13),ct(14,"translate"),z(),ke(15,$he,1,1,"ng-template",29),z(),j(16,"li",30),j(17,"a",28),$e(18),ct(19,"translate"),z(),ke(20,Whe,1,1,"ng-template",29),z(),j(21,"li",30),j(22,"a",28),$e(23),ct(24,"translate"),z(),ke(25,qhe,1,1,"ng-template",29),z(),z(),je(26,"div",31),z(),j(27,"div"),je(28,"app-anime-history",32),z(),Nn()}if(2&t){const e=Qt(5),i=Ie(2);ae(1),ge("ngIf",i.isAnyDataFetched),ae(1),ge("ngIf",i.isAnyDataFetched),ae(2),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLinkActive",ki(30,P_))("ngbNavItem",1)("destroyOnHide",!1),ae(2),Mt(vt(9,22,"GENERAL_STATS")),ae(3),ge("routerLinkActive",ki(31,P_))("ngbNavItem",2)("disabled",!(null!=i.allData.anime&&i.allData.anime.length||null!=i.allData.manga&&i.allData.manga.length)),ae(2),Mt(vt(14,24,"ME_VS_COMMUNITY")),ae(3),ge("routerLinkActive",ki(32,P_))("ngbNavItem",3)("disabled",!(null!=i.allData.anime&&i.allData.anime.length)),ae(2),Mt(vt(19,26,"ANIME_LIST")),ae(3),ge("routerLinkActive",ki(33,P_))("ngbNavItem",4)("disabled",!(null!=i.allData.manga&&i.allData.manga.length)),ae(2),Mt(vt(24,28,"MANGA_LIST")),ae(3),ge("ngbNavOutlet",e),ae(2),ge("data",i.allData)}}function Qhe(t,n){if(1&t&&(j(0,"div",7),ke(1,Vhe,5,5,"a",8),j(2,"span",9),$e(3),ct(4,"translate"),z(),j(5,"div",10),j(6,"span",11),$e(7),ct(8,"translate"),z(),j(9,"a",12),j(10,"div",13),j(11,"span"),$e(12," SHIKIMORI "),z(),j(13,"div",14),pn(),j(14,"svg",15),je(15,"path",16),je(16,"path",17),z(),z(),z(),z(),Ti(),j(17,"span",18),$e(18,"|"),z(),j(19,"a",19),j(20,"div",13),j(21,"span"),$e(22," API "),z(),j(23,"div",14),pn(),j(24,"svg",15),je(25,"path",16),je(26,"path",17),z(),z(),z(),z(),z(),Ti(),je(27,"app-custom-id-field",20),ke(28,Xhe,29,34,"ng-container",21),z()),2&t){const e=Ie(),i=Qt(6);ae(1),ge("ngIf",e.username),ae(2),Mt(vt(4,6,"STATS")),ae(4),Mt(vt(8,8,"DATA_PROVIDER")),ae(20),ge("user",e.currentUser),ae(1),ge("ngIf",e.currentUser)("ngIfElse",i)}}function Khe(t,n){1&t&&qn(0)}function Jhe(t,n){if(1&t&&(j(0,"div"),ke(1,Khe,1,0,"ng-container",36),z()),2&t){Ie();const e=Qt(8);ae(1),ge("ngTemplateOutlet",e)}}function Zhe(t,n){1&t&&(j(0,"div",37),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"USER_NOT_FOUND")))}function efe(t,n){1&t&&(je(0,"div",38),je(1,"img",39),ct(2,"translate")),2&t&&(ae(1),yi("alt",vt(2,1,"LOADING")))}const g3=function(){return{height:"100%"}};let tfe=(()=>{class t{constructor(e,i,s){this.animeService=e,this.cdr=i,this.route=s,this.allData={},this.isAnyDataFetched=!1,this.tabStatus={},this.statistics={},this.isLoading=!0,this.currentUser={},this.active=1,this.dataStatusEmitter=new ot}ngOnInit(){var e;this.isLoading=!0,this.username=null===(e=this.route.snapshot.queryParams)||void 0===e?void 0:e.username,this.username?this.animeService.setUserId(this.username).pipe($i(()=>Et(null))).subscribe(i=>{i?(this.currentUser=i,this.dataStatusEmitter.emit()):(this.currentUser=null,this.isLoading=!1,this.cdr.detectChanges())}):this.animeService.getUserData(Vg).pipe($i(()=>Et(null))).subscribe(i=>{i?(this.currentUser=i,this.animeService.useDefaultId(),this.dataStatusEmitter.emit()):(this.currentUser=null,this.isLoading=!1,this.cdr.detectChanges())})}ngAfterViewInit(){this.dataStatusEmitter.pipe(Bn(1),as(()=>{const e=Ys.calculateTotalEntries(this.currentUser.stats.full_statuses.anime),i=Ys.calculateTotalEntries(this.currentUser.stats.full_statuses.manga);return So([this.animeService.getDataTypeListGraphQLParallel(Oi.ANIME,e).pipe($i(()=>this.animeService.getAllAnimeList())),this.animeService.getDataTypeListGraphQLParallel(Oi.MANGA,i).pipe($i(()=>this.animeService.getAllMangaList()))])})).subscribe(([e,i])=>{var s,r;if(console.debug("DONE?",{animeData:e,mangaData:i}),this.isLoading=!1,this.cdr.detectChanges(),e||i){this.allData[Oi.ANIME]=e,this.allData[Oi.MANGA]=i;for(let o of Object.keys(this.allData))this.allData[o].forEach(a=>{var l,c;a[o].name=(null==a?void 0:a.__typename)?Rs.selectValidLocaleName(a.anime||a.manga):(null===(l=a.anime)||void 0===l?void 0:l.name)||(null===(c=a.manga)||void 0===c?void 0:c.name),a[o].malUrl=`https://myanimelist.net/${o}/${a[o].id}`});this.allData=Object.assign({},this.allData),this.isAnyDataFetched=!(!(null===(s=this.allData)||void 0===s?void 0:s.anime)&&!(null===(r=this.allData)||void 0===r?void 0:r.manga)),this.statistics[Oi.ANIME]={mediumScore:Ys.calculateMediumScoreStatistics(e).toFixed(2),totalAmount:e.length},this.statistics[Oi.MANGA]={mediumScore:Ys.calculateMediumScoreStatistics(i).toFixed(2),totalAmount:i.length}}else this.currentUser=null})}}return t.\u0275fac=function(e){return new(e||t)(C(jh),C(Gt),C(Ta))},t.\u0275cmp=mt({type:t,selectors:[["app-anime"]],decls:9,vars:6,consts:[[1,"bg"],[3,"ngStyle"],[1,"anime","blurred-effect","container",3,"ngStyle"],["class","anime__wrapper",4,"ngIf"],[4,"ngIf"],["noUser",""],["loading",""],[1,"anime__wrapper"],["class","anime__customname",3,"href",4,"ngIf"],[1,"anime__header"],[1,"anime__credits"],[1,"anime__header-medium"],["href","https://shikimori.me/McFck","target","_blank","rel","noopener noreferrer",1,"anime__credits-provider"],[1,"d-flex"],[1,"d-flex","ml-1"],["xmlns","http://www.w3.org/2000/svg","width","11","height","11","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-box-arrow-up-right"],["fill-rule","evenodd","d","M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z"],["fill-rule","evenodd","d","M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z"],[1,"anime__credits-provider"],["href","https://shikimori.me/api/doc","target","_blank","rel","noopener noreferrer",1,"anime__credits-provider"],[3,"user"],[4,"ngIf","ngIfElse"],[1,"anime__customname",3,"href"],[1,"anime__customname-nick"],[3,"allData",4,"ngIf"],["ngbNav","",1,"anime__nav",3,"activeId","destroyOnHide","activeIdChange","navChange"],["nav","ngbNav"],[1,"anime__nav-item",3,"routerLinkActive","ngbNavItem","destroyOnHide"],["ngbNavLink",""],["ngbNavContent",""],[1,"anime__nav-item",3,"routerLinkActive","ngbNavItem","disabled"],[1,"mt-2",3,"ngbNavOutlet"],[3,"data"],[3,"allData"],[3,"allData","statistics"],[3,"data",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"anime__no-user"],[1,"anime__chika-background"],["src","/assets/chika-loading.gif","width","250",1,"anime__chika",3,"alt"]],template:function(e,i){1&e&&(je(0,"div",0),j(1,"div",1),j(2,"div",2),ke(3,Qhe,29,10,"div",3),z(),ke(4,Jhe,2,1,"div",4),z(),ke(5,Zhe,3,3,"ng-template",null,5,Mn),ke(7,efe,3,3,"ng-template",null,6,Mn)),2&e&&(ae(1),ge("ngStyle",!i.currentUser&&ki(4,g3)),ae(1),ge("ngStyle",!i.currentUser&&ki(5,g3)),ae(1),ge("ngIf",!i.isLoading),ae(1),ge("ngIf",i.isLoading))},directives:[xl,$h,vn,Rre,Yd,t1,Wd,bf,M_,D_,tde,Uue,rhe,Mhe,Phe,p3,os],pipes:[Gn],styles:['.anime__no-user[_ngcontent-%COMP%]{font-weight:800;font-size:2em;display:flex;justify-content:center;margin-top:10%;text-align:center}.anime__customname[_ngcontent-%COMP%]{font-size:2.5em;display:flex;justify-content:center;font-weight:800;flex-wrap:wrap;text-align:center}.anime__customname-nick[_ngcontent-%COMP%]{margin-left:10px;color:#655bff;text-decoration:underline;width:100%;text-overflow:ellipsis;overflow:hidden}.anime__customname-nick[_ngcontent-%COMP%]:hover{color:#2213ff}.anime__nav[_ngcontent-%COMP%]{display:flex;justify-content:center}.anime__nav-item[_ngcontent-%COMP%]{font-weight:500}.anime__nav-item[_ngcontent-%COMP%]:hover, .anime__nav-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#7ff;text-shadow:-1px -1px 0 #00000085,1px -1px 0 #00000085,-1px 1px 0 #00000085,1px 1px 0 #00000085}.anime__wrapper[_ngcontent-%COMP%]{position:relative}.anime__time[_ngcontent-%COMP%], .anime__credits[_ngcontent-%COMP%]{display:flex;justify-content:center}.anime__time-provider[_ngcontent-%COMP%], .anime__credits-provider[_ngcontent-%COMP%]{font-weight:700;margin-left:5px;display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime__header[_ngcontent-%COMP%]{font-size:3em;display:flex;justify-content:center}.anime__header-medium[_ngcontent-%COMP%], .anime__header-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime__header-data[_ngcontent-%COMP%]{font-weight:500;margin-left:5px}.anime__chika[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:120px;height:120px;margin:-100px 0 0 -60px;animation:pulse 1s linear infinite}.anime__chika-background[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#ffecf0;position:fixed}.anime__porco[_ngcontent-%COMP%]{position:absolute;top:35%;left:35%;overflow:hidden;width:auto;height:35%;margin:-100px 0 0 -60px;animation:porco-flying 2.5s infinite ease-out,porco-soaring 2.5s infinite ease-out}@media (max-width: 900px){.anime__porco[_ngcontent-%COMP%]{left:20%;top:35%;width:90%;height:35%}}.anime__porco-background[_ngcontent-%COMP%]{height:100%;width:100%;background:linear-gradient(66deg,#baccff,#5884ff);position:fixed}@keyframes porco-flying{50%{transform:translate(5px)}}@keyframes porco-soaring{50%{transform:translateY(60px)}}@keyframes pulse{0%{transform:scale(1.4)}50%{transform:scale(.8)}to{transform:scale(1)}}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}.blurred-effect[_ngcontent-%COMP%]{content:"";-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transform:translate(0);transform:translateZ(0);position:absolute;top:0;left:0;right:0;bottom:0;position:relative;background-color:#c1c6dbd4;min-height:100%}.bg[_ngcontent-%COMP%]{height:100%;width:100%;top:0;position:fixed;background-repeat:no-repeat;background-size:cover;background-image:url(anime_bg_1.fb69d13bd0a527d99bd8.jpg)}@media (max-width: 900px){.bg[_ngcontent-%COMP%]{background:#d2d0ed}}']}),t})();function nfe(t,n){if(1&t&&(j(0,"div",24),j(1,"a",25),j(2,"div",26),j(3,"a",27),je(4,"img",28),j(5,"span",29),$e(6),z(),z(),z(),j(7,"div",30),$e(8),z(),j(9,"div",31),$e(10),ct(11,"dateAgo"),z(),z(),z()),2&t){const e=Ie();ae(1),ge("href",null==e.lastCommitData?null:e.lastCommitData.html_url,_i),ae(2),ge("href",null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.html_url,_i),ae(1),ge("src",null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.avatar_url,_i),ae(2),Mt(null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.login),ae(2),Mt(null==e.lastCommitData||null==e.lastCommitData.commit?null:e.lastCommitData.commit.message),ae(2),Mt(vt(11,6,null==e.lastCommitData||null==e.lastCommitData.commit||null==e.lastCommitData.commit.author?null:e.lastCommitData.commit.author.date))}}function ife(t,n){1&t&&(j(0,"span",32),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"LANDING_NO_DATA")))}let sfe=(()=>{class t{constructor(e){this.http=e}ngOnInit(){this.http.get("https://api.github.com/repos/mcfck/mcfck.github.io/commits/main").pipe($i(e=>Et(null))).subscribe(e=>{this.lastCommitData=e}),this.effectLogic()}effectLogic(){document.getElementById("sparkles")}}return t.\u0275fac=function(e){return new(e||t)(C(Pa))},t.\u0275cmp=mt({type:t,selectors:[["app-landing"]],decls:48,vars:20,consts:[[1,"landing__background"],[1,"main-header"],[1,"buttons"],["href","https://github.com/McFck/mcfck.github.io/fork","target","_blank","rel","noopener noreferrer",1,"fork"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","white","viewBox","0 0 16 16",1,"bi","bi-git"],["d","M15.698 7.287 8.712.302a1.03 1.03 0 0 0-1.457 0l-1.45 1.45 1.84 1.84a1.223 1.223 0 0 1 1.55 1.56l1.773 1.774a1.224 1.224 0 0 1 1.267 2.025 1.226 1.226 0 0 1-2.002-1.334L8.58 5.963v4.353a1.226 1.226 0 1 1-1.008-.036V5.887a1.226 1.226 0 0 1-.666-1.608L5.093 2.465l-4.79 4.79a1.03 1.03 0 0 0 0 1.457l6.986 6.986a1.03 1.03 0 0 0 1.457 0l6.953-6.953a1.031 1.031 0 0 0 0-1.457"],["href","https://github.com/McFck/mcfck.github.io","target","_blank","rel","noopener noreferrer",1,"fork"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","white","viewBox","0 0 16 16",1,"bi","bi-star-fill"],["d","M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"],[1,"main-text"],[1,"title"],[1,"container"],[1,"custom-text","custom-text-title"],[1,"stars"],[1,"s"],[1,"m"],[1,"l"],[1,"p-data"],[1,"description","custom-text","custom-block"],[1,"title","custom-text","custom-block",3,"innerHTML"],[1,"commit-wrap"],[1,"commit-title","custom-text"],["class","commit",4,"ngIf","ngIfElse"],["noData",""],[1,"commit"],["target","_blank","rel","noopener noreferrer",1,"commit-wrap",3,"href"],[1,"commit-author"],["target","_blank","rel","noopener noreferrer",1,"commit-author-link",3,"href"],[1,"commit-image",3,"src"],[1,"commit-author-name","custom-text"],[1,"commit-margin","custom-text"],[1,"commit-date"],[1,"commit-noData","custom-text"]],template:function(e,i){if(1&e&&(j(0,"body",0),j(1,"header",1),j(2,"div",2),j(3,"a",3),$e(4),ct(5,"translate"),pn(),j(6,"svg",4),je(7,"path",5),z(),z(),Ti(),j(8,"a",6),$e(9),ct(10,"translate"),pn(),j(11,"svg",7),je(12,"path",8),z(),z(),z(),Ti(),j(13,"h1",9),j(14,"span",10),j(15,"div",11),j(16,"div",12),$e(17),ct(18,"translate"),z(),j(19,"div",13),je(20,"span",14),je(21,"span",14),je(22,"span",14),je(23,"span",14),je(24,"span",14),je(25,"span",15),je(26,"span",15),je(27,"span",15),je(28,"span",15),je(29,"span",15),je(30,"span",16),je(31,"span",16),je(32,"span",16),je(33,"span",16),je(34,"span",16),z(),z(),z(),z(),j(35,"p",17),j(36,"span",18),$e(37),ct(38,"translate"),z(),je(39,"span",19),ct(40,"translate"),z(),j(41,"div",20),j(42,"span",21),$e(43),ct(44,"translate"),z(),ke(45,nfe,12,8,"div",22),z(),ke(46,ife,3,3,"ng-template",null,23,Mn),z(),z()),2&e){const s=Qt(47);ae(4),$t(" ",vt(5,8,"LANDING_FORK")," "),ae(5),$t(" ",vt(10,10,"LANDING_STAR")," "),ae(8),Mt(vt(18,12,"LANDING_TITLE")),ae(20),$t(" ",vt(38,14,"LANDING_DESC")," "),ae(2),ge("innerHTML",vt(40,16,"LANDING_LANG"),Ac),ae(4),Mt(vt(44,18,"LANDING_LAST_CHANGES")),ae(2),ge("ngIf",i.lastCommitData)("ngIfElse",s)}},directives:[vn],pipes:[Gn,uC],styles:['.stars[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:20px 0;margin:0;font-size:5em;text-align:center;line-height:.95em;font-weight:bold;color:transparent;background:repeating-linear-gradient(90deg,#E60012 0em .1em,#F39800 .1em .2em,#FFF100 .2em .3em,#009944 .3em .4em,#0068B7 .4em .5em,#1D2088 .5em .6em,#CFA7CD .6em .7em);-webkit-background-clip:text;-webkit-box-reflect:below -.6em -webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(transparent))}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"";position:absolute;width:10px;height:10px;transform:scale(.2)}.stars[_ngcontent-%COMP%] span.s[_ngcontent-%COMP%]:before{box-shadow:20px 20px #fff}.stars[_ngcontent-%COMP%] span.m[_ngcontent-%COMP%]:before{box-shadow:20px 10px #fff176,10px 20px #fff176,20px 20px #fff,30px 20px #fff176,20px 30px #fff176}.stars[_ngcontent-%COMP%] span.l[_ngcontent-%COMP%]:before{box-shadow:20px 0 #fdd835,20px 10px #fff176,0 20px #fdd835,10px 20px #fff176,20px 20px #fff,30px 20px #fff176,40px 20px #fdd835,20px 30px #fff176,20px 40px #fdd835}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){left:10%;top:10%;animation:star-anim 8s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){left:80%;top:20%;animation:star-anim 6s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){left:60%;top:40%;animation:star-anim 5s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){left:20%;top:70%;animation:star-anim 7s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(5){left:80%;top:80%;animation:star-anim 7s 4s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(6){left:40%;top:10%;animation:star-anim 4s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(7){left:10%;top:50%;animation:star-anim 7s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(8){left:50%;top:50%;animation:star-anim 8s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(9){left:90%;top:90%;animation:star-anim 5s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(10){left:80%;top:50%;animation:star-anim 7s 4s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(11){left:90%;top:10%;animation:star-anim 5s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(12){left:10%;top:80%;animation:star-anim 6s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(13){left:30%;top:20%;animation:star-anim 7s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(14){left:60%;top:90%;animation:star-anim 8s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(15){left:80%;top:50%;animation:star-anim 7s 4s infinite}@keyframes star-anim{0%{opacity:0}5%{opacity:1}10%{opacity:0}55%{opacity:0}60%{opacity:1}95%{opacity:0}to{opacity:1}}.container[_ngcontent-%COMP%]{position:relative;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;text-align:start}@media (max-width: 900px){.container[_ngcontent-%COMP%]{width:295px}}.custom-text[_ngcontent-%COMP%]{color:#d5e1e3}@media (max-width: 900px){.custom-text-title[_ngcontent-%COMP%]{font-size:2.7rem}}@media (max-width: 900px){.custom-block[_ngcontent-%COMP%]{text-align:justify;width:290px}}.landing__background[_ngcontent-%COMP%]{background:linear-gradient(343deg,#185CB6,#9ED6F2);height:calc(100% - 40.38px);width:100%;position:absolute}a[_ngcontent-%COMP%]{color:unset}a[_ngcontent-%COMP%]:hover{text-decoration:none}.commit[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.35s;border:1px solid white;border-radius:15px}.commit[_ngcontent-%COMP%]:hover{background-color:#1d5be5}.commit-title[_ngcontent-%COMP%]{margin-bottom:5px}.commit-margin[_ngcontent-%COMP%]{margin-right:1.5rem;margin-left:1.5rem}.commit-image[_ngcontent-%COMP%]{height:30px;border-radius:99px}.commit-date[_ngcontent-%COMP%]{font-style:italic;color:#3e3e3e;margin-bottom:5px}.commit-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column}.commit-author[_ngcontent-%COMP%], .commit-author-link[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;margin-top:5px;margin-bottom:5px}.commit-author-name[_ngcontent-%COMP%], .commit-author-link-name[_ngcontent-%COMP%]{font-weight:500}.commit-author-link[_ngcontent-%COMP%]:hover, .commit-author-link-link[_ngcontent-%COMP%]:hover{text-decoration:none}.footer[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem}.fork[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.35s;font-size:.875rem;line-height:1.25rem;padding:.5rem .75rem;border-width:1px;border-radius:9999px;grid-gap:.25rem;gap:.25rem;align-items:center;display:flex;color:#d5e1e3;text-decoration:inherit;background-color:#2d6fbf;border:1px solid white;box-sizing:border-box;font-weight:450}.fork[_ngcontent-%COMP%]:hover{background-color:#1d5be5}.p-data[_ngcontent-%COMP%]{line-height:1.75rem;font-size:1rem;letter-spacing:-.025em;font-weight:350;display:flex;flex-direction:column}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;justify-content:center;grid-gap:1rem;gap:1rem}.description[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;text-decoration:inherit;text-wrap:balance;max-width:703px}.main-header[_ngcontent-%COMP%]{padding-top:5rem;align-items:center;text-align:center;grid-gap:1.5rem;gap:1.5rem;justify-content:center;display:flex;flex-direction:column;margin-left:auto;margin-right:auto;padding-right:2rem;padding-left:2rem;width:100%}.main-text[_ngcontent-%COMP%]{font-size:3.75rem;line-height:1;letter-spacing:-.025em;font-weight:800}.title[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;text-decoration:inherit;text-wrap:balance;max-width:858.5px}']}),t})(),rfe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-misc"]],decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"misc works!"),z())},styles:[""]}),t})(),ofe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-movies"]],decls:7,vars:3,consts:[[1,"d-flex","justify-content-center","mt-3","construction-font"],[1,"d-flex","justify-content-center","mt-3"],["xmlns","http://www.w3.org/2000/svg","width","128","height","128","fill","orange","viewBox","0 0 16 16",1,"bi","bi-cone-striped"],["d","m9.97 4.88.953 3.811C10.159 8.878 9.14 9 8 9c-1.14 0-2.158-.122-2.923-.309L6.03 4.88C6.635 4.957 7.3 5 8 5s1.365-.043 1.97-.12zm-.245-.978L8.97.88C8.718-.13 7.282-.13 7.03.88L6.275 3.9C6.8 3.965 7.382 4 8 4c.618 0 1.2-.036 1.725-.098zm4.396 8.613a.5.5 0 0 1 .037.96l-6 2a.5.5 0 0 1-.316 0l-6-2a.5.5 0 0 1 .037-.96l2.391-.598.565-2.257c.862.212 1.964.339 3.165.339s2.303-.127 3.165-.339l.565 2.257 2.391.598z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"h3"),$e(2),ct(3,"translate"),z(),z(),j(4,"div",1),pn(),j(5,"svg",2),je(6,"path",3),z(),z()),2&e&&(ae(2),Mt(vt(3,1,"Under construction")))},pipes:[Gn],styles:['.construction-font[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}']}),t})();function R_(t){return t&&"function"==typeof t.connect}class _3{applyChanges(n,e,i,s,r){n.forEachOperation((o,a,l)=>{let c,d;if(null==o.previousIndex){const u=i(o,a,l);c=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==l?(e.remove(a),d=3):(c=e.get(a),e.move(c,l),d=2);r&&r({context:null==c?void 0:c.context,operation:d,record:o})})}detach(){}}class NC{constructor(n=!1,e,i=!0){this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new E,e&&e.length&&(n?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...n){this._verifyValueAssignment(n),n.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(n){this.isSelected(n)?this.deselect(n):this.select(n)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(n){return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}}let y3=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sc=new pt("_ViewRepeater"),FC=new pt("CdkAccordion");let dfe=0,hfe=(()=>{class t{constructor(e,i,s){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=s,this._openCloseAllSubscription=fe.EMPTY,this.closed=new ot,this.opened=new ot,this.destroyed=new ot,this.expandedChange=new ot,this.id="cdk-accordion-child-"+dfe++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((r,o)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===o&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Vt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(C(FC,12),C(Gt),C(y3))},t.\u0275dir=Le({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Dt([{provide:FC,useValue:void 0}])]}),t})(),ffe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();class LC{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class v3 extends LC{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class rc extends LC{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class pfe extends LC{constructor(n){super(),this.element=n instanceof tt?n.nativeElement:n}}class b3{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof v3?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof rc?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof pfe?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x3 extends b3{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Kd=(()=>{class t extends b3{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ot,this.attachDomPortal=r=>{const o=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(C(is),C(Fn),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Je]}),t})(),VC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const gfe=["body"];function mfe(t,n){}const _fe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],yfe=["mat-expansion-panel-header","*","mat-action-row"];function vfe(t,n){1&t&&je(0,"span",2),2&t&&ge("@indicatorRotate",Ie()._getExpandedState())}const bfe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xfe=["mat-panel-title","mat-panel-description","*"],HC=new pt("MAT_ACCORDION"),w3="225ms cubic-bezier(0.4,0.0,0.2,1)",C3={indicatorRotate:Ns("indicatorRotate",[Wn("collapsed, void",Jt({transform:"rotate(0deg)"})),Wn("expanded",Jt({transform:"rotate(180deg)"})),ni("expanded <=> collapsed, void => collapsed",pi(w3))]),bodyExpansion:Ns("bodyExpansion",[Wn("collapsed, void",Jt({height:"0px",visibility:"hidden"})),Wn("expanded",Jt({height:"*",visibility:"visible"})),ni("expanded <=> collapsed, void => collapsed",pi(w3))])};let wfe=(()=>{class t{constructor(e){this._template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Cfe=0;const M3=new pt("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let N_=(()=>{class t extends hfe{constructor(e,i,s,r,o,a,l){super(e,i,s),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new ot,this.afterCollapse=new ot,this._inputChanges=new E,this._headerId="mat-expansion-panel-header-"+Cfe++,this._bodyAnimationDone=new E,this.accordion=e,this._document=o,this._bodyAnimationDone.pipe(ia((c,d)=>c.fromState===d.fromState&&c.toState===d.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Vt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(ai(null),mn(()=>this.expanded&&!this._portal),Bn(1)).subscribe(()=>{this._portal=new rc(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(C(HC,12),C(Gt),C(y3),C(Fn),C(wt),C(Ci,8),C(M3,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,wfe,5),2&e){let r;st(r=rt())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&Yt(gfe,5),2&e){let s;st(s=rt())&&(i._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&>("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Dt([{provide:HC,useValue:void 0}]),Je,rn],ngContentSelectors:yfe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Cn(_fe),jt(0),j(1,"div",0,1),nt("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),j(3,"div",2),jt(4,1),ke(5,mfe,0,0,"ng-template",3),z(),jt(6,2),z()),2&e&&(ae(1),ge("@bodyExpansion",i._getExpandedState())("id",i.id),At("aria-labelledby",i._headerId),ae(4),ge("cdkPortalOutlet",i._portal))},directives:[Kd],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C3.bodyExpansion]},changeDetection:0}),t})();class Dfe{}const Sfe=Qm(Dfe);let F_=(()=>{class t extends Sfe{constructor(e,i,s,r,o,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=s,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=fe.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(mn(d=>!(!d.hideToggle&&!d.togglePosition))):Eo;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=De(e.opened,e.closed,c,e._inputChanges.pipe(mn(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(mn(()=>e._containsFocus())).subscribe(()=>s.focusVia(i,"program")),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Ar(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(C(N_,1),C(tt),C(Js),C(Gt),C(M3,8),C(Ci,8),_s("tabindex"))},t.\u0275cmp=mt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&nt("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(At("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),si("height",i._getHeaderHeight()),gt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Je],ngContentSelectors:xfe,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Cn(bfe),j(0,"span",0),jt(1),jt(2,1),jt(3,2),z(),ke(4,vfe,1,1,"span",1)),2&e&&(ae(4),ge("ngIf",i._showToggle()))},directives:[vn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[C3.indicatorRotate]},changeDetection:0}),t})(),D3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),S3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),E3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,ffe,VC]]}),t})(),T3=(()=>{class t{constructor(e,i,s){this.templateRef=e,this.viewContainerRef=i,this.breakpointObserver=s}ngOnInit(){this.breakpointObserver.observe([O__Handset]).subscribe(e=>{e.matches?this.loadMobileTemplate():this.loadDesktopTemplate()})}loadMobileTemplate(){this.viewContainerRef.clear(),(!this.hideConditions||!this.hideConditions[0])&&this.viewContainerRef.createEmbeddedView(this.templateRef)}loadDesktopTemplate(){this.viewContainerRef.clear(),(!this.hideConditions||!this.hideConditions[1])&&this.viewContainerRef.createEmbeddedView(this.templateRef)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(Fn),C(nc))},t.\u0275dir=Le({type:t,selectors:[["","appResponsiveTemplate",""]],inputs:{hideConditions:["appResponsiveTemplate","hideConditions"]}}),t})();new class extends no{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let kfe=1;const Ofe=Promise.resolve(),L_={};function A3(t){return t in L_&&(delete L_[t],!0)}const k3={setImmediate(t){const n=kfe++;return L_[n]=!0,Ofe.then(()=>A3(n)&&t()),n},clearImmediate(t){A3(t)}},jC=new class extends no{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=k3.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(k3.clearImmediate(e),n.scheduled=void 0)}});let Xa=(()=>{class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new S(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Zm(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Et()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(mn(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=na(i),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>di(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(yn),Me(wt,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(yn),Me(wt,8))},token:t,providedIn:"root"}),t})(),pr=(()=>{class t{constructor(e,i,s){this._platform=e,this._change=new E,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Zm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt),Me(wt,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt),Me(wt,8))},token:t,providedIn:"root"}),t})(),oc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),zC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Pd,kd,oc],Pd,oc]}),t})();function Qfe(t,n){1&t&&jt(0)}const GC=["*"];function Kfe(t,n){}const Jfe=function(t){return{animationDuration:t}},Zfe=function(t,n){return{value:t,params:n}},epe=["tabBodyWrapper"],tpe=["tabHeader"];function npe(t,n){}function ipe(t,n){1&t&&ke(0,npe,0,0,"ng-template",9),2&t&&ge("cdkPortalOutlet",Ie().$implicit.templateLabel)}function spe(t,n){1&t&&$e(0),2&t&&Mt(Ie().$implicit.textLabel)}function rpe(t,n){if(1&t){const e=sn();j(0,"div",6),nt("click",function(){const s=Ot(e),r=s.$implicit,o=s.index,a=Ie(),l=Qt(1);return a._handleClick(r,l,o)})("cdkFocusChange",function(s){const o=Ot(e).index;return Ie()._tabFocusChanged(s,o)}),j(1,"div",7),ke(2,ipe,1,1,"ng-template",8),ke(3,spe,1,1,"ng-template",8),z(),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie();gt("mat-tab-label-active",s.selectedIndex==i),ge("id",s._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||s.disableRipple),At("tabIndex",s._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),ae(2),ge("ngIf",e.templateLabel),ae(1),ge("ngIf",!e.templateLabel)}}function ope(t,n){if(1&t){const e=sn();j(0,"mat-tab-body",10),nt("_onCentered",function(){return Ot(e),Ie()._removeTabBodyWrapperHeight()})("_onCentering",function(s){return Ot(e),Ie()._setTabBodyWrapperHeight(s)}),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie();gt("mat-tab-body-active",s.selectedIndex===i),ge("id",s._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",s.animationDuration),At("tabindex",null!=s.contentTabIndex&&s.selectedIndex===i?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(i))}}const P3=["tabListContainer"],R3=["tabList"],N3=["nextPaginator"],F3=["previousPaginator"],lpe=new pt("MatInkBarPositioner",{providedIn:"root",factory:function(){return n=>({left:n?(n.offsetLeft||0)+"px":"0",width:n?(n.offsetWidth||0)+"px":"0"})}});let B_=(()=>{class t{constructor(e,i,s,r){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=s,this._animationMode=r}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const i=this._inkBarPositioner(e),s=this._elementRef.nativeElement;s.style.left=i.left,s.style.width=i.width}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C(lpe),C(Ci,8))},t.\u0275dir=Le({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&>("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),t})();const L3=new pt("MatTabContent"),B3=new pt("MatTabLabel"),V3=new pt("MAT_TAB"),dpe=Ir(class{}),H3=new pt("MAT_TAB_GROUP");let j3=(()=>{class t extends dpe{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new E,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new rc(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(H3,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab"]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,B3,5),Ft(s,L3,7,on)),2&e){let r;st(r=rt())&&(i.templateLabel=r.first),st(r=rt())&&(i._explicitContent=r.first)}},viewQuery:function(e,i){if(1&e&&Yt(on,7),2&e){let s;st(s=rt())&&(i._implicitContent=s.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Dt([{provide:V3,useExisting:t}]),Je,rn],ngContentSelectors:GC,decls:1,vars:0,template:function(e,i){1&e&&(Cn(),ke(0,Qfe,1,0,"ng-template"))},encapsulation:2}),t})();const upe={translateTab:Ns("translateTab",[Wn("center, void, left-origin-center, right-origin-center",Jt({transform:"none"})),Wn("left",Jt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Wn("right",Jt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ni("* => left, * => right, left => center, right => center",pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ni("void => left-origin-center",[Jt({transform:"translate3d(-100%, 0, 0)"}),pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ni("void => right-origin-center",[Jt({transform:"translate3d(100%, 0, 0)"}),pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let hpe=(()=>{class t extends Kd{constructor(e,i,s,r){super(e,i,r),this._host=s,this._centeringSub=fe.EMPTY,this._leavingSub=fe.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ai(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(is),C(Fn),C(nn(()=>z3)),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","matTabBodyHost",""]],features:[Je]}),t})(),fpe=(()=>{class t{constructor(e,i,s){this._elementRef=e,this._dir=i,this._dirChangeSubscription=fe.EMPTY,this._translateTabComplete=new E,this._onCentering=new ot,this._beforeCentering=new ot,this._afterLeavingCenter=new ot,this._onCentered=new ot(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),s.markForCheck()})),this._translateTabComplete.pipe(ia((r,o)=>r.fromState===o.fromState&&r.toState===o.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Bi,8),C(Gt))},t.\u0275dir=Le({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),z3=(()=>{class t extends fpe{constructor(e,i,s){super(e,i,s)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Bi,8),C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Yt(Kd,5),2&e){let s;st(s=rt())&&(i._portalHost=s.first)}},hostAttrs:[1,"mat-tab-body"],features:[Je],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(j(0,"div",0,1),nt("@translateTab.start",function(r){return i._onTranslateTabStarted(r)})("@translateTab.done",function(r){return i._translateTabComplete.next(r)}),ke(2,Kfe,0,0,"ng-template",2),z()),2&e&&ge("@translateTab",Qr(3,Zfe,i._position,bs(1,Jfe,i.animationDuration)))},directives:[hpe],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[upe.translateTab]}}),t})();const G3=new pt("MAT_TABS_CONFIG");let ppe=0;class gpe{}const mpe=$l(Po(class{constructor(t){this._elementRef=t}}),"primary");let _pe=(()=>{class t extends mpe{constructor(e,i,s,r){var o;super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new Mo,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=fe.EMPTY,this._tabLabelSubscription=fe.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new ot,this.focusChange=new ot,this.animationDone=new ot,this.selectedTabChange=new ot(!0),this._groupId=ppe++,this.animationDuration=s&&s.animationDuration?s.animationDuration:"500ms",this.disablePagination=!(!s||null==s.disablePagination)&&s.disablePagination,this.dynamicHeight=!(!s||null==s.dynamicHeight)&&s.dynamicHeight,this.contentTabIndex=null!==(o=null==s?void 0:s.contentTabIndex)&&void 0!==o?o:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Vt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Li(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Li(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const s=this._tabBodyWrapper.nativeElement;s.style.minHeight=s.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((s,r)=>s.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,s)=>{i.position=s-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const i=this._tabs.toArray();for(let s=0;s{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new gpe;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=De(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,s){e.disabled||(this.selectedIndex=i.focusIndex=s)}_getTabIndex(e,i){return e.disabled?null:this.selectedIndex===i?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(G3,8),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Je]}),t})(),ype=(()=>{class t extends _pe{constructor(e,i,s,r){super(e,i,s,r)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(G3,8),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,j3,5),2&e){let r;st(r=rt())&&(i._allTabs=r)}},viewQuery:function(e,i){if(1&e&&(Yt(epe,5),Yt(tpe,5)),2&e){let s;st(s=rt())&&(i._tabBodyWrapper=s.first),st(s=rt())&&(i._tabHeader=s.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&>("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Dt([{provide:H3,useExisting:t}]),Je],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,i){1&e&&(j(0,"mat-tab-header",0,1),nt("indexFocused",function(r){return i._focusChanged(r)})("selectFocusedIndex",function(r){return i.selectedIndex=r}),ke(2,rpe,4,14,"div",2),z(),j(3,"div",3,4),ke(5,ope,1,9,"mat-tab-body",5),z()),2&e&&(ge("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),ae(2),ge("ngForOf",i._tabs),ae(1),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode),ae(2),ge("ngForOf",i._tabs))},directives:function(){return[Cpe,oi,$3,Pr,Jte,vn,Kd,z3]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();const vpe=Ir(class{});let $3=(()=>{class t extends vpe{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(At("aria-disabled",!!i.disabled),gt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[Je]}),t})();const U3=Ll({passive:!0});let Y3=(()=>{class t{constructor(e,i,s,r,o,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=s,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new E,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new E,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ot,this.indexFocused=new ot,o.runOutsideAngular(()=>{di(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Li(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){di(this._previousPaginator.nativeElement,"touchstart",U3).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),di(this._nextPaginator.nativeElement,"touchstart",U3).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Et("ltr"),i=this._viewportRuler.change(150),s=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new km(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(s):s(),De(e,i,this._items.changes).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(s)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Tt(this._destroyed)).subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ar(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const s=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:o}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=r,l=a+o):(l=this._tabList.nativeElement.offsetWidth-r,a=l-o);const c=this.scrollDistance,d=this.scrollDistance+s;ad&&(this.scrollDistance+=l-d+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Mh(650,100).pipe(Tt(De(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:s,distance:r}=this._scrollHeader(e);(0===r||r>=s)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),wpe=(()=>{class t extends Y3{constructor(e,i,s,r,o,a,l){super(e,i,s,r,o,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Vt(e)}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{disableRipple:"disableRipple"},features:[Je]}),t})(),Cpe=(()=>{class t extends wpe{constructor(e,i,s,r,o,a,l){super(e,i,s,r,o,a,l)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,$3,4),2&e){let r;st(r=rt())&&(i._items=r)}},viewQuery:function(e,i){if(1&e&&(Yt(B_,7),Yt(P3,7),Yt(R3,7),Yt(N3,5),Yt(F3,5)),2&e){let s;st(s=rt())&&(i._inkBar=s.first),st(s=rt())&&(i._tabListContainer=s.first),st(s=rt())&&(i._tabList=s.first),st(s=rt())&&(i._nextPaginator=s.first),st(s=rt())&&(i._previousPaginator=s.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&>("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Je],ngContentSelectors:GC,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Cn(),j(0,"div",0,1),nt("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(r){return i._handlePaginatorPress("before",r)})("touchend",function(){return i._stopInterval()}),je(2,"div",2),z(),j(3,"div",3,4),nt("keydown",function(r){return i._handleKeydown(r)}),j(5,"div",5,6),nt("cdkObserveContent",function(){return i._onContentChanges()}),j(7,"div",7),jt(8),z(),je(9,"mat-ink-bar"),z(),z(),j(10,"div",8,9),nt("mousedown",function(r){return i._handlePaginatorPress("after",r)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),je(12,"div",2),z()),2&e&&(gt("mat-tab-header-pagination-disabled",i._disableScrollBefore),ge("matRippleDisabled",i._disableScrollBefore||i.disableRipple),ae(5),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode),ae(5),gt("mat-tab-header-pagination-disabled",i._disableScrollAfter),ge("matRippleDisabled",i._disableScrollAfter||i.disableRipple))},directives:[Pr,Sm,B_],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Tpe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,VC,Ld,Em,YN],Sn]}),t})(),Ape=(()=>{class t{constructor(){this.submitEvent=new ot,this.valChange=new ot,this.propagateChange=e=>{}}valueChangeEvent(e){this.val=e,this.valChange.emit(e)}ngOnInit(){}submit(){this.submitEvent.emit(this.val)}writeValue(e){this.val=e}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-confirm-input"]],inputs:{label:"label",placeholder:"placeholder",val:"val"},outputs:{submitEvent:"submitEvent",valChange:"valChange"},features:[Dt([{provide:qi,useExisting:nn(()=>t),multi:!0}])],decls:9,vars:7,consts:[[1,"custom-id-field__filter"],["matInput","","autocomplete","off",3,"placeholder","ngModel","ngModelChange"],["mat-icon-button","",1,"custom-id-field__button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-send"],["d","M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z"]],template:function(e,i){1&e&&(j(0,"mat-form-field",0),j(1,"mat-label"),$e(2),ct(3,"translate"),z(),j(4,"input",1),nt("ngModelChange",function(r){return i.valueChangeEvent(r)}),ct(5,"translate"),z(),z(),j(6,"button",2),nt("click",function(){return i.submit()}),pn(),j(7,"svg",3),je(8,"path",4),z(),z()),2&e&&(ae(2),Mt(vt(3,3,i.label)),ae(2),yi("placeholder",vt(5,5,i.placeholder)),ge("ngModel",i.val))},directives:[ef,Bd,u_,nf,Aw,d_,Zh],pipes:[Gn],styles:[""]}),t})();function kpe(t,n){if(1&t&&(j(0,"div",6),j(1,"a",7),je(2,"img",8),z(),j(3,"div",9),j(4,"span"),$e(5),ct(6,"translate"),z(),j(7,"span"),$e(8),ct(9,"translate"),z(),je(10,"app-tool-tip-text",10),ct(11,"translate"),ct(12,"translate"),z(),z()),2&t){const e=Ie();ae(1),ge("href",e.userObj.url,_i),ae(1),ge("src",e.userObj.avatar,_i),ae(3),hl("",vt(6,9,"TOTAL_WATCHED_ANIME")," ",e.parsedStats.anime.total,""),ae(3),hl("",vt(9,11,"TOTAL_READ_MANGA")," ",e.parsedStats.manga.total,""),ae(2),ge("textMain",vt(11,13,"MEDIUM_RATING")+": "+e.parsedStats.general.medium)("textTooltip",vt(12,15,"MEDIUM_SCORE_TOOLTIP"))("placement","top")}}function Ope(t,n){1&t&&(j(0,"div",6),je(1,"img",11),j(2,"div",9),j(3,"span",12),$e(4),ct(5,"translate"),z(),z(),z()),2&t&&(ae(4),Mt(vt(5,1,"USER_UNDEFINED")))}let Ipe=(()=>{class t{constructor(e){this.animeService=e,this.isLoading=new ot,this.userFetchEvent=new ot}set user(e){var i;e?(this.userObj=Object.assign({},e),this.nickname=null===(i=this.userObj)||void 0===i?void 0:i.nickname,this.parsedStats=Ys.parseUserProfileStats(this.userObj)):this.userObj=null}updateUser(){this.nickname?(this.isLoading.emit(!0),this.animeService.getUserData(this.nickname).subscribe(e=>{this.userObj=Object.assign({},e),this.parsedStats=Ys.parseUserProfileStats(this.userObj),this.userFetchEvent.emit(this.userObj),this.isLoading.emit(!1)},e=>{this.userObj=null,this.userFetchEvent.emit(null),this.isLoading.emit(!1)})):this.userFetchEvent.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(C(jh))},t.\u0275cmp=mt({type:t,selectors:[["cmp-user-card"]],inputs:{label:"label",user:"user"},outputs:{isLoading:"isLoading",userFetchEvent:"userFetchEvent"},decls:10,vars:10,consts:[[1,"cmp-user-card"],[1,"cmp-user-card__input",3,"label","placeholder","val","valChange","submitEvent"],[1,"cmp-user-card__general","d-flex","flex-column"],[1,"cmp-user-card__top-text","d-flex","flex-row","justify-content-center"],["class","d-flex flex-row",4,"ngIf","ngIfElse"],["noUser",""],[1,"d-flex","flex-row"],[3,"href"],[1,"cmp-user-card__avatar","mr-2",3,"src"],[1,"d-flex","flex-column","justify-content-center"],[3,"textMain","textTooltip","placement"],["src","../../../../assets/empty-user.png",1,"cmp-user-card__avatar","mr-2"],[1,"d-flex","justify-content-center"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"app-confirm-input",1),nt("valChange",function(r){return i.nickname=r})("submitEvent",function(){return i.updateUser()}),ct(2,"translate"),z(),j(3,"div",2),j(4,"span",3),$e(5),ct(6,"translate"),z(),ke(7,kpe,13,17,"div",4),z(),z(),ke(8,Ope,6,3,"ng-template",null,5,Mn)),2&e){const s=Qt(9);ae(1),ge("label",i.label)("placeholder",vt(2,6,"NICKNAME"))("val",i.nickname),ae(4),Mt(vt(6,8,"GENERAL_INFO_CARD")),ae(2),ge("ngIf",i.userObj)("ngIfElse",s)}},directives:[Ape,vn,OC],pipes:[Gn],styles:[".cmp-user-card[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}.cmp-user-card__avatar[_ngcontent-%COMP%]{height:48px;width:48px;border-radius:99px;border:1px solid gray}.cmp-user-card__general[_ngcontent-%COMP%]{background:#f9e2e9;padding:5px;border-radius:10px;min-height:115px;width:-moz-fit-content;width:fit-content;min-width:290px}.cmp-user-card__input[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.cmp-user-card__top-text[_ngcontent-%COMP%]{font-weight:600}"]}),t})();const Ppe=["input"],Rpe=function(t){return{enterDuration:t}},Npe=["*"],Fpe=new pt("mat-checkbox-default-options",{providedIn:"root",factory:X3});function X3(){return{color:"accent",clickAction:"check-indeterminate"}}let Lpe=0;const Q3=X3(),Bpe={provide:qi,useExisting:nn(()=>$C),multi:!0};class Vpe{}const Hpe=Qm($l(Po(Ir(class{constructor(t){this._elementRef=t}}))));let $C=(()=>{class t extends Hpe{constructor(e,i,s,r,o,a,l){super(e),this._changeDetectorRef=i,this._focusMonitor=s,this._ngZone=r,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++Lpe,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new ot,this.indeterminateChange=new ot,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Q3,this.color=this.defaultColor=this._options.color||Q3.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Vt(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Vt(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Vt(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,s=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{s.classList.remove(r)},1e3)})}}_emitChangeEvent(){const e=new Vpe;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var i;const s=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let s="";switch(e){case 0:if(1===i)s="unchecked-checked";else{if(3!=i)return"";s="unchecked-indeterminate"}break;case 2:s=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${s}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(Js),C(xt),_s("tabindex"),C(Ci,8),C(Fpe,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(Yt(Ppe,5),Yt(Pr,5)),2&e){let s;st(s=rt())&&(i._inputElement=s.first),st(s=rt())&&(i.ripple=s.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(ys("id",i.id),At("tabindex",null),gt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Dt([Bpe]),Je],ngContentSelectors:Npe,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Cn(),j(0,"label",0,1),j(2,"span",2),j(3,"input",3,4),nt("change",function(r){return i._onInteractionEvent(r)})("click",function(r){return i._onInputClick(r)}),z(),j(5,"span",5),je(6,"span",6),z(),je(7,"span",7),j(8,"span",8),pn(),j(9,"svg",9),je(10,"path",10),z(),Ti(),je(11,"span",11),z(),z(),j(12,"span",12,13),nt("cdkObserveContent",function(){return i._onLabelTextChange()}),j(14,"span",14),$e(15,"\xa0"),z(),jt(16),z(),z()),2&e){const s=Qt(1),r=Qt(13);At("for",i.inputId),ae(2),gt("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),ae(1),ge("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),At("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),ae(2),ge("matRippleTrigger",s)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",bs(19,Rpe,"NoopAnimations"===i._animationMode?0:150))}},directives:[Pr,Sm],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),K3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),J3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,Sn,Em,K3],Sn,K3]}),t})();const Gpe=["mat-sort-header",""];function $pe(t,n){if(1&t){const e=sn();j(0,"div",3),nt("@arrowPosition.start",function(){return Ot(e),Ie()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ot(e),Ie()._disableViewStateAnimation=!1}),je(1,"div",4),j(2,"div",5),je(3,"div",6),je(4,"div",7),je(5,"div",8),z(),z()}if(2&t){const e=Ie();ge("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),ae(2),ge("@indicator",e._getArrowDirectionState()),ae(1),ge("@leftPointer",e._getArrowDirectionState()),ae(1),ge("@rightPointer",e._getArrowDirectionState())}}const Upe=["*"],Wpe=new pt("MAT_SORT_DEFAULT_OPTIONS"),Ype=e2(Ir(class{}));let Sf=(()=>{class t extends Ype{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new E,this.start="asc",this._direction="",this.sortChange=new ot}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Vt(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,s,r;if(!e)return"";const o=null!==(s=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==s?s:!!(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableClear);let a=function(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,o),l=a.indexOf(this.direction)+1;return l>=a.length&&(l=0),a[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(C(Wpe,8))},t.\u0275dir=Le({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Je,rn]}),t})();const Qa=Oie.ENTERING+" "+kie.STANDARD_CURVE,Zd={indicator:Ns("indicator",[Wn("active-asc, asc",Jt({transform:"translateY(0px)"})),Wn("active-desc, desc",Jt({transform:"translateY(10px)"})),ni("active-asc <=> active-desc",pi(Qa))]),leftPointer:Ns("leftPointer",[Wn("active-asc, asc",Jt({transform:"rotate(-45deg)"})),Wn("active-desc, desc",Jt({transform:"rotate(45deg)"})),ni("active-asc <=> active-desc",pi(Qa))]),rightPointer:Ns("rightPointer",[Wn("active-asc, asc",Jt({transform:"rotate(45deg)"})),Wn("active-desc, desc",Jt({transform:"rotate(-45deg)"})),ni("active-asc <=> active-desc",pi(Qa))]),arrowOpacity:Ns("arrowOpacity",[Wn("desc-to-active, asc-to-active, active",Jt({opacity:1})),Wn("desc-to-hint, asc-to-hint, hint",Jt({opacity:.54})),Wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Jt({opacity:0})),ni("* => asc, * => desc, * => active, * => hint, * => void",pi("0ms")),ni("* <=> *",pi(Qa))]),arrowPosition:Ns("arrowPosition",[ni("* => desc-to-hint, * => desc-to-active",pi(Qa,Xh([Jt({transform:"translateY(-25%)"}),Jt({transform:"translateY(0)"})]))),ni("* => hint-to-desc, * => active-to-desc",pi(Qa,Xh([Jt({transform:"translateY(0)"}),Jt({transform:"translateY(25%)"})]))),ni("* => asc-to-hint, * => asc-to-active",pi(Qa,Xh([Jt({transform:"translateY(25%)"}),Jt({transform:"translateY(0)"})]))),ni("* => hint-to-asc, * => active-to-asc",pi(Qa,Xh([Jt({transform:"translateY(0)"}),Jt({transform:"translateY(-25%)"})]))),Wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Jt({transform:"translateY(0)"})),Wn("hint-to-desc, active-to-desc, desc",Jt({transform:"translateY(-25%)"})),Wn("hint-to-asc, active-to-asc, asc",Jt({transform:"translateY(25%)"}))]),allowChildren:Ns("allowChildren",[ni("* <=> *",[ZN("@*",JN(),{optional:!0})])])};let V_=(()=>{class t{constructor(){this.changes=new E}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Qpe={provide:V_,deps:[[new Ki,new Vr,V_]],useFactory:function(t){return t||new V_}},Kpe=Ir(class{});let Z3=(()=>{class t extends Kpe{constructor(e,i,s,r,o,a,l){super(),this._intl=e,this._changeDetectorRef=i,this._sort=s,this._columnDef=r,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Vt(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,s;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(s=this._ariaDescriber)||void 0===s||s.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=De(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(C(V_),C(Gt),C(Sf,8),C("MAT_SORT_HEADER_COLUMN_DEF",8),C(Js),C(tt),C(Fx,8))},t.\u0275cmp=mt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&nt("click",function(){return i._handleClick()})("keydown",function(r){return i._handleKeydown(r)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(At("aria-sort",i._getAriaSortAttribute()),gt("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Je],attrs:Gpe,ngContentSelectors:Upe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(Cn(),j(0,"div",0),j(1,"div",1),jt(2),z(),ke(3,$pe,6,6,"div",2),z()),2&e&&(gt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),At("tabindex",i._isDisabled()?null:0),ae(3),ge("ngIf",i._renderArrow()))},directives:[vn],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Zd.indicator,Zd.leftPointer,Zd.rightPointer,Zd.arrowOpacity,Zd.arrowPosition,Zd.allowChildren]},changeDetection:0}),t})(),eV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Qpe],imports:[[ei,Sn]]}),t})();const Jpe=[[["caption"]],[["colgroup"],["col"]]],Zpe=["caption","colgroup, col"];function UC(t){return class extends t{constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=Vt(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}}}const eu=new pt("CDK_TABLE");let tu=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkCellDef",""]]}),t})(),nu=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),H_=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class ige{}const sge=UC(ige);let oa=(()=>{class t extends sge{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Vt(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,tu,5),Ft(s,nu,5),Ft(s,H_,5)),2&e){let r;st(r=rt())&&(i.cell=r.first),st(r=rt())&&(i.headerCell=r.first),st(r=rt())&&(i.footerCell=r.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Dt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Je]}),t})();class WC{constructor(n,e){const i=e.nativeElement.classList;for(const s of n._columnCssClassName)i.add(s)}}let YC=(()=>{class t extends WC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Je]}),t})(),tV=(()=>{class t extends WC{constructor(e,i){var s;if(super(e,i),1===(null===(s=e._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Je]}),t})(),qC=(()=>{class t extends WC{constructor(e,i){var s;if(super(e,i),1===(null===(s=e._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Je]}),t})();class nV{constructor(){this.tasks=[],this.endTasks=[]}}const XC=new pt("_COALESCED_STYLE_SCHEDULER");let iV=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new E}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new nV,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new nV;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?K(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Bn(1))}}return t.\u0275fac=function(e){return new(e||t)(Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),QC=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ef?e.headerCell.template:this instanceof Tf?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr))},t.\u0275dir=Le({type:t,features:[rn]}),t})();class rge extends QC{}const oge=UC(rge);let Ef=(()=>{class t extends oge{constructor(e,i,s){super(e,i),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Je,rn]}),t})();class age extends QC{}const lge=UC(age);let Tf=(()=>{class t extends lge{constructor(e,i,s){super(e,i),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Je,rn]}),t})(),j_=(()=>{class t extends QC{constructor(e,i,s){super(e,i),this._table=s}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Je]}),t})(),aa=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),KC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),JC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),ZC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),z_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const sV=["top","bottom","left","right"];class cge{constructor(n,e,i,s,r=!0,o=!0,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=s,this._isBrowser=r,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const s of n)if(s.nodeType===s.ELEMENT_NODE){i.push(s);for(let r=0;r{for(const s of i)this._removeStickyStyle(s,e)})}updateStickyColumns(n,e,i,s=!0){if(!n.length||!this._isBrowser||!e.some(f=>f)&&!i.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],o=r.children.length,a=this._getCellWidths(r,s),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),d=e.lastIndexOf(!0),u=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,_=f?"right":"left",T=f?"left":"right";for(const k of n)for(let $=0;$e[$]?k:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((k,$)=>i[$+u]?k:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const s="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,o=[],a=[],l=[];for(let d=0,u=0;d{var d,u;for(let f=0;f{e.some(s=>!s)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const s of e)n.style[s]="",n.classList.remove(this._borderCellCss[s]);sV.some(s=>-1===e.indexOf(s)&&n.style[s])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,s){n.classList.add(this._stickCellCss),s&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const s of sV)n.style[s]&&(i+=e[s]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],s=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=s,s+=n[r]);return i}}const eM=new pt("CDK_SPL");let G_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","rowOutlet",""]]}),t})(),$_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),U_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),W_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),Y_=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=o,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=f,this._onDestroy=new E,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ot,this.viewChange=new ti({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Vt(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Vt(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),R_(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(s,r,o)=>this._getEmbeddedViewArgs(s.item,o),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(s=>{i.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=e.length?"":"none");const r=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=e.length?"":"none");const r=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,o)=>{this._addStickyColumnStyles([r],this._headerRowDefs[o])}),this._rowDefs.forEach(r=>{const o=[];for(let a=0;a{this._addStickyColumnStyles([r],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const a=s&&s.has(o)?s.get(o):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),q_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=q_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=q_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=q_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(e,!1);s&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||s||r}_switchDataSource(e){this._data=[],R_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;R_(this.dataSource)?e=this.dataSource.connect(this):function(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Et(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const s=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),r=s.map(a=>a.sticky),o=s.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let s=0;s!r.when||r.when(i,e));else{let r=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;r&&s.push(r)}return s}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,s,r={}){const o=e.viewContainer.createEmbeddedView(i.template,r,s);return this._renderCellTemplateForItem(i,r),o}_renderCellTemplateForItem(e,i){for(let s of this._getCellTemplates(e))aa.mostRecentCellOutlet&&aa.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,s=e.length;i{const s=this._columnDefsByName.get(i);return e.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of i){const r=this._document.createElement(s.tag);r.setAttribute("role","rowgroup");for(const o of s.outlets)r.appendChild(o.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,s)=>i||s.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new cge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Et()).pipe(Tt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){const s=this._noDataRowOutlet.viewContainer;i?s.createEmbeddedView(e.templateRef):s.clear(),this._isShowingNoDataRow=i}}}}return t.\u0275fac=function(e){return new(e||t)(C(wr),C(Gt),C(tt),_s("role"),C(Bi,8),C(wt),C(yn),C(sc),C(XC),C(pr),C(eM,12))},t.\u0275cmp=mt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,z_,5),Ft(s,oa,5),Ft(s,j_,5),Ft(s,Ef,5),Ft(s,Tf,5)),2&e){let r;st(r=rt())&&(i._noDataRow=r.first),st(r=rt())&&(i._contentColumnDefs=r),st(r=rt())&&(i._contentRowDefs=r),st(r=rt())&&(i._contentHeaderRowDefs=r),st(r=rt())&&(i._contentFooterRowDefs=r)}},viewQuery:function(e,i){if(1&e&&(Yt(G_,7),Yt($_,7),Yt(U_,7),Yt(W_,7)),2&e){let s;st(s=rt())&&(i._rowOutlet=s.first),st(s=rt())&&(i._headerRowOutlet=s.first),st(s=rt())&&(i._footerRowOutlet=s.first),st(s=rt())&&(i._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&>("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Dt([{provide:eu,useExisting:t},{provide:sc,useClass:_3},{provide:XC,useClass:iV},{provide:eM,useValue:null}])],ngContentSelectors:Zpe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cn(Jpe),jt(0),jt(1,1),qn(2,0),qn(3,1),qn(4,2),qn(5,3))},directives:[$_,G_,W_,U_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function q_(t,n){return t.concat(Array.from(n))}let uge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[zC]]}),t})();const hge=[[["caption"]],[["colgroup"],["col"]]],fge=["caption","colgroup, col"];let tM=(()=>{class t extends Y_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&>("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[Dt([{provide:sc,useClass:_3},{provide:Y_,useExisting:t},{provide:eu,useExisting:t},{provide:XC,useClass:iV},{provide:eM,useValue:null}]),Je],ngContentSelectors:fge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cn(hge),jt(0),jt(1,1),qn(2,0),qn(3,1),qn(4,2),qn(5,3))},directives:[$_,G_,W_,U_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),X_=(()=>{class t extends tu{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matCellDef",""]],features:[Dt([{provide:tu,useExisting:t}]),Je]}),t})(),Q_=(()=>{class t extends nu{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matHeaderCellDef",""]],features:[Dt([{provide:nu,useExisting:t}]),Je]}),t})(),oV=(()=>{class t extends H_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matFooterCellDef",""]],features:[Dt([{provide:H_,useExisting:t}]),Je]}),t})(),K_=(()=>{class t extends oa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Dt([{provide:oa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Je]}),t})(),J_=(()=>{class t extends YC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Je]}),t})(),aV=(()=>{class t extends tV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[Je]}),t})(),Z_=(()=>{class t extends qC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Je]}),t})(),nM=(()=>{class t extends Ef{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Dt([{provide:Ef,useExisting:t}]),Je]}),t})(),lV=(()=>{class t extends Tf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[Dt([{provide:Tf,useExisting:t}]),Je]}),t})(),iM=(()=>{class t extends j_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Dt([{provide:j_,useExisting:t}]),Je]}),t})(),sM=(()=>{class t extends KC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Dt([{provide:KC,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),cV=(()=>{class t extends JC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[Dt([{provide:JC,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),rM=(()=>{class t extends ZC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Dt([{provide:ZC,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),oM=(()=>{class t extends z_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Dt([{provide:z_,useExisting:t}]),Je]}),t})(),dV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[uge,Sn],Sn]}),t})();class aM extends class extends class{}{constructor(n=[]){super(),this._renderData=new ti([]),this._filter=new ti(""),this._internalPageChanges=new E,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const s=e[i];if(mN(s)){const r=Number(s);return r<9007199254740991?r:s}return s},this.sortData=(e,i)=>{const s=i.active,r=i.direction;return s&&""!=r?e.sort((o,a)=>{let l=this.sortingDataAccessor(o,s),c=this.sortingDataAccessor(a,s);const d=typeof l,u=typeof c;d!==u&&("number"===d&&(l+=""),"number"===u&&(c+=""));let f=0;return null!=l&&null!=c?l>c?f=1:l{const s=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=s.indexOf(r)},this._data=new ti(n),this._updateChangeSubscription()}get data(){return this._data.value}set data(n){this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_updateChangeSubscription(){var n;const e=this._sort?De(this._sort.sortChange,this._sort.initialized):Et(null),i=this._paginator?De(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Et(null),r=So([this._data,this._filter]).pipe(g(([l])=>this._filterData(l))),o=So([r,e]).pipe(g(([l])=>this._orderData(l))),a=So([o,i]).pipe(g(([l])=>this._pageData(l)));null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=a.subscribe(l=>this._renderData.next(l))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,s=Math.min(e.pageIndex,i);s!==e.pageIndex&&(e.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var n;null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=null}}{}const uV=DN();class bge{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Yi(-this._previousScrollPosition.left),n.style.top=Yi(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,s=this._document.body.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),uV&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),uV&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class xge{constructor(n,e,i,s){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class hV{enable(){}disable(){}attach(){}}function lM(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function fV(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class wge{constructor(n,e,i,s){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();lM(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Cge=(()=>{class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new hV,this.close=o=>new xge(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new bge(this._viewportRuler,this._document),this.reposition=o=>new wge(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(Me(Xa),Me(pr),Me(xt),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(Xa),Me(pr),Me(xt),Me(wt))},token:t,providedIn:"root"}),t})();class cM{constructor(n){if(this.scrollStrategy=new hV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class Mge{constructor(n,e,i,s,r){this.offsetX=i,this.offsetY=s,this.panelClass=r,this.originX=n.originX,this.originY=n.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Dge{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let pV=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Sge=(()=>{class t extends pV{constructor(e){super(e),this._keydownListener=i=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Ege=(()=>{class t extends pV{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Vl(s)},this._clickListener=s=>{const r=Vl(s),o="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(yn))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt),Me(yn))},token:t,providedIn:"root"}),t})(),dM=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rx()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(d),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){let e=this._portalOutlet.attach(n);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Yi(this._config.width),n.height=Yi(this._config.height),n.minWidth=Yi(this._config.minWidth),n.minHeight=Yi(this._config.minHeight),n.maxWidth=Yi(this._config.maxWidth),n.maxHeight=Yi(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(!n)return;let e;const i=()=>{n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",i),this._disposeBackdrop(n)),this._config.backdropClass&&this._toggleClasses(n,this._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(n,e,i){const s=n.classList;vm(e).forEach(r=>{r&&(i?s.add(r):s.remove(r))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Tt(De(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.parentNode&&n.parentNode.removeChild(n),this._backdropElement===n&&(this._backdropElement=null))}}const gV="cdk-overlay-connected-position-bounding-box",Age=/([A-Za-z%]+)$/;class mV{constructor(n,e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E,this._resizeSubscription=fe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(gV),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,s=[];let r;for(let o of this._preferredPositions){let a=this._getOriginPoint(n,o),l=this._getOverlayPoint(a,e,o),c=this._getOverlayFit(l,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(c,l,i)?s.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!r||r.overlayFit.visibleAreaa&&(a=c,o=l)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ac(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gV),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const n=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,n);this._applyPosition(n,e)}}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e){let i,s;if("center"==e.originX)i=n.left+n.width/2;else{const r=this._isRtl()?n.right:n.left,o=this._isRtl()?n.left:n.right;i="start"==e.originX?r:o}return s="center"==e.originY?n.top+n.height/2:"top"==e.originY?n.top:n.bottom,{x:i,y:s}}_getOverlayPoint(n,e,i){let s,r;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+s,y:n.y+r}}_getOverlayFit(n,e,i,s){const r=yV(e);let{x:o,y:a}=n,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(o+=l),c&&(a+=c);let f=0-a,_=a+r.height-i.height,T=this._subtractOverflows(r.width,0-o,o+r.width-i.width),k=this._subtractOverflows(r.height,f,_),$=T*k;return{visibleArea:$,isCompletelyWithinViewport:r.width*r.height===$,fitsInViewportVertically:k===r.height,fitsInViewportHorizontally:T==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,r=i.right-e.x,o=_V(this._overlayRef.getConfig().minHeight),a=_V(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=o&&o<=s)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const s=yV(e),r=this._viewportRect,o=Math.max(n.x+s.width-r.width,0),a=Math.max(n.y+s.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let d=0,u=0;return d=s.width<=r.width?c||-o:n.xT&&!this._isInitialRender&&!this._growAfterOpen&&(o=n.y-T/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)f=i.width-n.x+this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=n.x,d=i.right-n.x;else{const _=Math.min(i.right-n.x+i.left,n.x),T=this._lastBoundingBoxSize.width;d=2*_,u=n.x-_,d>T&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-T/2)}return{top:o,left:u,bottom:a,right:f,width:d,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=Yi(i.height),s.top=Yi(i.top),s.bottom=Yi(i.bottom),s.width=Yi(i.width),s.left=Yi(i.left),s.right=Yi(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=Yi(r)),o&&(s.maxWidth=Yi(o))}this._lastBoundingBoxSize=i,ac(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ac(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ac(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ac(i,this._getExactOverlayY(e,n,d)),ac(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=Yi(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=Yi(o.maxWidth):r&&(i.maxWidth="")),ac(this._pane.style,i)}_getExactOverlayY(n,e,i){let s={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===n.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=Yi(r.y),s}_getExactOverlayX(n,e,i){let o,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),o=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===o?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Yi(r.x),s}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:fV(n,i),isOriginOutsideView:lM(n,i),isOverlayClipped:fV(e,i),isOverlayOutsideView:lM(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,s)=>i-Math.max(s,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&vm(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof tt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function ac(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function _V(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(Age);return e&&"px"!==e?null:parseFloat(n)}return t||null}function yV(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class kge{constructor(n,e,i,s,r,o,a){this._preferredPositions=[],this._positionStrategy=new mV(i,s,r,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(n,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(n){this._overlayRef=n,this._positionStrategy.attach(n),this._direction&&(n.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(n){this._positionStrategy.withScrollableContainers(n)}withFallbackPosition(n,e,i,s){const r=new Mge(n,e,i,s);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(n){return this._overlayRef?this._overlayRef.setDirection(n):this._direction=n,this}withOffsetX(n){return this._positionStrategy.withDefaultOffsetX(n),this}withOffsetY(n){return this._positionStrategy.withDefaultOffsetY(n),this}withLockedPosition(n){return this._positionStrategy.withLockedPosition(n),this}withPositions(n){return this._preferredPositions=n.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(n){return this._positionStrategy.setOrigin(n),this}}const vV="cdk-global-overlay-wrapper";class Oge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(vV),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(vV),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let Ige=(()=>{class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new Oge}connectedTo(e,i,s){return new kge(i,s,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new mV(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Me(pr),Me(wt),Me(yn),Me(dM))},t.\u0275prov=Ze({factory:function(){return new t(Me(pr),Me(wt),Me(yn),Me(dM))},token:t,providedIn:"root"}),t})(),Pge=0,la=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=f}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),o=new cM(e);return o.direction=o.direction||this._directionality.value,new Tge(r,i,s,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Pge++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(cr)),new x3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Me(Cge),Me(dM),Me(is),Me(Ige),Me(Sge),Me(wn),Me(xt),Me(wt),Me(Bi),Me(oh),Me(Ege))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const Rge=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],bV=new pt("cdk-connected-overlay-scroll-strategy");let Nge=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),xV=(()=>{class t{constructor(e,i,s,r,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=fe.EMPTY,this._attachSubscription=fe.EMPTY,this._detachSubscription=fe.EMPTY,this._positionSubscription=fe.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ot,this.positionChange=new ot,this.attach=new ot,this.detach=new ot,this.overlayKeydown=new ot,this.overlayOutsideClick=new ot,this._templatePortal=new rc(i,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Vt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Vt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Vt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Vt(e)}get push(){return this._push}set push(e){this._push=Vt(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Rge);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ar(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new cM({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(iP(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(on),C(Fn),C(bV),C(Bi,8))},t.\u0275dir=Le({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[rn]}),t})();const Lge={provide:bV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let uM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[la,Lge],imports:[[Pd,VC,zC],zC]}),t})();const Bge=["trigger"],Vge=["panel"];function Hge(t,n){if(1&t&&(j(0,"span",8),$e(1),z()),2&t){const e=Ie();ae(1),Mt(e.placeholder)}}function jge(t,n){if(1&t&&(j(0,"span",12),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.triggerValue)}}function zge(t,n){1&t&&jt(0,0,["*ngSwitchCase","true"])}function Gge(t,n){1&t&&(j(0,"span",9),ke(1,jge,2,1,"span",10),ke(2,zge,1,0,"ng-content",11),z()),2&t&&(ge("ngSwitch",!!Ie().customTrigger),ae(2),ge("ngSwitchCase",!0))}function $ge(t,n){if(1&t){const e=sn();j(0,"div",13),j(1,"div",14,15),nt("@transformPanel.done",function(s){return Ot(e),Ie()._panelDoneAnimatingStream.next(s.toState)})("keydown",function(s){return Ot(e),Ie()._handleKeydown(s)}),jt(3,1),z(),z()}if(2&t){const e=Ie();ge("@transformPanelWrap",void 0),ae(1),function(t,n,e){Yr(sr,xo,Bc(dt(),t,n,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),si("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),ge("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),At("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Uge=[[["mat-select-trigger"]],"*"],Wge=["mat-select-trigger","*"],wV={transformPanelWrap:Ns("transformPanelWrap",[ni("* => void",ZN("@transformPanel",[JN()],{optional:!0}))]),transformPanel:Ns("transformPanel",[Wn("void",Jt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Wn("showing",Jt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Wn("showing-multiple",Jt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ni("void => *",pi("120ms cubic-bezier(0, 0, 0.2, 1)")),ni("* => void",pi("100ms 25ms linear",Jt({opacity:0})))])};let CV=0;const DV=new pt("mat-select-scroll-strategy"),Qge=new pt("MAT_SELECT_CONFIG"),Kge={provide:DV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Jge{constructor(n,e){this.source=n,this.value=e}}const Zge=Po(Qm(Ir(ZF(class{constructor(t,n,e,i,s){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}})))),SV=new pt("MatSelectTrigger");let eme=(()=>{class t extends Zge{constructor(e,i,s,r,o,a,l,c,d,u,f,_,T,k){var $,L,J;super(o,r,l,c,u),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=s,this._dir=a,this._parentFormField=d,this._liveAnnouncer=T,this._defaultOptions=k,this._panelOpen=!1,this._compareWith=(ue,Te)=>ue===Te,this._uid="mat-select-"+CV++,this._triggerAriaLabelledBy=null,this._destroy=new E,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+CV++,this._panelDoneAnimatingStream=new E,this._overlayPanelClass=(null===($=this._defaultOptions)||void 0===$?void 0:$.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(J=null===(L=this._defaultOptions)||void 0===L?void 0:L.disableOptionCentering)&&void 0!==J&&J,this.ariaLabel="",this.optionSelectionChanges=N0(()=>{const ue=this.options;return ue?ue.changes.pipe(ai(ue),as(()=>De(...ue.map(Te=>Te.onSelectionChange)))):this._ngZone.onStable.pipe(Bn(1),as(()=>this.optionSelectionChanges))}),this.openedChange=new ot,this._openedStream=this.openedChange.pipe(mn(ue=>ue),g(()=>{})),this._closedStream=this.openedChange.pipe(mn(ue=>!ue),g(()=>{})),this.selectionChange=new ot,this.valueChange=new ot,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==k?void 0:k.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=k.typeaheadDebounceInterval),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Vt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Vt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Vt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Li(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new NC(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ia(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ai(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,s=40===i||38===i||37===i||39===i,r=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&r&&!Ar(e)||(this.multiple||e.altKey)&&s)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,s=e.keyCode,r=40===s||38===s,o=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(o||13!==s&&32!==s||!i.activeItem||Ar(e))if(!o&&this._multiple&&65===s&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new Rte(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Tt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=De(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),De(...this.options.map(i=>i._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const s=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(s!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),s!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,s)=>this.sortComparator?this.sortComparator(i,s,e):e.indexOf(i)-e.indexOf(s)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let s=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(C(pr),C(Gt),C(xt),C(yw),C(tt),C(Bi,8),C(cf,8),C(df,8),C(Dw,8),C(Ro,10),_s("tabindex"),C(DV),C(zN),C(Qge,8))},t.\u0275dir=Le({type:t,viewQuery:function(e,i){if(1&e&&(Yt(Bge,5),Yt(Vge,5),Yt(xV,5)),2&e){let s;st(s=rt())&&(i.trigger=s.first),st(s=rt())&&(i.panel=s.first),st(s=rt())&&(i._overlayDir=s.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Je,rn]}),t})(),tme=(()=>{class t extends eme{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,s){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=f2(e,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(t,n,e,i){return te+256?Math.max(0,t-256+n):e}((e+i)*s,s,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Jge(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),s=this._isRtl(),r=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}s||(o*=-1);const a=0-(e.left+o-(s?r:0)),l=e.right+o-i.width+(s?0:r);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,s){const r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===s?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,o=s.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const s=Math.round(e-i);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,s){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),s=Math.min(i*e,256),o=i*e-s;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=f2(a,this.options,this.optionGroups);const l=s/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,SV,5),Ft(s,h2,5),Ft(s,Cw,5)),2&e){let r;st(r=rt())&&(i.customTrigger=r.first),st(r=rt())&&(i.options=r),st(r=rt())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&nt("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(At("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),gt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Dt([{provide:Jm,useExisting:t},{provide:ww,useExisting:t}]),Je],ngContentSelectors:Wge,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Cn(Uge),j(0,"div",0,1),nt("click",function(){return i.toggle()}),j(3,"div",2),ke(4,Hge,2,1,"span",3),ke(5,Gge,3,2,"span",4),z(),j(6,"div",5),je(7,"div",6),z(),z(),ke(8,$ge,4,14,"ng-template",7),nt("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const s=Qt(1);At("aria-owns",i.panelOpen?i.id+"-panel":null),ae(3),ge("ngSwitch",i.empty),At("id",i._valueId),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1),ae(3),ge("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[Nge,Da,cd,xV,b0,Ma],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[wV.transformPanelWrap,wV.transformPanel]},changeDetection:0}),t})(),nme=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Kge],imports:[[ei,uM,p2,Sn],oc,tf,p2,Sn]}),t})();const ime={tooltipState:Ns("state",[Wn("initial, void, hidden",Jt({opacity:0,transform:"scale(0)"})),Wn("visible",Jt({transform:"scale(1)"})),ni("* => visible",pi("200ms cubic-bezier(0, 0, 0.2, 1)",Xh([Jt({opacity:0,transform:"scale(0)",offset:0}),Jt({opacity:.5,transform:"scale(0.99)",offset:.5}),Jt({opacity:1,transform:"scale(1)",offset:1})]))),ni("* => hidden",pi("100ms cubic-bezier(0, 0, 0.2, 1)",Jt({opacity:0})))])},EV="tooltip-panel",TV=Ll({passive:!0}),AV=new pt("mat-tooltip-scroll-strategy"),ame={provide:AV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},lme=new pt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let dme=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f,_){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=T=>{this._isTooltipVisible()&&27===T.keyCode&&!Ar(T)&&(T.preventDefault(),T.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=d,this._document=_,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),o.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,TV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new v3(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Tt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${EV}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),r.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:r,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:r,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Bn(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:r}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===r?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${EV}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,TV)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Xa),C(Fn),C(xt),C(yn),C(Fx),C(Js),C(void 0),C(Bi),C(void 0),C(wt))},t.\u0275dir=Le({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),ume=(()=>{class t extends dme{constructor(e,i,s,r,o,a,l,c,d,u,f,_){super(e,i,s,r,o,a,l,c,d,u,f,_),this._tooltipComponent=fme}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Xa),C(Fn),C(xt),C(yn),C(Fx),C(Js),C(AV),C(Bi,8),C(lme,8),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Je]}),t})(),hme=(()=>{class t{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275dir=Le({type:t}),t})(),fme=(()=>{class t extends hme{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe(O__Handset)}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&si("zoom","visible"===i._visibility?1:null)},features:[Je],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(j(0,"div",0),nt("@state.start",function(){return i._animationStart()})("@state.done",function(r){return i._animationDone(r)}),ct(1,"async"),$e(2),z()),2&e){let s;gt("mat-tooltip-handset",null==(s=vt(1,5,i._isHandset))?null:s.matches),ge("ngClass",i.tooltipClass)("@state",i._visibility),ae(2),Mt(i.message)}},directives:[Ma],pipes:[DO],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ime.tooltipState]},changeDetection:0}),t})(),pme=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[ame],imports:[[YN,ei,uM,Sn],Sn,oc]}),t})();function gme(t,n){if(1&t&&(j(0,"mat-option",19),$e(1),z()),2&t){const e=n.$implicit;ge("value",e),ae(1),$t(" ",e," ")}}function mme(t,n){if(1&t){const e=sn();j(0,"mat-form-field",16),j(1,"mat-select",17),nt("selectionChange",function(s){return Ot(e),Ie(2)._changePageSize(s.value)}),ke(2,gme,2,2,"mat-option",18),z(),z()}if(2&t){const e=Ie(2);ge("appearance",e._formFieldAppearance)("color",e.color),ae(1),ge("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),ae(1),ge("ngForOf",e._displayedPageSizeOptions)}}function _me(t,n){if(1&t&&(j(0,"div",20),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.pageSize)}}function yme(t,n){if(1&t&&(j(0,"div",12),j(1,"div",13),$e(2),z(),ke(3,mme,3,6,"mat-form-field",14),ke(4,_me,2,1,"div",15),z()),2&t){const e=Ie();ae(2),$t(" ",e._intl.itemsPerPageLabel," "),ae(1),ge("ngIf",e._displayedPageSizeOptions.length>1),ae(1),ge("ngIf",e._displayedPageSizeOptions.length<=1)}}function vme(t,n){if(1&t){const e=sn();j(0,"button",21),nt("click",function(){return Ot(e),Ie().firstPage()}),pn(),j(1,"svg",7),je(2,"path",22),z(),z()}if(2&t){const e=Ie();ge("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),At("aria-label",e._intl.firstPageLabel)}}function bme(t,n){if(1&t){const e=sn();pn(),Ti(),j(0,"button",23),nt("click",function(){return Ot(e),Ie().lastPage()}),pn(),j(1,"svg",7),je(2,"path",24),z(),z()}if(2&t){const e=Ie();ge("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),At("aria-label",e._intl.lastPageLabel)}}let kf=(()=>{class t{constructor(){this.changes=new E,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,s)=>{if(0==s||0==i)return`0 of ${s}`;const r=e*i;return`${r+1} \u2013 ${r<(s=Math.max(s,0))?Math.min(r+i,s):r+i} of ${s}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const wme={provide:kf,deps:[[new Ki,new Vr,kf]],useFactory:function(t){return t||new kf}},Mme=new pt("MAT_PAGINATOR_DEFAULT_OPTIONS"),Dme=Ir(e2(class{}));let Sme=(()=>{class t extends Dme{constructor(e,i,s){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new ot,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),s){const{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:l}=s;null!=r&&(this._pageSize=r),null!=o&&(this._pageSizeOptions=o),null!=a&&(this._hidePageSize=a),null!=l&&(this._showFirstLastButtons=l)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Li(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Li(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Li(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Li(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Vt(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Vt(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(C(kf),C(Gt),C(void 0))},t.\u0275dir=Le({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Je]}),t})(),kV=(()=>{class t extends Sme{constructor(e,i,s){super(e,i,s),s&&null!=s.formFieldAppearance&&(this._formFieldAppearance=s.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(C(kf),C(Gt),C(Mme,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Je],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),ke(2,yme,5,3,"div",2),j(3,"div",3),j(4,"div",4),$e(5),z(),ke(6,vme,3,5,"button",5),j(7,"button",6),nt("click",function(){return i.previousPage()}),pn(),j(8,"svg",7),je(9,"path",8),z(),z(),Ti(),j(10,"button",9),nt("click",function(){return i.nextPage()}),pn(),j(11,"svg",7),je(12,"path",10),z(),z(),ke(13,bme,3,5,"button",11),z(),z(),z()),2&e&&(ae(2),ge("ngIf",!i.hidePageSize),ae(3),$t(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),ae(1),ge("ngIf",i.showFirstLastButtons),ae(1),ge("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),At("aria-label",i._intl.previousPageLabel),ae(3),ge("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),At("aria-label",i._intl.nextPageLabel),ae(3),ge("ngIf",i.showFirstLastButtons))},directives:[vn,Zh,ume,ef,tme,oi,h2],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),OV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[wme],imports:[[ei,Mw,nme,pme,Sn]]}),t})(),IV=(()=>{class t{constructor(e,i,s,r){this.cdr=e,this.translatePipe=i,this.translationService=s,this.breakpointObserver=r,this.onFilterChanges=new ot,this.isSimplifiedView=!1,this.titleFieldName="name"}set filter(e){e&&this.applyFilter(e)}ngOnInit(){this.onInitRoutine()}onInitRoutine(){this.translationService.localeChange.subscribe(()=>{var e;this.updateTitleFieldName(),this.paginator&&Rs.translatePaginator(this.paginator,this.translatePipe),(null===(e=this.dataSource)||void 0===e?void 0:e.filteredData)&&this.onFilterChanges.emit(this.dataSource.filteredData),this.cdr.markForCheck()}),this.breakpointObserver.observe([O__Handset]).subscribe(e=>{const i=this.isSimplifiedView;this.isSimplifiedView=e.matches,this.displayedColumns=e.matches?this.mobileColumns:this.defaultColumns,i!==this.isSimplifiedView&&this.cdr.detectChanges()})}afterViewInitRoutine(){this.paginator&&Rs.translatePaginator(this.paginator,this.translatePipe),this.dataSource&&(this.paginator&&(this.dataSource.paginator=this.paginator),this.sort&&(this.dataSource.sort=this.sort))}ngAfterViewInit(){this.afterViewInitRoutine()}applyFilter(e){this.dataSource&&(this.dataSource.filter=e.target.value.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.onFilterChanges.emit(this.dataSource.filteredData)),this.cdr.detectChanges()}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(Gn),C(qs),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["base-table"]],viewQuery:function(e,i){if(1&e&&(Yt(kV,5),Yt(Sf,5)),2&e){let s;st(s=rt())&&(i.paginator=s.first),st(s=rt())&&(i.sort=s.first)}},inputs:{filter:"filter"},outputs:{onFilterChanges:"onFilterChanges"},decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"base-table works!"),z())},styles:[""]}),t})();function Eme(t,n){1&t&&(j(0,"th",19),$e(1," # "),z())}function Tme(t,n){if(1&t&&(j(0,"td",20),$e(1),z()),2&t){const e=n.index;ae(1),$t(" ",e+1," ")}}function Ame(t,n){1&t&&(j(0,"td",21),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"SCORE_MEAN")," "))}function kme(t,n){1&t&&(j(0,"th",22),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Thumbnail")," "))}function Ome(t,n){if(1&t&&(j(0,"td",20),je(1,"img",23),z()),2&t){const e=n.$implicit;ae(1),ge("src",e.thumbnail,_i)}}function Ime(t,n){1&t&&je(0,"td",21)}function Pme(t,n){1&t&&(j(0,"th",19),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Name")," "))}function Rme(t,n){if(1&t&&(j(0,"td",20),j(1,"div",24),j(2,"span",25),j(3,"a",26),ct(4,"languageContent"),$e(5),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(3),yi("href",ml(4,2,e.url,"ru",e.malUrl),_i),ae(2),$t(" ",e[i.titleFieldName]," ")}}function Nme(t,n){1&t&&je(0,"td",21)}function Fme(t,n){if(1&t&&(j(0,"th",19),j(1,"span",27),$e(2),z(),z()),2&t){const e=Ie();ae(2),$t(" ",e.userNames[0]," ")}}const PV=function(t,n){return{status:t,score:n}};function Lme(t,n){if(1&t&&(j(0,"td",20),qn(1,28),z()),2&t){const e=n.$implicit;Ie();const i=Qt(36);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,PV,e.statusLeft,e.scoreLeft||"\u2014"))}}function Bme(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.scoreLeft," ")}}function Vme(t,n){if(1&t&&(j(0,"th",19),j(1,"span",27),$e(2),z(),z()),2&t){const e=Ie();ae(2),$t(" ",e.userNames[1]," ")}}function Hme(t,n){if(1&t&&(j(0,"td",20),qn(1,28),z()),2&t){const e=n.$implicit;Ie();const i=Qt(36);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,PV,e.statusRight,e.scoreRight||"\u2014"))}}function jme(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.scoreRight," ")}}function zme(t,n){1&t&&(j(0,"th",19),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Score Diff")," "))}function Gme(t,n){if(1&t&&(j(0,"td",20),$e(1),z()),2&t){const e=n.$implicit;let i;ae(1),$t(" ",null!==(i=e.diff)&&void 0!==i?i:"\u2014"," ")}}function $me(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.diff," ")}}function Ume(t,n){1&t&&je(0,"tr",29)}const Wme=function(t){return{backgroundColor:t}};function Yme(t,n){1&t&&je(0,"tr",30),2&t&&ge("ngStyle",bs(1,Wme,n.$implicit.color))}function qme(t,n){1&t&&je(0,"tr",32)}function Xme(t,n){if(1&t&&(Rn(0),ke(1,qme,1,0,"tr",31),Nn()),2&t){const e=Ie();ae(1),ge("matFooterRowDef",e.displayedColumns)("matFooterRowDefSticky",!0)}}function Qme(t,n){1&t&&(j(0,"tr",33),j(1,"td",34),$e(2),ct(3,"translate"),z(),z()),2&t&&(ae(2),Mt(vt(3,1,"NOTHING FOUND")))}function Kme(t,n){1&t&&(j(0,"span"),pn(),j(1,"svg",35),je(2,"path",36),je(3,"path",37),z(),z())}function Jme(t,n){1&t&&(j(0,"span"),pn(),j(1,"svg",38),je(2,"path",39),je(3,"path",40),z(),z())}function Zme(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2).score;ae(1),$t("(",e,")")}}function e_e(t,n){if(1&t&&(j(0,"div",42),j(1,"span"),$e(2),ct(3,"translate"),z(),ke(4,Zme,2,1,"span",13),z()),2&t){const e=Ie(),i=e.text,s=e.score;ae(2),Mt(vt(3,2,i)),ae(2),ge("ngIf",s>0)}}function t_e(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2).score;ae(1),$t("(",e,")")}}function n_e(t,n){if(1&t&&(j(0,"div",42),je(1,"app-tool-tip-text",43),ct(2,"translate"),ke(3,t_e,2,1,"span",13),z()),2&t){const e=Ie(),i=e.template,s=e.text,r=e.score;ae(1),ge("templateMain",i)("textTooltip",vt(2,3,s)),ae(2),ge("ngIf",r>0)}}function i_e(t,n){if(1&t&&(ke(0,e_e,5,4,"div",41),ke(1,n_e,4,5,"div",41)),2&t){const e=Ie();ge("ngIf",!e.isSimplifiedView),ae(1),ge("ngIf",e.isSimplifiedView)}}const s_e=function(t,n){return{text:"CMP_DROP",score:t,template:n}};function r_e(t,n){if(1&t&&(j(0,"span"),qn(1,28),z()),2&t){const e=Ie().score;Ie();const i=Qt(34),s=Qt(32);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,s_e,e,s))}}const o_e=function(t,n){return{text:"CMP_PLANNED",score:t,template:n}};function a_e(t,n){if(1&t&&(j(0,"span"),qn(1,28),z()),2&t){const e=Ie().score;Ie();const i=Qt(34),s=Qt(30);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,o_e,e,s))}}function l_e(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie().score;ae(1),Mt(e)}}function c_e(t,n){1&t&&(Rn(0,44),ke(1,r_e,2,5,"span",45),ke(2,a_e,2,5,"span",45),ke(3,l_e,2,1,"span",46),Nn()),2&t&&(ge("ngSwitch",n.status),ae(1),ge("ngSwitchCase","dropped"),ae(1),ge("ngSwitchCase","planned"))}let d_e=(()=>{class t extends IV{constructor(e,i,s,r){super(s,i,e,r),this.type="anime",this.userKey="both",this.sortKey="diff",this.defaultColumns=["orderNumber","title","scoreLeft","scoreRight","diff"],this.mobileColumns=["orderNumber","title","scoreLeft","scoreRight","diff"],this.onFilterChanges=new ot,this.calculatedMeans={scoreLeft:"0.0",scoreRight:"0.0",diff:"0.0"},this.displayedColumns=[...this.defaultColumns],this.titleFieldName="title"}ngOnInit(){this.mapTableData(this.data),this.onInitRoutine()}getMappedDifferenceObj(e){const i={left:[],right:[],common:{left:[],right:[],obj:[]}},s=new Map,r=new Map;return e.left.userData[this.type].forEach(o=>{s.set(o[this.type].id,o)}),e.right.userData[this.type].forEach(o=>{r.set(o[this.type].id,o)}),e.right.userData[this.type].forEach(o=>{s.has(o[this.type].id)?(i.common.left.push(s.get(o[this.type].id)),i.common.right.push(o),i.common.obj.push(o[this.type])):i.right.push(o)}),s.forEach(o=>{r.has(o[this.type].id)||i.left.push(o)}),i}calculateDiff(e,i){return 0===e.score?"dropped"===e.status?i.score:null:0===i.score?"dropped"===i.status?e.score:null:Math.abs(e.score-i.score)}getRowColor(e){return null==e?null:e<2?"#22ff339e":e<3?"#84ff8d9e":e<6?"#ff55559e":e<8?"#fd24249e":"#ff00009e"}calculateMean(e){var i;let s=0,r=0;null===(i=this.dataSource)||void 0===i||i.data.forEach(o=>{Rs.isNumeric(o[e])&&(r++,s+=o[e])}),s/=r||1,this.calculatedMeans[e]=s.toPrecision(2)}mapTableData(e){var i,s;const r=[],o=this.getMappedDifferenceObj(e);if("both"===this.userKey){for(let a=0;aa.score>0))||void 0===s||s.forEach(a=>{const l={};l.title=a[this.type].name,l.titleRussian=a[this.type].russian,l.url=a[this.type].url,l.malUrl=a[this.type].url,l[`score${Rs.capitalizeFirstLetter(this.userKey)}`]=a.score,r.push(l)}),this.dataSource=new aM(r);this.updateTitleFieldName(),this.dataSource.sort=this.sort}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"titleRussian":"title"}}return t.\u0275fac=function(e){return new(e||t)(C(qs),C(Gn),C(Gt),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["compare-table"]],viewQuery:function(e,i){if(1&e&&Yt(Sf,5),2&e){let s;st(s=rt())&&(i.sort=s.first)}},inputs:{data:"data",type:"type",userKey:"userKey",sortKey:"sortKey",defaultColumns:"defaultColumns",mobileColumns:"mobileColumns",userNames:"userNames"},outputs:{onFilterChanges:"onFilterChanges"},features:[Je],decls:37,vars:5,consts:[["mat-table","","matSort","","matSortDirection","desc",1,"compare-table",3,"dataSource","matSortActive"],["matColumnDef","orderNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","thumbnail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","title"],["matColumnDef","scoreLeft"],["matColumnDef","scoreRight"],["matColumnDef","diff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngStyle",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["class","mat-row",4,"matNoDataRow"],["plannedIcon",""],["droppedIcon",""],["chips",""],["score",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell",""],[1,"anime-stats-table__image",3,"src"],[1,"anime-stats-table__name-row"],[1,"anime-stats-table__name-wrapper"],["target","_blank","rel","noopener noreferrer",1,"anime-stats-table__name",3,"href"],[1,"ellipsis"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-header-row",""],["mat-row","",3,"ngStyle"],["mat-footer-row","","class","compare-table-footer",4,"matFooterRowDef","matFooterRowDefSticky"],["mat-footer-row","",1,"compare-table-footer"],[1,"mat-row"],["colspan","6",1,"mat-cell","anime-stats-table__nothing-found"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-calendar2-plus"],["d","M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H2z"],["d","M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V4zM8 8a.5.5 0 0 1 .5.5V10H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V11H6a.5.5 0 0 1 0-1h1.5V8.5A.5.5 0 0 1 8 8z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-trash"],["d","M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"],["d","M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"],["class","compare-table__template-chip",4,"ngIf"],[1,"compare-table__template-chip"],[3,"templateMain","textTooltip"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(e,i){1&e&&(j(0,"table",0),Rn(1,1),ke(2,Eme,2,0,"th",2),ke(3,Tme,2,1,"td",3),ke(4,Ame,3,3,"td",4),Nn(),Rn(5,5),ke(6,kme,3,3,"th",6),ke(7,Ome,2,1,"td",3),ke(8,Ime,1,0,"td",4),Nn(),Rn(9,7),ke(10,Pme,3,3,"th",2),ke(11,Rme,6,6,"td",3),ke(12,Nme,1,0,"td",4),Nn(),Rn(13,8),ke(14,Fme,3,1,"th",2),ke(15,Lme,2,5,"td",3),ke(16,Bme,2,1,"td",4),Nn(),Rn(17,9),ke(18,Vme,3,1,"th",2),ke(19,Hme,2,5,"td",3),ke(20,jme,2,1,"td",4),Nn(),Rn(21,10),ke(22,zme,3,3,"th",2),ke(23,Gme,2,1,"td",3),ke(24,$me,2,1,"td",4),Nn(),ke(25,Ume,1,0,"tr",11),ke(26,Yme,1,3,"tr",12),ke(27,Xme,2,2,"ng-container",13),ke(28,Qme,4,3,"tr",14),z(),ke(29,Kme,4,0,"ng-template",null,15,Mn),ke(31,Jme,4,0,"ng-template",null,16,Mn),ke(33,i_e,2,2,"ng-template",null,17,Mn),ke(35,c_e,4,3,"ng-template",null,18,Mn)),2&e&&(ge("dataSource",i.dataSource)("matSortActive",i.sortKey),ae(25),ge("matHeaderRowDef",i.displayedColumns),ae(1),ge("matRowDefColumns",i.displayedColumns),ae(1),ge("ngIf","both"===i.userKey))},directives:[tM,Sf,K_,Q_,X_,oV,nM,iM,vn,oM,J_,Z3,Z_,aV,os,sM,rM,xl,$h,lV,cV,OC,Da,cd,b0],pipes:[Gn,Wa],styles:[".compare-table[_ngcontent-%COMP%]{width:100%;background-color:#ffffff1f}.compare-table-footer[_ngcontent-%COMP%]{background-color:#cac4ff}.compare-table__template-chip[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{overflow:hidden}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{padding-right:15px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:unset!important}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:180px}"],changeDetection:0}),t})();const u_e=function(t){return{nickname:t}};function h_e(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"mat-expansion-panel",6,7),nt("closed",function(){return Ot(e),Ie().updateAllValuesCheckbox()})("opened",function(){return Ot(e),Ie().updateAllValuesCheckbox()}),j(3,"mat-expansion-panel-header"),j(4,"div"),j(5,"mat-panel-title",8),j(6,"div"),$e(7),ct(8,"translate"),ct(9,"translate"),z(),z(),j(10,"mat-panel-description",9),j(11,"span"),$e(12),ct(13,"translate"),z(),z(),z(),z(),j(14,"compare-table",10),nt("onFilterChanges",function(s){const o=Ot(e).$implicit;return Ie().updateFilteredData(s,o)}),z(),z(),z()}if(2&t){const e=n.$implicit,i=Ie();ae(7),Mt("both"===e?vt(8,11,"IN_BOTH_LISTS"):Co(9,13,"ONLY_IN_LIST",bs(18,u_e,i.listsConfiguration[e].title))),ae(5),hl("",vt(13,16,"AMOUNT"),": ",null==i.listsConfiguration[e]||null==i.listsConfiguration[e].data?null:i.listsConfiguration[e].data.length,""),ae(2),ge("data",i.data)("type",i.type)("filter",i.filterValue)("sortKey",i.listsConfiguration[e].sortKey)("userKey",e)("userNames",i.listsConfiguration.userNames)("defaultColumns",i.listsConfiguration[e].fields.desktop)("mobileColumns",i.listsConfiguration[e].fields.mobile)}}let f_e=(()=>{class t extends f3{constructor(e,i){super(e),this.translatePipe=i,this.type="anime",this.singleTableFields=["orderNumber","title"],this.listsConfiguration={left:{data:[],fields:{mobile:[...this.singleTableFields,"scoreLeft"],desktop:[...this.singleTableFields,"scoreLeft"]},sortKey:"scoreLeft",title:"left"},right:{data:[],fields:{mobile:[...this.singleTableFields,"scoreRight"],desktop:[...this.singleTableFields,"scoreRight"]},sortKey:"scoreRight",title:"right"},both:{fields:{mobile:["orderNumber","title","scoreLeft","scoreRight","diff"],desktop:["orderNumber","title","scoreLeft","scoreRight","diff"]},sortKey:"diff",data:[]},userNames:["left","right"]},this.keysArr=["both","left","right"]}ngOnInit(){this.listsConfiguration.left.title=this.data.left.nickname,this.listsConfiguration.right.title=this.data.right.nickname,this.listsConfiguration.userNames[0]=this.data.left.nickname,this.listsConfiguration.userNames[1]=this.data.right.nickname}ngAfterViewInit(){this.keysArr.forEach((e,i)=>this.extensionPanelsMap.panels[e]=this.extensionPanels.get(i))}updateFilteredData(e,i){this.updateTableVisibility(0===e.length,i),this.listsConfiguration[i].data=e,this.cdr.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(Gn))},t.\u0275cmp=mt({type:t,selectors:[["compare-lists"]],inputs:{data:"data",type:"type"},features:[Je],decls:12,vars:11,consts:[[1,"d-flex","flex-column","mt-2"],[1,"compare-lists__filter"],["matInput","",3,"placeholder","keyup"],["input",""],["color","accent",1,"compare-lists__checkbox",3,"checked","change"],[4,"ngFor","ngForOf"],["expanded","true",1,"compare-lists-expansion",3,"closed","opened"],["extensionPanels",""],[1,"compare-lists-header"],[1,"compare-lists-description"],[3,"data","type","filter","sortKey","userKey","userNames","defaultColumns","mobileColumns","onFilterChanges"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"mat-form-field",1),j(2,"mat-label"),$e(3),ct(4,"translate"),z(),j(5,"input",2,3),nt("keyup",function(r){return i.applyFilter(r)}),ct(7,"translate"),z(),z(),j(8,"mat-checkbox",4),nt("change",function(r){return i.updateTableVisibility(r.checked)}),$e(9),ct(10,"translate"),z(),z(),ke(11,h_e,15,20,"div",5)),2&e&&(ae(3),Mt(vt(4,5,"Filter")),ae(2),yi("placeholder",vt(7,7,"EXAMPLE SEARCH")),ae(3),ge("checked",i.extensionPanelsMap.isAllExpanded),ae(1),Mt(vt(10,9,"SHOW_ALL_TABLES")),ae(2),ge("ngForOf",i.keysArr))},directives:[ef,Bd,u_,$C,oi,N_,F_,S3,D3,d_e],pipes:[Gn],styles:[".compare-lists-expansion{overflow:unset!important;background:transparent;box-shadow:unset!important;margin-bottom:20px!important}.compare-lists-header{font-weight:800;display:flex;flex:1 1 60%}.compare-lists-description{display:flex;flex:1}.compare-lists__filter{width:100%}@media (max-width: 900px){.compare-lists__filter{width:unset;margin:0 5px}}@media (max-width: 900px){.compare-lists__checkbox{margin:0 5px}}.mat-expansion-panel{overflow:unset!important}@media (max-width: 900px){.mat-expansion-panel-body{padding:0!important;overflow-x:auto!important}}\n"],encapsulation:2}),t})();const p_e=["errorConnection"],g_e=["progressConnection"],m_e=["establishedConnection"];function __e(t,n){1&t&&(Rn(0),je(1,"div",16),je(2,"img",17),ct(3,"translate"),Nn()),2&t&&(ae(2),yi("alt",vt(3,1,"LOADING")))}function y_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",23),nt("click",function(){Ot(e);const s=Ie().$implicit;return Ie(2).fetchCompareData(s)}),qn(2,24),j(3,"span",25),$e(4),z(),z(),Nn()}if(2&t){const e=Ie().$implicit,i=Ie(2);ae(2),ge("ngTemplateOutlet",i[e]),ae(2),Mt(i.errorMessage)}}function v_e(t,n){if(1&t&&(Rn(0),ke(1,y_e,5,2,"ng-container",2),Nn()),2&t){const e=n.$implicit,i=Ie(2);ae(1),ge("ngIf",i.connectionRefsConfig[e])}}const RV=function(){return{n:1}},NV=function(){return{n:2}};function b_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"mat-tab-group",18),j(2,"mat-tab",19),j(3,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"left")}),ct(4,"translate"),z(),z(),j(5,"mat-tab",21),j(6,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"right")}),ct(7,"translate"),z(),z(),z(),ke(8,v_e,2,1,"ng-container",22),Nn()}if(2&t){const e=Ie();ae(3),ge("label",Co(4,5,"USER_N",ki(11,RV)))("user",e.users.left),ae(3),ge("label",Co(7,8,"USER_N",ki(12,NV)))("user",e.users.right),ae(2),ge("ngForOf",e.objectKeys(e.connectionRefsConfig))}}function x_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",23),nt("click",function(){Ot(e);const s=Ie().$implicit;return Ie(2).fetchCompareData(s)}),qn(2,24),j(3,"span",25),$e(4),z(),z(),Nn()}if(2&t){const e=Ie().$implicit,i=Ie(2);ae(2),ge("ngTemplateOutlet",i[e]),ae(2),Mt(i.errorMessage)}}function w_e(t,n){if(1&t&&(Rn(0),ke(1,x_e,5,2,"ng-container",2),Nn()),2&t){const e=n.$implicit,i=Ie(2);ae(1),ge("ngIf",i.connectionRefsConfig[e])}}function C_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",26),j(2,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"left")}),ct(3,"translate"),z(),ke(4,w_e,2,1,"ng-container",22),j(5,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"right")}),ct(6,"translate"),z(),z(),Nn()}if(2&t){const e=Ie();ae(2),ge("label",Co(3,5,"USER_N",ki(11,RV)))("user",null==e.users?null:e.users.left),ae(2),ge("ngForOf",e.objectKeys(e.connectionRefsConfig)),ae(1),ge("label",Co(6,8,"USER_N",ki(12,NV)))("user",null==e.users?null:e.users.right)}}function M_e(t,n){1&t&&je(0,"compare-lists",34),2&t&&ge("data",Ie(2).someData)}function D_e(t,n){1&t&&je(0,"compare-lists",36),2&t&&ge("data",Ie(3).someData)("type","manga")}function S_e(t,n){1&t&&ke(0,D_e,1,2,"compare-lists",35),2&t&&ge("ngIf",!0===Ie(2).tabStatus[2])}const FV=function(){return["active"]};function E_e(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",27,28),nt("activeIdChange",function(s){return Ot(e),Ie().active=s})("navChange",function(s){return Ot(e),Ie().tabStatus[s.nextId]=!0}),j(3,"li",29),j(4,"a",30),$e(5),ct(6,"translate"),z(),ke(7,M_e,1,1,"ng-template",31),z(),j(8,"li",32),j(9,"a",30),$e(10),ct(11,"translate"),z(),ke(12,S_e,1,1,"ng-template",31),z(),z(),je(13,"div",33),z()}if(2&t){const e=Qt(2),i=Ie();ae(1),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLinkActive",ki(14,FV))("ngbNavItem",1)("destroyOnHide",!1),ae(2),Mt(vt(6,10,"ANIME")),ae(3),ge("routerLinkActive",ki(15,FV))("ngbNavItem",2),ae(2),Mt(vt(11,12,"MANGA")),ae(3),ge("ngbNavOutlet",e)}}function T_e(t,n){1&t&&(j(0,"div",37),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}function A_e(t,n){1&t&&(j(0,"div",41),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}function k_e(t,n){1&t&&(j(0,"div",42),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}const O_e=function(){return[!1,!0]},I_e=function(){return[!0,!1]},P_e=[{path:"anime",component:tfe},{path:"games",component:ofe},{path:"misc",component:rfe},{path:"anime/compare",component:(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.activatedRoute=i,this.animeService=s,this.cdr=r,this.translatePipe=o,this.objectKeys=Object.keys,this.connectionRefsConfig={errorConnection:!1,progressConnection:!0,establishedConnection:!1},this.users={},this.ids=[],this.isLoading=!1,this.isProcessed=!1,this.dataEmitter=new ot,this.tabStatus={},this.active=1}ngOnInit(){this.activatedRoute.queryParams.pipe(Bn(1)).subscribe(e=>{var i;this.ids=null===(i=null==e?void 0:e.ids)||void 0===i?void 0:i.split(",",2),this.ids&&(this.isLoading=!0,Et(this.ids).pipe(as(s=>So(s.map(o=>this.animeService.getUserData(o)))),$i(()=>Et([]))).subscribe(s=>{this.users.left=s[0],this.users.right=s[1],this.isLoading=!1}))})}ngAfterViewInit(){this.cdr.detectChanges()}userFetchProcess(e,i){var s,r;this.users[i]=e;const o=[null===(s=this.users.left)||void 0===s?void 0:s.id,null===(r=this.users.right)||void 0===r?void 0:r.id].filter(Boolean),a=o.length>0?{ids:o.join(",")}:{ids:null};this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:a,queryParamsHandling:"merge"}),(null==e?void 0:e.id)&&this.changeConnectionIcon("progressConnection")}changeConnectionIcon(e,i=null){this.isProcessed="establishedConnection"===e;for(let s of this.objectKeys(this.connectionRefsConfig))this.connectionRefsConfig[s]=s===e;this.errorMessage=i}fetchCompareData(e){if("establishedConnection"!==e)if(this.users.left&&this.users.right&&this.users.left.id!==this.users.right.id){this.changeConnectionIcon("progressConnection"),this.errorMessage=null;const i=[];Object.keys(this.users).forEach(s=>{const r=Ys.calculateTotalEntries(this.users[s].stats.full_statuses.anime),o=Ys.calculateTotalEntries(this.users[s].stats.full_statuses.manga);i.push(So([this.animeService.getDataTypeListGraphQLParallel(Oi.ANIME,r,{id:this.users[s].id}).pipe($i(()=>this.animeService.getAllAnimeList(this.users[s].id))),this.animeService.getDataTypeListGraphQLParallel(Oi.MANGA,o,{id:this.users[s].id}).pipe($i(()=>this.animeService.getAllMangaList(this.users[s].id)))]).pipe(g(a=>({type:s,data:a}))))}),this.isLoading=!0,i[0].pipe(Xo(s=>uf(Et(s),i[1])),$i(s=>{throw this.changeConnectionIcon("errorConnection",this.translatePipe.transform("DATA_LOADING_ERROR")),this.isLoading=!1,s})).subscribe(s=>{s?(s.forEach(r=>{this.users[r.type].userData={},this.users[r.type].userData[Oi.ANIME]=r.data[0],this.users[r.type].userData[Oi.MANGA]=r.data[1]}),this.someData=this.users,this.changeConnectionIcon("establishedConnection"),this.cdr.detectChanges(),this.dataEmitter.emit(this.users),this.isLoading=!1):this.changeConnectionIcon("errorConnection",this.translatePipe.transform("DATA_LOADING_ERROR"))})}else this.changeConnectionIcon("errorConnection",this.translatePipe.transform("USER_LOADING_ERROR"))}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),C(jh),C(Gt),C(Gn))},t.\u0275cmp=mt({type:t,selectors:[["app-compare"]],viewQuery:function(e,i){if(1&e&&(Yt(p_e,5),Yt(g_e,5),Yt(m_e,5)),2&e){let s;st(s=rt())&&(i.errorConnection=s.first),st(s=rt())&&(i.progressConnection=s.first),st(s=rt())&&(i.establishedConnection=s.first)}},decls:29,vars:18,consts:[[1,"bg"],[1,"compare__container"],[4,"ngIf"],[1,"compare__hint"],[1,"compare__hint-expansion"],[1,"compare__hint-text"],[1,"mr-2"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-question-circle"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"],[1,"compare__hint-description"],[3,"innerHTML"],[4,"appResponsiveTemplate"],["errorConnection",""],["progressConnection",""],["establishedConnection",""],[1,"compare__porco-background"],["src","/assets/porco-rosso-loading.gif","width","250",1,"compare__porco",3,"alt"],["mat-stretch-tabs","false","mat-align-tabs","start","animationDuration","0ms",1,"ml-2","mr-2"],["label","\u041f\u0435\u0440\u0432\u044b\u0439"],[1,"d-flex","flex-column","mt-2",3,"label","user","isLoading","userFetchEvent"],["label","\u0412\u0442\u043e\u0440\u043e\u0439"],[4,"ngFor","ngForOf"],[1,"compare__button",3,"click"],[3,"ngTemplateOutlet"],[1,"compare__error"],[1,"compare__user-inputs"],["ngbNav","",1,"compare__nav",3,"activeId","destroyOnHide","activeIdChange","navChange"],["nav","ngbNav"],[1,"compare__nav-item",3,"routerLinkActive","ngbNavItem","destroyOnHide"],["ngbNavLink",""],["ngbNavContent",""],[1,"compare__nav-item",3,"routerLinkActive","ngbNavItem"],[1,"mt-2",3,"ngbNavOutlet"],[3,"data"],[3,"data","type",4,"ngIf"],[3,"data","type"],[1,"compare__connection-error"],["viewBox","0 0 32 32",1,"compare__father-icon","compare__icon"],["width","64","height","64"],["viewBox","32 0 32 32",1,"compare__mother-icon","compare__icon"],[1,"compare__connection-connecting"],[1,"compare__connection-connected"]],template:function(e,i){1&e&&(je(0,"div",0),j(1,"div",1),ke(2,__e,4,3,"ng-container",2),j(3,"div",3),j(4,"mat-expansion-panel",4),j(5,"mat-expansion-panel-header"),j(6,"div",5),j(7,"span",6),$e(8),ct(9,"translate"),z(),pn(),j(10,"svg",7),je(11,"path",8),je(12,"path",9),z(),z(),z(),Ti(),j(13,"div",10),je(14,"span",11),ct(15,"translate"),je(16,"span",11),ct(17,"translate"),je(18,"span",11),ct(19,"translate"),z(),z(),z(),ke(20,b_e,9,13,"ng-container",12),ke(21,C_e,7,13,"ng-container",12),ke(22,E_e,14,16,"div",2),z(),ke(23,T_e,5,0,"ng-template",null,13,Mn),ke(25,A_e,5,0,"ng-template",null,14,Mn),ke(27,k_e,5,0,"ng-template",null,15,Mn)),2&e&&(ae(2),ge("ngIf",i.isLoading),ae(6),Mt(vt(9,8,"COMPARE_INSTRUCTIONS")),ae(6),ge("innerHTML",vt(15,10,"COMPARE_HINT_FILL1"),Ac),ae(2),ge("innerHTML",vt(17,12,"COMPARE_HINT_FILL2"),Ac),ae(2),ge("innerHTML",vt(19,14,"COMPARE_HINT_FILL3"),Ac),ae(2),ge("appResponsiveTemplate",ki(16,O_e)),ae(1),ge("appResponsiveTemplate",ki(17,I_e)),ae(1),ge("ngIf",i.isProcessed))},directives:[vn,N_,F_,T3,ype,j3,Ipe,oi,os,Yd,t1,Wd,bf,M_,D_,f_e],pipes:[Gn],styles:['a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}.bg[_ngcontent-%COMP%]{background:url(anime_bg_2.f2437f218610d2057371.webp);background-position:center;background-repeat:no-repeat;background-size:cover;position:fixed;height:100%;width:100%;top:0}.compare__nav[_ngcontent-%COMP%]{display:flex;justify-content:center}.compare__nav-item[_ngcontent-%COMP%]{font-weight:500}.compare__nav-item[_ngcontent-%COMP%]:hover, .compare__nav-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#7ff;text-shadow:-1px -1px 0 #00000085,1px -1px 0 #00000085,-1px 1px 0 #00000085,1px 1px 0 #00000085}.compare__hint[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:center;flex-direction:column;align-items:center;font-weight:800}.compare__hint-expansion[_ngcontent-%COMP%]{background-color:transparent}.compare__hint-description[_ngcontent-%COMP%]{display:flex;flex-direction:column}.compare__hint-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.compare__user-inputs[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;padding:30px;align-items:flex-start}.compare__container[_ngcontent-%COMP%]{clear:both;margin:0 auto;padding:15px 10px 0;position:relative;z-index:1;background:#a4bbd5;width:90%;min-height:100%;overflow:clip}@media (max-width: 900px){.compare__container[_ngcontent-%COMP%]{width:100%;padding:0}}.compare__error[_ngcontent-%COMP%]{color:red;font-weight:800}.compare__button[_ngcontent-%COMP%]{margin-top:auto;display:flex;margin-bottom:auto;flex-direction:column;align-items:center;justify-content:center;min-height:50px}.compare__porco[_ngcontent-%COMP%]{position:absolute;z-index:101;top:35%;left:35%;overflow:hidden;width:auto;height:35%;margin:-100px 0 0 -60px;animation:porco-flying 2.5s infinite ease-out,porco-soaring 2.5s infinite ease-out}@media (max-width: 900px){.compare__porco[_ngcontent-%COMP%]{left:25%;top:35%;height:35%}}.compare__porco-background[_ngcontent-%COMP%]{height:100%;width:100%;background:linear-gradient(66deg,#baccff,#5884ff);position:absolute;top:0;left:0;z-index:100}.compare__icon[_ngcontent-%COMP%]{width:32px;height:32px;fill:#4e1e9b;position:relative;left:0px}.compare__mother-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{clip-path:path("m 41,8 12,7 0,2 6,0 c 0,1.239583 0,2.760417 0,4 l -6,0 0,2 -12,7 -4,0 0,-3 2,0 0,-4 -2,0 c 0,-2.666667 0,-5.333333 0,-8 l 2,0 0,-4 -2,0 0,-3 z")}.compare__father-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{clip-path:path("m 23,8 -12,7 0,2 -6,0 c 0,1.239583 0,2.760417 0,4 l 6,0 0,2 12,7 4,0 0,-3 5,0 0,-4 -5,0 c 0,-2.666667 0,-5.333333 0,-8 l 5,0 0,-4 -5,0 0,-3 z")}.compare__connection-connecting[_ngcontent-%COMP%]:hover{cursor:pointer}.compare__connection-connecting[_ngcontent-%COMP%]:hover > .compare__mother-icon[_ngcontent-%COMP%]{animation:mother-connecting 1s;-moz-animation:mother-connecting 1s infinite;-webkit-animation:mother-connecting 1s infinite;fill:#a670ff}.compare__connection-connecting[_ngcontent-%COMP%]:hover > .compare__father-icon[_ngcontent-%COMP%]{animation:father-connecting 1s;-moz-animation:father-connecting 1s infinite;-webkit-animation:father-connecting 1s infinite;fill:#a670ff}.compare__connection-connected[_ngcontent-%COMP%] .compare__icon[_ngcontent-%COMP%]{fill:green}.compare__connection-connected.compare__mother-icon[_ngcontent-%COMP%]{left:-6px}.compare__connection-connected.compare__father-icon[_ngcontent-%COMP%]{left:6px}.compare__connection-error[_ngcontent-%COMP%] .compare__icon[_ngcontent-%COMP%]{fill:red}@keyframes porco-flying{50%{transform:translate(5px)}}@keyframes porco-soaring{50%{transform:translateY(60px)}}@keyframes mother-connecting{0%{left:0px}50%{left:-6px}to{left:0px}}@keyframes father-connecting{0%{left:0px}50%{left:6px}to{left:0px}}']}),t})()},{path:"",component:sfe}];let R_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[YI.forRoot(P_e,{paramsInheritanceStrategy:"always"})],YI]}),t})();function F_e(t){const n=this,{params:e,slidesEl:i}=n;e.loop&&n.loopDestroy();const s=r=>{if("string"==typeof r){const o=document.createElement("div");o.innerHTML=r,i.append(o.children[0]),o.innerHTML=""}else i.append(r)};if("object"==typeof t&&"length"in t)for(let r=0;r{if("string"==typeof a){const l=document.createElement("div");l.innerHTML=a,s.prepend(l.children[0]),l.innerHTML=""}else s.prepend(a)};if("object"==typeof t&&"length"in t){for(let a=0;a=a)return void e.appendSlide(n);let l=o>t?o+1:o;const c=[];for(let d=a-1;d>=t;d-=1){const u=e.slides[d];u.remove(),c.unshift(u)}if("object"==typeof n&&"length"in n){for(let d=0;dt?o+n.length:o}else r.append(n);for(let d=0;d=qe?(Pe-=qe,$||(ht+=t.slidesGrid[0])):L&&it{zt.style[lt]=ht-Math.abs(t.cssOverflowAdjustment())+"px"}),t.updateProgress(),void i("virtualUpdate");if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:ht,from:Pe,to:Ye,slides:function(){const En=[];for(let Vn=Pe;Vn<=Ye;Vn+=1)En.push(Be[Vn]);return En}()}),void(t.params.virtual.renderExternalUpdate?Ve():i("virtualUpdate"));const Qe=[],Ke=[],bt=zt=>{let En=zt;return zt<0?En=Be.length+zt:En>=Be.length&&(En-=Be.length),En};if(_)t.slidesEl.querySelectorAll(`.${t.params.slideClass}, swiper-slide`).forEach(zt=>{zt.remove()});else for(let zt=Te;zt<=Fe;zt+=1)if(ztYe){const En=bt(zt);t.slidesEl.querySelectorAll(`.${t.params.slideClass}[data-swiper-slide-index="${En}"], swiper-slide[data-swiper-slide-index="${En}"]`).forEach(Vn=>{Vn.remove()})}const ui=L?2*Be.length:Be.length;for(let zt=L?-Be.length:0;zt=Pe&&zt<=Ye){const En=bt(zt);void 0===Fe||_?Ke.push(En):(zt>Fe&&Ke.push(En),zt{t.slidesEl.append(a(Be[zt],zt))}),L)for(let zt=Qe.length-1;zt>=0;zt-=1){const En=Qe[zt];t.slidesEl.prepend(a(Be[En],En))}else Qe.sort((zt,En)=>En-zt),Qe.forEach(zt=>{t.slidesEl.prepend(a(Be[zt],zt))});Ls(t.slidesEl,".swiper-slide, swiper-slide").forEach(zt=>{zt.style[lt]=ht-Math.abs(t.cssOverflowAdjustment())+"px"}),Ve()}e("beforeInit",()=>{if(!t.params.virtual.enabled)return;let _;if(void 0===t.passedParams.virtual.slides){const T=[...t.slidesEl.children].filter(k=>k.matches(`.${t.params.slideClass}, swiper-slide`));T&&T.length&&(t.virtual.slides=[...T],_=!0,T.forEach((k,$)=>{k.setAttribute("data-swiper-slide-index",$),t.virtual.cache[$]=k,k.remove()}))}_||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,t.params.initialSlide||l()}),e("setTranslate",()=>{!t.params.virtual.enabled||(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{l()},100)):l())}),e("init update resize",()=>{!t.params.virtual.enabled||t.params.cssMode&&wf(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:function(_){if("object"==typeof _&&"length"in _)for(let T=0;T<_.length;T+=1)_[T]&&t.virtual.slides.push(_[T]);else t.virtual.slides.push(_);l(!0)},prependSlide:function(_){const T=t.activeIndex;let k=T+1,$=1;if(Array.isArray(_)){for(let L=0;L<_.length;L+=1)_[L]&&t.virtual.slides.unshift(_[L]);k=T+_.length,$=_.length}else t.virtual.slides.unshift(_);if(t.params.virtual.cache){const L=t.virtual.cache,J={};Object.keys(L).forEach(ue=>{const Te=L[ue],Fe=Te.getAttribute("data-swiper-slide-index");Fe&&Te.setAttribute("data-swiper-slide-index",parseInt(Fe,10)+$),J[parseInt(ue,10)+$]=Te}),t.virtual.cache=J}l(!0),t.slideTo(k,0)},removeSlide:function(_){if(null==_)return;let T=t.activeIndex;if(Array.isArray(_))for(let k=_.length-1;k>=0;k-=1)t.virtual.slides.splice(_[k],1),t.params.virtual.cache&&delete t.virtual.cache[_[k]],_[k]0&&0===tc(t.el,`.${t.params.slideActiveClass}`).length)return;const Fe=t.el,Be=Fe.clientWidth,Ue=Fe.clientHeight,He=r.innerWidth,it=r.innerHeight,lt=T_(Fe);d&&(lt.left-=Fe.scrollLeft);const Xe=[[lt.left,lt.top],[lt.left+Be,lt.top],[lt.left,lt.top+Ue],[lt.left+Be,lt.top+Ue]];for(let qe=0;qe=0&&Pe[0]<=He&&Pe[1]>=0&&Pe[1]<=it){if(0===Pe[0]&&0===Pe[1])continue;Te=!0}}if(!Te)return}t.isHorizontal()?((T||k||$||L)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),((k||L)&&!d||(T||$)&&d)&&t.slideNext(),((T||$)&&!d||(k||L)&&d)&&t.slidePrev()):((T||k||J||ue)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),(k||ue)&&t.slideNext(),(T||J)&&t.slidePrev()),i("keyPress",f)}}function a(){t.keyboard.enabled||(s.addEventListener("keydown",o),t.keyboard.enabled=!0)}function l(){!t.keyboard.enabled||(s.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),e("init",()=>{t.params.keyboard.enabled&&a()}),e("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:a,disable:l})},MC,SC,EC,function({swiper:t,extendParams:n,on:e,emit:i}){const s=Fs();let l,c,d,u,r=!1,o=null,a=null;function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:Xe,rtlTranslate:qe}=t,{dragEl:Pe,el:Ye}=Xe,ht=t.params.scrollbar;let Qe=c,Ke=(d-c)*(t.params.loop?t.progressLoop:t.progress);qe?(Ke=-Ke,Ke>0?(Qe=c-Ke,Ke=0):-Ke+c>d&&(Qe=d+Ke)):Ke<0?(Qe=c+Ke,Ke=0):Ke+c>d&&(Qe=d-Ke),t.isHorizontal()?(Pe.style.transform=`translate3d(${Ke}px, 0, 0)`,Pe.style.width=`${Qe}px`):(Pe.style.transform=`translate3d(0px, ${Ke}px, 0)`,Pe.style.height=`${Qe}px`),ht.hide&&(clearTimeout(o),Ye.style.opacity=1,o=setTimeout(()=>{Ye.style.opacity=0,Ye.style.transitionDuration="400ms"},1e3))}function T(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:Xe}=t,{dragEl:qe,el:Pe}=Xe;qe.style.width="",qe.style.height="",d=t.isHorizontal()?Pe.offsetWidth:Pe.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?d*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?qe.style.width=`${c}px`:qe.style.height=`${c}px`,Pe.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(Pe.style.opacity=0),t.params.watchOverflow&&t.enabled&&Xe.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function k(Xe){return t.isHorizontal()?Xe.clientX:Xe.clientY}function $(Xe){const{scrollbar:qe,rtlTranslate:Pe}=t,{el:Ye}=qe;let ht;ht=(k(Xe)-T_(Ye)[t.isHorizontal()?"left":"top"]-(null!==l?l:c/2))/(d-c),ht=Math.max(Math.min(ht,1),0),Pe&&(ht=1-ht);const Ve=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*ht;t.updateProgress(Ve),t.setTranslate(Ve),t.updateActiveIndex(),t.updateSlidesClasses()}function L(Xe){const qe=t.params.scrollbar,{scrollbar:Pe,wrapperEl:Ye}=t,{el:ht,dragEl:Ve}=Pe;r=!0,l=Xe.target===Ve?k(Xe)-Xe.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,Xe.preventDefault(),Xe.stopPropagation(),Ye.style.transitionDuration="100ms",Ve.style.transitionDuration="100ms",$(Xe),clearTimeout(a),ht.style.transitionDuration="0ms",qe.hide&&(ht.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",Xe)}function J(Xe){const{scrollbar:qe,wrapperEl:Pe}=t,{el:Ye,dragEl:ht}=qe;!r||(Xe.preventDefault?Xe.preventDefault():Xe.returnValue=!1,$(Xe),Pe.style.transitionDuration="0ms",Ye.style.transitionDuration="0ms",ht.style.transitionDuration="0ms",i("scrollbarDragMove",Xe))}function ue(Xe){const qe=t.params.scrollbar,{scrollbar:Pe,wrapperEl:Ye}=t,{el:ht}=Pe;!r||(r=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",Ye.style.transitionDuration=""),qe.hide&&(clearTimeout(a),a=Zl(()=>{ht.style.opacity=0,ht.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",Xe),qe.snapOnRelease&&t.slideToClosest())}function Te(Xe){const{scrollbar:qe,params:Pe}=t,Ye=qe.el;if(!Ye)return;const Ve=!!Pe.passiveListeners&&{passive:!1,capture:!1},Qe=!!Pe.passiveListeners&&{passive:!0,capture:!1};if(!Ye)return;const Ke="on"===Xe?"addEventListener":"removeEventListener";Ye[Ke]("pointerdown",L,Ve),s[Ke]("pointermove",J,Ve),s[Ke]("pointerup",ue,Qe)}function Ue(){const{scrollbar:Xe,el:qe}=t;t.params.scrollbar=DC(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const Pe=t.params.scrollbar;if(!Pe.el)return;let Ye,ht;"string"==typeof Pe.el&&t.isElement&&(Ye=t.el.shadowRoot.querySelector(Pe.el)),Ye||"string"!=typeof Pe.el?Ye||(Ye=Pe.el):Ye=s.querySelectorAll(Pe.el),t.params.uniqueNavElements&&"string"==typeof Pe.el&&Ye.length>1&&1===qe.querySelectorAll(Pe.el).length&&(Ye=qe.querySelector(Pe.el)),Ye.length>0&&(Ye=Ye[0]),Ye.classList.add(t.isHorizontal()?Pe.horizontalClass:Pe.verticalClass),Ye&&(ht=Ye.querySelector(`.${t.params.scrollbar.dragClass}`),ht||(ht=lo("div",t.params.scrollbar.dragClass),Ye.append(ht))),Object.assign(Xe,{el:Ye,dragEl:ht}),Pe.draggable&&(!t.params.scrollbar.el||!t.scrollbar.el||Te("on")),Ye&&Ye.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}function He(){const Xe=t.params.scrollbar,qe=t.scrollbar.el;qe&&qe.classList.remove(t.isHorizontal()?Xe.horizontalClass:Xe.verticalClass),!t.params.scrollbar.el||!t.scrollbar.el||Te("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},e("init",()=>{!1===t.params.scrollbar.enabled?lt():(Ue(),T(),f())}),e("update resize observerUpdate lock unlock",()=>{T()}),e("setTranslate",()=>{f()}),e("setTransition",(Xe,qe)=>{!function(Xe){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${Xe}ms`)}(qe)}),e("enable disable",()=>{const{el:Xe}=t.scrollbar;Xe&&Xe.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}),e("destroy",()=>{He()});const lt=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),He()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),Ue(),T(),f()},disable:lt,updateSize:T,setTranslate:f,init:Ue,destroy:He})},function({swiper:t,extendParams:n,on:e}){n({parallax:{enabled:!1}});const i=(o,a)=>{const{rtl:l}=t,c=l?-1:1,d=o.getAttribute("data-swiper-parallax")||"0";let u=o.getAttribute("data-swiper-parallax-x"),f=o.getAttribute("data-swiper-parallax-y");const _=o.getAttribute("data-swiper-parallax-scale"),T=o.getAttribute("data-swiper-parallax-opacity"),k=o.getAttribute("data-swiper-parallax-rotate");if(u||f?(u=u||"0",f=f||"0"):t.isHorizontal()?(u=d,f="0"):(f=d,u="0"),u=u.indexOf("%")>=0?parseInt(u,10)*a*c+"%":u*a*c+"px",f=f.indexOf("%")>=0?parseInt(f,10)*a+"%":f*a+"px",null!=T){const L=T-(T-1)*(1-Math.abs(a));o.style.opacity=L}let $=`translate3d(${u}, ${f}, 0px)`;null!=_&&($+=` scale(${_-(_-1)*(1-Math.abs(a))})`),k&&null!=k&&($+=` rotate(${k*a*-1}deg)`),o.style.transform=$},s=()=>{const{el:o,slides:a,progress:l,snapGrid:c}=t;Ls(o,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(d=>{i(d,l)}),a.forEach((d,u)=>{let f=d.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(f+=Math.ceil(u/2)-l*(c.length-1)),f=Math.min(Math.max(f,-1),1),d.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach(_=>{i(_,f)})})};e("beforeInit",()=>{!t.params.parallax.enabled||(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),e("init",()=>{!t.params.parallax.enabled||s()}),e("setTranslate",()=>{!t.params.parallax.enabled||s()}),e("setTransition",(o,a)=>{!t.params.parallax.enabled||((o=t.params.speed)=>{const{el:a}=t;a.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(l=>{let c=parseInt(l.getAttribute("data-swiper-parallax-duration"),10)||o;0===o&&(c=0),l.style.transitionDuration=`${c}ms`})})(a)})},function({swiper:t,extendParams:n,on:e,emit:i}){const s=Ri();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let a,l,r=1,o=!1;const c=[],d={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},u={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let _=1;function T(){return c.length<2?1:Math.sqrt((c[1].pageX-c[0].pageX)**2+(c[1].pageY-c[0].pageY)**2)}function L(Ve){return!!(Ve.target.matches(t.isElement?"swiper-slide":`.${t.params.slideClass}`)||t.slides.filter(Ke=>Ke.contains(Ve.target)).length>0)}function ue(Ve){if("mouse"===Ve.pointerType&&c.splice(0,c.length),!L(Ve))return;const Qe=t.params.zoom;if(a=!1,l=!1,c.push(Ve),!(c.length<2)){if(a=!0,d.scaleStart=T(),!d.slideEl){d.slideEl=Ve.target.closest(`.${t.params.slideClass}, swiper-slide`),d.slideEl||(d.slideEl=t.slides[t.activeIndex]);let Ke=d.slideEl.querySelector(`.${Qe.containerClass}`);if(Ke&&(Ke=Ke.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ke,d.imageWrapEl=Ke?tc(d.imageEl,`.${Qe.containerClass}`)[0]:void 0,!d.imageWrapEl)return void(d.imageEl=void 0);d.maxRatio=d.imageWrapEl.getAttribute("data-swiper-zoom")||Qe.maxRatio}if(d.imageEl){const[Ke,bt]=function(){if(c.length<2)return{x:null,y:null};const Ve=d.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-Ve.x)/r,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-Ve.y)/r]}();d.originX=Ke,d.originY=bt,d.imageEl.style.transitionDuration="0ms"}o=!0}}function Te(Ve){if(!L(Ve))return;const Qe=t.params.zoom,Ke=t.zoom,bt=c.findIndex(un=>un.pointerId===Ve.pointerId);bt>=0&&(c[bt]=Ve),!(c.length<2)&&(l=!0,d.scaleMove=T(),d.imageEl&&(Ke.scale=d.scaleMove/d.scaleStart*r,Ke.scale>d.maxRatio&&(Ke.scale=d.maxRatio-1+(Ke.scale-d.maxRatio+1)**.5),Ke.scaleun.pointerId===Ve.pointerId);bt>=0&&c.splice(bt,1),a&&l&&(a=!1,l=!1,d.imageEl&&(Ke.scale=Math.max(Math.min(Ke.scale,d.maxRatio),Qe.minRatio),d.imageEl.style.transitionDuration=`${t.params.speed}ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${Ke.scale})`,r=Ke.scale,o=!1,Ke.scale>1&&d.slideEl?d.slideEl.classList.add(`${Qe.zoomedSlideClass}`):Ke.scale<=1&&d.slideEl&&d.slideEl.classList.remove(`${Qe.zoomedSlideClass}`),1===Ke.scale&&(d.originX=0,d.originY=0,d.slideEl=void 0)))}function Ue(Ve){if(!L(Ve)||!function(Ve){const Qe=`.${t.params.zoom.containerClass}`;return!!(Ve.target.matches(Qe)||[...t.el.querySelectorAll(Qe)].filter(Ke=>Ke.contains(Ve.target)).length>0)}(Ve))return;const Qe=t.zoom;if(!d.imageEl||!u.isTouched||!d.slideEl)return;u.isMoved||(u.width=d.imageEl.offsetWidth,u.height=d.imageEl.offsetHeight,u.startX=fC(d.imageWrapEl,"x")||0,u.startY=fC(d.imageWrapEl,"y")||0,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight,d.imageWrapEl.style.transitionDuration="0ms");const Ke=u.width*Qe.scale,bt=u.height*Qe.scale;if(Ke0?c[0].pageX:Ve.pageX,u.touchesCurrent.y=c.length>0?c[0].pageY:Ve.pageY,Math.max(Math.abs(u.touchesCurrent.x-u.touchesStart.x),Math.abs(u.touchesCurrent.y-u.touchesStart.y))>5&&(t.allowClick=!1),!u.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(u.minX)===Math.floor(u.startX)&&u.touchesCurrent.xu.touchesStart.x))return void(u.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.yu.touchesStart.y))return void(u.isTouched=!1)}Ve.cancelable&&Ve.preventDefault(),Ve.stopPropagation(),u.isMoved=!0;const ui=(Qe.scale-r)/(d.maxRatio-t.params.zoom.minRatio),{originX:zt,originY:En}=d;u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX+ui*(u.width-2*zt),u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY+ui*(u.height-2*En),u.currentXu.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentYu.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=u.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=u.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(u.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(u.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(u.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(u.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=u.touchesCurrent.x,f.prevPositionY=u.touchesCurrent.y,f.prevTime=Date.now(),d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function it(){const Ve=t.zoom;d.slideEl&&t.activeIndex!==t.slides.indexOf(d.slideEl)&&(d.imageEl&&(d.imageEl.style.transform="translate3d(0,0,0) scale(1)"),d.imageWrapEl&&(d.imageWrapEl.style.transform="translate3d(0,0,0)"),d.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),Ve.scale=1,r=1,d.slideEl=void 0,d.imageEl=void 0,d.imageWrapEl=void 0,d.originX=0,d.originY=0)}function lt(Ve){const Qe=t.zoom,Ke=t.params.zoom;if(!d.slideEl){Ve&&Ve.target&&(d.slideEl=Ve.target.closest(`.${t.params.slideClass}, swiper-slide`)),d.slideEl||(d.slideEl=t.params.virtual&&t.params.virtual.enabled&&t.virtual?Ls(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:t.slides[t.activeIndex]);let Ff=d.slideEl.querySelector(`.${Ke.containerClass}`);Ff&&(Ff=Ff.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ff,d.imageWrapEl=Ff?tc(d.imageEl,`.${Ke.containerClass}`)[0]:void 0}if(!d.imageEl||!d.imageWrapEl)return;let bt,un,ui,zt,En,Vn,co,ps,Za,cc,No,ru,gy,my,EM,TM,AM,kM;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),d.slideEl.classList.add(`${Ke.zoomedSlideClass}`),void 0===u.touchesStart.x&&Ve?(bt=Ve.pageX,un=Ve.pageY):(bt=u.touchesStart.x,un=u.touchesStart.y);const Nf="number"==typeof Ve?Ve:null;1===r&&Nf&&(bt=void 0,un=void 0),Qe.scale=Nf||d.imageWrapEl.getAttribute("data-swiper-zoom")||Ke.maxRatio,r=Nf||d.imageWrapEl.getAttribute("data-swiper-zoom")||Ke.maxRatio,!Ve||1===r&&Nf?(co=0,ps=0):(AM=d.slideEl.offsetWidth,kM=d.slideEl.offsetHeight,ui=T_(d.slideEl).left+s.scrollX,zt=T_(d.slideEl).top+s.scrollY,En=ui+AM/2-bt,Vn=zt+kM/2-un,Za=d.imageEl.offsetWidth,cc=d.imageEl.offsetHeight,No=Za*Qe.scale,ru=cc*Qe.scale,gy=Math.min(AM/2-No/2,0),my=Math.min(kM/2-ru/2,0),EM=-gy,TM=-my,co=En*Qe.scale,ps=Vn*Qe.scale,coEM&&(co=EM),psTM&&(ps=TM)),Nf&&1===Qe.scale&&(d.originX=0,d.originY=0),d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform=`translate3d(${co}px, ${ps}px,0)`,d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform=`translate3d(0,0,0) scale(${Qe.scale})`}function Xe(){const Ve=t.zoom,Qe=t.params.zoom;if(!d.slideEl){d.slideEl=t.params.virtual&&t.params.virtual.enabled&&t.virtual?Ls(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:t.slides[t.activeIndex];let Ke=d.slideEl.querySelector(`.${Qe.containerClass}`);Ke&&(Ke=Ke.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ke,d.imageWrapEl=Ke?tc(d.imageEl,`.${Qe.containerClass}`)[0]:void 0}!d.imageEl||!d.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),Ve.scale=1,r=1,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform="translate3d(0,0,0)",d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform="translate3d(0,0,0) scale(1)",d.slideEl.classList.remove(`${Qe.zoomedSlideClass}`),d.slideEl=void 0,d.originX=0,d.originY=0)}function qe(Ve){const Qe=t.zoom;Qe.scale&&1!==Qe.scale?Xe():lt(Ve)}function Pe(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function Ye(){const Ve=t.zoom;if(Ve.enabled)return;Ve.enabled=!0;const{passiveListener:Qe,activeListenerWithCapture:Ke}=Pe();t.wrapperEl.addEventListener("pointerdown",ue,Qe),t.wrapperEl.addEventListener("pointermove",Te,Ke),["pointerup","pointercancel","pointerout"].forEach(bt=>{t.wrapperEl.addEventListener(bt,Fe,Qe)}),t.wrapperEl.addEventListener("pointermove",Ue,Ke)}function ht(){const Ve=t.zoom;if(!Ve.enabled)return;Ve.enabled=!1;const{passiveListener:Qe,activeListenerWithCapture:Ke}=Pe();t.wrapperEl.removeEventListener("pointerdown",ue,Qe),t.wrapperEl.removeEventListener("pointermove",Te,Ke),["pointerup","pointercancel","pointerout"].forEach(bt=>{t.wrapperEl.removeEventListener(bt,Fe,Qe)}),t.wrapperEl.removeEventListener("pointermove",Ue,Ke)}Object.defineProperty(t.zoom,"scale",{get:()=>_,set(Ve){_!==Ve&&i("zoomChange",Ve,d.imageEl,d.slideEl),_=Ve}}),e("init",()=>{t.params.zoom.enabled&&Ye()}),e("destroy",()=>{ht()}),e("touchStart",(Ve,Qe)=>{!t.zoom.enabled||function(Ve){if(!d.imageEl||u.isTouched)return;t.device.android&&Ve.cancelable&&Ve.preventDefault(),u.isTouched=!0;const Ke=c.length>0?c[0]:Ve;u.touchesStart.x=Ke.pageX,u.touchesStart.y=Ke.pageY}(Qe)}),e("touchEnd",(Ve,Qe)=>{!t.zoom.enabled||function(){const Ve=t.zoom;if(!d.imageEl)return;if(!u.isTouched||!u.isMoved)return u.isTouched=!1,void(u.isMoved=!1);u.isTouched=!1,u.isMoved=!1;let Qe=300,Ke=300;const un=u.currentX+f.x*Qe,zt=u.currentY+f.y*Ke;0!==f.x&&(Qe=Math.abs((un-u.currentX)/f.x)),0!==f.y&&(Ke=Math.abs((zt-u.currentY)/f.y));const En=Math.max(Qe,Ke);u.currentX=un,u.currentY=zt;const co=u.height*Ve.scale;u.minX=Math.min(d.slideWidth/2-u.width*Ve.scale/2,0),u.maxX=-u.minX,u.minY=Math.min(d.slideHeight/2-co/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),d.imageWrapEl.style.transitionDuration=`${En}ms`,d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}()}),e("doubleTap",(Ve,Qe)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&qe(Qe)}),e("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&it()}),e("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&it()}),Object.assign(t.zoom,{enable:Ye,disable:ht,in:lt,out:Xe,toggle:qe})},function({swiper:t,extendParams:n,on:e}){function i(l,c){const d=function(){let T,k,$;return(L,J)=>{for(k=-1,T=L.length;T-k>1;)$=T+k>>1,L[$]<=J?k=$:T=$;return T}}();let u,f;return this.x=l,this.y=c,this.lastIndex=l.length-1,this.interpolate=function(T){return T?(f=d(this.x,T),u=f-1,(T-this.x[u])*(this.y[f]-this.y[u])/(this.x[f]-this.x[u])+this.y[u]):0},this}function a(){!t.controller.control||t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},e("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){const l=document.querySelector(t.params.controller.control);if(l&&l.swiper)t.controller.control=l.swiper;else if(l){const c=d=>{t.controller.control=d.detail[0],t.update(),l.removeEventListener("init",c)};l.addEventListener("init",c)}}else t.controller.control=t.params.controller.control}),e("update",()=>{a()}),e("resize",()=>{a()}),e("observerUpdate",()=>{a()}),e("setTranslate",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(c,d)}),e("setTransition",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(c,d)}),Object.assign(t.controller,{setTranslate:function(l,c){const d=t.controller.control;let u,f;const _=t.constructor;function T(k){if(k.destroyed)return;const $=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(l){t.controller.spline=t.params.loop?new i(t.slidesGrid,l.slidesGrid):new i(t.snapGrid,l.snapGrid)}(k),f=-t.controller.spline.interpolate(-$)),(!f||"container"===t.params.controller.by)&&(u=(k.maxTranslate()-k.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(u)||!Number.isFinite(u))&&(u=1),f=($-t.minTranslate())*u+k.minTranslate()),t.params.controller.inverse&&(f=k.maxTranslate()-f),k.updateProgress(f),k.setTranslate(f,t),k.updateActiveIndex(),k.updateSlidesClasses()}if(Array.isArray(d))for(let k=0;k{T.updateAutoHeight()}),Mf(T.wrapperEl,()=>{!u||T.transitionEnd()})))}if(Array.isArray(u))for(f=0;ff.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=f=>{const _=Ri();let T;T=f?new URL(f):_.location;const k=T.pathname.slice(1).split("/").filter(ue=>""!==ue),$=k.length;return{key:k[$-2],value:k[$-1]}},a=(f,_)=>{const T=Ri();if(!i||!t.params.history.enabled)return;let k;k=t.params.url?new URL(t.params.url):T.location;let L=r(t.slides[_].getAttribute("data-history"));if(t.params.history.root.length>0){let ue=t.params.history.root;"/"===ue[ue.length-1]&&(ue=ue.slice(0,ue.length-1)),L=`${ue}/${f?`${f}/`:""}${L}`}else k.pathname.includes(f)||(L=`${f?`${f}/`:""}${L}`);t.params.history.keepQuery&&(L+=k.search);const J=T.history.state;J&&J.value===L||(t.params.history.replaceState?T.history.replaceState({value:L},null,L):T.history.pushState({value:L},null,L))},l=(f,_,T)=>{if(_)for(let k=0,$=t.slides.length;k<$;k+=1){const L=t.slides[k];if(r(L.getAttribute("data-history"))===_){const ue=t.getSlideIndex(L);t.slideTo(ue,f,T)}}else t.slideTo(0,f,T)},c=()=>{s=o(t.params.url),l(t.params.speed,s.value,!1)};e("init",()=>{t.params.history.enabled&&(()=>{const f=Ri();if(t.params.history){if(!f.history||!f.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);if(i=!0,s=o(t.params.url),!s.key&&!s.value)return void(t.params.history.replaceState||f.addEventListener("popstate",c));l(0,s.value,t.params.runCallbacksOnInit),t.params.history.replaceState||f.addEventListener("popstate",c)}})()}),e("destroy",()=>{t.params.history.enabled&&(()=>{const f=Ri();t.params.history.replaceState||f.removeEventListener("popstate",c)})()}),e("transitionEnd _freeModeNoMomentumRelease",()=>{i&&a(t.params.history.key,t.activeIndex)}),e("slideChange",()=>{i&&t.params.cssMode&&a(t.params.history.key,t.activeIndex)})},function({swiper:t,extendParams:n,emit:e,on:i}){let s=!1;const r=Fs(),o=Ri();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(u,f){if(t.virtual&&t.params.virtual.enabled){const _=t.slides.filter(k=>k.getAttribute("data-hash")===f)[0];return _?parseInt(_.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(Ls(t.slidesEl,`.${t.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});const a=()=>{e("hashChange");const u=r.location.hash.replace("#",""),f=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(u!==(f?f.getAttribute("data-hash"):"")){const T=t.params.hashNavigation.getSlideIndex(t,u);if(void 0===T||Number.isNaN(T))return;t.slideTo(T)}},l=()=>{if(!s||!t.params.hashNavigation.enabled)return;const u=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=u?u.getAttribute("data-hash")||u.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${f}`||""),e("hashSet")):(r.location.hash=f||"",e("hashSet"))};i("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;s=!0;const u=r.location.hash.replace("#","");if(u){const f=0,_=t.params.hashNavigation.getSlideIndex(t,u);t.slideTo(_||0,f,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&o.addEventListener("hashchange",a)})()}),i("destroy",()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&o.removeEventListener("hashchange",a)}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&l()}),i("slideChange",()=>{s&&t.params.cssMode&&l()})},AC,function({swiper:t,extendParams:n,on:e}){n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;function r(){const l=t.thumbs.swiper;if(!l||l.destroyed)return;const c=l.clickedIndex,d=l.clickedSlide;if(d&&d.classList.contains(t.params.thumbs.slideThumbActiveClass)||null==c)return;let u;u=l.params.loop?parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):c,t.params.loop?t.slideToLoop(u):t.slideTo(u)}function o(){const{thumbs:l}=t.params;if(i)return!1;i=!0;const c=t.constructor;if(l.swiper instanceof c)t.thumbs.swiper=l.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(xf(l.swiper)){const d=Object.assign({},l.swiper);Object.assign(d,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new c(d),s=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",r),!0}function a(l){const c=t.thumbs.swiper;if(!c||c.destroyed)return;const d="auto"===c.params.slidesPerView?c.slidesPerViewDynamic():c.params.slidesPerView;let u=1;const f=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(u=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),c.slides.forEach(k=>k.classList.remove(f)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let k=0;k{$.classList.add(f)});else for(let k=0;kue.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];$=c.slides.indexOf(J),L=t.activeIndex>t.previousIndex?"next":"prev"}else $=t.realIndex,L=$>t.previousIndex?"next":"prev";T&&($+="next"===L?_:-1*_),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf($)<0&&(c.params.centeredSlides&&($=$>k?$-Math.floor(d/2)+1:$+Math.floor(d/2)-1),c.slideTo($,l?0:void 0))}}t.thumbs={swiper:null},e("beforeInit",()=>{const{thumbs:l}=t.params;if(l&&l.swiper)if("string"==typeof l.swiper||l.swiper instanceof HTMLElement){const c=Fs(),d=()=>{const f="string"==typeof l.swiper?c.querySelector(l.swiper):l.swiper;if(f&&f.swiper)l.swiper=f.swiper,o(),a(!0);else if(f){const _=T=>{l.swiper=T.detail[0],f.removeEventListener("init",_),o(),a(!0),l.swiper.update(),t.update()};f.addEventListener("init",_)}return f},u=()=>{t.destroyed||d()||requestAnimationFrame(u)};requestAnimationFrame(u)}else o(),a(!0)}),e("slideChange update resize observerUpdate",()=>{a()}),e("setTransition",(l,c)=>{const d=t.thumbs.swiper;!d||d.destroyed||d.setTransition(c)}),e("beforeDestroy",()=>{const l=t.thumbs.swiper;!l||l.destroyed||s&&l.destroy()}),Object.assign(t.thumbs,{init:o,update:a})},function({swiper:t,extendParams:n,emit:e,once:i}){n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const a=t.getTranslate();t.setTranslate(a),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:a,touches:l}=t;0===a.velocities.length&&a.velocities.push({position:l[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:l[t.isHorizontal()?"currentX":"currentY"],time:Rr()})},onTouchEnd:function({currentPos:a}){if(t.params.cssMode)return;const{params:l,wrapperEl:c,rtlTranslate:d,snapGrid:u,touchEventsData:f}=t,T=Rr()-f.touchStartTime;if(a<-t.minTranslate())t.slideTo(t.activeIndex);else if(a>-t.maxTranslate())t.slideTo(t.slides.length1){const Be=f.velocities.pop(),Ue=f.velocities.pop(),it=Be.time-Ue.time;t.velocity=(Be.position-Ue.position)/it,t.velocity/=2,Math.abs(t.velocity)150||Rr()-Be.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=l.freeMode.momentumVelocityRatio,f.velocities.length=0;let k=1e3*l.freeMode.momentumRatio,L=t.translate+t.velocity*k;d&&(L=-L);let ue,J=!1;const Te=20*Math.abs(t.velocity)*l.freeMode.momentumBounceRatio;let Fe;if(Lt.minTranslate())l.freeMode.momentumBounce?(L-t.minTranslate()>Te&&(L=t.minTranslate()+Te),ue=t.minTranslate(),J=!0,f.allowMomentumBounce=!0):L=t.minTranslate(),l.loop&&l.centeredSlides&&(Fe=!0);else if(l.freeMode.sticky){let Be;for(let Ue=0;Ue-L){Be=Ue;break}L=Math.abs(u[Be]-L){t.loopFix()}),0!==t.velocity){if(k=d?Math.abs((-L-t.translate)/t.velocity):Math.abs((L-t.translate)/t.velocity),l.freeMode.sticky){const Be=Math.abs((d?-L:L)-t.translate),Ue=t.slidesSizesGrid[t.activeIndex];k=Be{!t||t.destroyed||!f.allowMomentumBounce||(e("momentumBounce"),t.setTransition(l.speed),setTimeout(()=>{t.setTranslate(ue),Mf(c,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(e("_freeModeNoMomentumRelease"),t.updateProgress(L),t.setTransition(k),t.setTranslate(L),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Mf(c,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(L),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(l.freeMode.sticky)return void t.slideToClosest();l.freeMode&&e("_freeModeNoMomentumRelease")}(!l.freeMode.momentum||T>=l.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:n}){let e,i,s;n({grid:{rows:1,fill:"column"}});const r=()=>{let c=t.params.spaceBetween;return"string"==typeof c&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:"string"==typeof c&&(c=parseFloat(c)),c};t.grid={initSlides:c=>{const{slidesPerView:d}=t.params,{rows:u,fill:f}=t.params.grid;s=Math.floor(c/u),e=Math.floor(c/u)===c/u?c:Math.ceil(c/u)*u,"auto"!==d&&"row"===f&&(e=Math.max(e,d*u)),i=e/u},updateSlide:(c,d,u,f)=>{const{slidesPerGroup:_}=t.params,T=r(),{rows:k,fill:$}=t.params.grid;let L,J,ue;if("row"===$&&_>1){const Te=Math.floor(c/(_*k)),Fe=c-k*_*Te,Be=0===Te?_:Math.min(Math.ceil((u-Te*k*_)/k),_);ue=Math.floor(Fe/Be),J=Fe-ue*Be+Te*_,L=J+ue*e/k,d.style.order=L}else"column"===$?(J=Math.floor(c/k),ue=c-J*k,(J>s||J===s&&ue===k-1)&&(ue+=1,ue>=k&&(ue=0,J+=1))):(ue=Math.floor(c/i),J=c-ue*i);d.row=ue,d.column=J,d.style[f("margin-top")]=0!==ue?T&&`${T}px`:""},updateWrapperSize:(c,d,u)=>{const{centeredSlides:f,roundLengths:_}=t.params,T=r(),{rows:k}=t.params.grid;if(t.virtualSize=(c+T)*e,t.virtualSize=Math.ceil(t.virtualSize/k)-T,t.wrapperEl.style[u("width")]=`${t.virtualSize+T}px`,f){const $=[];for(let L=0;L{const{slides:r}=t;for(let a=0;a{const o=t.slides.map(a=>ec(a));o.forEach(a=>{a.style.transitionDuration=`${r}ms`}),k_({swiper:t,duration:r,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:n,on:e}){n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(a,l,c)=>{let d=a.querySelector(c?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),u=a.querySelector(c?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");d||(d=lo("div","swiper-slide-shadow-"+(c?"left":"top")),a.append(d)),u||(u=lo("div","swiper-slide-shadow-"+(c?"right":"bottom")),a.append(u)),d&&(d.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};qd({effect:"cube",swiper:t,on:e,setTranslate:()=>{const{el:a,wrapperEl:l,slides:c,width:d,height:u,rtlTranslate:f,size:_,browser:T}=t,k=t.params.cubeEffect,$=t.isHorizontal(),L=t.virtual&&t.params.virtual.enabled;let ue,J=0;k.shadow&&($?(ue=t.slidesEl.querySelector(".swiper-cube-shadow"),ue||(ue=lo("div","swiper-cube-shadow"),t.slidesEl.append(ue)),ue.style.height=`${d}px`):(ue=a.querySelector(".swiper-cube-shadow"),ue||(ue=lo("div","swiper-cube-shadow"),a.append(ue))));for(let Fe=0;Fe-1&&(J=90*Ue+90*lt,f&&(J=90*-Ue-90*lt)),Be.style.transform=Ye,k.slideShadows&&i(Be,lt,$)}if(l.style.transformOrigin=`50% 50% -${_/2}px`,l.style["-webkit-transform-origin"]=`50% 50% -${_/2}px`,k.shadow)if($)ue.style.transform=`translate3d(0px, ${d/2+k.shadowOffset}px, ${-d/2}px) rotateX(90deg) rotateZ(0deg) scale(${k.shadowScale})`;else{const Fe=Math.abs(J)-90*Math.floor(Math.abs(J)/90),Be=1.5-(Math.sin(2*Fe*Math.PI/360)/2+Math.cos(2*Fe*Math.PI/360)/2),He=k.shadowScale/Be;ue.style.transform=`scale3d(${k.shadowScale}, 1, ${He}) translate3d(0px, ${u/2+k.shadowOffset}px, ${-u/2/He}px) rotateX(-90deg)`}const Te=(T.isSafari||T.isWebView)&&T.needPerspectiveFix?-_/2:0;l.style.transform=`translate3d(0px,0,${Te}px) rotateX(${t.isHorizontal()?0:J}deg) rotateY(${t.isHorizontal()?-J:0}deg)`,l.style.setProperty("--swiper-cube-translate-z",`${Te}px`)},setTransition:a=>{const{el:l,slides:c}=t;if(c.forEach(d=>{d.style.transitionDuration=`${a}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const d=l.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${a}ms`)}},recreateShadows:()=>{const a=t.isHorizontal();t.slides.forEach(l=>{const c=Math.max(Math.min(l.progress,1),-1);i(l,c,a)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:t,extendParams:n,on:e}){n({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(a,l,c)=>{let d=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),u=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");d||(d=Xd(0,a,t.isHorizontal()?"left":"top")),u||(u=Xd(0,a,t.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};qd({effect:"flip",swiper:t,on:e,setTranslate:()=>{const{slides:a,rtlTranslate:l}=t,c=t.params.flipEffect;for(let d=0;d{const l=t.slides.map(c=>ec(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${a}ms`})}),k_({swiper:t,duration:a,transformElements:l})},recreateShadows:()=>{t.slides.forEach(l=>{let c=l.progress;t.params.flipEffect.limitRotation&&(c=Math.max(Math.min(l.progress,1),-1)),i(l,c)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},kC,function({swiper:t,extendParams:n,on:e}){n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=o=>"string"==typeof o?o:`${o}px`;qd({effect:"creative",swiper:t,on:e,setTranslate:()=>{const{slides:o,wrapperEl:a,slidesSizesGrid:l}=t,c=t.params.creativeEffect,{progressMultiplier:d}=c,u=t.params.centeredSlides;u&&(a.style.transform=`translateX(calc(50% - ${l[0]/2-t.params.slidesOffsetBefore||0}px))`);for(let f=0;f0&&(Fe=c.prev,Te=!0),J.forEach((qe,Pe)=>{J[Pe]=`calc(${qe}px + (${i(Fe.translate[Pe])} * ${Math.abs(k*d)}))`}),ue.forEach((qe,Pe)=>{ue[Pe]=Fe.rotate[Pe]*Math.abs(k*d)}),_.style.zIndex=-Math.abs(Math.round(T))+o.length;const Be=J.join(", "),it=$<0?1+(1-Fe.opacity)*$*d:1-(1-Fe.opacity)*$*d,lt=`translate3d(${Be}) rotateX(${ue[0]}deg) rotateY(${ue[1]}deg) rotateZ(${ue[2]}deg) ${$<0?`scale(${1+(1-Fe.scale)*$*d})`:`scale(${1-(1-Fe.scale)*$*d})`}`;if(Te&&Fe.shadow||!Te){let qe=_.querySelector(".swiper-slide-shadow");!qe&&Fe.shadow&&(qe=Xd(0,_)),qe&&(qe.style.opacity=Math.min(Math.max(Math.abs(c.shadowPerProgress?k*(1/c.limitProgress):k),0),1))}const Xe=Df(0,_);Xe.style.transform=lt,Xe.style.opacity=it,Fe.origin&&(Xe.style.transformOrigin=Fe.origin)}},setTransition:o=>{const a=t.slides.map(l=>ec(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),k_({swiper:t,duration:o,transformElements:a,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:n,on:e}){n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),qd({effect:"cards",swiper:t,on:e,setTranslate:()=>{const{slides:r,activeIndex:o,rtlTranslate:a}=t,l=t.params.cardsEffect,{startTranslate:c,isTouched:d}=t.touchEventsData,u=a?-t.translate:t.translate;for(let f=0;f-1&&(d||t.params.cssMode)&&u>c;if((Ue===o||Ue===o-1)&&k>0&&k<1&&(d||t.params.cssMode)&&u0?`calc(${L}px ${a?"-":"+"} (-${Be*Math.abs(k)}%))`:`${L}px`,!t.isHorizontal()){const Pe=J;J=L,L=Pe}const Xe=`\n translate3d(${L}, ${J}, ${ue}px)\n rotateZ(${l.rotate?a?-Fe:Fe:0}deg)\n scale(${k<0?""+(1+(1-Te)*k):""+(1-(1-Te)*k)})\n `;if(l.slideShadows){let Pe=_.querySelector(".swiper-slide-shadow");Pe||(Pe=Xd(0,_)),Pe&&(Pe.style.opacity=Math.min(Math.max((Math.abs(k)-.5)/.5,0),1))}_.style.zIndex=-Math.abs(Math.round(T))+r.length,Df(0,_).style.transform=Xe}},setTransition:r=>{const o=t.slides.map(a=>ec(a));o.forEach(a=>{a.style.transitionDuration=`${r}ms`,a.querySelectorAll(".swiper-slide-shadow").forEach(l=>{l.style.transitionDuration=`${r}ms`})}),k_({swiper:t,duration:r,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];CC.use(z_e);const ty=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ny(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function iy(t,n){const e=["__proto__","constructor","prototype"];Object.keys(n).filter(i=>e.indexOf(i)<0).forEach(i=>{void 0===t[i]?t[i]=n[i]:ny(n[i])&&ny(t[i])&&Object.keys(n[i]).length>0?n[i].__swiper__?t[i]=n[i]:iy(t[i],n[i]):t[i]=n[i]})}function sy(t=""){return t.replace(/-[a-z]/g,n=>n.toUpperCase().replace("-",""))}const LV=t=>parseFloat(t)===Number(t)?Number(t):"true"===t||""===t||"false"!==t&&("null"===t?null:"undefined"!==t?t:void 0),BV=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function VV(t,n,e){const i={},s={};iy(i,bC);const r=[...ty,"on"],o=r.map(l=>l.replace(/_/,""));r.forEach(l=>{l=l.replace("_",""),void 0!==t[l]&&(s[l]=t[l])});const a=[...t.attributes];return"string"==typeof n&&void 0!==e&&a.push({name:n,value:e}),a.forEach(l=>{const c=BV.filter(d=>0===l.name.indexOf(`${d}-`))[0];if(c){const d=sy(c),u=sy(l.name.split(`${c}-`)[1]);void 0===s[d]&&(s[d]={}),!0===s[d]&&(s[d]={enabled:!0}),s[d][u]=LV(l.value)}else{const d=sy(l.name);if(!o.includes(d))return;const u=LV(l.value);s[d]&&BV.includes(l.name)?(s[d].constructor!==Object&&(s[d]={}),s[d].enabled=u):s[d]=u}}),iy(i,s),i.navigation?i.navigation=ca({prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},!0!==i.navigation?i.navigation:{}):!1===i.navigation&&delete i.navigation,i.scrollbar?i.scrollbar=ca({el:".swiper-scrollbar"},!0!==i.scrollbar?i.scrollbar:{}):!1===i.scrollbar&&delete i.scrollbar,i.pagination?i.pagination=ca({el:".swiper-pagination"},!0!==i.pagination?i.pagination:{}):!1===i.pagination&&delete i.pagination,{params:i,passedParams:s}}const Y_e="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}";let ry=!0;const hM=(t,n)=>{let e=document.querySelector("style#swiper-element-styles");const i=e&&e.preInit&&!t;!t&&n&&n.cssLinks().forEach(s=>{const r=document.createElement("link");r.rel="stylesheet",r.href=s,document.head.prepend(r)}),(!e||i)&&(e=e||document.createElement("style"),e.textContent=[Y_e,n?n.cssStyles():""].join("\n"),e.id="swiper-element-styles",e.preInit=t,document.head.prepend(e))},HV="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement;class jV extends HV{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}cssStyles(){return[ry?":root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}:host(.swiper-vertical)>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight swiper-slide{height:auto}:host(.swiper-autoheight) .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}:host(.swiper-3d.swiper-css-mode) .swiper-wrapper{perspective:1200px}:host(.swiper-3d) .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d swiper-slide{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}:host(.swiper-css-mode)>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host(.swiper-css-mode)>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>swiper-slide{scroll-snap-align:start start}:host(.swiper-horizontal.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:x mandatory}:host(.swiper-vertical.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:y mandatory}:host(.swiper-css-mode.swiper-free-mode)>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>swiper-slide{scroll-snap-align:none}:host(.swiper-centered)>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-horizontal)>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-vertical)>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}:host(.swiper-virtual.swiper-css-mode) .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}:host(.swiper-virtual.swiper-css-mode.swiper-horizontal) .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}:host(.swiper-virtual.swiper-css-mode.swiper-vertical) .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,:host(.swiper-rtl) .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-prev:after,:host(.swiper-rtl) .swiper-button-next:after{content:'prev'}.swiper-button-next,:host(.swiper-rtl) .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,:host(.swiper-rtl) .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}:host(.swiper-rtl) .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}:host(.swiper-free-mode)>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}:host(.swiper-grid)>.swiper-wrapper{flex-wrap:wrap}:host(.swiper-grid-column)>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode swiper-slide{transition-timing-function:ease-out}.swiper-fade swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade swiper-slide swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube swiper-slide swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube swiper-slide-next+swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip swiper-slide swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}":"",...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}render(){if(this.rendered)return;ry&&hM(!1,this);const n=this.cssStyles();n.length&&(this.stylesEl=document.createElement("style"),this.stylesEl.textContent=n,this.shadowEl.appendChild(this.stylesEl)),this.cssLinks().forEach(e=>{if(this.shadowEl.querySelector(`link[href="${e}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=e,this.shadowEl.appendChild(s)}),this.tempDiv.innerHTML=`\n \n
\n \n
\n \n ${function(t={}){return t.navigation&&void 0===t.navigation.nextEl&&void 0===t.navigation.prevEl}(this.passedParams)?'\n
\n
\n ':""}\n ${function(t={}){return t.pagination&&void 0===t.pagination.el}(this.passedParams)?'\n
\n ':""}\n ${function(t={}){return t.scrollbar&&void 0===t.scrollbar.el}(this.passedParams)?'\n
\n ':""}\n `,[...this.tempDiv.children].forEach(e=>{this.shadowEl.appendChild(e)}),this.rendered=!0}initialize(){if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:e}=VV(this);this.swiperParams=n,this.passedParams=e,delete this.swiperParams.init,this.render(),this.swiper=new CC(this,OM(ca(OM(ca({},n),{touchEventsTarget:"container"}),n.virtual?{}:{observer:!0}),{onAny:(i,...s)=>{const r=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase(),o=new CustomEvent(r,{detail:s,bubbles:!0,cancelable:!0});this.dispatchEvent(o)}}))}connectedCallback(){if(!(this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM)){if(!1===this.init||"false"===this.getAttribute("init"))return void hM(!0,this);this.initialize()}}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(n,e){const{params:i,passedParams:s}=VV(this,n,e);this.passedParams=s,this.swiperParams=i,function({swiper:t,slides:n,passedParams:e,changedParams:i,nextEl:s,prevEl:r,scrollbarEl:o,paginationEl:a}){const l=i.filter(He=>"children"!==He&&"direction"!==He&&"wrapperClass"!==He),{params:c,pagination:d,navigation:u,scrollbar:f,virtual:_,thumbs:T}=t;let k,$,L,J,ue,Te,Fe,Be;i.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(k=!0),i.includes("controller")&&e.controller&&e.controller.control&&c.controller&&!c.controller.control&&($=!0),i.includes("pagination")&&e.pagination&&(e.pagination.el||a)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(L=!0),i.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||o)&&(c.scrollbar||!1===c.scrollbar)&&f&&!f.el&&(J=!0),i.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||s)&&(c.navigation||!1===c.navigation)&&u&&!u.prevEl&&!u.nextEl&&(ue=!0);const Ue=He=>{!t[He]||(t[He].destroy(),"navigation"===He?(t.isElement&&(t[He].prevEl.remove(),t[He].nextEl.remove()),c[He].prevEl=void 0,c[He].nextEl=void 0,t[He].prevEl=void 0,t[He].nextEl=void 0):(t.isElement&&t[He].el.remove(),c[He].el=void 0,t[He].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!e.loop?Te=!0:!c.loop&&e.loop?Fe=!0:Be=!0),l.forEach(He=>{if(ny(c[He])&&ny(e[He]))iy(c[He],e[He]),("navigation"===He||"pagination"===He||"scrollbar"===He)&&"enabled"in e[He]&&!e[He].enabled&&Ue(He);else{const it=e[He];!0!==it&&!1!==it||"navigation"!==He&&"pagination"!==He&&"scrollbar"!==He?c[He]=e[He]:!1===it&&Ue(He)}}),l.includes("controller")&&!$&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&_&&c.virtual.enabled&&(_.slides=n,_.update(!0)),i.includes("children")&&n&&c.loop&&(Be=!0),k&&T.init()&&T.update(!0),$&&(t.controller.control=c.controller.control),L&&(t.isElement&&(!a||"string"==typeof a)&&((a=document.createElement("div")).classList.add("swiper-pagination"),t.el.shadowEl.appendChild(a)),a&&(c.pagination.el=a),d.init(),d.render(),d.update()),J&&(t.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-scrollbar"),t.el.shadowEl.appendChild(o)),o&&(c.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),ue&&(t.isElement&&((!s||"string"==typeof s)&&((s=document.createElement("div")).classList.add("swiper-button-next"),t.el.shadowEl.appendChild(s)),(!r||"string"==typeof r)&&((r=document.createElement("div")).classList.add("swiper-button-prev"),t.el.shadowEl.appendChild(r))),s&&(c.navigation.nextEl=s),r&&(c.navigation.prevEl=r),u.init(),u.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=e.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=e.allowSlidePrev),i.includes("direction")&&t.changeDirection(e.direction,!1),(Te||Be)&&t.loopDestroy(),(Fe||Be)&&t.loopCreate(),t.update()}(ca(ca(ca({swiper:this.swiper,passedParams:this.passedParams,changedParams:[sy(n)]},"navigation"===n&&s[n]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),"pagination"===n&&s[n]?{paginationEl:".swiper-pagination"}:{}),"scrollbar"===n&&s[n]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(n,e,i){!this.initialized||("true"===e&&null===i&&(i=!1),this.updateSwiperOnPropChange(n,i))}static get observedAttributes(){return ty.filter(e=>e.includes("_")).map(e=>e.replace(/[A-Z]/g,i=>`-${i}`).replace("_","").toLowerCase())}}ty.forEach(t=>{"init"!==t&&(t=t.replace("_",""),Object.defineProperty(jV.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(n){this.passedParams||(this.passedParams={}),this.passedParams[t]=n,this.initialized&&this.updateSwiperOnPropChange(t)}}))});class Q_e extends HV{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}render(){const n=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(this.tempDiv.innerHTML="",[...this.tempDiv.children].forEach(e=>{this.shadowEl.appendChild(e)}),n){const e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),this.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.initialize()}}"undefined"!=typeof window&&(window.SwiperElementRegisterParams=t=>{ty.push(...t)});const J_e=["mat-menu-item",""];function Z_e(t,n){1&t&&(pn(),j(0,"svg",2),je(1,"polygon",3),z())}const zV=["*"];function eye(t,n){if(1&t){const e=sn();j(0,"div",0),nt("keydown",function(s){return Ot(e),Ie()._handleKeydown(s)})("click",function(){return Ot(e),Ie().closed.emit("click")})("@transformMenu.start",function(s){return Ot(e),Ie()._onAnimationStart(s)})("@transformMenu.done",function(s){return Ot(e),Ie()._onAnimationDone(s)}),j(1,"div",1),jt(2),z(),z()}if(2&t){const e=Ie();ge("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),At("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const oy={transformMenu:Ns("transformMenu",[Wn("void",Jt({opacity:0,transform:"scale(0.8)"})),ni("void => enter",pi("120ms cubic-bezier(0, 0, 0.2, 1)",Jt({opacity:1,transform:"scale(1)"}))),ni("* => void",pi("100ms 25ms linear",Jt({opacity:0})))]),fadeInItems:Ns("fadeInItems",[Wn("showing",Jt({opacity:1})),ni("void => *",[Jt({opacity:0}),pi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},GV=new pt("MatMenuContent"),fM=new pt("MAT_MENU_PANEL"),nye=Po(Ir(class{}));let ay=(()=>{class t extends nye{constructor(e,i,s,r,o){super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=r,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new E,this._focused=new E,this._highlighted=!1,this._triggersSubmenu=!1,r&&r.addItem&&r.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,i;const s=this._elementRef.nativeElement.cloneNode(!0),r=s.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{constructor(e,i,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Mo,this._tabSubscription=fe.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new E,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ot,this.close=this.closed,this.panelId="mat-menu-panel-"+sye++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Vt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Vt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new km(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ai(this._directDescendantItems),as(e=>De(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ai(this._directDescendantItems),as(i=>De(...i.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,s=this._keyManager;switch(i){case 27:Ar(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&s.setFocusOrigin("keyboard"),s.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,i=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ai(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C($V))},t.\u0275dir=Le({type:t,contentQueries:function(e,i,s){if(1&e&&(Ft(s,GV,5),Ft(s,ay,5),Ft(s,ay,4)),2&e){let r;st(r=rt())&&(i.lazyContent=r.first),st(r=rt())&&(i._allItems=r),st(r=rt())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&Yt(on,5),2&e){let s;st(s=rt())&&(i.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),rye=(()=>{class t extends Of{constructor(e,i,s){super(e,i,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C($V))},t.\u0275cmp=mt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&At("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Dt([{provide:fM,useExisting:t}]),Je],ngContentSelectors:zV,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Cn(),ke(0,eye,3,6,"ng-template"))},directives:[Ma],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[oy.transformMenu,oy.fadeInItems]},changeDetection:0}),t})();const UV=new pt("mat-menu-scroll-strategy"),aye={provide:UV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},YV=Ll({passive:!0});let lye=(()=>{class t{constructor(e,i,s,r,o,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=s,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=fe.EMPTY,this._hoverSubscription=fe.EMPTY,this._menuCloseSubscription=fe.EMPTY,this._handleTouchStart=d=>{Vx(d)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new ot,this.onMenuOpen=this.menuOpened,this.menuClosed=new ot,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Of?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,YV),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,YV),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Of&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Of?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(mn(s=>"void"===s.toState),Bn(1),Tt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new cM({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[r,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[r,o],[c,d]=[i,s],u=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",s=c="end"===i?"start":"end",u="bottom"===r?8:-8):this.menu.overlapTrigger||(a="top"===r?"bottom":"top",l="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:r,offsetY:u},{originX:s,originY:a,overlayX:d,overlayY:r,offsetY:u},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-u},{originX:s,originY:l,overlayX:d,overlayY:o,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return De(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Et(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(mn(o=>o!==this._menuItemInstance),mn(()=>this._menuOpen)):Et(),i)}_handleMousedown(e){Bx(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(mn(e=>e===this._menuItemInstance&&!e.disabled),Zo(0,jC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Of&&this.menu._isAnimating?this.menu._animationDone.pipe(Bn(1),Zo(0,jC),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new rc(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Fn),C(UV),C(fM,8),C(ay,10),C(Bi,8),C(Js))},t.\u0275dir=Le({type:t,hostVars:3,hostBindings:function(e,i){1&e&&nt("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)})("click",function(r){return i._handleClick(r)}),2&e&&At("aria-haspopup",i._ariaHaspopup)("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),cye=(()=>{class t extends lye{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Je]}),t})(),dye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[aye],imports:[[ei,Sn,Ld,uM],oc,Sn]}),t})();function uye(t,n){if(1&t&&(j(0,"li",37),j(1,"a",38),$e(2),ct(3,"translate"),z(),z()),2&t){const e=n.$implicit,i=n.index;gt("active",Ie(3).active===i),ge("ngbNavItem",i)("destroyOnHide",!0),ae(1),ge("routerLink",e.route),ae(1),Mt(vt(3,6,e.title))}}function hye(t,n){if(1&t&&(j(0,"span",35),ke(1,uye,4,8,"li",36),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.headerRoutes)}}function fye(t,n){if(1&t&&(j(0,"span",39),$e(1),ct(2,"translate"),z()),2&t){const e=Ie(2);ae(1),$t("\u2022 ",vt(2,1,e.displayedText),"")}}const qV=function(){return[""]};function pye(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",9,10),nt("activeIdChange",function(s){return Ot(e),Ie().active=s}),j(3,"a",11),j(4,"span",12),$e(5,"B"),z(),j(6,"span",13),$e(7,"|"),z(),z(),ke(8,hye,2,1,"span",14),ke(9,fye,3,3,"span",15),j(10,"div",16),j(11,"button",17),pn(),j(12,"svg",18),je(13,"path",19),je(14,"path",20),z(),z(),Ti(),j(15,"button",21),j(16,"mat-icon"),$e(17,"more_vert"),z(),z(),j(18,"mat-menu",null,22),j(20,"button",23),j(21,"a",24),j(22,"span",25),pn(),j(23,"svg",26),je(24,"path",27),z(),z(),Ti(),j(25,"span"),$e(26,"LinkedIn"),z(),z(),z(),j(27,"button",23),j(28,"a",28),j(29,"span",25),pn(),j(30,"svg",29),je(31,"path",30),z(),z(),Ti(),j(32,"span"),$e(33,"Github"),z(),z(),z(),j(34,"button",23),j(35,"a",31),j(36,"span",25),pn(),j(37,"svg",32),je(38,"path",33),z(),z(),Ti(),j(39,"span"),$e(40,"Telegram"),z(),z(),z(),z(),z(),z(),je(41,"div",34),z()}if(2&t){const e=Qt(2),i=Qt(19),s=Ie(),r=Qt(3);ae(1),ge("activeId",s.active)("destroyOnHide",!1),ae(2),ge("routerLink",ki(8,qV)),ae(5),ge("ngIf",!(null!=s.displayedText&&s.displayedText.length)),ae(1),ge("ngIf",(null==s.displayedText?null:s.displayedText.length)>0),ae(2),ge("matMenuTriggerFor",r),ae(4),ge("matMenuTriggerFor",i),ae(26),ge("ngbNavOutlet",e)}}function gye(t,n){if(1&t&&(j(0,"li",37),j(1,"a",38),$e(2),ct(3,"translate"),z(),z()),2&t){const e=n.$implicit,i=n.index;gt("active",Ie(2).active===i),ge("ngbNavItem",i)("destroyOnHide",!0),ae(1),ge("routerLink",e.route),ae(1),Mt(vt(3,6,e.title))}}function mye(t,n){if(1&t&&(j(0,"span",39),$e(1),ct(2,"translate"),z()),2&t){const e=Ie(2);ae(1),$t("\u2022 ",vt(2,1,e.displayedText),"")}}function _ye(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",9,10),nt("activeIdChange",function(s){return Ot(e),Ie().active=s}),j(3,"a",11),j(4,"span",13),$e(5,"BABUNOV"),z(),j(6,"span",13),$e(7,"|"),z(),j(8,"span",40),$e(9,"HOBBIES"),z(),z(),j(10,"span",35),ke(11,gye,4,8,"li",36),z(),ke(12,mye,3,3,"span",15),j(13,"div",41),j(14,"button",17),pn(),j(15,"svg",42),je(16,"path",19),je(17,"path",20),z(),z(),Ti(),j(18,"div",13),$e(19,"|"),z(),j(20,"a",43),ct(21,"translate"),pn(),j(22,"svg",26),je(23,"path",27),z(),z(),Ti(),j(24,"a",44),ct(25,"translate"),pn(),j(26,"svg",29),je(27,"path",30),z(),z(),Ti(),j(28,"a",45),ct(29,"translate"),pn(),j(30,"svg",32),je(31,"path",33),z(),z(),z(),z(),Ti(),je(32,"div",34),z()}if(2&t){const e=Qt(2),i=Ie(),s=Qt(3);ae(1),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLink",ki(16,qV)),ae(8),ge("ngForOf",i.headerRoutes),ae(1),ge("ngIf",(null==i.displayedText?null:i.displayedText.length)>0),ae(2),ge("matMenuTriggerFor",s),ae(6),yi("ngbTooltip",vt(21,10,"LINKED_IN")),ae(4),yi("ngbTooltip",vt(25,12,"GITHUB")),ae(4),yi("ngbTooltip",vt(29,14,"TELEGRAM")),ae(4),ge("ngbNavOutlet",e)}}function yye(t,n){1&t&&qn(0)}function vye(t,n){1&t&&qn(0)}function bye(t,n){1&t&&(pn(),j(0,"svg",46),je(1,"path",47),z())}const xye=function(){return[!1,!0]},wye=function(){return[!0,!1]},Cye=function(t){return{"header__flags-selected":t}};let Mye=(()=>{class t{constructor(e,i,s){this.router=e,this.translateService=i,this.responsive=s,this.active=1,this.headerRoutes=[{route:"/anime",title:"Anime"},{route:"/games",title:"Games"}],this.utilityRoutes=[{route:"/anime/compare",title:"Comparator"},{route:"/anime/recommendations",title:"Recommendations"}],this.selectedLanguage="en"}ngOnInit(){this.router.events.subscribe(e=>{var i;e instanceof Cl&&(this.active=this.headerRoutes.findIndex(s=>{var r;return null===(r=e.url)||void 0===r?void 0:r.includes(s.route)}),this.displayedText=null===(i=this.utilityRoutes.find(s=>{var r;return null===(r=e.url)||void 0===r?void 0:r.includes(s.route)}))||void 0===i?void 0:i.title)}),this.translateService.localeChange.subscribe(()=>{this.selectedLanguage=this.translateService.getLanguage()})}localize(e){this.translateService.use(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(qs),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-header"]],decls:18,vars:17,consts:[[4,"appResponsiveTemplate"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"me-2","header__flags-icon",3,"src"],[1,"me-2","header__flags-icon"],[4,"ngTemplateOutlet"],["mat-menu-item","",3,"ngClass","click"],["class","header__flags-check"],["check",""],["ngbNav","",1,"nav-tabs","header__nav",3,"activeId","destroyOnHide","activeIdChange"],["nav","ngbNav"],[1,"header__logo-wrapper",3,"routerLink"],[1,"header__logo-mobile"],[1,"header__logo"],["class","header__list",4,"ngIf"],["class","header__utility-text",4,"ngIf"],[1,"header__socials-mobile"],[1,"header__socials-icon",3,"matMenuTriggerFor"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-translate"],["d","M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"],["d","M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSolicals","matMenu"],["mat-menu-item",""],["href","https://www.linkedin.com/in/ilya-babunov-a57795227/","target","_blank","rel","noopener noreferrer"],[1,"header__socials-icon"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-linkedin"],["d","M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"],["href","https://github.com/McFck/mcfck.github.io","target","_blank","rel","noopener noreferrer"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-github"],["d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"],["href","https://t.me/IlyaIsMyName","target","_blank","rel","noopener noreferrer"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-telegram"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"],[3,"ngbNavOutlet"],[1,"header__list"],[3,"active","ngbNavItem","destroyOnHide",4,"ngFor","ngForOf"],[3,"ngbNavItem","destroyOnHide"],["ngbNavLink","",3,"routerLink"],[1,"header__utility-text"],[1,"header__logo-sub"],[1,"header__socials"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-translate"],["href","https://www.linkedin.com/in/ilya-babunov-a57795227/","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["href","https://github.com/McFck/mcfck.github.io","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["href","https://t.me/IlyaIsMyName","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-check2"],["d","M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"]],template:function(e,i){if(1&e&&(ke(0,pye,42,9,"div",0),ke(1,_ye,33,17,"div",0),j(2,"mat-menu",null,1),j(4,"button",2),nt("click",function(){return i.localize("ru")}),je(5,"img",3),j(6,"span",4),$e(7),ct(8,"translate"),z(),ke(9,yye,1,0,"ng-container",5),z(),j(10,"button",6),nt("click",function(){return i.localize("en")}),je(11,"img",3),j(12,"span",4),$e(13),ct(14,"translate"),z(),ke(15,vye,1,0,"ng-container",5),z(),z(),ke(16,bye,2,0,"ng-template",7,8,Mn)),2&e){const s=Qt(17);ge("appResponsiveTemplate",ki(13,xye)),ae(1),ge("appResponsiveTemplate",ki(14,wye)),ae(4),ge("src","https://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Russia.svg",_i),ae(2),Mt(vt(8,9,"RU")),ae(2),ge("ngTemplateOutlet","ru"==i.selectedLanguage&&s),ae(1),ge("ngClass",bs(15,Cye,"en"==i.selectedLanguage)),ae(1),ge("src","https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg",_i),ae(2),Mt(vt(14,11,"EN")),ae(2),ge("ngTemplateOutlet","en"==i.selectedLanguage&&s)}},directives:[T3,rye,ay,os,Ma,Ax,Yd,Ch,vn,cye,Zh,XB,D_,oi,Wd,bf,cC],pipes:[Gn],styles:['.header__localization-menu{background-color:#d9d9d9}.header__utility-text[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;font-weight:700;font-size:large}.header__flags-icon[_ngcontent-%COMP%]{width:25px;margin-left:5px}.header__flags-check[_ngcontent-%COMP%]{margin-left:3px}.header__socials[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;margin-right:55px}.header__socials-mobile[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;margin-right:20px}.header__socials-icon[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;background:transparent;border:none}.header__list[_ngcontent-%COMP%]{margin-left:5px}.header__logo[_ngcontent-%COMP%], .header__logo-sub[_ngcontent-%COMP%]{font-weight:bold;font-size:2.1em;margin-left:5px}.header__logo-mobile[_ngcontent-%COMP%]{font-weight:bold;font-size:2.1em;margin-left:10px;margin-right:5px}.header__logo-wrapper[_ngcontent-%COMP%]{display:flex;cursor:pointer}.header__logo-sub[_ngcontent-%COMP%]{font-size:1.3em;margin-top:5px}.header__nav[_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.063em;font-size:.75em;background-color:#fff5f9}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}li[_ngcontent-%COMP%]:not(.active).nav-item:after{display:block;content:"";border-bottom:solid 5px #019fb6;transform:scaleX(0);transition:transform .25s ease-in-out;transform-origin:0% 50%}li[_ngcontent-%COMP%]:not(.active).nav-item{color:#666;display:inline-block;margin:.2px;text-transform:uppercase}li[_ngcontent-%COMP%]:not(.active).nav-item:hover:after{transform:scaleX(1)}li.nav-item[_ngcontent-%COMP%]:not(.active), li.nav-item.active[_ngcontent-%COMP%]{color:#666;background-color:#fff5f9;display:inline-block;margin:.2px;text-transform:uppercase}li.nav-item[_ngcontent-%COMP%]:not(.active):hover, li.nav-item.active[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.1)}ul.header__nav.nav[_ngcontent-%COMP%]{display:flex;position:relative;z-index:1000}li.nav-item[_ngcontent-%COMP%]{display:inline-block}.nav-link[_ngcontent-%COMP%], .nav-link.active[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.nav-link.active[_ngcontent-%COMP%]{background-color:#fff5f9;border-bottom:solid 5px #019fb6}.nav-tabs[_ngcontent-%COMP%]{border-bottom:unset}']}),t})(),Dye=(()=>{class t{constructor(e,i,s,r){this.router=e,this.translationService=i,this.translationPipe=s,this.titleService=r,this.title="personal",((t=!0)=>{"undefined"!=typeof window&&(t||(ry=!1),ry&&hM(!0),window.customElements.get("swiper-container")||window.customElements.define("swiper-container",jV),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Q_e))})()}ngOnInit(){setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),this.translationService.localeChange.pipe(Mm(1)).subscribe(()=>{setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),localStorage.setItem("locale",this.translationService.getLanguage())}),this.router.events.pipe(mn(e=>e instanceof Cl)).subscribe(e=>{if(setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),localStorage.getItem("locale"))this.translationService.use(localStorage.getItem("locale"));else{const i=navigator.language.slice(0,2);yQ.includes(i)&&this.translationService.use(i)&&localStorage.setItem("locale",i)}})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(qs),C(Gn),C($O))},t.\u0275cmp=mt({type:t,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"main"]],template:function(e,i){1&e&&(je(0,"app-header"),j(1,"main",0),je(2,"router-outlet"),z())},directives:[Mye,n1],styles:[".container[_ngcontent-%COMP%]{width:100vw;height:100%}.main[_ngcontent-%COMP%]{height:calc(100% - 40.38px)}"]}),t})(),XV=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","name",""]],inputs:{name:"name"}}),t})();function Sye(t,n){1&t&&(j(0,"th",18),$e(1," # "),z())}function Eye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.index,i=Ie();ae(1),$t(" ",0==i.paginator.pageIndex?e+1:1+e+i.paginator.pageIndex*i.paginator.pageSize," ")}}function Tye(t,n){1&t&&(j(0,"th",20),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Thumbnail")," "))}function Aye(t,n){if(1&t&&(j(0,"td",19),je(1,"img",21),z()),2&t){const e=n.$implicit;ae(1),ge("src",e.thumbnail,_i)}}function kye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Name")," "))}function Oye(t,n){1&t&&(j(0,"div",27),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"ONGOING")," "))}function Iye(t,n){if(1&t&&(j(0,"div"),$e(1),z()),2&t){const e=Ie().$implicit;ae(1),$t(" ",e.icon," ")}}function Pye(t,n){1&t&&qn(0)}function Rye(t,n){if(1&t&&(j(0,"div"),ke(1,Pye,1,0,"ng-container",32),z()),2&t){const e=Ie().$implicit;ae(1),ge("ngTemplateOutlet",e.templateRef)}}function Nye(t,n){if(1&t&&(j(0,"span",30),ct(1,"translate"),ke(2,Iye,2,1,"div",31),ke(3,Rye,2,1,"div",31),z()),2&t){const e=n.$implicit;ge("ngbTooltip",vt(1,3,e.name)),ae(2),ge("ngIf",!e.template),ae(1),ge("ngIf",e.template)}}function Fye(t,n){if(1&t&&(j(0,"div",28),ke(1,Nye,4,5,"span",29),z()),2&t){const e=Ie().$implicit;ae(1),ge("ngForOf",e.badge)}}function Lye(t,n){if(1&t&&(j(0,"td",19),j(1,"div",22),j(2,"span",23),j(3,"a",24),ct(4,"languageContent"),$e(5),z(),ke(6,Oye,3,3,"div",25),ke(7,Fye,2,1,"div",26),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(3),yi("href",ml(4,4,e.url,"ru",e.malUrl),_i),ae(2),$t(" ",e[i.titleFieldName]," "),ae(1),ge("ngIf","ongoing"===e.status),ae(1),ge("ngIf",!i.isSimplifiedView)}}function Bye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Score")," "))}function Vye(t,n){if(1&t&&(j(0,"td",19),$e(1),ct(2,"translate"),z()),2&t){const e=n.$implicit;ae(1),$t(" ",void 0===e.score?vt(2,1,"NOT RATED"):e.score," ")}}function Hye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Episodes")," "))}function jye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),hl(" ",e.episodesWatched," / ",0===e.episodes?"?":e.episodes," ")}}function zye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Chapters")," "))}function Gye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),hl(" ",e.chaptersRead," / ",0===e.chapters?"?":e.chapters," ")}}function $ye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Kind")," "))}function Uye(t,n){if(1&t&&(j(0,"td",19),$e(1),ct(2,"translate"),z()),2&t){const e=n.$implicit;ae(1),$t(" ",vt(2,1,e.kind)," ")}}function Wye(t,n){1&t&&je(0,"th",18)}function Yye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),$t(" ",e.updatedAt," ")}}function qye(t,n){1&t&&je(0,"tr",33)}function Xye(t,n){if(1&t&&je(0,"tr",34),2&t){const e=n.$implicit;gt("anime-stats-table__gold",10===e.score)("anime-stats-table__silver",9===e.score)("anime-stats-table__bronze",8===e.score)}}function Qye(t,n){1&t&&(j(0,"tr",35),j(1,"td",36),$e(2),ct(3,"translate"),z(),z()),2&t&&(ae(2),Mt(vt(3,1,"NOTHING FOUND")))}function Kye(t,n){1&t&&(pn(),j(0,"svg",37),j(1,"mask",38),je(2,"rect",39),z(),j(3,"g",40),je(4,"path",41),j(5,"mask",42),je(6,"path",43),z(),j(7,"g",44),je(8,"path",45),z(),z(),z())}const Jye=function(){return[30,60,100]};let Zye=(()=>{class t extends IV{constructor(e,i,s,r){super(i,s,e,r),this.defaultSort="score",this.onFilterChanges=new ot,this.defaultColumns=["orderNumber","thumbnail","name","score","episodes","kind"],this.mobileColumns=["orderNumber","name","score"],this.displayedColumns=[...this.defaultColumns],this.titleFieldName="name",this.isSimplifiedView=!1}ngOnInit(){this.isAnime||(this.defaultColumns=["orderNumber","thumbnail","name","score","chapters","kind"],this.displayedColumns=[...this.defaultColumns]),this.onInitRoutine()}ngAfterViewInit(){this.tableData.forEach(e=>{var i;e.badge=[],null===(i=e.text)||void 0===i||i.split(", ").forEach(s=>{if(ZI[s]){let o=ZI[s];o.name=s,o&&(o.template&&(o.templateRef=this.getTemplateRefByName(o.icon)),e.badge.push(o))}})}),this.dataSource=new aM(this.tableData),this.afterViewInitRoutine(),this.cdr.detectChanges()}getTemplateRefByName(e){const i=this._templates.find(s=>s.name===e);return i?i.template:null}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}sortReset(e){!e.direction&&e.active!==this.defaultSort&&(this.sort.active=this.defaultSort,this.sort.direction="desc")}}return t.\u0275fac=function(e){return new(e||t)(C(qs),C(Gt),C(Gn),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-table"]],viewQuery:function(e,i){if(1&e&&Yt(XV,5),2&e){let s;st(s=rt())&&(i._templates=s)}},inputs:{tableData:"tableData",isAnime:"isAnime",defaultSort:"defaultSort"},outputs:{onFilterChanges:"onFilterChanges"},features:[Je],decls:31,vars:7,consts:[[1,"mat-elevation-z8"],["mat-table","","matSort","","matSortDirection","desc",1,"anime-stats-table__table",3,"dataSource","matSortActive","matSortChange"],["matColumnDef","orderNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","thumbnail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","score"],["matColumnDef","episodes"],["matColumnDef","chapters"],["matColumnDef","kind"],["matColumnDef","updatedAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"anime-stats-table__gold","anime-stats-table__silver","anime-stats-table__bronze",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["aria-label","Select page of",1,"anime-stats-table__paginator",3,"pageSize","pageSizeOptions"],["class","anime-stats-table__emoji","name","japan"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"anime-stats-table__image",3,"src"],[1,"anime-stats-table__name-row"],[1,"anime-stats-table__name-wrapper"],["target","_blank","rel","noopener noreferrer",1,"anime-stats-table__name",3,"href"],["class","anime-stats-table__ongoing",4,"ngIf"],["class","anime-stats-table__emoji-wrapper",4,"ngIf"],[1,"anime-stats-table__ongoing"],[1,"anime-stats-table__emoji-wrapper"],["class","anime-stats-table__emoji",3,"ngbTooltip",4,"ngFor","ngForOf"],[1,"anime-stats-table__emoji",3,"ngbTooltip"],[4,"ngIf"],[4,"ngTemplateOutlet"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],["colspan","6",1,"mat-cell","anime-stats-table__nothing-found"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["id","mask0_270_60913","maskUnits","userSpaceOnUse","x","0","y","0","width","20","height","15",2,"mask-type","luminance"],["width","20","height","15","fill","white"],["mask","url(#mask0_270_60913)"],["fill-rule","evenodd","clip-rule","evenodd","d","M0 0V15H20V0H0Z","fill","#F7FCFF"],["id","mask1_270_60913","maskUnits","userSpaceOnUse","x","0","y","0","width","20","height","15",2,"mask-type","luminance"],["fill-rule","evenodd","clip-rule","evenodd","d","M0 0V15H20V0H0Z","fill","white"],["mask","url(#mask1_270_60913)"],["fill-rule","evenodd","clip-rule","evenodd","d","M10 12.1875C12.5888 12.1875 14.6875 10.0888 14.6875 7.5C14.6875 4.91117 12.5888 2.8125 10 2.8125C7.41117 2.8125 5.3125 4.91117 5.3125 7.5C5.3125 10.0888 7.41117 12.1875 10 12.1875Z","fill","#E31D1C"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"table",1),nt("matSortChange",function(r){return i.sortReset(r)}),Rn(2,2),ke(3,Sye,2,0,"th",3),ke(4,Eye,2,1,"td",4),Nn(),Rn(5,5),ke(6,Tye,3,3,"th",6),ke(7,Aye,2,1,"td",4),Nn(),Rn(8,7),ke(9,kye,3,3,"th",3),ke(10,Lye,8,8,"td",4),Nn(),Rn(11,8),ke(12,Bye,3,3,"th",3),ke(13,Vye,3,3,"td",4),Nn(),Rn(14,9),ke(15,Hye,3,3,"th",3),ke(16,jye,2,2,"td",4),Nn(),Rn(17,10),ke(18,zye,3,3,"th",3),ke(19,Gye,2,2,"td",4),Nn(),Rn(20,11),ke(21,$ye,3,3,"th",3),ke(22,Uye,3,3,"td",4),Nn(),Rn(23,12),ke(24,Wye,1,0,"th",3),ke(25,Yye,2,1,"td",4),Nn(),ke(26,qye,1,0,"tr",13),ke(27,Xye,1,6,"tr",14),ke(28,Qye,4,3,"tr",15),z(),je(29,"mat-paginator",16),z(),ke(30,Kye,9,0,"ng-template",17)),2&e&&(ae(1),ge("dataSource",i.dataSource)("matSortActive",i.defaultSort),ae(25),ge("matHeaderRowDef",i.displayedColumns),ae(1),ge("matRowDefColumns",i.displayedColumns),ae(2),ge("pageSize",30)("pageSizeOptions",ki(6,Jye)))},directives:[tM,Sf,K_,Q_,X_,nM,iM,oM,kV,XV,J_,Z3,Z_,vn,oi,cC,os,sM,rM],pipes:[Gn,Wa],styles:[".anime-stats-table__table[_ngcontent-%COMP%], .anime-stats-table__paginator[_ngcontent-%COMP%]{background-color:#e5fbff29}.anime-stats-table__ongoing[_ngcontent-%COMP%]{color:#0a4f0a;font-size:10px;margin-right:3px}.anime-stats-table__image[_ngcontent-%COMP%]{width:48px;height:75px}.anime-stats-table__emoji[_ngcontent-%COMP%]{font-size:15px;display:flex;height:100%;margin-right:3px;height:-moz-fit-content;height:fit-content;cursor:pointer}.anime-stats-table__emoji-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.anime-stats-table__name[_ngcontent-%COMP%]{margin-right:5px}.anime-stats-table__name-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.anime-stats-table__name-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-width:300px}.anime-stats-table__gold[_ngcontent-%COMP%]{background-color:#ffd70029}.anime-stats-table__silver[_ngcontent-%COMP%]{background-color:#b2b3bf}.anime-stats-table__bronze[_ngcontent-%COMP%]{background-color:#cd7f3247}.anime-stats-table__nothing-found[_ngcontent-%COMP%]{word-break:break-all}table.mat-table[_ngcontent-%COMP%]{width:100%;border-spacing:0}"],changeDetection:0}),t})(),n5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,kd,oc],oc,Sn]}),t})(),pve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),c5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[r2,Ld,Sn,xw,ei],r2,Sn,xw,pve]}),t})(),d5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),p5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx,Pd]]}),t})(),w5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx]]}),t})(),s1e=(()=>{class t{constructor(e,i){dd(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:oo,useValue:Object.assign(Object.assign({},Sx),e)},{provide:Ex,useValue:i,multi:!0},{provide:Fl,useValue:!0}]:[{provide:oo,useValue:Object.assign(Object.assign({},Sx),e)},{provide:Ex,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(Me(Fl),Me(xs))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[p5,wN,w5],p5,wN,w5]}),t})();var r1e=function(){function t(){this.getFragmentDoc=pm(mJ)}return t.prototype.batch=function(n){var s,e=this;return this.performTransaction(function(){return s=n.update(e)},"string"==typeof n.optimistic?n.optimistic:!1===n.optimistic?null:void 0),s},t.prototype.recordOptimisticTransaction=function(n,e){this.performTransaction(n,e)},t.prototype.transformDocument=function(n){return n},t.prototype.identify=function(n){},t.prototype.gc=function(){return[]},t.prototype.modify=function(n){return!1},t.prototype.transformForLink=function(n){return n},t.prototype.readQuery=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read(et(et({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))},t.prototype.readFragment=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read(et(et({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:n.id,optimistic:e}))},t.prototype.writeQuery=function(n){var e=n.id,i=n.data,s=Tl(n,["id","data"]);return this.write(Object.assign(s,{dataId:e||"ROOT_QUERY",result:i}))},t.prototype.writeFragment=function(n){var e=n.id,i=n.data,s=n.fragment,r=n.fragmentName,o=Tl(n,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(s,r),dataId:e,result:i}))},t.prototype.updateQuery=function(n,e){return this.batch({update:function(i){var s=i.readQuery(n),r=e(s);return null==r?s:(i.writeQuery(et(et({},n),{data:r})),r)}})},t.prototype.updateFragment=function(n,e){return this.batch({update:function(i){var s=i.readFragment(n),r=e(s);return null==r?s:(i.writeFragment(et(et({},n),{data:r})),r)}})},t}(),C5=function(n,e,i,s){this.message=n,this.path=e,this.query=i,this.variables=s};function yM(t){return __DEV__&&function(t){var n=new Set([t]);n.forEach(function(e){Ii(e)&&function(t){if(__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(i){Ii(e[i])&&n.add(e[i])})})}(t),t}var hy=Object.create(null),vM=function(){return hy},M5=Object.create(null),Pf=function(){function t(n,e){var i=this;this.policies=n,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(s,r){return yM(Un(s)?i.get(s.__ref,r):s&&s[r])},this.canRead=function(s){return Un(s)?i.has(s.__ref):"object"==typeof s},this.toReference=function(s,r){if("string"==typeof s)return bd(s);if(Un(s))return s;var o=i.policies.identify(s)[0];if(o){var a=bd(o);return r&&i.merge(o,s),a}}}return t.prototype.toObject=function(){return et({},this.data)},t.prototype.has=function(n){return void 0!==this.lookup(n,!0)},t.prototype.get=function(n,e){if(this.group.depend(n,e),us.call(this.data,n)){var i=this.data[n];if(i&&us.call(i,e))return i[e]}return"__typename"===e&&us.call(this.policies.rootTypenamesById,n)?this.policies.rootTypenamesById[n]:this instanceof Ja?this.parent.get(n,e):void 0},t.prototype.lookup=function(n,e){return e&&this.group.depend(n,"__exists"),us.call(this.data,n)?this.data[n]:this instanceof Ja?this.parent.lookup(n,e):this.policies.rootTypenamesById[n]?Object.create(null):void 0},t.prototype.merge=function(n,e){var s,i=this;Un(n)&&(n=n.__ref),Un(e)&&(e=e.__ref);var r="string"==typeof n?this.lookup(s=n):n,o="string"==typeof e?this.lookup(s=e):e;if(o){__DEV__?Rt("string"==typeof s,"store.merge expects a string ID"):Rt("string"==typeof s,1);var a=new Md(c1e).merge(r,o);if(this.data[s]=a,a!==r&&(delete this.refs[s],this.group.caching)){var l=Object.create(null);r||(l.__exists=1),Object.keys(o).forEach(function(c){if(!r||r[c]!==a[c]){l[c]=1;var d=Na(c);d!==c&&!i.policies.hasKeyArgs(a.__typename,d)&&(l[d]=1),void 0===a[c]&&!(i instanceof Ja)&&delete a[c]}}),l.__typename&&!(r&&r.__typename)&&this.policies.rootTypenamesById[s]===a.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return i.group.dirty(s,c)})}}},t.prototype.modify=function(n,e){var i=this,s=this.lookup(n);if(s){var r=Object.create(null),o=!1,a=!0,l={DELETE:hy,INVALIDATE:M5,isReference:Un,toReference:this.toReference,canRead:this.canRead,readField:function(c,d){return i.policies.readField("string"==typeof c?{fieldName:c,from:d||bd(n)}:c,{store:i})}};if(Object.keys(s).forEach(function(c){var d=Na(c),u=s[c];if(void 0!==u){var f="function"==typeof e?e:e[c]||e[d];if(f){var _=f===vM?hy:f(yM(u),et(et({},l),{fieldName:d,storeFieldName:c,storage:i.getStorage(n,c)}));_===M5?i.group.dirty(n,c):(_===hy&&(_=void 0),_!==u&&(r[c]=_,o=!0,u=_))}void 0!==u&&(a=!1)}}),o)return this.merge(n,r),a&&(this instanceof Ja?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1},t.prototype.delete=function(n,e,i){var s,r=this.lookup(n);if(r){var o=this.getFieldValue(r,"__typename"),a=e&&i?this.policies.getStoreFieldName({typename:o,fieldName:e,args:i}):e;return this.modify(n,a?((s={})[a]=vM,s):vM)}return!1},t.prototype.evict=function(n,e){var i=!1;return n.id&&(us.call(this.data,n.id)&&(i=this.delete(n.id,n.fieldName,n.args)),this instanceof Ja&&this!==e&&(i=this.parent.evict(n,e)||i),(n.fieldName||i)&&this.group.dirty(n.id,n.fieldName||"__exists")),i},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var n=this,e=this.toObject(),i=[];return this.getRootIdSet().forEach(function(s){us.call(n.policies.rootTypenamesById,s)||i.push(s)}),i.length&&(e.__META={extraRootIds:i.sort()}),e},t.prototype.replace=function(n){var e=this;if(Object.keys(this.data).forEach(function(r){n&&us.call(n,r)||e.delete(r)}),n){var i=n.__META,s=Tl(n,["__META"]);Object.keys(s).forEach(function(r){e.merge(r,s[r])}),i&&i.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(n){return this.rootIds[n]=(this.rootIds[n]||0)+1},t.prototype.release=function(n){if(this.rootIds[n]>0){var e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0},t.prototype.getRootIdSet=function(n){return void 0===n&&(n=new Set),Object.keys(this.rootIds).forEach(n.add,n),this instanceof Ja?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n},t.prototype.gc=function(){var n=this,e=this.getRootIdSet(),i=this.toObject();e.forEach(function(o){us.call(i,o)&&(Object.keys(n.findChildRefIds(o)).forEach(e.add,e),delete i[o])});var s=Object.keys(i);if(s.length){for(var r=this;r instanceof Ja;)r=r.parent;s.forEach(function(o){return r.delete(o)})}return s},t.prototype.findChildRefIds=function(n){if(!us.call(this.refs,n)){var e=this.refs[n]=Object.create(null),i=this.data[n];if(!i)return e;var s=new Set([i]);s.forEach(function(r){Un(r)&&(e[r.__ref]=!0),Ii(r)&&Object.keys(r).forEach(function(o){var a=r[o];Ii(a)&&s.add(a)})})}return this.refs[n]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),D5=function(){function t(n,e){void 0===e&&(e=null),this.caching=n,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?FR():null,this.keyMaker=new Fh(Il)},t.prototype.depend=function(n,e){if(this.d){this.d(bM(n,e));var i=Na(e);i!==e&&this.d(bM(n,i)),this.parent&&this.parent.depend(n,e)}},t.prototype.dirty=function(n,e){this.d&&this.d.dirty(bM(n,e),"__exists"===e?"forget":"setDirty")},t}();function bM(t,n){return n+"#"+t}function S5(t,n){Rf(t)&&t.group.depend(n,"__exists")}!function(t){var n=function(e){function i(s){var o=s.resultCaching,l=s.seed,c=e.call(this,s.policies,new D5(void 0===o||o))||this;return c.stump=new l1e(c),c.storageTrie=new Fh(Il),l&&c.replace(l),c}return io(i,e),i.prototype.addLayer=function(s,r){return this.stump.addLayer(s,r)},i.prototype.removeLayer=function(){return this},i.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},i}(t);t.Root=n}(Pf||(Pf={}));var Ja=function(t){function n(e,i,s,r){var o=t.call(this,i.policies,r)||this;return o.id=e,o.parent=i,o.replay=s,o.group=r,s(o),o}return io(n,t),n.prototype.addLayer=function(e,i){return new n(e,this,i,this.group)},n.prototype.removeLayer=function(e){var i=this,s=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(r){var o=i.data[r],a=s.lookup(r);a?o?o!==a&&Object.keys(o).forEach(function(l){ds(o[l],a[l])||i.group.dirty(r,l)}):(i.group.dirty(r,"__exists"),Object.keys(a).forEach(function(l){i.group.dirty(r,l)})):i.delete(r)}),s):s===this.parent?this:s.addLayer(this.id,this.replay)},n.prototype.toObject=function(){return et(et({},this.parent.toObject()),this.data)},n.prototype.findChildRefIds=function(e){var i=this.parent.findChildRefIds(e);return us.call(this.data,e)?et(et({},i),t.prototype.findChildRefIds.call(this,e)):i},n.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},n}(Pf),l1e=function(t){function n(e){return t.call(this,"EntityStore.Stump",e,function(){},new D5(e.group.caching,e.group))||this}return io(n,t),n.prototype.removeLayer=function(){return this},n.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},n}(Ja);function c1e(t,n,e){var i=t[e],s=n[e];return ds(i,s)?i:s}function Rf(t){return!!(t instanceof Pf&&t.group.caching)}function E5(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var d1e=function(){function t(n){var e=this;this.knownResults=new(Il?WeakMap:Map),this.config=cm(n,{addTypename:!1!==n.addTypename,canonizeResults:lR(n)}),this.canon=n.canon||new J1,this.executeSelectionSet=pm(function(i){var s,r=i.context.canonizeResults,o=E5(i);o[3]=!r;var a=(s=e.executeSelectionSet).peek.apply(s,o);return a?r?et(et({},a),{result:e.canon.admit(a.result)}):a:(S5(i.context.store,i.enclosingRef.__ref),e.execSelectionSetImpl(i))},{max:this.config.resultCacheMaxSize,keyArgs:E5,makeCacheKey:function(i,s,r,o){if(Rf(r.store))return r.store.makeCacheKey(i,Un(s)?s.__ref:s,r.varString,o)}}),this.executeSubSelectedArray=pm(function(i){return S5(i.context.store,i.enclosingRef.__ref),e.execSubSelectedArrayImpl(i)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(i){var s=i.field,r=i.array,o=i.context;if(Rf(o.store))return o.store.makeCacheKey(s,r,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new J1},t.prototype.diffQueryAgainstStore=function(n){var e=n.store,i=n.query,s=n.rootId,r=void 0===s?"ROOT_QUERY":s,o=n.variables,a=n.returnPartialData,l=void 0===a||a,c=n.canonizeResults,d=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=et(et({},G1($P(i))),o);var T,f=bd(r),_=this.executeSelectionSet({selectionSet:z1(i).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:e,query:i,policies:u,variables:o,varString:Pl(o),canonizeResults:d,fragmentMap:im(om(i))}});if(_.missing&&(T=[new C5(u1e(_.missing),_.missing,i,o)],!l))throw T[0];return{result:_.result,complete:!T,missing:T}},t.prototype.isFresh=function(n,e,i,s){if(Rf(s.store)&&this.knownResults.get(n)===i){var r=this.executeSelectionSet.peek(i,e,s,this.canon.isKnown(n));if(r&&n===r.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(n){var e=this,i=n.selectionSet,s=n.objectOrReference,r=n.enclosingRef,o=n.context;if(Un(s)&&!o.policies.rootTypenamesById[s.__ref]&&!o.store.has(s.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(s.__ref," object")};var f,a=o.variables,l=o.policies,d=o.store.getFieldValue(s,"__typename"),u=[],_=new Md;function T(ue,Te){var Fe;return ue.missing&&(f=_.merge(f,((Fe={})[Te]=ue.missing,Fe))),ue.result}this.config.addTypename&&"string"==typeof d&&!l.rootIdsByTypename[d]&&u.push({__typename:d});var k=new Set(i.selections);k.forEach(function(ue){var Te,Fe;if(dm(ue,a))if(ea(ue)){var Be=l.readField({fieldName:ue.name.value,field:ue,variables:o.variables,from:s},o),Ue=Ol(ue);void 0===Be?sx.added(ue)||(f=_.merge(f,((Te={})[Ue]="Can't find field '".concat(ue.name.value,"' on ").concat(Un(s)?s.__ref+" object":"object "+JSON.stringify(s,null,2)),Te))):Ni(Be)?Be=T(e.executeSubSelectedArray({field:ue,array:Be,enclosingRef:r,context:o}),Ue):ue.selectionSet?null!=Be&&(Be=T(e.executeSelectionSet({selectionSet:ue.selectionSet,objectOrReference:Be,enclosingRef:Un(Be)?Be:r,context:o}),Ue)):o.canonizeResults&&(Be=e.canon.pass(Be)),void 0!==Be&&u.push(((Fe={})[Ue]=Be,Fe))}else{var He=B1(ue,o.fragmentMap);He&&l.fragmentMatches(He,d)&&He.selectionSet.selections.forEach(k.add,k)}});var L={result:Q1(u),missing:f},J=o.canonizeResults?this.canon.admit(L):yM(L);return J.result&&this.knownResults.set(J.result,i),J},t.prototype.execSubSelectedArrayImpl=function(n){var a,e=this,i=n.field,s=n.array,r=n.enclosingRef,o=n.context,l=new Md;function c(d,u){var f;return d.missing&&(a=l.merge(a,((f={})[u]=d.missing,f))),d.result}return i.selectionSet&&(s=s.filter(o.store.canRead)),s=s.map(function(d,u){return null===d?null:Ni(d)?c(e.executeSubSelectedArray({field:i,array:d,enclosingRef:r,context:o}),u):i.selectionSet?c(e.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:d,enclosingRef:Un(d)?d:r,context:o}),u):(__DEV__&&function(t,n,e){if(!n.selectionSet){var i=new Set([e]);i.forEach(function(s){Ii(s)&&(__DEV__?Rt(!Un(s),"Missing selection set for object of type ".concat(function(t,n){return Un(n)?t.get(n.__ref,"__typename"):n&&n.__typename}(t,s)," returned for query field ").concat(n.name.value)):Rt(!Un(s),5),Object.values(s).forEach(i.add,i))})}}(o.store,i,d),d)}),{result:o.canonizeResults?this.canon.admit(s):s,missing:a}},t}();function u1e(t){try{JSON.stringify(t,function(n,e){if("string"==typeof e)throw e;return e})}catch(n){return n}}var T5=Object.create(null);function xM(t){var n=JSON.stringify(t);return T5[n]||(T5[n]=Object.create(null))}function A5(t){var n=xM(t);return n.keyFieldsFn||(n.keyFieldsFn=function(e,i){var s=function(o,a){return i.readField(a,o)},r=i.keyObject=wM(t,function(o){var a=su(i.storeObject,o,s);return void 0===a&&e!==i.storeObject&&us.call(e,o[0])&&(a=su(e,o,I5)),__DEV__?Rt(void 0!==a,"Missing field '".concat(o.join("."),"' while extracting keyFields from ").concat(JSON.stringify(e))):Rt(void 0!==a,2),a});return"".concat(i.typename,":").concat(JSON.stringify(r))})}function k5(t){var n=xM(t);return n.keyArgsFn||(n.keyArgsFn=function(e,i){var s=i.field,r=i.variables,o=i.fieldName,a=wM(t,function(c){var d=c[0],u=d.charAt(0);if("@"!==u)if("$"!==u){if(e)return su(e,c)}else{var k=d.slice(1);if(r&&us.call(r,k)){var $=c.slice(0);return $[0]=k,su(r,$)}}else if(s&&Rl(s.directives)){var f=d.slice(1),_=s.directives.find(function(L){return L.name.value===f}),T=_&&sm(_,r);return T&&su(T,c.slice(1))}}),l=JSON.stringify(a);return(e||"{}"!==l)&&(o+=":"+l),o})}function wM(t,n){var e=new Md;return O5(t).reduce(function(i,s){var r,o=n(s);if(void 0!==o){for(var a=s.length-1;a>=0;--a)(r={})[s[a]]=o,o=r;i=e.merge(i,o)}return i},Object.create(null))}function O5(t){var n=xM(t);if(!n.paths){var e=n.paths=[],i=[];t.forEach(function(s,r){Ni(s)?(O5(s).forEach(function(o){return e.push(i.concat(o))}),i.length=0):(i.push(s),Ni(t[r+1])||(e.push(i.slice(0)),i.length=0))})}return n.paths}function I5(t,n){return t[n]}function su(t,n,e){return e=e||I5,P5(n.reduce(function i(s,r){return Ni(s)?s.map(function(o){return i(o,r)}):s&&e(s,r)},t))}function P5(t){return Ii(t)?Ni(t)?t.map(P5):wM(Object.keys(t).sort(),function(n){return su(t,n)}):t}function CM(t){return void 0!==t.args?t.args:t.field?sm(t.field,t.variables):null}V1.setStringify(Pl);var p1e=function(){},R5=function(t,n){return n.fieldName},N5=function(t,n,e){return(0,e.mergeObjects)(t,n)},F5=function(t,n){return n},g1e=function(){function t(n){this.config=n,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=et({dataIdFromObject:oR},n),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),n.possibleTypes&&this.addPossibleTypes(n.possibleTypes),n.typePolicies&&this.addTypePolicies(n.typePolicies)}return t.prototype.identify=function(n,e){var i,s=this,r=e&&(e.typename||(null===(i=e.storeObject)||void 0===i?void 0:i.__typename))||n.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var l,o=e&&e.storeObject||n,a=et(et({},e),{typename:r,storeObject:o,readField:e&&e.readField||function(){var f=MM(arguments,o);return s.readField(f,{store:s.cache.data,variables:f.variables})}}),c=r&&this.getTypePolicy(r),d=c&&c.keyFn||this.config.dataIdFromObject;d;){var u=d(n,a);if(!Ni(u)){l=u;break}d=A5(u)}return l=l?String(l):void 0,a.keyObject?[l,a.keyObject]:[l]},t.prototype.addTypePolicies=function(n){var e=this;Object.keys(n).forEach(function(i){var s=n[i],r=s.queryType,o=s.mutationType,a=s.subscriptionType,l=Tl(s,["queryType","mutationType","subscriptionType"]);r&&e.setRootTypename("Query",i),o&&e.setRootTypename("Mutation",i),a&&e.setRootTypename("Subscription",i),us.call(e.toBeAdded,i)?e.toBeAdded[i].push(l):e.toBeAdded[i]=[l]})},t.prototype.updateTypePolicy=function(n,e){var i=this,s=this.getTypePolicy(n),r=e.keyFields,o=e.fields;function a(l,c){l.merge="function"==typeof c?c:!0===c?N5:!1===c?F5:l.merge}a(s,e.merge),s.keyFn=!1===r?p1e:Ni(r)?A5(r):"function"==typeof r?r:s.keyFn,o&&Object.keys(o).forEach(function(l){var c=i.getFieldPolicy(n,l,!0),d=o[l];if("function"==typeof d)c.read=d;else{var u=d.keyArgs,f=d.read,_=d.merge;c.keyFn=!1===u?R5:Ni(u)?k5(u):"function"==typeof u?u:c.keyFn,"function"==typeof f&&(c.read=f),a(c,_)}c.read&&c.merge&&(c.keyFn=c.keyFn||R5)})},t.prototype.setRootTypename=function(n,e){void 0===e&&(e=n);var i="ROOT_"+n.toUpperCase(),s=this.rootTypenamesById[i];e!==s&&(__DEV__?Rt(!s||s===n,"Cannot change root ".concat(n," __typename more than once")):Rt(!s||s===n,3),s&&delete this.rootIdsByTypename[s],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)},t.prototype.addPossibleTypes=function(n){var e=this;this.usingPossibleTypes=!0,Object.keys(n).forEach(function(i){e.getSupertypeSet(i,!0),n[i].forEach(function(s){e.getSupertypeSet(s,!0).add(i);var r=s.match(cR);(!r||r[0]!==s)&&e.fuzzySubtypes.set(s,new RegExp(s))})})},t.prototype.getTypePolicy=function(n){var e=this;if(!us.call(this.typePolicies,n)){var i=this.typePolicies[n]=Object.create(null);i.fields=Object.create(null);var s=this.supertypeMap.get(n);s&&s.size&&s.forEach(function(o){var a=e.getTypePolicy(o),l=a.fields,c=Tl(a,["fields"]);Object.assign(i,c),Object.assign(i.fields,l)})}var r=this.toBeAdded[n];return r&&r.length&&r.splice(0).forEach(function(o){e.updateTypePolicy(n,o)}),this.typePolicies[n]},t.prototype.getFieldPolicy=function(n,e,i){if(n){var s=this.getTypePolicy(n).fields;return s[e]||i&&(s[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(n,e){var i=this.supertypeMap.get(n);return!i&&e&&this.supertypeMap.set(n,i=new Set),i},t.prototype.fragmentMatches=function(n,e,i,s){var r=this;if(!n.typeCondition)return!0;if(!e)return!1;var o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(e,!0),l=[a],c=function(T){var k=r.getSupertypeSet(T,!1);k&&k.size&&l.indexOf(k)<0&&l.push(k)},d=!(!i||!this.fuzzySubtypes.size),u=!1,f=0;f1?t[1]:n}:(o=et({},i),us.call(o,"from")||(o.from=n)),__DEV__&&void 0===o.from&&__DEV__&&Rt.warn("Undefined 'from' passed to readField with arguments ".concat(function(t){var n=rx("stringifyForDisplay");return JSON.stringify(t,function(e,i){return void 0===i?n:i}).split(JSON.stringify(n)).join("")}(Array.from(t)))),void 0===o.variables&&(o.variables=e),o}function B5(t){return function(e,i){if(Ni(e)||Ni(i))throw __DEV__?new Qn("Cannot automatically merge arrays"):new Qn(4);if(Ii(e)&&Ii(i)){var s=t.getFieldValue(e,"__typename"),r=t.getFieldValue(i,"__typename");if(s&&r&&s!==r)return i;if(Un(e)&&Dd(i))return t.merge(e.__ref,i),e;if(Dd(e)&&Un(i))return t.merge(e,i.__ref),i;if(Dd(e)&&Dd(i))return et(et({},e),i)}return i}}function DM(t,n,e){var i="".concat(n).concat(e),s=t.flavors.get(i);return s||t.flavors.set(i,s=t.clientOnly===n&&t.deferred===e?t:et(et({},t),{clientOnly:n,deferred:e})),s}var m1e=function(){function t(n,e){this.cache=n,this.reader=e}return t.prototype.writeToStore=function(n,e){var i=this,s=e.query,r=e.result,o=e.dataId,a=e.variables,l=e.overwrite,c=Rh(s),d=new Md;a=et(et({},G1(c)),a);var u={store:n,written:Object.create(null),merge:function(_,T){return d.merge(_,T)},variables:a,varString:Pl(a),fragmentMap:im(om(s)),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:r||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!Un(f))throw __DEV__?new Qn("Could not identify object ".concat(JSON.stringify(r))):new Qn(6);return u.incomingById.forEach(function(_,T){var k=_.storeObject,$=_.mergeTree,L=_.fieldNodeSet,J=bd(T);if($&&$.map.size){var ue=i.applyMerges($,J,k,u);if(Un(ue))return;k=ue}if(__DEV__&&!u.overwrite){var Te=Object.create(null);L.forEach(function(Ue){Ue.selectionSet&&(Te[Ue.name.value]=!0)}),Object.keys(k).forEach(function(Ue){(function(Ue){return!0===Te[Na(Ue)]})(Ue)&&!function(Ue){var He=$&&$.map.get(Ue);return Boolean(He&&He.info&&He.info.merge)}(Ue)&&function(t,n,e,i){var s=function(u){var f=i.getFieldValue(u,e);return"object"==typeof f&&f},r=s(t);if(r){var o=s(n);if(o&&!Un(r)&&!ds(r,o)&&!Object.keys(r).every(function(u){return void 0!==i.getFieldValue(o,u)})){var a=i.getFieldValue(t,"__typename")||i.getFieldValue(n,"__typename"),l=Na(e),c="".concat(a,".").concat(l);if(!z5.has(c)){z5.add(c);var d=[];!Ni(r)&&!Ni(o)&&[r,o].forEach(function(u){var f=i.getFieldValue(u,"__typename");"string"==typeof f&&!d.includes(f)&&d.push(f)}),__DEV__&&Rt.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(a," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(r).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(J,k,Ue,u.store)})}n.merge(T,k)}),n.retain(f.__ref),f},t.prototype.processSelectionSet=function(n){var e=this,i=n.dataId,s=n.result,r=n.selectionSet,o=n.context,a=n.mergeTree,l=this.cache.policies,c=Object.create(null),d=i&&l.rootTypenamesById[i]||H1(s,r,o.fragmentMap)||i&&o.store.get(i,"__typename");"string"==typeof d&&(c.__typename=d);var u=function(){var ue=MM(arguments,c,o.variables);if(Un(ue.from)){var Te=o.incomingById.get(ue.from.__ref);if(Te){var Fe=l.readField(et(et({},ue),{from:Te.storeObject}),o);if(void 0!==Fe)return Fe}}return l.readField(ue,o)},f=new Set;this.flattenFields(r,s,o,d).forEach(function(ue,Te){var Fe,Be=Ol(Te),Ue=s[Be];if(f.add(Te),void 0!==Ue){var He=l.getStoreFieldName({typename:d,fieldName:Te.name.value,field:Te,variables:ue.variables}),it=H5(a,He),lt=e.processFieldValue(Ue,Te,Te.selectionSet?DM(ue,!1,!1):ue,it),Xe=void 0;Te.selectionSet&&(Un(lt)||Dd(lt))&&(Xe=u("__typename",lt));var qe=l.getMergeFunction(d,Te.name.value,Xe);qe?it.info={field:Te,typename:d,merge:qe}:j5(a,He),c=ue.merge(c,((Fe={})[He]=lt,Fe))}else __DEV__&&!ue.clientOnly&&!ue.deferred&&!sx.added(Te)&&!l.getReadFunction(d,Te.name.value)&&__DEV__&&Rt.error("Missing field '".concat(Ol(Te),"' while writing result ").concat(JSON.stringify(s,null,2)).substring(0,1e3))});try{var _=l.identify(s,{typename:d,selectionSet:r,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),k=_[1];i=i||_[0],k&&(c=o.merge(c,k))}catch(ue){if(!i)throw ue}if("string"==typeof i){var $=bd(i),L=o.written[i]||(o.written[i]=[]);if(L.indexOf(r)>=0||(L.push(r),this.reader&&this.reader.isFresh(s,$,r,o)))return $;var J=o.incomingById.get(i);return J?(J.storeObject=o.merge(J.storeObject,c),J.mergeTree=SM(J.mergeTree,a),f.forEach(function(ue){return J.fieldNodeSet.add(ue)})):o.incomingById.set(i,{storeObject:c,mergeTree:fy(a)?void 0:a,fieldNodeSet:f}),$}return c},t.prototype.processFieldValue=function(n,e,i,s){var r=this;return e.selectionSet&&null!==n?Ni(n)?n.map(function(o,a){var l=r.processFieldValue(o,e,i,H5(s,a));return j5(s,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:i,mergeTree:s}):__DEV__?vR(n):n},t.prototype.flattenFields=function(n,e,i,s){void 0===s&&(s=H1(e,n,i.fragmentMap));var r=new Map,o=this.cache.policies,a=new Fh(!1);return function l(c,d){var u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(function(f){if(dm(f,i.variables)){var _=d.clientOnly,T=d.deferred;if(!(_&&T)&&Rl(f.directives)&&f.directives.forEach(function(L){var J=L.name.value;if("client"===J&&(_=!0),"defer"===J){var ue=sm(L,i.variables);(!ue||!1!==ue.if)&&(T=!0)}}),ea(f)){var k=r.get(f);k&&(_=_&&k.clientOnly,T=T&&k.deferred),r.set(f,DM(i,_,T))}else{var $=B1(f,i.fragmentMap);$&&o.fragmentMatches($,s,e,i.variables)&&l($.selectionSet,DM(i,_,T))}}}))}(n,i),r},t.prototype.applyMerges=function(n,e,i,s,r){var o,a=this;if(n.map.size&&!Un(i)){var l=Ni(i)||!Un(e)&&!Dd(e)?void 0:e,c=i;l&&!r&&(r=[Un(l)?l.__ref:l]);var d,u=function(f,_){return Ni(f)?"number"==typeof _?f[_]:void 0:s.store.getFieldValue(f,String(_))};n.map.forEach(function(f,_){var T=u(l,_),k=u(c,_);if(void 0!==k){r&&r.push(_);var $=a.applyMerges(f,T,k,s,r);$!==k&&(d=d||new Map).set(_,$),r&&Rt(r.pop()===_)}}),d&&(i=Ni(c)?c.slice(0):et({},c),d.forEach(function(f,_){i[_]=f}))}return n.info?this.cache.policies.runMergeFunction(e,i,n.info,s,r&&(o=s.store).getStorage.apply(o,r)):i},t}(),V5=[];function H5(t,n){var e=t.map;return e.has(n)||e.set(n,V5.pop()||{map:new Map}),e.get(n)}function SM(t,n){if(t===n||!n||fy(n))return t;if(!t||fy(t))return n;var e=t.info&&n.info?et(et({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,r={info:e,map:i?new Map:t.map.size?t.map:n.map};if(i){var o=new Set(n.map.keys());t.map.forEach(function(a,l){r.map.set(l,SM(a,n.map.get(l))),o.delete(l)}),o.forEach(function(a){r.map.set(a,SM(n.map.get(a),t.map.get(a)))})}return r}function fy(t){return!t||!(t.info||t.map.size)}function j5(t,n){var e=t.map,i=e.get(n);i&&fy(i)&&(V5.push(i),e.delete(n))}var z5=new Set,G5=function(t){function n(e){void 0===e&&(e={});var i=t.call(this)||this;return i.watches=new Set,i.typenameDocumentCache=new Map,i.makeVar=iee,i.txCount=0,i.config=function(t){return cm(aR,t)}(e),i.addTypename=!!i.config.addTypename,i.policies=new g1e({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return io(n,t),n.prototype.init=function(){var e=this.data=new Pf.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},n.prototype.resetResultCache=function(e){var i=this,s=this.storeReader;this.storeWriter=new m1e(this,this.storeReader=new d1e({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:lR(this.config),canon:e?void 0:s&&s.canon})),this.maybeBroadcastWatch=pm(function(r,o){return i.broadcastWatch(r,o)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var o=r.optimistic?i.optimisticData:i.data;if(Rf(o))return o.makeCacheKey(r.query,r.callback,Pl({optimistic:r.optimistic,rootId:r.rootId,variables:r.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(r){return r.resetCaching()})},n.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},n.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},n.prototype.read=function(e){var i=e.returnPartialData,s=void 0!==i&&i;try{return this.storeReader.diffQueryAgainstStore(et(et({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:s})).result||null}catch(r){if(r instanceof C5)return null;throw r}},n.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.modify=function(e){if(us.call(e,"id")&&!e.id)return!1;var i=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,i.modify(e.id||"ROOT_QUERY",e.fields)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(et(et({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},n.prototype.watch=function(e){var i=this;return this.watches.size||function(t){Hh(t).vars.forEach(function(n){return n.attachCache(t)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){i.watches.delete(e)&&!i.watches.size&&jR(i),i.maybeBroadcastWatch.forget(e)}},n.prototype.gc=function(e){Pl.reset();var i=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),i},n.prototype.retain=function(e,i){return(i?this.optimisticData:this.data).retain(e)},n.prototype.release=function(e,i){return(i?this.optimisticData:this.data).release(e)},n.prototype.identify=function(e){if(Un(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(i){__DEV__&&Rt.warn(i)}},n.prototype.evict=function(e){if(!e.id){if(us.call(e,"id"))return!1;e=et(et({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.reset=function(e){var i=this;return this.init(),Pl.reset(),e&&e.discardWatches?(this.watches.forEach(function(s){return i.maybeBroadcastWatch.forget(s)}),this.watches.clear(),jR(this)):this.broadcastWatches(),Promise.resolve()},n.prototype.removeOptimistic=function(e){var i=this.optimisticData.removeLayer(e);i!==this.optimisticData&&(this.optimisticData=i,this.broadcastWatches())},n.prototype.batch=function(e){var c,i=this,s=e.update,r=e.optimistic,o=void 0===r||r,a=e.removeOptimistic,l=e.onWatchUpdated,d=function(f){var T=i.data,k=i.optimisticData;++i.txCount,f&&(i.data=i.optimisticData=f);try{return c=s(i)}finally{--i.txCount,i.data=T,i.optimisticData=k}},u=new Set;return l&&!this.txCount&&this.broadcastWatches(et(et({},e),{onWatchUpdated:function(f){return u.add(f),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,d):!1===o?d(this.data):d(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),l&&u.size?(this.broadcastWatches(et(et({},e),{onWatchUpdated:function(f,_){var T=l.call(this,f,_);return!1!==T&&u.delete(f),T}})),u.size&&u.forEach(function(f){return i.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(e),c},n.prototype.performTransaction=function(e,i){return this.batch({update:e,optimistic:i||null!==i})},n.prototype.transformDocument=function(e){if(this.addTypename){var i=this.typenameDocumentCache.get(e);return i||(i=sx(e),this.typenameDocumentCache.set(e,i),this.typenameDocumentCache.set(i,i)),i}return e},n.prototype.broadcastWatches=function(e){var i=this;this.txCount||this.watches.forEach(function(s){return i.maybeBroadcastWatch(s,e)})},n.prototype.broadcastWatch=function(e,i){var s=e.lastDiff,r=this.diff(e);i&&(e.optimistic&&"string"==typeof i.optimistic&&(r.fromOptimisticTransaction=!0),i.onWatchUpdated&&!1===i.onWatchUpdated.call(this,e,r,s))||(!s||!ds(s.result,r.result))&&e.callback(e.lastDiff=r,s)},n}(r1e);class y1e extends wd{constructor(n,e){super(),this.httpClient=n,this.options=e,this.print=qP,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=i=>new li(s=>{const r=i.getContext(),o=(J,ue)=>function(...t){const n=t.find(e=>void 0!==e);return void 0===n?t[t.length-1]:n}(r[J],this.options[J],ue);let a=o("method","POST");const l=o("includeQuery",!0),c=o("includeExtensions",!1),d=o("uri","graphql"),u=o("withCredentials"),f=o("useMultipart"),_=!0===this.options.useGETForQueries,T=i.query.definitions.some(J=>"OperationDefinition"===J.kind&&"query"===J.operation);_&&T&&(a="GET");const k={method:a,url:"function"==typeof d?d(i):d,body:{operationName:i.operationName,variables:i.variables},options:{withCredentials:u,useMultipart:f,headers:this.options.headers}};c&&(k.body.extensions=i.extensions),l&&(k.body.query=this.print(i.query));const $=function(t){let n=t.headers&&t.headers instanceof so?t.headers:new so(t.headers);if(t.clientAwareness){const{name:e,version:i}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),i&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",i))}return n}(r);k.options.headers=((t,n)=>t&&n?n.keys().reduce((i,s)=>i.set(s,n.getAll(s)),t):n||t)(k.options.headers,$);const L=((t,n,e)=>{const i=-1!==["POST","PUT","PATCH"].indexOf(t.method.toUpperCase()),r=t.body.length;let a,o=t.options&&t.options.useMultipart;if(o){if(r)return new S(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!i)return new S(c=>c.error(new Error("File upload is not available when GET is used")));if(!e)return new S(c=>c.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=e(t.body),o=!!a.files.size}let l={};if(r){if(!i)return new S(c=>c.error(new Error("Batching is not available for GET requests")));l={body:t.body}}else{const c=o?a.clone:t.body;l=i?{body:c}:{params:Object.keys(t.body).reduce((u,f)=>{const _=t.body[f];return u[f]=(c=>-1!==["variables","extensions"].indexOf(c.toLowerCase()))(f)?JSON.stringify(_):_,u},{})}}if(o&&i){const c=new FormData;c.append("operations",JSON.stringify(l.body));const d={},u=a.files;let f=0;u.forEach(_=>{d[++f]=_}),c.append("map",JSON.stringify(d)),f=0,u.forEach((_,T)=>{c.append(++f+"",T,T.name)}),l.body=c}return n.request(t.method,t.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},l),t.options))})(k,this.httpClient,this.options.extractFiles).subscribe({next:J=>{i.setContext({response:J}),s.next(J.body)},error:J=>s.error(J),complete:()=>s.complete()});return()=>{L.closed||L.unsubscribe()}})}request(n){return this.requester(n)}}let Y5=(()=>{class t{constructor(e){this.httpClient=e}create(e){return new y1e(this.httpClient,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function b1e(t){return{link:t.create({uri:"https://shikimori.me/api/graphql"}),cache:new G5}}let x1e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[{provide:Cx,useFactory:b1e,deps:[Y5]}],imports:[bee]}),t})(),q5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Gn,uC,Wa],imports:[[ei,Yw,jB,QB,dV,J3,OV,eV,tf,TL,E3,n5,c5,d5,Mw]]}),t})();function w1e(t){return()=>localStorage.getItem("locale")?t.use(localStorage.getItem("locale")):t.use("en")}let C1e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t,bootstrap:[Dye]}),t.\u0275inj=St({providers:[{provide:Cx,useFactory:n=>({cache:new G5,link:n.create({uri:"https://shikimori.one/api/graphql"}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"all"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}}),deps:[Y5]},qs,{provide:sd,useFactory:w1e,deps:[qs],multi:!0}],imports:[[O0,nJ,R_e,jB,q5,Mie,Bce,QB,dye,dV,J3,OV,eV,tf,TL,E3,n5,c5,d5,Mw,Tpe,s1e,x1e,Yw,q5]]}),t})();(function(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(VM),i.pipeDefs=()=>e.map(HM)})(p3,[ef,Bd,u_,$C,oi,N_,F_,S3,D3,vn,Zye],[Gn]),function(){if(Sk)throw new Error("Cannot enable prod mode after platform setup.");Dk=!1}(),IY().bootstrapModule(C1e).catch(t=>console.error(t))}},Hn=>{Hn(Hn.s=428)}]); \ No newline at end of file +`,v1=({maxRetryAttempts:t=3,scalingDuration:n=1e3,excludedStatusCodes:e=[]}={})=>i=>i.pipe(Re((s,r)=>{const o=r+1;return o>t||e.find(a=>{var l;return a===s.status||a===(null===(l=null==s?void 0:s.networkError)||void 0===l?void 0:l.status)})?zg(s):Et(s).pipe(Zo(o*n))}));class wP{}class CP{}class so{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const s=e.slice(0,i),r=s.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const s=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(s,i),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof so?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new so;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof so?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const s=("a"===n.op?this.headers.get(e):void 0)||[];s.push(...i),this.headers.set(e,s);break;case"d":const r=n.value;if(r){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===r.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class GK{encodeKey(n){return MP(n)}encodeValue(n){return MP(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const UK=/%(\d[a-f0-9])/gi,WK={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function MP(t){return encodeURIComponent(t).replace(UK,(n,e)=>{var i;return null!==(i=WK[e])&&void 0!==i?i:n})}function DP(t){return`${t}`}class Ia{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new GK,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(s=>{const r=s.indexOf("="),[o,a]=-1==r?[n.decodeKey(s),""]:[n.decodeKey(s.slice(0,r)),n.decodeValue(s.slice(r+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const s=n[i];Array.isArray(s)?s.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:s,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Ia({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(DP(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const s=i.indexOf(DP(n.value));-1!==s&&i.splice(s,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class YK{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}keys(){return this.map.keys()}}function SP(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function EP(t){return"undefined"!=typeof Blob&&t instanceof Blob}function TP(t){return"undefined"!=typeof FormData&&t instanceof FormData}class kh{constructor(n,e,i,s){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==i?i:null,r=s):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new so),this.context||(this.context=new YK),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":af.set(_,n.setHeaders[_]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((f,_)=>f.set(_,n.setParams[_]),d)),new kh(i,s,o,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a})}}var Wi=(()=>((Wi=Wi||{})[Wi.Sent=0]="Sent",Wi[Wi.UploadProgress=1]="UploadProgress",Wi[Wi.ResponseHeader=2]="ResponseHeader",Wi[Wi.DownloadProgress=3]="DownloadProgress",Wi[Wi.Response=4]="Response",Wi[Wi.User=5]="User",Wi))();class b1{constructor(n,e=200,i="OK"){this.headers=n.headers||new so,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class x1 extends b1{constructor(n={}){super(n),this.type=Wi.ResponseHeader}clone(n={}){return new x1({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Jg extends b1{constructor(n={}){super(n),this.type=Wi.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Jg({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class AP extends b1{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function w1(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Pa=(()=>{class t{constructor(e){this.handler=e}request(e,i,s={}){let r;if(e instanceof kh)r=e;else{let l,c;l=s.headers instanceof so?s.headers:new so(s.headers),s.params&&(c=s.params instanceof Ia?s.params:new Ia({fromObject:s.params})),r=new kh(e,i,void 0!==s.body?s.body:null,{headers:l,context:s.context,params:c,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const o=Et(r).pipe(Xo(l=>this.handler.handle(l)));if(e instanceof kh||"events"===s.observe)return o;const a=o.pipe(mn(l=>l instanceof Jg));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(g(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(g(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(g(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(g(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Ia).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,s={}){return this.request("PATCH",e,w1(s,i))}post(e,i,s={}){return this.request("POST",e,w1(s,i))}put(e,i,s={}){return this.request("PUT",e,w1(s,i))}}return t.\u0275fac=function(e){return new(e||t)(Me(wP))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class kP{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const OP=new pt("HTTP_INTERCEPTORS");let QK=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const KK=/^\)\]\}',?\n/;let IP=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new S(i=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((_,T)=>s.setRequestHeader(_,T.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const _=e.detectContentTypeHeader();null!==_&&s.setRequestHeader("Content-Type",_)}if(e.responseType){const _=e.responseType.toLowerCase();s.responseType="json"!==_?_:"text"}const r=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const _=1223===s.status?204:s.status,T=s.statusText||"OK",k=new so(s.getAllResponseHeaders()),$=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return o=new x1({headers:k,status:_,statusText:T,url:$}),o},l=()=>{let{headers:_,status:T,statusText:k,url:$}=a(),L=null;204!==T&&(L=void 0===s.response?s.responseText:s.response),0===T&&(T=L?200:0);let J=T>=200&&T<300;if("json"===e.responseType&&"string"==typeof L){const ue=L;L=L.replace(KK,"");try{L=""!==L?JSON.parse(L):null}catch(Te){L=ue,J&&(J=!1,L={error:Te,text:L})}}J?(i.next(new Jg({body:L,headers:_,status:T,statusText:k,url:$||void 0})),i.complete()):i.error(new AP({error:L,headers:_,status:T,statusText:k,url:$||void 0}))},c=_=>{const{url:T}=a(),k=new AP({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});i.error(k)};let d=!1;const u=_=>{d||(i.next(a()),d=!0);let T={type:Wi.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),"text"===e.responseType&&!!s.responseText&&(T.partialText=s.responseText),i.next(T)},f=_=>{let T={type:Wi.UploadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),i.next(T)};return s.addEventListener("load",l),s.addEventListener("error",c),s.addEventListener("timeout",c),s.addEventListener("abort",c),e.reportProgress&&(s.addEventListener("progress",u),null!==r&&s.upload&&s.upload.addEventListener("progress",f)),s.send(r),i.next({type:Wi.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",l),s.removeEventListener("timeout",c),e.reportProgress&&(s.removeEventListener("progress",u),null!==r&&s.upload&&s.upload.removeEventListener("progress",f)),s.readyState!==s.DONE&&s.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Me(PO))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const C1=new pt("XSRF_COOKIE_NAME"),M1=new pt("XSRF_HEADER_NAME");class PP{}let ZK=(()=>{class t{constructor(e,i,s){this.doc=e,this.platform=i,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=wO(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(xs),Me(C1))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),D1=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const s=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(PP),Me(M1))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),eJ=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(OP,[]);this.chain=i.reduceRight((s,r)=>new kP(s,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(CP),Me(wn))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),tJ=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:D1,useClass:QK}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:C1,useValue:e.cookieName}:[],e.headerName?{provide:M1,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[D1,{provide:OP,useExisting:D1,multi:!0},{provide:PP,useClass:ZK},{provide:C1,useValue:"XSRF-TOKEN"},{provide:M1,useValue:"X-XSRF-TOKEN"}]}),t})(),nJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Pa,{provide:wP,useClass:eJ},IP,{provide:CP,useExisting:IP}],imports:[[tJ.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),qs=(()=>{class t{constructor(e){this.http=e,this.selectedLanguage="en",this.data={},this.localeChange=new ti(null)}getLanguage(){return this.selectedLanguage}use(e){return new Promise(i=>{this.http.get(`assets/i18n/${e||"en"}.json`).subscribe(r=>{this.data=r||{},i(this.data);const o=this.selectedLanguage;this.selectedLanguage=e,o!==this.selectedLanguage&&this.localeChange.next()},r=>{"en"==e?(this.data={},i(this.data)):this.use("en")})})}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var $n=(()=>(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}($n||($n={})),$n))();function Oh(t){return!!t&&t<7}var S1="Invariant Violation",RP=Object.setPrototypeOf,iJ=void 0===RP?function(t,n){return t.__proto__=n,t}:RP,Qn=function(t){function n(e){void 0===e&&(e=S1);var i=t.call(this,"number"==typeof e?S1+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return i.framesToPop=1,i.name=S1,iJ(i,n.prototype),i}return io(n,t),n}(Error);function Rt(t,n){if(!t)throw new Qn(n)}var Zg=["debug","log","warn","error","silent"],E1=Zg.indexOf("log");function em(t){return function(){if(Zg.indexOf(t)>=E1){var n=console[t]||console.log;return n.apply(console,arguments)}}}function Tr(t){try{return t()}catch(n){}}!function(t){t.debug=em("debug"),t.log=em("log"),t.warn=em("warn"),t.error=em("error")}(Rt||(Rt={}));const NP=Tr(function(){return globalThis})||Tr(function(){return window})||Tr(function(){return self})||Tr(function(){return global})||Tr(function(){return Tr.constructor("return this")()});var FP="__",LP=[FP,FP].join("DEV");const T1=function(){try{return Boolean(__DEV__)}catch(t){return Object.defineProperty(NP,LP,{value:"production"!==Tr(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),NP[LP]}}();function Ra(t){try{return t()}catch(n){}}var A1=Ra(function(){return globalThis})||Ra(function(){return window})||Ra(function(){return self})||Ra(function(){return global})||Ra(function(){return Ra.constructor("return this")()}),k1=!1;function VP(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e1,a=!1,l=arguments[1],c=l;return new r(function(d){return s.subscribe({next:function(u){var f=!a;if(a=!0,!f||o)try{c=i(c,u)}catch(_){return d.error(_)}else c=u},error:function(u){d.error(u)},complete:function(){if(!a&&!o)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(c),d.complete()}})})},n.concat=function(){for(var i=this,s=arguments.length,r=new Array(s),o=0;o=0&&a.splice(f,1),c()}});a.push(u)},error:function(d){o.error(d)},complete:function(){c()}});function c(){l.closed&&0===a.length&&o.complete()}return function(){a.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},n[N1]=function(){return this},t.from=function(i){var s="function"==typeof this?this:t;if(null==i)throw new TypeError(i+" is not an object");var r=tm(i,N1);if(r){var o=r.call(i);if(Object(o)!==o)throw new TypeError(o+" is not an object");return function(t){return t instanceof li}(o)&&o.constructor===s?o:new s(function(a){return o.subscribe(a)})}if(P1("iterator")&&(r=tm(i,dJ)))return new s(function(a){nm(function(){if(!a.closed){for(var c,l=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return VP(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return VP(t,n)}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(i));!(c=l()).done;)if(a.next(c.value),a.closed)return;a.complete()}})});if(Array.isArray(i))return new s(function(a){nm(function(){if(!a.closed){for(var l=0;l0){var i=e.connection.filter?e.connection.filter:[];i.sort();var s={};return i.forEach(function(a){s[a]=n[a]}),"".concat(e.connection.key,"(").concat(Ph(s),")")}return e.connection.key}var r=t;if(n){var o=Ph(n);r+="(".concat(o,")")}return e&&Object.keys(e).forEach(function(a){-1===TJ.indexOf(a)&&(e[a]&&Object.keys(e[a]).length?r+="@".concat(a,"(").concat(Ph(e[a]),")"):r+="@".concat(a))}),r},{setStringify:function(t){var n=Ph;return Ph=t,n}}),Ph=function(n){return JSON.stringify(n,AJ)};function AJ(t,n){return Ii(n)&&!Array.isArray(n)&&(n=Object.keys(n).sort().reduce(function(e,i){return e[i]=n[i],e},{})),n}function sm(t,n){if(t.arguments&&t.arguments.length){var e={};return t.arguments.forEach(function(i){return xd(e,i.name,i.value,n)}),e}return null}function Ol(t){return t.alias?t.alias.value:t.name.value}function H1(t,n,e){if("string"==typeof t.__typename)return t.__typename;for(var i=0,s=n.selections;it.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ht(t.definitions,"\n\n")},OperationDefinition:{leave(t){const n=On("(",Ht(t.variableDefinitions,", "),")"),e=Ht([t.operation,Ht([t.name,n]),Ht(t.directives," ")]," ");return("query"===e?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:n,defaultValue:e,directives:i})=>t+": "+n+On(" = ",e)+On(" ",Ht(i," "))},SelectionSet:{leave:({selections:t})=>ro(t)},Field:{leave({alias:t,name:n,arguments:e,directives:i,selectionSet:s}){const r=On("",t,": ")+n;let o=r+On("(",Ht(e,", "),")");return o.length>80&&(o=r+On("(\n",lm(Ht(e,"\n")),"\n)")),Ht([o,Ht(i," "),s]," ")}},Argument:{leave:({name:t,value:n})=>t+": "+n},FragmentSpread:{leave:({name:t,directives:n})=>"..."+t+On(" ",Ht(n," "))},InlineFragment:{leave:({typeCondition:t,directives:n,selectionSet:e})=>Ht(["...",On("on ",t),Ht(n," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:n,variableDefinitions:e,directives:i,selectionSet:s})=>`fragment ${t}${On("(",Ht(e,", "),")")} on ${n} ${On("",Ht(i," ")," ")}`+s},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:n})=>n?function(t,n){const e=t.replace(/"""/g,'\\"""'),i=e.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every(_=>0===_.length||p1(_.charCodeAt(0))),o=e.endsWith('\\"""'),a=t.endsWith('"')&&!o,l=t.endsWith("\\"),c=a||l,d=!s||t.length>70||c||r||o;let u="";const f=s&&p1(t.charCodeAt(0));return(d&&!f||r)&&(u+="\n"),u+=e,(d||c)&&(u+="\n"),'"""'+u+'"""'}(t):function(t){return`"${t.replace(VJ,HJ)}"`}(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ht(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ht(t,", ")+"}"},ObjectField:{leave:({name:t,value:n})=>t+": "+n},Directive:{leave:({name:t,arguments:n})=>"@"+t+On("(",Ht(n,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:n,operationTypes:e})=>On("",t,"\n")+Ht(["schema",Ht(n," "),ro(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:n})=>t+": "+n},ScalarTypeDefinition:{leave:({description:t,name:n,directives:e})=>On("",t,"\n")+Ht(["scalar",n,Ht(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:s})=>On("",t,"\n")+Ht(["type",n,On("implements ",Ht(e," & ")),Ht(i," "),ro(s)]," ")},FieldDefinition:{leave:({description:t,name:n,arguments:e,type:i,directives:s})=>On("",t,"\n")+n+(QP(e)?On("(\n",lm(Ht(e,"\n")),"\n)"):On("(",Ht(e,", "),")"))+": "+i+On(" ",Ht(s," "))},InputValueDefinition:{leave:({description:t,name:n,type:e,defaultValue:i,directives:s})=>On("",t,"\n")+Ht([n+": "+e,On("= ",i),Ht(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:n,interfaces:e,directives:i,fields:s})=>On("",t,"\n")+Ht(["interface",n,On("implements ",Ht(e," & ")),Ht(i," "),ro(s)]," ")},UnionTypeDefinition:{leave:({description:t,name:n,directives:e,types:i})=>On("",t,"\n")+Ht(["union",n,Ht(e," "),On("= ",Ht(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:n,directives:e,values:i})=>On("",t,"\n")+Ht(["enum",n,Ht(e," "),ro(i)]," ")},EnumValueDefinition:{leave:({description:t,name:n,directives:e})=>On("",t,"\n")+Ht([n,Ht(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:n,directives:e,fields:i})=>On("",t,"\n")+Ht(["input",n,Ht(e," "),ro(i)]," ")},DirectiveDefinition:{leave:({description:t,name:n,arguments:e,repeatable:i,locations:s})=>On("",t,"\n")+"directive @"+n+(QP(e)?On("(\n",lm(Ht(e,"\n")),"\n)"):On("(",Ht(e,", "),")"))+(i?" repeatable":"")+" on "+Ht(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:n})=>Ht(["extend schema",Ht(t," "),ro(n)]," ")},ScalarTypeExtension:{leave:({name:t,directives:n})=>Ht(["extend scalar",t,Ht(n," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>Ht(["extend type",t,On("implements ",Ht(n," & ")),Ht(e," "),ro(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:n,directives:e,fields:i})=>Ht(["extend interface",t,On("implements ",Ht(n," & ")),Ht(e," "),ro(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:n,types:e})=>Ht(["extend union",t,Ht(n," "),On("= ",Ht(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:n,values:e})=>Ht(["extend enum",t,Ht(n," "),ro(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:n,fields:e})=>Ht(["extend input",t,Ht(n," "),ro(e)]," ")}};function Ht(t,n=""){var e;return null!==(e=null==t?void 0:t.filter(i=>i).join(n))&&void 0!==e?e:""}function ro(t){return On("{\n",lm(Ht(t,"\n")),"\n}")}function On(t,n,e=""){return null!=n&&""!==n?t+n+e:""}function lm(t){return On(" ",t.replace(/\n/g,"\n "))}function QP(t){var n;return null!==(n=null==t?void 0:t.some(e=>e.includes("\n")))&&void 0!==n&&n}var YJ={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},KP=function(t,n){return n(t)};function qJ(t){if(t){var n=Object.create(null);return Object.keys(Object(t)).forEach(function(e){n[e.toLowerCase()]=t[e]}),n}return t}function ZP(t){return new li(function(n){n.error(t)})}var eR=Tr(function(){return fetch}),KJ=function(t){void 0===t&&(t={});var n=t.uri,e=void 0===n?"/graphql":n,i=t.fetch,s=t.print,r=void 0===s?KP:s,o=t.includeExtensions,a=t.useGETForQueries,l=t.includeUnusedVariables,c=void 0!==l&&l,d=Tl(t,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(t){if(!t&&"undefined"==typeof fetch)throw __DEV__?new Qn("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new Qn(20)}(i||eR);var u={http:{includeExtensions:o},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new wd(function(f){var _=function(t,n){return t.getContext().uri||("function"==typeof n?n(t):n||"/graphql")}(f,e),T=f.getContext(),k={};if(T.clientAwareness){var $=T.clientAwareness,L=$.name,J=$.version;L&&(k["apollographql-client-name"]=L),J&&(k["apollographql-client-version"]=J)}var it,ue=et(et({},k),T.headers),Fe=function(t,n){for(var e=[],i=2;i=300&&YP(n,e,"Response not successful: Received status code ".concat(n.status)),!Array.isArray(e)&&!qP.call(e,"data")&&!qP.call(e,"errors")&&YP(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(i){return i.operationName}):t.operationName,"'.")),e})}}(f)).then(function(bt){return Qe.next(bt),Qe.complete(),bt}).catch(function(bt){"AbortError"!==bt.name&&(bt.result&&bt.result.errors&&bt.result.data&&Qe.next(bt.result),Qe.error(bt))}),function(){it&&it.abort()}})})},JJ=function(t){function n(e){void 0===e&&(e={});var i=t.call(this,KJ(e).request)||this;return i.options=e,i}return io(n,t),n}(wd);const{toString:tR,hasOwnProperty:ZJ}=Object.prototype,nR=Function.prototype.toString,Y1=new Map;function ds(t,n){try{return q1(t,n)}finally{Y1.clear()}}function q1(t,n){if(t===n)return!0;const e=tR.call(t);if(e!==tR.call(n))return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(sR(t,n))return!0;const s=iR(t),r=iR(n),o=s.length;if(o!==r.length)return!1;for(let a=0;a=0&&t.indexOf(n,e)===e}(s,tZ)}}return!1}function iR(t){return Object.keys(t).filter(eZ,t)}function eZ(t){return void 0!==this[t]}const tZ="{ [native code] }";function sR(t,n){let e=Y1.get(t);if(e){if(e.has(n))return!0}else Y1.set(t,e=new Set);return e.add(n),!1}var iZ=function(){return Object.create(null)},rR=Array.prototype,sZ=rR.forEach,rZ=rR.slice,Fh=function(){function t(n,e){void 0===n&&(n=!0),void 0===e&&(e=iZ),this.weakness=n,this.makeData=e}return t.prototype.lookup=function(){for(var n=[],e=0;e-1})}function hZ(t){return t&&X1(["client"],t)&&X1(["export"],t)}Tr(function(){return window.document.createElement}),Tr(function(){return navigator.userAgent.indexOf("jsdom")>=0});var gZ=Object.prototype.hasOwnProperty;function oR(){for(var t=[],n=0;n1)for(var i=new Md,s=1;s0||!1}function hR(t,n,e){var i=0;return t.forEach(function(s,r){n.call(this,s,r,t)&&(t[i++]=s)},e),t.length=i,t}var fR={kind:"Field",name:{kind:"Name",value:"__typename"}};function pR(t,n){return t.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&pR(n[e.name.value],n)})}function nx(t){return pR(Rh(t)||function(t){__DEV__?Rt("Document"===t.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Rt("Document"===t.kind,48),__DEV__?Rt(t.definitions.length<=1,"Fragment must have exactly one definition."):Rt(t.definitions.length<=1,49);var n=t.definitions[0];return __DEV__?Rt("FragmentDefinition"===n.kind,"Must be a fragment definition."):Rt("FragmentDefinition"===n.kind,50),n}(t),im(om(t)))?null:t}function ix(t){return function(e){return t.some(function(i){return i.name&&i.name===e.name.value||i.test&&i.test(e)})}}function gR(t,n){var e=Object.create(null),i=[],s=Object.create(null),r=[],o=nx(ko(n,{Variable:{enter:function(a,l,c){"VariableDefinition"!==c.kind&&(e[a.name.value]=!0)}},Field:{enter:function(a){if(t&&a.directives&&t.some(function(c){return c.remove})&&a.directives&&a.directives.some(ix(t)))return a.arguments&&a.arguments.forEach(function(c){"Variable"===c.value.kind&&i.push({name:c.value.name.value})}),a.selectionSet&&mR(a.selectionSet).forEach(function(c){r.push({name:c.name.value})}),null}},FragmentSpread:{enter:function(a){s[a.name.value]=!0}},Directive:{enter:function(a){if(ix(t)(a))return null}}}));return o&&hR(i,function(a){return!!a.name&&!e[a.name]}).length&&(o=function(t,n){var e=function(t){return function(e){return t.some(function(i){return e.value&&"Variable"===e.value.kind&&e.value.name&&(i.name===e.value.name.value||i.test&&i.test(e))})}}(t);return nx(ko(n,{OperationDefinition:{enter:function(i){return et(et({},i),{variableDefinitions:i.variableDefinitions?i.variableDefinitions.filter(function(s){return!t.some(function(r){return r.name===s.variable.name.value})}):[]})}},Field:{enter:function(i){var s=t.some(function(o){return o.remove});if(s){var r=0;if(i.arguments&&i.arguments.forEach(function(o){e(o)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(i){if(e(i))return null}}}))}(i,o)),o&&hR(r,function(a){return!!a.name&&!s[a.name]}).length&&(o=function(t,n){function e(i){if(t.some(function(s){return s.name===i.name.value}))return null}return nx(ko(n,{FragmentSpread:{enter:e},FragmentDefinition:{enter:e}}))}(r,o)),o}var sx=Object.assign(function(t){return ko(t,{SelectionSet:{enter:function(n,e,i){if(!i||"OperationDefinition"!==i.kind){var s=n.selections;if(s&&!s.some(function(a){return ea(a)&&("__typename"===a.name.value||0===a.name.value.lastIndexOf("__",0))})){var o=i;if(!(ea(o)&&o.directives&&o.directives.some(function(a){return"export"===a.name.value})))return et(et({},n),{selections:Dh(Dh([],s,!0),[fR],!1)})}}}}})},{added:function(t){return t===fR}}),xZ={test:function(t){var n="connection"===t.name.value;return n&&(!t.arguments||!t.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&Rt.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),n}};function mR(t){var n=[];return t.selections.forEach(function(e){(ea(e)||$P(e))&&e.selectionSet?mR(e.selectionSet).forEach(function(i){return n.push(i)}):"FragmentSpread"===e.kind&&n.push(e)}),n}function TZ(t){return"query"===z1(t).operation?t:ko(t,{OperationDefinition:{enter:function(s){return et(et({},s),{operation:"query"})}}})}var _R=new Map;function rx(t){var n=_R.get(t)||1;return _R.set(t,n+1),"".concat(t,":").concat(n,":").concat(Math.random().toString(36).slice(2))}function Lh(t,n,e){var i=[];t.forEach(function(s){return s[n]&&i.push(s)}),i.forEach(function(s){return s[n](e)})}function yR(t){function n(e){Object.defineProperty(t,e,{value:li})}return lZ&&Symbol.species&&n(Symbol.species),n("@@species"),t}function vR(t){return t&&"function"==typeof t.then}var Bh=function(t){function n(e){var i=t.call(this,function(s){return i.addObserver(s),function(){return i.removeObserver(s)}})||this;return i.observers=new Set,i.addCount=0,i.promise=new Promise(function(s,r){i.resolve=s,i.reject=r}),i.handlers={next:function(s){null!==i.sub&&(i.latest=["next",s],Lh(i.observers,"next",s))},error:function(s){var r=i.sub;null!==r&&(r&&setTimeout(function(){return r.unsubscribe()}),i.sub=null,i.latest=["error",s],i.reject(s),Lh(i.observers,"error",s))},complete:function(){var s=i.sub;if(null!==s){var r=i.sources.shift();r?vR(r)?r.then(function(o){return i.sub=o.subscribe(i.handlers)}):i.sub=r.subscribe(i.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),Lh(i.observers,"complete"))}}},i.cancel=function(s){i.reject(s),i.sources=[],i.handlers.complete()},i.promise.catch(function(s){}),"function"==typeof e&&(e=[new li(e)]),vR(e)?e.then(function(s){return i.start(s)},i.handlers.error):i.start(e),i}return io(n,t),n.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},n.prototype.deliverLastMessage=function(e){if(this.latest){var i=this.latest[0],s=e[i];s&&s.call(e,this.latest[1]),null===this.sub&&"next"===i&&e.complete&&e.complete()}},n.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},n.prototype.removeObserver=function(e,i){this.observers.delete(e)&&--this.addCount<1&&!i&&this.handlers.complete()},n.prototype.cleanup=function(e){var i=this,s=!1,r=function(){s||(s=!0,i.observers.delete(o),e())},o={next:r,error:r,complete:r},a=this.addCount;this.addObserver(o),this.addCount=a},n}(li);function Rl(t){return Array.isArray(t)&&t.length>0}yR(Bh);var Sd=function(t){function n(e){var i=e.graphQLErrors,s=e.clientErrors,r=e.networkError,o=e.errorMessage,a=e.extraInfo,l=t.call(this,o)||this;return l.graphQLErrors=i||[],l.clientErrors=s||[],l.networkError=r||null,l.message=o||function(t){var n="";return(Rl(t.graphQLErrors)||Rl(t.clientErrors))&&(t.graphQLErrors||[]).concat(t.clientErrors||[]).forEach(function(i){n+="".concat(i?i.message:"Error message not found.","\n")}),t.networkError&&(n+="".concat(t.networkError.message,"\n")),n=n.replace(/\n$/,"")}(l),l.extraInfo=a,l.__proto__=n.prototype,l}return io(n,t),n}(Error),IZ=Object.prototype.toString;function bR(t){return ox(t)}function ox(t,n){switch(IZ.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var e=t.slice(0);return n.set(t,e),e.forEach(function(s,r){e[r]=ox(s,n)}),e;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach(function(s){i[s]=ox(t[s],n)}),i;default:return t}}var PZ=Object.assign,RZ=Object.hasOwnProperty,ax=function(t){function n(e){var i=e.queryManager,s=e.queryInfo,r=e.options,o=t.call(this,function($){try{var L=$._subscription._observer;L&&!L.error&&(L.error=NZ)}catch(Te){}var J=!o.observers.size;o.observers.add($);var ue=o.last;return ue&&ue.error?$.error&&$.error(ue.error):ue&&ue.result&&$.next&&$.next(ue.result),J&&o.reobserve().catch(function(){}),function(){o.observers.delete($)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=s,o.queryManager=i,o.isTornDown=!1;var a=i.defaultOptions.watchQuery,c=(void 0===a?{}:a).fetchPolicy,d=void 0===c?"cache-first":c,u=r.fetchPolicy,f=void 0===u?d:u,_=r.initialFetchPolicy,T=void 0===_?"standby"===f?d:f:_;o.options=et(et({},r),{initialFetchPolicy:T,fetchPolicy:f}),o.queryId=s.queryId||i.generateQueryId();var k=Rh(o.query);return o.queryName=k&&k.name&&k.name.value,o}return io(n,t),Object.defineProperty(n.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),n.prototype.result=function(){var e=this;return new Promise(function(i,s){var r={next:function(a){i(a),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:s},o=e.subscribe(r)})},n.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var i=this.getLastResult(!0),s=this.queryInfo.networkStatus||i&&i.networkStatus||$n.ready,r=et(et({},i),{loading:Oh(s),networkStatus:s}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"!==a&&"no-cache"!==a&&"standby"!==a&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(r.data=l.result),ds(r.data,{})&&(r.data=void 0),l.complete?(delete r.partial,l.complete&&r.networkStatus===$n.loading&&("cache-first"===a||"cache-only"===a)&&(r.networkStatus=$n.ready,r.loading=!1)):r.partial=!0,__DEV__&&!l.complete&&!this.options.partialRefetch&&!r.loading&&!r.data&&!r.error&&wR(l.missing)}return e&&this.updateLastResult(r),r},n.prototype.isDifferentFromLastResult=function(e){return!this.last||!ds(this.last.result,e)},n.prototype.getLast=function(e,i){var s=this.last;if(s&&s[e]&&(!i||ds(s.variables,this.variables)))return s[e]},n.prototype.getLastResult=function(e){return this.getLast("result",e)},n.prototype.getLastError=function(e){return this.getLast("error",e)},n.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},n.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},n.prototype.refetch=function(e){var i,s={pollInterval:0},r=this.options.fetchPolicy;if(s.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&RZ.call(e,"variables")){var o=UP(this.query),a=o.variableDefinitions;(!a||!a.some(function(l){return"variables"===l.variable.name.value}))&&__DEV__&&Rt.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(i=o.name)||void 0===i?void 0:i.value)||JSON.stringify(o),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!ds(this.options.variables,e)&&(s.variables=this.options.variables=et(et({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(s,$n.refetch)},n.prototype.fetchMore=function(e){var i=this,s=et(et({},e.query?e:et(et(et(et({},this.options),{query:this.query}),e),{variables:et(et({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=$n.fetchMore,s.notifyOnNetworkStatusChange&&this.observe();var l=new Set;return this.queryManager.fetchQuery(r,s,$n.fetchMore).then(function(c){return i.queryManager.removeQuery(r),o.networkStatus===$n.fetchMore&&(o.networkStatus=a),i.queryManager.cache.batch({update:function(d){var u=e.updateQuery;u?d.updateQuery({query:i.query,variables:i.variables,returnPartialData:!0,optimistic:!1},function(f){return u(f,{fetchMoreResult:c.data,variables:s.variables})}):d.writeQuery({query:s.query,variables:s.variables,data:c.data})},onWatchUpdated:function(d){l.add(d.query)}}),c}).finally(function(){l.has(i.query)||xR(i)})},n.prototype.subscribeToMore=function(e){var i=this,s=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var o=e.updateQuery;o&&i.updateQuery(function(a,l){return o(a,{subscriptionData:r,variables:l.variables})})},error:function(r){e.onError?e.onError(r):__DEV__&&Rt.error("Unhandled GraphQL subscription error",r)}});return this.subscriptions.add(s),function(){i.subscriptions.delete(s)&&s.unsubscribe()}},n.prototype.setOptions=function(e){return this.reobserve(e)},n.prototype.setVariables=function(e){return ds(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},$n.setVariables):Promise.resolve())},n.prototype.updateQuery=function(e){var i=this.queryManager,r=e(i.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(i.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),i.broadcastQueries())},n.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},n.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},n.prototype.applyNextFetchPolicy=function(e,i){if(i.nextFetchPolicy){var s=i.fetchPolicy,r=void 0===s?"cache-first":s,o=i.initialFetchPolicy,a=void 0===o?r:o;"standby"===r||(i.fetchPolicy="function"==typeof i.nextFetchPolicy?i.nextFetchPolicy(r,{reason:e,options:i,observable:this,initialFetchPolicy:a}):"variables-changed"===e?a:i.nextFetchPolicy)}return i.fetchPolicy},n.prototype.fetch=function(e,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,i)},n.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var s=this.pollingInfo,r=this.options.pollInterval;if(!r)return void(s&&(clearTimeout(s.timeout),delete this.pollingInfo));if(!s||s.interval!==r){__DEV__?Rt(r,"Attempted to start a polling query without a polling interval."):Rt(r,10),(s||(this.pollingInfo={})).interval=r;var a=function(){e.pollingInfo&&(Oh(e.queryInfo.networkStatus)?l():e.reobserve({fetchPolicy:"network-only"},$n.poll).then(l,l))},l=function(){var c=e.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(a,c.interval))};l()}}},n.prototype.updateLastResult=function(e,i){return void 0===i&&(i=this.variables),this.last=et(et({},this.last),{result:this.queryManager.assumeImmutableResults?e:bR(e),variables:i}),Rl(e.errors)||delete this.last.error,this.last},n.prototype.reobserve=function(e,i){var s=this;this.isTornDown=!1;var r=i===$n.refetch||i===$n.fetchMore||i===$n.poll,o=this.options.variables,a=this.options.fetchPolicy,l=cm(this.options,e||{}),c=r?l:PZ(this.options,l);r||(this.updatePolling(),e&&e.variables&&!ds(e.variables,o)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",c),void 0===i&&(i=$n.setVariables)));var d=c.variables&&et({},c.variables),u=this.fetch(c,i),f={next:function(_){s.reportResult(_,d)},error:function(_){s.reportError(_,d)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=f),u.addObserver(f),u.promise},n.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},n.prototype.reportResult=function(e,i){var s=this.getLastError();(s||this.isDifferentFromLastResult(e))&&((s||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,i),Lh(this.observers,"next",e))},n.prototype.reportError=function(e,i){var s=et(et({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:$n.error,loading:!1});this.updateLastResult(s,i),Lh(this.observers,"error",this.last.error=e)},n.prototype.hasObservers=function(){return this.observers.size>0},n.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},n}(li);function xR(t){var n=t.options,e=n.fetchPolicy,i=n.nextFetchPolicy;return"cache-and-network"===e||"network-only"===e?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=i,"function"==typeof i?i.apply(this,arguments):e}}):t.reobserve()}function NZ(t){__DEV__&&Rt.error("Unhandled error",t.message,t.stack)}function wR(t){__DEV__&&t&&__DEV__&&Rt.debug("Missing cache result fields: ".concat(JSON.stringify(t)),t)}yR(ax);let Cs=null;const CR={};let FZ=1;function MR(t){try{return t()}catch(n){}}const lx="@wry/context:Slot",DR=MR(()=>globalThis)||MR(()=>global)||Object.create(null),SR=DR[lx]||Array[lx]||function(t){try{Object.defineProperty(DR,lx,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(class{constructor(){this.id=["slot",FZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=Cs;n;n=n.parent)if(this.id in n.slots){const e=n.slots[this.id];if(e===CR)break;return n!==Cs&&(Cs.slots[this.id]=e),!0}return Cs&&(Cs.slots[this.id]=CR),!1}getValue(){if(this.hasValue())return Cs.slots[this.id]}withValue(n,e,i,s){const o=Cs;Cs={parent:o,slots:{__proto__:null,[this.id]:n}};try{return e.apply(s,i)}finally{Cs=o}}static bind(n){const e=Cs;return function(){const i=Cs;try{return Cs=e,n.apply(this,arguments)}finally{Cs=i}}}static noContext(n,e,i){if(!Cs)return n.apply(i,e);{const s=Cs;try{return Cs=null,n.apply(i,e)}finally{Cs=s}}}});function HZ(){}var dx,jZ=function(){function t(n,e){void 0===n&&(n=1/0),void 0===e&&(e=HZ),this.max=n,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(n){return this.map.has(n)},t.prototype.get=function(n){var e=this.getNode(n);return e&&e.value},t.prototype.getNode=function(n){var e=this.map.get(n);if(e&&e!==this.newest){var i=e.older,s=e.newer;s&&(s.older=i),i&&(i.newer=s),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=s)}return e},t.prototype.set=function(n,e){var i=this.getNode(n);return i?i.value=e:(i={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.map.set(n,i),i.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(n){var e=this.map.get(n);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(n),this.dispose(e.value,n),!0)},t}(),hm=new SR,zZ=Object.prototype.hasOwnProperty,ux=void 0===(dx=Array.from)?function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n}:dx;function fm(t){var n=t.unsubscribe;"function"==typeof n&&(t.unsubscribe=void 0,n())}var Vh=[];function Ed(t,n){if(!t)throw new Error(n||"assertion failure")}function TR(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var WZ=function(){function t(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}return t.prototype.peek=function(){if(1===this.value.length&&!Fa(this))return AR(this),this.value[0]},t.prototype.recompute=function(n){return Ed(!this.recomputing,"already recomputing"),AR(this),Fa(this)?function(t,n){return NR(t),hm.withValue(t,qZ,[t,n]),function(t,n){if("function"==typeof t.subscribe)try{fm(t),t.unsubscribe=t.subscribe.apply(null,n)}catch(e){return t.setDirty(),!1}return!0}(t,n)&&function(t){t.dirty=!1,!Fa(t)&&OR(t)}(t),TR(t.value)}(this,n):TR(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,kR(this),fm(this))},t.prototype.dispose=function(){var n=this;this.setDirty(),NR(this),hx(this,function(e,i){e.setDirty(),FR(e,n)})},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(n){n.add(this),this.deps||(this.deps=Vh.pop()||new Set),this.deps.add(n)},t.prototype.forgetDeps=function(){var n=this;this.deps&&(ux(this.deps).forEach(function(e){return e.delete(n)}),this.deps.clear(),Vh.push(this.deps),this.deps=null)},t.count=0,t}();function AR(t){var n=hm.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),Fa(t)?IR(n,t):PR(n,t),n}function qZ(t,n){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,n)}catch(e){t.value[1]=e}t.recomputing=!1}function Fa(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function kR(t){hx(t,IR)}function OR(t){hx(t,PR)}function hx(t,n){var e=t.parents.size;if(e)for(var i=ux(t.parents),s=0;s0&&e===n.length&&t[e-1]===n[e-1]}(e,n.value)||t.setDirty(),RR(t,n),!Fa(t)&&OR(t)}function RR(t,n){var e=t.dirtyChildren;e&&(e.delete(n),0===e.size&&(Vh.length<100&&Vh.push(e),t.dirtyChildren=null))}function NR(t){t.childValues.size>0&&t.childValues.forEach(function(n,e){FR(t,e)}),t.forgetDeps(),Ed(null===t.dirtyChildren)}function FR(t,n){n.parents.delete(t),t.childValues.delete(n),RR(t,n)}var KZ={setDirty:!0,dispose:!0,forget:!0};function LR(t){var n=new Map,e=t&&t.subscribe;function i(s){var r=hm.getValue();if(r){var o=n.get(s);o||n.set(s,o=new Set),r.dependOn(o),"function"==typeof e&&(fm(o),o.unsubscribe=e(s))}}return i.dirty=function(r,o){var a=n.get(r);if(a){var l=o&&zZ.call(KZ,o)?o:"setDirty";ux(a).forEach(function(c){return c[l]()}),n.delete(r),fm(a)}},i}function BR(){var t=new Fh("function"==typeof WeakMap);return function(){return t.lookupArray(arguments)}}BR();var fx=new Set;function pm(t,n){void 0===n&&(n=Object.create(null));var e=new jZ(n.max||Math.pow(2,16),function(c){return c.dispose()}),i=n.keyArgs,s=n.makeCacheKey||BR(),r=function(){var c=s.apply(null,i?i.apply(null,arguments):arguments);if(void 0===c)return t.apply(null,arguments);var d=e.get(c);d||(e.set(c,d=new WZ(t)),d.subscribe=n.subscribe,d.forget=function(){return e.delete(c)});var u=d.recompute(Array.prototype.slice.call(arguments));return e.set(c,d),fx.add(e),hm.hasValue()||(fx.forEach(function(f){return f.clean()}),fx.clear()),u};function o(c){var d=e.get(c);d&&d.setDirty()}function a(c){var d=e.get(c);if(d)return d.peek()}function l(c){return e.delete(c)}return Object.defineProperty(r,"size",{get:function(){return e.map.size},configurable:!1,enumerable:!1}),r.dirtyKey=o,r.dirty=function(){o(s.apply(null,arguments))},r.peekKey=a,r.peek=function(){return a(s.apply(null,arguments))},r.forgetKey=l,r.forget=function(){return l(s.apply(null,arguments))},r.makeCacheKey=s,r.getKey=i?function(){return s.apply(null,i.apply(null,arguments))}:s,Object.freeze(r)}var Ms=null,VR={},JZ=1,px="@wry/context:Slot",gx=Array,mx=gx[px]||function(){var t=function(){function t(){this.id=["slot",JZ++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var n=Ms;n;n=n.parent)if(this.id in n.slots){var e=n.slots[this.id];if(e===VR)break;return n!==Ms&&(Ms.slots[this.id]=e),!0}return Ms&&(Ms.slots[this.id]=VR),!1},t.prototype.getValue=function(){if(this.hasValue())return Ms.slots[this.id]},t.prototype.withValue=function(n,e,i,s){var r,o=((r={__proto__:null})[this.id]=n,r),a=Ms;Ms={parent:a,slots:o};try{return e.apply(s,i)}finally{Ms=a}},t.bind=function(n){var e=Ms;return function(){var i=Ms;try{return Ms=e,n.apply(this,arguments)}finally{Ms=i}}},t.noContext=function(n,e,i){if(!Ms)return n.apply(i,e);var s=Ms;try{return Ms=null,n.apply(i,e)}finally{Ms=s}},t}();try{Object.defineProperty(gx,px,{value:gx[px]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}(),yx=new mx,jR=new WeakMap;function Hh(t){var n=jR.get(t);return n||jR.set(t,n={vars:new Set,dep:LR()}),n}function zR(t){Hh(t).vars.forEach(function(n){return n.forgetCache(t)})}function iee(t){var n=new Set,e=new Set,i=function(r){if(arguments.length>0){if(t!==r){t=r,n.forEach(function(l){Hh(l).dep.dirty(i),see(l)});var o=Array.from(e);e.clear(),o.forEach(function(l){return l(t)})}}else{var a=yx.getValue();a&&(s(a),Hh(a).dep(i))}return t};i.onNextChange=function(r){return e.add(r),function(){e.delete(r)}};var s=i.attachCache=function(r){return n.add(r),Hh(r).vars.add(i),i};return i.forgetCache=function(r){return n.delete(r)},i}function see(t){t.broadcastWatches&&t.broadcastWatches()}var GR=function(){function t(n){var i=n.client,s=n.resolvers,r=n.fragmentMatcher;this.cache=n.cache,i&&(this.client=i),s&&this.addResolvers(s),r&&this.setFragmentMatcher(r)}return t.prototype.addResolvers=function(n){var e=this;this.resolvers=this.resolvers||{},Array.isArray(n)?n.forEach(function(i){e.resolvers=oR(e.resolvers,i)}):this.resolvers=oR(this.resolvers,n)},t.prototype.setResolvers=function(n){this.resolvers={},this.addResolvers(n)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(n){var e=n.document,i=n.remoteResult,s=n.context,r=n.variables,o=n.onlyRunForcedResolvers,a=void 0!==o&&o;return ka(this,void 0,void 0,function(){return Oa(this,function(l){return e?[2,this.resolveDocument(e,i.data,s,r,this.fragmentMatcher,a).then(function(c){return et(et({},i),{data:c.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(n){this.fragmentMatcher=n},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(n){return X1(["client"],n)&&this.resolvers?n:null},t.prototype.serverQuery=function(n){return function(t){rm(t);var n=gR([{test:function(e){return"client"===e.name.value},remove:!0}],t);return n&&(n=ko(n,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(s){return ea(s)&&"__typename"===s.name.value}))return null}}})),n}(n)},t.prototype.prepareContext=function(n){var e=this.cache;return et(et({},n),{cache:e,getCacheKey:function(i){return e.identify(i)}})},t.prototype.addExportedVariables=function(n,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),ka(this,void 0,void 0,function(){return Oa(this,function(s){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,e)||{},this.prepareContext(i),e).then(function(r){return et(et({},e),r.exportedVariables)})]:[2,et({},e)]})})},t.prototype.shouldForceResolvers=function(n){var e=!1;return ko(n,{Directive:{enter:function(i){if("client"===i.name.value&&i.arguments&&(e=i.arguments.some(function(s){return"always"===s.name.value&&"BooleanValue"===s.value.kind&&!0===s.value.value})))return Cd}}}),e},t.prototype.buildRootValueFromCache=function(n,e){return this.cache.diff({query:TZ(n),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(n,e,i,s,r,o){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=!1),ka(this,void 0,void 0,function(){var a,l,c,d,u,f,_,T,k;return Oa(this,function($){return a=z1(n),l=om(n),c=im(l),u=(d=a.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",_=(f=this).cache,T=f.client,k={fragmentMap:c,context:et(et({},i),{cache:_,client:T}),variables:s,fragmentMatcher:r,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,e,k).then(function(L){return{result:L,exportedVariables:k.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(n,e,i){return ka(this,void 0,void 0,function(){var s,r,o,a,c=this;return Oa(this,function(d){return s=i.fragmentMap,r=i.context,o=i.variables,a=[e],[2,Promise.all(n.selections.map(function(u){return ka(c,void 0,void 0,function(){var f;return Oa(this,function(T){return dm(u,o)?ea(u)?[2,this.resolveField(u,e,i).then(function(k){var $;void 0!==k&&a.push((($={})[Ol(u)]=k,$))})]:($P(u)?f=u:(f=s[u.name.value],__DEV__?Rt(f,"No fragment named ".concat(u.name.value)):Rt(f,9)),f&&f.typeCondition&&i.fragmentMatcher(e,f.typeCondition.name.value,r)?[2,this.resolveSelectionSet(f.selectionSet,e,i).then(function(k){a.push(k)})]:[2]):[2]})})})).then(function(){return Q1(a)})]})})},t.prototype.resolveField=function(n,e,i){return ka(this,void 0,void 0,function(){var s,r,o,a,l,c,d,u,f,_=this;return Oa(this,function(T){return s=i.variables,r=n.name.value,o=Ol(n),a=r!==o,l=e[o]||e[r],c=Promise.resolve(l),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(n))&&(d=e.__typename||i.defaultOperationType,(u=this.resolvers&&this.resolvers[d])&&(f=u[a?r:o])&&(c=Promise.resolve(yx.withValue(this.cache,f,[e,sm(n,s),i.context,{field:n,fragmentMap:i.fragmentMap}])))),[2,c.then(function(k){return void 0===k&&(k=l),n.directives&&n.directives.forEach(function($){"export"===$.name.value&&$.arguments&&$.arguments.forEach(function(L){"as"===L.name.value&&"StringValue"===L.value.kind&&(i.exportedVariables[L.value.value]=k)})}),n.selectionSet&&null!=k?Array.isArray(k)?_.resolveSubSelectedArray(n,k,i):n.selectionSet?_.resolveSelectionSet(n.selectionSet,k,i):void 0:k})]})})},t.prototype.resolveSubSelectedArray=function(n,e,i){var s=this;return Promise.all(e.map(function(r){return null===r?null:Array.isArray(r)?s.resolveSubSelectedArray(n,r,i):n.selectionSet?s.resolveSelectionSet(n.selectionSet,r,i):void 0}))},t}(),Td=new(Il?WeakMap:Map);function vx(t,n){var e=t[n];"function"==typeof e&&(t[n]=function(){return Td.set(t,(Td.get(t)+1)%1e15),e.apply(this,arguments)})}function $R(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var bx=function(){function t(n,e){void 0===e&&(e=n.generateQueryId()),this.queryId=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=n.cache;Td.has(i)||(Td.set(i,0),vx(i,"evict"),vx(i,"modify"),vx(i,"reset"))}return t.prototype.init=function(n){var e=n.networkStatus||$n.loading;return this.variables&&this.networkStatus!==$n.loading&&!ds(this.variables,n.variables)&&(e=$n.setVariables),ds(n.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:n.document,variables:n.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),n.observableQuery&&this.setObservableQuery(n.observableQuery),n.lastRequestId&&(this.lastRequestId=n.lastRequestId),this},t.prototype.reset=function(){$R(this),this.lastDiff=void 0,this.dirty=!1},t.prototype.getDiff=function(n){void 0===n&&(n=this.variables);var e=this.getDiffOptions(n);if(this.lastDiff&&ds(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=n);var i=this.observableQuery;if(i&&"no-cache"===i.options.fetchPolicy)return{complete:!1};var s=this.cache.diff(e);return this.updateLastDiff(s,e),s},t.prototype.updateLastDiff=function(n,e){this.lastDiff=n?{diff:n,options:e||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(n){var e;return void 0===n&&(n=this.variables),{query:this.document,variables:n,returnPartialData:!0,optimistic:!0,canonizeResults:null===(e=this.observableQuery)||void 0===e?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(n){var e=this,i=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(n),!this.dirty&&!ds(i&&i.result,n&&n.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.setObservableQuery=function(n){var e=this;n!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=n,n?(n.queryInfo=this,this.listeners.add(this.oqListener=function(){e.getDiff().fromOptimisticTransaction?n.observe():xR(n)})):delete this.oqListener)},t.prototype.notify=function(){var n=this;$R(this),this.shouldNotify()&&this.listeners.forEach(function(e){return e(n)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Oh(this.networkStatus)&&this.observableQuery){var n=this.observableQuery.options.fetchPolicy;if("cache-only"!==n&&"cache-and-network"!==n)return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var n=this.observableQuery;n&&n.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(n){var e=this;void 0===n&&(n=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var s=et(et({},this.getDiffOptions(n)),{watcher:this,callback:function(r){return e.setDiff(r)}});(!this.lastWatch||!ds(s,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=s))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(n,e){var i=this.lastWrite;return!(i&&i.dmCount===Td.get(this.cache)&&ds(e,i.variables)&&ds(n.data,i.result.data))},t.prototype.markResult=function(n,e,i){var s=this;this.graphQLErrors=Rl(n.errors)?n.errors:[],this.reset(),"no-cache"===e.fetchPolicy?this.updateLastDiff({result:n.data,complete:!0},this.getDiffOptions(e.variables)):0!==i&&(xx(n,e.errorPolicy)?this.cache.performTransaction(function(r){if(s.shouldWrite(n,e.variables))r.writeQuery({query:s.document,data:n.data,variables:e.variables,overwrite:1===i}),s.lastWrite={result:n,variables:e.variables,dmCount:Td.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete)return void(n.data=s.lastDiff.diff.result);var o=s.getDiffOptions(e.variables),a=r.diff(o);s.stopped||s.updateWatch(e.variables),s.updateLastDiff(a,o),a.complete&&(n.data=a.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=$n.ready},t.prototype.markError=function(n){return this.networkStatus=$n.error,this.lastWrite=void 0,this.reset(),n.graphQLErrors&&(this.graphQLErrors=n.graphQLErrors),n.networkError&&(this.networkError=n.networkError),n},t}();function xx(t,n){void 0===n&&(n="none");var e="ignore"===n||"all"===n,i=!um(t);return!i&&e&&t.data&&(i=!0),i}var ree=Object.prototype.hasOwnProperty,oee=function(){function t(n){var e=n.cache,i=n.link,s=n.defaultOptions,r=n.queryDeduplication,o=void 0!==r&&r,a=n.onBroadcast,l=n.ssrMode,c=void 0!==l&&l,d=n.clientAwareness,u=void 0===d?{}:d,f=n.localState,_=n.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Il?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=e,this.link=i,this.defaultOptions=s||Object.create(null),this.queryDeduplication=o,this.clientAwareness=u,this.localState=f||new GR({cache:e}),this.ssrMode=c,this.assumeImmutableResults=!!_,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var n=this;this.queries.forEach(function(e,i){n.stopQueryNoBroadcast(i)}),this.cancelPendingFetches(__DEV__?new Qn("QueryManager stopped while query was in flight"):new Qn(11))},t.prototype.cancelPendingFetches=function(n){this.fetchCancelFns.forEach(function(e){return e(n)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(n){var e,i,s=n.mutation,r=n.variables,o=n.optimisticResponse,a=n.updateQueries,l=n.refetchQueries,c=void 0===l?[]:l,d=n.awaitRefetchQueries,u=void 0!==d&&d,f=n.update,_=n.onQueryUpdated,T=n.fetchPolicy,k=void 0===T?(null===(e=this.defaultOptions.mutate)||void 0===e?void 0:e.fetchPolicy)||"network-only":T,$=n.errorPolicy,L=void 0===$?(null===(i=this.defaultOptions.mutate)||void 0===i?void 0:i.errorPolicy)||"none":$,J=n.keepRootFields,ue=n.context;return ka(this,void 0,void 0,function(){var Te,Fe,Be;return Oa(this,function(Ue){switch(Ue.label){case 0:return __DEV__?Rt(s,"mutation option is required. You must specify your GraphQL document in the mutation option."):Rt(s,12),__DEV__?Rt("network-only"===k||"no-cache"===k,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Rt("network-only"===k||"no-cache"===k,13),Te=this.generateMutationId(),s=this.transform(s).document,r=this.getVariables(s,r),this.transform(s).hasClientExports?[4,this.localState.addExportedVariables(s,r,ue)]:[3,2];case 1:r=Ue.sent(),Ue.label=2;case 2:return Fe=this.mutationStore&&(this.mutationStore[Te]={mutation:s,variables:r,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:Te,document:s,variables:r,fetchPolicy:k,errorPolicy:L,context:ue,updateQueries:a,update:f,keepRootFields:J}),this.broadcastQueries(),Be=this,[2,new Promise(function(He,it){return tx(Be.getObservableFromLink(s,et(et({},ue),{optimisticResponse:o}),r,!1),function(lt){if(um(lt)&&"none"===L)throw new Sd({graphQLErrors:lt.errors});Fe&&(Fe.loading=!1,Fe.error=null);var Xe=et({},lt);return"function"==typeof c&&(c=c(Xe)),"ignore"===L&&um(Xe)&&delete Xe.errors,Be.markMutationResult({mutationId:Te,result:Xe,document:s,variables:r,fetchPolicy:k,errorPolicy:L,context:ue,update:f,updateQueries:a,awaitRefetchQueries:u,refetchQueries:c,removeOptimistic:o?Te:void 0,onQueryUpdated:_,keepRootFields:J})}).subscribe({next:function(lt){Be.broadcastQueries(),He(lt)},error:function(lt){Fe&&(Fe.loading=!1,Fe.error=lt),o&&Be.cache.removeOptimistic(Te),Be.broadcastQueries(),it(lt instanceof Sd?lt:new Sd({networkError:lt}))}})})]}})})},t.prototype.markMutationResult=function(n,e){var i=this;void 0===e&&(e=this.cache);var s=n.result,r=[],o="no-cache"===n.fetchPolicy;if(!o&&xx(s,n.errorPolicy)){r.push({result:s.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables});var a=n.updateQueries;a&&this.queries.forEach(function(c,d){var u=c.observableQuery,f=u&&u.queryName;if(f&&ree.call(a,f)){var _=a[f],T=i.queries.get(d),k=T.document,$=T.variables,L=e.diff({query:k,variables:$,returnPartialData:!0,optimistic:!1}),J=L.result;if(L.complete&&J){var Te=_(J,{mutationResult:s,queryName:k&&j1(k)||void 0,queryVariables:$});Te&&r.push({result:Te,dataId:"ROOT_QUERY",query:k,variables:$})}}})}if(r.length>0||n.refetchQueries||n.update||n.onQueryUpdated||n.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(c){o||r.forEach(function(f){return c.write(f)});var d=n.update;if(d){if(!o){var u=c.diff({id:"ROOT_MUTATION",query:i.transform(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});u.complete&&(s=et(et({},s),{data:u.result}))}d(c,s,{context:n.context,variables:n.variables})}!o&&!n.keepRootFields&&c.modify({id:"ROOT_MUTATION",fields:function(f,_){return"__typename"===_.fieldName?f:_.DELETE}})},include:n.refetchQueries,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(function(c){return l.push(c)}),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(l).then(function(){return s})}return Promise.resolve(s)},t.prototype.markMutationOptimistic=function(n,e){var i=this,s="function"==typeof n?n(e.variables):n;return this.cache.recordOptimisticTransaction(function(r){try{i.markMutationResult(et(et({},e),{result:{data:s}}),r)}catch(o){__DEV__&&Rt.error(o)}},e.mutationId)},t.prototype.fetchQuery=function(n,e,i){return this.fetchQueryObservable(n,e,i).promise},t.prototype.getQueryStore=function(){var n=Object.create(null);return this.queries.forEach(function(e,i){n[i]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}}),n},t.prototype.resetErrors=function(n){var e=this.queries.get(n);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(n){var e=this.transformCache;if(!e.has(n)){var i=this.cache.transformDocument(n),s=function(t){return gR([xZ],rm(t))}(this.cache.transformForLink(i)),r=this.localState.clientQuery(i),o=s&&this.localState.serverQuery(s),a={document:i,hasClientExports:hZ(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:r,serverQuery:o,defaultVars:G1(Rh(i)),asQuery:et(et({},i),{definitions:i.definitions.map(function(c){return"OperationDefinition"===c.kind&&"query"!==c.operation?et(et({},c),{operation:"query"}):c})})},l=function(c){c&&!e.has(c)&&e.set(c,a)};l(n),l(i),l(r),l(o)}return e.get(n)},t.prototype.getVariables=function(n,e){return et(et({},this.transform(n).defaultVars),e)},t.prototype.watchQuery=function(n){void 0===(n=et(et({},n),{variables:this.getVariables(n.query,n.variables)})).notifyOnNetworkStatusChange&&(n.notifyOnNetworkStatusChange=!1);var e=new bx(this),i=new ax({queryManager:this,queryInfo:e,options:n});return this.queries.set(i.queryId,e),e.init({document:i.query,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(n,e){var i=this;return void 0===e&&(e=this.generateQueryId()),__DEV__?Rt(n.query,"query option is required. You must specify your GraphQL document in the query option."):Rt(n.query,14),__DEV__?Rt("Document"===n.query.kind,'You must wrap the query string in a "gql" tag.'):Rt("Document"===n.query.kind,15),__DEV__?Rt(!n.returnPartialData,"returnPartialData option only supported on watchQuery."):Rt(!n.returnPartialData,16),__DEV__?Rt(!n.pollInterval,"pollInterval option only supported on watchQuery."):Rt(!n.pollInterval,17),this.fetchQuery(e,n).finally(function(){return i.stopQuery(e)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(n){this.stopQueryInStoreNoBroadcast(n),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(n){var e=this.queries.get(n);e&&e.stop()},t.prototype.clearStore=function(n){return void 0===n&&(n={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new Qn("Store reset while query was in flight (not completed in link chain)"):new Qn(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=$n.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(n)},t.prototype.getObservableQueries=function(n){var e=this;void 0===n&&(n="active");var i=new Map,s=new Map,r=new Set;return Array.isArray(n)&&n.forEach(function(o){"string"==typeof o?s.set(o,!1):function(t){return Ii(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}(o)?s.set(e.transform(o).document,!1):Ii(o)&&o.query&&r.add(o)}),this.queries.forEach(function(o,a){var l=o.observableQuery,c=o.document;if(l){if("all"===n)return void i.set(a,l);var d=l.queryName;if("standby"===l.options.fetchPolicy||"active"===n&&!l.hasObservers())return;("active"===n||d&&s.has(d)||c&&s.has(c))&&(i.set(a,l),d&&s.set(d,!0),c&&s.set(c,!0))}}),r.size&&r.forEach(function(o){var a=rx("legacyOneTimeQuery"),l=e.getQuery(a).init({document:o.query,variables:o.variables}),c=new ax({queryManager:e,queryInfo:l,options:et(et({},o),{fetchPolicy:"network-only"})});Rt(c.queryId===a),l.setObservableQuery(c),i.set(a,c)}),__DEV__&&s.size&&s.forEach(function(o,a){o||__DEV__&&Rt.warn("Unknown query ".concat("string"==typeof a?"named ":"").concat(JSON.stringify(a,null,2)," requested in refetchQueries options.include array"))}),i},t.prototype.reFetchObservableQueries=function(n){var e=this;void 0===n&&(n=!1);var i=[];return this.getObservableQueries(n?"all":"active").forEach(function(s,r){var o=s.options.fetchPolicy;s.resetLastResults(),(n||"standby"!==o&&"cache-only"!==o)&&i.push(s.refetch()),e.getQuery(r).setDiff(null)}),this.broadcastQueries(),Promise.all(i)},t.prototype.setObservableQuery=function(n){this.getQuery(n.queryId).setObservableQuery(n)},t.prototype.startGraphQLSubscription=function(n){var e=this,i=n.query,s=n.fetchPolicy,r=n.errorPolicy,o=n.variables,a=n.context,l=void 0===a?{}:a;i=this.transform(i).document,o=this.getVariables(i,o);var c=function(u){return e.getObservableFromLink(i,l,u).map(function(f){if("no-cache"!==s&&(xx(f,r)&&e.cache.write({query:i,result:f.data,dataId:"ROOT_SUBSCRIPTION",variables:u}),e.broadcastQueries()),um(f))throw new Sd({graphQLErrors:f.errors});return f})};if(this.transform(i).hasClientExports){var d=this.localState.addExportedVariables(i,o,l).then(c);return new li(function(u){var f=null;return d.then(function(_){return f=_.subscribe(u)},u.error),function(){return f&&f.unsubscribe()}})}return c(o)},t.prototype.stopQuery=function(n){this.stopQueryNoBroadcast(n),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(n){this.stopQueryInStoreNoBroadcast(n),this.removeQuery(n)},t.prototype.removeQuery=function(n){this.fetchCancelFns.delete(n),this.queries.has(n)&&(this.getQuery(n).stop(),this.queries.delete(n))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(n){return n.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(n,e,i,s){var o,r=this;void 0===s&&(s=null!==(o=null==e?void 0:e.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var a,l=this.transform(n).serverQuery;if(l){var d=this.inFlightLinkObservables,u=this.link,f={query:l,variables:i,operationName:j1(l)||void 0,context:this.prepareContext(et(et({},e),{forceFetch:!s}))};if(e=f.context,s){var _=d.get(l)||new Map;d.set(l,_);var T=Pl(i);if(!(a=_.get(T))){var k=new Bh([$1(u,f)]);_.set(T,a=k),k.cleanup(function(){_.delete(T)&&_.size<1&&d.delete(l)})}}else a=new Bh([$1(u,f)])}else a=new Bh([li.of({data:{}})]),e=this.prepareContext(e);var $=this.transform(n).clientQuery;return $&&(a=tx(a,function(L){return r.localState.runResolvers({document:$,remoteResult:L,context:e,variables:i})})),a},t.prototype.getResultsFromLink=function(n,e,i){var s=n.lastRequestId=this.generateRequestId();return tx(this.getObservableFromLink(n.document,i.context,i.variables),function(r){var o=Rl(r.errors);if(s>=n.lastRequestId){if(o&&"none"===i.errorPolicy)throw n.markError(new Sd({graphQLErrors:r.errors}));n.markResult(r,i,e),n.markReady()}var a={data:r.data,loading:!1,networkStatus:$n.ready};return o&&"ignore"!==i.errorPolicy&&(a.errors=r.errors,a.networkStatus=$n.error),a},function(r){var o=function(t){return t.hasOwnProperty("graphQLErrors")}(r)?r:new Sd({networkError:r});throw s>=n.lastRequestId&&n.markError(o),o})},t.prototype.fetchQueryObservable=function(n,e,i){var s=this;void 0===i&&(i=$n.loading);var r=this.transform(e.query).document,o=this.getVariables(r,e.variables),a=this.getQuery(n),l=this.defaultOptions.watchQuery,c=e.fetchPolicy,u=e.errorPolicy,_=e.returnPartialData,k=e.notifyOnNetworkStatusChange,L=e.context,ue=Object.assign({},e,{query:r,variables:o,fetchPolicy:void 0===c?l&&l.fetchPolicy||"cache-first":c,errorPolicy:void 0===u?l&&l.errorPolicy||"none":u,returnPartialData:void 0!==_&&_,notifyOnNetworkStatusChange:void 0!==k&&k,context:void 0===L?{}:L}),Te=function(Ue){ue.variables=Ue;var He=s.fetchQueryByPolicy(a,ue,i);return"standby"!==ue.fetchPolicy&&He.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",e),He},Fe=function(){return s.fetchCancelFns.delete(n)};this.fetchCancelFns.set(n,function(Ue){Fe(),setTimeout(function(){return Be.cancel(Ue)})});var Be=new Bh(this.transform(ue.query).hasClientExports?this.localState.addExportedVariables(ue.query,ue.variables,ue.context).then(Te):Te(ue.variables));return Be.promise.then(Fe,Fe),Be},t.prototype.refetchQueries=function(n){var e=this,i=n.updateCache,s=n.include,r=n.optimistic,o=void 0!==r&&r,a=n.removeOptimistic,l=void 0===a?o?rx("refetchQueries"):void 0:a,c=n.onQueryUpdated,d=new Map;s&&this.getObservableQueries(s).forEach(function(f,_){d.set(_,{oq:f,lastDiff:e.getQuery(_).getDiff()})});var u=new Map;return i&&this.cache.batch({update:i,optimistic:o&&l||!1,removeOptimistic:l,onWatchUpdated:function(f,_,T){var k=f.watcher instanceof bx&&f.watcher.observableQuery;if(k){if(c){d.delete(k.queryId);var $=c(k,_,T);return!0===$&&($=k.refetch()),!1!==$&&u.set(k,$),$}null!==c&&d.set(k.queryId,{oq:k,lastDiff:T,diff:_})}}}),d.size&&d.forEach(function(f,_){var L,T=f.oq,k=f.lastDiff,$=f.diff;if(c){if(!$){var J=T.queryInfo;J.reset(),$=J.getDiff()}L=c(T,$,k)}(!c||!0===L)&&(L=T.refetch()),!1!==L&&u.set(T,L),_.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(_)}),l&&this.cache.removeOptimistic(l),u},t.prototype.fetchQueryByPolicy=function(n,e,i){var s=this,r=e.query,o=e.variables,a=e.fetchPolicy,l=e.refetchWritePolicy,c=e.errorPolicy,d=e.returnPartialData,u=e.context,f=e.notifyOnNetworkStatusChange,_=n.networkStatus;n.init({document:this.transform(r).document,variables:o,networkStatus:i});var T=function(){return n.getDiff(o)},k=function(Te,Fe){void 0===Fe&&(Fe=n.networkStatus||$n.loading);var Be=Te.result;__DEV__&&!d&&!ds(Be,{})&&wR(Te.missing);var Ue=function(He){return li.of(et({data:He,loading:Oh(Fe),networkStatus:Fe},Te.complete?null:{partial:!0}))};return Be&&s.transform(r).hasForcedResolvers?s.localState.runResolvers({document:r,remoteResult:{data:Be},context:u,variables:o,onlyRunForcedResolvers:!0}).then(function(He){return Ue(He.data||void 0)}):Ue(Be)},$="no-cache"===a?0:i===$n.refetch&&"merge"!==l?1:2,L=function(){return s.getResultsFromLink(n,$,{variables:o,context:u,fetchPolicy:a,errorPolicy:c})},J=f&&"number"==typeof _&&_!==i&&Oh(i);switch(a){default:case"cache-first":return(ue=T()).complete?[k(ue,n.markReady())]:d||J?[k(ue),L()]:[L()];case"cache-and-network":var ue;return(ue=T()).complete||d||J?[k(ue),L()]:[L()];case"cache-only":return[k(T(),n.markReady())];case"network-only":return J?[k(T()),L()]:[L()];case"no-cache":return J?[k(n.getDiff()),L()]:[L()];case"standby":return[]}},t.prototype.getQuery=function(n){return n&&!this.queries.has(n)&&this.queries.set(n,new bx(this,n)),this.queries.get(n)},t.prototype.prepareContext=function(n){void 0===n&&(n={});var e=this.localState.prepareContext(n);return et(et({},e),{clientAwareness:this.clientAwareness})},t}();function wx(t,n){return cm(t,n,n.variables&&{variables:et(et({},t&&t.variables),n.variables)})}var UR=!1,WR=function(){function t(n){var e=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var i=n.uri,o=n.cache,a=n.ssrMode,l=void 0!==a&&a,c=n.ssrForceFetchDelay,d=void 0===c?0:c,u=n.connectToDevTools,f=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,_=n.queryDeduplication,T=void 0===_||_,k=n.defaultOptions,$=n.assumeImmutableResults,L=void 0!==$&&$,J=n.resolvers,ue=n.typeDefs,Te=n.fragmentMatcher,Fe=n.name,Be=n.version,Ue=n.link;if(Ue||(Ue=i?new JJ({uri:i,credentials:n.credentials,headers:n.headers}):wd.empty()),!o)throw __DEV__?new Qn("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Qn(7);if(this.link=Ue,this.cache=o,this.disableNetworkFetches=l||d>0,this.queryDeduplication=T,this.defaultOptions=k||Object.create(null),this.typeDefs=ue,d&&setTimeout(function(){return e.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!UR&&__DEV__&&(UR=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var He=window.navigator,it=He&&He.userAgent,lt=void 0;"string"==typeof it&&(it.indexOf("Chrome/")>-1?lt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":it.indexOf("Firefox/")>-1&&(lt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),lt&&__DEV__&&Rt.log("Download the Apollo DevTools for a better development experience: "+lt)}this.version="3.6.9",this.localState=new GR({cache:o,client:this,resolvers:J,fragmentMatcher:Te}),this.queryManager=new oee({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:T,ssrMode:l,clientAwareness:{name:Fe,version:Be},localState:this.localState,assumeImmutableResults:L,onBroadcast:f?function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.getQueryStore(),mutations:e.queryManager.mutationStore||{}},dataWithOptimisticResults:e.cache.extract(!0)})}:void 0})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(n){return this.defaultOptions.watchQuery&&(n=wx(this.defaultOptions.watchQuery,n)),this.disableNetworkFetches&&("network-only"===n.fetchPolicy||"cache-and-network"===n.fetchPolicy)&&(n=et(et({},n),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(n)},t.prototype.query=function(n){return this.defaultOptions.query&&(n=wx(this.defaultOptions.query,n)),__DEV__?Rt("cache-and-network"!==n.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Rt("cache-and-network"!==n.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===n.fetchPolicy&&(n=et(et({},n),{fetchPolicy:"cache-first"})),this.queryManager.query(n)},t.prototype.mutate=function(n){return this.defaultOptions.mutate&&(n=wx(this.defaultOptions.mutate,n)),this.queryManager.mutate(n)},t.prototype.subscribe=function(n){return this.queryManager.startGraphQLSubscription(n)},t.prototype.readQuery=function(n,e){return void 0===e&&(e=!1),this.cache.readQuery(n,e)},t.prototype.readFragment=function(n,e){return void 0===e&&(e=!1),this.cache.readFragment(n,e)},t.prototype.writeQuery=function(n){this.cache.writeQuery(n),this.queryManager.broadcastQueries()},t.prototype.writeFragment=function(n){this.cache.writeFragment(n),this.queryManager.broadcastQueries()},t.prototype.__actionHookForDevTools=function(n){this.devToolsHookCb=n},t.prototype.__requestRaw=function(n){return $1(this.link,n)},t.prototype.resetStore=function(){var n=this;return Promise.resolve().then(function(){return n.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(n.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return n.reFetchObservableQueries()})},t.prototype.clearStore=function(){var n=this;return Promise.resolve().then(function(){return n.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(n.clearStoreCallbacks.map(function(e){return e()}))})},t.prototype.onResetStore=function(n){var e=this;return this.resetStoreCallbacks.push(n),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(i){return i!==n})}},t.prototype.onClearStore=function(n){var e=this;return this.clearStoreCallbacks.push(n),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(i){return i!==n})}},t.prototype.reFetchObservableQueries=function(n){return this.queryManager.reFetchObservableQueries(n)},t.prototype.refetchQueries=function(n){var e=this.queryManager.refetchQueries(n),i=[],s=[];e.forEach(function(o,a){i.push(a),s.push(o)});var r=Promise.all(s);return r.queries=i,r.results=s,r.catch(function(o){__DEV__&&Rt.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(o))}),r},t.prototype.getObservableQueries=function(n){return void 0===n&&(n="active"),this.queryManager.getObservableQueries(n)},t.prototype.extract=function(n){return this.cache.extract(n)},t.prototype.restore=function(n){return this.cache.restore(n)},t.prototype.addResolvers=function(n){this.localState.addResolvers(n)},t.prototype.setResolvers=function(n){this.localState.setResolvers(n)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(n){this.localState.setFragmentMatcher(n)},t.prototype.setLink=function(n){this.link=this.queryManager.link=n},t}();const YR=new class extends no{}(class extends Hg{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}});class uee{constructor(n,e=0){this.scheduler=n,this.delay=e}call(n,e){return e.subscribe(new gm(n,this.scheduler,this.delay))}}class gm extends se{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(gm.dispatch,this.delay,new hee(n,this.destination)))}_next(n){this.scheduleMessage(Ks.createNext(n))}_error(n){this.scheduleMessage(Ks.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Ks.createComplete()),this.unsubscribe()}}class hee{constructor(n,e){this.notification=n,this.destination=e}}function qR(t){return new S(n=>(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}class pee{constructor(n){this.zone=n,this.now=Date.now?Date.now:()=>+new Date}schedule(n,e=0,i){return this.zone.run(()=>YR.schedule(n,e,i))}}function XR(t){return t[te]=()=>t,t}function QR(t,n){return t.pipe(function(t,n=0){return function(i){return i.lift(new uee(t,n))}}(new pee(n)))}function KR(t,n,e){return t&&void 0!==t[n]?t[n]:e}class mee{constructor(n,e,i){this.obsQuery=n;const s=QR(K(XR(this.obsQuery)),e);this.valueChanges=i.useInitialLoading?s.pipe(function(t){return function(e){return new S(function(s){const r=t.getCurrentResult(),{loading:o,errors:a,error:l,partial:c,data:d}=r,{partialRefetch:u,fetchPolicy:f}=t.options,_=a||l;return u&&c&&(!d||0===Object.keys(d).length)&&"cache-only"!==f&&!o&&!_&&s.next(Object.assign(Object.assign({},r),{loading:!0,networkStatus:$n.loading})),e.subscribe(s)})}}(this.obsQuery)):s,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setOptions(n){return this.obsQuery.setOptions(n)}setVariables(n){return this.obsQuery.setVariables(n)}}const _ee=new pt("APOLLO_FLAGS"),Cx=new pt("APOLLO_OPTIONS"),yee=new pt("APOLLO_NAMED_OPTIONS");class JR{constructor(n,e,i){this.ngZone=n,this.flags=e,this._client=i,this.useInitialLoading=KR(e,"useInitialLoading",!1),this.useMutationLoading=KR(e,"useMutationLoading",!1)}watchQuery(n){return new mee(this.ensureClient().watchQuery(Object.assign({},n)),this.ngZone,Object.assign({useInitialLoading:this.useInitialLoading},n))}query(n){return qR(()=>this.ensureClient().query(Object.assign({},n)))}mutate(n){var e;return function(t,n){return n?t.pipe(ai({loading:!0}),g(e=>Object.assign(Object.assign({},e),{loading:!!e.loading}))):t.pipe(g(e=>Object.assign(Object.assign({},e),{loading:!1})))}(qR(()=>this.ensureClient().mutate(Object.assign({},n))),null!==(e=n.useMutationLoading)&&void 0!==e?e:this.useMutationLoading)}subscribe(n,e){const i=K(XR(this.ensureClient().subscribe(Object.assign({},n))));return e&&!0!==e.useZone?i:QR(i,this.ngZone)}getClient(){return this.client}setClient(n){this.client=n}get client(){return this._client}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let ZR=(()=>{class t extends JR{constructor(e,i,s,r){if(super(e,r),this._ngZone=e,this.map=new Map,i&&this.createDefault(i),s&&"object"==typeof s)for(let o in s)s.hasOwnProperty(o)&&this.createNamed(o,s[o])}create(e,i){Mx(i)?this.createDefault(e):this.createNamed(i,e)}default(){return this}use(e){return Mx(e)?this.default():this.map.get(e)}createDefault(e){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new WR(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new JR(this._ngZone,this.flags,new WR(i)))}removeClient(e){Mx(e)?this._client=void 0:this.map.delete(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(Cx,8),Me(yee,8),Me(_ee,8))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();function Mx(t){return!t||"default"===t}const vee=[ZR];let bee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:vee}),t})(),jh=(()=>{class t{constructor(e,i,s){this.http=e,this.translateService=i,this.apollo=s,this.userId=Vg,this.lastErrTime=0,this.lastFailedRequestTime=0}setUserId(e){return e=encodeURI(e),this.getUserData(e).pipe(g(i=>(this.userId=null==i?void 0:i.id,i)))}useDefaultId(){this.userId=Vg}getUserData(e){return this.http.get(`${dr}/api/users/${e}`)}getGeneralGenresStats(){return this.http.get(`${JI}/main/genres-stats`)}getTotalTimeSpentAnime(){return this.http.get(`${JI}/main/total-time`)}getUserHistory(){return this.http.get(`${dr}/api/users/${this.userId}/history?limit=2&locale=${this.translateService.getLanguage()}`).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})))}getUserList(){return this.http.get(`${dr}/api/v2/user_rates/?user_id=${this.userId}`)}getAnimeDetailedList(e,i=1){return(null==e?void 0:e.length)>0?this.http.get(`${dr}/api/animes/?ids=${e.join(",")}&limit=50&page=${i}`):Et([])}getAnimeList(e=1,i){return this.http.get(`${dr}/api/users/${i.id||this.userId}/anime_rates?limit=${Bg[Oi.ANIME]}&page=${e}`)}getMangaList(e=1,i){return this.http.get(`${dr}/api/users/${i.id||this.userId}/manga_rates?limit=${Bg[Oi.MANGA]}&page=${e}`)}getUserRates(e=1,i){return this.apollo.query({query:"Anime"===i.targetType?jK:zK,variables:{userId:i.id||this.userId,limit:i.limit,targetType:i.targetType,page:e}}).pipe(g(s=>{var r;return null===(r=null==s?void 0:s.data)||void 0===r?void 0:r.userRates}))}getDataTypeListGraphQL(e,i){return this.fetchPaginatedData(this.getUserRates,{id:i,targetType:Rs.capitalizeFirstLetter(e)})}getDataTypeListGraphQLParallel(e,i,s){return this.fetchDataInParallel(this.getUserRates,i,{id:null==s?void 0:s.id,targetType:Rs.capitalizeFirstLetter(e),statuses:null==s?void 0:s.statuses}).pipe(iP(TQ,[]),g(r=>Rs.flatten(r)))}getAllAnimeList(e){return this.fetchPaginatedData(this.getAnimeList,{id:e,targetType:Oi.MANGA}).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})),$i(()=>Et([])))}getAllMangaList(e){return this.fetchPaginatedData(this.getMangaList,{id:e,targetType:Oi.MANGA}).pipe(Gg(v1({scalingDuration:1500,excludedStatusCodes:[500],maxRetryAttempts:20})),$i(()=>Et([])))}rateLimit(e,i,s,r){return e.pipe(hh((a,l)=>{const c=Date.now(),d=c-s;if((a=a.filter(u=>u.until>d)).length>=i){const f=a[a.length-1],_=a[0].until+s*Math.floor(a.length/i);a.push({delay:f.until{const l=a[a.length-1],c=Et(l.value);if(this.lastErrTime>0){const d=Date.now()-this.lastErrTime;return d0){const a=Math.max(Math.ceil(i/Bg[Oi.ANIME]),1);return this.rateLimit(function(t=0,n,e){return new S(i=>{void 0===n&&(n=t,t=0);let s=0,r=t;if(e)return e.schedule(MQ,0,{index:s,count:n,start:t,subscriber:i});for(;;){if(s++>=n){i.complete();break}if(i.next(r++),i.closed)break}})}(1,a),4,1500,2e4).pipe(Re(l=>0===l?[]:e.bind(this).call(this,l,s).pipe(Zo(250),fi(c=>o=0),Gg(c=>c.pipe(Xo((d,u)=>{var f;const _=this.lastFailedRequestTime,T=Date.now();return r++,o++,this.lastFailedRequestTime=Date.now(),429===(null===(f=null==d?void 0:d.networkError)||void 0===f?void 0:f.status)&&r<20?T-_>5e3?Et(d).pipe(Zo(100)):(this.lastErrTime=T,Et(d).pipe(Zo(1e4+200*o))):zg(d)}))))))}return Et([])}fetchPaginatedData(e,i){let s=!0,r=1;return e.bind(this).call(this,r,i).pipe(function(t,n=Number.POSITIVE_INFINITY,e){return n=(n||0)<1?Number.POSITIVE_INFINITY:n,i=>i.lift(new RQ(t,n,e))}(o=>s?e.bind(this).call(this,r,i):Eo),sP(o=>{var a;return!!s&&(o.length<(i.limit||Bg[null===(a=null==i?void 0:i.targetType)||void 0===a?void 0:a.toLowerCase()])?s=!1:r++,!0)}),iP((o,a)=>[...o,...a],[]))}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa),Me(qs),Me(ZR))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dee={provide:Lb,useFactory:function(t,n){return()=>{if(Sa(n)){const e=Array.from(t.querySelectorAll(`[class*=${eN}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(s=>{s.classList.contains(`${eN}ssr`)&&s.parentNode?s.parentNode.removeChild(s):s.className.replace(i,"")})}}},deps:[wt,xs],multi:!0},eN="flex-layout-";let Dx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Dee]}),t})();class Nl{constructor(n=!1,e="all",i="",s="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=s,this.priority=r,this.property=""}clone(){return new Nl(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let tN=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,s){const r=this.stylesheet.get(e);r?r.set(i,s):this.stylesheet.set(e,new Map([[i,s]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const s=this.stylesheet.get(e);let r="";if(s){const o=s.get(i);("number"==typeof o||"string"==typeof o)&&(r=o+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Sx={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},oo=new pt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Sx}),Fl=new pt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Ex=new pt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function nN(t,n){return t=t?t.clone():new Nl,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}const Tx="inline",iN=["row","column","row-reverse","column-reverse"];function Tee(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let xi=(()=>{class t{constructor(e,i,s,r){this.elementRef=e,this.styleBuilder=i,this.styler=s,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const s=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,s)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const s=this.styleBuilder,r=s.shouldCache;let o=this.styleCache.get(e);(!o||!r)&&(o=s.buildStyles(e,i),r&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),s.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[s,r]=this.styler.getFlowDirection(e);if(!r&&i){const o=function(t){let[n,e,i]=function(t){t=t?t.toLowerCase():"";let[n,e,i]=t.split(" ");return iN.find(s=>s===n)||(n=iN[0]),e===Tx&&(e=i!==Tx?i:"",i=Tx),[n,Tee(e),!!i]}(t);return function(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}(s);this.styler.applyStyleToElements(o,[e])}return s.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,s=this.nativeElement){this.styler.applyStyleToElement(s,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){!function(){throw new Error("invalid")}()},t.\u0275dir=Le({type:t,features:[rn]}),t})();const kee=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],sN="(orientation: portrait) and (max-width: 599.98px)",rN="(orientation: landscape) and (max-width: 959.98px)",oN="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",aN="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",lN="(orientation: portrait) and (min-width: 840px)",cN="(orientation: landscape) and (min-width: 1280px)",ta={HANDSET:`${sN}, ${rN}`,TABLET:`${oN} , ${aN}`,WEB:`${lN}, ${cN} `,HANDSET_PORTRAIT:`${sN}`,TABLET_PORTRAIT:`${oN} `,WEB_PORTRAIT:`${lN}`,HANDSET_LANDSCAPE:`${rN}`,TABLET_LANDSCAPE:`${aN}`,WEB_LANDSCAPE:`${cN}`},Oee=[{alias:"handset",priority:2e3,mediaQuery:ta.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ta.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ta.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ta.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ta.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ta.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ta.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ta.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ta.WEB_PORTRAIT,overlapping:!0}],Pee=/(\.|-|_)/g;function Ree(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}function Lee(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?function(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e[i.alias],i):e[i.alias]=i}),function(t){return t.forEach(n=>{n.suffix||(n.suffix=function(t){return t.replace(Pee,"|").split("|").map(Ree).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}const dN=new pt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=bu(Ex),n=bu(oo),e=[].concat.apply([],(t||[]).map(s=>Array.isArray(s)?s:[s]));return Lee((n.disableDefaultBps?[]:kee).concat(n.addOrientationBps?Oee:[]),e)}});function zh(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function Bee(t,n){return(t.priority||0)-(n.priority||0)}let Gh=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Bee)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias==e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery==e)}get overlappings(){return this.items.filter(e=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,i){let s=this.findByMap.get(e);return s||(s=this.items.find(i)||null,this.findByMap.set(e,s)),s||null}}return t.\u0275fac=function(e){return new(e||t)(Me(dN))},t.\u0275prov=Ze({factory:function(){return new t(Me(dN))},token:t,providedIn:"root"}),t})(),ym=(()=>{class t{constructor(e,i,s){this._zone=e,this._platformId=i,this._document=s,this.source=new ti(new Nl(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,s)=>{i.matches&&e.push(s)}),e}isActive(e){const i=this.registry.get(e);return i?i.matches:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const s=this._observable$.pipe(mn(o=>!i||e.indexOf(o.mediaQuery)>-1));return De(new S(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),s)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],s=[];return function(t,n){const e=t.filter(i=>!uN[i]);if(e.length>0){const i=e.join(", ");try{const s=n.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(s),e.forEach(r=>uN[r]=s)}catch(s){console.error(s)}}}(i,this._document),i.forEach(r=>{const o=l=>{this._zone.run(()=>this.source.next(new Nl(l.matches,r)))};let a=this.registry.get(r);a||(a=this.buildMQL(r),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(r,a)),a.matches&&s.push(new Nl(!0,r))}),s}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Sa(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(xs),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(xs),Me(wt))},token:t,providedIn:"root"}),t})();const uN={},Ad="print",Gee={alias:Ad,mediaQuery:Ad,priority:1e3};let hN=(()=>{class t{constructor(e,i,s){this.breakpoints=e,this.layoutConfig=i,this._document=s,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new $ee,this.deactivations=[]}withPrintQuery(e){return[...e,Ad]}isPrintEvent(e){return e.mediaQuery.startsWith(Ad)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(zh)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?i.mediaQuery:""),nN(e,i)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Nl(!0,Ad))),e.updateStyles())},s=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",s),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(s)}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const i=this.breakpoints.findByQuery(e.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(zh))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(Me(Gh),Me(oo),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(Gh),Me(oo),Me(wt))},token:t,providedIn:"root"}),t})();class $ee{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Gee),n.sort(zh),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Ad)}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}function fN(t){for(let n in t){let e=t[n]||"";switch(n){case"display":t.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":e=e||"row",t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e}}return t}let ci=(()=>{class t{constructor(e,i,s,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=s,this.layoutConfig=r}applyStyleToElement(e,i,s=null){let r={};"string"==typeof i&&(r[i]=s,i=r),r=this.layoutConfig.disableVendorPrefixes?i:fN(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const s=this.layoutConfig.disableVendorPrefixes?e:fN(e);i.forEach(r=>{this._applyMultiValueStyleToElement(s,r)})}getFlowDirection(e){const i="flex-direction";let s=this.lookupStyle(e,i);return[s||"row",this.lookupInlineStyle(e,i)||dd(this._platformId)&&this._serverModuleLoaded?s:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){return e.getAttribute(i)||""}lookupInlineStyle(e,i){return Sa(this._platformId)?e.style.getPropertyValue(i):this._getServerStyle(e,i)}lookupStyle(e,i,s=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(Sa(this._platformId)?s||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(s=>{const r=e[s],o=Array.isArray(r)?r:[r];o.sort();for(let a of o)a=a?a+"":"",Sa(this._platformId)||!this._serverModuleLoaded?Sa(this._platformId)?i.style.setProperty(s,a):this._setServerStyle(i,s,a):this._serverStylesheet.addStyleToElement(i,s,a)})}_setServerStyle(e,i,s){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=this._readStyleAttribute(e);r[i]=s||"",this._writeStyleAttribute(e,r)}_getServerStyle(e,i){return this._readStyleAttribute(e)[i]||""}_readStyleAttribute(e){const i={},s=e.getAttribute("style");if(s){const r=s.split(/;+/g);for(let o=0;o0){const l=a.indexOf(":");if(-1===l)throw new Error(`Invalid CSS style: ${a}`);i[a.substr(0,l).trim()]=a.substr(l+1).trim()}}}return i}_writeStyleAttribute(e,i){let s="";for(const r in i)i[r]&&(s+=r+":"+i[r]+";");e.setAttribute("style",s)}}return t.\u0275fac=function(e){return new(e||t)(Me(tN),Me(Fl),Me(xs),Me(oo))},t.\u0275prov=Ze({factory:function(){return new t(Me(tN),Me(Fl),Me(xs),Me(oo))},token:t,providedIn:"root"}),t})(),wi=(()=>{class t{constructor(e,i,s){this.matchMedia=e,this.breakpoints=i,this.hook=s,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);i&&((e=nN(e,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(zh),this.updateStyles()):!e.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(zh),this.updateStyles()))}init(e,i,s,r,o=[]){mN(this.updateMap,e,i,s),mN(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,s){const r=this.elementMap.get(e);if(r){const o=void 0!==s?r.get(s):this.getActivatedValues(r,i);if(o)return o.get(i)}}hasValue(e,i){const s=this.elementMap.get(e);if(s){const r=this.getActivatedValues(s,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,s,r){let o=this.elementMap.get(e);if(o){const l=(o.get(r)||new Map).set(i,s);o.set(r,l),this.elementMap.set(e,o)}else o=(new Map).set(r,(new Map).set(i,s)),this.elementMap.set(e,o);const a=this.getValue(e,i);void 0!==a&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(mn(s=>s.element===e&&s.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const s=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((o,a)=>{this.updateElement(i,a,o),s.delete(a)}),s.forEach(o=>{if(r=this.getActivatedValues(e,o),r){const a=r.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const s=this.clearMap.get(e);if(s){const r=s.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,s){const r=this.updateMap.get(e);if(r){const o=r.get(i);o&&(o(s),this.subject.next({element:e,key:i,value:s}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const s=this.elementMap.get(e);s&&(s.forEach((r,o)=>s.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const s=this.elementMap.get(e);if(s){const r=this.getActivatedValues(s,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let s=this.elementKeyMap.get(e);s||(s=new Set,this.elementKeyMap.set(e,s)),s.add(i)}watchExtraTriggers(e,i,s){if(s&&s.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const a=De(...s).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});r.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;rs.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(fi(this.hook.interceptEvents(this)),mn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Me(ym),Me(Gh),Me(hN))},t.\u0275prov=Ze({factory:function(){return new t(Me(ym),Me(Gh),Me(hN))},token:t,providedIn:"root"}),t})();function mN(t,n,e,i){if(void 0!==i){let s=t.get(n);s||(s=new Map,t.set(n,s)),s.set(e,i)}}function Vt(t){return null!=t&&"false"!=`${t}`}function Li(t,n=0){return _N(t)?Number(t):n}function _N(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function vm(t){return Array.isArray(t)?t:[t]}function Yi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function na(t){return t instanceof tt?t.nativeElement:t}function Tt(t){return n=>n.lift(new Wee(t))}class Wee{constructor(n){this.notifier=n}call(n,e){const i=new Yee(n),s=Se(this.notifier,new ne(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class Yee extends _e{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let Zee=(()=>{class t extends xi{constructor(e,i,s,r,o,a,l){super(e,null,i,s),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Ma(r,o,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ci),C(wi),C(wr),C(xa),C(ji),C(Ma,10))},t.\u0275dir=Le({type:t,inputs:{klass:["class","klass"]},features:[Je]}),t})();const ete=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Ax=(()=>{class t extends Zee{constructor(){super(...arguments),this.inputs=ete}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Je]}),t})();class rte{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function yN(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function bN(t){const[n,...e]=t.split(":");return new rte(n,e.join(":"))}function xN(t,n){return n.key&&(t[n.key]=n.value),t}let lte=(()=>{class t extends xi{constructor(e,i,s,r,o,a,l,c,d){super(e,null,i,s),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new xl(e,o,a)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=c&&dd(d)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=s=>this.sanitizer.sanitize(Ln.STYLE,s)||"";if(e)switch(yN(e)){case"string":return wN(function(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return wN(e,i);default:return function(t,n){let e=[];return"set"===yN(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function(t,n){return t.map(bN).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(xN,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ci),C(wi),C(wl),C(xa),C(ji),C(xl,10),C(Fl),C(xs))},t.\u0275dir=Le({type:t,features:[Je]}),t})();const cte=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let $h=(()=>{class t extends lte{constructor(){super(...arguments),this.inputs=cte}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Je]}),t})();function wN(t,n){return t.map(bN).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(xN,{})}let Ix,CN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx]]}),t})();function Ar(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Cm(t,n=jg){return e=>e.lift(new xte(t,n))}class xte{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new wte(n,this.dueTime,this.scheduler))}}class wte extends se{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Cte,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function Cte(t){t.debouncedNext()}function Mm(t){return n=>n.lift(new Mte(t))}class Mte{constructor(n){this.total=n}call(n,e){return e.subscribe(new Dte(n,this.total))}}class Dte extends se{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}function ia(t,n){return e=>e.lift(new Ste(t,n))}class Ste{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new Ete(n,this.compare,this.keySelector))}}class Ete extends se{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:s}=this;e=s?s(n):n}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}try{Ix="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){Ix=!1}let Od,yn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Sa(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ix)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Me(xs))},t.\u0275prov=Ze({factory:function(){return new t(Me(xs))},token:t,providedIn:"root"}),t})(),kd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const MN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function DN(){if(Od)return Od;if("object"!=typeof document||!document)return Od=new Set(MN),Od;let t=document.createElement("input");return Od=new Set(MN.filter(n=>(t.setAttribute("type",n),t.type===n))),Od}let Yh,Bl,Px;function Ll(t){return function(){if(null==Yh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yh=!0}))}finally{Yh=Yh||!1}return Yh}()?t:!!t.capture}function SN(){if(null==Bl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Bl=!1,Bl;if("scrollBehavior"in document.documentElement.style)Bl=!0;else{const t=Element.prototype.scrollTo;Bl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Bl}function EN(t){if(function(){if(null==Px){const t="undefined"!=typeof document?document.head:null;Px=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Px}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Vl(t){return t.composedPath?t.composedPath()[0]:t.target}function Rx(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Nx=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})(),TN=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=na(e);return new S(s=>{const o=this._observeElement(i).subscribe(s);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new E,s=this._mutationObserverFactory.create(r=>i.next(r));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:s}=this._observedElements.get(e);i&&i.disconnect(),s.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(Me(Nx))},t.\u0275prov=Ze({factory:function(){return new t(Me(Nx))},token:t,providedIn:"root"}),t})(),Sm=(()=>{class t{constructor(e,i,s){this._contentObserver=e,this._elementRef=i,this._ngZone=s,this.event=new ot,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Li(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Cm(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(TN),C(tt),C(xt))},t.\u0275dir=Le({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Nx]}),t})();function Tm(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const kN="cdk-describedby-message-container",ON="cdk-describedby-message",Am="cdk-describedby-host";let Pte=0;const Oo=new Map;let Ds=null,Fx=(()=>{class t{constructor(e){this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const r=Lx(i,s);"string"!=typeof i?(IN(i),Oo.set(r,{messageElement:i,referenceCount:0})):Oo.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;const r=Lx(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const o=Oo.get(r);o&&0===o.referenceCount&&this._deleteMessageElement(r)}Ds&&0===Ds.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Am}]`);for(let i=0;i0!=s.indexOf(ON));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=Oo.get(i);(function(t,n,e){const i=Tm(t,n);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Am,""),s.referenceCount++}_removeMessageReference(e,i){const s=Oo.get(i);s.referenceCount--,function(t,n,e){const s=Tm(t,n).filter(r=>r!=e.trim());s.length?t.setAttribute(n,s.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Am)}_isElementDescribedByMessage(e,i){const s=Tm(e,"aria-describedby"),r=Oo.get(i),o=r&&r.messageElement.id;return!!o&&-1!=s.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!s||r&&r.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})();function Lx(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function IN(t){t.id||(t.id=`${ON}-${Pte++}`)}class PN{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=fe.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,n instanceof Mo&&n.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Cm(n),mn(()=>this._pressedLetters.length>0),g(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let s=1;s!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Ar(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),s=e[i];this._activeItem=null==s?null:s,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const s=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Mo?this._items.toArray():this._items}}class Rte extends PN{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class km extends PN{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function Bx(t){return 0===t.offsetX&&0===t.offsetY}function Vx(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}"undefined"!=typeof Element&∈const BN=new pt("cdk-input-modality-detector-options"),Qte={ignoreKeys:[18,17,224,91,16]},Id=Ll({passive:!0,capture:!0});let HN=(()=>{class t{constructor(e,i,s,r){this._platform=e,this._mostRecentTarget=null,this._modality=new ti(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Vl(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Bx(o)?"keyboard":"mouse"),this._mostRecentTarget=Vl(o))},this._onTouchstart=o=>{Vx(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vl(o))},this._options=Object.assign(Object.assign({},Qte),r),this.modalityDetected=this._modality.pipe(Mm(1)),this.modalityChanged=this.modalityDetected.pipe(ia()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Id),s.addEventListener("mousedown",this._onMousedown,Id),s.addEventListener("touchstart",this._onTouchstart,Id)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Id),document.removeEventListener("mousedown",this._onMousedown,Id),document.removeEventListener("touchstart",this._onTouchstart,Id))}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt),Me(wt),Me(BN,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt),Me(wt),Me(BN,8))},token:t,providedIn:"root"}),t})();const jN=new pt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),zN=new pt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let GN=(()=>{class t{constructor(e,i,s,r){this._ngZone=i,this._defaultOptions=r,this._document=s,this._liveElement=e||this._createLiveElement()}announce(e,...i){const s=this._defaultOptions;let r,o;return 1===i.length&&"number"==typeof i[0]?o=i[0]:[r,o]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),null==o&&s&&(o=s.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof o&&(this._previousTimeout=setTimeout(()=>this.clear(),o))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let r=0;r{class t{constructor(e,i,s,r,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new E,this._rootNodeFocusAndBlurListener=a=>{const l=Vl(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const s=na(e);if(!this._platform.isBrowser||1!==s.nodeType)return Et(null);const r=EN(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new E,rootNode:r};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=na(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const r=na(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,s){s?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),r=Vl(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Om),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Om)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Om),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Om),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(yn),Me(HN),Me(wt,8),Me($N,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(yn),Me(HN),Me(wt,8),Me($N,8))},token:t,providedIn:"root"}),t})(),Jte=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new ot}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Js))},t.\u0275dir=Le({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const UN="cdk-high-contrast-black-on-white",WN="cdk-high-contrast-white-on-black",Hx="cdk-high-contrast-active";let YN=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Hx),e.remove(UN),e.remove(WN),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Hx),e.add(UN)):2===i&&(e.add(Hx),e.add(WN))}}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(wt))},token:t,providedIn:"root"}),t})(),qN=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(Me(YN))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[kd,Em]]}),t})();const XN=new pt("cdk-dir-doc",{providedIn:"root",factory:function(){return bu(wt)}});let Bi=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new ot,e){const s=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||s;this.value="ltr"===r||"rtl"===r?r:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Me(XN,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(XN,8))},token:t,providedIn:"root"}),t})(),Pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const QN=new Uo("12.2.13");class KN{}const sa="*";function Ns(t,n){return{type:7,name:t,definitions:n,options:{}}}function pi(t,n=null){return{type:4,styles:n,timings:t}}function JN(t,n=null){return{type:2,steps:t,options:n}}function Jt(t){return{type:6,styles:t,offset:null}}function Wn(t,n,e){return{type:0,name:t,styles:n,options:e}}function Xh(t){return{type:5,steps:t}}function ni(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function ZN(t=null){return{type:9,options:t}}function eF(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function tF(t){Promise.resolve(null).then(t)}class Rd{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){tF(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nF{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?tF(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function iF(){return"undefined"!=typeof window&&void 0!==window.document}function zx(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Va(t){switch(t.length){case 0:return new Rd;case 1:return t[0];default:return new nF(t)}}function sF(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(d=>{const u=d.offset,f=u==l,_=f&&c||{};Object.keys(d).forEach(T=>{let k=T,$=d[T];if("offset"!==T)switch(k=n.normalizePropertyName(k,o),$){case"!":$=s[T];break;case sa:$=r[T];break;default:$=n.normalizeStyleValue(T,k,$,o)}_[k]=$}),f||a.push(_),c=_,l=u}),o.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${o.join(d)}`)}return a}function Gx(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&$x(e,"start",t)));break;case"done":t.onDone(()=>i(e&&$x(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&$x(e,"destroy",t)))}}function $x(t,n,e){const i=e.totalTime,r=Ux(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function Ux(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ur(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function rF(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let Wx=(t,n)=>!1,Yx=(t,n)=>!1,oF=(t,n,e)=>[];const aF=zx();(aF||"undefined"!=typeof Element)&&(Wx=iF()?(t,n)=>{for(;n&&n!==document.documentElement;){if(n===t)return!0;n=n.parentNode||n.host}return!1}:(t,n)=>t.contains(n),Yx=(()=>{if(aF||Element.prototype.matches)return(t,n)=>t.matches(n);{const t=Element.prototype,n=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return n?(e,i)=>n.apply(e,[i]):Yx}})(),oF=(t,n,e)=>{let i=[];if(e){const s=t.querySelectorAll(n);for(let r=0;r{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");n[i]=t[e]}),n}let dF=(()=>{class t{validateStyleProperty(e){return qx(e)}matchesElement(e,i){return Xx(e,i)}containsElement(e,i){return Qx(e,i)}query(e,i,s){return Kx(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new Rd(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),Jx=(()=>{class t{}return t.NOOP=new dF,t})();const Zx="ng-enter",Im="ng-leave",Pm="ng-trigger",Rm=".ng-trigger",hF="ng-animating",ew=".ng-animating";function jl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:tw(parseFloat(n[1]),n[2])}function tw(t,n){return"s"===n?1e3*t:t}function Nm(t,n,e){return t.hasOwnProperty("duration")?t:function(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=tw(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=tw(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push("Duration values below 0 are not allowed for this animation step."),a=!0),r<0&&(n.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&n.splice(l,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:r,easing:o}}(t,n,e)}function Nd(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ha(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else Nd(t,e);return e}function pF(t,n,e){return e?n+":"+e+";":""}function gF(t){let n="";for(let e=0;e{const s=iw(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),zx()&&gF(t))}function zl(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=iw(e);t.style[i]=""}),zx()&&gF(t))}function Qh(t){return Array.isArray(t)?1==t.length?t[0]:JN(t):t}const nw=new RegExp("{{\\s*(.+?)\\s*}}","g");function mF(t){let n=[];if("string"==typeof t){let e;for(;e=nw.exec(t);)n.push(e[1]);nw.lastIndex=0}return n}function Fm(t,n,e){const i=t.toString(),s=i.replace(nw,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return s==i?t:s}function Lm(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const ane=/-+([a-z0-9])/g;function iw(t){return t.replace(ane,(...n)=>n[1].toUpperCase())}function lne(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _F(t,n){return 0===t||0===n}function yF(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;sfunction(t,n,e){if(":"==t[0]){const l=function(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${t}" is not supported`),n;const s=i[1],r=i[2],o=i[3];n.push(vF(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(vF(o,s))}(i,e,n)):e.push(t),e}const Vm=new Set(["true","1"]),Hm=new Set(["false","0"]);function vF(t,n){const e=Vm.has(t)||Hm.has(t),i=Vm.has(n)||Hm.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?Vm.has(t):Hm.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Vm.has(n):Hm.has(n)),o&&a}}const hne=new RegExp("s*:selfs*,?","g");function rw(t,n,e){return new fne(t).build(n,e)}class fne{constructor(n){this._driver=n}build(n,e){const i=new mne(e);return this._resetContextStyleTimingState(i),hr(this,Qh(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};if(i.styles.forEach(a=>{if(jm(a)){const l=a;Object.keys(l).forEach(c=>{mF(l[c]).forEach(d=>{o.hasOwnProperty(d)||r.add(d)})})}}),r.size){const a=Lm(r.values());e.errors.push(`state("${n.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=hr(this,Qh(n.animation),e);return{type:1,matchers:cne(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Gl(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>hr(this,i,e)),options:Gl(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=hr(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:Gl(n.options)}}visitAnimate(n,e){const i=function(t,n){let e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return ow(Nm(t,n).duration,0,"");const i=t;if(i.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=ow(0,0,"");return r.dynamic=!0,r.strValue=i,r}return e=e||Nm(i,n),ow(e.duration,e.delay,e.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:Jt({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Jt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==sa?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(jm(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),d=!1),r=c.startTime),d&&(l[a]={startTime:r,endTime:s}),e.options&&function(t,n,e){const i=n.params||{},s=mF(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(`Unable to resolve the local animation param ${r} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let r=0;const o=[];let a=!1,l=!1,c=0;const d=n.steps.map(L=>{const J=this._makeStyleAst(L,e);let ue=null!=J.offset?J.offset:function(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(jm(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(jm(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(J.styles),Te=0;return null!=ue&&(r++,Te=J.offset=ue),l=l||Te<0||Te>1,a=a||Te0&&r{const ue=f>0?J==_?1:f*J:o[J],Te=ue*$;e.currentTime=T+k.delay+Te,k.duration=Te,this._validateStyleAst(L,e),L.offset=ue,i.styles.push(L)}),i}visitReference(n,e){return{type:8,animation:hr(this,Qh(n.animation),e),options:Gl(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Gl(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Gl(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(hne,"")),t=t.replace(/@\*/g,Rm).replace(/@\w+/g,e=>Rm+"-"+e.substr(1)).replace(/:animating/g,ew),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ur(e.collectedStyles,e.currentQuerySelector,{});const a=hr(this,Qh(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Gl(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Nm(n.timings,e.errors,!0);return{type:12,animation:hr(this,Qh(n.animation),e),timings:i,options:null}}}class mne{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function jm(t){return!Array.isArray(t)&&"object"==typeof t}function Gl(t){return t?(t=Nd(t)).params&&(t.params=function(t){return t?Nd(t):null}(t.params)):t={},t}function ow(t,n,e){return{duration:t,delay:n,easing:e}}function aw(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class zm{constructor(){this._map=new Map}consume(n){let e=this._map.get(n);return e?this._map.delete(n):e=[],e}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const xne=new RegExp(":enter","g"),Cne=new RegExp(":leave","g");function lw(t,n,e,i,s,r={},o={},a,l,c=[]){return(new Mne).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class Mne{buildKeyframes(n,e,i,s,r,o,a,l,c,d=[]){c=c||new zm;const u=new cw(n,e,c,s,r,d,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),hr(this,i,u);const f=u.timelines.filter(_=>_.containsAnimation());if(f.length&&Object.keys(a).length){const _=f[f.length-1];_.allowOnlyTimelineStyles()||_.setStyles([a],null,u.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[aw(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.consume(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?jl(i.duration):null,a=null!=i.delay?jl(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),hr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Gm);const o=jl(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>hr(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?jl(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),hr(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Nm(e.params?Fm(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?jl(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gm);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(n.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),hr(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;hr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-u+(s.startTime-i.currentTimeline.startTime)}}const Gm={};class cw{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $m(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=jl(i.duration)),null!=i.delay&&(s.delay=jl(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Fm(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new cw(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Gm,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new Dne(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(xne,"."+this._enterClassName)).replace(Cne,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class $m{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new $m(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||sa,this._currentKeyframe[e]=sa}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=sa})):Ha(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Fm(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:sa),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=Ha(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?n.add(d):u==sa&&e.add(d)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?Lm(n.values()):[],o=e.size?Lm(e.values()):[];if(i){const a=s[0],l=Nd(a);a.offset=0,l.offset=1,s=[a,l]}return aw(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class Dne extends $m{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=Ha(n[0],!1);l.offset=0,r.push(l);const c=Ha(n[0],!1);c.offset=wF(a),r.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let f=Ha(n[u],!1);f.offset=wF((e+f.offset*i)/o),r.push(f)}i=o,e=0,s="",n=r}return aw(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function wF(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class dw{}class Ene extends dw{normalizePropertyName(n,e){return iw(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(Tne[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(`Please provide a CSS unit value for ${n}:${i}`)}return o+r}}const Tne=(()=>function(t){const n={};return t.forEach(e=>n[e]=!0),n}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function CF(t,n,e,i,s,r,o,a,l,c,d,u,f){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:f}}const uw={};class MF{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,d){const u=[],f=this.ast.options&&this.ast.options.params||uw,T=this.buildStyles(i,a&&a.params||uw,u),k=l&&l.params||uw,$=this.buildStyles(s,k,u),L=new Set,J=new Map,ue=new Map,Te="void"===s,Fe={params:Object.assign(Object.assign({},f),k)},Be=d?[]:lw(n,e,this.ast.animation,r,o,T,$,Fe,c,u);let Ue=0;if(Be.forEach(it=>{Ue=Math.max(it.duration+it.delay,Ue)}),u.length)return CF(e,this._triggerName,i,s,Te,T,$,[],[],J,ue,Ue,u);Be.forEach(it=>{const lt=it.element,Xe=ur(J,lt,{});it.preStyleProps.forEach(Pe=>Xe[Pe]=!0);const qe=ur(ue,lt,{});it.postStyleProps.forEach(Pe=>qe[Pe]=!0),lt!==e&&L.add(lt)});const He=Lm(L.values());return CF(e,this._triggerName,i,s,Te,T,$,Be,He,J,ue,Ue)}}class One{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=Nd(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Fm(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Pne{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new One(s.style,s.options&&s.options.params||{},i)}),DF(this.states,"true","1"),DF(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new MF(n,s,this.states))}),this.fallbackTransition=function(t,n,e){return new MF(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function DF(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const Nne=new zm;class Fne{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],s=rw(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[n]=s}_buildPlayer(n,e,i){const s=n.element,r=sF(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=lw(this._driver,e,r,Zx,Im,{},{},i,Nne,s),o.forEach(d=>{const u=ur(a,d.element,{});d.postStyleProps.forEach(f=>u[f]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(f=>{d[f]=this._driver.computeStyle(u,f,sa)})});const c=Va(o.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw new Error(`Unable to find the timeline player referenced by ${n}`);return e}listen(n,e,i,s){const r=Ux(e,"","","");return Gx(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(n)}}}const SF="ng-animate-queued",EF="ng-animate-disabled",TF=".ng-animate-disabled",Hne=[],AF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jne={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},kr="__ng_removed";class hw{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(i?n.value:n),i){const r=Nd(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const Kh="void",fw=new hw(Kh);class zne{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Or(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(t){return"start"==t||"done"==t}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const r=ur(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ur(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Or(n,Pm),Or(n,Pm+"-"+e),a[e]=fw),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw new Error(`The provided animation trigger "${n}" has not been registered!`);return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new pw(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Or(n,Pm),Or(n,Pm+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new hw(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=fw),c.value!==Kh&&l.value===c.value){if(!function(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s{zl(n,$),Io(n,L)})}return}const f=ur(this._engine.playersByElement,n,[]);f.forEach(k=>{k.namespaceId==this.id&&k.triggerName==e&&k.queued&&k.destroy()});let _=r.matchTransition(l.value,c.value,n,c.params),T=!1;if(!_){if(!s)return;_=r.fallbackTransition,T=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:T}),T||(Or(n,SF),o.onStart(()=>{Fd(n,SF)})),o.onDone(()=>{let k=this.players.indexOf(o);k>=0&&this.players.splice(k,1);const $=this._engine.playersByElement.get(n);if($){let L=$.indexOf(o);L>=0&&$.splice(L,1)}}),this.players.push(o),f.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Rm,!0);i.forEach(s=>{if(s[kr])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n);if(r){const o=[];if(Object.keys(r).forEach(a=>{if(this._triggers[a]){const l=this.trigger(n,a,Kh,s);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,n,!0,e),i&&Va(o).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||fw,d=new hw(Kh),u=new pw(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[kr];(!r||r===AF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Or(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Ux(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Gx(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class Gne{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new zne(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList.length-1;if(i>=0){let s=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,n),s=!0;break}s||this._namespaceList.splice(0,0,n)}else this._namespaceList.push(n);return this.namespacesByHostElement.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Or(n,EF)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Fd(n,EF))}removeNode(n,e,i,s){if(Um(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s){this.collectedLeaveElements.push(e),e[kr]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1}}listen(n,e,i,s,r){return Um(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Rm,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,ew,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Va(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[kr];if(e&&e.setForRemoval){if(n[kr]=AF,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}this.driver.matchesElement(n,TF)&&this.markElementAsDisabled(n,!1),this.driver.query(n,TF,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Va(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${n.join("\n")}`)}_flushAnimations(n,e){const i=new zm,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ve=>{d.add(Ve);const Qe=this.driver.query(Ve,".ng-animate-queued",!0);for(let Ke=0;Ke{const Ke=Zx+k++;T.set(Qe,Ke),Ve.forEach(bt=>Or(bt,Ke))});const $=[],L=new Set,J=new Set;for(let Ve=0;VeL.add(bt)):J.add(Qe))}const ue=new Map,Te=IF(f,Array.from(L));Te.forEach((Ve,Qe)=>{const Ke=Im+k++;ue.set(Qe,Ke),Ve.forEach(bt=>Or(bt,Ke))}),n.push(()=>{_.forEach((Ve,Qe)=>{const Ke=T.get(Qe);Ve.forEach(bt=>Fd(bt,Ke))}),Te.forEach((Ve,Qe)=>{const Ke=ue.get(Qe);Ve.forEach(bt=>Fd(bt,Ke))}),$.forEach(Ve=>{this.processLeaveNode(Ve)})});const Fe=[],Be=[];for(let Ve=this._namespaceList.length-1;Ve>=0;Ve--)this._namespaceList[Ve].drainQueuedTransitions(e).forEach(Ke=>{const bt=Ke.player,un=Ke.element;if(Fe.push(bt),this.collectedEnterElements.length){const ps=un[kr];if(ps&&ps.setForMove)return void bt.destroy()}const ui=!u||!this.driver.containsElement(u,un),zt=ue.get(un),En=T.get(un),Vn=this._buildInstruction(Ke,i,En,zt,ui);if(Vn.errors&&Vn.errors.length)Be.push(Vn);else{if(ui)return bt.onStart(()=>zl(un,Vn.fromStyles)),bt.onDestroy(()=>Io(un,Vn.toStyles)),void s.push(bt);if(Ke.isFallbackTransition)return bt.onStart(()=>zl(un,Vn.fromStyles)),bt.onDestroy(()=>Io(un,Vn.toStyles)),void s.push(bt);Vn.timelines.forEach(ps=>ps.stretchStartingKeyframe=!0),i.append(un,Vn.timelines),o.push({instruction:Vn,player:bt,element:un}),Vn.queriedElements.forEach(ps=>ur(a,ps,[]).push(bt)),Vn.preStyleProps.forEach((ps,Za)=>{const cc=Object.keys(ps);if(cc.length){let No=l.get(Za);No||l.set(Za,No=new Set),cc.forEach(ru=>No.add(ru))}}),Vn.postStyleProps.forEach((ps,Za)=>{const cc=Object.keys(ps);let No=c.get(Za);No||c.set(Za,No=new Set),cc.forEach(ru=>No.add(ru))})}});if(Be.length){const Ve=[];Be.forEach(Qe=>{Ve.push(`@${Qe.triggerName} has failed due to:\n`),Qe.errors.forEach(Ke=>Ve.push(`- ${Ke}\n`))}),Fe.forEach(Qe=>Qe.destroy()),this.reportError(Ve)}const Ue=new Map,He=new Map;o.forEach(Ve=>{const Qe=Ve.element;i.has(Qe)&&(He.set(Qe,Qe),this._beforeAnimationBuild(Ve.player.namespaceId,Ve.instruction,Ue))}),s.forEach(Ve=>{const Qe=Ve.element;this._getPreviousPlayers(Qe,!1,Ve.namespaceId,Ve.triggerName,null).forEach(bt=>{ur(Ue,Qe,[]).push(bt),bt.destroy()})});const it=$.filter(Ve=>RF(Ve,l,c)),lt=new Map;OF(lt,this.driver,J,c,sa).forEach(Ve=>{RF(Ve,l,c)&&it.push(Ve)});const qe=new Map;_.forEach((Ve,Qe)=>{OF(qe,this.driver,new Set(Ve),l,"!")}),it.forEach(Ve=>{const Qe=lt.get(Ve),Ke=qe.get(Ve);lt.set(Ve,Object.assign(Object.assign({},Qe),Ke))});const Pe=[],Ye=[],ht={};o.forEach(Ve=>{const{element:Qe,player:Ke,instruction:bt}=Ve;if(i.has(Qe)){if(d.has(Qe))return Ke.onDestroy(()=>Io(Qe,bt.toStyles)),Ke.disabled=!0,Ke.overrideTotalTime(bt.totalTime),void s.push(Ke);let un=ht;if(He.size>1){let zt=Qe;const En=[];for(;zt=zt.parentNode;){const Vn=He.get(zt);if(Vn){un=Vn;break}En.push(zt)}En.forEach(Vn=>He.set(Vn,un))}const ui=this._buildAnimation(Ke.namespaceId,bt,Ue,r,qe,lt);if(Ke.setRealPlayer(ui),un===ht)Pe.push(Ke);else{const zt=this.playersByElement.get(un);zt&&zt.length&&(Ke.parentPlayer=Va(zt)),s.push(Ke)}}else zl(Qe,bt.fromStyles),Ke.onDestroy(()=>Io(Qe,bt.toStyles)),Ye.push(Ke),d.has(Qe)&&s.push(Ke)}),Ye.forEach(Ve=>{const Qe=r.get(Ve.element);if(Qe&&Qe.length){const Ke=Va(Qe);Ve.setRealPlayer(Ke)}}),s.forEach(Ve=>{Ve.parentPlayer?Ve.syncPlayerEvents(Ve.parentPlayer):Ve.destroy()});for(let Ve=0;Ve<$.length;Ve++){const Qe=$[Ve],Ke=Qe[kr];if(Fd(Qe,Im),Ke&&Ke.hasAnimation)continue;let bt=[];if(a.size){let ui=a.get(Qe);ui&&ui.length&&bt.push(...ui);let zt=this.driver.query(Qe,ew,!0);for(let En=0;En!ui.destroyed);un.length?Yne(this,Qe,un):this.processLeaveNode(Qe)}return $.length=0,Pe.forEach(Ve=>{this.players.push(Ve),Ve.onDone(()=>{Ve.destroy();const Qe=this.players.indexOf(Ve);this.players.splice(Qe,1)}),Ve.play()}),Pe}elementContainsData(n,e){let i=!1;const s=e[kr];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Kh;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=ur(i,c,[]);this._getPreviousPlayers(c,d,o,a,e.toState).forEach(_=>{const T=_.getRealPlayer();T.beforeDestroy&&T.beforeDestroy(),_.destroy(),u.push(_)})}zl(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,f=e.timelines.map(T=>{const k=T.element;d.add(k);const $=k[kr];if($&&$.removedBeforeQueried)return new Rd(T.duration,T.delay);const L=k!==l,J=function(t){const n=[];return PF(t,n),n}((i.get(k)||Hne).map(Ue=>Ue.getRealPlayer())).filter(Ue=>!!Ue.element&&Ue.element===k),ue=r.get(k),Te=o.get(k),Fe=sF(0,this._normalizer,0,T.keyframes,ue,Te),Be=this._buildPlayer(T,Fe,J);if(T.subTimeline&&s&&u.add(k),L){const Ue=new pw(n,a,k);Ue.setRealPlayer(Be),c.push(Ue)}return Be});c.forEach(T=>{ur(this.playersByQueriedElement,T.element,[]).push(T),T.onDone(()=>function(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,T.element,T))}),d.forEach(T=>Or(T,hF));const _=Va(f);return _.onDestroy(()=>{d.forEach(T=>Fd(T,hF)),Io(l,e.toStyles)}),u.forEach(T=>{ur(s,T,[]).push(_)}),_}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Rd(n.duration,n.delay)}}class pw{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Rd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Gx(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ur(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Um(t){return t&&1===t.nodeType}function kF(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function OF(t,n,e,i,s){const r=[];e.forEach(l=>r.push(kF(l)));const o=[];i.forEach((l,c)=>{const d={};l.forEach(u=>{const f=d[u]=n.computeStyle(c,u,s);(!f||0==f.length)&&(c[kr]=jne,o.push(c))}),t.set(c,d)});let a=0;return e.forEach(l=>kF(l,r[a++])),o}function IF(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const Wm="$$classes";function Or(t,n){if(t.classList)t.classList.add(n);else{let e=t[Wm];e||(e=t[Wm]={}),e[n]=!0}}function Fd(t,n){if(t.classList)t.classList.remove(n);else{let e=t[Wm];e&&delete e[n]}}function Yne(t,n,e){Va(e).onDone(()=>t.processLeaveNode(n))}function PF(t,n){for(let e=0;es.add(r)):n.set(t,i),e.delete(t),!0}class Ym{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Gne(n,e,i),this._timelineEngine=new Fne(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],c=rw(this._driver,r,l);if(l.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(t,n,e){return new Pne(t,n,e)}(s,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=rF(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=rF(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function NF(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=gw(n[0]),n.length>1&&(i=gw(n[n.length-1]))):n&&(e=gw(n)),e||i?new Qne(t,e,i):null}let Qne=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Io(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Io(this._element,this._initialStyles),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(zl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zl(this._element,this._endStyles),this._endStyles=null),Io(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function gw(t){let n=null;const e=Object.keys(t);for(let i=0;ithis._handleCallback(l)}apply(){(function(t,n){const e=_w(t,"").trim();let i=0;e.length&&(function(t,n){let e=0;for(let i=0;i=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),HF(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,n){const i=_w(t,"").split(","),s=mw(i,n);s>=0&&(i.splice(s,1),qm(t,"",i.join(",")))}(this._element,this._name))}}function BF(t,n,e){qm(t,"PlayState",e,VF(t,n))}function VF(t,n){const e=_w(t,"");return e.indexOf(",")>0?mw(e.split(","),n):mw([e],n)}function mw(t,n){for(let e=0;e=0)return e;return-1}function HF(t,n,e){e?t.removeEventListener(LF,n):t.addEventListener(LF,n)}function qm(t,n,e,i){const s=FF+n;if(null!=i){const r=t.style[s];if(r.length){const o=r.split(",");o[i]=e,e=o.join(",")}}t.style[s]=e}function _w(t,n){return t.style[FF+n]||""}class jF{constructor(n,e,i,s,r,o,a,l){this.element=n,this.keyframes=e,this.animationName=i,this._duration=s,this._delay=r,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+r,this._buildStyler()}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(n){this._styler.setPosition(n)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new eie(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const n={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(n[i]=e?this._finalStyles[i]:sw(this.element,i))})}this.currentSnapshot=n}}class oie extends Rd{constructor(n,e){super(),this.element=n,this._startingStyles={},this.__initialized=!1,this._styles=cF(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(n=>{this._startingStyles[n]=this.element.style[n]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(n=>this.element.style.setProperty(n,this._styles[n])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(n=>{const e=this._startingStyles[n];e?this.element.style.setProperty(n,e):this.element.style.removeProperty(n)}),this._startingStyles=null,super.destroy())}}class GF{constructor(){this._count=0}validateStyleProperty(n){return qx(n)}matchesElement(n,e){return Xx(n,e)}containsElement(n,e){return Qx(n,e)}query(n,e,i){return Kx(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}buildKeyframeElement(n,e,i){i=i.map(a=>cF(a));let s=`@keyframes ${e} {\n`,r="";i.forEach(a=>{r=" ";const l=parseFloat(a.offset);s+=`${r}${100*l}% {\n`,r+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(s+=`${r}animation-timing-function: ${d};\n`));default:return void(s+=`${r}${c}: ${d};\n`)}}),s+=`${r}}\n`}),s+="}\n";const o=document.createElement("style");return o.textContent=s,o}animate(n,e,i,s,r,o=[],a){const l=o.filter($=>$ instanceof jF),c={};_F(i,s)&&l.forEach($=>{let L=$.currentSnapshot;Object.keys(L).forEach(J=>c[J]=L[J])});const d=function(t){let n={};return t&&(Array.isArray(t)?t:[t]).forEach(i=>{Object.keys(i).forEach(s=>{"offset"==s||"easing"==s||(n[s]=i[s])})}),n}(e=yF(n,e,c));if(0==i)return new oie(n,d);const u="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(n,u,e);(function(t){var n;const e=null===(n=t.getRootNode)||void 0===n?void 0:n.call(t);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(n).appendChild(f);const T=NF(n,e),k=new jF(n,e,u,i,s,r,d,T);return k.onDestroy(()=>function(t){t.parentNode.removeChild(t)}(f)),k}}class UF{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(n[e]=this._finished?this._finalKeyframe[e]:sw(this.element,e))}),this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class uie{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(WF().toString()),this._cssKeyframesDriver=new GF}validateStyleProperty(n){return qx(n)}matchesElement(n,e){return Xx(n,e)}containsElement(n,e){return Qx(n,e)}query(n,e,i){return Kx(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}overrideWebAnimationsSupport(n){this._isNativeImpl=n}animate(n,e,i,s,r,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(n,e,i,s,r,o);const d={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(d.easing=r);const u={},f=o.filter(T=>T instanceof UF);_F(i,s)&&f.forEach(T=>{let k=T.currentSnapshot;Object.keys(k).forEach($=>u[$]=k[$])});const _=NF(n,e=yF(n,e=e.map(T=>Ha(T,!1)),u));return new UF(n,e,d,_)}}function WF(){return iF()&&Element.prototype.animate||{}}let fie=(()=>{class t extends KN{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Vi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?JN(e):e;return YF(this._renderer,null,i,"register",[s]),new pie(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Me($o),Me(wt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class pie extends class{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new gie(this._id,n,e||{},this._renderer)}}class gie{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return YF(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function YF(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const qF="@.disabled";let mie=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{o&&o.parentNode(r)&&o.removeChild(r.parentNode,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(r);return d||(d=new XF("",r,this.engine),this._rendererCache.set(r,d)),d}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(o,a,e,d.name,d)};return i.data.animation.forEach(l),new _ie(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&ei(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Me($o),Me(Ym),Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();class XF{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==qF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class _ie extends XF{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let bie=(()=>{class t extends Ym{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(Jx),Me(dw))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const Ci=new pt("AnimationModuleType"),QF=[{provide:KN,useClass:fie},{provide:dw,useFactory:function(){return new Ene}},{provide:Ym,useClass:bie},{provide:$o,useFactory:function(t,n,e){return new mie(t,n,e)},deps:[vg,Ym,xt]}],KF=[{provide:Jx,useFactory:function(){return"function"==typeof WF()?new uie:new GF}},{provide:Ci,useValue:"BrowserAnimations"},...QF],JF=[{provide:Jx,useClass:dF},{provide:Ci,useValue:"NoopAnimations"},...QF];let Mie=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?JF:KF}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:KF,imports:[O0]}),t})();function Eie(t,n){if(1&t&&je(0,"mat-pseudo-checkbox",4),2&t){const e=Ie();ge("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Tie(t,n){if(1&t&&(j(0,"span",5),$e(1),z()),2&t){const e=Ie();ae(1),$t("(",e.group.label,")")}}const Aie=["*"];let kie=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Oie=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const ZF=new Uo("12.2.13"),Pie=new pt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ul,Sn=(()=>{class t{constructor(e,i,s){this._hasDoneGlobalChecks=!1,this._document=s,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!$b()||Rx())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&ZF.full!==QN.full&&console.warn("The Angular Material version ("+ZF.full+") does not match the Angular CDK version ("+QN.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(Me(YN),Me(Pie,8),Me(wt))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Pd],Pd]}),t})();function Ir(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=Vt(n)}}}function $l(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Po(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Vt(n)}}}function Qm(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Li(e):this.defaultTabIndex}}}function e2(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new E,this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}function t2(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new S(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}try{Ul="undefined"!=typeof Intl}catch(t){Ul=!1}let yw=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})(),o2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})();class Uie{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const a2={enterDuration:225,exitDuration:150},vw=Ll({passive:!0}),l2=["mousedown","touchstart"],c2=["mouseup","mouseleave","touchend","touchcancel"];class d2{constructor(n,e,i,s){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=na(i))}fadeInRipple(n,e,i={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},a2),i.animation);i.centered&&(n=s.left+s.width/2,e=s.top+s.height/2);const o=i.radius||function(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),s=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+s*s)}(n,e,s),a=n-s.left,l=e-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-o+"px",d.style.top=l-o+"px",d.style.height=2*o+"px",d.style.width=2*o+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function(t){window.getComputedStyle(t).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new Uie(this,d,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const f=u===this._mostRecentTransientRipple;u.state=1,!i.persistent&&(!f||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,s=Object.assign(Object.assign({},a2),n.config.animation);i.style.transitionDuration=`${s.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.parentNode.removeChild(i)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=na(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(l2))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(c2),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=Bx(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,vw)})})}_removeTriggerEvents(){this._triggerElement&&(l2.forEach(n=>{this._triggerElement.removeEventListener(n,this,vw)}),this._pointerUpEventsRegistered&&c2.forEach(n=>{this._triggerElement.removeEventListener(n,this,vw)}))}}const bw=new pt("mat-ripple-global-options");let Pr=(()=>{class t{constructor(e,i,s,r,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new d2(this,i,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C(yn),C(bw,8),C(Ci,8))},t.\u0275dir=Le({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&>("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn,kd],Sn]}),t})(),u2=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&>("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn]]}),t})();const ww=new pt("MAT_OPTION_PARENT_COMPONENT"),Xie=Ir(class{});let Qie=0,h2=(()=>{class t extends Xie{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+Qie++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return t.\u0275fac=function(e){return new(e||t)(C(ww,8))},t.\u0275dir=Le({type:t,inputs:{label:"label"},features:[Je]}),t})();const Cw=new pt("MatOptgroup");let Kie=0;class Jie{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Zie=(()=>{class t{constructor(e,i,s,r){this._element=e,this._changeDetectorRef=i,this._parent=s,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Kie++,this.onSelectionChange=new ot,this._stateChanges=new E}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Vt(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ar(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Jie(this,e))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(void 0),C(h2))},t.\u0275dir=Le({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),f2=(()=>{class t extends Zie{constructor(e,i,s,r){super(e,i,s,r)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(ww,8),C(Cw,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&nt("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(ys("id",i.id),At("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),gt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Je],ngContentSelectors:Aie,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(Cn(),ke(0,Eie,1,2,"mat-pseudo-checkbox",0),j(1,"span",1),jt(2),z(),ke(3,Tie,2,1,"span",2),je(4,"div",3)),2&e&&(ge("ngIf",i.multiple),ae(3),ge("ngIf",i.group&&i.group._inert),ae(1),ge("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[vn,Pr,u2],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function p2(t,n,e){if(e.length){let i=n.toArray(),s=e.toArray(),r=0;for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,ei,Sn,xw]]}),t})();const m2=["mat-button",""],_2=["*"],nse=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ise=$l(Ir(Po(class{constructor(t){this._elementRef=t}})));let Zh=(()=>{class t extends ise{constructor(e,i,s){super(e),this._focusMonitor=i,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of nse)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Js),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Yt(Pr,5),2&e){let s;st(s=rt())&&(i.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(At("disabled",i.disabled||null),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Je],attrs:m2,ngContentSelectors:_2,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Cn(),j(0,"span",0),jt(1),z(),je(2,"span",1),je(3,"span",2)),2&e&&(ae(2),gt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),ge("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Pr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,Sn],Sn]}),t})();function di(t,n,e,i){return Di(e)&&(i=e,e=void 0),i?di(t,n,e).pipe(g(s=>le(s)?i(...s):i(s))):new S(s=>{v2(t,n,function(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function v2(t,n,e,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o enter",[Jt({opacity:0,transform:"translateY(-5px)"}),pi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Jm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t}),t})();const x2=new pt("MatHint");let Bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-label"]]}),t})(),Ese=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-placeholder"]]}),t})();const w2=new pt("MatPrefix"),C2=new pt("MatSuffix");let M2=0;const Ase=$l(class{constructor(t){this._elementRef=t}},"primary"),kse=new pt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Dw=new pt("MatFormField");let ef=(()=>{class t extends Ase{constructor(e,i,s,r,o,a,l,c){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+M2++,this._labelId="mat-form-field-label-"+M2++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Vt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ai(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),De(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ai(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ai(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,di(this._label.nativeElement,"transitionend").pipe(Bn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,s=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,s=0;const r=this._connectionContainerRef.nativeElement,o=r.querySelectorAll(".mat-form-field-outline-start"),a=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=r.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let f=0;for(let _=0;_0?.75*f+10:0}for(let l=0;l{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,Em],Sn]}),t})();class Ise{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new Pse(n,this.durationSelector))}}class Pse extends _e{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(n)}catch(s){return this.destination.error(s)}const i=Se(e,new ne(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Zm(t,n=jg){return function(t){return function(e){return e.lift(new Ise(t))}}(()=>Mh(t,n))}const S2=Ll({passive:!0});let E2=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Eo;const i=na(e),s=this._monitoredElements.get(i);if(s)return s.subject;const r=new E,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,S2),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,S2)}}),r}stopMonitoring(e){const i=na(e),s=this._monitoredElements.get(i);s&&(s.unlisten(),s.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt))},token:t,providedIn:"root"}),t})(),T2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[kd]]}),t})();function A2(...t){if(1===t.length){const n=t[0];if(le(n))return e_(n,null);if(ve(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return e_(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return e_(t=1===t.length&&le(t[0])?t[0]:t,null).pipe(g(e=>n(...e)))}return e_(t,null)}function e_(t,n){return new S(e=>{const i=t.length;if(0===i)return void e.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=d},error:d=>e.error(d),complete:()=>{r++,(r===i||!c)&&(o===i&&e.next(n?n.reduce((d,u,f)=>(d[u]=s[f],d),{}):s),e.complete())}}))}})}let k2=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(C(ji),C(tt))},t.\u0275dir=Le({type:t}),t})(),Wl=(()=>{class t extends k2{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,features:[Je]}),t})();const qi=new pt("NgValueAccessor"),Fse={provide:qi,useExisting:nn(()=>nf),multi:!0},Bse=new pt("CompositionEventMode");let nf=(()=>{class t extends k2{constructor(e,i,s){super(e,i),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Do()?Do().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ji),C(tt),C(Bse,8))},t.\u0275dir=Le({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&nt("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Dt([Fse]),Je]}),t})();const hs=new pt("NgValidators"),za=new pt("NgAsyncValidators");function j2(t){return null!=t}function z2(t){const n=Fu(t)?K(t):t;return Tp(n),n}function G2(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function $2(t,n){return n.map(e=>e(t))}function U2(t){return t.map(n=>function(t){return!t.validate}(n)?n:e=>n.validate(e))}function Sw(t){return null!=t?function(t){if(!t)return null;const n=t.filter(j2);return 0==n.length?null:function(e){return G2($2(e,n))}}(U2(t)):null}function Ew(t){return null!=t?function(t){if(!t)return null;const n=t.filter(j2);return 0==n.length?null:function(e){return A2($2(e,n).map(z2)).pipe(g(G2))}}(U2(t)):null}function q2(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X2(t){return t._rawValidators}function Q2(t){return t._rawAsyncValidators}function Tw(t){return t?Array.isArray(t)?t:[t]:[]}function t_(t,n){return Array.isArray(t)?t.includes(n):t===n}function K2(t,n){const e=Tw(n);return Tw(t).forEach(s=>{t_(e,s)||e.push(s)}),e}function J2(t,n){return Tw(n).filter(e=>!t_(t,e))}let Z2=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Sw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ew(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,i){return!!this.control&&this.control.hasError(e,i)}getError(e,i){return this.control?this.control.getError(e,i):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t}),t})(),Xs=(()=>{class t extends Z2{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,features:[Je]}),t})();class Ro extends Z2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Aw=(()=>{class t extends class{constructor(n){this._cd=n}is(n){var e,i,s;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===s?void 0:s[n])}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(C(Ro,2))},t.\u0275dir=Le({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&>("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Je]}),t})();function sf(t,n){Iw(t,n),n.valueAccessor.writeValue(t.value),function(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tL(t,n)})}(t,n),function(t,n){const e=(i,s)=>{n.valueAccessor.writeValue(i),s&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tL(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function s_(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),o_(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function r_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Iw(t,n){const e=X2(t);null!==n.validator?t.setValidators(q2(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=Q2(t);null!==n.asyncValidator?t.setAsyncValidators(q2(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();r_(n._rawValidators,s),r_(n._rawAsyncValidators,s)}function o_(t,n){let e=!1;if(null!==t){if(null!==n.validator){const s=X2(t);if(Array.isArray(s)&&s.length>0){const r=s.filter(o=>o!==n.validator);r.length!==s.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const s=Q2(t);if(Array.isArray(s)&&s.length>0){const r=s.filter(o=>o!==n.asyncValidator);r.length!==s.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return r_(n._rawValidators,i),r_(n._rawAsyncValidators,i),e}function tL(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nL(t,n){Iw(t,n)}function iL(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function a_(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const rf="VALID",l_="INVALID",Vd="PENDING",af="DISABLED";function Nw(t){return(Lw(t)?t.validators:t)||null}function sL(t){return Array.isArray(t)?Sw(t):t||null}function Fw(t,n){return(Lw(n)?n.asyncValidators:t)||null}function rL(t){return Array.isArray(t)?Ew(t):t||null}function Lw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Bw{constructor(n,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=sL(this._rawValidators),this._composedAsyncValidatorFn=rL(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===rf}get invalid(){return this.status===l_}get pending(){return this.status==Vd}get disabled(){return this.status===af}get enabled(){return this.status!==af}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=sL(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=rL(n)}addValidators(n){this.setValidators(K2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(K2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(J2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(J2(n,this._rawAsyncValidators))}hasValidator(n){return t_(this._rawValidators,n)}hasAsyncValidator(n){return t_(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Vd,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=af,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=rf,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rf||this.status===Vd)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?af:rf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Vd,this._hasOwnPendingAsyncValidator=!0;const e=z2(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(".")),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(s=>{i=i instanceof Vw?i.controls.hasOwnProperty(s)?i.controls[s]:null:i instanceof Zse&&i.at(s)||null}),i}(this,n)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?af:this.errors?l_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vd)?Vd:this._anyControlsHaveStatus(l_)?l_:rf}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Lw(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class c_ extends Bw{constructor(n=null,e,i){super(Nw(e),Fw(i,e)),this._onChange=[],this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=null,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){a_(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){a_(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class Vw extends Bw{constructor(n,e,i){super(Nw(e),Fw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){this._checkAllValuesPresent(n),Object.keys(n).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,s)=>{i.reset(n[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e instanceof c_?e.value:e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[n])throw new Error(`Cannot find form control with name: ${n}.`)}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((s,r)=>{i=e(i,s,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Zse extends Bw{constructor(n,e,i){super(Nw(e),Fw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){this._checkAllValuesPresent(n),n.forEach((i,s)=>{this._throwIfControlMissing(s),this.at(s).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,s)=>{this.at(s)&&this.at(s).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,s)=>{i.reset(n[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n instanceof c_?n.value:n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_throwIfControlMissing(n){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(n))throw new Error(`Cannot find form control at index ${n}`)}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_checkAllValuesPresent(n){this._forEachChild((e,i)=>{if(void 0===n[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const ere={provide:Xs,useExisting:nn(()=>cf)},lf=(()=>Promise.resolve(null))();let cf=(()=>{class t extends Xs{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ot,this.form=new Vw({},Sw(e),Ew(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lf.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),sf(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),a_(this._directives,e)})}addFormGroup(e){lf.then(()=>{const i=this._findContainer(e.path),s=new Vw({});nL(s,e),i.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){lf.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,iL(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(C(hs,10),C(za,10))},t.\u0275dir=Le({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&nt("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([ere]),Je]}),t})();const nre={provide:Ro,useExisting:nn(()=>d_)},lL=(()=>Promise.resolve(null))();let d_=(()=>{class t extends Ro{constructor(e,i,s,r){super(),this.control=new c_,this._registered=!1,this.update=new ot,this._parent=e,this._setValidators(i),this._setAsyncValidators(s),this.valueAccessor=function(t,n){if(!n)return null;let e,i,s;return Array.isArray(n),n.forEach(r=>{r.constructor===nf?e=r:function(t){return Object.getPrototypeOf(t.constructor)===Wl}(r)?i=r:s=r}),s||i||e||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,n){return[...n.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){sf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){lL.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,s=""===i||i&&"false"!==i;lL.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(C(Xs,9),C(hs,10),C(za,10),C(qi,10))},t.\u0275dir=Le({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Dt([nre]),Je,rn]}),t})(),dL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const cre={provide:Xs,useExisting:nn(()=>df)};let df=(()=>{class t extends Xs{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ot,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(o_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return sf(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){s_(e.control||null,e,!1),a_(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,iL(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,s=this.form.get(e.path);i!==s&&(s_(i||null,e),s instanceof c_&&(sf(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);nL(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function(t,n){return o_(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Iw(this.form,this),this._oldForm&&o_(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(C(hs,10),C(za,10))},t.\u0275dir=Le({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&nt("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([cre]),Je,rn]}),t})(),TL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[dL]]}),t})(),Yw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[TL]}),t})();const Dre=new pt("MAT_INPUT_VALUE_ACCESSOR"),Sre=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Ere=0;const Tre=e2(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let u_=(()=>{class t extends Tre{constructor(e,i,s,r,o,a,l,c,d,u){super(a,r,o,s),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+Ere++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(T=>DN().has(T));const f=this._elementRef.nativeElement,_=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",T=>{const k=T.target;!k.value&&0===k.selectionStart&&0===k.selectionEnd&&(k.setSelectionRange(1,1),k.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===_,this._isTextarea="textarea"===_,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Vt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Vt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&DN().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Vt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const s=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=s,s?r.setAttribute("placeholder",s):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Sre.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(yn),C(Ro,10),C(cf,8),C(df,8),C(yw),C(Dre,10),C(E2),C(xt),C(Dw,8))},t.\u0275dir=Le({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&nt("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(ys("disabled",i.disabled)("required",i.required),At("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),gt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Dt([{provide:Jm,useExisting:t}]),Je,rn]}),t})(),AL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[yw],imports:[[T2,tf,Sn],T2,tf]}),t})(),Gn=(()=>{class t{constructor(e){this.translate=e,this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}transform(e,...i){var s;let r;if(Rs.isDefined(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(o)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(r=i[0]);return r?(null===(s=this.translate.data[e])||void 0===s?void 0:s.replace(this.templateMatcher,(o,a)=>r[a]))||e:this.translate.data[e]||e}}return t.\u0275fac=function(e){return new(e||t)(C(qs,16))},t.\u0275pipe=ms({name:"translate",type:t,pure:!1}),t})();const Are=function(){return["/anime/compare"]},kre=function(t){return{ids:t}},Ore=function(){return["/anime/recommendations"]};let Ire=(()=>{class t{constructor(){}set left(e){this._left=(null==e?void 0:e.id)||Vg}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-redirect-block"]],inputs:{left:"left"},decls:18,vars:13,consts:[[1,"redirect-block"],[1,"redirect-block-wrap"],[1,"redirect-block-a",3,"routerLink","queryParams"],[1,"redirect-block-link"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-bullseye"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M8 13A5 5 0 1 1 8 3a5 5 0 0 1 0 10zm0 1A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"],["d","M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"],["d","M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"],[1,"redirect-block-wrap","disabled"],[1,"redirect-block-a",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-search"],["d","M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),j(2,"a",2),j(3,"span",3),$e(4),ct(5,"translate"),z(),pn(),j(6,"svg",4),je(7,"path",5),je(8,"path",6),je(9,"path",7),je(10,"path",8),z(),z(),z(),Ti(),j(11,"div",9),j(12,"a",10),j(13,"span",3),$e(14),ct(15,"translate"),z(),pn(),j(16,"svg",11),je(17,"path",12),z(),z(),z(),z()),2&e&&(ae(2),ge("routerLink",ki(9,Are))("queryParams",bs(10,kre,i._left)),ae(2),Mt(vt(5,5,"NAV_TO_COMPARATOR")),ae(8),ge("routerLink",ki(12,Ore)),ae(2),Mt(vt(15,7,"NAV_TO_RECOMMENDATIONS")))},directives:[Ch],pipes:[Gn],styles:["a[_ngcontent-%COMP%]{color:unset}a[_ngcontent-%COMP%]:hover{text-decoration:unset}.redirect-block[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.redirect-block-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:30px}.redirect-block-a[_ngcontent-%COMP%]{display:flex;align-items:center}.redirect-block-link[_ngcontent-%COMP%]{font-weight:500;text-align:center;margin-right:3px;flex:1}"]}),t})();function Pre(t,n){if(1&t){const e=sn();pn(),Ti(),j(0,"div",7),j(1,"div",1),j(2,"mat-form-field",8),j(3,"mat-label"),$e(4),ct(5,"translate"),z(),j(6,"input",9),nt("ngModelChange",function(s){return Ot(e),Ie().username=s}),ct(7,"translate"),z(),z(),j(8,"button",2),nt("click",function(){return Ot(e),Ie().apply()}),pn(),j(9,"svg",10),je(10,"path",11),z(),z(),z(),Ti(),je(11,"app-redirect-block",12),z()}if(2&t){const e=Ie();ae(4),Mt(vt(5,4,"CUSTOM_NICK_NAME")),ae(2),yi("placeholder",vt(7,6,"CUSTOM_NICK_NAME_EXAMPLE")),ge("ngModel",e.username),ae(5),ge("left",e.user)}}let Rre=(()=>{class t{constructor(e){this.router=e,this.enabledField=!1}ngOnInit(){}enableEdit(){this.enabledField=!this.enabledField}apply(){this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.router.onSameUrlNavigation="reload",this.router.navigate(["anime"],{queryParams:{username:this.username}})}}return t.\u0275fac=function(e){return new(e||t)(C(ls))},t.\u0275cmp=mt({type:t,selectors:[["app-custom-id-field"]],inputs:{user:"user"},decls:10,vars:4,consts:[[1,"custom-id-field__wrapper"],[1,"custom-id-field__wrapper-button"],["mat-icon-button","",1,"custom-id-field__button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-eye"],["d","M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"],["d","M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"],["class","custom-id-field__wrapper-mini",4,"ngIf"],[1,"custom-id-field__wrapper-mini"],[1,"custom-id-field__filter"],["matInput","","autocomplete","off",3,"placeholder","ngModel","ngModelChange"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-send"],["d","M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z"],[3,"left"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),j(2,"span"),$e(3),ct(4,"translate"),z(),j(5,"button",2),nt("click",function(){return i.enableEdit()}),pn(),j(6,"svg",3),je(7,"path",4),je(8,"path",5),z(),z(),z(),ke(9,Pre,12,8,"div",6),z()),2&e&&(ae(3),Mt(vt(4,2,"CUSTOM_NICK_NAME_BTN")),ae(6),ge("ngIf",i.enabledField))},directives:[Zh,vn,ef,Bd,u_,nf,Aw,d_,Ire],pipes:[Gn],styles:[".custom-id-field__filter[_ngcontent-%COMP%]{width:80%}.custom-id-field__wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:column;align-content:center;margin-top:5px;font-weight:800}.custom-id-field__wrapper-button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center}.mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:unset}.mat-expansion-panel-header-title[_ngcontent-%COMP%], .mat-expansion-panel-header-description[_ngcontent-%COMP%]{display:flex;flex:1;margin-right:16px}"]}),t})();function kL(...t){if(1===t.length){if(!le(t[0]))return t[0];t=t[0]}return pe(t,void 0).lift(new Nre)}class Nre{call(n,e){return e.subscribe(new Fre(n))}}class Fre extends P0{constructor(n){super(n),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(n){this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class jre extends _e{constructor(n,e,i){super(n),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[D](){return this}next(){const n=this.buffer;return 0===n.length&&this.isComplete?{value:null,done:!0}:{value:n.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(n){this.buffer.push(n),this.parent.checkIterators()}subscribe(){return Se(this.observable,new ne(this))}}function qw(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new Gre(t,e))}}class Gre{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new $re(n,this.observables,this.project))}}class $re extends P0{constructor(n,e,i){super(n),this.observables=e,this.project=i,this.toRespond=[];const s=e.length;this.values=new Array(s);for(let r=0;r0){const r=s.indexOf(i);-1!==r&&s.splice(r,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Hd=["*"],Ioe=["dialog"],Poe=["ngbNavOutlet",""];function Roe(t,n){}const Noe=function(t){return{$implicit:t}};function Foe(t,n){if(1&t&&(j(0,"div",2),ke(1,Roe,0,0,"ng-template",3),z()),2&t){const e=Ie().$implicit,i=Ie();ge("item",e)("nav",i.nav)("role",i.paneRole),ae(1),ge("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",bs(5,Noe,e.active||i.isPanelTransitioning(e)))}}function Loe(t,n){if(1&t&&ke(0,Foe,2,7,"div",1),2&t){const e=n.$implicit,i=Ie();ge("ngIf",e.isPanelInDom()||i.isPanelTransitioning(e))}}function $a(t){return null!=t}function zd(t){return(t||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const RL={animation:!0,transitionTimerDelayMs:5};let fs=(()=>{class t{constructor(){this.animation=RL.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const $ae=()=>{},{transitionTimerDelayMs:Uae}=RL,ff=new Map,es=(t,n,e,i)=>{let s=i.context||{};const r=ff.get(n);if(r)switch(i.runningTransition){case"continue":return Eo;case"stop":t.run(()=>r.transition$.complete()),s=Object.assign(r.context,s),ff.delete(n)}const o=e(n,i.animation,s)||$ae;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>o()),Et(void 0).pipe(function(t){return n=>new S(e=>n.subscribe(o=>t.run(()=>e.next(o)),o=>t.run(()=>e.error(o)),()=>t.run(()=>e.complete())))}(t));const a=new E,l=new E,c=a.pipe(function(...t){return n=>ud(n,Et(...t))}(!0));ff.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:s});const d=function(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const u=di(n,"transitionend").pipe(Tt(c),mn(({target:_})=>_===n));kL(Mh(d+Uae).pipe(Tt(c)),u,l).pipe(Tt(c)).subscribe(()=>{ff.delete(n),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let VL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),HL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),zL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),UL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),WL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();var bn=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown"}(bn||(bn={})),bn))();const y_=(t,n)=>!!n&&n.some(e=>e.contains(t)),QL=(t,n)=>!n||null!=function(t,n){return n&&void 0!==t.closest?t.closest(n):null}(t,n),Dle="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const KL=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function JL(t){const n=Array.from(t.querySelectorAll(KL)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const Tle=/\s+/,eB=new class{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,s={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const r=this.offsetParent(n);i=this.offset(n,!1),r!==document.documentElement&&(s=this.offset(r,!1)),s.top+=r.clientTop,s.left+=r.clientLeft}return i.top-=s.top,i.bottom-=s.top,i.left-=s.left,i.right-=s.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),s_top=window.pageYOffset-document.documentElement.clientTop,s_left=window.pageXOffset-document.documentElement.clientLeft;let r={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+s_top,bottom:i.bottom+s_top,left:i.left+s_left,right:i.right+s_left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(n,e,i,s){const[r="top",o="center"]=i.split("-"),a=s?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),d=parseFloat(l.marginBottom),u=parseFloat(l.marginLeft),f=parseFloat(l.marginRight);let _=0,T=0;switch(r){case"top":_=a.top-(e.offsetHeight+c+d);break;case"bottom":_=a.top+a.height;break;case"left":T=a.left-(e.offsetWidth+u+f);break;case"right":T=a.left+a.width}switch(o){case"top":_=a.top;break;case"bottom":_=a.top+a.height-e.offsetHeight;break;case"left":T=a.left;break;case"right":T=a.left+a.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?T=a.left+a.width/2-e.offsetWidth/2:_=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(T)}px, ${Math.round(_)}px)`;const k=e.getBoundingClientRect(),$=document.documentElement,L=window.innerHeight||$.clientHeight,J=window.innerWidth||$.clientWidth;return k.left>=0&&k.top>=0&&k.right<=J&&k.bottom<=L}};new Date(1882,10,12),new Date(2174,10,25);let lB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Yw]]}),t})(),hB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),fB=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})();class Kl{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class aC{constructor(n,e,i,s,r,o,a){this._type=n,this._injector=e,this._viewContainerRef=i,this._renderer=s,this._ngZone=r,this._componentFactoryResolver=o,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:s}=this._windowRef.location,r=this._ngZone.onStable.pipe(Bn(1),Re(()=>es(this._ngZone,s,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(n=!1){return this._windowRef?es(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(fi(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Et(void 0)}_getContentRef(n,e){if(n){if(n instanceof on){const i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new Kl([i.rootNodes],i)}return new Kl([[this._renderer.createText(`${n}`)]])}return new Kl([])}}const zle=()=>{};let pB=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):zle}_adjustBody(e){const i=this._document.body,s=i.style.paddingRight,r=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${r+e}px`,()=>i.style["padding-right"]=s}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const s=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),s}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Gle=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Bn(1)).subscribe(()=>{es(this._zone,this._el.nativeElement,(e,i)=>{i&&zd(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return es(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Ur("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),gt("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class gB{close(n){}dismiss(n){}}class $le{constructor(n,e,i,s){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=s,this._closed=new E,this._dismissed=new E,this._hidden=new E,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,o)=>{this._resolve=r,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Tt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Tt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Et(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),uf(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var vf=(()=>(function(t){t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC"}(vf||(vf={})),vf))();let Ule=(()=>{class t{constructor(e,i,s){this._document=e,this._elRef=i,this._zone=s,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ot,this.shown=new E,this.hidden=new E}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Bn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=uf(es(this._zone,e,()=>e.classList.remove("show"),i),es(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const e={animation:this.animation,runningTransition:"continue"};uf(es(this._zone,this._elRef.nativeElement,(r,o)=>{o&&zd(r),r.classList.add("show")},e),es(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{di(e,"keydown").pipe(Tt(this._closed$),mn(s=>s.which===bn.Escape)).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(vf.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;di(this._dialogEl.nativeElement,"mousedown").pipe(Tt(this._closed$),fi(()=>i=!1),as(()=>di(e,"mouseup").pipe(Tt(this._closed$),Bn(1))),mn(({target:s})=>e===s)).subscribe(()=>{i=!0}),di(e,"click").pipe(Tt(this._closed$)).subscribe(({target:s})=>{e===s&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(vf.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),s=JL(e)[0];(i||s||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let s;s=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&es(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(C(wt),C(tt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&Yt(Ioe,7),2&e){let s;st(s=rt())&&(i._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(At("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Ur("modal d-block"+(i.windowClass?" "+i.windowClass:"")),gt("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Hd,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(Cn(),j(0,"div",0,1),j(2,"div",2),jt(3),z(),z()),2&e&&Ur("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),mB=(()=>{class t{constructor(e,i,s,r,o,a){this._applicationRef=e,this._injector=i,this._document=s,this._scrollBar=r,this._rendererFactory=o,this._ngZone=a,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new ot,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const s=di(n,"focusin").pipe(Tt(e),g(r=>r.target));di(n,"keydown").pipe(Tt(e),mn(r=>r.which===bn.Tab),qw(s)).subscribe(([r,o])=>{const[a,l]=JL(n);(o===a||o===n)&&r.shiftKey&&(l.focus(),r.preventDefault()),o===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),i&&di(n,"click").pipe(Tt(e),qw(s),g(r=>r[1])).subscribe(r=>r.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,s,r){const o=r.container instanceof HTMLElement?r.container:$a(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const d=new gB,u=this._getContentRef(e,r.injector||i,s,d,r);let f=!1!==r.backdrop?this._attachBackdrop(e,o):void 0,_=this._attachWindowComponent(e,o,u),T=new $le(_,u,f,r.beforeDismiss);return this._registerModalRef(T),this._registerWindowCmpt(_),T.result.then(l,l),T.result.then(c,c),d.close=k=>{T.close(k)},d.dismiss=k=>{T.dismiss(k)},this._applyWindowOptions(_.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),f&&f.instance&&(this._applyBackdropOptions(f.instance,r),f.changeDetectorRef.detectChanges()),_.changeDetectorRef.detectChanges(),T}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(Gle).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,s){let o=e.resolveComponentFactory(Ule).create(this._injector,s.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(s=>{$a(i[s])&&(e[s]=i[s])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(s=>{$a(i[s])&&(e[s]=i[s])})}_getContentRef(e,i,s,r,o){return s?s instanceof on?this._createFromTemplateRef(s,r):function(t){return"string"==typeof t}(s)?this._createFromString(s):this._createFromComponent(e,i,s,r,o):new Kl([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(r),new Kl([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Kl([[i]])}_createFromComponent(e,i,s,r,o){const a=e.resolveComponentFactory(s),l=wn.create({providers:[{provide:gB,useValue:r}],parent:i}),c=a.create(l),d=c.location.nativeElement;return o.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Kl([[d]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(s=>{s!==e&&"SCRIPT"!==s.nodeName&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const s=this._modalRefs.indexOf(e);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(Me(cr),Me(wn),Me(wt),Me(pB),Me($o),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(cr),Me(ba),Me(wt),Me(pB),Me($o),Me(xt))},token:t,providedIn:"root"}),t})(),Wle=(()=>{class t{constructor(e,i,s,r){this._moduleCFR=e,this._injector=i,this._modalStack=s,this._config=r}open(e,i={}){const s=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(Me(is),Me(wn),Me(mB),Me(fB))},t.\u0275prov=Ze({factory:function(){return new t(Me(is),Me(ba),Me(mB),Me(fB))},token:t,providedIn:"root"}),t})(),_B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Wle]}),t})(),Yle=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})();const yB=t=>$a(t)&&""!==t;let qle=0,M_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),Wd=(()=>{class t{constructor(e,i){this.elementRef=i,this.disabled=!1,this.shown=new ot,this.hidden=new ot,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){$a(this.domId)||(this.domId="ngb-nav-"+qle++)}get active(){return this._nav.activeId===this.id}get id(){return yB(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return($a(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(C(nn(()=>Yd)),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,i,s){if(1&e&&Ft(s,M_,4),2&e){let r;st(r=rt())&&(i.contentTpls=r)}},hostVars:2,hostBindings:function(e,i){2&e&>("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),Yd=(()=>{class t{constructor(e,i,s,r){this.role=e,this._cd=s,this._document=r,this.activeIdChange=new ot,this.shown=new ot,this.hidden=new ot,this.destroy$=new E,this.navItemChange$=new E,this.navChange=new ot,this.animation=i.animation,this.destroyOnHide=i.destroyOnHide,this.orientation=i.orientation,this.roles=i.roles,this.keyboard=i.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const i=e.which,s=this.links.filter(a=>!a.navItem.disabled),{length:r}=s;let o=-1;if(s.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(o=l)}),r){switch(i){case bn.ArrowLeft:if("vertical"===this.orientation)return;o=(o-1+r)%r;break;case bn.ArrowRight:if("vertical"===this.orientation)return;o=(o+1)%r;break;case bn.ArrowDown:if("horizontal"===this.orientation)return;o=(o+1)%r;break;case bn.ArrowUp:if("horizontal"===this.orientation)return;o=(o-1+r)%r;break;case bn.Home:o=0;break;case bn.End:o=r-1}"changeWithArrows"===this.keyboard&&this.select(s[o].navItem.id),s[o].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!$a(this.activeId)){const e=this.items.first?this.items.first.id:null;yB(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Tt(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,i=!0){if(this.activeId!==e){let s=!1;i&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{s=!0}}),s||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(i=>i.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(_s("role"),C(Yle),C(Gt),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,Wd,4),Ft(s,bf,5)),2&e){let r;st(r=rt())&&(i.items=r),st(r=rt())&&(i.links=r)}},hostVars:6,hostBindings:function(e,i){1&e&&nt("keydown.arrowLeft",function(r){return i.onKeyDown(r)})("keydown.arrowRight",function(r){return i.onKeyDown(r)})("keydown.arrowDown",function(r){return i.onKeyDown(r)})("keydown.arrowUp",function(r){return i.onKeyDown(r)})("keydown.Home",function(r){return i.onKeyDown(r)})("keydown.End",function(r){return i.onKeyDown(r)}),2&e&&(At("aria-orientation","vertical"===i.orientation&&"tablist"===i.roles?"vertical":void 0)("role",i.role?i.role:i.roles?"tablist":void 0),gt("nav",!0)("flex-column","vertical"===i.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[rn]}),t})(),bf=(()=>{class t{constructor(e,i,s,r){this.role=e,this.navItem=i,this.nav=s,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(_s("role"),C(Wd),C(Yd),C(tt))},t.\u0275dir=Le({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,i){1&e&&nt("click",function(r){return i.nav.click(i.navItem),r.preventDefault()}),2&e&&(ys("id",i.navItem.domId),At("role",i.role?i.role:i.nav.roles?"tab":void 0)("tabindex",i.navItem.disabled?-1:void 0)("aria-controls",i.navItem.isPanelInDom()?i.navItem.panelDomId:null)("aria-selected",i.navItem.active)("aria-disabled",i.navItem.disabled),gt("nav-link",!0)("nav-item",i.hasNavItemClass())("active",i.navItem.active)("disabled",i.navItem.disabled))}}),t})();const Xle=({classList:t})=>(t.remove("show"),()=>t.remove("active")),Qle=(t,n)=>{n&&zd(t),t.classList.add("show")};let lC=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,i){2&e&&(ys("id",i.item.panelDomId),At("role",i.role?i.role:i.nav.roles?"tabpanel":void 0)("aria-labelledby",i.item.domId),gt("fade",i.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),D_=(()=>{class t{constructor(e,i){this._cd=e,this._ngZone=i,this._activePane=null}isPanelTransitioning(e){var i;return(null===(i=this._activePane)||void 0===i?void 0:i.item)===e}ngAfterViewInit(){var e;this._updateActivePane(),this.nav.navItemChange$.pipe(Tt(this.nav.destroy$),ai((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),ia(),Mm(1)).subscribe(i=>{const s={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?es(this._ngZone,this._activePane.elRef.nativeElement,Xle,s).subscribe(()=>{var r;const o=null===(r=this._activePane)||void 0===r?void 0:r.item;this._activePane=this._getPaneForItem(i),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),es(this._ngZone,this._activePane.elRef.nativeElement,Qle,s).subscribe(()=>{i&&(i.shown.emit(),this.nav.shown.emit(i.id))})),o&&(o.hidden.emit(),this.nav.hidden.emit(o.id))}):this._updateActivePane()})}_updateActivePane(){var e,i;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(i=this._activePane)||void 0===i||i.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(i=>i.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(xt))},t.\u0275cmp=mt({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,i){if(1&e&&Yt(lC,5),2&e){let s;st(s=rt())&&(i._panes=s)}},hostVars:2,hostBindings:function(e,i){2&e&>("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:Poe,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&ke(0,Loe,1,1,"ng-template",0),2&e&&ge("ngForOf",i.nav.items)},directives:[oi,vn,lC,os],encapsulation:2,changeDetection:0}),t})(),vB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),EB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})();class Zle{constructor(n,e){this.open=n,this.close=e,e||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const ece={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},TB=t=>t>0?Zo(t):n=>n;let kB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),OB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),IB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),FB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),LB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})(),vce=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(Me(fs))},t.\u0275prov=Ze({factory:function(){return new t(Me(fs))},token:t,providedIn:"root"}),t})(),bce=0,xce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,i){2&e&&(ys("id",i.id),Ur("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),gt("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Hd,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,i){1&e&&(Cn(),je(0,"div",0),j(1,"div",1),jt(2),z())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],encapsulation:2,changeDetection:0}),t})(),cC=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u){this._elementRef=e,this._renderer=i,this._ngZone=l,this._document=c,this._changeDetector=d,this.shown=new ot,this.hidden=new ot,this._ngbTooltipWindowId="ngb-tooltip-"+bce++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new aC(xce,s,o,i,this._ngZone,r,u),this._zoneSubscription=l.onStable.subscribe(()=>{this._windowRef&&function(t,n,e,i,s){let r=Array.isArray(e)?e:e.split(Tle);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=_=>{const[T,k]=_.split("-"),$=[];return s&&($.push(`${s}-${T}`),k&&$.push(`${s}-${T}-${k}`),$.forEach(L=>{a.add(L)})),$};s&&o.forEach(_=>{a.remove(`${s}-${_}`)});let c=r.findIndex(_=>"auto"===_);c>=0&&o.forEach(function(_){null==r.find(T=>-1!==T.search("^"+_))&&r.splice(c++,1,_)});const d=n.style;d.position="absolute",d.top="0",d.left="0",d["will-change"]="transform";let u=null,f=!1;for(u of r){let _=l(u);if(eB.positionElements(t,n,u,i)){f=!0;break}s&&_.forEach(T=>{a.remove(T)})}f||(u=r[0],l(u),eB.positionElements(t,n,u,i))}(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:s}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),function(t,n,e,i,s,r,o,a){e&&t.runOutsideAngular((t=>Dle?()=>setTimeout(()=>t(),100):t)(()=>{const c=di(n,"keydown").pipe(Tt(s),mn(f=>f.which===bn.Escape),fi(f=>f.preventDefault())),d=di(n,"mousedown").pipe(g(f=>{const _=f.target;return 2!==f.button&&!y_(_,o)&&("inside"===e?y_(_,r)&&QL(_,a):"outside"===e?!y_(_,r):QL(_,a)||!y_(_,r))}),Tt(s)),u=di(n,"mouseup").pipe(qw(d),mn(([f,_])=>_),Zo(0),Tt(s));kL([c.pipe(g(f=>0)),u.pipe(g(f=>1))]).subscribe(f=>t.run(()=>i(f)))}))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),s.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,n,e,i,s,r,o=0,a=0){const l=function(t,n=ece){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=n[r[0]]||r;return new Zle(o[0],o[1])}),s=i.filter(r=>r.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(e);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,n,e,i){return new S(s=>{const r=[],o=()=>s.next(!0),a=()=>s.next(!1),l=()=>s.next(!i());return e.forEach(c=>{c.open===c.close?r.push(t.listen(n,c.open,l)):r.push(t.listen(n,c.open,o),t.listen(n,c.close,a))}),()=>{r.forEach(c=>c())}})}(t,n,l,i).pipe(function(t,n,e){return i=>{let s=null;const r=i.pipe(g(l=>({open:l})),mn(l=>{const c=e();return c===l.open||s&&s.open!==c?(s&&s.open!==l.open&&(s=null),!1):(s=l,!0)}),Tn());return De(r.pipe(mn(l=>l.open),TB(t)),r.pipe(mn(l=>!l.open),TB(n))).pipe(mn(l=>l===s&&(s=null,l.open!==e())),g(l=>l.open))}}(o,a,i)).subscribe(d=>d?s():r());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ji),C(wn),C(is),C(Fn),C(vce),C(xt),C(wt),C(Gt),C(cr))},t.\u0275dir=Le({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[rn]}),t})(),BB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();new pt("live announcer delay",{providedIn:"root",factory:function(){return 100}});let jB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei]]}),t})();const Tce=[VL,HL,zL,UL,WL,lB,hB,_B,vB,EB,kB,OB,IB,FB,LB,BB,jB];let zB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[Tce,VL,HL,zL,UL,WL,lB,hB,_B,vB,EB,kB,OB,IB,FB,LB,BB,jB]}),t})(),Wa=(()=>{class t{constructor(e){this.translationService=e}transform(e,i,s){return this.translationService.getLanguage()!==i?s:e}}return t.\u0275fac=function(e){return new(e||t)(C(qs,16))},t.\u0275pipe=ms({name:"languageContent",type:t,pure:!1}),t})();function Ace(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function kce(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function Oce(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}function Ice(t,n){if(1&t&&(pn(),je(0,"circle",3)),2&t){const e=Ie();si("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),At("r",e._getCircleRadius())}}const GB=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",Rce=$l(class{constructor(t){this._elementRef=t}},"primary"),$B=new pt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class ra extends Rce{constructor(n,e,i,s,r){super(n),this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=ra._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=e.EDGE||e.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(n){this._diameter=Li(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Li(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Li(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=EN(n)||this._document.head,this._attachStyleNode(),n.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=ra._diameters;let s=i.get(n);if(!s||!s.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),s||(s=new Set,i.set(n,s)),s.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ra.\u0275fac=function(n){return new(n||ra)(C(tt),C(yn),C(wt,8),C(Ci,8),C($B))},ra.\u0275cmp=mt({type:ra,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(At("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),si("width",e.diameter,"px")("height",e.diameter,"px"),gt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Je],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(pn(),j(0,"svg",0),ke(1,Ace,1,9,"circle",1),ke(2,kce,1,7,"circle",2),z()),2&n&&(si("width",e.diameter,"px")("height",e.diameter,"px"),ge("ngSwitch","indeterminate"===e.mode),At("viewBox",e._getViewBox()),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1))},directives:[Da,cd],styles:[GB],encapsulation:2,changeDetection:0}),ra._diameters=new WeakMap;let Lce=(()=>{class t extends ra{constructor(e,i,s,r,o){super(e,i,s,r,o),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(yn),C(wt,8),C(Ci,8),C($B))},t.\u0275cmp=mt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(si("width",i.diameter,"px")("height",i.diameter,"px"),gt("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[Je],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(pn(),j(0,"svg",0),ke(1,Oce,1,9,"circle",1),ke(2,Ice,1,7,"circle",2),z()),2&e&&(si("width",i.diameter,"px")("height",i.diameter,"px"),ge("ngSwitch","indeterminate"===i.mode),At("viewBox",i._getViewBox()),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1))},directives:[Da,cd],styles:[GB],encapsulation:2,changeDetection:0}),t})(),Bce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn,ei],Sn]}),t})();const Vce=["*"];function UB(t){return Error(`Unable to find icon with the name "${t}"`)}function WB(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function YB(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Jl{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let S_=(()=>{class t{constructor(e,i,s,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=s}addSvgIcon(e,i,s){return this.addSvgIconInNamespace("",e,i,s)}addSvgIconLiteral(e,i,s){return this.addSvgIconLiteralInNamespace("",e,i,s)}addSvgIconInNamespace(e,i,s,r){return this._addSvgIconConfig(e,i,new Jl(s,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,s,r){const o=this._sanitizer.sanitize(Ln.HTML,s);if(!o)throw YB(s);return this._addSvgIconConfig(e,i,new Jl("",o,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,s){return this._addSvgIconSetConfig(e,new Jl(i,null,s))}addSvgIconSetLiteralInNamespace(e,i,s){const r=this._sanitizer.sanitize(Ln.HTML,i);if(!r)throw YB(i);return this._addSvgIconSetConfig(e,new Jl("",r,s))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Ln.RESOURCE_URL,e);if(!i)throw WB(e);const s=this._cachedIconsByUrl.get(i);return s?Et(E_(s)):this._loadSvgIconFromConfig(new Jl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(i,r)),g(r=>E_(r)))}getNamedSvgIcon(e,i=""){const s=qB(i,e);let r=this._svgIconConfigs.get(s);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(s,r),this._getSvgFromConfig(r);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):zg(UB(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Et(E_(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(g(i=>E_(i)))}_getSvgFromIconSetConfigs(e,i){const s=this._extractIconWithNameFromAnySet(e,i);return s?Et(s):A2(i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe($i(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Et(null)})))).pipe(g(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw UB(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let s=i.length-1;s>=0;s--){const r=i[s];if(r.svgText&&r.svgText.indexOf(e)>-1){const o=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(o,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(i=>e.svgText=i),g(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Et(null):this._fetchIcon(e).pipe(fi(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,s){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const o=r.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,s);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),s);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,s)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const s=i.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const i=this._svgElementFromString(""),s=e.attributes;for(let r=0;rthis._inProgressUrlFetches.delete(a)),Tn());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,s){return this._svgIconConfigs.set(qB(e,i),s),this}_addSvgIconSetConfig(e,i){const s=this._iconSetConfigs.get(e);return s?s.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let s=0;sn?n.pathname+n.search:""}}}),XB=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Wce=t=>`[${t}]`,Yce=XB.map(Wce).join(", "),qce=/^url\(['"]?#(.*?)['"]?\)$/;let QB=(()=>{class t extends Gce{constructor(e,i,s,r,o){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=o,this._inline=!1,this._currentIconFetch=fe.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Vt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let r=0;r{s.forEach(o=>{r.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Yce),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const a=i[r],l=a.getAttribute(o),c=l?l.match(qce):null;if(c){let d=s.get(a);d||(d=[],s.set(a,d)),d.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,s]=this._splitIconName(e);i&&(this._svgNamespace=i),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,i).pipe(Bn(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${s}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(S_),_s("aria-hidden"),C($ce),C(Hr))},t.\u0275cmp=mt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(At("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),gt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Je],ngContentSelectors:Vce,decls:1,vars:0,template:function(e,i){1&e&&(Cn(),jt(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),KB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),uC=(()=>{class t{constructor(e,i){this.translatePipe=e,this.translateService=i}transform(e,i){if(e){const s=Math.floor((+new Date-+new Date(e))/1e3);if(s<29)return this.translatePipe.transform("TIME_NOW");const r={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let o;for(const a in r)if(o=Math.floor(s/r[a]),o>0){const l=Rs.getPluralForm(o,this.translateService.getLanguage());return`${o} ${this.translatePipe.transform(a+"_"+l+"_ago")}`}}return e}}return t.\u0275fac=function(e){return new(e||t)(C(Gn,16),C(qs,16))},t.\u0275pipe=ms({name:"dateAgo",type:t,pure:!1}),t})();function Xce(t,n){1&t&&je(0,"mat-spinner")}function Qce(t,n){1&t&&(j(0,"div",17),j(1,"mat-icon"),$e(2,"keyboard_arrow_right"),z(),j(3,"mat-icon"),$e(4,"keyboard_arrow_right"),z(),j(5,"mat-icon"),$e(6,"keyboard_arrow_right"),z(),z())}function Kce(t,n){if(1&t){const e=sn();j(0,"div",8),j(1,"div",8),j(2,"div",9),j(3,"span",10),nt("click",function(){const r=Ot(e).$implicit,o=Ie(3);return o.goToHistory(o.imageDataPath+r.target.url,r.target.malUrl)}),je(4,"img",11),j(5,"div",12),j(6,"a",13),ct(7,"languageContent"),$e(8),z(),je(9,"span",14),j(10,"span",15),$e(11),ct(12,"dateAgo"),z(),z(),z(),ke(13,Qce,7,0,"div",16),z(),z(),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie(3);ae(4),yi("src",s.imageDataPath+e.target.image.x96,_i),ae(2),yi("href",ml(7,6,s.imageDataPath+e.target.url,"ru",e.target.malUrl),_i),ae(2),Mt(e.target[s.historyFieldName]),ae(1),yi("innerHTML",e.description,Ac),ae(2),Mt(vt(12,10,e.created_at)),ae(2),ge("ngIf",i!==(null==s.history?null:s.history.length)-1)}}function Jce(t,n){if(1&t&&(j(0,"div",6),ke(1,Kce,14,12,"div",7),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.history)}}function Zce(t,n){if(1&t&&ke(0,Jce,2,1,"div",5),2&t){const e=Ie(),i=Qt(8);ge("ngIf",(null==e.history?null:e.history.length)>0)("ngIfElse",i)}}function ede(t,n){1&t&&(j(0,"span",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"LANDING_NO_DATA")))}let tde=(()=>{class t{constructor(e,i,s,r){this.translationPipe=e,this.languageContentPipe=i,this.translationService=s,this.animeService=r,this.isHistoryLoading=!0,this.historyFieldName="name",this.imageDataPath=dr}ngOnInit(){this.translationService.localeChange.subscribe(()=>{this.updateHistoryFieldName(),this.getHistory()})}getHistory(){this.isHistoryLoading=!0,this.animeService.getUserHistory().pipe($i(()=>Et([])),fi(()=>{this.isHistoryLoading=!1})).subscribe(e=>{var i;this.history=null==e?void 0:e.filter(s=>s.target),null===(i=this.history)||void 0===i||i.forEach(s=>{var r,o,a,l;const c=(null===(o=null===(r=this.data)||void 0===r?void 0:r.anime)||void 0===o?void 0:o.find(d=>d.anime.id==s.target.id))||(null===(l=null===(a=this.data)||void 0===a?void 0:a.manga)||void 0===l?void 0:l.find(d=>d.manga.id==s.target.id));s.target.malUrl=`https://myanimelist.net/${c.anime?"anime":"manga"}/${s.target.id}`})})}updateHistoryFieldName(){this.historyFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}goToHistory(e,i){window.location.href=this.languageContentPipe.transform(e,"ru",i)}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(Wa),C(qs),C(jh))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-history"]],inputs:{data:"data"},decls:9,vars:5,consts:[[1,"anime-history__container"],[1,"anime-history__header"],[4,"ngIf","ngIfElse"],["historyTemplate",""],["emptyTemplate",""],["class","anime-history__item-image-wrapper",4,"ngIf","ngIfElse"],[1,"anime-history__item-image-wrapper"],["class","anime-history__item",4,"ngFor","ngForOf"],[1,"anime-history__item"],[1,"anime-history__item-image"],[1,"anime-history__selectable",3,"click"],[1,"anime-history__thumbnail",3,"src"],[1,"anime-history__item-block"],["target","_blank","rel","noopener noreferrer",1,"anime-history__item-title",3,"href"],[1,"anime-history__bottom",3,"innerHTML"],[1,"anime-history__bottom"],["class","anime-history__arrows",4,"ngIf"],[1,"anime-history__arrows"],[1,"anime-history__no-data"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Xce,1,0,"mat-spinner",2),z(),ke(5,Zce,1,2,"ng-template",null,3,Mn),ke(7,ede,3,3,"ng-template",null,4,Mn)),2&e){const s=Qt(6);ae(2),Mt(vt(3,3,"ANIME_HISTORY")),ae(2),ge("ngIf",i.isHistoryLoading)("ngIfElse",s)}},directives:[vn,Lce,oi,QB],pipes:[Gn,Wa,uC],styles:['@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format("truetype")}@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr70w-.ttf) format("truetype")}.anime-history__no-data[_ngcontent-%COMP%]{font-weight:450;margin-bottom:10px}.anime-history__thumbnail[_ngcontent-%COMP%]{height:120px;border-radius:5px}.anime-history__header[_ngcontent-%COMP%]{font-size:1.7em;margin-top:5px;margin-bottom:5px;text-transform:uppercase;text-align:center}.anime-history__arrows[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:3px 15px 15px;justify-content:center}.anime-history__bottom[_ngcontent-%COMP%]{margin-left:15px;color:#9c27b0}.anime-history__item[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-right:5px;display:flex;flex:1}.anime-history__item-block[_ngcontent-%COMP%]{display:flex;flex-direction:column}.anime-history__item-title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.2em;font-weight:500}.anime-history__item-image[_ngcontent-%COMP%]{display:flex}.anime-history__item-image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-bottom:15px;flex-wrap:wrap}@media (max-width: 900px){.anime-history__item-image-wrapper[_ngcontent-%COMP%]{justify-content:flex-start}}.anime-history__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.anime-history__selectable[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;display:flex;flex-direction:row;padding:5px;border-radius:5px;cursor:pointer}.anime-history__selectable[_ngcontent-%COMP%]:hover{background-color:#f6f2ff5e}']}),t})();function JB(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function hC(t={},n={}){Object.keys(n).forEach(e=>{void 0===t[e]?t[e]=n[e]:JB(n[e])&&JB(t[e])&&Object.keys(n[e]).length>0&&hC(t[e],n[e])})}const ZB={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Fs(){const t="undefined"!=typeof document?document:{};return hC(t,ZB),t}const nde={document:ZB,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Ri(){const t="undefined"!=typeof window?window:{};return hC(t,nde),t}function Zl(t,n=0){return setTimeout(t,n)}function Rr(){return Date.now()}function fC(t,n="x"){const e=Ri();let i,s,r;const o=function(t){const n=Ri();let e;return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return e.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new e.WebKitCSSMatrix("none"===s?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===n&&(s=e.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(s=e.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}function xf(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function rde(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function fr(...t){const n=Object(t[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(o)<0);for(let o=0,a=r.length;os?"next":"prev",c=(u,f)=>"next"===l&&u>=f||"prev"===l&&u<=f,d=()=>{o=(new Date).getTime(),null===r&&(r=o);const u=Math.max(Math.min((o-r)/a,1),0),f=.5-Math.cos(u*Math.PI)/2;let _=s+f*(n-s);if(c(_,n)&&(_=n),t.wrapperEl.scrollTo({[e]:_}),c(_,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[e]:_})}),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function ec(t){return t.querySelector(".swiper-slide-transform")||t.shadowEl&&t.shadowEl.querySelector(".swiper-slide-transform")||t}function Ls(t,n=""){return[...t.children].filter(e=>e.matches(n))}function lo(t,n=[]){const e=document.createElement(t);return e.classList.add(...Array.isArray(n)?n:[n]),e}function T_(t){const n=Ri(),e=Fs(),i=t.getBoundingClientRect(),s=e.body;return{top:i.top+(t===n?n.scrollY:t.scrollTop)-(t.clientTop||s.clientTop||0),left:i.left+(t===n?n.scrollX:t.scrollLeft)-(t.clientLeft||s.clientLeft||0)}}function Ya(t,n){return Ri().getComputedStyle(t,null).getPropertyValue(n)}function Cf(t){let e,n=t;if(n){for(e=0;null!==(n=n.previousSibling);)1===n.nodeType&&(e+=1);return e}}function tc(t,n){const e=[];let i=t.parentElement;for(;i;)n?i.matches(n)&&e.push(i):e.push(i),i=i.parentElement;return e}function Mf(t,n){n&&t.addEventListener("transitionend",function e(i){i.target===t&&(n.call(t,i),t.removeEventListener("transitionend",e))})}function pC(t,n,e){const i=Ri();return e?t["width"===n?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===n?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===n?"margin-left":"margin-bottom")):t.offsetWidth}let gC,mC,_C;function t3(){return gC||(gC=function(){const t=Ri(),n=Fs();return{smoothScroll:n.documentElement&&n.documentElement.style&&"scrollBehavior"in n.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&n instanceof t.DocumentTouch)}}()),gC}const gde={on(t,n,e){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof n)return i;const s=e?"unshift":"push";return t.split(" ").forEach(r=>{i.eventsListeners[r]||(i.eventsListeners[r]=[]),i.eventsListeners[r][s](n)}),i},once(t,n,e){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof n)return i;function s(...r){i.off(t,s),s.__emitterProxy&&delete s.__emitterProxy,n.apply(i,r)}return s.__emitterProxy=n,i.on(t,s,e)},onAny(t,n){const e=this;if(!e.eventsListeners||e.destroyed||"function"!=typeof t)return e;const i=n?"unshift":"push";return e.eventsAnyListeners.indexOf(t)<0&&e.eventsAnyListeners[i](t),e},offAny(t){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsAnyListeners)return n;const e=n.eventsAnyListeners.indexOf(t);return e>=0&&n.eventsAnyListeners.splice(e,1),n},off(t,n){const e=this;return!e.eventsListeners||e.destroyed||!e.eventsListeners||t.split(" ").forEach(i=>{void 0===n?e.eventsListeners[i]=[]:e.eventsListeners[i]&&e.eventsListeners[i].forEach((s,r)=>{(s===n||s.__emitterProxy&&s.__emitterProxy===n)&&e.eventsListeners[i].splice(r,1)})}),e},emit(...t){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,i,s;return"string"==typeof t[0]||Array.isArray(t[0])?(e=t[0],i=t.slice(1,t.length),s=n):(e=t[0].events,i=t[0].data,s=t[0].context||n),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(o=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(a=>{a.apply(s,[o,...i])}),n.eventsListeners&&n.eventsListeners[o]&&n.eventsListeners[o].forEach(a=>{a.apply(s,i)})}),n}},A_=(t,n)=>{if(!t||t.destroyed||!t.params)return;const i=n.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){const s=i.querySelector(`.${t.params.lazyPreloaderClass}`);s&&s.remove()}},yC=(t,n)=>{if(!t.slides[n])return;const e=t.slides[n].querySelector('[loading="lazy"]');e&&e.removeAttribute("loading")},vC=t=>{if(!t||t.destroyed||!t.params)return;let n=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!n||n<0)return;n=Math.min(n,e);const i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=s,a=[o-n];return a.push(...Array.from({length:n}).map((l,c)=>o+i+c)),void t.slides.forEach((l,c)=>{a.includes(l.column)&&yC(t,c)})}const r=s+i-1;if(t.params.rewind||t.params.loop)for(let o=s-n;o<=r+n;o+=1){const a=(o%e+e)%e;(ar)&&yC(t,a)}else for(let o=Math.max(s-n,0);o<=Math.min(r+n,e-1);o+=1)o!==s&&(o>r||o=0?Te=parseFloat(Te.replace("%",""))/100*o:"string"==typeof Te&&(Te=parseFloat(Te)),t.virtualSize=-Te,u.forEach(Xe=>{a?Xe.style.marginLeft="":Xe.style.marginRight="",Xe.style.marginBottom="",Xe.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(wf(s,"--swiper-centered-offset-before",""),wf(s,"--swiper-centered-offset-after",""));const He=i.grid&&i.grid.rows>1&&t.grid;let it;He&&t.grid.initSlides(f);const lt="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(Xe=>void 0!==i.breakpoints[Xe].slidesPerView).length>0;for(let Xe=0;Xe1&&_.push(t.virtualSize-o)}if(c&&i.loop){const Xe=k[0]+Te;if(i.slidesPerGroup>1){const qe=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),Pe=Xe*i.slidesPerGroup;for(let Ye=0;Ye!(i.cssMode&&!i.loop)||Pe!==u.length-1).forEach(qe=>{qe.style[Xe]=`${Te}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let Xe=0;k.forEach(Pe=>{Xe+=Pe+(Te||0)}),Xe-=Te;const qe=Xe-o;_=_.map(Pe=>Pe<=0?-$:Pe>qe?qe+L:Pe)}if(i.centerInsufficientSlides){let Xe=0;if(k.forEach(qe=>{Xe+=qe+(Te||0)}),Xe-=Te,Xe{_[Ye]=Pe-qe}),T.forEach((Pe,Ye)=>{T[Ye]=Pe+qe})}}if(Object.assign(t,{slides:u,snapGrid:_,slidesGrid:T,slidesSizesGrid:k}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){wf(s,"--swiper-centered-offset-before",-_[0]+"px"),wf(s,"--swiper-centered-offset-after",t.size/2-k[k.length-1]/2+"px");const Xe=-t.snapGrid[0],qe=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(Pe=>Pe+Xe),t.slidesGrid=t.slidesGrid.map(Pe=>Pe+qe)}if(f!==d&&t.emit("slidesLengthChange"),_.length!==J&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),T.length!==ue&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!(c||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const Xe=`${i.containerModifierClass}backface-hidden`,qe=t.el.classList.contains(Xe);f<=i.maxBackfaceHiddenSlides?qe||t.el.classList.add(Xe):qe&&t.el.classList.remove(Xe)}},updateAutoHeight:function(t){const n=this,e=[],i=n.virtual&&n.params.virtual.enabled;let r,s=0;"number"==typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed);const o=a=>i?n.slides[n.getSlideIndexByData(a)]:n.slides[a];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(a=>{e.push(a)});else for(r=0;rn.slides.length&&!i)break;e.push(o(a))}else e.push(o(n.activeIndex));for(r=0;rs?a:s}(s||0===s)&&(n.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){const t=this,n=t.slides,e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i{l.classList.remove(e.slideVisibleClass)}),n.visibleSlidesIndexes=[],n.visibleSlides=[];let a=e.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*n.size:"string"==typeof a&&(a=parseFloat(a));for(let l=0;l=0&&_1&&T<=n.size||_<=0&&T>=n.size)&&(n.visibleSlides.push(c),n.visibleSlidesIndexes.push(l),i[l].classList.add(e.slideVisibleClass)),c.progress=s?-u:u,c.originalProgress=s?-f:f}},updateProgress:function(t){const n=this;if(void 0===t){const d=n.rtlTranslate?-1:1;t=n&&n.translate&&n.translate*d||0}const e=n.params,i=n.maxTranslate()-n.minTranslate();let{progress:s,isBeginning:r,isEnd:o,progressLoop:a}=n;const l=r,c=o;if(0===i)s=0,r=!0,o=!0;else{s=(t-n.minTranslate())/i;const d=Math.abs(t-n.minTranslate())<1,u=Math.abs(t-n.maxTranslate())<1;r=d||s<=0,o=u||s>=1,d&&(s=0),u&&(s=1)}if(e.loop){const d=n.getSlideIndexByData(0),u=n.getSlideIndexByData(n.slides.length-1),f=n.slidesGrid[d],_=n.slidesGrid[u],T=n.slidesGrid[n.slidesGrid.length-1],k=Math.abs(t);a=k>=f?(k-f)/T:(k+T-_)/T,a>1&&(a-=1)}Object.assign(n,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)&&n.updateSlidesProgress(t),r&&!l&&n.emit("reachBeginning toEdge"),o&&!c&&n.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&n.emit("fromEdge"),n.emit("progress",s)},updateSlidesClasses:function(){const t=this,{slides:n,params:e,slidesEl:i,activeIndex:s}=t,r=t.virtual&&e.virtual.enabled,o=l=>Ls(i,`.${e.slideClass}${l}, swiper-slide${l}`)[0];let a;if(n.forEach(l=>{l.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}),r)if(e.loop){let l=s-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${l}"]`)}else a=o(`[data-swiper-slide-index="${s}"]`);else a=n[s];if(a){a.classList.add(e.slideActiveClass);let l=function(t,n){const e=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}(a,`.${e.slideClass}, swiper-slide`)[0];e.loop&&!l&&(l=n[0]),l&&l.classList.add(e.slideNextClass);let c=function(t,n){const e=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;n?i.matches(n)&&e.push(i):e.push(i),t=i}return e}(a,`.${e.slideClass}, swiper-slide`)[0];e.loop&&0===!c&&(c=n[n.length-1]),c&&c.classList.add(e.slidePrevClass)}t.emitSlidesClasses()},updateActiveIndex:function(t){const n=this,e=n.rtlTranslate?n.translate:-n.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:o,snapIndex:a}=n;let c,l=t;const d=f=>{let _=f-n.virtual.slidesBefore;return _<0&&(_=n.virtual.slides.length+_),_>=n.virtual.slides.length&&(_-=n.virtual.slides.length),_};if(void 0===l&&(l=function(t){const{slidesGrid:n,params:e}=t,i=t.rtlTranslate?t.translate:-t.translate;let s;for(let r=0;r=n[r]&&i=n[r]&&i=n[r]&&(s=r);return e.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(n)),i.indexOf(e)>=0)c=i.indexOf(e);else{const f=Math.min(s.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/s.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===r)return c!==a&&(n.snapIndex=c,n.emit("snapIndexChange")),void(n.params.loop&&n.virtual&&n.params.virtual.enabled&&(n.realIndex=d(l)));let u;u=n.virtual&&s.virtual.enabled&&s.loop?d(l):n.slides[l]?parseInt(n.slides[l].getAttribute("data-swiper-slide-index")||l,10):l,Object.assign(n,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:u,previousIndex:r,activeIndex:l}),n.initialized&&vC(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),o!==u&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")},updateClickedSlide:function(t){const n=this,e=n.params,i=t.closest(`.${e.slideClass}, swiper-slide`);let r,s=!1;if(i)for(let o=0;ol?l:i&&tr?"next":s=l.length&&($=l.length-1);const L=-l[$];if(a.normalizeSlideIndex)for(let ue=0;ue=Fe&&Te=Fe&&Te=Fe&&(o=ue)}if(r.initialized&&o!==u&&(!r.allowSlideNext&&(f?L>r.translate&&L>r.minTranslate():Lr.translate&&L>r.maxTranslate()&&(u||0)!==o))return!1;let J;if(o!==(d||0)&&e&&r.emit("beforeSlideChangeStart"),r.updateProgress(L),J=o>u?"next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{_[ue?"scrollLeft":"scrollTop"]=Te})):_[ue?"scrollLeft":"scrollTop"]=Te,Fe&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})}else{if(!r.support.smoothScroll)return e3({swiper:r,targetPosition:Te,side:ue?"left":"top"}),!0;_.scrollTo({[ue?"left":"top"]:Te,behavior:"smooth"})}return!0}return r.setTransition(n),r.setTranslate(L),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",n,i),r.transitionStart(e,J),0===n?r.transitionEnd(e,J):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(Te){!r||r.destroyed||Te.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(e,J))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,n=this.params.speed,e=!0,i){"string"==typeof t&&(t=parseInt(t,10));const s=this;let r=t;return s.params.loop&&(s.virtual&&s.params.virtual.enabled?r+=s.virtual.slidesBefore:r=s.getSlideIndexByData(r)),s.slideTo(r,n,e,i)},slideNext:function(t=this.params.speed,n=!0,e){const i=this,{enabled:s,params:r,animating:o}=i;if(!s)return i;let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndexf(L));let k=r[T.indexOf(_)-1];if(void 0===k&&s.cssMode){let L;r.forEach((J,ue)=>{_>=J&&(L=ue)}),void 0!==L&&(k=r[L>0?L-1:L])}let $=0;return void 0!==k&&($=o.indexOf(k),$<0&&($=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&($=$-i.slidesPerViewDynamic("previous",!0)+1,$=Math.max($,0))),i.slideTo(s.rewind&&i.isBeginning?i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:$,t,n,e)},slideReset:function(t=this.params.speed,n=!0,e){return this.slideTo(this.activeIndex,t,n,e)},slideToClosest:function(t=this.params.speed,n=!0,e,i=.5){const s=this;let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const c=s.snapGrid[a];l-c>(s.snapGrid[a+1]-c)*i&&(r+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1];l-c<=(s.snapGrid[a]-c)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,t,n,e)},slideToClickedSlide:function(){const t=this,{params:n,slidesEl:e}=t,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView;let r,s=t.clickedIndex;const o=t.isElement?"swiper-slide":`.${n.slideClass}`;if(n.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?st.slides.length-t.loopedSlides+i/2?(t.loopFix(),s=t.getSlideIndex(Ls(e,`${o}[data-swiper-slide-index="${r}"]`)[0]),Zl(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-i?(t.loopFix(),s=t.getSlideIndex(Ls(e,`${o}[data-swiper-slide-index="${r}"]`)[0]),Zl(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},qde={loopCreate:function(t){const n=this,{params:e,slidesEl:i}=n;!e.loop||n.virtual&&n.params.virtual.enabled||(Ls(i,`.${e.slideClass}, swiper-slide`).forEach((r,o)=>{r.setAttribute("data-swiper-slide-index",o)}),n.loopFix({slideRealIndex:t,direction:e.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:t,slideTo:n=!0,direction:e,setTranslate:i,activeSlideIndex:s,byController:r,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:d,slidesEl:u,params:f}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==a.snapIndex?f.centeredSlides&&a.snapIndexBe.classList.contains(f.slideActiveClass))[0]):L=s;const J="next"===e||!e,ue="prev"===e||!e;let Te=0,Fe=0;if(sa.slides.length-2*T){Fe=Math.max(s-(a.slides.length-2*T),f.slidesPerGroup);for(let Be=0;Be{a.slides[Be].swiperLoopMoveDOM=!0,u.prepend(a.slides[Be]),a.slides[Be].swiperLoopMoveDOM=!1}),J&&$.forEach(Be=>{a.slides[Be].swiperLoopMoveDOM=!0,u.append(a.slides[Be]),a.slides[Be].swiperLoopMoveDOM=!1}),a.recalcSlides(),"auto"===f.slidesPerView&&a.updateSlides(),f.watchSlidesProgress&&a.updateSlidesOffset(),n)if(k.length>0&&ue)if(void 0===t){const He=a.slidesGrid[L+Te]-a.slidesGrid[L];o?a.setTranslate(a.translate-He):(a.slideTo(L+Te,0,!1,!0),i&&(a.touches[a.isHorizontal()?"startX":"startY"]+=He))}else i&&a.slideToLoop(t,0,!1,!0);else if($.length>0&&J)if(void 0===t){const He=a.slidesGrid[L-Fe]-a.slidesGrid[L];o?a.setTranslate(a.translate-He):(a.slideTo(L-Fe,0,!1,!0),i&&(a.touches[a.isHorizontal()?"startX":"startY"]+=He))}else a.slideToLoop(t,0,!1,!0);if(a.allowSlidePrev=c,a.allowSlideNext=d,a.controller&&a.controller.control&&!r){const Be={slideRealIndex:t,slideTo:!1,direction:e,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(Ue=>{!Ue.destroyed&&Ue.params.loop&&Ue.loopFix(Be)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(Be)}a.emit("loopFix")},loopDestroy:function(){const t=this,{params:n,slidesEl:e}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(s=>{const r=void 0===s.swiperSlideIndex?1*s.getAttribute("data-swiper-slide-index"):s.swiperSlideIndex;i[r]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),i.forEach(s=>{e.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}},Kde={setGrabCursor:function(t){const n=this;if(!n.params.simulateTouch||n.params.watchOverflow&&n.isLocked||n.params.cssMode)return;const e="container"===n.params.touchEventsTarget?n.el:n.wrapperEl;n.isElement&&(n.__preventObserver__=!0),e.style.cursor="move",e.style.cursor=t?"grabbing":"grab",n.isElement&&requestAnimationFrame(()=>{n.__preventObserver__=!1})},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}};function Zde(t){const n=this,e=Fs(),i=Ri(),s=n.touchEventsData;s.evCache.push(t);const{params:r,touches:o,enabled:a}=n;if(!a||!r.simulateTouch&&"mouse"===t.pointerType||n.animating&&r.preventInteractionOnTransition)return;!n.animating&&r.cssMode&&r.loop&&n.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let c=l.target;if("wrapper"===r.touchEventsTarget&&!n.wrapperEl.contains(c)||"which"in l&&3===l.which||"button"in l&&l.button>0||s.isTouched&&s.isMoved)return;const d=!!r.noSwipingClass&&""!==r.noSwipingClass,u=t.composedPath?t.composedPath():t.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`;if(r.noSwiping&&(l.target&&l.target.shadowRoot?function(t,n=this){return function e(i){if(!i||i===Fs()||i===Ri())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return s||i.getRootNode?s||e(i.getRootNode().host):null}(n)}(f,c):c.closest(f)))return void(n.allowClick=!0);if(r.swipeHandler&&!c.closest(r.swipeHandler))return;o.currentX=l.pageX,o.currentY=l.pageY;const T=o.currentX,k=o.currentY,$=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,L=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if($&&(T<=L||T>=i.innerWidth-L)){if("prevent"!==$)return;t.preventDefault()}Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=T,o.startY=k,s.touchStartTime=Rr(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let J=!0;c.matches(s.focusableElements)&&(J=!1,"SELECT"===c.nodeName&&(s.isTouched=!1)),e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==c&&e.activeElement.blur(),(r.touchStartForcePreventDefault||J&&n.allowTouchMove&&r.touchStartPreventDefault)&&!c.isContentEditable&&l.preventDefault(),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.animating&&!r.cssMode&&n.freeMode.onTouchStart(),n.emit("touchStart",l)}function eue(t){const n=Fs(),e=this,i=e.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:a}=e;if(!a||!s.simulateTouch&&"mouse"===t.pointerType)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",l));const c=i.evCache.findIndex(Be=>Be.pointerId===l.pointerId);c>=0&&(i.evCache[c]=l);const d=i.evCache.length>1?i.evCache[0]:l,u=d.pageX,f=d.pageY;if(l.preventedByNestedSwiper)return r.startX=u,void(r.startY=f);if(!e.allowTouchMove)return l.target.matches(i.focusableElements)||(e.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:u,startY:f,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:u,currentY:f}),i.touchStartTime=Rr()));if(s.touchReleaseOnEdges&&!s.loop)if(e.isVertical()){if(fr.startY&&e.translate>=e.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(ur.startX&&e.translate>=e.minTranslate())return;if(n.activeElement&&l.target===n.activeElement&&l.target.matches(i.focusableElements))return i.isMoved=!0,void(e.allowClick=!1);if(i.allowTouchCallbacks&&e.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=u,r.currentY=f;const _=r.currentX-r.startX,T=r.currentY-r.startY;if(e.params.threshold&&Math.sqrt(_**2+T**2)=25&&(Be=180*Math.atan2(Math.abs(T),Math.abs(_))/Math.PI,i.isScrolling=e.isHorizontal()?Be>s.touchAngle:90-Be>s.touchAngle)}if(i.isScrolling&&e.emit("touchMoveOpposite",l),void 0===i.startMoving&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(i.startMoving=!0),i.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&i.evCache.length>1)return void(i.isTouched=!1);if(!i.startMoving)return;e.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let k=e.isHorizontal()?_:T,$=e.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(k=Math.abs(k)*(o?1:-1),$=Math.abs($)*(o?1:-1)),r.diff=k,k*=s.touchRatio,o&&(k=-k,$=-$);const L=e.touchesDirection;e.swipeDirection=k>0?"prev":"next",e.touchesDirection=$>0?"prev":"next";const J=e.params.loop&&!s.cssMode;if(!i.isMoved){if(J&&e.loopFix({direction:e.swipeDirection}),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating){const Be=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(Be)}i.allowMomentumBounce=!1,s.grabCursor&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",l)}let ue;i.isMoved&&L!==e.touchesDirection&&J&&Math.abs(k)>=1&&(e.loopFix({direction:e.swipeDirection,setTranslate:!0}),ue=!0),e.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=k+i.startTranslate;let Te=!0,Fe=s.resistanceRatio;if(s.touchReleaseOnEdges&&(Fe=0),k>0?(J&&!ue&&i.currentTranslate>(s.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())&&e.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>e.minTranslate()&&(Te=!1,s.resistance&&(i.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+i.startTranslate+k)**Fe))):k<0&&(J&&!ue&&i.currentTranslate<(s.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())&&e.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:e.slides.length-("auto"===s.slidesPerView?e.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&!e.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(k)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=e.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&e.freeMode||s.watchSlidesProgress)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.freeMode.onTouchMove(),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}function tue(t){const n=this,e=n.touchEventsData,i=e.evCache.findIndex(ue=>ue.pointerId===t.pointerId);if(i>=0&&e.evCache.splice(i,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&("pointercancel"!==t.type||!n.browser.isSafari&&!n.browser.isWebView))return;const{params:s,touches:r,rtlTranslate:o,slidesGrid:a,enabled:l}=n;if(!l||!s.simulateTouch&&"mouse"===t.pointerType)return;let c=t;if(c.originalEvent&&(c=c.originalEvent),e.allowTouchCallbacks&&n.emit("touchEnd",c),e.allowTouchCallbacks=!1,!e.isTouched)return e.isMoved&&s.grabCursor&&n.setGrabCursor(!1),e.isMoved=!1,void(e.startMoving=!1);s.grabCursor&&e.isMoved&&e.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);const d=Rr(),u=d-e.touchStartTime;if(n.allowClick){const ue=c.path||c.composedPath&&c.composedPath();n.updateClickedSlide(ue&&ue[0]||c.target),n.emit("tap click",c),u<300&&d-e.lastClickTime<300&&n.emit("doubleTap doubleClick",c)}if(e.lastClickTime=Rr(),Zl(()=>{n.destroyed||(n.allowClick=!0)}),!e.isTouched||!e.isMoved||!n.swipeDirection||0===r.diff||e.currentTranslate===e.startTranslate)return e.isTouched=!1,e.isMoved=!1,void(e.startMoving=!1);let f;if(e.isTouched=!1,e.isMoved=!1,e.startMoving=!1,f=s.followFinger?o?n.translate:-n.translate:-e.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled)return void n.freeMode.onTouchEnd({currentPos:f});let _=0,T=n.slidesSizesGrid[0];for(let ue=0;ue=a[ue]&&f=a[ue]&&(_=ue,T=a[a.length-1]-a[a.length-2])}let k=null,$=null;s.rewind&&(n.isBeginning?$=s.virtual&&s.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(k=0));const L=(f-a[_])/T,J=_s.longSwipesMs){if(!s.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&n.slideTo(L>=s.longSwipesRatio?s.rewind&&n.isEnd?k:_+J:_),"prev"===n.swipeDirection&&(L>1-s.longSwipesRatio?n.slideTo(_+J):null!==$&&L<0&&Math.abs(L)>s.longSwipesRatio?n.slideTo($):n.slideTo(_))}else{if(!s.shortSwipes)return void n.slideTo(n.activeIndex);!n.navigation||c.target!==n.navigation.nextEl&&c.target!==n.navigation.prevEl?("next"===n.swipeDirection&&n.slideTo(null!==k?k:_+J),"prev"===n.swipeDirection&&n.slideTo(null!==$?$:_)):n.slideTo(c.target===n.navigation.nextEl?_+J:_)}}function i3(){const t=this,{params:n,el:e}=t;if(e&&0===e.offsetWidth)return;n.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),!("auto"===n.slidesPerView||n.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||o&&n.loop?t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=i,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function nue(t){const n=this;!n.enabled||n.allowClick||(n.params.preventClicks&&t.preventDefault(),n.params.preventClicksPropagation&&n.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}function iue(){const t=this,{wrapperEl:n,rtlTranslate:e,enabled:i}=t;if(!i)return;let s;t.previousTranslate=t.translate,t.translate=t.isHorizontal()?-n.scrollLeft:-n.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const r=t.maxTranslate()-t.minTranslate();s=0===r?0:(t.translate-t.minTranslate())/r,s!==t.progress&&t.updateProgress(e?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function sue(t){const n=this;A_(n,t.target),!n.params.cssMode&&("auto"===n.params.slidesPerView||n.params.autoHeight)&&n.update()}let s3=!1;function rue(){}const r3=(t,n)=>{const e=Fs(),{params:i,el:s,wrapperEl:r,device:o}=t,a=!!i.nested,l="on"===n?"addEventListener":"removeEventListener",c=n;s[l]("pointerdown",t.onTouchStart,{passive:!1}),e[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),e[l]("pointerup",t.onTouchEnd,{passive:!0}),e[l]("pointercancel",t.onTouchEnd,{passive:!0}),e[l]("pointerout",t.onTouchEnd,{passive:!0}),e[l]("pointerleave",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",t.onClick,!0),i.cssMode&&r[l]("scroll",t.onScroll),t[c](i.updateOnWindowResize?o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate":"observerUpdate",i3,!0),s[l]("load",t.onLoad,{capture:!0})},lue={attachEvents:function(){const t=this,n=Fs(),{params:e}=t;t.onTouchStart=Zde.bind(t),t.onTouchMove=eue.bind(t),t.onTouchEnd=tue.bind(t),e.cssMode&&(t.onScroll=iue.bind(t)),t.onClick=nue.bind(t),t.onLoad=sue.bind(t),s3||(n.addEventListener("touchstart",rue),s3=!0),r3(t,"on")},detachEvents:function(){r3(this,"off")}},o3=(t,n)=>t.grid&&n.grid&&n.grid.rows>1,uue={setBreakpoint:function(){const t=this,{realIndex:n,initialized:e,params:i,el:s}=t,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=t.getBreakpoint(r,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||t.originalParams,c=o3(t,i),d=o3(t,l),u=i.enabled;c&&!d?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&d&&(s.classList.add(`${i.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(k=>{if(void 0===l[k])return;const $=i[k]&&i[k].enabled,L=l[k]&&l[k].enabled;$&&!L&&t[k].disable(),!$&&L&&t[k].enable()});const f=l.direction&&l.direction!==i.direction,_=i.loop&&(l.slidesPerView!==i.slidesPerView||f);f&&e&&t.changeDirection(),fr(t.params,l);const T=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!T?t.disable():!u&&T&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),_&&e&&(t.loopDestroy(),t.loopCreate(n),t.updateSlides()),t.emit("breakpoint",l)},getBreakpoint:function(t,n="window",e){if(!t||"container"===n&&!e)return;let i=!1;const s=Ri(),r="window"===n?s.innerHeight:e.clientHeight,o=Object.keys(t).map(a=>{if("string"==typeof a&&0===a.indexOf("@")){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{"object"==typeof i?Object.keys(i).forEach(s=>{i[s]&&e.push(n+s)}):"string"==typeof i&&e.push(n+i)}),e}(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&"column"===e.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);n.push(...o),s.classList.add(...n),t.emitContainerClasses()},removeClasses:function(){const{el:n,classNames:e}=this;n.classList.remove(...e),this.emitContainerClasses()}},bC={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function yue(t,n){return function(i={}){const s=Object.keys(i)[0],r=i[s];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===t[s]&&(t[s]={auto:!0}),s in t&&"enabled"in r?(!0===t[s]&&(t[s]={enabled:!0}),"object"==typeof t[s]&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),fr(n,i)):fr(n,i)):fr(n,i)}}const xC={eventsEmitter:gde,update:Sde,translate:Ide,transition:Fde,slide:$de,loop:qde,grabCursor:Kde,events:lue,breakpoints:uue,checkOverflow:{checkOverflow:function(){const t=this,{isLocked:n,params:e}=t,{slidesOffsetBefore:i}=e;if(i){const s=t.slides.length-1;t.isLocked=t.size>t.slidesGrid[s]+t.slidesSizesGrid[s]+2*i}else t.isLocked=1===t.snapGrid.length;!0===e.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===e.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),n&&n!==t.isLocked&&(t.isEnd=!1),n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:gue},wC={};class Nr{constructor(...n){let e,i;1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?i=n[0]:[e,i]=n,i||(i={}),i=fr({},i),e&&!i.el&&(i.el=e);const s=Fs();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){const l=[];return s.querySelectorAll(i.el).forEach(c=>{const d=fr({},i,{el:c});l.push(new Nr(d))}),l}const r=this;r.__swiper__=!0,r.support=t3(),r.device=function(t={}){return mC||(mC=function({userAgent:t}={}){const n=t3(),e=Ri(),i=e.navigator.platform,s=t||e.navigator.userAgent,r={ios:!1,android:!1},o=e.screen.width,a=e.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const d=s.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i;let _="MacIntel"===i;return!c&&_&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),_=!1),l&&!f&&(r.os="android",r.android=!0),(c||u||d)&&(r.os="ios",r.ios=!0),r}(t)),mC}({userAgent:i.userAgent}),r.browser=(_C||(_C=function(){const t=Ri();let n=!1;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const i=String(t.navigator.userAgent);if(i.includes("Version/")){const[s,r]=i.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));n=s<16||16===s&&r<2}}return{isSafari:n||e(),needPerspectiveFix:n,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),_C),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const o={};r.modules.forEach(l=>{l({params:i,swiper:r,extendParams:yue(i,o),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const a=fr({},bC,o);return r.params=fr({},a,wC,i),r.originalParams=fr({},r.params),r.passedParams=fr({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(l=>{r.on(l,r.params.on[l])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getSlideIndex(n){const{slidesEl:e,params:i}=this,r=Cf(Ls(e,`.${i.slideClass}, swiper-slide`)[0]);return Cf(n)-r}getSlideIndexByData(n){return this.getSlideIndex(this.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===n)[0])}recalcSlides(){const{slidesEl:e,params:i}=this;this.slides=Ls(e,`.${i.slideClass}, swiper-slide`)}enable(){const n=this;n.enabled||(n.enabled=!0,n.params.grabCursor&&n.setGrabCursor(),n.emit("enable"))}disable(){const n=this;!n.enabled||(n.enabled=!1,n.params.grabCursor&&n.unsetGrabCursor(),n.emit("disable"))}setProgress(n,e){const i=this;n=Math.min(Math.max(n,0),1);const s=i.minTranslate(),o=(i.maxTranslate()-s)*n+s;i.translateTo(o,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const e=n.el.className.split(" ").filter(i=>0===i.indexOf("swiper")||0===i.indexOf(n.params.containerModifierClass));n.emit("_containerClasses",e.join(" "))}getSlideClasses(n){const e=this;return e.destroyed?"":n.className.split(" ").filter(i=>0===i.indexOf("swiper-slide")||0===i.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){const n=this;if(!n.params._emitClasses||!n.el)return;const e=[];n.slides.forEach(i=>{const s=n.getSlideClasses(i);e.push({slideEl:i,classNames:s}),n.emit("_slideClass",i,s)}),n.emit("_slideClasses",e)}slidesPerViewDynamic(n="current",e=!1){const{params:s,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=this;let d=1;if(s.centeredSlides){let f,u=r[c]?r[c].swiperSlideSize:0;for(let _=c+1;_l&&(f=!0));for(let _=c-1;_>=0;_-=1)r[_]&&!f&&(u+=r[_].swiperSlideSize,d+=1,u>l&&(f=!0))}else if("current"===n)for(let u=c+1;u=0;u-=1)o[c]-o[u]{o.complete&&A_(n,o)}),n.updateSize(),n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode?(s(),i.autoHeight&&n.updateAutoHeight()):(r=n.slideTo(("auto"===i.slidesPerView||i.slidesPerView>1)&&n.isEnd&&!i.centeredSlides?(n.virtual&&i.virtual.enabled?n.virtual.slides:n.slides).length-1:n.activeIndex,0,!1,!0),r||s()),i.watchOverflow&&e!==n.snapGrid&&n.checkOverflow(),n.emit("update")}changeDirection(n,e=!0){const i=this,s=i.params.direction;return n||(n="horizontal"===s?"vertical":"horizontal"),n===s||"horizontal"!==n&&"vertical"!==n||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${n}`),i.emitContainerClasses(),i.params.direction=n,i.slides.forEach(r=>{"vertical"===n?r.style.width="":r.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(n){const e=this;e.rtl&&"rtl"===n||!e.rtl&&"ltr"===n||(e.rtl="rtl"===n,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(n){const e=this;if(e.mounted)return!0;let i=n||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.shadowEl&&(e.isElement=!0);const s=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):Ls(i,s())[0];return!o&&e.params.createElements&&(o=lo("div",e.params.wrapperClass),i.append(o),Ls(i,`.${e.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(e,{el:i,wrapperEl:o,slidesEl:e.isElement?i:o,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===Ya(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===Ya(i,"direction")),wrongRTL:"-webkit-box"===Ya(o,"display")}),!0}init(n){const e=this;return e.initialized||!1===e.mount(n)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.slideTo(e.params.loop&&e.virtual&&e.params.virtual.enabled?e.params.initialSlide+e.virtual.slidesBefore:e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(),e.attachEvents(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete?A_(e,s):s.addEventListener("load",r=>{A_(e,r.target)})}),vC(e),e.initialized=!0,vC(e),e.emit("init"),e.emit("afterInit")),e}destroy(n=!0,e=!0){const i=this,{params:s,el:r,wrapperEl:o,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),!1!==n&&(i.el.swiper=null,function(t){const n=t;Object.keys(n).forEach(e=>{try{n[e]=null}catch(i){}try{delete n[e]}catch(i){}})}(i)),i.destroyed=!0),null}static extendDefaults(n){fr(wC,n)}static get extendedDefaults(){return wC}static get defaults(){return bC}static installModule(n){Nr.prototype.__modules__||(Nr.prototype.__modules__=[]);const e=Nr.prototype.__modules__;"function"==typeof n&&e.indexOf(n)<0&&e.push(n)}static use(n){return Array.isArray(n)?(n.forEach(e=>Nr.installModule(e)),Nr):(Nr.installModule(n),Nr)}}Object.keys(xC).forEach(t=>{Object.keys(xC[t]).forEach(n=>{Nr.prototype[n]=xC[t][n]})}),Nr.use([function({swiper:t,on:n,emit:e}){const i=Ri();let s=null,r=null;const o=()=>{!t||t.destroyed||!t.initialized||(e("beforeResize"),e("resize"))},c=()=>{!t||t.destroyed||!t.initialized||e("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?!t||t.destroyed||!t.initialized||(s=new ResizeObserver(d=>{r=i.requestAnimationFrame(()=>{const{width:u,height:f}=t;let _=u,T=f;d.forEach(({contentBoxSize:k,contentRect:$,target:L})=>{L&&L!==t.el||(_=$?$.width:(k[0]||k).inlineSize,T=$?$.height:(k[0]||k).blockSize)}),(_!==u||T!==f)&&o()})}),s.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",c))}),n("destroy",()=>{r&&i.cancelAnimationFrame(r),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",c)})},function({swiper:t,extendParams:n,on:e,emit:i}){const s=[],r=Ri(),o=(c,d={})=>{const f=new(r.MutationObserver||r.WebkitMutationObserver)(_=>{if(t.__preventObserver__)return;if(1===_.length)return void i("observerUpdate",_[0]);const T=function(){i("observerUpdate",_[0])};r.requestAnimationFrame?r.requestAnimationFrame(T):r.setTimeout(T,0)});f.observe(c,{attributes:void 0===d.attributes||d.attributes,childList:void 0===d.childList||d.childList,characterData:void 0===d.characterData||d.characterData}),s.push(f)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),e("init",()=>{if(t.params.observer){if(t.params.observeParents){const c=tc(t.el);for(let d=0;d{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)})}]);const CC=Nr;function MC({swiper:t,extendParams:n,on:e,emit:i}){const s=Ri();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let r,a,o=Rr();const l=[];function d(){!t.enabled||(t.mouseEntered=!0)}function u(){!t.enabled||(t.mouseEntered=!1)}function f(J){return!(t.params.mousewheel.thresholdDelta&&J.delta=6&&Rr()-o<60||(J.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),i("scroll",J.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),i("scroll",J.raw)),o=(new s.Date).getTime(),!1))}function T(J){let ue=J,Te=!0;if(!t.enabled||J.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const Fe=t.params.mousewheel;t.params.cssMode&&ue.preventDefault();let Be=t.el;"container"!==t.params.mousewheel.eventsTarget&&(Be=document.querySelector(t.params.mousewheel.eventsTarget));const Ue=Be&&Be.contains(ue.target);if(!t.mouseEntered&&!Ue&&!Fe.releaseOnEdges)return!0;ue.originalEvent&&(ue=ue.originalEvent);let He=0;const it=t.rtlTranslate?-1:1,lt=function(J){let Be=0,Ue=0,He=0,it=0;return"detail"in J&&(Ue=J.detail),"wheelDelta"in J&&(Ue=-J.wheelDelta/120),"wheelDeltaY"in J&&(Ue=-J.wheelDeltaY/120),"wheelDeltaX"in J&&(Be=-J.wheelDeltaX/120),"axis"in J&&J.axis===J.HORIZONTAL_AXIS&&(Be=Ue,Ue=0),He=10*Be,it=10*Ue,"deltaY"in J&&(it=J.deltaY),"deltaX"in J&&(He=J.deltaX),J.shiftKey&&!He&&(He=it,it=0),(He||it)&&J.deltaMode&&(1===J.deltaMode?(He*=40,it*=40):(He*=800,it*=800)),He&&!Be&&(Be=He<1?-1:1),it&&!Ue&&(Ue=it<1?-1:1),{spinX:Be,spinY:Ue,pixelX:He,pixelY:it}}(ue);if(Fe.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(lt.pixelX)>Math.abs(lt.pixelY)))return!0;He=-lt.pixelX*it}else{if(!(Math.abs(lt.pixelY)>Math.abs(lt.pixelX)))return!0;He=-lt.pixelY}else He=Math.abs(lt.pixelX)>Math.abs(lt.pixelY)?-lt.pixelX*it:-lt.pixelY;if(0===He)return!0;Fe.invert&&(He=-He);let Xe=t.getTranslate()+He*Fe.sensitivity;if(Xe>=t.minTranslate()&&(Xe=t.minTranslate()),Xe<=t.maxTranslate()&&(Xe=t.maxTranslate()),Te=!!t.params.loop||!(Xe===t.minTranslate()||Xe===t.maxTranslate()),Te&&t.params.nested&&ue.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const qe={time:Rr(),delta:Math.abs(He),direction:Math.sign(He)},Pe=a&&qe.time=t.minTranslate()&&(Ye=t.minTranslate()),Ye<=t.maxTranslate()&&(Ye=t.maxTranslate()),t.setTransition(0),t.setTranslate(Ye),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!ht&&t.isBeginning||!Ve&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:qe.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(r),r=void 0,l.length>=15&&l.shift();const Qe=l.length?l[l.length-1]:void 0,Ke=l[0];if(l.push(qe),Qe&&(qe.delta>Qe.delta||qe.direction!==Qe.direction))l.splice(0);else if(l.length>=15&&qe.time-Ke.time<500&&Ke.delta-qe.delta>=1&&qe.delta<=6){const bt=He>0?.8:.2;a=qe,l.splice(0),r=Zl(()=>{t.slideToClosest(t.params.speed,!0,void 0,bt)},0)}r||(r=Zl(()=>{a=qe,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(Pe||i("scroll",ue),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),Ye===t.minTranslate()||Ye===t.maxTranslate())return!0}}else{const qe={time:Rr(),delta:Math.abs(He),direction:Math.sign(He),raw:J};l.length>=2&&l.shift();const Pe=l.length?l[l.length-1]:void 0;if(l.push(qe),Pe?(qe.direction!==Pe.direction||qe.delta>Pe.delta||qe.time>Pe.time+150)&&f(qe):f(qe),function(J){const ue=t.params.mousewheel;if(J.direction<0){if(t.isEnd&&!t.params.loop&&ue.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&ue.releaseOnEdges)return!0;return!1}(qe))return!0}return ue.preventDefault?ue.preventDefault():ue.returnValue=!1,!1}function k(J){let ue=t.el;"container"!==t.params.mousewheel.eventsTarget&&(ue=document.querySelector(t.params.mousewheel.eventsTarget)),ue[J]("mouseenter",d),ue[J]("mouseleave",u),ue[J]("wheel",T)}function $(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",T),!0):!t.mousewheel.enabled&&(k("addEventListener"),t.mousewheel.enabled=!0,!0)}function L(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,T),!0):!!t.mousewheel.enabled&&(k("removeEventListener"),t.mousewheel.enabled=!1,!0)}e("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&L(),t.params.mousewheel.enabled&&$()}),e("destroy",()=>{t.params.cssMode&&$(),t.mousewheel.enabled&&L()}),Object.assign(t.mousewheel,{enable:$,disable:L})}function DC(t,n,e,i){return t.params.createElements&&Object.keys(i).forEach(s=>{if(!e[s]&&!0===e.auto){let r=Ls(t.el,`.${i[s]}`)[0];r||(r=lo("div",i[s]),r.className=i[s],t.el.append(r)),e[s]=r,n[s]=r}}),e}function SC({swiper:t,extendParams:n,on:e,emit:i}){n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};const s=T=>(Array.isArray(T)||(T=[T].filter(k=>!!k)),T);function r(T){let k;return T&&"string"==typeof T&&t.isElement&&(k=t.el.shadowRoot.querySelector(T),k)?k:(T&&("string"==typeof T&&(k=[...document.querySelectorAll(T)]),t.params.uniqueNavElements&&"string"==typeof T&&k.length>1&&1===t.el.querySelectorAll(T).length&&(k=t.el.querySelector(T))),T&&!k?T:k)}function o(T,k){const $=t.params.navigation;(T=s(T)).forEach(L=>{L&&(L.classList[k?"add":"remove"](...$.disabledClass.split(" ")),"BUTTON"===L.tagName&&(L.disabled=k),t.params.watchOverflow&&t.enabled&&L.classList[t.isLocked?"add":"remove"]($.lockClass))})}function a(){const{nextEl:T,prevEl:k}=t.navigation;if(t.params.loop)return o(k,!1),void o(T,!1);o(k,t.isBeginning&&!t.params.rewind),o(T,t.isEnd&&!t.params.rewind)}function l(T){T.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function c(T){T.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function d(){const T=t.params.navigation;if(t.params.navigation=DC(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!T.nextEl&&!T.prevEl)return;let k=r(T.nextEl),$=r(T.prevEl);Object.assign(t.navigation,{nextEl:k,prevEl:$}),k=s(k),$=s($);const L=(J,ue)=>{J&&J.addEventListener("click","next"===ue?c:l),!t.enabled&&J&&J.classList.add(...T.lockClass.split(" "))};k.forEach(J=>L(J,"next")),$.forEach(J=>L(J,"prev"))}function u(){let{nextEl:T,prevEl:k}=t.navigation;T=s(T),k=s(k);const $=(L,J)=>{L.removeEventListener("click","next"===J?c:l),L.classList.remove(...t.params.navigation.disabledClass.split(" "))};T.forEach(L=>$(L,"next")),k.forEach(L=>$(L,"prev"))}e("init",()=>{!1===t.params.navigation.enabled?_():(d(),a())}),e("toEdge fromEdge lock unlock",()=>{a()}),e("destroy",()=>{u()}),e("enable disable",()=>{let{nextEl:T,prevEl:k}=t.navigation;T=s(T),k=s(k),[...T,...k].filter($=>!!$).forEach($=>$.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass))}),e("click",(T,k)=>{let{nextEl:$,prevEl:L}=t.navigation;$=s($),L=s(L);const J=k.target;if(t.params.navigation.hideOnClick&&!L.includes(J)&&!$.includes(J)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===J||t.pagination.el.contains(J)))return;let ue;$.length?ue=$[0].classList.contains(t.params.navigation.hiddenClass):L.length&&(ue=L[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===ue?"navigationShow":"navigationHide"),[...$,...L].filter(Te=>!!Te).forEach(Te=>Te.classList.toggle(t.params.navigation.hiddenClass))}});const _=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},disable:_,update:a,init:d,destroy:u})}function qa(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function EC({swiper:t,extendParams:n,on:e,emit:i}){const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:L=>L,formatFractionTotal:L=>L,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let r,o=0;const a=L=>(Array.isArray(L)||(L=[L].filter(J=>!!J)),L);function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(L,J){const{bulletActiveClass:ue}=t.params.pagination;!L||(L=L[("prev"===J?"previous":"next")+"ElementSibling"])&&(L.classList.add(`${ue}-${J}`),(L=L[("prev"===J?"previous":"next")+"ElementSibling"])&&L.classList.add(`${ue}-${J}-${J}`))}function d(L){const J=L.target.closest(qa(t.params.pagination.bulletClass));if(!J)return;L.preventDefault();const ue=Cf(J)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===ue)return;const Te=t.getSlideIndexByData(ue),Fe=t.getSlideIndexByData(t.realIndex);Te>t.slides.length-t.loopedSlides&&t.loopFix({direction:Te>Fe?"next":"prev",activeSlideIndex:Te,slideTo:!1}),t.slideToLoop(ue)}else t.slideTo(ue)}function u(){const L=t.rtl,J=t.params.pagination;if(l())return;let Te,Fe,ue=t.pagination.el;ue=a(ue);const Ue=t.params.loop?Math.ceil((t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(Fe=t.previousRealIndex||0,Te=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(Te=t.snapIndex,Fe=t.previousSnapIndex):(Fe=t.previousIndex||0,Te=t.activeIndex||0),"bullets"===J.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const He=t.pagination.bullets;let it,lt,Xe;if(J.dynamicBullets&&(r=pC(He[0],t.isHorizontal()?"width":"height",!0),ue.forEach(qe=>{qe.style[t.isHorizontal()?"width":"height"]=r*(J.dynamicMainBullets+4)+"px"}),J.dynamicMainBullets>1&&void 0!==Fe&&(o+=Te-(Fe||0),o>J.dynamicMainBullets-1?o=J.dynamicMainBullets-1:o<0&&(o=0)),it=Math.max(Te-o,0),lt=it+(Math.min(He.length,J.dynamicMainBullets)-1),Xe=(lt+it)/2),He.forEach(qe=>{const Pe=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(Ye=>`${J.bulletActiveClass}${Ye}`)].map(Ye=>"string"==typeof Ye&&Ye.includes(" ")?Ye.split(" "):Ye).flat();qe.classList.remove(...Pe)}),ue.length>1)He.forEach(qe=>{const Pe=Cf(qe);Pe===Te?qe.classList.add(...J.bulletActiveClass.split(" ")):t.isElement&&qe.setAttribute("part","bullet"),J.dynamicBullets&&(Pe>=it&&Pe<=lt&&qe.classList.add(...`${J.bulletActiveClass}-main`.split(" ")),Pe===it&&c(qe,"prev"),Pe===lt&&c(qe,"next"))});else{const qe=He[Te];if(qe&&qe.classList.add(...J.bulletActiveClass.split(" ")),t.isElement&&He.forEach((Pe,Ye)=>{Pe.setAttribute("part",Ye===Te?"bullet-active":"bullet")}),J.dynamicBullets){const Pe=He[it],Ye=He[lt];for(let ht=it;ht<=lt;ht+=1)He[ht]&&He[ht].classList.add(...`${J.bulletActiveClass}-main`.split(" "));c(Pe,"prev"),c(Ye,"next")}}if(J.dynamicBullets){const qe=Math.min(He.length,J.dynamicMainBullets+4),Pe=(r*qe-r)/2-Xe*r,Ye=L?"right":"left";He.forEach(ht=>{ht.style[t.isHorizontal()?Ye:"top"]=`${Pe}px`})}}ue.forEach((He,it)=>{if("fraction"===J.type&&(He.querySelectorAll(qa(J.currentClass)).forEach(lt=>{lt.textContent=J.formatFractionCurrent(Te+1)}),He.querySelectorAll(qa(J.totalClass)).forEach(lt=>{lt.textContent=J.formatFractionTotal(Ue)})),"progressbar"===J.type){let lt;lt=J.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const Xe=(Te+1)/Ue;let qe=1,Pe=1;"horizontal"===lt?qe=Xe:Pe=Xe,He.querySelectorAll(qa(J.progressbarFillClass)).forEach(Ye=>{Ye.style.transform=`translate3d(0,0,0) scaleX(${qe}) scaleY(${Pe})`,Ye.style.transitionDuration=`${t.params.speed}ms`})}"custom"===J.type&&J.renderCustom?(He.innerHTML=J.renderCustom(t,Te+1,Ue),0===it&&i("paginationRender",He)):(0===it&&i("paginationRender",He),i("paginationUpdate",He)),t.params.watchOverflow&&t.enabled&&He.classList[t.isLocked?"add":"remove"](J.lockClass)})}function f(){const L=t.params.pagination;if(l())return;const J=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let ue=t.pagination.el;ue=a(ue);let Te="";if("bullets"===L.type){let Fe=t.params.loop?Math.ceil(J/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&Fe>J&&(Fe=J);for(let Be=0;Be`}"fraction"===L.type&&(Te=L.renderFraction?L.renderFraction.call(t,L.currentClass,L.totalClass):` / `),"progressbar"===L.type&&(Te=L.renderProgressbar?L.renderProgressbar.call(t,L.progressbarFillClass):``),t.pagination.bullets=[],ue.forEach(Fe=>{"custom"!==L.type&&(Fe.innerHTML=Te||""),"bullets"===L.type&&t.pagination.bullets.push(...Fe.querySelectorAll(qa(L.bulletClass)))}),"custom"!==L.type&&i("paginationRender",ue[0])}function _(){t.params.pagination=DC(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const L=t.params.pagination;if(!L.el)return;let J;"string"==typeof L.el&&t.isElement&&(J=t.el.shadowRoot.querySelector(L.el)),!J&&"string"==typeof L.el&&(J=[...document.querySelectorAll(L.el)]),J||(J=L.el),J&&0!==J.length&&(t.params.uniqueNavElements&&"string"==typeof L.el&&Array.isArray(J)&&J.length>1&&(J=[...t.el.querySelectorAll(L.el)],J.length>1&&(J=J.filter(ue=>tc(ue,".swiper")[0]===t.el)[0])),Array.isArray(J)&&1===J.length&&(J=J[0]),Object.assign(t.pagination,{el:J}),J=a(J),J.forEach(ue=>{"bullets"===L.type&&L.clickable&&ue.classList.add(L.clickableClass),ue.classList.add(L.modifierClass+L.type),ue.classList.add(t.isHorizontal()?L.horizontalClass:L.verticalClass),"bullets"===L.type&&L.dynamicBullets&&(ue.classList.add(`${L.modifierClass}${L.type}-dynamic`),o=0,L.dynamicMainBullets<1&&(L.dynamicMainBullets=1)),"progressbar"===L.type&&L.progressbarOpposite&&ue.classList.add(L.progressbarOppositeClass),L.clickable&&ue.addEventListener("click",d),t.enabled||ue.classList.add(L.lockClass)}))}function T(){const L=t.params.pagination;if(l())return;let J=t.pagination.el;J&&(J=a(J),J.forEach(ue=>{ue.classList.remove(L.hiddenClass),ue.classList.remove(L.modifierClass+L.type),ue.classList.remove(t.isHorizontal()?L.horizontalClass:L.verticalClass),L.clickable&&ue.removeEventListener("click",d)})),t.pagination.bullets&&t.pagination.bullets.forEach(ue=>ue.classList.remove(...L.bulletActiveClass.split(" ")))}e("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const L=t.params.pagination;let{el:J}=t.pagination;J=a(J),J.forEach(ue=>{ue.classList.remove(L.horizontalClass,L.verticalClass),ue.classList.add(t.isHorizontal()?L.horizontalClass:L.verticalClass)})}),e("init",()=>{!1===t.params.pagination.enabled?$():(_(),f(),u())}),e("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),e("snapIndexChange",()=>{u()}),e("snapGridLengthChange",()=>{f(),u()}),e("destroy",()=>{T()}),e("enable disable",()=>{let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),e("lock unlock",()=>{u()}),e("click",(L,J)=>{const ue=J.target;let{el:Te}=t.pagination;if(Array.isArray(Te)||(Te=[Te].filter(Fe=>!!Fe)),t.params.pagination.el&&t.params.pagination.hideOnClick&&Te&&Te.length>0&&!ue.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&ue===t.navigation.nextEl||t.navigation.prevEl&&ue===t.navigation.prevEl))return;const Fe=Te[0].classList.contains(t.params.pagination.hiddenClass);i(!0===Fe?"paginationShow":"paginationHide"),Te.forEach(Be=>Be.classList.toggle(t.params.pagination.hiddenClass))}});const $=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList.add(t.params.pagination.paginationDisabledClass))),T()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:L}=t.pagination;L&&(L=a(L),L.forEach(J=>J.classList.remove(t.params.pagination.paginationDisabledClass))),_(),f(),u()},disable:$,render:f,update:u,init:_,destroy:T})}function TC({swiper:t,extendParams:n,on:e}){n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let i=null;function s(Pe){const Ye=i;0!==Ye.length&&(Ye.innerHTML="",Ye.innerHTML=Pe)}const r=Pe=>(Array.isArray(Pe)||(Pe=[Pe].filter(Ye=>!!Ye)),Pe);function a(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("tabIndex","0")})}function l(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("tabIndex","-1")})}function c(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("role",Ye)})}function d(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-roledescription",Ye)})}function f(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-label",Ye)})}function k(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("aria-disabled",!0)})}function $(Pe){(Pe=r(Pe)).forEach(Ye=>{Ye.setAttribute("aria-disabled",!1)})}function L(Pe){if(13!==Pe.keyCode&&32!==Pe.keyCode)return;const Ye=t.params.a11y,ht=Pe.target;t.pagination&&t.pagination.el&&(ht===t.pagination.el||t.pagination.el.contains(Pe.target))&&!Pe.target.matches(qa(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&ht===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),s(t.isEnd?Ye.lastSlideMessage:Ye.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&ht===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),s(t.isBeginning?Ye.firstSlideMessage:Ye.prevSlideMessage)),t.pagination&&ht.matches(qa(t.params.pagination.bulletClass))&&ht.click())}function ue(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function Te(){return ue()&&t.params.pagination.clickable}const Be=(Pe,Ye,ht)=>{a(Pe),"BUTTON"!==Pe.tagName&&(c(Pe,"button"),Pe.addEventListener("keydown",L)),f(Pe,ht),function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-controls",Ye)})}(Pe,Ye)},Ue=()=>{t.a11y.clicked=!0},He=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},it=Pe=>{if(t.a11y.clicked)return;const Ye=Pe.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!Ye||!t.slides.includes(Ye))return;const ht=t.slides.indexOf(Ye)===t.activeIndex,Ve=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(Ye);ht||Ve||Pe.sourceCapabilities&&Pe.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(Ye),0))},lt=()=>{const Pe=t.params.a11y;Pe.itemRoleDescriptionMessage&&d(t.slides,Pe.itemRoleDescriptionMessage),Pe.slideRole&&c(t.slides,Pe.slideRole);const Ye=t.slides.length;Pe.slideLabelMessage&&t.slides.forEach((ht,Ve)=>{const Qe=t.params.loop?parseInt(ht.getAttribute("data-swiper-slide-index"),10):Ve;f(ht,Pe.slideLabelMessage.replace(/\{\{index\}\}/,Qe+1).replace(/\{\{slidesLength\}\}/,Ye))})};e("beforeInit",()=>{i=lo("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),e("afterInit",()=>{!t.params.a11y.enabled||(()=>{const Pe=t.params.a11y;t.isElement?t.el.shadowEl.append(i):t.el.append(i);const Ye=t.el;Pe.containerRoleDescriptionMessage&&d(Ye,Pe.containerRoleDescriptionMessage),Pe.containerMessage&&f(Ye,Pe.containerMessage);const ht=t.wrapperEl,Ve=Pe.id||ht.getAttribute("id")||`swiper-wrapper-${function(Pe=16){return"x".repeat(Pe).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`,Qe=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";(function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("id",Ye)})})(ht,Ve),function(Pe,Ye){(Pe=r(Pe)).forEach(ht=>{ht.setAttribute("aria-live",Ye)})}(ht,Qe),lt();let{nextEl:Ke,prevEl:bt}=t.navigation?t.navigation:{};Ke=r(Ke),bt=r(bt),Ke&&Ke.forEach(un=>Be(un,Ve,Pe.nextSlideMessage)),bt&&bt.forEach(un=>Be(un,Ve,Pe.prevSlideMessage)),Te()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(ui=>{ui.addEventListener("keydown",L)}),t.el.addEventListener("focus",it,!0),t.el.addEventListener("pointerdown",Ue,!0),t.el.addEventListener("pointerup",He,!0)})()}),e("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{!t.params.a11y.enabled||lt()}),e("fromEdge toEdge afterInit lock unlock",()=>{!t.params.a11y.enabled||function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:Pe,prevEl:Ye}=t.navigation;Ye&&(t.isBeginning?(k(Ye),l(Ye)):($(Ye),a(Ye))),Pe&&(t.isEnd?(k(Pe),l(Pe)):($(Pe),a(Pe)))}()}),e("paginationUpdate",()=>{!t.params.a11y.enabled||function(){const Pe=t.params.a11y;!ue()||t.pagination.bullets.forEach(Ye=>{t.params.pagination.clickable&&(a(Ye),t.params.pagination.renderBullet||(c(Ye,"button"),f(Ye,Pe.paginationBulletMessage.replace(/\{\{index\}\}/,Cf(Ye)+1)))),Ye.matches(qa(t.params.pagination.bulletActiveClass))?Ye.setAttribute("aria-current","true"):Ye.removeAttribute("aria-current")})}()}),e("destroy",()=>{!t.params.a11y.enabled||function(){i&&i.remove();let{nextEl:Pe,prevEl:Ye}=t.navigation?t.navigation:{};Pe=r(Pe),Ye=r(Ye),Pe&&Pe.forEach(ht=>ht.removeEventListener("keydown",L)),Ye&&Ye.forEach(ht=>ht.removeEventListener("keydown",L)),Te()&&(Array.isArray(t.pagination.el)?t.pagination.el:[t.pagination.el]).forEach(Ve=>{Ve.removeEventListener("keydown",L)}),t.el.removeEventListener("focus",it,!0),t.el.removeEventListener("pointerdown",Ue,!0),t.el.removeEventListener("pointerup",He,!0)}()})}function AC({swiper:t,extendParams:n,on:e,emit:i,params:s}){t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,o,c,u,f,_,T,k,$,a=s&&s.autoplay?s.autoplay.delay:3e3,l=s&&s.autoplay?s.autoplay.delay:3e3,d=(new Date).getTime;function L(Ve){!t||t.destroyed||!t.wrapperEl||Ve.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",L),He())}const J=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?u=!0:u&&(l=c,u=!1);const Ve=t.autoplay.paused?c:d+l-(new Date).getTime();t.autoplay.timeLeft=Ve,i("autoplayTimeLeft",Ve,Ve/a),o=requestAnimationFrame(()=>{J()})},Te=Ve=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),J();let Qe=void 0===Ve?t.params.autoplay.delay:Ve;a=t.params.autoplay.delay,l=t.params.autoplay.delay;const Ke=(()=>{let Ve;return Ve=t.virtual&&t.params.virtual.enabled?t.slides.filter(Ke=>Ke.classList.contains("swiper-slide-active"))[0]:t.slides[t.activeIndex],Ve?parseInt(Ve.getAttribute("data-swiper-autoplay"),10):void 0})();!Number.isNaN(Ke)&&Ke>0&&void 0===Ve&&(Qe=Ke,a=Ke,l=Ke),c=Qe;const bt=t.params.speed,un=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(bt,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,bt,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(bt,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,bt,!0,!0),i("autoplay")),t.params.cssMode&&(d=(new Date).getTime(),requestAnimationFrame(()=>{Te()})))};return Qe>0?(clearTimeout(r),r=setTimeout(()=>{un()},Qe)):requestAnimationFrame(()=>{un()}),Qe},Fe=()=>{t.autoplay.running=!0,Te(),i("autoplayStart")},Be=()=>{t.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(o),i("autoplayStop")},Ue=(Ve,Qe)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(r),Ve||($=!0);const Ke=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",L):He()};if(t.autoplay.paused=!0,Qe)return k&&(c=t.params.autoplay.delay),k=!1,void Ke();c=(c||t.params.autoplay.delay)-((new Date).getTime()-d),(!(t.isEnd&&c<0)||t.params.loop)&&(c<0&&(c=0),Ke())},He=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=(new Date).getTime(),$?($=!1,Te(c)):Te(),t.autoplay.paused=!1,i("autoplayResume"))},it=()=>{if(t.destroyed||!t.autoplay.running)return;const Ve=Fs();"hidden"===Ve.visibilityState&&($=!0,Ue(!0)),"visible"===Ve.visibilityState&&He()},lt=Ve=>{"mouse"===Ve.pointerType&&($=!0,Ue(!0))},Xe=Ve=>{"mouse"===Ve.pointerType&&t.autoplay.paused&&He()};e("init",()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",lt),t.el.addEventListener("pointerleave",Xe)),Fs().addEventListener("visibilitychange",it),d=(new Date).getTime(),Fe())}),e("destroy",()=>{t.el.removeEventListener("pointerenter",lt),t.el.removeEventListener("pointerleave",Xe),Fs().removeEventListener("visibilitychange",it),t.autoplay.running&&Be()}),e("beforeTransitionStart",(Ve,Qe,Ke)=>{t.destroyed||!t.autoplay.running||(Ke||!t.params.autoplay.disableOnInteraction?Ue(!0,!0):Be())}),e("sliderFirstMove",()=>{if(!t.destroyed&&t.autoplay.running){if(t.params.autoplay.disableOnInteraction)return void Be();f=!0,_=!1,$=!1,T=setTimeout(()=>{$=!0,_=!0,Ue(!0)},200)}}),e("touchEnd",()=>{if(!t.destroyed&&t.autoplay.running&&f){if(clearTimeout(T),clearTimeout(r),t.params.autoplay.disableOnInteraction)return _=!1,void(f=!1);_&&t.params.cssMode&&He(),_=!1,f=!1}}),e("slideChange",()=>{t.destroyed||!t.autoplay.running||(k=!0)}),Object.assign(t.autoplay,{start:Fe,stop:Be,pause:Ue,resume:He})}function qd(t){const{effect:n,swiper:e,on:i,setTranslate:s,setTransition:r,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=t;let d;i("beforeInit",()=>{if(e.params.effect!==n)return;e.classNames.push(`${e.params.containerModifierClass}${n}`),a&&a()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const u=o?o():{};Object.assign(e.params,u),Object.assign(e.originalParams,u)}),i("setTranslate",()=>{e.params.effect===n&&s()}),i("setTransition",(u,f)=>{e.params.effect===n&&r(f)}),i("transitionEnd",()=>{if(e.params.effect===n&&l){if(!c||!c().slideShadows)return;e.slides.forEach(u=>{u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}}),i("virtualUpdate",()=>{e.params.effect===n&&(e.slides.length||(d=!0),requestAnimationFrame(()=>{d&&e.slides&&e.slides.length&&(s(),d=!1)}))})}function Df(t,n){const e=ec(n);return e!==n&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}function k_({swiper:t,duration:n,transformElements:e,allSlides:i}){const{activeIndex:s}=t;if(t.params.virtualTranslate&&0!==n){let a,o=!1;a=i?e:e.filter(l=>{const c=l.classList.contains("swiper-slide-transform")?(o=>o.parentElement?o.parentElement:t.slides.filter(l=>l.shadowEl&&l.shadowEl===o.parentNode)[0])(l):l;return t.getSlideIndex(c)===s}),a.forEach(l=>{Mf(l,()=>{if(o||!t||t.destroyed)return;o=!0,t.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(c)})})}}function Xd(t,n,e){const i="swiper-slide-shadow"+(e?`-${e}`:""),s=ec(n);let r=s.querySelector(`.${i}`);return r||(r=lo("div","swiper-slide-shadow"+(e?`-${e}`:"")),s.append(r)),r}function kC({swiper:t,extendParams:n,on:e}){n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),qd({effect:"coverflow",swiper:t,on:e,setTranslate:()=>{const{width:r,height:o,slides:a,slidesSizesGrid:l}=t,c=t.params.coverflowEffect,d=t.isHorizontal(),u=t.translate,f=d?r/2-u:o/2-u,_=d?c.rotate:-c.rotate,T=c.depth;for(let k=0,$=a.length;k<$;k+=1){const L=a[k],J=l[k],Te=(f-L.swiperSlideOffset-J/2)/J,Fe="function"==typeof c.modifier?c.modifier(Te):Te*c.modifier;let Be=d?_*Fe:0,Ue=d?0:_*Fe,He=-T*Math.abs(Fe),it=c.stretch;"string"==typeof it&&-1!==it.indexOf("%")&&(it=parseFloat(c.stretch)/100*J);let lt=d?0:it*Fe,Xe=d?it*Fe:0,qe=1-(1-c.scale)*Math.abs(Fe);Math.abs(Xe)<.001&&(Xe=0),Math.abs(lt)<.001&&(lt=0),Math.abs(He)<.001&&(He=0),Math.abs(Be)<.001&&(Be=0),Math.abs(Ue)<.001&&(Ue=0),Math.abs(qe)<.001&&(qe=0);const Pe=`translate3d(${Xe}px,${lt}px,${He}px) rotateX(${Ue}deg) rotateY(${Be}deg) scale(${qe})`;if(Df(0,L).style.transform=Pe,L.style.zIndex=1-Math.abs(Math.round(Fe)),c.slideShadows){let ht=L.querySelector(d?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),Ve=L.querySelector(d?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");ht||(ht=Xd(0,L,d?"left":"top")),Ve||(Ve=Xd(0,L,d?"right":"bottom")),ht&&(ht.style.opacity=Fe>0?Fe:0),Ve&&(Ve.style.opacity=-Fe>0?-Fe:0)}}},setTransition:r=>{t.slides.map(a=>ec(a)).forEach(a=>{a.style.transitionDuration=`${r}ms`,a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${r}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}const Rue=function(t,n){return{height:t,width:n}};let Nue=(()=>{class t{constructor(){this.height=300,this.width=200}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["image-load"]],inputs:{height:"height",width:"width"},decls:1,vars:4,consts:[[1,"image-load",3,"ngStyle"]],template:function(e,i){1&e&&je(0,"span",0),2&e&&ge("ngStyle",Qr(1,Rue,i.height+"px",i.width+"px"))},directives:[xl,$h],styles:[".image-load[_ngcontent-%COMP%]{background:#dddddd;background:linear-gradient(to right,#dddddd 0%,#e6e6e6 5%,#e6e6e6 15%,#dddddd 20%,#dddddd 100%);background-size:400px 30px;background-position:-200px 0;animation:pulseBG 1s linear infinite;display:block}@keyframes pulseBG{0%{background-position:-200px 0}50%{background-position:200px 0}to{background-position:200px 0}}"]}),t})(),OC=(()=>{class t{constructor(e,i,s,r){this.el=e,this.renderer=i,this.componentFactoryResolver=s,this.viewContainerRef=r}ngOnInit(){const e=this.componentFactoryResolver.resolveComponentFactory(Nue);this.loaderComponentRef=this.viewContainerRef.createComponent(e),this.el.nativeElement.height&&(this.loaderComponentRef.instance.height=this.el.nativeElement.height),this.el.nativeElement.width&&(this.loaderComponentRef.instance.width=this.el.nativeElement.width),this.renderer.insertBefore(this.el.nativeElement.parentNode,this.loaderComponentRef.location.nativeElement,this.el.nativeElement),this.renderer.setStyle(this.el.nativeElement,"display","none")}onLoad(){this.loaderComponentRef.destroy(),this.renderer.setStyle(this.el.nativeElement,"display","block")}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(ji),C(is),C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","loadImage",""]],hostBindings:function(e,i){1&e&&nt("load",function(){return i.onLoad()})}}),t})(),a3=(()=>{class t{constructor(e){this.el=e,this.swiperElement=e.nativeElement}ngAfterViewInit(){Object.assign(this.el.nativeElement,this.config),this.el.nativeElement.initialize()}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","fmSwiper",""]],inputs:{config:"config"}}),t})();function Fue(t,n){if(1&t&&(j(0,"swiper-slide",2,3),j(2,"fm-stream-item"),j(3,"a",4),ct(4,"languageContent"),j(5,"div",5),j(6,"div",6),je(7,"img",7),z(),j(8,"div",8),j(9,"span"),$e(10),z(),z(),z(),z(),z(),z()),2&t){const e=n.$implicit;ae(3),yi("href",ml(4,3,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(4),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(3),$t("",e.score," \u2764\ufe0f")}}let Lue=(()=>{class t{constructor(){this._topArr=[],this.imageDataPath=dr,this.config={modules:[SC,EC,TC,MC,kC,AC],loop:!0,speed:1e3,autoplay:{delay:2e3,disableOnInteraction:!1},effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:80,depth:200,modifier:1,slideShadows:!1}}}set topArr(e){this._topArr=[...e,...e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["fm-streams-swiper"]],inputs:{topArr:"topArr",fieldName:"fieldName"},decls:2,vars:2,consts:[["fmSwiper","","init","false",1,"swiper-display-container",3,"config"],["class","swiper-display-slider",4,"ngFor","ngForOf"],[1,"swiper-display-slider"],["switch",""],["target","_blank","rel","noopener noreferrer",1,"swiper-display-link",3,"href"],[1,"swiper-display-item"],[1,"swiper-display-thumbnail-container"],["loadImage","",1,"swiper-display-item-img",3,"src"],[1,"swiper-display-item-name"]],template:function(e,i){1&e&&(j(0,"swiper-container",0),ke(1,Fue,11,7,"swiper-slide",1),z()),2&e&&(ge("config",i.config),ae(1),ge("ngForOf",i._topArr))},directives:[a3,oi,OC],pipes:[Wa],styles:[".swiper-display-thumbnail-container{grid-area:1/-1}.swiper-display-link:hover{cursor:pointer;text-decoration:none;color:unset}.swiper-display-item{border-radius:5px;display:grid;width:225px;height:320px;margin-right:5px;transform-origin:90%;overflow:hidden}.swiper-display-item-name{word-break:break-word;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;grid-area:1/-1;padding:1rem;color:#fff;background:linear-gradient(to top,#000000d9,#0000) bottom / 100% 60% no-repeat;border-radius:5px;transition:1s ease}.swiper-display-item-img{border-radius:5px;width:225px;height:320px}.swiper-display-item img{transition:1s ease}.swiper-display-container{width:330px;padding-top:50px;padding-bottom:50px}.swiper-display-slider{width:210px}\n"],encapsulation:2}),t})();function Bue(t,n){if(1&t&&(j(0,"div",8),j(1,"div",9),je(2,"img",10),z(),j(3,"div",11),j(4,"a",12),ct(5,"languageContent"),$e(6),z(),j(7,"span"),$e(8),z(),z(),z()),2&t){const e=n.$implicit,i=Ie(3);ae(2),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(2),yi("href",ml(5,4,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(2),$t(" ",(null==e.anime?null:e.anime[i.fieldName])||(null==e.manga?null:e.manga[i.fieldName])," "),ae(2),$t("",e.score," \u2764\ufe0f")}}function Vue(t,n){if(1&t&&(j(0,"div",6),ke(1,Bue,9,8,"div",7),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.topArr)}}function Hue(t,n){if(1&t&&(Rn(0),ke(1,Vue,2,1,"div",5),Nn()),2&t){const e=Ie();ae(1),ge("ngIf",e.getScreenWidth>=1e3)}}function jue(t,n){if(1&t&&je(0,"fm-streams-swiper",13),2&t){const e=Ie();ge("topArr",e.topArr)("fieldName",e.fieldName)}}function zue(t,n){1&t&&(j(0,"div"),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"NEED_MORE_DATA")," "))}let Uue=(()=>{class t{constructor(e){this.translationService=e,this.topArr=[],this.fieldName="name",this.imageDataPath=dr}set allData(e){for(let i of Object.keys(e))e[i].forEach(s=>{var r,o,a,l,c,d,u,f,_,T,k,$;s[i].thumbnail=(null==s?void 0:s.__typename)?(null===(o=null===(r=s.anime)||void 0===r?void 0:r.poster)||void 0===o?void 0:o.preview2xUrl)||(null===(l=null===(a=s.manga)||void 0===a?void 0:a.poster)||void 0===l?void 0:l.preview2xUrl):dr+"/"+((null===(d=null===(c=s.anime)||void 0===c?void 0:c.image)||void 0===d?void 0:d.original)||(null===(f=null===(u=s.manga)||void 0===u?void 0:u.image)||void 0===f?void 0:f.original)),s[i].url=(null==s?void 0:s.__typename)?(null===(_=s.anime)||void 0===_?void 0:_.url)||(null===(T=s.manga)||void 0===T?void 0:T.url):`${dr}/${(null===(k=s.anime)||void 0===k?void 0:k.url)||(null===($=s.manga)||void 0===$?void 0:$.url)}`});this.topArr=[...this.maxValues(e.anime,9),...this.maxValues(e.manga,8)],this.topArr=Rs.shuffle(this.topArr).slice(0,3)}onWindowResize(){this.getScreenWidth=window.innerWidth}ngOnInit(){new CC(".swiper-container",{loop:!0,speed:1e3,autoplay:{delay:3e3,disableOnInteraction:!1},effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:80,depth:200,modifier:1,slideShadows:!1},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}),this.translationService.localeChange.subscribe(()=>{this.updateFieldName()})}ngAfterContentInit(){this.getScreenWidth=window.innerWidth}updateFieldName(){this.fieldName="ru"===this.translationService.getLanguage()?"russian":"name"}maxValues(e,i){return e&&0!==e.length?e.reduce((s,r)=>r.score>=i?[...s,r]:s,[]):[]}}return t.\u0275fac=function(e){return new(e||t)(C(qs))},t.\u0275cmp=mt({type:t,selectors:[["app-top-anime"]],hostBindings:function(e,i){1&e&&nt("resize",function(r){return i.onWindowResize(r)},!1,bS)},inputs:{allData:"allData"},decls:8,vars:6,consts:[[1,"top-anime__container"],[1,"top-anime__header-text"],[4,"ngIf","ngIfElse"],[3,"topArr","fieldName",4,"ngIf"],["notEnoughData",""],["class","top-anime__wrapper",4,"ngIf"],[1,"top-anime__wrapper"],["class","top-anime-item",4,"ngFor","ngForOf"],[1,"top-anime-item"],[1,"top-anime-thumbnail-container"],["loadImage","",1,"top-anime-item-img",3,"src"],[1,"top-anime-item-name"],["target","_blank","rel","noopener noreferrer",1,"top-anime-item-name__text",3,"href"],[3,"topArr","fieldName"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Hue,2,1,"ng-container",2),z(),ke(5,jue,1,2,"fm-streams-swiper",3),ke(6,zue,3,3,"ng-template",null,4,Mn)),2&e){const s=Qt(7);ae(2),Mt(vt(3,4,"Favourite_anime")),ae(2),ge("ngIf",(null==i.topArr?null:i.topArr.length)>0)("ngIfElse",s),ae(1),ge("ngIf",(null==i.topArr?null:i.topArr.length)>0&&i.getScreenWidth<1e3)}},directives:[vn,oi,OC,Lue],pipes:[Gn,Wa],styles:[".top-anime-thumbnail-container[_ngcontent-%COMP%]{grid-area:1/-1}.top-anime-item[_ngcontent-%COMP%]{border-radius:5px;display:grid;width:225px;height:320px;margin-right:5px;transform-origin:90%;overflow:hidden}.top-anime-item[_ngcontent-%COMP%]:nth-child(1){margin-top:35px}.top-anime-item[_ngcontent-%COMP%]:nth-child(3){margin-top:35px}.top-anime-item-name[_ngcontent-%COMP%]{word-break:break-word;display:flex;flex-direction:column;justify-content:flex-end;grid-area:1/-1;padding:1rem;color:#fff;background:linear-gradient(to top,#000000d9,#0000) bottom / 100% 60% no-repeat;border-radius:5px;transition:1s ease}.top-anime-item-name__text[_ngcontent-%COMP%]{cursor:pointer;color:#fff;text-decoration:none}.top-anime-item-img[_ngcontent-%COMP%]{border-radius:5px;width:225px;height:320px}.top-anime-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:1s ease}.top-anime-item[_ngcontent-%COMP%]:hover{filter:drop-shadow(0 0 10px rgba(0,0,0,.3))}.top-anime-item[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.15)}.top-anime-item[_ngcontent-%COMP%]:hover .top-anime-item-name[_ngcontent-%COMP%]{transform:scale(1)}.top-anime__container[_ngcontent-%COMP%]{display:flex;margin-bottom:25px;flex-direction:column;justify-content:center;align-items:center}.top-anime__wrapper[_ngcontent-%COMP%]{position:relative;clear:both;display:grid;grid-gap:60px;margin-bottom:11%;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(1,250px)}@media (max-width: 992px){.top-anime__wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}}.top-anime__header-text[_ngcontent-%COMP%]{font-size:1.7em;margin-top:5px;margin-bottom:5px;text-transform:uppercase}"]}),t})();const que=["completed"],l3=new Set;let Qd,c3=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Que}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function(t){if(!l3.has(t))try{Qd||(Qd=document.createElement("style"),Qd.setAttribute("type","text/css"),document.head.appendChild(Qd)),Qd.sheet&&(Qd.sheet.insertRule(`@media ${t} {body{ }}`,0),l3.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(Me(yn))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn))},token:t,providedIn:"root"}),t})();function Que(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let nc=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return d3(vm(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let r=So(d3(vm(e)).map(o=>this._registerQuery(o).observable));return r=ud(r.pipe(Bn(1)),r.pipe(Mm(1),Cm(0))),r.pipe(g(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new S(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(ai(i),g(({matches:o})=>({query:e,matches:o})),Tt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(Me(c3),Me(xt))},t.\u0275prov=Ze({factory:function(){return new t(Me(c3),Me(xt))},token:t,providedIn:"root"}),t})();function d3(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const O__Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)";function Kue(t,n){if(1&t&&(j(0,"div",4),qn(1,5),z()),2&t){const e=Ie();ge("ngbTooltip",Qt(6))("triggers",e.selectedEvents)("placement",e.placement),ae(1),ge("ngTemplateOutlet",e.templateMain)}}function Jue(t,n){if(1&t&&(j(0,"span",4),$e(1),z()),2&t){const e=Ie();ge("ngbTooltip",Qt(6))("triggers",e.selectedEvents)("placement",e.placement),ae(1),Mt(e.textMain)}}function Zue(t,n){1&t&&qn(0,5),2&t&&ge("ngTemplateOutlet",Ie(2).templateTooltip)}function ehe(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.textTooltip)}}function the(t,n){if(1&t&&(j(0,"div",6),ke(1,Zue,1,1,"ng-container",7),ke(2,ehe,2,1,"span",8),z()),2&t){const e=Ie();ae(1),ge("ngIf",e.templateTooltip),ae(1),ge("ngIf",e.textTooltip)}}let IC=(()=>{class t{constructor(e){this.breakpointObserver=e,this.placement="auto",this.mobileEvents="click",this.desktopEvents="hover focus",this.selectedEvents=this.desktopEvents}ngOnInit(){this.breakpointObserver.observe([O__Handset]).subscribe(e=>{this.selectedEvents=e.matches?this.mobileEvents:this.desktopEvents})}}return t.\u0275fac=function(e){return new(e||t)(C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-tool-tip-text"]],inputs:{templateMain:"templateMain",templateTooltip:"templateTooltip",textMain:"textMain",textTooltip:"textTooltip",placement:"placement"},decls:7,vars:2,consts:[[1,"tooltip-control"],[1,"tooltip-control__text"],[3,"ngbTooltip","triggers","placement",4,"ngIf"],["tooltip",""],[3,"ngbTooltip","triggers","placement"],[3,"ngTemplateOutlet"],[1,"d-flex","flex-column"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngIf"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div"),j(2,"div",1),ke(3,Kue,2,4,"div",2),ke(4,Jue,2,4,"span",2),z(),z(),z(),ke(5,the,3,2,"ng-template",null,3,Mn)),2&e&&(ae(3),ge("ngIf",i.templateMain),ae(1),ge("ngIf",i.textMain))},directives:[vn,cC,os],styles:[".tooltip-control__text[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;border-bottom:1px dashed}"]}),t})();const nhe=function(t){return{animeTime:t}},ihe=function(t){return{mangaTime:t}};function she(t,n){if(1&t&&(j(0,"div",9),j(1,"span"),$e(2),ct(3,"translate"),z(),j(4,"span"),$e(5),ct(6,"translate"),z(),z()),2&t){const e=Ie();ae(2),Mt(Co(3,2,"TIME_SPENT_ANIME_TEMPL",bs(8,nhe,e.totalAnimeDays))),ae(3),Mt(Co(6,5,"TIME_SPENT_MANGA_TEMPL",bs(10,ihe,e.totalMangaDays)))}}let rhe=(()=>{class t{constructor(e,i){this.translatePipe=e,this.translateService=i,this._allData={},this.mangaDays=0,this.animeDays=0,this.totalMangaDays="?",this.totalAnimeDays="?",this.totalDaysSpent="?",this.displayTimeString="?"}set allData(e){var i,s;this._allData=e,(null===(i=e.anime)||void 0===i?void 0:i.length)>0&&this.calculateAnimeTime(),(null===(s=e.manga)||void 0===s?void 0:s.length)>0&&this.calculateMangaTime(),(this.mangaDays||this.animeDays)&&(this.totalDaysSpent=(this.mangaDays+this.animeDays).toFixed(0)),this.displayTimeString=`${this.totalDaysSpent} ${this.translatePipe.transform("DAYS_SHORT")}`}ngOnInit(){this.translateService.localeChange.subscribe(()=>{this.displayTimeString=`${this.totalDaysSpent} ${this.translatePipe.transform("DAYS_SHORT")}`})}calculateAnimeTime(){var e;let i=0,s=!1;null===(e=this._allData.anime)||void 0===e||e.forEach(r=>{r.anime.duration&&(i+=r.anime.duration*r.episodes*(0===r.rewatches?1:r.rewatches+1),s=!0)}),s&&(this.animeDays=i/60/24,this.totalAnimeDays=this.animeDays.toFixed(2))}calculateMangaTime(){var e,i;let s=0,r=0;null===(i=null===(e=this._allData)||void 0===e?void 0:e[Oi.MANGA])||void 0===i||i.forEach(o=>{var a,l,c,d,u;s=72*(null!==(a=o.volumes)&&void 0!==a?a:0),r=8*(null!==(l=o.chapters)&&void 0!==l?l:0),-1!==que.indexOf(null===(c=null==o?void 0:o.manga)||void 0===c?void 0:c.status)&&(this.mangaDays+=Math.max((null!==(d=o.rewatches)&&void 0!==d?d:0)*r,(null!==(u=o.rewatches)&&void 0!==u?u:0)*s)/60/24),this.mangaDays+=Math.max(s,r)/60/24}),this.totalMangaDays=this.mangaDays.toFixed(2)}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(qs))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-time"]],inputs:{allData:"allData"},decls:13,vars:5,consts:[[1,"anime-time"],[1,"anime-time__icon"],["xmlns","http://www.w3.org/2000/svg","width","35","height","35","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-clock-history"],["d","M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z"],["d","M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z"],["d","M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z"],[1,"anime-time__text"],[1,"anime-time__amount",3,"textMain","templateTooltip"],["tooltip",""],[1,"d-flex","flex-column"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"div",1),pn(),j(2,"svg",2),je(3,"path",3),je(4,"path",4),je(5,"path",5),z(),z(),Ti(),j(6,"div"),j(7,"div",6),$e(8),ct(9,"translate"),z(),je(10,"app-tool-tip-text",7),z(),z(),ke(11,she,7,12,"ng-template",null,8,Mn)),2&e){const s=Qt(12);ae(8),$t(" ",vt(9,3,"TIME_SPENT_ANIME_SUM")," "),ae(2),ge("textMain",i.displayTimeString)("templateTooltip",s)}},directives:[IC],pipes:[Gn],styles:[".anime-time[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:30px}.anime-time__icon[_ngcontent-%COMP%]{margin-right:15px;display:flex;align-items:center}.anime-time__text[_ngcontent-%COMP%]{font-size:1.2em;font-weight:410;text-transform:uppercase}.anime-time__amount[_ngcontent-%COMP%]{font-size:1.2em;width:-moz-fit-content;width:fit-content;border-bottom:1px dashed}"]}),t})();var I_=In(282),ohe=In(424),ahe=In.n(ohe),lhe=In(527);In.n(lhe)()(I_);class ic{static prepareChartData(n,e){var i,s,r;const o=[];for(let a=0;a${this.point.headerName}: ${this.key}
\n ${this.point.pointName}: ${this.y}`},useHTML:!0},series:[{name:null,innerSize:"50%",data:a}]}),o))}}var dhe=In(295),uhe=In.n(dhe);function hhe(t,n){if(1&t&&(j(0,"div"),j(1,"div",2),$e(2),ct(3,"translate"),z(),z()),2&t){const e=Ie();ae(2),Mt(vt(3,1,e.type+"_EMPTY_USER_DATA"))}}function fhe(t,n){1&t&&(j(0,"div",2),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"EMPTY_FETCHED_DATA")))}let phe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-empty-typed-data"]],inputs:{type:"type"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noData",""],[1,"empty-typed-data__text"]],template:function(e,i){if(1&e&&(ke(0,hhe,4,3,"div",0),ke(1,fhe,3,3,"ng-template",null,1,Mn)),2&e){const s=Qt(2);ge("ngIf",i.type)("ngIfElse",s)}},directives:[vn],pipes:[Gn],styles:[".empty-typed-data__text[_ngcontent-%COMP%]{font-weight:800;font-size:2em;margin-top:15px;margin-bottom:15px;text-align:center}"]}),t})();function ghe(t,n){1&t&&qn(0,8)}const mhe=function(t){return{$implicit:t}};function _he(t,n){if(1&t&&(j(0,"div",4),ke(1,ghe,1,0,"ng-container",7),z()),2&t){const e=n.$implicit,i=Ie(3),s=Qt(5),r=Qt(3);ae(1),ge("ngTemplateOutlet",(null==i._allData[e]?null:i._allData[e].length)>0?s:r)("ngTemplateOutletContext",bs(2,mhe,e))}}function yhe(t,n){if(1&t&&(Rn(0),ke(1,_he,2,4,"div",6),Nn()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.generalTypes)}}function vhe(t,n){if(1&t&&(j(0,"div",4),ke(1,yhe,2,1,"ng-container",5),z()),2&t){const e=Ie(),i=Qt(3);ae(1),ge("ngIf",(null==e._allData||null==e._allData.anime?null:e._allData.anime.length)>0||(null==e._allData||null==e._allData.manga?null:e._allData.manga.length)>0)("ngIfElse",i)}}function bhe(t,n){1&t&&je(0,"app-empty-typed-data",9),2&t&&ge("type",n.$implicit)}const xhe=function(t){return{"background-color":t}};function whe(t,n){if(1&t&&(j(0,"div",15),je(1,"div",18),j(2,"div",19),j(3,"div",20),$e(4),z(),j(5,"div",20),$e(6),z(),z(),z()),2&t){const e=n.$implicit;ae(1),ge("ngStyle",bs(3,xhe,e.color)),ae(3),Mt(e.name),ae(2),Mt(e.number)}}function Che(t,n){if(1&t&&(je(0,"div",10),j(1,"div",11),j(2,"div",12),ke(3,whe,7,5,"div",13),z(),j(4,"div",14),j(5,"div",15),j(6,"span",16),$e(7),ct(8,"translate"),z(),j(9,"span",17),$e(10),z(),z(),j(11,"div",15),j(12,"span",16),$e(13),ct(14,"translate"),z(),j(15,"span",17),$e(16),ct(17,"number"),z(),z(),j(18,"div",15),j(19,"span",16),$e(20),ct(21,"translate"),z(),j(22,"span",17),$e(23),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ge("id",e),ae(3),ge("ngForOf",i._legendMap[e]),ae(4),Mt(vt(8,8,"TOTAL_GENERAL_COUNTER")),ae(3),Mt(null==i.statistics[e]?null:i.statistics[e].totalAmount),ae(3),Mt(vt(14,10,"MEDIUM_RATING")),ae(3),Mt(Co(17,12,null==i.statistics[e]?null:i.statistics[e].mediumScore,"1.0-1")),ae(4),Mt(vt(21,15,i.generalParametersNames[e].episodes)),ae(3),Mt(i.episodesCounters[e])}}ahe()(I_),uhe()(I_);let Mhe=(()=>{class t{constructor(e,i,s,r){this.translationPipe=e,this.translationService=i,this.animeService=s,this.cdr=r,this.statistics={},this._allData={},this._legendMap={},this.ready=!1,this.generalTypes=["anime","manga"],this.generalParametersNames=bQ,this.episodesCounters={anime:0,manga:0},this.animeStatusesColorsArr=["#fcd581","#C6ECAE","#94C9A9","#777DA7","#885053","#FE5F55"],this.genresStatistics={}}set allData(e){if(this._allData=Object.assign({},e),0!==Object.keys(this._allData).length&&this._allData.constructor===Object){this.ready=!0,this.cdr.detectChanges();for(let i of Object.keys(this._allData))this.drawGeneralStatistics(i),this._allData[i].map(s=>{var r,o;null===(o=null===(r=s[i].genres)||void 0===r?void 0:r.map(a=>a.name))||void 0===o||o.forEach(a=>{a in this.genresStatistics?this.genresStatistics[a]++:this.genresStatistics[a]=0})});this.drawRadarGraph()}else this.ready=!1,this.cdr.detectChanges()}ngOnInit(){this.curUrl=location.href}ngAfterViewInit(){this.translationService.localeChange.subscribe(()=>{if(this.curUrl===location.href){for(let e of Object.keys(this._allData))this.drawGeneralStatistics(e);this.drawRadarGraph()}})}drawRadarGraph(){const e=this.translationPipe.transform("GENRES_TITLE"),i=[...Object.keys(ZI)],s=[{type:"area",data:[]}];0!==Object.keys(this.genresStatistics).length&&Object.keys(ZI).forEach(o=>s[0].data.push(this.genresStatistics[o]||0));const r=window.innerWidth<900?"auto":"50%";for(let o=0;o{r.push({name:o.toLowerCase(),color:this.animeStatusesColorsArr[a],data:[0]})}),null===(s=this._allData[e])||void 0===s||s.forEach(o=>{r.find(l=>l.name===o.status).data[0]++,this.episodesCounters[e]+=e===Oi.ANIME?o.episodes:o.chapters}),r.forEach(o=>{o.name=this.translationPipe.transform(`${o.name}_${e}`)}),r=r.filter(o=>o.data[0]>0),r[0].borderRadiusTopRight=20,r[0].borderRadiusTopLeft=20,r[r.length-1].borderRadiusBottomRight=20,r[r.length-1].borderRadiusBottomLeft=20,ic.drawChart(e,[],"bar",this.translationPipe.transform(`${e} by status`),{headerName:this.translationPipe.transform("STATUS"),pointName:this.translationPipe.transform("AMOUNT")},{chart:{height:140,type:"bar",backgroundColor:null,events:{load:o=>{let l;o.target.series.forEach(c=>{var d;l={color:c.data[0].color,name:c.name,number:c.data[0].y},(null===(d=this._legendMap[e])||void 0===d?void 0:d.length)>0?this._legendMap[e].push(l):this._legendMap[e]=[l]})}}},plotOptions:{series:{borderColor:"#ffffff00",stacking:"normal"}},tooltip:{enabled:!1},xAxis:{visible:!1},yAxis:{visible:!1,max:this._allData[e].length,endOnTick:!1},legend:!1,series:r})}drawTypeGroupGraphics(e){var i;(null===(i=this._allData[e])||void 0===i?void 0:i.length)>0&&(this.drawStatusPie(e),this.drawScoreBar(e))}drawScoreBar(e){const i=Ys.calculateScoreStatistics(this._allData[e]).map((r,o)=>({name:`${o+1} \u2b50`,value:r,x:o+1})),s={headerName:this.translationPipe.transform("SCORE"),pointName:this.translationPipe.transform("AMOUNT")};ic.drawChart(`score-${e}-bar`,Ys.calculateScoreStatistics(this._allData[e]).map((r,o)=>({name:`${o+1} \u2b50`,value:r})),"bar",this.translationPipe.transform(`${e} by score`),s,{yAxis:{visible:!1},xAxis:{allowDecimals:!1,tickInterval:1,labels:{step:1}},series:[{name:null,innerSize:"50%",data:ic.prepareChartData(i,s),dataLabels:{enabled:!0},showInLegend:!1}]})}drawStatusPie(e){const i=new Map;this._allData[e].forEach(s=>{const r=i.get(s.status);r?(r.value++,i.set(s.status,r)):i.set(s.status,{name:this.translationPipe.transform(`${s.status}_${e}`),value:1})}),ic.drawChart(`status-${e}-pie`,Array.from(i.values()),"pie",this.translationPipe.transform(`${e} by status`),{headerName:this.translationPipe.transform("STATUS"),pointName:this.translationPipe.transform("AMOUNT")})}}return t.\u0275fac=function(e){return new(e||t)(C(Gn),C(qs),C(jh),C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-graphics"]],inputs:{allData:"allData",statistics:"statistics"},decls:6,vars:1,consts:[["class","anime-stats-graphics__statistics-container",4,"ngIf"],["id","radar"],["noData",""],["data",""],[1,"anime-stats-graphics__statistics-container"],[4,"ngIf","ngIfElse"],["class","anime-stats-graphics__statistics-container",4,"ngFor","ngForOf"],["class","",4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,""],[3,"type"],[1,"anime-stats-graphics__bar-container",3,"id"],["id","legend",1,"anime-stats-graphics__legend"],[1,"anime-stats-graphics__item-wrap"],["class","anime-stats-graphics__item",4,"ngFor","ngForOf"],[1,"anime-stats-graphics__statistics-block"],[1,"anime-stats-graphics__item"],[1,"anime-stats-graphics__header-medium"],[1,"anime-stats-graphics__header-data"],[1,"anime-stats-graphics__symbol",3,"ngStyle"],[1,"anime-stats-graphics__big-gap"],[1,"anime-stats-graphics__seriesName"]],template:function(e,i){1&e&&(ke(0,vhe,2,2,"div",0),je(1,"div",1),ke(2,bhe,1,1,"ng-template",null,2,Mn),ke(4,Che,24,17,"ng-template",null,3,Mn)),2&e&&ge("ngIf",i.ready)},directives:[vn,oi,os,phe,xl,$h],pipes:[Gn,TO],styles:[".anime-stats-graphics__legend[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;justify-content:space-between;margin-left:15px;margin-right:15px}@media (max-width: 900px){.anime-stats-graphics__legend[_ngcontent-%COMP%]{flex-direction:column}}.anime-stats-graphics__seriesName[_ngcontent-%COMP%]{float:left;cursor:pointer;display:flex}.anime-stats-graphics__symbol[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:2px;float:left;border-radius:10px;border:1px solid gray}.anime-stats-graphics__item[_ngcontent-%COMP%]{height:35px;clear:both;display:flex;flex-direction:row;height:-moz-fit-content;height:fit-content;justify-content:space-between}.anime-stats-graphics__item-wrap[_ngcontent-%COMP%]{height:100px;clear:both;display:flex;flex-direction:column;width:25%}@media (max-width: 900px){.anime-stats-graphics__item-wrap[_ngcontent-%COMP%]{width:100%;margin-bottom:30px}}.anime-stats-graphics__bar-container[_ngcontent-%COMP%]{width:100%}.anime-stats-graphics__big-gap[_ngcontent-%COMP%]{display:flex;width:90%;justify-content:space-between}.anime-stats-graphics__statistics[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.anime-stats-graphics__statistics-container[_ngcontent-%COMP%]{width:100%;margin-bottom:45px;flex-wrap:wrap;flex-direction:row;display:flex;justify-content:center}@media (max-width: 900px){.anime-stats-graphics__statistics-container[_ngcontent-%COMP%]{margin-bottom:19px}}.anime-stats-graphics__statistics-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:25%}@media (max-width: 900px){.anime-stats-graphics__statistics-block[_ngcontent-%COMP%]{width:100%}}.anime-stats-graphics__header[_ngcontent-%COMP%]{font-size:3em;display:flex;justify-content:center}.anime-stats-graphics__header-medium[_ngcontent-%COMP%], .anime-stats-graphics__header-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime-stats-graphics__header-data[_ngcontent-%COMP%]{font-weight:500;margin-left:5px}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}"]}),t})();const u3=function(t){return{"anime-community-data-swiper-bold":t}};function Dhe(t,n){if(1&t&&(j(0,"swiper-slide",2),j(1,"fm-stream-item"),j(2,"a",3),ct(3,"languageContent"),j(4,"div",4),j(5,"div",5),je(6,"img",6),z(),j(7,"div",7),j(8,"div",8),j(9,"span",9),$e(10),z(),pn(),j(11,"svg",10),je(12,"path",11),z(),z(),Ti(),j(13,"span",12),$e(14),z(),z(),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(2),yi("href",ml(3,6,(null==e.anime?null:e.anime.url)||(null==e.manga?null:e.manga.url),"ru",(null==e.anime?null:e.anime.malUrl)||(null==e.manga?null:e.manga.malUrl)),_i),ae(4),yi("src",(null==e.anime?null:e.anime.thumbnail)||(null==e.manga?null:e.manga.thumbnail),_i),ae(3),ge("ngClass",bs(10,u3,!i.isUserScoreHigher)),ae(1),Mt((null==e.anime?null:e.anime.score)||(null==e.manga?null:e.manga.score)),ae(3),ge("ngClass",bs(12,u3,i.isUserScoreHigher)),ae(1),$t("",e.score," \u2764\ufe0f")}}let She=(()=>{class t{constructor(){this.config={modules:[SC,EC,TC,MC,kC,AC],speed:1e3,centerInsufficientSlides:!0,grabCursor:!0,slidesPerView:"auto",watchOverflow:!0}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-data-swiper"]],inputs:{data:"data",isUserScoreHigher:"isUserScoreHigher"},decls:2,vars:2,consts:[["fmSwiper","","init","false",1,"anime-community-data-swiper-container",3,"config"],["class","anime-community-data-swiper-slide",4,"ngFor","ngForOf"],[1,"anime-community-data-swiper-slide"],["target","_blank","rel","noopener noreferrer",1,"anime-community-data-swiper-link",3,"href"],[1,"test"],[1,"anime-community-data-swiper-name-img__container"],["loadImage","",1,"anime-community-data-swiper-img",3,"src"],[1,"anime-community-data-swiper-name"],[1,"d-flex","flex-row","align-items-center"],[1,"mr-2",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-people-fill"],["d","M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"],[3,"ngClass"]],template:function(e,i){1&e&&(j(0,"swiper-container",0),ke(1,Dhe,15,14,"swiper-slide",1),z()),2&e&&(ge("config",i.config),ae(1),ge("ngForOf",i.data))},directives:[a3,oi,OC,Ma,Ax],pipes:[Wa],styles:[".anime-community-data-swiper-img[_ngcontent-%COMP%]{width:200px;border-radius:4px}@media (max-width: 900px){.anime-community-data-swiper-img[_ngcontent-%COMP%]{width:150px}}.anime-community-data-swiper-img__container[_ngcontent-%COMP%]{position:relative}.anime-community-data-swiper-name[_ngcontent-%COMP%]{word-break:break-word;display:flex;align-items:center;flex-direction:row;justify-content:space-between;width:100%;bottom:0;position:absolute;padding:1rem;color:#fff;background:linear-gradient(to top,#000000,#0000) bottom / 100% 100% no-repeat;border-radius:5px;transition:1s ease}.anime-community-data-swiper-bold[_ngcontent-%COMP%]{font-weight:800}.anime-community-data-swiper-container[_ngcontent-%COMP%]{width:100%;padding-top:15px;padding-bottom:15px}.anime-community-data-swiper-slide[_ngcontent-%COMP%]{width:200px;margin-right:15px}@media (max-width: 900px){.anime-community-data-swiper-slide[_ngcontent-%COMP%]{width:150px}}"]}),t})();function Ehe(t,n){1&t&&je(0,"anime-community-data-swiper",8),2&t&&ge("data",Ie(2).liked)("isUserScoreHigher",!0)}function The(t,n){1&t&&je(0,"anime-community-data-swiper",9),2&t&&ge("data",Ie(2).disliked)}function Ahe(t,n){if(1&t&&(j(0,"div"),j(1,"div",4),j(2,"span",5),$e(3),ct(4,"translate"),z(),ke(5,Ehe,1,2,"anime-community-data-swiper",6),z(),j(6,"div",4),j(7,"span",5),$e(8),ct(9,"translate"),z(),ke(10,The,1,1,"anime-community-data-swiper",7),z(),z()),2&t){const e=Ie(),i=Qt(6);ae(3),Mt(vt(4,6,"PERSONALLY_LIKED")),ae(2),ge("ngIf",e.liked.length>2)("ngIfElse",i),ae(3),Mt(vt(9,8,"PERSONALLY_DISLIKED")),ae(2),ge("ngIf",e.disliked.length>2)("ngIfElse",i)}}function khe(t,n){1&t&&(j(0,"span",10),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"NEED_MORE_DATA")))}let Ohe=(()=>{class t{constructor(){}ngOnInit(){this.liked=this.liked.filter(e=>(null==e?void 0:e.diffMe)>1.5),this.disliked=this.disliked.filter(e=>(null==e?void 0:e.diffThem)>1.5)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-block"]],inputs:{type:"type",liked:"liked",disliked:"disliked"},decls:7,vars:5,consts:[[1,"community-block-wrapper"],[1,"community-block-title","community-block-large"],[4,"ngIf","ngIfElse"],["notEnoughData",""],[1,"community-block-full-width"],[1,"community-block-title","ml-3"],[3,"data","isUserScoreHigher",4,"ngIf","ngIfElse"],[3,"data",4,"ngIf","ngIfElse"],[3,"data","isUserScoreHigher"],[3,"data"],[1,"community-block-more-data"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"span",1),$e(2),ct(3,"translate"),z(),ke(4,Ahe,11,10,"div",2),z(),ke(5,khe,3,3,"ng-template",null,3,Mn)),2&e){const s=Qt(6);ae(2),Mt(vt(3,3,i.type)),ae(2),ge("ngIf",i.liked.length>2||i.disliked.length>2)("ngIfElse",s)}},directives:[vn,She],pipes:[Gn],styles:[".community-block-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center}.community-block-title[_ngcontent-%COMP%]{font-weight:800;font-size:large}.community-block-large[_ngcontent-%COMP%]{font-size:2rem}.community-block-full-width[_ngcontent-%COMP%]{width:100%}.community-block-more-data[_ngcontent-%COMP%]{display:flex;justify-content:center;font-size:2rem}"]}),t})();function Ihe(t,n){if(1&t&&(Rn(0),je(1,"anime-community-block",2),Nn()),2&t){const e=n.$implicit,i=Ie();ae(1),ge("type",e)("liked",i.liked[e])("disliked",i.disliked[e])}}let Phe=(()=>{class t{constructor(){this.data={},this.types=Object.values(Oi),this.liked={},this.disliked={}}ngOnInit(){var e;for(let i of Object.values(Oi))null===(e=this.data[i])||void 0===e||e.forEach(s=>{s.diffMe=0===s.score?0:s.score-s[i].score,s.diffThem=0===s.score?0:s[i].score-s.score}),this.liked[i]=this.parseIndexArray(Rs.getTopNi(5,this.data[i],"diffMe"),this.data[i]),this.disliked[i]=this.parseIndexArray(Rs.getTopNi(5,this.data[i],"diffThem"),this.data[i])}parseIndexArray(e,i){if(e.some(r=>r.val===-1/0))return[];const s=[];for(let r=4;r>=0;r--)s.push(i[e[r].index]);return s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["anime-community-stats"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"community-stats"],[4,"ngFor","ngForOf"],[3,"type","liked","disliked"]],template:function(e,i){1&e&&(j(0,"div",0),ke(1,Ihe,2,3,"ng-container",1),z()),2&e&&(ae(1),ge("ngForOf",i.types))},directives:[oi,Ohe],styles:[".community-stats[_ngcontent-%COMP%]{margin-bottom:30px}"]}),t})();const Rhe=["extensionPanels"];let f3=(()=>{class t{constructor(e){this.cdr=e,this.dataSources=[],this.extensionPanelsMap={panels:{},isAllExpanded:!0}}ngOnInit(){}ngAfterViewInit(){this.afterViewInitRoutine()}applyFilter(e){this.filterValue=e}updateAllValuesCheckbox(){let e=!0;Object.keys(this.extensionPanelsMap.panels).forEach(i=>{this.extensionPanelsMap.panels[i].expanded||(e=!1)}),this.extensionPanelsMap.isAllExpanded=e}afterViewInitRoutine(){this.dataSources.forEach((e,i)=>this.extensionPanelsMap.panels[e.key]=this.extensionPanels.get(i))}updateFilteredData(e,i){this.dataSources.find(r=>r.key===i).summary.filtered=0,this.dataSources=[...this.dataSources],this.updateTableVisibility(0===e.length,i)}updateTableVisibility(e,i){var s,r,o,a;i?e?null===(s=this.extensionPanelsMap.panels[i])||void 0===s||s.close():null===(r=this.extensionPanelsMap.panels[i])||void 0===r||r.open():e?null===(o=Object.keys(this.extensionPanelsMap.panels))||void 0===o||o.forEach(l=>{var c;return null===(c=this.extensionPanelsMap.panels[l])||void 0===c?void 0:c.open()}):null===(a=Object.keys(this.extensionPanelsMap.panels))||void 0===a||a.forEach(l=>{var c;return null===(c=this.extensionPanelsMap.panels[l])||void 0===c?void 0:c.close()}),this.cdr.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["table-list"]],viewQuery:function(e,i){if(1&e&&Yt(Rhe,5),2&e){let s;st(s=rt())&&(i.extensionPanels=s)}},decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"table-list works!"),z())},styles:[""]}),t})();const Nhe=function(t){return{episodes:t}};function Fhe(t,n){if(1&t&&(j(0,"span",11),$e(1),ct(2,"translate"),z()),2&t){const e=Ie().$implicit,i=Ie();let s;ae(1),$t(" ",Co(2,1,i.isAnime?"SUMMARY_TABLE_EPISODES":"SUMMARY_TABLE_CHAPTERS",bs(4,Nhe,null!==(s=null==e.summary?null:e.summary.filtered)&&void 0!==s?s:null==e.summary?null:e.summary.episodes))," ")}}function Lhe(t,n){if(1&t){const e=sn();j(0,"app-anime-stats-table",12),nt("onFilterChanges",function(s){Ot(e);const r=Ie().$implicit;return Ie().updateFilteredData(s,r.key)}),z()}if(2&t){const e=Ie().$implicit,i=Ie();ge("tableData",e.data)("isAnime",i.isAnime)("filter",i.filterValue)("defaultSort",null==e?null:e.defaultSort)}}function Bhe(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"mat-expansion-panel",5,6),nt("closed",function(){return Ot(e),Ie().updateAllValuesCheckbox()})("opened",function(){return Ot(e),Ie().updateAllValuesCheckbox()}),j(3,"mat-expansion-panel-header"),j(4,"mat-panel-title"),j(5,"div",7),$e(6),ct(7,"translate"),ct(8,"translate"),z(),z(),j(9,"mat-panel-description"),ke(10,Fhe,3,6,"span",8),z(),z(),j(11,"div",9),ke(12,Lhe,1,4,"app-anime-stats-table",10),z(),z(),z()}if(2&t){const e=n.$implicit,i=Ie();ae(6),Mt(i.isAnime?vt(7,3,e.key+"_anime"):vt(8,5,e.key+"_manga")),ae(4),ge("ngIf",null==e.summary?null:e.summary.episodes),ae(2),ge("ngIf",e.data)}}let p3=(()=>{class t extends f3{constructor(e){super(e),this.isAnime=!1}set data(e){if((null==e?void 0:e.length)>0){const i=e.map((o,a)=>{var l,c,d,u,f,_,T,k,$,L,J,ue,Te,Fe,Be,Ue,He,it,lt,Xe,qe,Pe,Ye,ht;return{name:(null===(l=o.anime)||void 0===l?void 0:l.name)||(null===(c=o.manga)||void 0===c?void 0:c.name),russian:(null===(d=o.anime)||void 0===d?void 0:d.russian)||(null===(u=o.manga)||void 0===u?void 0:u.russian),score:0===o.score?void 0:o.score,kind:(null===(f=o.anime)||void 0===f?void 0:f.kind)||(null===(_=o.manga)||void 0===_?void 0:_.kind),status:(null===(T=o.anime)||void 0===T?void 0:T.status)||(null===(k=o.manga)||void 0===k?void 0:k.status),myStatus:o.status,text:o.text,episodesWatched:o.episodes,episodes:null===($=o.anime)||void 0===$?void 0:$.episodes,chaptersRead:o.chapters,updatedAt:null==o?void 0:o.updatedAt,chapters:null===(L=o.manga)||void 0===L?void 0:L.chapters,thumbnail:(null==o?void 0:o.__typename)?(null===(ue=null===(J=o.anime)||void 0===J?void 0:J.poster)||void 0===ue?void 0:ue.miniUrl)||(null===(Fe=null===(Te=o.manga)||void 0===Te?void 0:Te.poster)||void 0===Fe?void 0:Fe.miniUrl):dr+"/"+((null===(Ue=null===(Be=o.anime)||void 0===Be?void 0:Be.image)||void 0===Ue?void 0:Ue.x48)||(null===(it=null===(He=o.manga)||void 0===He?void 0:He.image)||void 0===it?void 0:it.x48)),url:(null==o?void 0:o.__typename)?(null===(lt=o.anime)||void 0===lt?void 0:lt.url)||(null===(Xe=o.manga)||void 0===Xe?void 0:Xe.url):`${dr}/${(null===(qe=o.anime)||void 0===qe?void 0:qe.url)||(null===(Pe=o.manga)||void 0===Pe?void 0:Pe.url)}`,malUrl:(null===(Ye=o.anime)||void 0===Ye?void 0:Ye.malUrl)||(null===(ht=o.manga)||void 0===ht?void 0:ht.malUrl)}});let s,r;for(let o of Object.values(md))r=0,s=i.filter(a=>a.myStatus===o),s.forEach(a=>r+=a.chaptersRead||a.episodesWatched),s.length>0&&this.dataSources.push({key:o,data:s,defaultSort:"score",summary:{episodes:r,filtered:null}});this.isAnime=-1!==e.findIndex(o=>{var a;return(null===(a=o.anime)||void 0===a?void 0:a.episodes)>0}),this.dataSources.find(o=>o.key===md.PLANNED).defaultSort="updatedAt"}}ngAfterViewInit(){this.afterViewInitRoutine()}updateFilteredData(e,i){let s=0;e.forEach(r=>s+=r.chaptersRead||r.episodesWatched),this.dataSources.find(r=>r.key===i).summary.filtered=s,this.dataSources=[...this.dataSources],this.updateTableVisibility(0===e.length,i)}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-lists"]],inputs:{data:"data"},features:[Je],decls:11,vars:11,consts:[[1,"anime-stat-lists__filter"],["matInput","",3,"placeholder","keyup"],["input",""],["color","accent",3,"checked","change"],[4,"ngFor","ngForOf"],["expanded","true",1,"anime-stat-lists__extension",3,"closed","opened"],["extensionPanels",""],[1,"anime-stat-lists__list-title"],["class","anime-stat-lists__summary",4,"ngIf"],[1,"anime-stat-lists__table"],[3,"tableData","isAnime","filter","defaultSort","onFilterChanges",4,"ngIf"],[1,"anime-stat-lists__summary"],[3,"tableData","isAnime","filter","defaultSort","onFilterChanges"]],template:function(e,i){1&e&&(j(0,"mat-form-field",0),j(1,"mat-label"),$e(2),ct(3,"translate"),z(),j(4,"input",1,2),nt("keyup",function(r){return i.applyFilter(r)}),ct(6,"translate"),z(),z(),j(7,"mat-checkbox",3),nt("change",function(r){return i.updateTableVisibility(r.checked)}),$e(8),ct(9,"translate"),z(),ke(10,Bhe,13,7,"div",4)),2&e&&(ae(2),Mt(vt(3,5,"Filter")),ae(2),yi("placeholder",vt(6,7,"EXAMPLE SEARCH")),ae(3),ge("checked",i.extensionPanelsMap.isAllExpanded),ae(1),Mt(vt(9,9,"SHOW_ALL_TABLES")),ae(2),ge("ngForOf",i.dataSources))},styles:[".anime-stat-lists__summary{font-weight:700;margin-right:5px}.anime-stat-lists__extension{background-color:transparent;box-shadow:unset!important}.anime-stat-lists__table{margin-bottom:15px}.anime-stat-lists__filter{width:100%}.anime-stat-lists__list-title{font-size:1.1em;margin-bottom:15px}@media (max-width: 900px){.mat-expansion-panel-body{padding:0!important;overflow-x:auto!important}}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex:1;margin-right:16px}\n"],encapsulation:2}),t})();function Vhe(t,n){if(1&t&&(j(0,"a",22),$e(1),ct(2,"translate"),j(3,"span",23),$e(4),z(),z()),2&t){const e=Ie(2);ge("href",null==e.currentUser?null:e.currentUser.url,_i),ae(1),$t("",vt(2,3,"FROM_PERSPECTIVE")," "),ae(3),Mt(e.username)}}function Hhe(t,n){1&t&&je(0,"app-top-anime",33),2&t&&ge("allData",Ie(3).allData)}function jhe(t,n){1&t&&je(0,"app-anime-time",33),2&t&&ge("allData",Ie(3).allData)}function zhe(t,n){if(1&t&&je(0,"app-anime-stats-graphics",34),2&t){const e=Ie(3);ge("allData",e.allData)("statistics",e.statistics)}}function Ghe(t,n){1&t&&je(0,"anime-community-stats",32),2&t&&ge("data",Ie(4).allData)}function $he(t,n){1&t&&ke(0,Ghe,1,1,"anime-community-stats",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[2])}function Uhe(t,n){1&t&&je(0,"app-anime-stats-lists",32),2&t&&ge("data",Ie(4).allData.anime)}function Whe(t,n){1&t&&ke(0,Uhe,1,1,"app-anime-stats-lists",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[3])}function Yhe(t,n){1&t&&je(0,"app-anime-stats-lists",32),2&t&&ge("data",Ie(4).allData.manga)}function qhe(t,n){1&t&&ke(0,Yhe,1,1,"app-anime-stats-lists",35),2&t&&ge("ngIf",!0===Ie(3).tabStatus[4])}const P_=function(){return["active"]};function Xhe(t,n){if(1&t){const e=sn();Rn(0),ke(1,Hhe,1,1,"app-top-anime",24),ke(2,jhe,1,1,"app-anime-time",24),j(3,"div"),j(4,"ul",25,26),nt("activeIdChange",function(s){return Ot(e),Ie(2).active=s})("navChange",function(s){return Ot(e),Ie(2).tabStatus[s.nextId]=!0}),j(6,"li",27),j(7,"a",28),$e(8),ct(9,"translate"),z(),ke(10,zhe,1,2,"ng-template",29),z(),j(11,"li",30),j(12,"a",28),$e(13),ct(14,"translate"),z(),ke(15,$he,1,1,"ng-template",29),z(),j(16,"li",30),j(17,"a",28),$e(18),ct(19,"translate"),z(),ke(20,Whe,1,1,"ng-template",29),z(),j(21,"li",30),j(22,"a",28),$e(23),ct(24,"translate"),z(),ke(25,qhe,1,1,"ng-template",29),z(),z(),je(26,"div",31),z(),j(27,"div"),je(28,"app-anime-history",32),z(),Nn()}if(2&t){const e=Qt(5),i=Ie(2);ae(1),ge("ngIf",i.isAnyDataFetched),ae(1),ge("ngIf",i.isAnyDataFetched),ae(2),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLinkActive",ki(30,P_))("ngbNavItem",1)("destroyOnHide",!1),ae(2),Mt(vt(9,22,"GENERAL_STATS")),ae(3),ge("routerLinkActive",ki(31,P_))("ngbNavItem",2)("disabled",!(null!=i.allData.anime&&i.allData.anime.length||null!=i.allData.manga&&i.allData.manga.length)),ae(2),Mt(vt(14,24,"ME_VS_COMMUNITY")),ae(3),ge("routerLinkActive",ki(32,P_))("ngbNavItem",3)("disabled",!(null!=i.allData.anime&&i.allData.anime.length)),ae(2),Mt(vt(19,26,"ANIME_LIST")),ae(3),ge("routerLinkActive",ki(33,P_))("ngbNavItem",4)("disabled",!(null!=i.allData.manga&&i.allData.manga.length)),ae(2),Mt(vt(24,28,"MANGA_LIST")),ae(3),ge("ngbNavOutlet",e),ae(2),ge("data",i.allData)}}function Qhe(t,n){if(1&t&&(j(0,"div",7),ke(1,Vhe,5,5,"a",8),j(2,"span",9),$e(3),ct(4,"translate"),z(),j(5,"div",10),j(6,"span",11),$e(7),ct(8,"translate"),z(),j(9,"a",12),j(10,"div",13),j(11,"span"),$e(12," SHIKIMORI "),z(),j(13,"div",14),pn(),j(14,"svg",15),je(15,"path",16),je(16,"path",17),z(),z(),z(),z(),Ti(),j(17,"span",18),$e(18,"|"),z(),j(19,"a",19),j(20,"div",13),j(21,"span"),$e(22," API "),z(),j(23,"div",14),pn(),j(24,"svg",15),je(25,"path",16),je(26,"path",17),z(),z(),z(),z(),z(),Ti(),je(27,"app-custom-id-field",20),ke(28,Xhe,29,34,"ng-container",21),z()),2&t){const e=Ie(),i=Qt(6);ae(1),ge("ngIf",e.username),ae(2),Mt(vt(4,6,"STATS")),ae(4),Mt(vt(8,8,"DATA_PROVIDER")),ae(20),ge("user",e.currentUser),ae(1),ge("ngIf",e.currentUser)("ngIfElse",i)}}function Khe(t,n){1&t&&qn(0)}function Jhe(t,n){if(1&t&&(j(0,"div"),ke(1,Khe,1,0,"ng-container",36),z()),2&t){Ie();const e=Qt(8);ae(1),ge("ngTemplateOutlet",e)}}function Zhe(t,n){1&t&&(j(0,"div",37),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"USER_NOT_FOUND")))}function efe(t,n){1&t&&(je(0,"div",38),je(1,"img",39),ct(2,"translate")),2&t&&(ae(1),yi("alt",vt(2,1,"LOADING")))}const g3=function(){return{height:"100%"}};let tfe=(()=>{class t{constructor(e,i,s){this.animeService=e,this.cdr=i,this.route=s,this.allData={},this.isAnyDataFetched=!1,this.tabStatus={},this.statistics={},this.isLoading=!0,this.currentUser={},this.active=1,this.dataStatusEmitter=new ot}ngOnInit(){var e;this.isLoading=!0,this.username=null===(e=this.route.snapshot.queryParams)||void 0===e?void 0:e.username,this.username?this.animeService.setUserId(this.username).pipe($i(()=>Et(null))).subscribe(i=>{i?(this.currentUser=i,this.dataStatusEmitter.emit()):(this.currentUser=null,this.isLoading=!1,this.cdr.detectChanges())}):this.animeService.getUserData(Vg).pipe($i(()=>Et(null))).subscribe(i=>{i?(this.currentUser=i,this.animeService.useDefaultId(),this.dataStatusEmitter.emit()):(this.currentUser=null,this.isLoading=!1,this.cdr.detectChanges())})}ngAfterViewInit(){this.dataStatusEmitter.pipe(Bn(1),as(()=>{const e=Ys.calculateTotalEntries(this.currentUser.stats.full_statuses.anime),i=Ys.calculateTotalEntries(this.currentUser.stats.full_statuses.manga);return So([this.animeService.getDataTypeListGraphQLParallel(Oi.ANIME,e).pipe($i(()=>this.animeService.getAllAnimeList())),this.animeService.getDataTypeListGraphQLParallel(Oi.MANGA,i).pipe($i(()=>this.animeService.getAllMangaList()))])})).subscribe(([e,i])=>{var s,r;if(console.debug("DONE?",{animeData:e,mangaData:i}),this.isLoading=!1,this.cdr.detectChanges(),e||i){this.allData[Oi.ANIME]=e,this.allData[Oi.MANGA]=i;for(let o of Object.keys(this.allData))this.allData[o].forEach(a=>{var l,c;a[o].name=(null==a?void 0:a.__typename)?Rs.selectValidLocaleName(a.anime||a.manga):(null===(l=a.anime)||void 0===l?void 0:l.name)||(null===(c=a.manga)||void 0===c?void 0:c.name),a[o].malUrl=`https://myanimelist.net/${o}/${a[o].id}`});this.allData=Object.assign({},this.allData),this.isAnyDataFetched=!(!(null===(s=this.allData)||void 0===s?void 0:s.anime)&&!(null===(r=this.allData)||void 0===r?void 0:r.manga)),this.statistics[Oi.ANIME]={mediumScore:Ys.calculateMediumScoreStatistics(e).toFixed(2),totalAmount:e.length},this.statistics[Oi.MANGA]={mediumScore:Ys.calculateMediumScoreStatistics(i).toFixed(2),totalAmount:i.length}}else this.currentUser=null})}}return t.\u0275fac=function(e){return new(e||t)(C(jh),C(Gt),C(Ta))},t.\u0275cmp=mt({type:t,selectors:[["app-anime"]],decls:9,vars:6,consts:[[1,"bg"],[3,"ngStyle"],[1,"anime","blurred-effect","container",3,"ngStyle"],["class","anime__wrapper",4,"ngIf"],[4,"ngIf"],["noUser",""],["loading",""],[1,"anime__wrapper"],["class","anime__customname",3,"href",4,"ngIf"],[1,"anime__header"],[1,"anime__credits"],[1,"anime__header-medium"],["href","https://shikimori.me/McFck","target","_blank","rel","noopener noreferrer",1,"anime__credits-provider"],[1,"d-flex"],[1,"d-flex","ml-1"],["xmlns","http://www.w3.org/2000/svg","width","11","height","11","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-box-arrow-up-right"],["fill-rule","evenodd","d","M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z"],["fill-rule","evenodd","d","M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z"],[1,"anime__credits-provider"],["href","https://shikimori.me/api/doc","target","_blank","rel","noopener noreferrer",1,"anime__credits-provider"],[3,"user"],[4,"ngIf","ngIfElse"],[1,"anime__customname",3,"href"],[1,"anime__customname-nick"],[3,"allData",4,"ngIf"],["ngbNav","",1,"anime__nav",3,"activeId","destroyOnHide","activeIdChange","navChange"],["nav","ngbNav"],[1,"anime__nav-item",3,"routerLinkActive","ngbNavItem","destroyOnHide"],["ngbNavLink",""],["ngbNavContent",""],[1,"anime__nav-item",3,"routerLinkActive","ngbNavItem","disabled"],[1,"mt-2",3,"ngbNavOutlet"],[3,"data"],[3,"allData"],[3,"allData","statistics"],[3,"data",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"anime__no-user"],[1,"anime__chika-background"],["src","/assets/chika-loading.gif","width","250",1,"anime__chika",3,"alt"]],template:function(e,i){1&e&&(je(0,"div",0),j(1,"div",1),j(2,"div",2),ke(3,Qhe,29,10,"div",3),z(),ke(4,Jhe,2,1,"div",4),z(),ke(5,Zhe,3,3,"ng-template",null,5,Mn),ke(7,efe,3,3,"ng-template",null,6,Mn)),2&e&&(ae(1),ge("ngStyle",!i.currentUser&&ki(4,g3)),ae(1),ge("ngStyle",!i.currentUser&&ki(5,g3)),ae(1),ge("ngIf",!i.isLoading),ae(1),ge("ngIf",i.isLoading))},directives:[xl,$h,vn,Rre,Yd,t1,Wd,bf,M_,D_,tde,Uue,rhe,Mhe,Phe,p3,os],pipes:[Gn],styles:['.anime__no-user[_ngcontent-%COMP%]{font-weight:800;font-size:2em;display:flex;justify-content:center;margin-top:10%;text-align:center}.anime__customname[_ngcontent-%COMP%]{font-size:2.5em;display:flex;justify-content:center;font-weight:800;flex-wrap:wrap;text-align:center}.anime__customname-nick[_ngcontent-%COMP%]{margin-left:10px;color:#655bff;text-decoration:underline;width:100%;text-overflow:ellipsis;overflow:hidden}.anime__customname-nick[_ngcontent-%COMP%]:hover{color:#2213ff}.anime__nav[_ngcontent-%COMP%]{display:flex;justify-content:center}.anime__nav-item[_ngcontent-%COMP%]{font-weight:500}.anime__nav-item[_ngcontent-%COMP%]:hover, .anime__nav-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#7ff;text-shadow:-1px -1px 0 #00000085,1px -1px 0 #00000085,-1px 1px 0 #00000085,1px 1px 0 #00000085}.anime__wrapper[_ngcontent-%COMP%]{position:relative}.anime__time[_ngcontent-%COMP%], .anime__credits[_ngcontent-%COMP%]{display:flex;justify-content:center}.anime__time-provider[_ngcontent-%COMP%], .anime__credits-provider[_ngcontent-%COMP%]{font-weight:700;margin-left:5px;display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime__header[_ngcontent-%COMP%]{font-size:3em;display:flex;justify-content:center}.anime__header-medium[_ngcontent-%COMP%], .anime__header-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;width:-moz-fit-content;width:fit-content}.anime__header-data[_ngcontent-%COMP%]{font-weight:500;margin-left:5px}.anime__chika[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:120px;height:120px;margin:-100px 0 0 -60px;animation:pulse 1s linear infinite}.anime__chika-background[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#ffecf0;position:fixed}.anime__porco[_ngcontent-%COMP%]{position:absolute;top:35%;left:35%;overflow:hidden;width:auto;height:35%;margin:-100px 0 0 -60px;animation:porco-flying 2.5s infinite ease-out,porco-soaring 2.5s infinite ease-out}@media (max-width: 900px){.anime__porco[_ngcontent-%COMP%]{left:20%;top:35%;width:90%;height:35%}}.anime__porco-background[_ngcontent-%COMP%]{height:100%;width:100%;background:linear-gradient(66deg,#baccff,#5884ff);position:fixed}@keyframes porco-flying{50%{transform:translate(5px)}}@keyframes porco-soaring{50%{transform:translateY(60px)}}@keyframes pulse{0%{transform:scale(1.4)}50%{transform:scale(.8)}to{transform:scale(1)}}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}.blurred-effect[_ngcontent-%COMP%]{content:"";-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transform:translate(0);transform:translateZ(0);position:absolute;top:0;left:0;right:0;bottom:0;position:relative;background-color:#c1c6dbd4;min-height:100%}.bg[_ngcontent-%COMP%]{height:100%;width:100%;top:0;position:fixed;background-repeat:no-repeat;background-size:cover;background-image:url(anime_bg_1.fb69d13bd0a527d99bd8.jpg)}@media (max-width: 900px){.bg[_ngcontent-%COMP%]{background:#d2d0ed}}']}),t})();function nfe(t,n){if(1&t&&(j(0,"div",24),j(1,"a",25),j(2,"div",26),j(3,"a",27),je(4,"img",28),j(5,"span",29),$e(6),z(),z(),z(),j(7,"div",30),$e(8),z(),j(9,"div",31),$e(10),ct(11,"dateAgo"),z(),z(),z()),2&t){const e=Ie();ae(1),ge("href",null==e.lastCommitData?null:e.lastCommitData.html_url,_i),ae(2),ge("href",null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.html_url,_i),ae(1),ge("src",null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.avatar_url,_i),ae(2),Mt(null==e.lastCommitData||null==e.lastCommitData.author?null:e.lastCommitData.author.login),ae(2),Mt(null==e.lastCommitData||null==e.lastCommitData.commit?null:e.lastCommitData.commit.message),ae(2),Mt(vt(11,6,null==e.lastCommitData||null==e.lastCommitData.commit||null==e.lastCommitData.commit.author?null:e.lastCommitData.commit.author.date))}}function ife(t,n){1&t&&(j(0,"span",32),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),Mt(vt(2,1,"LANDING_NO_DATA")))}let sfe=(()=>{class t{constructor(e){this.http=e}ngOnInit(){this.http.get("https://api.github.com/repos/mcfck/mcfck.github.io/commits/main").pipe($i(e=>Et(null))).subscribe(e=>{this.lastCommitData=e}),this.effectLogic()}effectLogic(){document.getElementById("sparkles")}}return t.\u0275fac=function(e){return new(e||t)(C(Pa))},t.\u0275cmp=mt({type:t,selectors:[["app-landing"]],decls:48,vars:20,consts:[[1,"landing__background"],[1,"main-header"],[1,"buttons"],["href","https://github.com/McFck/mcfck.github.io/fork","target","_blank","rel","noopener noreferrer",1,"fork"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","white","viewBox","0 0 16 16",1,"bi","bi-git"],["d","M15.698 7.287 8.712.302a1.03 1.03 0 0 0-1.457 0l-1.45 1.45 1.84 1.84a1.223 1.223 0 0 1 1.55 1.56l1.773 1.774a1.224 1.224 0 0 1 1.267 2.025 1.226 1.226 0 0 1-2.002-1.334L8.58 5.963v4.353a1.226 1.226 0 1 1-1.008-.036V5.887a1.226 1.226 0 0 1-.666-1.608L5.093 2.465l-4.79 4.79a1.03 1.03 0 0 0 0 1.457l6.986 6.986a1.03 1.03 0 0 0 1.457 0l6.953-6.953a1.031 1.031 0 0 0 0-1.457"],["href","https://github.com/McFck/mcfck.github.io","target","_blank","rel","noopener noreferrer",1,"fork"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","white","viewBox","0 0 16 16",1,"bi","bi-star-fill"],["d","M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"],[1,"main-text"],[1,"title"],[1,"container"],[1,"custom-text","custom-text-title"],[1,"stars"],[1,"s"],[1,"m"],[1,"l"],[1,"p-data"],[1,"description","custom-text","custom-block"],[1,"title","custom-text","custom-block",3,"innerHTML"],[1,"commit-wrap"],[1,"commit-title","custom-text"],["class","commit",4,"ngIf","ngIfElse"],["noData",""],[1,"commit"],["target","_blank","rel","noopener noreferrer",1,"commit-wrap",3,"href"],[1,"commit-author"],["target","_blank","rel","noopener noreferrer",1,"commit-author-link",3,"href"],[1,"commit-image",3,"src"],[1,"commit-author-name","custom-text"],[1,"commit-margin","custom-text"],[1,"commit-date"],[1,"commit-noData","custom-text"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"div",1),j(2,"div",2),j(3,"a",3),$e(4),ct(5,"translate"),pn(),j(6,"svg",4),je(7,"path",5),z(),z(),Ti(),j(8,"a",6),$e(9),ct(10,"translate"),pn(),j(11,"svg",7),je(12,"path",8),z(),z(),z(),Ti(),j(13,"h1",9),j(14,"span",10),j(15,"div",11),j(16,"div",12),$e(17),ct(18,"translate"),z(),j(19,"div",13),je(20,"span",14),je(21,"span",14),je(22,"span",14),je(23,"span",14),je(24,"span",14),je(25,"span",15),je(26,"span",15),je(27,"span",15),je(28,"span",15),je(29,"span",15),je(30,"span",16),je(31,"span",16),je(32,"span",16),je(33,"span",16),je(34,"span",16),z(),z(),z(),z(),j(35,"p",17),j(36,"span",18),$e(37),ct(38,"translate"),z(),je(39,"span",19),ct(40,"translate"),z(),j(41,"div",20),j(42,"span",21),$e(43),ct(44,"translate"),z(),ke(45,nfe,12,8,"div",22),z(),ke(46,ife,3,3,"ng-template",null,23,Mn),z(),z()),2&e){const s=Qt(47);ae(4),$t(" ",vt(5,8,"LANDING_FORK")," "),ae(5),$t(" ",vt(10,10,"LANDING_STAR")," "),ae(8),Mt(vt(18,12,"LANDING_TITLE")),ae(20),$t(" ",vt(38,14,"LANDING_DESC")," "),ae(2),ge("innerHTML",vt(40,16,"LANDING_LANG"),Ac),ae(4),Mt(vt(44,18,"LANDING_LAST_CHANGES")),ae(2),ge("ngIf",i.lastCommitData)("ngIfElse",s)}},directives:[vn],pipes:[Gn,uC],styles:['.stars[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:100%;height:100%}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:20px 0;margin:0;font-size:5em;text-align:center;line-height:.95em;font-weight:bold;color:transparent;background:repeating-linear-gradient(90deg,#E60012 0em .1em,#F39800 .1em .2em,#FFF100 .2em .3em,#009944 .3em .4em,#0068B7 .4em .5em,#1D2088 .5em .6em,#CFA7CD .6em .7em);-webkit-background-clip:text;-webkit-box-reflect:below -.6em -webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(transparent))}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"";position:absolute;width:10px;height:10px;transform:scale(.2)}.stars[_ngcontent-%COMP%] span.s[_ngcontent-%COMP%]:before{box-shadow:20px 20px #fff}.stars[_ngcontent-%COMP%] span.m[_ngcontent-%COMP%]:before{box-shadow:20px 10px #fff176,10px 20px #fff176,20px 20px #fff,30px 20px #fff176,20px 30px #fff176}.stars[_ngcontent-%COMP%] span.l[_ngcontent-%COMP%]:before{box-shadow:20px 0 #fdd835,20px 10px #fff176,0 20px #fdd835,10px 20px #fff176,20px 20px #fff,30px 20px #fff176,40px 20px #fdd835,20px 30px #fff176,20px 40px #fdd835}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){left:10%;top:10%;animation:star-anim 8s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){left:80%;top:20%;animation:star-anim 6s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){left:60%;top:40%;animation:star-anim 5s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){left:20%;top:70%;animation:star-anim 7s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(5){left:80%;top:80%;animation:star-anim 7s 4s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(6){left:40%;top:10%;animation:star-anim 4s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(7){left:10%;top:50%;animation:star-anim 7s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(8){left:50%;top:50%;animation:star-anim 8s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(9){left:90%;top:90%;animation:star-anim 5s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(10){left:80%;top:50%;animation:star-anim 7s 4s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(11){left:90%;top:10%;animation:star-anim 5s 0s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(12){left:10%;top:80%;animation:star-anim 6s 1s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(13){left:30%;top:20%;animation:star-anim 7s 2s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(14){left:60%;top:90%;animation:star-anim 8s 3s infinite}.stars[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(15){left:80%;top:50%;animation:star-anim 7s 4s infinite}@keyframes star-anim{0%{opacity:0}5%{opacity:1}10%{opacity:0}55%{opacity:0}60%{opacity:1}95%{opacity:0}to{opacity:1}}.container[_ngcontent-%COMP%]{position:relative;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;text-align:start}@media (max-width: 900px){.container[_ngcontent-%COMP%]{width:295px}}.custom-text[_ngcontent-%COMP%]{color:#d5e1e3}.custom-text-title[_ngcontent-%COMP%]{text-align:center}@media (max-width: 900px){.custom-text-title[_ngcontent-%COMP%]{font-size:2.7rem}}@media (max-width: 900px){.custom-block[_ngcontent-%COMP%]{text-align:justify;width:290px}}.landing__background[_ngcontent-%COMP%]{background:linear-gradient(343deg,#185CB6,#9ED6F2);height:calc(100% - 40.38px);width:100%;position:absolute}a[_ngcontent-%COMP%]{color:unset}a[_ngcontent-%COMP%]:hover{text-decoration:none}.commit[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.35s;border:1px solid white;border-radius:15px}.commit[_ngcontent-%COMP%]:hover{background-color:#1d5be5}.commit-title[_ngcontent-%COMP%]{margin-bottom:5px}.commit-margin[_ngcontent-%COMP%]{margin-right:1.5rem;margin-left:1.5rem}.commit-image[_ngcontent-%COMP%]{height:30px;border-radius:99px}.commit-date[_ngcontent-%COMP%]{font-style:italic;color:#3e3e3e;margin-bottom:5px}.commit-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column}.commit-author[_ngcontent-%COMP%], .commit-author-link[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;margin-top:5px;margin-bottom:5px}.commit-author-name[_ngcontent-%COMP%], .commit-author-link-name[_ngcontent-%COMP%]{font-weight:500}.commit-author-link[_ngcontent-%COMP%]:hover, .commit-author-link-link[_ngcontent-%COMP%]:hover{text-decoration:none}.footer[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem}.fork[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.35s;font-size:.875rem;line-height:1.25rem;padding:.5rem .75rem;border-width:1px;border-radius:9999px;grid-gap:.25rem;gap:.25rem;align-items:center;display:flex;color:#d5e1e3;text-decoration:inherit;background-color:#2d6fbf;border:1px solid white;box-sizing:border-box;font-weight:450}.fork[_ngcontent-%COMP%]:hover{background-color:#1d5be5}.p-data[_ngcontent-%COMP%]{line-height:1.75rem;font-size:1rem;letter-spacing:-.025em;font-weight:350;display:flex;flex-direction:column}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;justify-content:center;grid-gap:1rem;gap:1rem}.description[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;text-decoration:inherit;text-wrap:balance;max-width:703px}.main-header[_ngcontent-%COMP%]{padding-top:5rem;align-items:center;text-align:center;grid-gap:1.5rem;gap:1.5rem;justify-content:center;display:flex;flex-direction:column;margin-left:auto;margin-right:auto;padding-right:2rem;padding-left:2rem;width:100%}@media (max-width: 900px){.main-header[_ngcontent-%COMP%]{padding-top:1rem}}.main-text[_ngcontent-%COMP%]{font-size:3.75rem;line-height:1;letter-spacing:-.025em;font-weight:800}.title[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;text-decoration:inherit;text-wrap:balance;max-width:858.5px}']}),t})(),rfe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-misc"]],decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"misc works!"),z())},styles:[""]}),t})(),ofe=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-movies"]],decls:7,vars:3,consts:[[1,"d-flex","justify-content-center","mt-3","construction-font"],[1,"d-flex","justify-content-center","mt-3"],["xmlns","http://www.w3.org/2000/svg","width","128","height","128","fill","orange","viewBox","0 0 16 16",1,"bi","bi-cone-striped"],["d","m9.97 4.88.953 3.811C10.159 8.878 9.14 9 8 9c-1.14 0-2.158-.122-2.923-.309L6.03 4.88C6.635 4.957 7.3 5 8 5s1.365-.043 1.97-.12zm-.245-.978L8.97.88C8.718-.13 7.282-.13 7.03.88L6.275 3.9C6.8 3.965 7.382 4 8 4c.618 0 1.2-.036 1.725-.098zm4.396 8.613a.5.5 0 0 1 .037.96l-6 2a.5.5 0 0 1-.316 0l-6-2a.5.5 0 0 1 .037-.96l2.391-.598.565-2.257c.862.212 1.964.339 3.165.339s2.303-.127 3.165-.339l.565 2.257 2.391.598z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"h3"),$e(2),ct(3,"translate"),z(),z(),j(4,"div",1),pn(),j(5,"svg",2),je(6,"path",3),z(),z()),2&e&&(ae(2),Mt(vt(3,1,"Under construction")))},pipes:[Gn],styles:['.construction-font[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}']}),t})();function R_(t){return t&&"function"==typeof t.connect}class _3{applyChanges(n,e,i,s,r){n.forEachOperation((o,a,l)=>{let c,d;if(null==o.previousIndex){const u=i(o,a,l);c=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==l?(e.remove(a),d=3):(c=e.get(a),e.move(c,l),d=2);r&&r({context:null==c?void 0:c.context,operation:d,record:o})})}detach(){}}class FC{constructor(n=!1,e,i=!0){this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new E,e&&e.length&&(n?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...n){this._verifyValueAssignment(n),n.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(n){this.isSelected(n)?this.deselect(n):this.select(n)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(n){return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}}let y3=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sc=new pt("_ViewRepeater"),LC=new pt("CdkAccordion");let dfe=0,hfe=(()=>{class t{constructor(e,i,s){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=s,this._openCloseAllSubscription=fe.EMPTY,this.closed=new ot,this.opened=new ot,this.destroyed=new ot,this.expandedChange=new ot,this.id="cdk-accordion-child-"+dfe++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((r,o)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===o&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Vt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(C(LC,12),C(Gt),C(y3))},t.\u0275dir=Le({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Dt([{provide:LC,useValue:void 0}])]}),t})(),ffe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();class BC{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class v3 extends BC{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class rc extends BC{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class pfe extends BC{constructor(n){super(),this.element=n instanceof tt?n.nativeElement:n}}class b3{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof v3?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof rc?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof pfe?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x3 extends b3{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Kd=(()=>{class t extends b3{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ot,this.attachDomPortal=r=>{const o=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(C(is),C(Fn),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Je]}),t})(),HC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})();const gfe=["body"];function mfe(t,n){}const _fe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],yfe=["mat-expansion-panel-header","*","mat-action-row"];function vfe(t,n){1&t&&je(0,"span",2),2&t&&ge("@indicatorRotate",Ie()._getExpandedState())}const bfe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],xfe=["mat-panel-title","mat-panel-description","*"],jC=new pt("MAT_ACCORDION"),w3="225ms cubic-bezier(0.4,0.0,0.2,1)",C3={indicatorRotate:Ns("indicatorRotate",[Wn("collapsed, void",Jt({transform:"rotate(0deg)"})),Wn("expanded",Jt({transform:"rotate(180deg)"})),ni("expanded <=> collapsed, void => collapsed",pi(w3))]),bodyExpansion:Ns("bodyExpansion",[Wn("collapsed, void",Jt({height:"0px",visibility:"hidden"})),Wn("expanded",Jt({height:"*",visibility:"visible"})),ni("expanded <=> collapsed, void => collapsed",pi(w3))])};let wfe=(()=>{class t{constructor(e){this._template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Cfe=0;const M3=new pt("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let N_=(()=>{class t extends hfe{constructor(e,i,s,r,o,a,l){super(e,i,s),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new ot,this.afterCollapse=new ot,this._inputChanges=new E,this._headerId="mat-expansion-panel-header-"+Cfe++,this._bodyAnimationDone=new E,this.accordion=e,this._document=o,this._bodyAnimationDone.pipe(ia((c,d)=>c.fromState===d.fromState&&c.toState===d.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Vt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(ai(null),mn(()=>this.expanded&&!this._portal),Bn(1)).subscribe(()=>{this._portal=new rc(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(C(jC,12),C(Gt),C(y3),C(Fn),C(wt),C(Ci,8),C(M3,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,wfe,5),2&e){let r;st(r=rt())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&Yt(gfe,5),2&e){let s;st(s=rt())&&(i._body=s.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&>("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Dt([{provide:jC,useValue:void 0}]),Je,rn],ngContentSelectors:yfe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(Cn(_fe),jt(0),j(1,"div",0,1),nt("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),j(3,"div",2),jt(4,1),ke(5,mfe,0,0,"ng-template",3),z(),jt(6,2),z()),2&e&&(ae(1),ge("@bodyExpansion",i._getExpandedState())("id",i.id),At("aria-labelledby",i._headerId),ae(4),ge("cdkPortalOutlet",i._portal))},directives:[Kd],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C3.bodyExpansion]},changeDetection:0}),t})();class Dfe{}const Sfe=Qm(Dfe);let F_=(()=>{class t extends Sfe{constructor(e,i,s,r,o,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=s,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=fe.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(mn(d=>!(!d.hideToggle&&!d.togglePosition))):Eo;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=De(e.opened,e.closed,c,e._inputChanges.pipe(mn(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(mn(()=>e._containsFocus())).subscribe(()=>s.focusVia(i,"program")),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Ar(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(C(N_,1),C(tt),C(Js),C(Gt),C(M3,8),C(Ci,8),_s("tabindex"))},t.\u0275cmp=mt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&nt("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(At("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),si("height",i._getHeaderHeight()),gt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Je],ngContentSelectors:xfe,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(Cn(bfe),j(0,"span",0),jt(1),jt(2,1),jt(3,2),z(),ke(4,vfe,1,1,"span",1)),2&e&&(ae(4),ge("ngIf",i._showToggle()))},directives:[vn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[C3.indicatorRotate]},changeDetection:0}),t})(),D3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),S3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Le({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),E3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,ffe,HC]]}),t})(),T3=(()=>{class t{constructor(e,i,s){this.templateRef=e,this.viewContainerRef=i,this.breakpointObserver=s}ngOnInit(){this.breakpointObserver.observe([O__Handset]).subscribe(e=>{e.matches?this.loadMobileTemplate():this.loadDesktopTemplate()})}loadMobileTemplate(){this.viewContainerRef.clear(),(!this.hideConditions||!this.hideConditions[0])&&this.viewContainerRef.createEmbeddedView(this.templateRef)}loadDesktopTemplate(){this.viewContainerRef.clear(),(!this.hideConditions||!this.hideConditions[1])&&this.viewContainerRef.createEmbeddedView(this.templateRef)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(Fn),C(nc))},t.\u0275dir=Le({type:t,selectors:[["","appResponsiveTemplate",""]],inputs:{hideConditions:["appResponsiveTemplate","hideConditions"]}}),t})();new class extends no{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let kfe=1;const Ofe=Promise.resolve(),L_={};function A3(t){return t in L_&&(delete L_[t],!0)}const k3={setImmediate(t){const n=kfe++;return L_[n]=!0,Ofe.then(()=>A3(n)&&t()),n},clearImmediate(t){A3(t)}},zC=new class extends no{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=k3.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(k3.clearImmediate(e),n.scheduled=void 0)}});let Xa=(()=>{class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new S(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Zm(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Et()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(mn(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=na(i),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>di(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Me(xt),Me(yn),Me(wt,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(xt),Me(yn),Me(wt,8))},token:t,providedIn:"root"}),t})(),pr=(()=>{class t{constructor(e,i,s){this._platform=e,this._change=new E,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Zm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Me(yn),Me(xt),Me(wt,8))},t.\u0275prov=Ze({factory:function(){return new t(Me(yn),Me(xt),Me(wt,8))},token:t,providedIn:"root"}),t})(),oc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),GC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Pd,kd,oc],Pd,oc]}),t})();function Qfe(t,n){1&t&&jt(0)}const $C=["*"];function Kfe(t,n){}const Jfe=function(t){return{animationDuration:t}},Zfe=function(t,n){return{value:t,params:n}},epe=["tabBodyWrapper"],tpe=["tabHeader"];function npe(t,n){}function ipe(t,n){1&t&&ke(0,npe,0,0,"ng-template",9),2&t&&ge("cdkPortalOutlet",Ie().$implicit.templateLabel)}function spe(t,n){1&t&&$e(0),2&t&&Mt(Ie().$implicit.textLabel)}function rpe(t,n){if(1&t){const e=sn();j(0,"div",6),nt("click",function(){const s=Ot(e),r=s.$implicit,o=s.index,a=Ie(),l=Qt(1);return a._handleClick(r,l,o)})("cdkFocusChange",function(s){const o=Ot(e).index;return Ie()._tabFocusChanged(s,o)}),j(1,"div",7),ke(2,ipe,1,1,"ng-template",8),ke(3,spe,1,1,"ng-template",8),z(),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie();gt("mat-tab-label-active",s.selectedIndex==i),ge("id",s._getTabLabelId(i))("disabled",e.disabled)("matRippleDisabled",e.disabled||s.disableRipple),At("tabIndex",s._getTabIndex(e,i))("aria-posinset",i+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),ae(2),ge("ngIf",e.templateLabel),ae(1),ge("ngIf",!e.templateLabel)}}function ope(t,n){if(1&t){const e=sn();j(0,"mat-tab-body",10),nt("_onCentered",function(){return Ot(e),Ie()._removeTabBodyWrapperHeight()})("_onCentering",function(s){return Ot(e),Ie()._setTabBodyWrapperHeight(s)}),z()}if(2&t){const e=n.$implicit,i=n.index,s=Ie();gt("mat-tab-body-active",s.selectedIndex===i),ge("id",s._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",s.animationDuration),At("tabindex",null!=s.contentTabIndex&&s.selectedIndex===i?s.contentTabIndex:null)("aria-labelledby",s._getTabLabelId(i))}}const P3=["tabListContainer"],R3=["tabList"],N3=["nextPaginator"],F3=["previousPaginator"],lpe=new pt("MatInkBarPositioner",{providedIn:"root",factory:function(){return n=>({left:n?(n.offsetLeft||0)+"px":"0",width:n?(n.offsetWidth||0)+"px":"0"})}});let B_=(()=>{class t{constructor(e,i,s,r){this._elementRef=e,this._ngZone=i,this._inkBarPositioner=s,this._animationMode=r}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const i=this._inkBarPositioner(e),s=this._elementRef.nativeElement;s.style.left=i.left,s.style.width=i.width}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C(lpe),C(Ci,8))},t.\u0275dir=Le({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,i){2&e&>("_mat-animation-noopable","NoopAnimations"===i._animationMode)}}),t})();const L3=new pt("MatTabContent"),B3=new pt("MatTabLabel"),V3=new pt("MAT_TAB"),dpe=Ir(class{}),H3=new pt("MAT_TAB_GROUP");let j3=(()=>{class t extends dpe{constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new E,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new rc(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(H3,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab"]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,B3,5),Ft(s,L3,7,on)),2&e){let r;st(r=rt())&&(i.templateLabel=r.first),st(r=rt())&&(i._explicitContent=r.first)}},viewQuery:function(e,i){if(1&e&&Yt(on,7),2&e){let s;st(s=rt())&&(i._implicitContent=s.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Dt([{provide:V3,useExisting:t}]),Je,rn],ngContentSelectors:$C,decls:1,vars:0,template:function(e,i){1&e&&(Cn(),ke(0,Qfe,1,0,"ng-template"))},encapsulation:2}),t})();const upe={translateTab:Ns("translateTab",[Wn("center, void, left-origin-center, right-origin-center",Jt({transform:"none"})),Wn("left",Jt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Wn("right",Jt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ni("* => left, * => right, left => center, right => center",pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ni("void => left-origin-center",[Jt({transform:"translate3d(-100%, 0, 0)"}),pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ni("void => right-origin-center",[Jt({transform:"translate3d(100%, 0, 0)"}),pi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let hpe=(()=>{class t extends Kd{constructor(e,i,s,r){super(e,i,r),this._host=s,this._centeringSub=fe.EMPTY,this._leavingSub=fe.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ai(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(is),C(Fn),C(nn(()=>z3)),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","matTabBodyHost",""]],features:[Je]}),t})(),fpe=(()=>{class t{constructor(e,i,s){this._elementRef=e,this._dir=i,this._dirChangeSubscription=fe.EMPTY,this._translateTabComplete=new E,this._onCentering=new ot,this._beforeCentering=new ot,this._afterLeavingCenter=new ot,this._onCentered=new ot(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(r=>{this._computePositionAnimationState(r),s.markForCheck()})),this._translateTabComplete.pipe(ia((r,o)=>r.fromState===o.fromState&&r.toState===o.toState)).subscribe(r=>{this._isCenterPosition(r.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(r.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Bi,8),C(Gt))},t.\u0275dir=Le({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),z3=(()=>{class t extends fpe{constructor(e,i,s){super(e,i,s)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Bi,8),C(Gt))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Yt(Kd,5),2&e){let s;st(s=rt())&&(i._portalHost=s.first)}},hostAttrs:[1,"mat-tab-body"],features:[Je],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(j(0,"div",0,1),nt("@translateTab.start",function(r){return i._onTranslateTabStarted(r)})("@translateTab.done",function(r){return i._translateTabComplete.next(r)}),ke(2,Kfe,0,0,"ng-template",2),z()),2&e&&ge("@translateTab",Qr(3,Zfe,i._position,bs(1,Jfe,i.animationDuration)))},directives:[hpe],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[upe.translateTab]}}),t})();const G3=new pt("MAT_TABS_CONFIG");let ppe=0;class gpe{}const mpe=$l(Po(class{constructor(t){this._elementRef=t}}),"primary");let _pe=(()=>{class t extends mpe{constructor(e,i,s,r){var o;super(e),this._changeDetectorRef=i,this._animationMode=r,this._tabs=new Mo,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=fe.EMPTY,this._tabLabelSubscription=fe.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new ot,this.focusChange=new ot,this.animationDone=new ot,this.selectedTabChange=new ot(!0),this._groupId=ppe++,this.animationDuration=s&&s.animationDuration?s.animationDuration:"500ms",this.disablePagination=!(!s||null==s.disablePagination)&&s.disablePagination,this.dynamicHeight=!(!s||null==s.dynamicHeight)&&s.dynamicHeight,this.contentTabIndex=null!==(o=null==s?void 0:s.contentTabIndex)&&void 0!==o?o:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Vt(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Li(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Li(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement;i.classList.remove(`mat-background-${this.backgroundColor}`),e&&i.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const s=this._tabBodyWrapper.nativeElement;s.style.minHeight=s.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((s,r)=>s.isActive=r===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,s)=>{i.position=s-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const i=this._tabs.toArray();for(let s=0;s{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new gpe;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=De(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,s){e.disabled||(this.selectedIndex=i.focusIndex=s)}_getTabIndex(e,i){return e.disabled?null:this.selectedIndex===i?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(G3,8),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Je]}),t})(),ype=(()=>{class t extends _pe{constructor(e,i,s,r){super(e,i,s,r)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(G3,8),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,j3,5),2&e){let r;st(r=rt())&&(i._allTabs=r)}},viewQuery:function(e,i){if(1&e&&(Yt(epe,5),Yt(tpe,5)),2&e){let s;st(s=rt())&&(i._tabBodyWrapper=s.first),st(s=rt())&&(i._tabHeader=s.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,i){2&e&>("mat-tab-group-dynamic-height",i.dynamicHeight)("mat-tab-group-inverted-header","below"===i.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Dt([{provide:H3,useExisting:t}]),Je],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,i){1&e&&(j(0,"mat-tab-header",0,1),nt("indexFocused",function(r){return i._focusChanged(r)})("selectFocusedIndex",function(r){return i.selectedIndex=r}),ke(2,rpe,4,14,"div",2),z(),j(3,"div",3,4),ke(5,ope,1,9,"mat-tab-body",5),z()),2&e&&(ge("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),ae(2),ge("ngForOf",i._tabs),ae(1),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode),ae(2),ge("ngForOf",i._tabs))},directives:function(){return[Cpe,oi,$3,Pr,Jte,vn,Kd,z3]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();const vpe=Ir(class{});let $3=(()=>{class t extends vpe{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(At("aria-disabled",!!i.disabled),gt("mat-tab-disabled",i.disabled))},inputs:{disabled:"disabled"},features:[Je]}),t})();const U3=Ll({passive:!0});let Y3=(()=>{class t{constructor(e,i,s,r,o,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=s,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new E,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new E,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ot,this.indexFocused=new ot,o.runOutsideAngular(()=>{di(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Li(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){di(this._previousPaginator.nativeElement,"touchstart",U3).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),di(this._nextPaginator.nativeElement,"touchstart",U3).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Et("ltr"),i=this._viewportRuler.change(150),s=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new km(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(s):s(),De(e,i,this._items.changes).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(s)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Tt(this._destroyed)).subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ar(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const i=this._items?this._items.toArray()[e]:null;return!!i&&!i.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const s=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:o}=i.elementRef.nativeElement;let a,l;"ltr"==this._getLayoutDirection()?(a=r,l=a+o):(l=this._tabList.nativeElement.offsetWidth-r,a=l-o);const c=this.scrollDistance,d=this.scrollDistance+s;ad&&(this.scrollDistance+=l-d+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Mh(650,100).pipe(Tt(De(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:s,distance:r}=this._scrollHeader(e);(0===r||r>=s)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),wpe=(()=>{class t extends Y3{constructor(e,i,s,r,o,a,l){super(e,i,s,r,o,a,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Vt(e)}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275dir=Le({type:t,inputs:{disableRipple:"disableRipple"},features:[Je]}),t})(),Cpe=(()=>{class t extends wpe{constructor(e,i,s,r,o,a,l){super(e,i,s,r,o,a,l)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(pr),C(Bi,8),C(xt),C(yn),C(Ci,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,i,s){if(1&e&&Ft(s,$3,4),2&e){let r;st(r=rt())&&(i._items=r)}},viewQuery:function(e,i){if(1&e&&(Yt(B_,7),Yt(P3,7),Yt(R3,7),Yt(N3,5),Yt(F3,5)),2&e){let s;st(s=rt())&&(i._inkBar=s.first),st(s=rt())&&(i._tabListContainer=s.first),st(s=rt())&&(i._tabList=s.first),st(s=rt())&&(i._nextPaginator=s.first),st(s=rt())&&(i._previousPaginator=s.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&>("mat-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Je],ngContentSelectors:$C,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(Cn(),j(0,"div",0,1),nt("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(r){return i._handlePaginatorPress("before",r)})("touchend",function(){return i._stopInterval()}),je(2,"div",2),z(),j(3,"div",3,4),nt("keydown",function(r){return i._handleKeydown(r)}),j(5,"div",5,6),nt("cdkObserveContent",function(){return i._onContentChanges()}),j(7,"div",7),jt(8),z(),je(9,"mat-ink-bar"),z(),z(),j(10,"div",8,9),nt("mousedown",function(r){return i._handlePaginatorPress("after",r)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),je(12,"div",2),z()),2&e&&(gt("mat-tab-header-pagination-disabled",i._disableScrollBefore),ge("matRippleDisabled",i._disableScrollBefore||i.disableRipple),ae(5),gt("_mat-animation-noopable","NoopAnimations"===i._animationMode),ae(5),gt("mat-tab-header-pagination-disabled",i._disableScrollAfter),ge("matRippleDisabled",i._disableScrollAfter||i.disableRipple))},directives:[Pr,Sm,B_],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),Tpe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,HC,Ld,Em,qN],Sn]}),t})(),Ape=(()=>{class t{constructor(){this.submitEvent=new ot,this.valChange=new ot,this.propagateChange=e=>{}}valueChangeEvent(e){this.val=e,this.valChange.emit(e)}ngOnInit(){}submit(){this.submitEvent.emit(this.val)}writeValue(e){this.val=e}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["app-confirm-input"]],inputs:{label:"label",placeholder:"placeholder",val:"val"},outputs:{submitEvent:"submitEvent",valChange:"valChange"},features:[Dt([{provide:qi,useExisting:nn(()=>t),multi:!0}])],decls:9,vars:7,consts:[[1,"custom-id-field__filter"],["matInput","","autocomplete","off",3,"placeholder","ngModel","ngModelChange"],["mat-icon-button","",1,"custom-id-field__button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-send"],["d","M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z"]],template:function(e,i){1&e&&(j(0,"mat-form-field",0),j(1,"mat-label"),$e(2),ct(3,"translate"),z(),j(4,"input",1),nt("ngModelChange",function(r){return i.valueChangeEvent(r)}),ct(5,"translate"),z(),z(),j(6,"button",2),nt("click",function(){return i.submit()}),pn(),j(7,"svg",3),je(8,"path",4),z(),z()),2&e&&(ae(2),Mt(vt(3,3,i.label)),ae(2),yi("placeholder",vt(5,5,i.placeholder)),ge("ngModel",i.val))},directives:[ef,Bd,u_,nf,Aw,d_,Zh],pipes:[Gn],styles:[""]}),t})();function kpe(t,n){if(1&t&&(j(0,"div",6),j(1,"a",7),je(2,"img",8),z(),j(3,"div",9),j(4,"span"),$e(5),ct(6,"translate"),z(),j(7,"span"),$e(8),ct(9,"translate"),z(),je(10,"app-tool-tip-text",10),ct(11,"translate"),ct(12,"translate"),z(),z()),2&t){const e=Ie();ae(1),ge("href",e.userObj.url,_i),ae(1),ge("src",e.userObj.avatar,_i),ae(3),hl("",vt(6,9,"TOTAL_WATCHED_ANIME")," ",e.parsedStats.anime.total,""),ae(3),hl("",vt(9,11,"TOTAL_READ_MANGA")," ",e.parsedStats.manga.total,""),ae(2),ge("textMain",vt(11,13,"MEDIUM_RATING")+": "+e.parsedStats.general.medium)("textTooltip",vt(12,15,"MEDIUM_SCORE_TOOLTIP"))("placement","top")}}function Ope(t,n){1&t&&(j(0,"div",6),je(1,"img",11),j(2,"div",9),j(3,"span",12),$e(4),ct(5,"translate"),z(),z(),z()),2&t&&(ae(4),Mt(vt(5,1,"USER_UNDEFINED")))}let Ipe=(()=>{class t{constructor(e){this.animeService=e,this.isLoading=new ot,this.userFetchEvent=new ot}set user(e){var i;e?(this.userObj=Object.assign({},e),this.nickname=null===(i=this.userObj)||void 0===i?void 0:i.nickname,this.parsedStats=Ys.parseUserProfileStats(this.userObj)):this.userObj=null}updateUser(){this.nickname?(this.isLoading.emit(!0),this.animeService.getUserData(this.nickname).subscribe(e=>{this.userObj=Object.assign({},e),this.parsedStats=Ys.parseUserProfileStats(this.userObj),this.userFetchEvent.emit(this.userObj),this.isLoading.emit(!1)},e=>{this.userObj=null,this.userFetchEvent.emit(null),this.isLoading.emit(!1)})):this.userFetchEvent.emit(null)}}return t.\u0275fac=function(e){return new(e||t)(C(jh))},t.\u0275cmp=mt({type:t,selectors:[["cmp-user-card"]],inputs:{label:"label",user:"user"},outputs:{isLoading:"isLoading",userFetchEvent:"userFetchEvent"},decls:10,vars:10,consts:[[1,"cmp-user-card"],[1,"cmp-user-card__input",3,"label","placeholder","val","valChange","submitEvent"],[1,"cmp-user-card__general","d-flex","flex-column"],[1,"cmp-user-card__top-text","d-flex","flex-row","justify-content-center"],["class","d-flex flex-row",4,"ngIf","ngIfElse"],["noUser",""],[1,"d-flex","flex-row"],[3,"href"],[1,"cmp-user-card__avatar","mr-2",3,"src"],[1,"d-flex","flex-column","justify-content-center"],[3,"textMain","textTooltip","placement"],["src","../../../../assets/empty-user.png",1,"cmp-user-card__avatar","mr-2"],[1,"d-flex","justify-content-center"]],template:function(e,i){if(1&e&&(j(0,"div",0),j(1,"app-confirm-input",1),nt("valChange",function(r){return i.nickname=r})("submitEvent",function(){return i.updateUser()}),ct(2,"translate"),z(),j(3,"div",2),j(4,"span",3),$e(5),ct(6,"translate"),z(),ke(7,kpe,13,17,"div",4),z(),z(),ke(8,Ope,6,3,"ng-template",null,5,Mn)),2&e){const s=Qt(9);ae(1),ge("label",i.label)("placeholder",vt(2,6,"NICKNAME"))("val",i.nickname),ae(4),Mt(vt(6,8,"GENERAL_INFO_CARD")),ae(2),ge("ngIf",i.userObj)("ngIfElse",s)}},directives:[Ape,vn,IC],pipes:[Gn],styles:[".cmp-user-card[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}.cmp-user-card__avatar[_ngcontent-%COMP%]{height:48px;width:48px;border-radius:99px;border:1px solid gray}.cmp-user-card__general[_ngcontent-%COMP%]{background:#f9e2e9;padding:5px;border-radius:10px;min-height:115px;width:-moz-fit-content;width:fit-content;min-width:290px}.cmp-user-card__input[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.cmp-user-card__top-text[_ngcontent-%COMP%]{font-weight:600}"]}),t})();const Ppe=["input"],Rpe=function(t){return{enterDuration:t}},Npe=["*"],Fpe=new pt("mat-checkbox-default-options",{providedIn:"root",factory:X3});function X3(){return{color:"accent",clickAction:"check-indeterminate"}}let Lpe=0;const Q3=X3(),Bpe={provide:qi,useExisting:nn(()=>UC),multi:!0};class Vpe{}const Hpe=Qm($l(Po(Ir(class{constructor(t){this._elementRef=t}}))));let UC=(()=>{class t extends Hpe{constructor(e,i,s,r,o,a,l){super(e),this._changeDetectorRef=i,this._focusMonitor=s,this._ngZone=r,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++Lpe,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new ot,this.indeterminateChange=new ot,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Q3,this.color=this.defaultColor=this._options.color||Q3.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Vt(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Vt(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Vt(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,s=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);const r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{s.classList.remove(r)},1e3)})}}_emitChangeEvent(){const e=new Vpe;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var i;const s=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let s="";switch(e){case 0:if(1===i)s="unchecked-checked";else{if(3!=i)return"";s="unchecked-indeterminate"}break;case 2:s=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${s}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(Gt),C(Js),C(xt),_s("tabindex"),C(Ci,8),C(Fpe,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(Yt(Ppe,5),Yt(Pr,5)),2&e){let s;st(s=rt())&&(i._inputElement=s.first),st(s=rt())&&(i.ripple=s.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(ys("id",i.id),At("tabindex",null),gt("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Dt([Bpe]),Je],ngContentSelectors:Npe,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Cn(),j(0,"label",0,1),j(2,"span",2),j(3,"input",3,4),nt("change",function(r){return i._onInteractionEvent(r)})("click",function(r){return i._onInputClick(r)}),z(),j(5,"span",5),je(6,"span",6),z(),je(7,"span",7),j(8,"span",8),pn(),j(9,"svg",9),je(10,"path",10),z(),Ti(),je(11,"span",11),z(),z(),j(12,"span",12,13),nt("cdkObserveContent",function(){return i._onLabelTextChange()}),j(14,"span",14),$e(15,"\xa0"),z(),jt(16),z(),z()),2&e){const s=Qt(1),r=Qt(13);At("for",i.inputId),ae(2),gt("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),ae(1),ge("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),At("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),ae(2),ge("matRippleTrigger",s)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",bs(19,Rpe,"NoopAnimations"===i._animationMode?0:150))}},directives:[Pr,Sm],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),K3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({}),t})(),J3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Ld,Sn,Em,K3],Sn,K3]}),t})();const Gpe=["mat-sort-header",""];function $pe(t,n){if(1&t){const e=sn();j(0,"div",3),nt("@arrowPosition.start",function(){return Ot(e),Ie()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Ot(e),Ie()._disableViewStateAnimation=!1}),je(1,"div",4),j(2,"div",5),je(3,"div",6),je(4,"div",7),je(5,"div",8),z(),z()}if(2&t){const e=Ie();ge("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),ae(2),ge("@indicator",e._getArrowDirectionState()),ae(1),ge("@leftPointer",e._getArrowDirectionState()),ae(1),ge("@rightPointer",e._getArrowDirectionState())}}const Upe=["*"],Wpe=new pt("MAT_SORT_DEFAULT_OPTIONS"),Ype=t2(Ir(class{}));let Sf=(()=>{class t extends Ype{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new E,this.start="asc",this._direction="",this.sortChange=new ot}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Vt(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,s,r;if(!e)return"";const o=null!==(s=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==s?s:!!(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableClear);let a=function(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,o),l=a.indexOf(this.direction)+1;return l>=a.length&&(l=0),a[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(C(Wpe,8))},t.\u0275dir=Le({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Je,rn]}),t})();const Qa=Oie.ENTERING+" "+kie.STANDARD_CURVE,Zd={indicator:Ns("indicator",[Wn("active-asc, asc",Jt({transform:"translateY(0px)"})),Wn("active-desc, desc",Jt({transform:"translateY(10px)"})),ni("active-asc <=> active-desc",pi(Qa))]),leftPointer:Ns("leftPointer",[Wn("active-asc, asc",Jt({transform:"rotate(-45deg)"})),Wn("active-desc, desc",Jt({transform:"rotate(45deg)"})),ni("active-asc <=> active-desc",pi(Qa))]),rightPointer:Ns("rightPointer",[Wn("active-asc, asc",Jt({transform:"rotate(45deg)"})),Wn("active-desc, desc",Jt({transform:"rotate(-45deg)"})),ni("active-asc <=> active-desc",pi(Qa))]),arrowOpacity:Ns("arrowOpacity",[Wn("desc-to-active, asc-to-active, active",Jt({opacity:1})),Wn("desc-to-hint, asc-to-hint, hint",Jt({opacity:.54})),Wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Jt({opacity:0})),ni("* => asc, * => desc, * => active, * => hint, * => void",pi("0ms")),ni("* <=> *",pi(Qa))]),arrowPosition:Ns("arrowPosition",[ni("* => desc-to-hint, * => desc-to-active",pi(Qa,Xh([Jt({transform:"translateY(-25%)"}),Jt({transform:"translateY(0)"})]))),ni("* => hint-to-desc, * => active-to-desc",pi(Qa,Xh([Jt({transform:"translateY(0)"}),Jt({transform:"translateY(25%)"})]))),ni("* => asc-to-hint, * => asc-to-active",pi(Qa,Xh([Jt({transform:"translateY(25%)"}),Jt({transform:"translateY(0)"})]))),ni("* => hint-to-asc, * => active-to-asc",pi(Qa,Xh([Jt({transform:"translateY(0)"}),Jt({transform:"translateY(-25%)"})]))),Wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Jt({transform:"translateY(0)"})),Wn("hint-to-desc, active-to-desc, desc",Jt({transform:"translateY(-25%)"})),Wn("hint-to-asc, active-to-asc, asc",Jt({transform:"translateY(25%)"}))]),allowChildren:Ns("allowChildren",[ni("* <=> *",[eF("@*",ZN(),{optional:!0})])])};let V_=(()=>{class t{constructor(){this.changes=new E}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Qpe={provide:V_,deps:[[new Ki,new Vr,V_]],useFactory:function(t){return t||new V_}},Kpe=Ir(class{});let Z3=(()=>{class t extends Kpe{constructor(e,i,s,r,o,a,l){super(),this._intl=e,this._changeDetectorRef=i,this._sort=s,this._columnDef=r,this._focusMonitor=o,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Vt(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,s;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(s=this._ariaDescriber)||void 0===s||s.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=De(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(C(V_),C(Gt),C(Sf,8),C("MAT_SORT_HEADER_COLUMN_DEF",8),C(Js),C(tt),C(Fx,8))},t.\u0275cmp=mt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&nt("click",function(){return i._handleClick()})("keydown",function(r){return i._handleKeydown(r)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(At("aria-sort",i._getAriaSortAttribute()),gt("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Je],attrs:Gpe,ngContentSelectors:Upe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(Cn(),j(0,"div",0),j(1,"div",1),jt(2),z(),ke(3,$pe,6,6,"div",2),z()),2&e&&(gt("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),At("tabindex",i._isDisabled()?null:0),ae(3),ge("ngIf",i._renderArrow()))},directives:[vn],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Zd.indicator,Zd.leftPointer,Zd.rightPointer,Zd.arrowOpacity,Zd.arrowPosition,Zd.allowChildren]},changeDetection:0}),t})(),eV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Qpe],imports:[[ei,Sn]]}),t})();const Jpe=[[["caption"]],[["colgroup"],["col"]]],Zpe=["caption","colgroup, col"];function WC(t){return class extends t{constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=Vt(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}}}const eu=new pt("CDK_TABLE");let tu=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkCellDef",""]]}),t})(),nu=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),H_=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class ige{}const sge=WC(ige);let oa=(()=>{class t extends sge{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Vt(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,tu,5),Ft(s,nu,5),Ft(s,H_,5)),2&e){let r;st(r=rt())&&(i.cell=r.first),st(r=rt())&&(i.headerCell=r.first),st(r=rt())&&(i.footerCell=r.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Dt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Je]}),t})();class YC{constructor(n,e){const i=e.nativeElement.classList;for(const s of n._columnCssClassName)i.add(s)}}let qC=(()=>{class t extends YC{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Je]}),t})(),tV=(()=>{class t extends YC{constructor(e,i){var s;if(super(e,i),1===(null===(s=e._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Je]}),t})(),XC=(()=>{class t extends YC{constructor(e,i){var s;if(super(e,i),1===(null===(s=e._table)||void 0===s?void 0:s._elementRef.nativeElement.nodeType)){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(C(oa),C(tt))},t.\u0275dir=Le({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Je]}),t})();class nV{constructor(){this.tasks=[],this.endTasks=[]}}const QC=new pt("_COALESCED_STYLE_SCHEDULER");let iV=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new E}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new nV,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new nV;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?K(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Bn(1))}}return t.\u0275fac=function(e){return new(e||t)(Me(xt))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})(),KC=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ef?e.headerCell.template:this instanceof Tf?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr))},t.\u0275dir=Le({type:t,features:[rn]}),t})();class rge extends KC{}const oge=WC(rge);let Ef=(()=>{class t extends oge{constructor(e,i,s){super(e,i),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Je,rn]}),t})();class age extends KC{}const lge=WC(age);let Tf=(()=>{class t extends lge{constructor(e,i,s){super(e,i),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Je,rn]}),t})(),j_=(()=>{class t extends KC{constructor(e,i,s){super(e,i),this._table=s}}return t.\u0275fac=function(e){return new(e||t)(C(on),C(wr),C(eu,8))},t.\u0275dir=Le({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Je]}),t})(),aa=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(C(Fn))},t.\u0275dir=Le({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),JC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),ZC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),eM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=mt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),z_=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const sV=["top","bottom","left","right"];class cge{constructor(n,e,i,s,r=!0,o=!0,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=s,this._isBrowser=r,this._needsPositionStickyOnElement=o,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const s of n)if(s.nodeType===s.ELEMENT_NODE){i.push(s);for(let r=0;r{for(const s of i)this._removeStickyStyle(s,e)})}updateStickyColumns(n,e,i,s=!0){if(!n.length||!this._isBrowser||!e.some(f=>f)&&!i.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const r=n[0],o=r.children.length,a=this._getCellWidths(r,s),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),d=e.lastIndexOf(!0),u=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,_=f?"right":"left",T=f?"left":"right";for(const k of n)for(let $=0;$e[$]?k:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((k,$)=>i[$+u]?k:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const s="bottom"===i?n.slice().reverse():n,r="bottom"===i?e.slice().reverse():e,o=[],a=[],l=[];for(let d=0,u=0;d{var d,u;for(let f=0;f{e.some(s=>!s)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const s of e)n.style[s]="",n.classList.remove(this._borderCellCss[s]);sV.some(s=>-1===e.indexOf(s)&&n.style[s])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,s){n.classList.add(this._stickCellCss),s&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const s of sV)n.style[s]&&(i+=e[s]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],s=n.children;for(let r=0;r0;r--)e[r]&&(i[r]=s,s+=n[r]);return i}}const tM=new pt("CDK_SPL");let G_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","rowOutlet",""]]}),t})(),$_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),U_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),W_=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(C(Fn),C(tt))},t.\u0275dir=Le({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),Y_=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=o,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=f,this._onDestroy=new E,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ot,this.viewChange=new ti({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Vt(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Vt(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),R_(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(s,r,o)=>this._getEmbeddedViewArgs(s.item,o),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(s=>{i.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=e.length?"":"none");const r=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,r,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=e.length?"":"none");const r=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,o)=>{this._addStickyColumnStyles([r],this._headerRowDefs[o])}),this._rowDefs.forEach(r=>{const o=[];for(let a=0;a{this._addStickyColumnStyles([r],this._footerRowDefs[o])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const a=s&&s.has(o)?s.get(o):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:o,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),q_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=q_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=q_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=q_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(o,a)=>o||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(e,!1);s&&this._forceRenderHeaderRows();const r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),i||s||r}_switchDataSource(e){this._data=[],R_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;R_(this.dataSource)?e=this.dataSource.connect(this):function(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Et(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const s=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),r=s.map(a=>a.sticky),o=s.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let s=0;s!r.when||r.when(i,e));else{let r=this._rowDefs.find(o=>o.when&&o.when(i,e))||this._defaultRowDef;r&&s.push(r)}return s}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,s,r={}){const o=e.viewContainer.createEmbeddedView(i.template,r,s);return this._renderCellTemplateForItem(i,r),o}_renderCellTemplateForItem(e,i){for(let s of this._getCellTemplates(e))aa.mostRecentCellOutlet&&aa.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,s=e.length;i{const s=this._columnDefsByName.get(i);return e.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of i){const r=this._document.createElement(s.tag);r.setAttribute("role","rowgroup");for(const o of s.outlets)r.appendChild(o.elementRef.nativeElement);e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,s)=>i||s.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new cge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Et()).pipe(Tt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){const s=this._noDataRowOutlet.viewContainer;i?s.createEmbeddedView(e.templateRef):s.clear(),this._isShowingNoDataRow=i}}}}return t.\u0275fac=function(e){return new(e||t)(C(wr),C(Gt),C(tt),_s("role"),C(Bi,8),C(wt),C(yn),C(sc),C(QC),C(pr),C(tM,12))},t.\u0275cmp=mt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,z_,5),Ft(s,oa,5),Ft(s,j_,5),Ft(s,Ef,5),Ft(s,Tf,5)),2&e){let r;st(r=rt())&&(i._noDataRow=r.first),st(r=rt())&&(i._contentColumnDefs=r),st(r=rt())&&(i._contentRowDefs=r),st(r=rt())&&(i._contentHeaderRowDefs=r),st(r=rt())&&(i._contentFooterRowDefs=r)}},viewQuery:function(e,i){if(1&e&&(Yt(G_,7),Yt($_,7),Yt(U_,7),Yt(W_,7)),2&e){let s;st(s=rt())&&(i._rowOutlet=s.first),st(s=rt())&&(i._headerRowOutlet=s.first),st(s=rt())&&(i._footerRowOutlet=s.first),st(s=rt())&&(i._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&>("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Dt([{provide:eu,useExisting:t},{provide:sc,useClass:_3},{provide:QC,useClass:iV},{provide:tM,useValue:null}])],ngContentSelectors:Zpe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cn(Jpe),jt(0),jt(1,1),qn(2,0),qn(3,1),qn(4,2),qn(5,3))},directives:[$_,G_,W_,U_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function q_(t,n){return t.concat(Array.from(n))}let uge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[GC]]}),t})();const hge=[[["caption"]],[["colgroup"],["col"]]],fge=["caption","colgroup, col"];let nM=(()=>{class t extends Y_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&>("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[Dt([{provide:sc,useClass:_3},{provide:Y_,useExisting:t},{provide:eu,useExisting:t},{provide:QC,useClass:iV},{provide:tM,useValue:null}]),Je],ngContentSelectors:fge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Cn(hge),jt(0),jt(1,1),qn(2,0),qn(3,1),qn(4,2),qn(5,3))},directives:[$_,G_,W_,U_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),X_=(()=>{class t extends tu{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matCellDef",""]],features:[Dt([{provide:tu,useExisting:t}]),Je]}),t})(),Q_=(()=>{class t extends nu{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matHeaderCellDef",""]],features:[Dt([{provide:nu,useExisting:t}]),Je]}),t})(),oV=(()=>{class t extends H_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matFooterCellDef",""]],features:[Dt([{provide:H_,useExisting:t}]),Je]}),t})(),K_=(()=>{class t extends oa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Dt([{provide:oa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Je]}),t})(),J_=(()=>{class t extends qC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Je]}),t})(),aV=(()=>{class t extends tV{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[Je]}),t})(),Z_=(()=>{class t extends XC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Je]}),t})(),iM=(()=>{class t extends Ef{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Dt([{provide:Ef,useExisting:t}]),Je]}),t})(),lV=(()=>{class t extends Tf{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[Dt([{provide:Tf,useExisting:t}]),Je]}),t})(),sM=(()=>{class t extends j_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Dt([{provide:j_,useExisting:t}]),Je]}),t})(),rM=(()=>{class t extends JC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Dt([{provide:JC,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),cV=(()=>{class t extends ZC{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[Dt([{provide:ZC,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),oM=(()=>{class t extends eM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Dt([{provide:eM,useExisting:t}]),Je],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&qn(0,0)},directives:[aa],encapsulation:2}),t})(),aM=(()=>{class t extends z_{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[Dt([{provide:z_,useExisting:t}]),Je]}),t})(),dV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[uge,Sn],Sn]}),t})();class lM extends class extends class{}{constructor(n=[]){super(),this._renderData=new ti([]),this._filter=new ti(""),this._internalPageChanges=new E,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const s=e[i];if(_N(s)){const r=Number(s);return r<9007199254740991?r:s}return s},this.sortData=(e,i)=>{const s=i.active,r=i.direction;return s&&""!=r?e.sort((o,a)=>{let l=this.sortingDataAccessor(o,s),c=this.sortingDataAccessor(a,s);const d=typeof l,u=typeof c;d!==u&&("number"===d&&(l+=""),"number"===u&&(c+=""));let f=0;return null!=l&&null!=c?l>c?f=1:l{const s=Object.keys(e).reduce((o,a)=>o+e[a]+"\u25ec","").toLowerCase(),r=i.trim().toLowerCase();return-1!=s.indexOf(r)},this._data=new ti(n),this._updateChangeSubscription()}get data(){return this._data.value}set data(n){this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_updateChangeSubscription(){var n;const e=this._sort?De(this._sort.sortChange,this._sort.initialized):Et(null),i=this._paginator?De(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Et(null),r=So([this._data,this._filter]).pipe(g(([l])=>this._filterData(l))),o=So([r,e]).pipe(g(([l])=>this._orderData(l))),a=So([o,i]).pipe(g(([l])=>this._pageData(l)));null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=a.subscribe(l=>this._renderData.next(l))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,s=Math.min(e.pageIndex,i);s!==e.pageIndex&&(e.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var n;null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=null}}{}const uV=SN();class bge{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Yi(-this._previousScrollPosition.left),n.style.top=Yi(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,s=this._document.body.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),uV&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),uV&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class xge{constructor(n,e,i,s){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class hV{enable(){}disable(){}attach(){}}function cM(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function fV(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class wge{constructor(n,e,i,s){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();cM(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Cge=(()=>{class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new hV,this.close=o=>new xge(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new bge(this._viewportRuler,this._document),this.reposition=o=>new wge(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(Me(Xa),Me(pr),Me(xt),Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(Xa),Me(pr),Me(xt),Me(wt))},token:t,providedIn:"root"}),t})();class dM{constructor(n){if(this.scrollStrategy=new hV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class Mge{constructor(n,e,i,s,r){this.offsetX=i,this.offsetY=s,this.panelClass=r,this.originX=n.originX,this.originY=n.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Dge{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let pV=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Sge=(()=>{class t extends pV{constructor(e){super(e),this._keydownListener=i=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Me(wt))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt))},token:t,providedIn:"root"}),t})(),Ege=(()=>{class t extends pV{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Vl(s)},this._clickListener=s=>{const r=Vl(s),o="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(Me(wt),Me(yn))},t.\u0275prov=Ze({factory:function(){return new t(Me(wt),Me(yn))},token:t,providedIn:"root"}),t})(),uM=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Rx()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(d),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){let e=this._portalOutlet.attach(n);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Yi(this._config.width),n.height=Yi(this._config.height),n.minWidth=Yi(this._config.minWidth),n.minHeight=Yi(this._config.minHeight),n.maxWidth=Yi(this._config.maxWidth),n.maxHeight=Yi(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(!n)return;let e;const i=()=>{n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",i),this._disposeBackdrop(n)),this._config.backdropClass&&this._toggleClasses(n,this._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",i)}),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(n,e,i){const s=n.classList;vm(e).forEach(r=>{r&&(i?s.add(r):s.remove(r))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Tt(De(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.parentNode&&n.parentNode.removeChild(n),this._backdropElement===n&&(this._backdropElement=null))}}const gV="cdk-overlay-connected-position-bounding-box",Age=/([A-Za-z%]+)$/;class mV{constructor(n,e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E,this._resizeSubscription=fe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(gV),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,s=[];let r;for(let o of this._preferredPositions){let a=this._getOriginPoint(n,o),l=this._getOverlayPoint(a,e,o),c=this._getOverlayFit(l,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(c,l,i)?s.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!r||r.overlayFit.visibleAreaa&&(a=c,o=l)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ac(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gV),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const n=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,n);this._applyPosition(n,e)}}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e){let i,s;if("center"==e.originX)i=n.left+n.width/2;else{const r=this._isRtl()?n.right:n.left,o=this._isRtl()?n.left:n.right;i="start"==e.originX?r:o}return s="center"==e.originY?n.top+n.height/2:"top"==e.originY?n.top:n.bottom,{x:i,y:s}}_getOverlayPoint(n,e,i){let s,r;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+s,y:n.y+r}}_getOverlayFit(n,e,i,s){const r=yV(e);let{x:o,y:a}=n,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(o+=l),c&&(a+=c);let f=0-a,_=a+r.height-i.height,T=this._subtractOverflows(r.width,0-o,o+r.width-i.width),k=this._subtractOverflows(r.height,f,_),$=T*k;return{visibleArea:$,isCompletelyWithinViewport:r.width*r.height===$,fitsInViewportVertically:k===r.height,fitsInViewportHorizontally:T==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,r=i.right-e.x,o=_V(this._overlayRef.getConfig().minHeight),a=_V(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=o&&o<=s)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const s=yV(e),r=this._viewportRect,o=Math.max(n.x+s.width-r.width,0),a=Math.max(n.y+s.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let d=0,u=0;return d=s.width<=r.width?c||-o:n.xT&&!this._isInitialRender&&!this._growAfterOpen&&(o=n.y-T/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)f=i.width-n.x+this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=n.x,d=i.right-n.x;else{const _=Math.min(i.right-n.x+i.left,n.x),T=this._lastBoundingBoxSize.width;d=2*_,u=n.x-_,d>T&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-T/2)}return{top:o,left:u,bottom:a,right:f,width:d,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=Yi(i.height),s.top=Yi(i.top),s.bottom=Yi(i.bottom),s.width=Yi(i.width),s.left=Yi(i.left),s.right=Yi(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=Yi(r)),o&&(s.maxWidth=Yi(o))}this._lastBoundingBoxSize=i,ac(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ac(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ac(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ac(i,this._getExactOverlayY(e,n,d)),ac(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=Yi(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=Yi(o.maxWidth):r&&(i.maxWidth="")),ac(this._pane.style,i)}_getExactOverlayY(n,e,i){let s={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===n.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=Yi(r.y),s}_getExactOverlayX(n,e,i){let o,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),o=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===o?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Yi(r.x),s}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:fV(n,i),isOriginOutsideView:cM(n,i),isOverlayClipped:fV(e,i),isOverlayOutsideView:cM(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,s)=>i-Math.max(s,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&vm(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof tt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function ac(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function _V(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(Age);return e&&"px"!==e?null:parseFloat(n)}return t||null}function yV(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class kge{constructor(n,e,i,s,r,o,a){this._preferredPositions=[],this._positionStrategy=new mV(i,s,r,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(n,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(n){this._overlayRef=n,this._positionStrategy.attach(n),this._direction&&(n.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(n){this._positionStrategy.withScrollableContainers(n)}withFallbackPosition(n,e,i,s){const r=new Mge(n,e,i,s);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(n){return this._overlayRef?this._overlayRef.setDirection(n):this._direction=n,this}withOffsetX(n){return this._positionStrategy.withDefaultOffsetX(n),this}withOffsetY(n){return this._positionStrategy.withDefaultOffsetY(n),this}withLockedPosition(n){return this._positionStrategy.withLockedPosition(n),this}withPositions(n){return this._preferredPositions=n.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(n){return this._positionStrategy.setOrigin(n),this}}const vV="cdk-global-overlay-wrapper";class Oge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(vV),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(vV),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let Ige=(()=>{class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new Oge}connectedTo(e,i,s){return new kge(i,s,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new mV(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Me(pr),Me(wt),Me(yn),Me(uM))},t.\u0275prov=Ze({factory:function(){return new t(Me(pr),Me(wt),Me(yn),Me(uM))},token:t,providedIn:"root"}),t})(),Pge=0,la=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=f}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),o=new dM(e);return o.direction=o.direction||this._directionality.value,new Tge(r,i,s,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+Pge++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(cr)),new x3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Me(Cge),Me(uM),Me(is),Me(Ige),Me(Sge),Me(wn),Me(xt),Me(wt),Me(Bi),Me(oh),Me(Ege))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac}),t})();const Rge=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],bV=new pt("cdk-connected-overlay-scroll-strategy");let Nge=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(C(tt))},t.\u0275dir=Le({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),xV=(()=>{class t{constructor(e,i,s,r,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=fe.EMPTY,this._attachSubscription=fe.EMPTY,this._detachSubscription=fe.EMPTY,this._positionSubscription=fe.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ot,this.positionChange=new ot,this.attach=new ot,this.detach=new ot,this.overlayKeydown=new ot,this.overlayOutsideClick=new ot,this._templatePortal=new rc(i,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Vt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Vt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Vt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Vt(e)}get push(){return this._push}set push(e){this._push=Vt(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Rge);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!Ar(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new dM({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(sP(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(on),C(Fn),C(bV),C(Bi,8))},t.\u0275dir=Le({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[rn]}),t})();const Lge={provide:bV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let hM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[la,Lge],imports:[[Pd,HC,GC],GC]}),t})();const Bge=["trigger"],Vge=["panel"];function Hge(t,n){if(1&t&&(j(0,"span",8),$e(1),z()),2&t){const e=Ie();ae(1),Mt(e.placeholder)}}function jge(t,n){if(1&t&&(j(0,"span",12),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.triggerValue)}}function zge(t,n){1&t&&jt(0,0,["*ngSwitchCase","true"])}function Gge(t,n){1&t&&(j(0,"span",9),ke(1,jge,2,1,"span",10),ke(2,zge,1,0,"ng-content",11),z()),2&t&&(ge("ngSwitch",!!Ie().customTrigger),ae(2),ge("ngSwitchCase",!0))}function $ge(t,n){if(1&t){const e=sn();j(0,"div",13),j(1,"div",14,15),nt("@transformPanel.done",function(s){return Ot(e),Ie()._panelDoneAnimatingStream.next(s.toState)})("keydown",function(s){return Ot(e),Ie()._handleKeydown(s)}),jt(3,1),z(),z()}if(2&t){const e=Ie();ge("@transformPanelWrap",void 0),ae(1),function(t,n,e){Yr(sr,xo,Bc(dt(),t,n,e),!0)}("mat-select-panel ",e._getPanelTheme(),""),si("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),ge("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),At("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Uge=[[["mat-select-trigger"]],"*"],Wge=["mat-select-trigger","*"],wV={transformPanelWrap:Ns("transformPanelWrap",[ni("* => void",eF("@transformPanel",[ZN()],{optional:!0}))]),transformPanel:Ns("transformPanel",[Wn("void",Jt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Wn("showing",Jt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Wn("showing-multiple",Jt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ni("void => *",pi("120ms cubic-bezier(0, 0, 0.2, 1)")),ni("* => void",pi("100ms 25ms linear",Jt({opacity:0})))])};let CV=0;const DV=new pt("mat-select-scroll-strategy"),Qge=new pt("MAT_SELECT_CONFIG"),Kge={provide:DV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Jge{constructor(n,e){this.source=n,this.value=e}}const Zge=Po(Qm(Ir(e2(class{constructor(t,n,e,i,s){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}})))),SV=new pt("MatSelectTrigger");let eme=(()=>{class t extends Zge{constructor(e,i,s,r,o,a,l,c,d,u,f,_,T,k){var $,L,J;super(o,r,l,c,u),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=s,this._dir=a,this._parentFormField=d,this._liveAnnouncer=T,this._defaultOptions=k,this._panelOpen=!1,this._compareWith=(ue,Te)=>ue===Te,this._uid="mat-select-"+CV++,this._triggerAriaLabelledBy=null,this._destroy=new E,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+CV++,this._panelDoneAnimatingStream=new E,this._overlayPanelClass=(null===($=this._defaultOptions)||void 0===$?void 0:$.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(J=null===(L=this._defaultOptions)||void 0===L?void 0:L.disableOptionCentering)&&void 0!==J&&J,this.ariaLabel="",this.optionSelectionChanges=N0(()=>{const ue=this.options;return ue?ue.changes.pipe(ai(ue),as(()=>De(...ue.map(Te=>Te.onSelectionChange)))):this._ngZone.onStable.pipe(Bn(1),as(()=>this.optionSelectionChanges))}),this.openedChange=new ot,this._openedStream=this.openedChange.pipe(mn(ue=>ue),g(()=>{})),this._closedStream=this.openedChange.pipe(mn(ue=>!ue),g(()=>{})),this.selectionChange=new ot,this.valueChange=new ot,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==k?void 0:k.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=k.typeaheadDebounceInterval),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Vt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Vt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Vt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Li(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new FC(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ia(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(ai(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,s=40===i||38===i||37===i||39===i,r=13===i||32===i,o=this._keyManager;if(!o.isTyping()&&r&&!Ar(e)||(this.multiple||e.altKey)&&s)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;o.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,s=e.keyCode,r=40===s||38===s,o=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(o||13!==s&&32!==s||!i.activeItem||Ar(e))if(!o&&this._multiple&&65===s&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(s=>{if(this._selectionModel.isSelected(s))return!1;try{return null!=s.value&&this._compareWith(s.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new Rte(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Tt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=De(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),De(...this.options.map(i=>i._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const s=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(s!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),s!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,s)=>this.sortComparator?this.sortComparator(i,s,e):e.indexOf(i)-e.indexOf(s)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(s=>s.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let s=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(s+=" "+this.ariaLabelledby),s}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(C(pr),C(Gt),C(xt),C(yw),C(tt),C(Bi,8),C(cf,8),C(df,8),C(Dw,8),C(Ro,10),_s("tabindex"),C(DV),C(GN),C(Qge,8))},t.\u0275dir=Le({type:t,viewQuery:function(e,i){if(1&e&&(Yt(Bge,5),Yt(Vge,5),Yt(xV,5)),2&e){let s;st(s=rt())&&(i.trigger=s.first),st(s=rt())&&(i.panel=s.first),st(s=rt())&&(i._overlayDir=s.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Je,rn]}),t})(),tme=(()=>{class t extends eme{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,s){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),s)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=p2(e,this.options,this.optionGroups),s=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function(t,n,e,i){return te+256?Math.max(0,t-256+n):e}((e+i)*s,s,this.panel.nativeElement.scrollTop)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Jge(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),s=this._isRtl(),r=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let c=this._selectionModel.selected[0]||this.options.first;o=c&&c.group?32:16}s||(o*=-1);const a=0-(e.left+o-(s?r:0)),l=e.right+o-i.width+(s?0:r);a>0?o+=a+8:l>0&&(o-=l+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,s){const r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===s?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-o))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),s=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,o=s.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>o?this._adjustPanelUp(c,o):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const s=Math.round(e-i);this._scrollTop-=s,this._offsetY-=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,s){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=s)return this._scrollTop=s,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),s=Math.min(i*e,256),o=i*e-s;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=p2(a,this.options,this.optionGroups);const l=s/2;this._scrollTop=this._calculateOverlayScroll(a,l,o),this._offsetY=this._calculateOverlayOffsetY(a,l,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275cmp=mt({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,s){if(1&e&&(Ft(s,SV,5),Ft(s,f2,5),Ft(s,Cw,5)),2&e){let r;st(r=rt())&&(i.customTrigger=r.first),st(r=rt())&&(i.options=r),st(r=rt())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&nt("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(At("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),gt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Dt([{provide:Jm,useExisting:t},{provide:ww,useExisting:t}]),Je],ngContentSelectors:Wge,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(Cn(Uge),j(0,"div",0,1),nt("click",function(){return i.toggle()}),j(3,"div",2),ke(4,Hge,2,1,"span",3),ke(5,Gge,3,2,"span",4),z(),j(6,"div",5),je(7,"div",6),z(),z(),ke(8,$ge,4,14,"ng-template",7),nt("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const s=Qt(1);At("aria-owns",i.panelOpen?i.id+"-panel":null),ae(3),ge("ngSwitch",i.empty),At("id",i._valueId),ae(1),ge("ngSwitchCase",!0),ae(1),ge("ngSwitchCase",!1),ae(3),ge("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[Nge,Da,cd,xV,b0,Ma],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[wV.transformPanelWrap,wV.transformPanel]},changeDetection:0}),t})(),nme=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Kge],imports:[[ei,hM,g2,Sn],oc,tf,g2,Sn]}),t})();const ime={tooltipState:Ns("state",[Wn("initial, void, hidden",Jt({opacity:0,transform:"scale(0)"})),Wn("visible",Jt({transform:"scale(1)"})),ni("* => visible",pi("200ms cubic-bezier(0, 0, 0.2, 1)",Xh([Jt({opacity:0,transform:"scale(0)",offset:0}),Jt({opacity:.5,transform:"scale(0.99)",offset:.5}),Jt({opacity:1,transform:"scale(1)",offset:1})]))),ni("* => hidden",pi("100ms cubic-bezier(0, 0, 0.2, 1)",Jt({opacity:0})))])},EV="tooltip-panel",TV=Ll({passive:!0}),AV=new pt("mat-tooltip-scroll-strategy"),ame={provide:AV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},lme=new pt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let dme=(()=>{class t{constructor(e,i,s,r,o,a,l,c,d,u,f,_){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=T=>{this._isTooltipVisible()&&27===T.keyCode&&!Ar(T)&&(T.preventDefault(),T.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=d,this._document=_,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),o.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Vt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,TV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new v3(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Tt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${EV}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),r.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:r,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:r,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Bn(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:r}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===r?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${EV}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,TV)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Xa),C(Fn),C(xt),C(yn),C(Fx),C(Js),C(void 0),C(Bi),C(void 0),C(wt))},t.\u0275dir=Le({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),ume=(()=>{class t extends dme{constructor(e,i,s,r,o,a,l,c,d,u,f,_){super(e,i,s,r,o,a,l,c,d,u,f,_),this._tooltipComponent=fme}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Xa),C(Fn),C(xt),C(yn),C(Fx),C(Js),C(AV),C(Bi,8),C(lme,8),C(wt))},t.\u0275dir=Le({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Je]}),t})(),hme=(()=>{class t{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(C(Gt))},t.\u0275dir=Le({type:t}),t})(),fme=(()=>{class t extends hme{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe(O__Handset)}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&si("zoom","visible"===i._visibility?1:null)},features:[Je],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(j(0,"div",0),nt("@state.start",function(){return i._animationStart()})("@state.done",function(r){return i._animationDone(r)}),ct(1,"async"),$e(2),z()),2&e){let s;gt("mat-tooltip-handset",null==(s=vt(1,5,i._isHandset))?null:s.matches),ge("ngClass",i.tooltipClass)("@state",i._visibility),ae(2),Mt(i.message)}},directives:[Ma],pipes:[SO],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ime.tooltipState]},changeDetection:0}),t})(),pme=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[ame],imports:[[qN,ei,hM,Sn],Sn,oc]}),t})();function gme(t,n){if(1&t&&(j(0,"mat-option",19),$e(1),z()),2&t){const e=n.$implicit;ge("value",e),ae(1),$t(" ",e," ")}}function mme(t,n){if(1&t){const e=sn();j(0,"mat-form-field",16),j(1,"mat-select",17),nt("selectionChange",function(s){return Ot(e),Ie(2)._changePageSize(s.value)}),ke(2,gme,2,2,"mat-option",18),z(),z()}if(2&t){const e=Ie(2);ge("appearance",e._formFieldAppearance)("color",e.color),ae(1),ge("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),ae(1),ge("ngForOf",e._displayedPageSizeOptions)}}function _me(t,n){if(1&t&&(j(0,"div",20),$e(1),z()),2&t){const e=Ie(2);ae(1),Mt(e.pageSize)}}function yme(t,n){if(1&t&&(j(0,"div",12),j(1,"div",13),$e(2),z(),ke(3,mme,3,6,"mat-form-field",14),ke(4,_me,2,1,"div",15),z()),2&t){const e=Ie();ae(2),$t(" ",e._intl.itemsPerPageLabel," "),ae(1),ge("ngIf",e._displayedPageSizeOptions.length>1),ae(1),ge("ngIf",e._displayedPageSizeOptions.length<=1)}}function vme(t,n){if(1&t){const e=sn();j(0,"button",21),nt("click",function(){return Ot(e),Ie().firstPage()}),pn(),j(1,"svg",7),je(2,"path",22),z(),z()}if(2&t){const e=Ie();ge("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),At("aria-label",e._intl.firstPageLabel)}}function bme(t,n){if(1&t){const e=sn();pn(),Ti(),j(0,"button",23),nt("click",function(){return Ot(e),Ie().lastPage()}),pn(),j(1,"svg",7),je(2,"path",24),z(),z()}if(2&t){const e=Ie();ge("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),At("aria-label",e._intl.lastPageLabel)}}let kf=(()=>{class t{constructor(){this.changes=new E,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,s)=>{if(0==s||0==i)return`0 of ${s}`;const r=e*i;return`${r+1} \u2013 ${r<(s=Math.max(s,0))?Math.min(r+i,s):r+i} of ${s}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ze({factory:function(){return new t},token:t,providedIn:"root"}),t})();const wme={provide:kf,deps:[[new Ki,new Vr,kf]],useFactory:function(t){return t||new kf}},Mme=new pt("MAT_PAGINATOR_DEFAULT_OPTIONS"),Dme=Ir(t2(class{}));let Sme=(()=>{class t extends Dme{constructor(e,i,s){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new ot,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),s){const{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:l}=s;null!=r&&(this._pageSize=r),null!=o&&(this._pageSizeOptions=o),null!=a&&(this._hidePageSize=a),null!=l&&(this._showFirstLastButtons=l)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Li(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Li(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Li(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Li(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Vt(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Vt(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(C(kf),C(Gt),C(void 0))},t.\u0275dir=Le({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Je]}),t})(),kV=(()=>{class t extends Sme{constructor(e,i,s){super(e,i,s),s&&null!=s.formFieldAppearance&&(this._formFieldAppearance=s.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(C(kf),C(Gt),C(Mme,8))},t.\u0275cmp=mt({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Je],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"div",1),ke(2,yme,5,3,"div",2),j(3,"div",3),j(4,"div",4),$e(5),z(),ke(6,vme,3,5,"button",5),j(7,"button",6),nt("click",function(){return i.previousPage()}),pn(),j(8,"svg",7),je(9,"path",8),z(),z(),Ti(),j(10,"button",9),nt("click",function(){return i.nextPage()}),pn(),j(11,"svg",7),je(12,"path",10),z(),z(),ke(13,bme,3,5,"button",11),z(),z(),z()),2&e&&(ae(2),ge("ngIf",!i.hidePageSize),ae(3),$t(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),ae(1),ge("ngIf",i.showFirstLastButtons),ae(1),ge("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),At("aria-label",i._intl.previousPageLabel),ae(3),ge("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),At("aria-label",i._intl.nextPageLabel),ae(3),ge("ngIf",i.showFirstLastButtons))},directives:[vn,Zh,ume,ef,tme,oi,f2],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),OV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[wme],imports:[[ei,Mw,nme,pme,Sn]]}),t})(),IV=(()=>{class t{constructor(e,i,s,r){this.cdr=e,this.translatePipe=i,this.translationService=s,this.breakpointObserver=r,this.onFilterChanges=new ot,this.isSimplifiedView=!1,this.titleFieldName="name"}set filter(e){e&&this.applyFilter(e)}ngOnInit(){this.onInitRoutine()}onInitRoutine(){this.translationService.localeChange.subscribe(()=>{var e;this.updateTitleFieldName(),this.paginator&&Rs.translatePaginator(this.paginator,this.translatePipe),(null===(e=this.dataSource)||void 0===e?void 0:e.filteredData)&&this.onFilterChanges.emit(this.dataSource.filteredData),this.cdr.markForCheck()}),this.breakpointObserver.observe([O__Handset]).subscribe(e=>{const i=this.isSimplifiedView;this.isSimplifiedView=e.matches,this.displayedColumns=e.matches?this.mobileColumns:this.defaultColumns,i!==this.isSimplifiedView&&this.cdr.detectChanges()})}afterViewInitRoutine(){this.paginator&&Rs.translatePaginator(this.paginator,this.translatePipe),this.dataSource&&(this.paginator&&(this.dataSource.paginator=this.paginator),this.sort&&(this.dataSource.sort=this.sort))}ngAfterViewInit(){this.afterViewInitRoutine()}applyFilter(e){this.dataSource&&(this.dataSource.filter=e.target.value.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.onFilterChanges.emit(this.dataSource.filteredData)),this.cdr.detectChanges()}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(Gn),C(qs),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["base-table"]],viewQuery:function(e,i){if(1&e&&(Yt(kV,5),Yt(Sf,5)),2&e){let s;st(s=rt())&&(i.paginator=s.first),st(s=rt())&&(i.sort=s.first)}},inputs:{filter:"filter"},outputs:{onFilterChanges:"onFilterChanges"},decls:2,vars:0,template:function(e,i){1&e&&(j(0,"p"),$e(1,"base-table works!"),z())},styles:[""]}),t})();function Eme(t,n){1&t&&(j(0,"th",19),$e(1," # "),z())}function Tme(t,n){if(1&t&&(j(0,"td",20),$e(1),z()),2&t){const e=n.index;ae(1),$t(" ",e+1," ")}}function Ame(t,n){1&t&&(j(0,"td",21),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"SCORE_MEAN")," "))}function kme(t,n){1&t&&(j(0,"th",22),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Thumbnail")," "))}function Ome(t,n){if(1&t&&(j(0,"td",20),je(1,"img",23),z()),2&t){const e=n.$implicit;ae(1),ge("src",e.thumbnail,_i)}}function Ime(t,n){1&t&&je(0,"td",21)}function Pme(t,n){1&t&&(j(0,"th",19),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Name")," "))}function Rme(t,n){if(1&t&&(j(0,"td",20),j(1,"div",24),j(2,"span",25),j(3,"a",26),ct(4,"languageContent"),$e(5),z(),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(3),yi("href",ml(4,2,e.url,"ru",e.malUrl),_i),ae(2),$t(" ",e[i.titleFieldName]," ")}}function Nme(t,n){1&t&&je(0,"td",21)}function Fme(t,n){if(1&t&&(j(0,"th",19),j(1,"span",27),$e(2),z(),z()),2&t){const e=Ie();ae(2),$t(" ",e.userNames[0]," ")}}const PV=function(t,n){return{status:t,score:n}};function Lme(t,n){if(1&t&&(j(0,"td",20),qn(1,28),z()),2&t){const e=n.$implicit;Ie();const i=Qt(36);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,PV,e.statusLeft,e.scoreLeft||"\u2014"))}}function Bme(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.scoreLeft," ")}}function Vme(t,n){if(1&t&&(j(0,"th",19),j(1,"span",27),$e(2),z(),z()),2&t){const e=Ie();ae(2),$t(" ",e.userNames[1]," ")}}function Hme(t,n){if(1&t&&(j(0,"td",20),qn(1,28),z()),2&t){const e=n.$implicit;Ie();const i=Qt(36);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,PV,e.statusRight,e.scoreRight||"\u2014"))}}function jme(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.scoreRight," ")}}function zme(t,n){1&t&&(j(0,"th",19),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Score Diff")," "))}function Gme(t,n){if(1&t&&(j(0,"td",20),$e(1),z()),2&t){const e=n.$implicit;let i;ae(1),$t(" ",null!==(i=e.diff)&&void 0!==i?i:"\u2014"," ")}}function $me(t,n){if(1&t&&(j(0,"td",21),$e(1),z()),2&t){const e=Ie();ae(1),$t(" ",e.calculatedMeans.diff," ")}}function Ume(t,n){1&t&&je(0,"tr",29)}const Wme=function(t){return{backgroundColor:t}};function Yme(t,n){1&t&&je(0,"tr",30),2&t&&ge("ngStyle",bs(1,Wme,n.$implicit.color))}function qme(t,n){1&t&&je(0,"tr",32)}function Xme(t,n){if(1&t&&(Rn(0),ke(1,qme,1,0,"tr",31),Nn()),2&t){const e=Ie();ae(1),ge("matFooterRowDef",e.displayedColumns)("matFooterRowDefSticky",!0)}}function Qme(t,n){1&t&&(j(0,"tr",33),j(1,"td",34),$e(2),ct(3,"translate"),z(),z()),2&t&&(ae(2),Mt(vt(3,1,"NOTHING FOUND")))}function Kme(t,n){1&t&&(j(0,"span"),pn(),j(1,"svg",35),je(2,"path",36),je(3,"path",37),z(),z())}function Jme(t,n){1&t&&(j(0,"span"),pn(),j(1,"svg",38),je(2,"path",39),je(3,"path",40),z(),z())}function Zme(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2).score;ae(1),$t("(",e,")")}}function e_e(t,n){if(1&t&&(j(0,"div",42),j(1,"span"),$e(2),ct(3,"translate"),z(),ke(4,Zme,2,1,"span",13),z()),2&t){const e=Ie(),i=e.text,s=e.score;ae(2),Mt(vt(3,2,i)),ae(2),ge("ngIf",s>0)}}function t_e(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie(2).score;ae(1),$t("(",e,")")}}function n_e(t,n){if(1&t&&(j(0,"div",42),je(1,"app-tool-tip-text",43),ct(2,"translate"),ke(3,t_e,2,1,"span",13),z()),2&t){const e=Ie(),i=e.template,s=e.text,r=e.score;ae(1),ge("templateMain",i)("textTooltip",vt(2,3,s)),ae(2),ge("ngIf",r>0)}}function i_e(t,n){if(1&t&&(ke(0,e_e,5,4,"div",41),ke(1,n_e,4,5,"div",41)),2&t){const e=Ie();ge("ngIf",!e.isSimplifiedView),ae(1),ge("ngIf",e.isSimplifiedView)}}const s_e=function(t,n){return{text:"CMP_DROP",score:t,template:n}};function r_e(t,n){if(1&t&&(j(0,"span"),qn(1,28),z()),2&t){const e=Ie().score;Ie();const i=Qt(34),s=Qt(32);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,s_e,e,s))}}const o_e=function(t,n){return{text:"CMP_PLANNED",score:t,template:n}};function a_e(t,n){if(1&t&&(j(0,"span"),qn(1,28),z()),2&t){const e=Ie().score;Ie();const i=Qt(34),s=Qt(30);ae(1),ge("ngTemplateOutlet",i)("ngTemplateOutletContext",Qr(2,o_e,e,s))}}function l_e(t,n){if(1&t&&(j(0,"span"),$e(1),z()),2&t){const e=Ie().score;ae(1),Mt(e)}}function c_e(t,n){1&t&&(Rn(0,44),ke(1,r_e,2,5,"span",45),ke(2,a_e,2,5,"span",45),ke(3,l_e,2,1,"span",46),Nn()),2&t&&(ge("ngSwitch",n.status),ae(1),ge("ngSwitchCase","dropped"),ae(1),ge("ngSwitchCase","planned"))}let d_e=(()=>{class t extends IV{constructor(e,i,s,r){super(s,i,e,r),this.type="anime",this.userKey="both",this.sortKey="diff",this.defaultColumns=["orderNumber","title","scoreLeft","scoreRight","diff"],this.mobileColumns=["orderNumber","title","scoreLeft","scoreRight","diff"],this.onFilterChanges=new ot,this.calculatedMeans={scoreLeft:"0.0",scoreRight:"0.0",diff:"0.0"},this.displayedColumns=[...this.defaultColumns],this.titleFieldName="title"}ngOnInit(){this.mapTableData(this.data),this.onInitRoutine()}getMappedDifferenceObj(e){const i={left:[],right:[],common:{left:[],right:[],obj:[]}},s=new Map,r=new Map;return e.left.userData[this.type].forEach(o=>{s.set(o[this.type].id,o)}),e.right.userData[this.type].forEach(o=>{r.set(o[this.type].id,o)}),e.right.userData[this.type].forEach(o=>{s.has(o[this.type].id)?(i.common.left.push(s.get(o[this.type].id)),i.common.right.push(o),i.common.obj.push(o[this.type])):i.right.push(o)}),s.forEach(o=>{r.has(o[this.type].id)||i.left.push(o)}),i}calculateDiff(e,i){return 0===e.score?"dropped"===e.status?i.score:null:0===i.score?"dropped"===i.status?e.score:null:Math.abs(e.score-i.score)}getRowColor(e){return null==e?null:e<2?"#22ff339e":e<3?"#84ff8d9e":e<6?"#ff55559e":e<8?"#fd24249e":"#ff00009e"}calculateMean(e){var i;let s=0,r=0;null===(i=this.dataSource)||void 0===i||i.data.forEach(o=>{Rs.isNumeric(o[e])&&(r++,s+=o[e])}),s/=r||1,this.calculatedMeans[e]=s.toPrecision(2)}mapTableData(e){var i,s;const r=[],o=this.getMappedDifferenceObj(e);if("both"===this.userKey){for(let a=0;aa.score>0))||void 0===s||s.forEach(a=>{const l={};l.title=a[this.type].name,l.titleRussian=a[this.type].russian,l.url=a[this.type].url,l.malUrl=a[this.type].url,l[`score${Rs.capitalizeFirstLetter(this.userKey)}`]=a.score,r.push(l)}),this.dataSource=new lM(r);this.updateTitleFieldName(),this.dataSource.sort=this.sort}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"titleRussian":"title"}}return t.\u0275fac=function(e){return new(e||t)(C(qs),C(Gn),C(Gt),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["compare-table"]],viewQuery:function(e,i){if(1&e&&Yt(Sf,5),2&e){let s;st(s=rt())&&(i.sort=s.first)}},inputs:{data:"data",type:"type",userKey:"userKey",sortKey:"sortKey",defaultColumns:"defaultColumns",mobileColumns:"mobileColumns",userNames:"userNames"},outputs:{onFilterChanges:"onFilterChanges"},features:[Je],decls:37,vars:5,consts:[["mat-table","","matSort","","matSortDirection","desc",1,"compare-table",3,"dataSource","matSortActive"],["matColumnDef","orderNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","thumbnail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","title"],["matColumnDef","scoreLeft"],["matColumnDef","scoreRight"],["matColumnDef","diff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngStyle",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["class","mat-row",4,"matNoDataRow"],["plannedIcon",""],["droppedIcon",""],["chips",""],["score",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell",""],[1,"anime-stats-table__image",3,"src"],[1,"anime-stats-table__name-row"],[1,"anime-stats-table__name-wrapper"],["target","_blank","rel","noopener noreferrer",1,"anime-stats-table__name",3,"href"],[1,"ellipsis"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-header-row",""],["mat-row","",3,"ngStyle"],["mat-footer-row","","class","compare-table-footer",4,"matFooterRowDef","matFooterRowDefSticky"],["mat-footer-row","",1,"compare-table-footer"],[1,"mat-row"],["colspan","6",1,"mat-cell","anime-stats-table__nothing-found"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-calendar2-plus"],["d","M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H2z"],["d","M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V4zM8 8a.5.5 0 0 1 .5.5V10H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V11H6a.5.5 0 0 1 0-1h1.5V8.5A.5.5 0 0 1 8 8z"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-trash"],["d","M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"],["d","M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"],["class","compare-table__template-chip",4,"ngIf"],[1,"compare-table__template-chip"],[3,"templateMain","textTooltip"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(e,i){1&e&&(j(0,"table",0),Rn(1,1),ke(2,Eme,2,0,"th",2),ke(3,Tme,2,1,"td",3),ke(4,Ame,3,3,"td",4),Nn(),Rn(5,5),ke(6,kme,3,3,"th",6),ke(7,Ome,2,1,"td",3),ke(8,Ime,1,0,"td",4),Nn(),Rn(9,7),ke(10,Pme,3,3,"th",2),ke(11,Rme,6,6,"td",3),ke(12,Nme,1,0,"td",4),Nn(),Rn(13,8),ke(14,Fme,3,1,"th",2),ke(15,Lme,2,5,"td",3),ke(16,Bme,2,1,"td",4),Nn(),Rn(17,9),ke(18,Vme,3,1,"th",2),ke(19,Hme,2,5,"td",3),ke(20,jme,2,1,"td",4),Nn(),Rn(21,10),ke(22,zme,3,3,"th",2),ke(23,Gme,2,1,"td",3),ke(24,$me,2,1,"td",4),Nn(),ke(25,Ume,1,0,"tr",11),ke(26,Yme,1,3,"tr",12),ke(27,Xme,2,2,"ng-container",13),ke(28,Qme,4,3,"tr",14),z(),ke(29,Kme,4,0,"ng-template",null,15,Mn),ke(31,Jme,4,0,"ng-template",null,16,Mn),ke(33,i_e,2,2,"ng-template",null,17,Mn),ke(35,c_e,4,3,"ng-template",null,18,Mn)),2&e&&(ge("dataSource",i.dataSource)("matSortActive",i.sortKey),ae(25),ge("matHeaderRowDef",i.displayedColumns),ae(1),ge("matRowDefColumns",i.displayedColumns),ae(1),ge("ngIf","both"===i.userKey))},directives:[nM,Sf,K_,Q_,X_,oV,iM,sM,vn,aM,J_,Z3,Z_,aV,os,rM,oM,xl,$h,lV,cV,IC,Da,cd,b0],pipes:[Gn,Wa],styles:[".compare-table[_ngcontent-%COMP%]{width:100%;background-color:#ffffff1f}.compare-table-footer[_ngcontent-%COMP%]{background-color:#cac4ff}.compare-table__template-chip[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{overflow:hidden}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{padding-right:15px}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:unset!important}.ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:180px}"],changeDetection:0}),t})();const u_e=function(t){return{nickname:t}};function h_e(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"mat-expansion-panel",6,7),nt("closed",function(){return Ot(e),Ie().updateAllValuesCheckbox()})("opened",function(){return Ot(e),Ie().updateAllValuesCheckbox()}),j(3,"mat-expansion-panel-header"),j(4,"div"),j(5,"mat-panel-title",8),j(6,"div"),$e(7),ct(8,"translate"),ct(9,"translate"),z(),z(),j(10,"mat-panel-description",9),j(11,"span"),$e(12),ct(13,"translate"),z(),z(),z(),z(),j(14,"compare-table",10),nt("onFilterChanges",function(s){const o=Ot(e).$implicit;return Ie().updateFilteredData(s,o)}),z(),z(),z()}if(2&t){const e=n.$implicit,i=Ie();ae(7),Mt("both"===e?vt(8,11,"IN_BOTH_LISTS"):Co(9,13,"ONLY_IN_LIST",bs(18,u_e,i.listsConfiguration[e].title))),ae(5),hl("",vt(13,16,"AMOUNT"),": ",null==i.listsConfiguration[e]||null==i.listsConfiguration[e].data?null:i.listsConfiguration[e].data.length,""),ae(2),ge("data",i.data)("type",i.type)("filter",i.filterValue)("sortKey",i.listsConfiguration[e].sortKey)("userKey",e)("userNames",i.listsConfiguration.userNames)("defaultColumns",i.listsConfiguration[e].fields.desktop)("mobileColumns",i.listsConfiguration[e].fields.mobile)}}let f_e=(()=>{class t extends f3{constructor(e,i){super(e),this.translatePipe=i,this.type="anime",this.singleTableFields=["orderNumber","title"],this.listsConfiguration={left:{data:[],fields:{mobile:[...this.singleTableFields,"scoreLeft"],desktop:[...this.singleTableFields,"scoreLeft"]},sortKey:"scoreLeft",title:"left"},right:{data:[],fields:{mobile:[...this.singleTableFields,"scoreRight"],desktop:[...this.singleTableFields,"scoreRight"]},sortKey:"scoreRight",title:"right"},both:{fields:{mobile:["orderNumber","title","scoreLeft","scoreRight","diff"],desktop:["orderNumber","title","scoreLeft","scoreRight","diff"]},sortKey:"diff",data:[]},userNames:["left","right"]},this.keysArr=["both","left","right"]}ngOnInit(){this.listsConfiguration.left.title=this.data.left.nickname,this.listsConfiguration.right.title=this.data.right.nickname,this.listsConfiguration.userNames[0]=this.data.left.nickname,this.listsConfiguration.userNames[1]=this.data.right.nickname}ngAfterViewInit(){this.keysArr.forEach((e,i)=>this.extensionPanelsMap.panels[e]=this.extensionPanels.get(i))}updateFilteredData(e,i){this.updateTableVisibility(0===e.length,i),this.listsConfiguration[i].data=e,this.cdr.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(C(Gt),C(Gn))},t.\u0275cmp=mt({type:t,selectors:[["compare-lists"]],inputs:{data:"data",type:"type"},features:[Je],decls:12,vars:11,consts:[[1,"d-flex","flex-column","mt-2"],[1,"compare-lists__filter"],["matInput","",3,"placeholder","keyup"],["input",""],["color","accent",1,"compare-lists__checkbox",3,"checked","change"],[4,"ngFor","ngForOf"],["expanded","true",1,"compare-lists-expansion",3,"closed","opened"],["extensionPanels",""],[1,"compare-lists-header"],[1,"compare-lists-description"],[3,"data","type","filter","sortKey","userKey","userNames","defaultColumns","mobileColumns","onFilterChanges"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"mat-form-field",1),j(2,"mat-label"),$e(3),ct(4,"translate"),z(),j(5,"input",2,3),nt("keyup",function(r){return i.applyFilter(r)}),ct(7,"translate"),z(),z(),j(8,"mat-checkbox",4),nt("change",function(r){return i.updateTableVisibility(r.checked)}),$e(9),ct(10,"translate"),z(),z(),ke(11,h_e,15,20,"div",5)),2&e&&(ae(3),Mt(vt(4,5,"Filter")),ae(2),yi("placeholder",vt(7,7,"EXAMPLE SEARCH")),ae(3),ge("checked",i.extensionPanelsMap.isAllExpanded),ae(1),Mt(vt(10,9,"SHOW_ALL_TABLES")),ae(2),ge("ngForOf",i.keysArr))},directives:[ef,Bd,u_,UC,oi,N_,F_,S3,D3,d_e],pipes:[Gn],styles:[".compare-lists-expansion{overflow:unset!important;background:transparent;box-shadow:unset!important;margin-bottom:20px!important}.compare-lists-header{font-weight:800;display:flex;flex:1 1 60%}.compare-lists-description{display:flex;flex:1}.compare-lists__filter{width:100%}@media (max-width: 900px){.compare-lists__filter{width:unset;margin:0 5px}}@media (max-width: 900px){.compare-lists__checkbox{margin:0 5px}}.mat-expansion-panel{overflow:unset!important}@media (max-width: 900px){.mat-expansion-panel-body{padding:0!important;overflow-x:auto!important}}\n"],encapsulation:2}),t})();const p_e=["errorConnection"],g_e=["progressConnection"],m_e=["establishedConnection"];function __e(t,n){1&t&&(Rn(0),je(1,"div",16),je(2,"img",17),ct(3,"translate"),Nn()),2&t&&(ae(2),yi("alt",vt(3,1,"LOADING")))}function y_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",23),nt("click",function(){Ot(e);const s=Ie().$implicit;return Ie(2).fetchCompareData(s)}),qn(2,24),j(3,"span",25),$e(4),z(),z(),Nn()}if(2&t){const e=Ie().$implicit,i=Ie(2);ae(2),ge("ngTemplateOutlet",i[e]),ae(2),Mt(i.errorMessage)}}function v_e(t,n){if(1&t&&(Rn(0),ke(1,y_e,5,2,"ng-container",2),Nn()),2&t){const e=n.$implicit,i=Ie(2);ae(1),ge("ngIf",i.connectionRefsConfig[e])}}const RV=function(){return{n:1}},NV=function(){return{n:2}};function b_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"mat-tab-group",18),j(2,"mat-tab",19),j(3,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"left")}),ct(4,"translate"),z(),z(),j(5,"mat-tab",21),j(6,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"right")}),ct(7,"translate"),z(),z(),z(),ke(8,v_e,2,1,"ng-container",22),Nn()}if(2&t){const e=Ie();ae(3),ge("label",Co(4,5,"USER_N",ki(11,RV)))("user",e.users.left),ae(3),ge("label",Co(7,8,"USER_N",ki(12,NV)))("user",e.users.right),ae(2),ge("ngForOf",e.objectKeys(e.connectionRefsConfig))}}function x_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",23),nt("click",function(){Ot(e);const s=Ie().$implicit;return Ie(2).fetchCompareData(s)}),qn(2,24),j(3,"span",25),$e(4),z(),z(),Nn()}if(2&t){const e=Ie().$implicit,i=Ie(2);ae(2),ge("ngTemplateOutlet",i[e]),ae(2),Mt(i.errorMessage)}}function w_e(t,n){if(1&t&&(Rn(0),ke(1,x_e,5,2,"ng-container",2),Nn()),2&t){const e=n.$implicit,i=Ie(2);ae(1),ge("ngIf",i.connectionRefsConfig[e])}}function C_e(t,n){if(1&t){const e=sn();Rn(0),j(1,"div",26),j(2,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"left")}),ct(3,"translate"),z(),ke(4,w_e,2,1,"ng-container",22),j(5,"cmp-user-card",20),nt("isLoading",function(s){return Ot(e),Ie().isLoading=s})("userFetchEvent",function(s){return Ot(e),Ie().userFetchProcess(s,"right")}),ct(6,"translate"),z(),z(),Nn()}if(2&t){const e=Ie();ae(2),ge("label",Co(3,5,"USER_N",ki(11,RV)))("user",null==e.users?null:e.users.left),ae(2),ge("ngForOf",e.objectKeys(e.connectionRefsConfig)),ae(1),ge("label",Co(6,8,"USER_N",ki(12,NV)))("user",null==e.users?null:e.users.right)}}function M_e(t,n){1&t&&je(0,"compare-lists",34),2&t&&ge("data",Ie(2).someData)}function D_e(t,n){1&t&&je(0,"compare-lists",36),2&t&&ge("data",Ie(3).someData)("type","manga")}function S_e(t,n){1&t&&ke(0,D_e,1,2,"compare-lists",35),2&t&&ge("ngIf",!0===Ie(2).tabStatus[2])}const FV=function(){return["active"]};function E_e(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",27,28),nt("activeIdChange",function(s){return Ot(e),Ie().active=s})("navChange",function(s){return Ot(e),Ie().tabStatus[s.nextId]=!0}),j(3,"li",29),j(4,"a",30),$e(5),ct(6,"translate"),z(),ke(7,M_e,1,1,"ng-template",31),z(),j(8,"li",32),j(9,"a",30),$e(10),ct(11,"translate"),z(),ke(12,S_e,1,1,"ng-template",31),z(),z(),je(13,"div",33),z()}if(2&t){const e=Qt(2),i=Ie();ae(1),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLinkActive",ki(14,FV))("ngbNavItem",1)("destroyOnHide",!1),ae(2),Mt(vt(6,10,"ANIME")),ae(3),ge("routerLinkActive",ki(15,FV))("ngbNavItem",2),ae(2),Mt(vt(11,12,"MANGA")),ae(3),ge("ngbNavOutlet",e)}}function T_e(t,n){1&t&&(j(0,"div",37),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}function A_e(t,n){1&t&&(j(0,"div",41),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}function k_e(t,n){1&t&&(j(0,"div",42),pn(),j(1,"svg",38),je(2,"rect",39),z(),j(3,"svg",40),je(4,"rect",39),z(),z())}const O_e=function(){return[!1,!0]},I_e=function(){return[!0,!1]},P_e=[{path:"anime",component:tfe},{path:"games",component:ofe},{path:"misc",component:rfe},{path:"anime/compare",component:(()=>{class t{constructor(e,i,s,r,o){this.router=e,this.activatedRoute=i,this.animeService=s,this.cdr=r,this.translatePipe=o,this.objectKeys=Object.keys,this.connectionRefsConfig={errorConnection:!1,progressConnection:!0,establishedConnection:!1},this.users={},this.ids=[],this.isLoading=!1,this.isProcessed=!1,this.dataEmitter=new ot,this.tabStatus={},this.active=1}ngOnInit(){this.activatedRoute.queryParams.pipe(Bn(1)).subscribe(e=>{var i;this.ids=null===(i=null==e?void 0:e.ids)||void 0===i?void 0:i.split(",",2),this.ids&&(this.isLoading=!0,Et(this.ids).pipe(as(s=>So(s.map(o=>this.animeService.getUserData(o)))),$i(()=>Et([]))).subscribe(s=>{this.users.left=s[0],this.users.right=s[1],this.isLoading=!1}))})}ngAfterViewInit(){this.cdr.detectChanges()}userFetchProcess(e,i){var s,r;this.users[i]=e;const o=[null===(s=this.users.left)||void 0===s?void 0:s.id,null===(r=this.users.right)||void 0===r?void 0:r.id].filter(Boolean),a=o.length>0?{ids:o.join(",")}:{ids:null};this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:a,queryParamsHandling:"merge"}),(null==e?void 0:e.id)&&this.changeConnectionIcon("progressConnection")}changeConnectionIcon(e,i=null){this.isProcessed="establishedConnection"===e;for(let s of this.objectKeys(this.connectionRefsConfig))this.connectionRefsConfig[s]=s===e;this.errorMessage=i}fetchCompareData(e){if("establishedConnection"!==e)if(this.users.left&&this.users.right&&this.users.left.id!==this.users.right.id){this.changeConnectionIcon("progressConnection"),this.errorMessage=null;const i=[];Object.keys(this.users).forEach(s=>{const r=Ys.calculateTotalEntries(this.users[s].stats.full_statuses.anime),o=Ys.calculateTotalEntries(this.users[s].stats.full_statuses.manga);i.push(So([this.animeService.getDataTypeListGraphQLParallel(Oi.ANIME,r,{id:this.users[s].id}).pipe($i(()=>this.animeService.getAllAnimeList(this.users[s].id))),this.animeService.getDataTypeListGraphQLParallel(Oi.MANGA,o,{id:this.users[s].id}).pipe($i(()=>this.animeService.getAllMangaList(this.users[s].id)))]).pipe(g(a=>({type:s,data:a}))))}),this.isLoading=!0,i[0].pipe(Xo(s=>uf(Et(s),i[1])),$i(s=>{throw this.changeConnectionIcon("errorConnection",this.translatePipe.transform("DATA_LOADING_ERROR")),this.isLoading=!1,s})).subscribe(s=>{s?(s.forEach(r=>{this.users[r.type].userData={},this.users[r.type].userData[Oi.ANIME]=r.data[0],this.users[r.type].userData[Oi.MANGA]=r.data[1]}),this.someData=this.users,this.changeConnectionIcon("establishedConnection"),this.cdr.detectChanges(),this.dataEmitter.emit(this.users),this.isLoading=!1):this.changeConnectionIcon("errorConnection",this.translatePipe.transform("DATA_LOADING_ERROR"))})}else this.changeConnectionIcon("errorConnection",this.translatePipe.transform("USER_LOADING_ERROR"))}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(Ta),C(jh),C(Gt),C(Gn))},t.\u0275cmp=mt({type:t,selectors:[["app-compare"]],viewQuery:function(e,i){if(1&e&&(Yt(p_e,5),Yt(g_e,5),Yt(m_e,5)),2&e){let s;st(s=rt())&&(i.errorConnection=s.first),st(s=rt())&&(i.progressConnection=s.first),st(s=rt())&&(i.establishedConnection=s.first)}},decls:29,vars:18,consts:[[1,"bg"],[1,"compare__container"],[4,"ngIf"],[1,"compare__hint"],[1,"compare__hint-expansion"],[1,"compare__hint-text"],[1,"mr-2"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-question-circle"],["d","M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"],["d","M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"],[1,"compare__hint-description"],[3,"innerHTML"],[4,"appResponsiveTemplate"],["errorConnection",""],["progressConnection",""],["establishedConnection",""],[1,"compare__porco-background"],["src","/assets/porco-rosso-loading.gif","width","250",1,"compare__porco",3,"alt"],["mat-stretch-tabs","false","mat-align-tabs","start","animationDuration","0ms",1,"ml-2","mr-2"],["label","\u041f\u0435\u0440\u0432\u044b\u0439"],[1,"d-flex","flex-column","mt-2",3,"label","user","isLoading","userFetchEvent"],["label","\u0412\u0442\u043e\u0440\u043e\u0439"],[4,"ngFor","ngForOf"],[1,"compare__button",3,"click"],[3,"ngTemplateOutlet"],[1,"compare__error"],[1,"compare__user-inputs"],["ngbNav","",1,"compare__nav",3,"activeId","destroyOnHide","activeIdChange","navChange"],["nav","ngbNav"],[1,"compare__nav-item",3,"routerLinkActive","ngbNavItem","destroyOnHide"],["ngbNavLink",""],["ngbNavContent",""],[1,"compare__nav-item",3,"routerLinkActive","ngbNavItem"],[1,"mt-2",3,"ngbNavOutlet"],[3,"data"],[3,"data","type",4,"ngIf"],[3,"data","type"],[1,"compare__connection-error"],["viewBox","0 0 32 32",1,"compare__father-icon","compare__icon"],["width","64","height","64"],["viewBox","32 0 32 32",1,"compare__mother-icon","compare__icon"],[1,"compare__connection-connecting"],[1,"compare__connection-connected"]],template:function(e,i){1&e&&(je(0,"div",0),j(1,"div",1),ke(2,__e,4,3,"ng-container",2),j(3,"div",3),j(4,"mat-expansion-panel",4),j(5,"mat-expansion-panel-header"),j(6,"div",5),j(7,"span",6),$e(8),ct(9,"translate"),z(),pn(),j(10,"svg",7),je(11,"path",8),je(12,"path",9),z(),z(),z(),Ti(),j(13,"div",10),je(14,"span",11),ct(15,"translate"),je(16,"span",11),ct(17,"translate"),je(18,"span",11),ct(19,"translate"),z(),z(),z(),ke(20,b_e,9,13,"ng-container",12),ke(21,C_e,7,13,"ng-container",12),ke(22,E_e,14,16,"div",2),z(),ke(23,T_e,5,0,"ng-template",null,13,Mn),ke(25,A_e,5,0,"ng-template",null,14,Mn),ke(27,k_e,5,0,"ng-template",null,15,Mn)),2&e&&(ae(2),ge("ngIf",i.isLoading),ae(6),Mt(vt(9,8,"COMPARE_INSTRUCTIONS")),ae(6),ge("innerHTML",vt(15,10,"COMPARE_HINT_FILL1"),Ac),ae(2),ge("innerHTML",vt(17,12,"COMPARE_HINT_FILL2"),Ac),ae(2),ge("innerHTML",vt(19,14,"COMPARE_HINT_FILL3"),Ac),ae(2),ge("appResponsiveTemplate",ki(16,O_e)),ae(1),ge("appResponsiveTemplate",ki(17,I_e)),ae(1),ge("ngIf",i.isProcessed))},directives:[vn,N_,F_,T3,ype,j3,Ipe,oi,os,Yd,t1,Wd,bf,M_,D_,f_e],pipes:[Gn],styles:['a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}.bg[_ngcontent-%COMP%]{background:url(anime_bg_2.f2437f218610d2057371.webp);background-position:center;background-repeat:no-repeat;background-size:cover;position:fixed;height:100%;width:100%;top:0}.compare__nav[_ngcontent-%COMP%]{display:flex;justify-content:center}.compare__nav-item[_ngcontent-%COMP%]{font-weight:500}.compare__nav-item[_ngcontent-%COMP%]:hover, .compare__nav-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#7ff;text-shadow:-1px -1px 0 #00000085,1px -1px 0 #00000085,-1px 1px 0 #00000085,1px 1px 0 #00000085}.compare__hint[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:center;flex-direction:column;align-items:center;font-weight:800}.compare__hint-expansion[_ngcontent-%COMP%]{background-color:transparent}.compare__hint-description[_ngcontent-%COMP%]{display:flex;flex-direction:column}.compare__hint-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.compare__user-inputs[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;padding:30px;align-items:flex-start}.compare__container[_ngcontent-%COMP%]{clear:both;margin:0 auto;padding:15px 10px 0;position:relative;z-index:1;background:#a4bbd5;width:90%;min-height:100%;overflow:clip}@media (max-width: 900px){.compare__container[_ngcontent-%COMP%]{width:100%;padding:0}}.compare__error[_ngcontent-%COMP%]{color:red;font-weight:800}.compare__button[_ngcontent-%COMP%]{margin-top:auto;display:flex;margin-bottom:auto;flex-direction:column;align-items:center;justify-content:center;min-height:50px}.compare__porco[_ngcontent-%COMP%]{position:absolute;z-index:101;top:35%;left:35%;overflow:hidden;width:auto;height:35%;margin:-100px 0 0 -60px;animation:porco-flying 2.5s infinite ease-out,porco-soaring 2.5s infinite ease-out}@media (max-width: 900px){.compare__porco[_ngcontent-%COMP%]{left:25%;top:35%;height:35%}}.compare__porco-background[_ngcontent-%COMP%]{height:100%;width:100%;background:linear-gradient(66deg,#baccff,#5884ff);position:absolute;top:0;left:0;z-index:100}.compare__icon[_ngcontent-%COMP%]{width:32px;height:32px;fill:#4e1e9b;position:relative;left:0px}.compare__mother-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{clip-path:path("m 41,8 12,7 0,2 6,0 c 0,1.239583 0,2.760417 0,4 l -6,0 0,2 -12,7 -4,0 0,-3 2,0 0,-4 -2,0 c 0,-2.666667 0,-5.333333 0,-8 l 2,0 0,-4 -2,0 0,-3 z")}.compare__father-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{clip-path:path("m 23,8 -12,7 0,2 -6,0 c 0,1.239583 0,2.760417 0,4 l 6,0 0,2 12,7 4,0 0,-3 5,0 0,-4 -5,0 c 0,-2.666667 0,-5.333333 0,-8 l 5,0 0,-4 -5,0 0,-3 z")}.compare__connection-connecting[_ngcontent-%COMP%]:hover{cursor:pointer}.compare__connection-connecting[_ngcontent-%COMP%]:hover > .compare__mother-icon[_ngcontent-%COMP%]{animation:mother-connecting 1s;-moz-animation:mother-connecting 1s infinite;-webkit-animation:mother-connecting 1s infinite;fill:#a670ff}.compare__connection-connecting[_ngcontent-%COMP%]:hover > .compare__father-icon[_ngcontent-%COMP%]{animation:father-connecting 1s;-moz-animation:father-connecting 1s infinite;-webkit-animation:father-connecting 1s infinite;fill:#a670ff}.compare__connection-connected[_ngcontent-%COMP%] .compare__icon[_ngcontent-%COMP%]{fill:green}.compare__connection-connected.compare__mother-icon[_ngcontent-%COMP%]{left:-6px}.compare__connection-connected.compare__father-icon[_ngcontent-%COMP%]{left:6px}.compare__connection-error[_ngcontent-%COMP%] .compare__icon[_ngcontent-%COMP%]{fill:red}@keyframes porco-flying{50%{transform:translate(5px)}}@keyframes porco-soaring{50%{transform:translateY(60px)}}@keyframes mother-connecting{0%{left:0px}50%{left:-6px}to{left:0px}}@keyframes father-connecting{0%{left:0px}50%{left:6px}to{left:0px}}']}),t})()},{path:"",component:sfe}];let R_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[qI.forRoot(P_e,{paramsInheritanceStrategy:"always"})],qI]}),t})();function F_e(t){const n=this,{params:e,slidesEl:i}=n;e.loop&&n.loopDestroy();const s=r=>{if("string"==typeof r){const o=document.createElement("div");o.innerHTML=r,i.append(o.children[0]),o.innerHTML=""}else i.append(r)};if("object"==typeof t&&"length"in t)for(let r=0;r{if("string"==typeof a){const l=document.createElement("div");l.innerHTML=a,s.prepend(l.children[0]),l.innerHTML=""}else s.prepend(a)};if("object"==typeof t&&"length"in t){for(let a=0;a=a)return void e.appendSlide(n);let l=o>t?o+1:o;const c=[];for(let d=a-1;d>=t;d-=1){const u=e.slides[d];u.remove(),c.unshift(u)}if("object"==typeof n&&"length"in n){for(let d=0;dt?o+n.length:o}else r.append(n);for(let d=0;d=qe?(Pe-=qe,$||(ht+=t.slidesGrid[0])):L&&it{zt.style[lt]=ht-Math.abs(t.cssOverflowAdjustment())+"px"}),t.updateProgress(),void i("virtualUpdate");if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:ht,from:Pe,to:Ye,slides:function(){const En=[];for(let Vn=Pe;Vn<=Ye;Vn+=1)En.push(Be[Vn]);return En}()}),void(t.params.virtual.renderExternalUpdate?Ve():i("virtualUpdate"));const Qe=[],Ke=[],bt=zt=>{let En=zt;return zt<0?En=Be.length+zt:En>=Be.length&&(En-=Be.length),En};if(_)t.slidesEl.querySelectorAll(`.${t.params.slideClass}, swiper-slide`).forEach(zt=>{zt.remove()});else for(let zt=Te;zt<=Fe;zt+=1)if(ztYe){const En=bt(zt);t.slidesEl.querySelectorAll(`.${t.params.slideClass}[data-swiper-slide-index="${En}"], swiper-slide[data-swiper-slide-index="${En}"]`).forEach(Vn=>{Vn.remove()})}const ui=L?2*Be.length:Be.length;for(let zt=L?-Be.length:0;zt=Pe&&zt<=Ye){const En=bt(zt);void 0===Fe||_?Ke.push(En):(zt>Fe&&Ke.push(En),zt{t.slidesEl.append(a(Be[zt],zt))}),L)for(let zt=Qe.length-1;zt>=0;zt-=1){const En=Qe[zt];t.slidesEl.prepend(a(Be[En],En))}else Qe.sort((zt,En)=>En-zt),Qe.forEach(zt=>{t.slidesEl.prepend(a(Be[zt],zt))});Ls(t.slidesEl,".swiper-slide, swiper-slide").forEach(zt=>{zt.style[lt]=ht-Math.abs(t.cssOverflowAdjustment())+"px"}),Ve()}e("beforeInit",()=>{if(!t.params.virtual.enabled)return;let _;if(void 0===t.passedParams.virtual.slides){const T=[...t.slidesEl.children].filter(k=>k.matches(`.${t.params.slideClass}, swiper-slide`));T&&T.length&&(t.virtual.slides=[...T],_=!0,T.forEach((k,$)=>{k.setAttribute("data-swiper-slide-index",$),t.virtual.cache[$]=k,k.remove()}))}_||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,t.params.initialSlide||l()}),e("setTranslate",()=>{!t.params.virtual.enabled||(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{l()},100)):l())}),e("init update resize",()=>{!t.params.virtual.enabled||t.params.cssMode&&wf(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:function(_){if("object"==typeof _&&"length"in _)for(let T=0;T<_.length;T+=1)_[T]&&t.virtual.slides.push(_[T]);else t.virtual.slides.push(_);l(!0)},prependSlide:function(_){const T=t.activeIndex;let k=T+1,$=1;if(Array.isArray(_)){for(let L=0;L<_.length;L+=1)_[L]&&t.virtual.slides.unshift(_[L]);k=T+_.length,$=_.length}else t.virtual.slides.unshift(_);if(t.params.virtual.cache){const L=t.virtual.cache,J={};Object.keys(L).forEach(ue=>{const Te=L[ue],Fe=Te.getAttribute("data-swiper-slide-index");Fe&&Te.setAttribute("data-swiper-slide-index",parseInt(Fe,10)+$),J[parseInt(ue,10)+$]=Te}),t.virtual.cache=J}l(!0),t.slideTo(k,0)},removeSlide:function(_){if(null==_)return;let T=t.activeIndex;if(Array.isArray(_))for(let k=_.length-1;k>=0;k-=1)t.virtual.slides.splice(_[k],1),t.params.virtual.cache&&delete t.virtual.cache[_[k]],_[k]0&&0===tc(t.el,`.${t.params.slideActiveClass}`).length)return;const Fe=t.el,Be=Fe.clientWidth,Ue=Fe.clientHeight,He=r.innerWidth,it=r.innerHeight,lt=T_(Fe);d&&(lt.left-=Fe.scrollLeft);const Xe=[[lt.left,lt.top],[lt.left+Be,lt.top],[lt.left,lt.top+Ue],[lt.left+Be,lt.top+Ue]];for(let qe=0;qe=0&&Pe[0]<=He&&Pe[1]>=0&&Pe[1]<=it){if(0===Pe[0]&&0===Pe[1])continue;Te=!0}}if(!Te)return}t.isHorizontal()?((T||k||$||L)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),((k||L)&&!d||(T||$)&&d)&&t.slideNext(),((T||$)&&!d||(k||L)&&d)&&t.slidePrev()):((T||k||J||ue)&&(u.preventDefault?u.preventDefault():u.returnValue=!1),(k||ue)&&t.slideNext(),(T||J)&&t.slidePrev()),i("keyPress",f)}}function a(){t.keyboard.enabled||(s.addEventListener("keydown",o),t.keyboard.enabled=!0)}function l(){!t.keyboard.enabled||(s.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),e("init",()=>{t.params.keyboard.enabled&&a()}),e("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:a,disable:l})},MC,SC,EC,function({swiper:t,extendParams:n,on:e,emit:i}){const s=Fs();let l,c,d,u,r=!1,o=null,a=null;function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:Xe,rtlTranslate:qe}=t,{dragEl:Pe,el:Ye}=Xe,ht=t.params.scrollbar;let Qe=c,Ke=(d-c)*(t.params.loop?t.progressLoop:t.progress);qe?(Ke=-Ke,Ke>0?(Qe=c-Ke,Ke=0):-Ke+c>d&&(Qe=d+Ke)):Ke<0?(Qe=c+Ke,Ke=0):Ke+c>d&&(Qe=d-Ke),t.isHorizontal()?(Pe.style.transform=`translate3d(${Ke}px, 0, 0)`,Pe.style.width=`${Qe}px`):(Pe.style.transform=`translate3d(0px, ${Ke}px, 0)`,Pe.style.height=`${Qe}px`),ht.hide&&(clearTimeout(o),Ye.style.opacity=1,o=setTimeout(()=>{Ye.style.opacity=0,Ye.style.transitionDuration="400ms"},1e3))}function T(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:Xe}=t,{dragEl:qe,el:Pe}=Xe;qe.style.width="",qe.style.height="",d=t.isHorizontal()?Pe.offsetWidth:Pe.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?d*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?qe.style.width=`${c}px`:qe.style.height=`${c}px`,Pe.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(Pe.style.opacity=0),t.params.watchOverflow&&t.enabled&&Xe.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function k(Xe){return t.isHorizontal()?Xe.clientX:Xe.clientY}function $(Xe){const{scrollbar:qe,rtlTranslate:Pe}=t,{el:Ye}=qe;let ht;ht=(k(Xe)-T_(Ye)[t.isHorizontal()?"left":"top"]-(null!==l?l:c/2))/(d-c),ht=Math.max(Math.min(ht,1),0),Pe&&(ht=1-ht);const Ve=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*ht;t.updateProgress(Ve),t.setTranslate(Ve),t.updateActiveIndex(),t.updateSlidesClasses()}function L(Xe){const qe=t.params.scrollbar,{scrollbar:Pe,wrapperEl:Ye}=t,{el:ht,dragEl:Ve}=Pe;r=!0,l=Xe.target===Ve?k(Xe)-Xe.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,Xe.preventDefault(),Xe.stopPropagation(),Ye.style.transitionDuration="100ms",Ve.style.transitionDuration="100ms",$(Xe),clearTimeout(a),ht.style.transitionDuration="0ms",qe.hide&&(ht.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",Xe)}function J(Xe){const{scrollbar:qe,wrapperEl:Pe}=t,{el:Ye,dragEl:ht}=qe;!r||(Xe.preventDefault?Xe.preventDefault():Xe.returnValue=!1,$(Xe),Pe.style.transitionDuration="0ms",Ye.style.transitionDuration="0ms",ht.style.transitionDuration="0ms",i("scrollbarDragMove",Xe))}function ue(Xe){const qe=t.params.scrollbar,{scrollbar:Pe,wrapperEl:Ye}=t,{el:ht}=Pe;!r||(r=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",Ye.style.transitionDuration=""),qe.hide&&(clearTimeout(a),a=Zl(()=>{ht.style.opacity=0,ht.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",Xe),qe.snapOnRelease&&t.slideToClosest())}function Te(Xe){const{scrollbar:qe,params:Pe}=t,Ye=qe.el;if(!Ye)return;const Ve=!!Pe.passiveListeners&&{passive:!1,capture:!1},Qe=!!Pe.passiveListeners&&{passive:!0,capture:!1};if(!Ye)return;const Ke="on"===Xe?"addEventListener":"removeEventListener";Ye[Ke]("pointerdown",L,Ve),s[Ke]("pointermove",J,Ve),s[Ke]("pointerup",ue,Qe)}function Ue(){const{scrollbar:Xe,el:qe}=t;t.params.scrollbar=DC(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const Pe=t.params.scrollbar;if(!Pe.el)return;let Ye,ht;"string"==typeof Pe.el&&t.isElement&&(Ye=t.el.shadowRoot.querySelector(Pe.el)),Ye||"string"!=typeof Pe.el?Ye||(Ye=Pe.el):Ye=s.querySelectorAll(Pe.el),t.params.uniqueNavElements&&"string"==typeof Pe.el&&Ye.length>1&&1===qe.querySelectorAll(Pe.el).length&&(Ye=qe.querySelector(Pe.el)),Ye.length>0&&(Ye=Ye[0]),Ye.classList.add(t.isHorizontal()?Pe.horizontalClass:Pe.verticalClass),Ye&&(ht=Ye.querySelector(`.${t.params.scrollbar.dragClass}`),ht||(ht=lo("div",t.params.scrollbar.dragClass),Ye.append(ht))),Object.assign(Xe,{el:Ye,dragEl:ht}),Pe.draggable&&(!t.params.scrollbar.el||!t.scrollbar.el||Te("on")),Ye&&Ye.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}function He(){const Xe=t.params.scrollbar,qe=t.scrollbar.el;qe&&qe.classList.remove(t.isHorizontal()?Xe.horizontalClass:Xe.verticalClass),!t.params.scrollbar.el||!t.scrollbar.el||Te("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},e("init",()=>{!1===t.params.scrollbar.enabled?lt():(Ue(),T(),f())}),e("update resize observerUpdate lock unlock",()=>{T()}),e("setTranslate",()=>{f()}),e("setTransition",(Xe,qe)=>{!function(Xe){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${Xe}ms`)}(qe)}),e("enable disable",()=>{const{el:Xe}=t.scrollbar;Xe&&Xe.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}),e("destroy",()=>{He()});const lt=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass),He()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.el&&t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass),Ue(),T(),f()},disable:lt,updateSize:T,setTranslate:f,init:Ue,destroy:He})},function({swiper:t,extendParams:n,on:e}){n({parallax:{enabled:!1}});const i=(o,a)=>{const{rtl:l}=t,c=l?-1:1,d=o.getAttribute("data-swiper-parallax")||"0";let u=o.getAttribute("data-swiper-parallax-x"),f=o.getAttribute("data-swiper-parallax-y");const _=o.getAttribute("data-swiper-parallax-scale"),T=o.getAttribute("data-swiper-parallax-opacity"),k=o.getAttribute("data-swiper-parallax-rotate");if(u||f?(u=u||"0",f=f||"0"):t.isHorizontal()?(u=d,f="0"):(f=d,u="0"),u=u.indexOf("%")>=0?parseInt(u,10)*a*c+"%":u*a*c+"px",f=f.indexOf("%")>=0?parseInt(f,10)*a+"%":f*a+"px",null!=T){const L=T-(T-1)*(1-Math.abs(a));o.style.opacity=L}let $=`translate3d(${u}, ${f}, 0px)`;null!=_&&($+=` scale(${_-(_-1)*(1-Math.abs(a))})`),k&&null!=k&&($+=` rotate(${k*a*-1}deg)`),o.style.transform=$},s=()=>{const{el:o,slides:a,progress:l,snapGrid:c}=t;Ls(o,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(d=>{i(d,l)}),a.forEach((d,u)=>{let f=d.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(f+=Math.ceil(u/2)-l*(c.length-1)),f=Math.min(Math.max(f,-1),1),d.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach(_=>{i(_,f)})})};e("beforeInit",()=>{!t.params.parallax.enabled||(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),e("init",()=>{!t.params.parallax.enabled||s()}),e("setTranslate",()=>{!t.params.parallax.enabled||s()}),e("setTransition",(o,a)=>{!t.params.parallax.enabled||((o=t.params.speed)=>{const{el:a}=t;a.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach(l=>{let c=parseInt(l.getAttribute("data-swiper-parallax-duration"),10)||o;0===o&&(c=0),l.style.transitionDuration=`${c}ms`})})(a)})},function({swiper:t,extendParams:n,on:e,emit:i}){const s=Ri();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let a,l,r=1,o=!1;const c=[],d={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},u={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let _=1;function T(){return c.length<2?1:Math.sqrt((c[1].pageX-c[0].pageX)**2+(c[1].pageY-c[0].pageY)**2)}function L(Ve){return!!(Ve.target.matches(t.isElement?"swiper-slide":`.${t.params.slideClass}`)||t.slides.filter(Ke=>Ke.contains(Ve.target)).length>0)}function ue(Ve){if("mouse"===Ve.pointerType&&c.splice(0,c.length),!L(Ve))return;const Qe=t.params.zoom;if(a=!1,l=!1,c.push(Ve),!(c.length<2)){if(a=!0,d.scaleStart=T(),!d.slideEl){d.slideEl=Ve.target.closest(`.${t.params.slideClass}, swiper-slide`),d.slideEl||(d.slideEl=t.slides[t.activeIndex]);let Ke=d.slideEl.querySelector(`.${Qe.containerClass}`);if(Ke&&(Ke=Ke.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ke,d.imageWrapEl=Ke?tc(d.imageEl,`.${Qe.containerClass}`)[0]:void 0,!d.imageWrapEl)return void(d.imageEl=void 0);d.maxRatio=d.imageWrapEl.getAttribute("data-swiper-zoom")||Qe.maxRatio}if(d.imageEl){const[Ke,bt]=function(){if(c.length<2)return{x:null,y:null};const Ve=d.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-Ve.x)/r,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-Ve.y)/r]}();d.originX=Ke,d.originY=bt,d.imageEl.style.transitionDuration="0ms"}o=!0}}function Te(Ve){if(!L(Ve))return;const Qe=t.params.zoom,Ke=t.zoom,bt=c.findIndex(un=>un.pointerId===Ve.pointerId);bt>=0&&(c[bt]=Ve),!(c.length<2)&&(l=!0,d.scaleMove=T(),d.imageEl&&(Ke.scale=d.scaleMove/d.scaleStart*r,Ke.scale>d.maxRatio&&(Ke.scale=d.maxRatio-1+(Ke.scale-d.maxRatio+1)**.5),Ke.scaleun.pointerId===Ve.pointerId);bt>=0&&c.splice(bt,1),a&&l&&(a=!1,l=!1,d.imageEl&&(Ke.scale=Math.max(Math.min(Ke.scale,d.maxRatio),Qe.minRatio),d.imageEl.style.transitionDuration=`${t.params.speed}ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${Ke.scale})`,r=Ke.scale,o=!1,Ke.scale>1&&d.slideEl?d.slideEl.classList.add(`${Qe.zoomedSlideClass}`):Ke.scale<=1&&d.slideEl&&d.slideEl.classList.remove(`${Qe.zoomedSlideClass}`),1===Ke.scale&&(d.originX=0,d.originY=0,d.slideEl=void 0)))}function Ue(Ve){if(!L(Ve)||!function(Ve){const Qe=`.${t.params.zoom.containerClass}`;return!!(Ve.target.matches(Qe)||[...t.el.querySelectorAll(Qe)].filter(Ke=>Ke.contains(Ve.target)).length>0)}(Ve))return;const Qe=t.zoom;if(!d.imageEl||!u.isTouched||!d.slideEl)return;u.isMoved||(u.width=d.imageEl.offsetWidth,u.height=d.imageEl.offsetHeight,u.startX=fC(d.imageWrapEl,"x")||0,u.startY=fC(d.imageWrapEl,"y")||0,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight,d.imageWrapEl.style.transitionDuration="0ms");const Ke=u.width*Qe.scale,bt=u.height*Qe.scale;if(Ke0?c[0].pageX:Ve.pageX,u.touchesCurrent.y=c.length>0?c[0].pageY:Ve.pageY,Math.max(Math.abs(u.touchesCurrent.x-u.touchesStart.x),Math.abs(u.touchesCurrent.y-u.touchesStart.y))>5&&(t.allowClick=!1),!u.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(u.minX)===Math.floor(u.startX)&&u.touchesCurrent.xu.touchesStart.x))return void(u.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(u.minY)===Math.floor(u.startY)&&u.touchesCurrent.yu.touchesStart.y))return void(u.isTouched=!1)}Ve.cancelable&&Ve.preventDefault(),Ve.stopPropagation(),u.isMoved=!0;const ui=(Qe.scale-r)/(d.maxRatio-t.params.zoom.minRatio),{originX:zt,originY:En}=d;u.currentX=u.touchesCurrent.x-u.touchesStart.x+u.startX+ui*(u.width-2*zt),u.currentY=u.touchesCurrent.y-u.touchesStart.y+u.startY+ui*(u.height-2*En),u.currentXu.maxX&&(u.currentX=u.maxX-1+(u.currentX-u.maxX+1)**.8),u.currentYu.maxY&&(u.currentY=u.maxY-1+(u.currentY-u.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=u.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=u.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(u.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(u.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(u.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(u.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=u.touchesCurrent.x,f.prevPositionY=u.touchesCurrent.y,f.prevTime=Date.now(),d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}function it(){const Ve=t.zoom;d.slideEl&&t.activeIndex!==t.slides.indexOf(d.slideEl)&&(d.imageEl&&(d.imageEl.style.transform="translate3d(0,0,0) scale(1)"),d.imageWrapEl&&(d.imageWrapEl.style.transform="translate3d(0,0,0)"),d.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),Ve.scale=1,r=1,d.slideEl=void 0,d.imageEl=void 0,d.imageWrapEl=void 0,d.originX=0,d.originY=0)}function lt(Ve){const Qe=t.zoom,Ke=t.params.zoom;if(!d.slideEl){Ve&&Ve.target&&(d.slideEl=Ve.target.closest(`.${t.params.slideClass}, swiper-slide`)),d.slideEl||(d.slideEl=t.params.virtual&&t.params.virtual.enabled&&t.virtual?Ls(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:t.slides[t.activeIndex]);let Ff=d.slideEl.querySelector(`.${Ke.containerClass}`);Ff&&(Ff=Ff.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ff,d.imageWrapEl=Ff?tc(d.imageEl,`.${Ke.containerClass}`)[0]:void 0}if(!d.imageEl||!d.imageWrapEl)return;let bt,un,ui,zt,En,Vn,co,ps,Za,cc,No,ru,gy,my,TM,AM,kM,OM;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),d.slideEl.classList.add(`${Ke.zoomedSlideClass}`),void 0===u.touchesStart.x&&Ve?(bt=Ve.pageX,un=Ve.pageY):(bt=u.touchesStart.x,un=u.touchesStart.y);const Nf="number"==typeof Ve?Ve:null;1===r&&Nf&&(bt=void 0,un=void 0),Qe.scale=Nf||d.imageWrapEl.getAttribute("data-swiper-zoom")||Ke.maxRatio,r=Nf||d.imageWrapEl.getAttribute("data-swiper-zoom")||Ke.maxRatio,!Ve||1===r&&Nf?(co=0,ps=0):(kM=d.slideEl.offsetWidth,OM=d.slideEl.offsetHeight,ui=T_(d.slideEl).left+s.scrollX,zt=T_(d.slideEl).top+s.scrollY,En=ui+kM/2-bt,Vn=zt+OM/2-un,Za=d.imageEl.offsetWidth,cc=d.imageEl.offsetHeight,No=Za*Qe.scale,ru=cc*Qe.scale,gy=Math.min(kM/2-No/2,0),my=Math.min(OM/2-ru/2,0),TM=-gy,AM=-my,co=En*Qe.scale,ps=Vn*Qe.scale,coTM&&(co=TM),psAM&&(ps=AM)),Nf&&1===Qe.scale&&(d.originX=0,d.originY=0),d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform=`translate3d(${co}px, ${ps}px,0)`,d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform=`translate3d(0,0,0) scale(${Qe.scale})`}function Xe(){const Ve=t.zoom,Qe=t.params.zoom;if(!d.slideEl){d.slideEl=t.params.virtual&&t.params.virtual.enabled&&t.virtual?Ls(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:t.slides[t.activeIndex];let Ke=d.slideEl.querySelector(`.${Qe.containerClass}`);Ke&&(Ke=Ke.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=Ke,d.imageWrapEl=Ke?tc(d.imageEl,`.${Qe.containerClass}`)[0]:void 0}!d.imageEl||!d.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),Ve.scale=1,r=1,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform="translate3d(0,0,0)",d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform="translate3d(0,0,0) scale(1)",d.slideEl.classList.remove(`${Qe.zoomedSlideClass}`),d.slideEl=void 0,d.originX=0,d.originY=0)}function qe(Ve){const Qe=t.zoom;Qe.scale&&1!==Qe.scale?Xe():lt(Ve)}function Pe(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function Ye(){const Ve=t.zoom;if(Ve.enabled)return;Ve.enabled=!0;const{passiveListener:Qe,activeListenerWithCapture:Ke}=Pe();t.wrapperEl.addEventListener("pointerdown",ue,Qe),t.wrapperEl.addEventListener("pointermove",Te,Ke),["pointerup","pointercancel","pointerout"].forEach(bt=>{t.wrapperEl.addEventListener(bt,Fe,Qe)}),t.wrapperEl.addEventListener("pointermove",Ue,Ke)}function ht(){const Ve=t.zoom;if(!Ve.enabled)return;Ve.enabled=!1;const{passiveListener:Qe,activeListenerWithCapture:Ke}=Pe();t.wrapperEl.removeEventListener("pointerdown",ue,Qe),t.wrapperEl.removeEventListener("pointermove",Te,Ke),["pointerup","pointercancel","pointerout"].forEach(bt=>{t.wrapperEl.removeEventListener(bt,Fe,Qe)}),t.wrapperEl.removeEventListener("pointermove",Ue,Ke)}Object.defineProperty(t.zoom,"scale",{get:()=>_,set(Ve){_!==Ve&&i("zoomChange",Ve,d.imageEl,d.slideEl),_=Ve}}),e("init",()=>{t.params.zoom.enabled&&Ye()}),e("destroy",()=>{ht()}),e("touchStart",(Ve,Qe)=>{!t.zoom.enabled||function(Ve){if(!d.imageEl||u.isTouched)return;t.device.android&&Ve.cancelable&&Ve.preventDefault(),u.isTouched=!0;const Ke=c.length>0?c[0]:Ve;u.touchesStart.x=Ke.pageX,u.touchesStart.y=Ke.pageY}(Qe)}),e("touchEnd",(Ve,Qe)=>{!t.zoom.enabled||function(){const Ve=t.zoom;if(!d.imageEl)return;if(!u.isTouched||!u.isMoved)return u.isTouched=!1,void(u.isMoved=!1);u.isTouched=!1,u.isMoved=!1;let Qe=300,Ke=300;const un=u.currentX+f.x*Qe,zt=u.currentY+f.y*Ke;0!==f.x&&(Qe=Math.abs((un-u.currentX)/f.x)),0!==f.y&&(Ke=Math.abs((zt-u.currentY)/f.y));const En=Math.max(Qe,Ke);u.currentX=un,u.currentY=zt;const co=u.height*Ve.scale;u.minX=Math.min(d.slideWidth/2-u.width*Ve.scale/2,0),u.maxX=-u.minX,u.minY=Math.min(d.slideHeight/2-co/2,0),u.maxY=-u.minY,u.currentX=Math.max(Math.min(u.currentX,u.maxX),u.minX),u.currentY=Math.max(Math.min(u.currentY,u.maxY),u.minY),d.imageWrapEl.style.transitionDuration=`${En}ms`,d.imageWrapEl.style.transform=`translate3d(${u.currentX}px, ${u.currentY}px,0)`}()}),e("doubleTap",(Ve,Qe)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&qe(Qe)}),e("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&it()}),e("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&it()}),Object.assign(t.zoom,{enable:Ye,disable:ht,in:lt,out:Xe,toggle:qe})},function({swiper:t,extendParams:n,on:e}){function i(l,c){const d=function(){let T,k,$;return(L,J)=>{for(k=-1,T=L.length;T-k>1;)$=T+k>>1,L[$]<=J?k=$:T=$;return T}}();let u,f;return this.x=l,this.y=c,this.lastIndex=l.length-1,this.interpolate=function(T){return T?(f=d(this.x,T),u=f-1,(T-this.x[u])*(this.y[f]-this.y[u])/(this.x[f]-this.x[u])+this.y[u]):0},this}function a(){!t.controller.control||t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},e("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){const l=document.querySelector(t.params.controller.control);if(l&&l.swiper)t.controller.control=l.swiper;else if(l){const c=d=>{t.controller.control=d.detail[0],t.update(),l.removeEventListener("init",c)};l.addEventListener("init",c)}}else t.controller.control=t.params.controller.control}),e("update",()=>{a()}),e("resize",()=>{a()}),e("observerUpdate",()=>{a()}),e("setTranslate",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(c,d)}),e("setTransition",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(c,d)}),Object.assign(t.controller,{setTranslate:function(l,c){const d=t.controller.control;let u,f;const _=t.constructor;function T(k){if(k.destroyed)return;const $=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(l){t.controller.spline=t.params.loop?new i(t.slidesGrid,l.slidesGrid):new i(t.snapGrid,l.snapGrid)}(k),f=-t.controller.spline.interpolate(-$)),(!f||"container"===t.params.controller.by)&&(u=(k.maxTranslate()-k.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(u)||!Number.isFinite(u))&&(u=1),f=($-t.minTranslate())*u+k.minTranslate()),t.params.controller.inverse&&(f=k.maxTranslate()-f),k.updateProgress(f),k.setTranslate(f,t),k.updateActiveIndex(),k.updateSlidesClasses()}if(Array.isArray(d))for(let k=0;k{T.updateAutoHeight()}),Mf(T.wrapperEl,()=>{!u||T.transitionEnd()})))}if(Array.isArray(u))for(f=0;ff.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=f=>{const _=Ri();let T;T=f?new URL(f):_.location;const k=T.pathname.slice(1).split("/").filter(ue=>""!==ue),$=k.length;return{key:k[$-2],value:k[$-1]}},a=(f,_)=>{const T=Ri();if(!i||!t.params.history.enabled)return;let k;k=t.params.url?new URL(t.params.url):T.location;let L=r(t.slides[_].getAttribute("data-history"));if(t.params.history.root.length>0){let ue=t.params.history.root;"/"===ue[ue.length-1]&&(ue=ue.slice(0,ue.length-1)),L=`${ue}/${f?`${f}/`:""}${L}`}else k.pathname.includes(f)||(L=`${f?`${f}/`:""}${L}`);t.params.history.keepQuery&&(L+=k.search);const J=T.history.state;J&&J.value===L||(t.params.history.replaceState?T.history.replaceState({value:L},null,L):T.history.pushState({value:L},null,L))},l=(f,_,T)=>{if(_)for(let k=0,$=t.slides.length;k<$;k+=1){const L=t.slides[k];if(r(L.getAttribute("data-history"))===_){const ue=t.getSlideIndex(L);t.slideTo(ue,f,T)}}else t.slideTo(0,f,T)},c=()=>{s=o(t.params.url),l(t.params.speed,s.value,!1)};e("init",()=>{t.params.history.enabled&&(()=>{const f=Ri();if(t.params.history){if(!f.history||!f.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);if(i=!0,s=o(t.params.url),!s.key&&!s.value)return void(t.params.history.replaceState||f.addEventListener("popstate",c));l(0,s.value,t.params.runCallbacksOnInit),t.params.history.replaceState||f.addEventListener("popstate",c)}})()}),e("destroy",()=>{t.params.history.enabled&&(()=>{const f=Ri();t.params.history.replaceState||f.removeEventListener("popstate",c)})()}),e("transitionEnd _freeModeNoMomentumRelease",()=>{i&&a(t.params.history.key,t.activeIndex)}),e("slideChange",()=>{i&&t.params.cssMode&&a(t.params.history.key,t.activeIndex)})},function({swiper:t,extendParams:n,emit:e,on:i}){let s=!1;const r=Fs(),o=Ri();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(u,f){if(t.virtual&&t.params.virtual.enabled){const _=t.slides.filter(k=>k.getAttribute("data-hash")===f)[0];return _?parseInt(_.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(Ls(t.slidesEl,`.${t.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});const a=()=>{e("hashChange");const u=r.location.hash.replace("#",""),f=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(u!==(f?f.getAttribute("data-hash"):"")){const T=t.params.hashNavigation.getSlideIndex(t,u);if(void 0===T||Number.isNaN(T))return;t.slideTo(T)}},l=()=>{if(!s||!t.params.hashNavigation.enabled)return;const u=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=u?u.getAttribute("data-hash")||u.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${f}`||""),e("hashSet")):(r.location.hash=f||"",e("hashSet"))};i("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;s=!0;const u=r.location.hash.replace("#","");if(u){const f=0,_=t.params.hashNavigation.getSlideIndex(t,u);t.slideTo(_||0,f,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&o.addEventListener("hashchange",a)})()}),i("destroy",()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&o.removeEventListener("hashchange",a)}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&l()}),i("slideChange",()=>{s&&t.params.cssMode&&l()})},AC,function({swiper:t,extendParams:n,on:e}){n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;function r(){const l=t.thumbs.swiper;if(!l||l.destroyed)return;const c=l.clickedIndex,d=l.clickedSlide;if(d&&d.classList.contains(t.params.thumbs.slideThumbActiveClass)||null==c)return;let u;u=l.params.loop?parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):c,t.params.loop?t.slideToLoop(u):t.slideTo(u)}function o(){const{thumbs:l}=t.params;if(i)return!1;i=!0;const c=t.constructor;if(l.swiper instanceof c)t.thumbs.swiper=l.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(xf(l.swiper)){const d=Object.assign({},l.swiper);Object.assign(d,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new c(d),s=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",r),!0}function a(l){const c=t.thumbs.swiper;if(!c||c.destroyed)return;const d="auto"===c.params.slidesPerView?c.slidesPerViewDynamic():c.params.slidesPerView;let u=1;const f=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(u=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),c.slides.forEach(k=>k.classList.remove(f)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let k=0;k{$.classList.add(f)});else for(let k=0;kue.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];$=c.slides.indexOf(J),L=t.activeIndex>t.previousIndex?"next":"prev"}else $=t.realIndex,L=$>t.previousIndex?"next":"prev";T&&($+="next"===L?_:-1*_),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf($)<0&&(c.params.centeredSlides&&($=$>k?$-Math.floor(d/2)+1:$+Math.floor(d/2)-1),c.slideTo($,l?0:void 0))}}t.thumbs={swiper:null},e("beforeInit",()=>{const{thumbs:l}=t.params;if(l&&l.swiper)if("string"==typeof l.swiper||l.swiper instanceof HTMLElement){const c=Fs(),d=()=>{const f="string"==typeof l.swiper?c.querySelector(l.swiper):l.swiper;if(f&&f.swiper)l.swiper=f.swiper,o(),a(!0);else if(f){const _=T=>{l.swiper=T.detail[0],f.removeEventListener("init",_),o(),a(!0),l.swiper.update(),t.update()};f.addEventListener("init",_)}return f},u=()=>{t.destroyed||d()||requestAnimationFrame(u)};requestAnimationFrame(u)}else o(),a(!0)}),e("slideChange update resize observerUpdate",()=>{a()}),e("setTransition",(l,c)=>{const d=t.thumbs.swiper;!d||d.destroyed||d.setTransition(c)}),e("beforeDestroy",()=>{const l=t.thumbs.swiper;!l||l.destroyed||s&&l.destroy()}),Object.assign(t.thumbs,{init:o,update:a})},function({swiper:t,extendParams:n,emit:e,once:i}){n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const a=t.getTranslate();t.setTranslate(a),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:a,touches:l}=t;0===a.velocities.length&&a.velocities.push({position:l[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:l[t.isHorizontal()?"currentX":"currentY"],time:Rr()})},onTouchEnd:function({currentPos:a}){if(t.params.cssMode)return;const{params:l,wrapperEl:c,rtlTranslate:d,snapGrid:u,touchEventsData:f}=t,T=Rr()-f.touchStartTime;if(a<-t.minTranslate())t.slideTo(t.activeIndex);else if(a>-t.maxTranslate())t.slideTo(t.slides.length1){const Be=f.velocities.pop(),Ue=f.velocities.pop(),it=Be.time-Ue.time;t.velocity=(Be.position-Ue.position)/it,t.velocity/=2,Math.abs(t.velocity)150||Rr()-Be.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=l.freeMode.momentumVelocityRatio,f.velocities.length=0;let k=1e3*l.freeMode.momentumRatio,L=t.translate+t.velocity*k;d&&(L=-L);let ue,J=!1;const Te=20*Math.abs(t.velocity)*l.freeMode.momentumBounceRatio;let Fe;if(Lt.minTranslate())l.freeMode.momentumBounce?(L-t.minTranslate()>Te&&(L=t.minTranslate()+Te),ue=t.minTranslate(),J=!0,f.allowMomentumBounce=!0):L=t.minTranslate(),l.loop&&l.centeredSlides&&(Fe=!0);else if(l.freeMode.sticky){let Be;for(let Ue=0;Ue-L){Be=Ue;break}L=Math.abs(u[Be]-L){t.loopFix()}),0!==t.velocity){if(k=d?Math.abs((-L-t.translate)/t.velocity):Math.abs((L-t.translate)/t.velocity),l.freeMode.sticky){const Be=Math.abs((d?-L:L)-t.translate),Ue=t.slidesSizesGrid[t.activeIndex];k=Be{!t||t.destroyed||!f.allowMomentumBounce||(e("momentumBounce"),t.setTransition(l.speed),setTimeout(()=>{t.setTranslate(ue),Mf(c,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(e("_freeModeNoMomentumRelease"),t.updateProgress(L),t.setTransition(k),t.setTranslate(L),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Mf(c,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(L),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(l.freeMode.sticky)return void t.slideToClosest();l.freeMode&&e("_freeModeNoMomentumRelease")}(!l.freeMode.momentum||T>=l.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:n}){let e,i,s;n({grid:{rows:1,fill:"column"}});const r=()=>{let c=t.params.spaceBetween;return"string"==typeof c&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:"string"==typeof c&&(c=parseFloat(c)),c};t.grid={initSlides:c=>{const{slidesPerView:d}=t.params,{rows:u,fill:f}=t.params.grid;s=Math.floor(c/u),e=Math.floor(c/u)===c/u?c:Math.ceil(c/u)*u,"auto"!==d&&"row"===f&&(e=Math.max(e,d*u)),i=e/u},updateSlide:(c,d,u,f)=>{const{slidesPerGroup:_}=t.params,T=r(),{rows:k,fill:$}=t.params.grid;let L,J,ue;if("row"===$&&_>1){const Te=Math.floor(c/(_*k)),Fe=c-k*_*Te,Be=0===Te?_:Math.min(Math.ceil((u-Te*k*_)/k),_);ue=Math.floor(Fe/Be),J=Fe-ue*Be+Te*_,L=J+ue*e/k,d.style.order=L}else"column"===$?(J=Math.floor(c/k),ue=c-J*k,(J>s||J===s&&ue===k-1)&&(ue+=1,ue>=k&&(ue=0,J+=1))):(ue=Math.floor(c/i),J=c-ue*i);d.row=ue,d.column=J,d.style[f("margin-top")]=0!==ue?T&&`${T}px`:""},updateWrapperSize:(c,d,u)=>{const{centeredSlides:f,roundLengths:_}=t.params,T=r(),{rows:k}=t.params.grid;if(t.virtualSize=(c+T)*e,t.virtualSize=Math.ceil(t.virtualSize/k)-T,t.wrapperEl.style[u("width")]=`${t.virtualSize+T}px`,f){const $=[];for(let L=0;L{const{slides:r}=t;for(let a=0;a{const o=t.slides.map(a=>ec(a));o.forEach(a=>{a.style.transitionDuration=`${r}ms`}),k_({swiper:t,duration:r,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:n,on:e}){n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(a,l,c)=>{let d=a.querySelector(c?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),u=a.querySelector(c?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");d||(d=lo("div","swiper-slide-shadow-"+(c?"left":"top")),a.append(d)),u||(u=lo("div","swiper-slide-shadow-"+(c?"right":"bottom")),a.append(u)),d&&(d.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};qd({effect:"cube",swiper:t,on:e,setTranslate:()=>{const{el:a,wrapperEl:l,slides:c,width:d,height:u,rtlTranslate:f,size:_,browser:T}=t,k=t.params.cubeEffect,$=t.isHorizontal(),L=t.virtual&&t.params.virtual.enabled;let ue,J=0;k.shadow&&($?(ue=t.slidesEl.querySelector(".swiper-cube-shadow"),ue||(ue=lo("div","swiper-cube-shadow"),t.slidesEl.append(ue)),ue.style.height=`${d}px`):(ue=a.querySelector(".swiper-cube-shadow"),ue||(ue=lo("div","swiper-cube-shadow"),a.append(ue))));for(let Fe=0;Fe-1&&(J=90*Ue+90*lt,f&&(J=90*-Ue-90*lt)),Be.style.transform=Ye,k.slideShadows&&i(Be,lt,$)}if(l.style.transformOrigin=`50% 50% -${_/2}px`,l.style["-webkit-transform-origin"]=`50% 50% -${_/2}px`,k.shadow)if($)ue.style.transform=`translate3d(0px, ${d/2+k.shadowOffset}px, ${-d/2}px) rotateX(90deg) rotateZ(0deg) scale(${k.shadowScale})`;else{const Fe=Math.abs(J)-90*Math.floor(Math.abs(J)/90),Be=1.5-(Math.sin(2*Fe*Math.PI/360)/2+Math.cos(2*Fe*Math.PI/360)/2),He=k.shadowScale/Be;ue.style.transform=`scale3d(${k.shadowScale}, 1, ${He}) translate3d(0px, ${u/2+k.shadowOffset}px, ${-u/2/He}px) rotateX(-90deg)`}const Te=(T.isSafari||T.isWebView)&&T.needPerspectiveFix?-_/2:0;l.style.transform=`translate3d(0px,0,${Te}px) rotateX(${t.isHorizontal()?0:J}deg) rotateY(${t.isHorizontal()?-J:0}deg)`,l.style.setProperty("--swiper-cube-translate-z",`${Te}px`)},setTransition:a=>{const{el:l,slides:c}=t;if(c.forEach(d=>{d.style.transitionDuration=`${a}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const d=l.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${a}ms`)}},recreateShadows:()=>{const a=t.isHorizontal();t.slides.forEach(l=>{const c=Math.max(Math.min(l.progress,1),-1);i(l,c,a)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:t,extendParams:n,on:e}){n({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(a,l,c)=>{let d=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-left"):a.querySelector(".swiper-slide-shadow-top"),u=t.isHorizontal()?a.querySelector(".swiper-slide-shadow-right"):a.querySelector(".swiper-slide-shadow-bottom");d||(d=Xd(0,a,t.isHorizontal()?"left":"top")),u||(u=Xd(0,a,t.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};qd({effect:"flip",swiper:t,on:e,setTranslate:()=>{const{slides:a,rtlTranslate:l}=t,c=t.params.flipEffect;for(let d=0;d{const l=t.slides.map(c=>ec(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${a}ms`})}),k_({swiper:t,duration:a,transformElements:l})},recreateShadows:()=>{t.slides.forEach(l=>{let c=l.progress;t.params.flipEffect.limitRotation&&(c=Math.max(Math.min(l.progress,1),-1)),i(l,c)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},kC,function({swiper:t,extendParams:n,on:e}){n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=o=>"string"==typeof o?o:`${o}px`;qd({effect:"creative",swiper:t,on:e,setTranslate:()=>{const{slides:o,wrapperEl:a,slidesSizesGrid:l}=t,c=t.params.creativeEffect,{progressMultiplier:d}=c,u=t.params.centeredSlides;u&&(a.style.transform=`translateX(calc(50% - ${l[0]/2-t.params.slidesOffsetBefore||0}px))`);for(let f=0;f0&&(Fe=c.prev,Te=!0),J.forEach((qe,Pe)=>{J[Pe]=`calc(${qe}px + (${i(Fe.translate[Pe])} * ${Math.abs(k*d)}))`}),ue.forEach((qe,Pe)=>{ue[Pe]=Fe.rotate[Pe]*Math.abs(k*d)}),_.style.zIndex=-Math.abs(Math.round(T))+o.length;const Be=J.join(", "),it=$<0?1+(1-Fe.opacity)*$*d:1-(1-Fe.opacity)*$*d,lt=`translate3d(${Be}) rotateX(${ue[0]}deg) rotateY(${ue[1]}deg) rotateZ(${ue[2]}deg) ${$<0?`scale(${1+(1-Fe.scale)*$*d})`:`scale(${1-(1-Fe.scale)*$*d})`}`;if(Te&&Fe.shadow||!Te){let qe=_.querySelector(".swiper-slide-shadow");!qe&&Fe.shadow&&(qe=Xd(0,_)),qe&&(qe.style.opacity=Math.min(Math.max(Math.abs(c.shadowPerProgress?k*(1/c.limitProgress):k),0),1))}const Xe=Df(0,_);Xe.style.transform=lt,Xe.style.opacity=it,Fe.origin&&(Xe.style.transformOrigin=Fe.origin)}},setTransition:o=>{const a=t.slides.map(l=>ec(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),k_({swiper:t,duration:o,transformElements:a,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:n,on:e}){n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),qd({effect:"cards",swiper:t,on:e,setTranslate:()=>{const{slides:r,activeIndex:o,rtlTranslate:a}=t,l=t.params.cardsEffect,{startTranslate:c,isTouched:d}=t.touchEventsData,u=a?-t.translate:t.translate;for(let f=0;f-1&&(d||t.params.cssMode)&&u>c;if((Ue===o||Ue===o-1)&&k>0&&k<1&&(d||t.params.cssMode)&&u0?`calc(${L}px ${a?"-":"+"} (-${Be*Math.abs(k)}%))`:`${L}px`,!t.isHorizontal()){const Pe=J;J=L,L=Pe}const Xe=`\n translate3d(${L}, ${J}, ${ue}px)\n rotateZ(${l.rotate?a?-Fe:Fe:0}deg)\n scale(${k<0?""+(1+(1-Te)*k):""+(1-(1-Te)*k)})\n `;if(l.slideShadows){let Pe=_.querySelector(".swiper-slide-shadow");Pe||(Pe=Xd(0,_)),Pe&&(Pe.style.opacity=Math.min(Math.max((Math.abs(k)-.5)/.5,0),1))}_.style.zIndex=-Math.abs(Math.round(T))+r.length,Df(0,_).style.transform=Xe}},setTransition:r=>{const o=t.slides.map(a=>ec(a));o.forEach(a=>{a.style.transitionDuration=`${r}ms`,a.querySelectorAll(".swiper-slide-shadow").forEach(l=>{l.style.transitionDuration=`${r}ms`})}),k_({swiper:t,duration:r,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];CC.use(z_e);const ty=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ny(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function iy(t,n){const e=["__proto__","constructor","prototype"];Object.keys(n).filter(i=>e.indexOf(i)<0).forEach(i=>{void 0===t[i]?t[i]=n[i]:ny(n[i])&&ny(t[i])&&Object.keys(n[i]).length>0?n[i].__swiper__?t[i]=n[i]:iy(t[i],n[i]):t[i]=n[i]})}function sy(t=""){return t.replace(/-[a-z]/g,n=>n.toUpperCase().replace("-",""))}const LV=t=>parseFloat(t)===Number(t)?Number(t):"true"===t||""===t||"false"!==t&&("null"===t?null:"undefined"!==t?t:void 0),BV=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function VV(t,n,e){const i={},s={};iy(i,bC);const r=[...ty,"on"],o=r.map(l=>l.replace(/_/,""));r.forEach(l=>{l=l.replace("_",""),void 0!==t[l]&&(s[l]=t[l])});const a=[...t.attributes];return"string"==typeof n&&void 0!==e&&a.push({name:n,value:e}),a.forEach(l=>{const c=BV.filter(d=>0===l.name.indexOf(`${d}-`))[0];if(c){const d=sy(c),u=sy(l.name.split(`${c}-`)[1]);void 0===s[d]&&(s[d]={}),!0===s[d]&&(s[d]={enabled:!0}),s[d][u]=LV(l.value)}else{const d=sy(l.name);if(!o.includes(d))return;const u=LV(l.value);s[d]&&BV.includes(l.name)?(s[d].constructor!==Object&&(s[d]={}),s[d].enabled=u):s[d]=u}}),iy(i,s),i.navigation?i.navigation=ca({prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},!0!==i.navigation?i.navigation:{}):!1===i.navigation&&delete i.navigation,i.scrollbar?i.scrollbar=ca({el:".swiper-scrollbar"},!0!==i.scrollbar?i.scrollbar:{}):!1===i.scrollbar&&delete i.scrollbar,i.pagination?i.pagination=ca({el:".swiper-pagination"},!0!==i.pagination?i.pagination:{}):!1===i.pagination&&delete i.pagination,{params:i,passedParams:s}}const Y_e="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}";let ry=!0;const fM=(t,n)=>{let e=document.querySelector("style#swiper-element-styles");const i=e&&e.preInit&&!t;!t&&n&&n.cssLinks().forEach(s=>{const r=document.createElement("link");r.rel="stylesheet",r.href=s,document.head.prepend(r)}),(!e||i)&&(e=e||document.createElement("style"),e.textContent=[Y_e,n?n.cssStyles():""].join("\n"),e.id="swiper-element-styles",e.preInit=t,document.head.prepend(e))},HV="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement;class jV extends HV{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}cssStyles(){return[ry?":root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}:host(.swiper-vertical)>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight swiper-slide{height:auto}:host(.swiper-autoheight) .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}:host(.swiper-3d.swiper-css-mode) .swiper-wrapper{perspective:1200px}:host(.swiper-3d) .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d swiper-slide{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}:host(.swiper-css-mode)>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host(.swiper-css-mode)>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>swiper-slide{scroll-snap-align:start start}:host(.swiper-horizontal.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:x mandatory}:host(.swiper-vertical.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:y mandatory}:host(.swiper-css-mode.swiper-free-mode)>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>swiper-slide{scroll-snap-align:none}:host(.swiper-centered)>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-horizontal)>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-vertical)>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}:host(.swiper-virtual.swiper-css-mode) .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}:host(.swiper-virtual.swiper-css-mode.swiper-horizontal) .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}:host(.swiper-virtual.swiper-css-mode.swiper-vertical) .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,:host(.swiper-rtl) .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-prev:after,:host(.swiper-rtl) .swiper-button-next:after{content:'prev'}.swiper-button-next,:host(.swiper-rtl) .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,:host(.swiper-rtl) .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}:host(.swiper-rtl) .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}:host(.swiper-free-mode)>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}:host(.swiper-grid)>.swiper-wrapper{flex-wrap:wrap}:host(.swiper-grid-column)>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode swiper-slide{transition-timing-function:ease-out}.swiper-fade swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade swiper-slide swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube swiper-slide swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube swiper-slide-next+swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip swiper-slide swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}":"",...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}render(){if(this.rendered)return;ry&&fM(!1,this);const n=this.cssStyles();n.length&&(this.stylesEl=document.createElement("style"),this.stylesEl.textContent=n,this.shadowEl.appendChild(this.stylesEl)),this.cssLinks().forEach(e=>{if(this.shadowEl.querySelector(`link[href="${e}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=e,this.shadowEl.appendChild(s)}),this.tempDiv.innerHTML=`\n \n
\n \n
\n \n ${function(t={}){return t.navigation&&void 0===t.navigation.nextEl&&void 0===t.navigation.prevEl}(this.passedParams)?'\n
\n
\n ':""}\n ${function(t={}){return t.pagination&&void 0===t.pagination.el}(this.passedParams)?'\n
\n ':""}\n ${function(t={}){return t.scrollbar&&void 0===t.scrollbar.el}(this.passedParams)?'\n
\n ':""}\n `,[...this.tempDiv.children].forEach(e=>{this.shadowEl.appendChild(e)}),this.rendered=!0}initialize(){if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:e}=VV(this);this.swiperParams=n,this.passedParams=e,delete this.swiperParams.init,this.render(),this.swiper=new CC(this,IM(ca(IM(ca({},n),{touchEventsTarget:"container"}),n.virtual?{}:{observer:!0}),{onAny:(i,...s)=>{const r=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase(),o=new CustomEvent(r,{detail:s,bubbles:!0,cancelable:!0});this.dispatchEvent(o)}}))}connectedCallback(){if(!(this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM)){if(!1===this.init||"false"===this.getAttribute("init"))return void fM(!0,this);this.initialize()}}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(n,e){const{params:i,passedParams:s}=VV(this,n,e);this.passedParams=s,this.swiperParams=i,function({swiper:t,slides:n,passedParams:e,changedParams:i,nextEl:s,prevEl:r,scrollbarEl:o,paginationEl:a}){const l=i.filter(He=>"children"!==He&&"direction"!==He&&"wrapperClass"!==He),{params:c,pagination:d,navigation:u,scrollbar:f,virtual:_,thumbs:T}=t;let k,$,L,J,ue,Te,Fe,Be;i.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(k=!0),i.includes("controller")&&e.controller&&e.controller.control&&c.controller&&!c.controller.control&&($=!0),i.includes("pagination")&&e.pagination&&(e.pagination.el||a)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(L=!0),i.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||o)&&(c.scrollbar||!1===c.scrollbar)&&f&&!f.el&&(J=!0),i.includes("navigation")&&e.navigation&&(e.navigation.prevEl||r)&&(e.navigation.nextEl||s)&&(c.navigation||!1===c.navigation)&&u&&!u.prevEl&&!u.nextEl&&(ue=!0);const Ue=He=>{!t[He]||(t[He].destroy(),"navigation"===He?(t.isElement&&(t[He].prevEl.remove(),t[He].nextEl.remove()),c[He].prevEl=void 0,c[He].nextEl=void 0,t[He].prevEl=void 0,t[He].nextEl=void 0):(t.isElement&&t[He].el.remove(),c[He].el=void 0,t[He].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!e.loop?Te=!0:!c.loop&&e.loop?Fe=!0:Be=!0),l.forEach(He=>{if(ny(c[He])&&ny(e[He]))iy(c[He],e[He]),("navigation"===He||"pagination"===He||"scrollbar"===He)&&"enabled"in e[He]&&!e[He].enabled&&Ue(He);else{const it=e[He];!0!==it&&!1!==it||"navigation"!==He&&"pagination"!==He&&"scrollbar"!==He?c[He]=e[He]:!1===it&&Ue(He)}}),l.includes("controller")&&!$&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&n&&_&&c.virtual.enabled&&(_.slides=n,_.update(!0)),i.includes("children")&&n&&c.loop&&(Be=!0),k&&T.init()&&T.update(!0),$&&(t.controller.control=c.controller.control),L&&(t.isElement&&(!a||"string"==typeof a)&&((a=document.createElement("div")).classList.add("swiper-pagination"),t.el.shadowEl.appendChild(a)),a&&(c.pagination.el=a),d.init(),d.render(),d.update()),J&&(t.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-scrollbar"),t.el.shadowEl.appendChild(o)),o&&(c.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),ue&&(t.isElement&&((!s||"string"==typeof s)&&((s=document.createElement("div")).classList.add("swiper-button-next"),t.el.shadowEl.appendChild(s)),(!r||"string"==typeof r)&&((r=document.createElement("div")).classList.add("swiper-button-prev"),t.el.shadowEl.appendChild(r))),s&&(c.navigation.nextEl=s),r&&(c.navigation.prevEl=r),u.init(),u.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=e.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=e.allowSlidePrev),i.includes("direction")&&t.changeDirection(e.direction,!1),(Te||Be)&&t.loopDestroy(),(Fe||Be)&&t.loopCreate(),t.update()}(ca(ca(ca({swiper:this.swiper,passedParams:this.passedParams,changedParams:[sy(n)]},"navigation"===n&&s[n]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),"pagination"===n&&s[n]?{paginationEl:".swiper-pagination"}:{}),"scrollbar"===n&&s[n]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(n,e,i){!this.initialized||("true"===e&&null===i&&(i=!1),this.updateSwiperOnPropChange(n,i))}static get observedAttributes(){return ty.filter(e=>e.includes("_")).map(e=>e.replace(/[A-Z]/g,i=>`-${i}`).replace("_","").toLowerCase())}}ty.forEach(t=>{"init"!==t&&(t=t.replace("_",""),Object.defineProperty(jV.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(n){this.passedParams||(this.passedParams={}),this.passedParams[t]=n,this.initialized&&this.updateSwiperOnPropChange(t)}}))});class Q_e extends HV{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}render(){const n=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(this.tempDiv.innerHTML="",[...this.tempDiv.children].forEach(e=>{this.shadowEl.appendChild(e)}),n){const e=document.createElement("div");e.classList.add("swiper-lazy-preloader"),this.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.initialize()}}"undefined"!=typeof window&&(window.SwiperElementRegisterParams=t=>{ty.push(...t)});const J_e=["mat-menu-item",""];function Z_e(t,n){1&t&&(pn(),j(0,"svg",2),je(1,"polygon",3),z())}const zV=["*"];function eye(t,n){if(1&t){const e=sn();j(0,"div",0),nt("keydown",function(s){return Ot(e),Ie()._handleKeydown(s)})("click",function(){return Ot(e),Ie().closed.emit("click")})("@transformMenu.start",function(s){return Ot(e),Ie()._onAnimationStart(s)})("@transformMenu.done",function(s){return Ot(e),Ie()._onAnimationDone(s)}),j(1,"div",1),jt(2),z(),z()}if(2&t){const e=Ie();ge("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),At("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const oy={transformMenu:Ns("transformMenu",[Wn("void",Jt({opacity:0,transform:"scale(0.8)"})),ni("void => enter",pi("120ms cubic-bezier(0, 0, 0.2, 1)",Jt({opacity:1,transform:"scale(1)"}))),ni("* => void",pi("100ms 25ms linear",Jt({opacity:0})))]),fadeInItems:Ns("fadeInItems",[Wn("showing",Jt({opacity:1})),ni("void => *",[Jt({opacity:0}),pi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},GV=new pt("MatMenuContent"),pM=new pt("MAT_MENU_PANEL"),nye=Po(Ir(class{}));let ay=(()=>{class t extends nye{constructor(e,i,s,r,o){super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=r,this._changeDetectorRef=o,this.role="menuitem",this._hovered=new E,this._focused=new E,this._highlighted=!1,this._triggersSubmenu=!1,r&&r.addItem&&r.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e,i;const s=this._elementRef.nativeElement.cloneNode(!0),r=s.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{constructor(e,i,s){this._elementRef=e,this._ngZone=i,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Mo,this._tabSubscription=fe.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new E,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ot,this.close=this.closed,this.panelId="mat-menu-panel-"+sye++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Vt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Vt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new km(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ai(this._directDescendantItems),as(e=>De(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ai(this._directDescendantItems),as(i=>De(...i.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,s=this._keyManager;switch(i){case 27:Ar(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&s.setFocusOrigin("keyboard"),s.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(Bn(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(o=>o.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,i=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===i,s["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ai(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C($V))},t.\u0275dir=Le({type:t,contentQueries:function(e,i,s){if(1&e&&(Ft(s,GV,5),Ft(s,ay,5),Ft(s,ay,4)),2&e){let r;st(r=rt())&&(i.lazyContent=r.first),st(r=rt())&&(i._allItems=r),st(r=rt())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&Yt(on,5),2&e){let s;st(s=rt())&&(i.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),rye=(()=>{class t extends Of{constructor(e,i,s){super(e,i,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(C(tt),C(xt),C($V))},t.\u0275cmp=mt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&At("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Dt([{provide:pM,useExisting:t}]),Je],ngContentSelectors:zV,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(Cn(),ke(0,eye,3,6,"ng-template"))},directives:[Ma],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[oy.transformMenu,oy.fadeInItems]},changeDetection:0}),t})();const UV=new pt("mat-menu-scroll-strategy"),aye={provide:UV,deps:[la],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},YV=Ll({passive:!0});let lye=(()=>{class t{constructor(e,i,s,r,o,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=s,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=fe.EMPTY,this._hoverSubscription=fe.EMPTY,this._menuCloseSubscription=fe.EMPTY,this._handleTouchStart=d=>{Vx(d)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new ot,this.onMenuOpen=this.menuOpened,this.menuClosed=new ot,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Of?o:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,YV),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,YV),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Of&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Of?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(mn(s=>"void"===s.toState),Bn(1),Tt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new dM({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[r,o]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[r,o],[c,d]=[i,s],u=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",s=c="end"===i?"start":"end",u="bottom"===r?8:-8):this.menu.overlapTrigger||(a="top"===r?"bottom":"top",l="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:r,offsetY:u},{originX:s,originY:a,overlayX:d,overlayY:r,offsetY:u},{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:-u},{originX:s,originY:l,overlayX:d,overlayY:o,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return De(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Et(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(mn(o=>o!==this._menuItemInstance),mn(()=>this._menuOpen)):Et(),i)}_handleMousedown(e){Bx(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(mn(e=>e===this._menuItemInstance&&!e.disabled),Zo(0,zC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Of&&this.menu._isAnimating?this.menu._animationDone.pipe(Bn(1),Zo(0,zC),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new rc(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(C(la),C(tt),C(Fn),C(UV),C(pM,8),C(ay,10),C(Bi,8),C(Js))},t.\u0275dir=Le({type:t,hostVars:3,hostBindings:function(e,i){1&e&&nt("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)})("click",function(r){return i._handleClick(r)}),2&e&&At("aria-haspopup",i._ariaHaspopup)("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),cye=(()=>{class t extends lye{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ct(t)))(i||t)}}(),t.\u0275dir=Le({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Je]}),t})(),dye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[aye],imports:[[ei,Sn,Ld,hM],oc,Sn]}),t})();function uye(t,n){if(1&t&&(j(0,"li",37),j(1,"a",38),$e(2),ct(3,"translate"),z(),z()),2&t){const e=n.$implicit,i=n.index;gt("active",Ie(3).active===i),ge("ngbNavItem",i)("destroyOnHide",!0),ae(1),ge("routerLink",e.route),ae(1),Mt(vt(3,6,e.title))}}function hye(t,n){if(1&t&&(j(0,"span",35),ke(1,uye,4,8,"li",36),z()),2&t){const e=Ie(2);ae(1),ge("ngForOf",e.headerRoutes)}}function fye(t,n){if(1&t&&(j(0,"span",39),$e(1),ct(2,"translate"),z()),2&t){const e=Ie(2);ae(1),$t("\u2022 ",vt(2,1,e.displayedText),"")}}const qV=function(){return[""]};function pye(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",9,10),nt("activeIdChange",function(s){return Ot(e),Ie().active=s}),j(3,"a",11),j(4,"span",12),$e(5,"B"),z(),j(6,"span",13),$e(7,"|"),z(),z(),ke(8,hye,2,1,"span",14),ke(9,fye,3,3,"span",15),j(10,"div",16),j(11,"button",17),pn(),j(12,"svg",18),je(13,"path",19),je(14,"path",20),z(),z(),Ti(),j(15,"button",21),j(16,"mat-icon"),$e(17,"more_vert"),z(),z(),j(18,"mat-menu",null,22),j(20,"button",23),j(21,"a",24),j(22,"span",25),pn(),j(23,"svg",26),je(24,"path",27),z(),z(),Ti(),j(25,"span"),$e(26,"LinkedIn"),z(),z(),z(),j(27,"button",23),j(28,"a",28),j(29,"span",25),pn(),j(30,"svg",29),je(31,"path",30),z(),z(),Ti(),j(32,"span"),$e(33,"Github"),z(),z(),z(),j(34,"button",23),j(35,"a",31),j(36,"span",25),pn(),j(37,"svg",32),je(38,"path",33),z(),z(),Ti(),j(39,"span"),$e(40,"Telegram"),z(),z(),z(),z(),z(),z(),je(41,"div",34),z()}if(2&t){const e=Qt(2),i=Qt(19),s=Ie(),r=Qt(3);ae(1),ge("activeId",s.active)("destroyOnHide",!1),ae(2),ge("routerLink",ki(8,qV)),ae(5),ge("ngIf",!(null!=s.displayedText&&s.displayedText.length)),ae(1),ge("ngIf",(null==s.displayedText?null:s.displayedText.length)>0),ae(2),ge("matMenuTriggerFor",r),ae(4),ge("matMenuTriggerFor",i),ae(26),ge("ngbNavOutlet",e)}}function gye(t,n){if(1&t&&(j(0,"li",37),j(1,"a",38),$e(2),ct(3,"translate"),z(),z()),2&t){const e=n.$implicit,i=n.index;gt("active",Ie(2).active===i),ge("ngbNavItem",i)("destroyOnHide",!0),ae(1),ge("routerLink",e.route),ae(1),Mt(vt(3,6,e.title))}}function mye(t,n){if(1&t&&(j(0,"span",39),$e(1),ct(2,"translate"),z()),2&t){const e=Ie(2);ae(1),$t("\u2022 ",vt(2,1,e.displayedText),"")}}function _ye(t,n){if(1&t){const e=sn();j(0,"div"),j(1,"ul",9,10),nt("activeIdChange",function(s){return Ot(e),Ie().active=s}),j(3,"a",11),j(4,"span",13),$e(5,"BABUNOV"),z(),j(6,"span",13),$e(7,"|"),z(),j(8,"span",40),$e(9,"HOBBIES"),z(),z(),j(10,"span",35),ke(11,gye,4,8,"li",36),z(),ke(12,mye,3,3,"span",15),j(13,"div",41),j(14,"button",17),pn(),j(15,"svg",42),je(16,"path",19),je(17,"path",20),z(),z(),Ti(),j(18,"div",13),$e(19,"|"),z(),j(20,"a",43),ct(21,"translate"),pn(),j(22,"svg",26),je(23,"path",27),z(),z(),Ti(),j(24,"a",44),ct(25,"translate"),pn(),j(26,"svg",29),je(27,"path",30),z(),z(),Ti(),j(28,"a",45),ct(29,"translate"),pn(),j(30,"svg",32),je(31,"path",33),z(),z(),z(),z(),Ti(),je(32,"div",34),z()}if(2&t){const e=Qt(2),i=Ie(),s=Qt(3);ae(1),ge("activeId",i.active)("destroyOnHide",!1),ae(2),ge("routerLink",ki(16,qV)),ae(8),ge("ngForOf",i.headerRoutes),ae(1),ge("ngIf",(null==i.displayedText?null:i.displayedText.length)>0),ae(2),ge("matMenuTriggerFor",s),ae(6),yi("ngbTooltip",vt(21,10,"LINKED_IN")),ae(4),yi("ngbTooltip",vt(25,12,"GITHUB")),ae(4),yi("ngbTooltip",vt(29,14,"TELEGRAM")),ae(4),ge("ngbNavOutlet",e)}}function yye(t,n){1&t&&qn(0)}function vye(t,n){1&t&&qn(0)}function bye(t,n){1&t&&(pn(),j(0,"svg",46),je(1,"path",47),z())}const xye=function(){return[!1,!0]},wye=function(){return[!0,!1]},Cye=function(t){return{"header__flags-selected":t}};let Mye=(()=>{class t{constructor(e,i,s){this.router=e,this.translateService=i,this.responsive=s,this.active=1,this.headerRoutes=[{route:"/anime",title:"Anime"},{route:"/games",title:"Games"}],this.utilityRoutes=[{route:"/anime/compare",title:"Comparator"},{route:"/anime/recommendations",title:"Recommendations"}],this.selectedLanguage="en"}ngOnInit(){this.router.events.subscribe(e=>{var i;e instanceof Cl&&(this.active=this.headerRoutes.findIndex(s=>{var r;return null===(r=e.url)||void 0===r?void 0:r.includes(s.route)}),this.displayedText=null===(i=this.utilityRoutes.find(s=>{var r;return null===(r=e.url)||void 0===r?void 0:r.includes(s.route)}))||void 0===i?void 0:i.title)}),this.translateService.localeChange.subscribe(()=>{this.selectedLanguage=this.translateService.getLanguage()})}localize(e){this.translateService.use(e)}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(qs),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-header"]],decls:18,vars:17,consts:[[4,"appResponsiveTemplate"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"me-2","header__flags-icon",3,"src"],[1,"me-2","header__flags-icon"],[4,"ngTemplateOutlet"],["mat-menu-item","",3,"ngClass","click"],["class","header__flags-check"],["check",""],["ngbNav","",1,"nav-tabs","header__nav",3,"activeId","destroyOnHide","activeIdChange"],["nav","ngbNav"],[1,"header__logo-wrapper",3,"routerLink"],[1,"header__logo-mobile"],[1,"header__logo"],["class","header__list",4,"ngIf"],["class","header__utility-text",4,"ngIf"],[1,"header__socials-mobile"],[1,"header__socials-icon",3,"matMenuTriggerFor"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-translate"],["d","M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"],["d","M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSolicals","matMenu"],["mat-menu-item",""],["href","https://www.linkedin.com/in/ilya-babunov-a57795227/","target","_blank","rel","noopener noreferrer"],[1,"header__socials-icon"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-linkedin"],["d","M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"],["href","https://github.com/McFck/mcfck.github.io","target","_blank","rel","noopener noreferrer"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-github"],["d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"],["href","https://t.me/IlyaIsMyName","target","_blank","rel","noopener noreferrer"],["xmlns","http://www.w3.org/2000/svg","width","20","height","20","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-telegram"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"],[3,"ngbNavOutlet"],[1,"header__list"],[3,"active","ngbNavItem","destroyOnHide",4,"ngFor","ngForOf"],[3,"ngbNavItem","destroyOnHide"],["ngbNavLink","",3,"routerLink"],[1,"header__utility-text"],[1,"header__logo-sub"],[1,"header__socials"],["xmlns","http://www.w3.org/2000/svg","width","22","height","22","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-translate"],["href","https://www.linkedin.com/in/ilya-babunov-a57795227/","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["href","https://github.com/McFck/mcfck.github.io","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["href","https://t.me/IlyaIsMyName","triggers","mouseenter:mouseleave","target","_blank","rel","noopener noreferrer",1,"header__socials-icon",3,"ngbTooltip"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-check2"],["d","M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"]],template:function(e,i){if(1&e&&(ke(0,pye,42,9,"div",0),ke(1,_ye,33,17,"div",0),j(2,"mat-menu",null,1),j(4,"button",2),nt("click",function(){return i.localize("ru")}),je(5,"img",3),j(6,"span",4),$e(7),ct(8,"translate"),z(),ke(9,yye,1,0,"ng-container",5),z(),j(10,"button",6),nt("click",function(){return i.localize("en")}),je(11,"img",3),j(12,"span",4),$e(13),ct(14,"translate"),z(),ke(15,vye,1,0,"ng-container",5),z(),z(),ke(16,bye,2,0,"ng-template",7,8,Mn)),2&e){const s=Qt(17);ge("appResponsiveTemplate",ki(13,xye)),ae(1),ge("appResponsiveTemplate",ki(14,wye)),ae(4),ge("src","https://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Russia.svg",_i),ae(2),Mt(vt(8,9,"RU")),ae(2),ge("ngTemplateOutlet","ru"==i.selectedLanguage&&s),ae(1),ge("ngClass",bs(15,Cye,"en"==i.selectedLanguage)),ae(1),ge("src","https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg",_i),ae(2),Mt(vt(14,11,"EN")),ae(2),ge("ngTemplateOutlet","en"==i.selectedLanguage&&s)}},directives:[T3,rye,ay,os,Ma,Ax,Yd,Ch,vn,cye,Zh,QB,D_,oi,Wd,bf,cC],pipes:[Gn],styles:['.header__localization-menu{background-color:#d9d9d9}.header__utility-text[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;font-weight:700;font-size:large}.header__flags-icon[_ngcontent-%COMP%]{width:25px;margin-left:5px}.header__flags-check[_ngcontent-%COMP%]{margin-left:3px}.header__socials[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;margin-right:55px}.header__socials-mobile[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;margin-right:20px}.header__socials-icon[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;background:transparent;border:none}.header__list[_ngcontent-%COMP%]{margin-left:5px}.header__logo[_ngcontent-%COMP%], .header__logo-sub[_ngcontent-%COMP%]{font-weight:bold;font-size:2.1em;margin-left:5px}.header__logo-mobile[_ngcontent-%COMP%]{font-weight:bold;font-size:2.1em;margin-left:10px;margin-right:5px}.header__logo-wrapper[_ngcontent-%COMP%]{display:flex;cursor:pointer}.header__logo-sub[_ngcontent-%COMP%]{font-size:1.3em;margin-top:5px}.header__nav[_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.063em;font-size:.75em;background-color:#fff5f9}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}li[_ngcontent-%COMP%]:not(.active).nav-item:after{display:block;content:"";border-bottom:solid 5px #019fb6;transform:scaleX(0);transition:transform .25s ease-in-out;transform-origin:0% 50%}li[_ngcontent-%COMP%]:not(.active).nav-item{color:#666;display:inline-block;margin:.2px;text-transform:uppercase}li[_ngcontent-%COMP%]:not(.active).nav-item:hover:after{transform:scaleX(1)}li.nav-item[_ngcontent-%COMP%]:not(.active), li.nav-item.active[_ngcontent-%COMP%]{color:#666;background-color:#fff5f9;display:inline-block;margin:.2px;text-transform:uppercase}li.nav-item[_ngcontent-%COMP%]:not(.active):hover, li.nav-item.active[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.1)}ul.header__nav.nav[_ngcontent-%COMP%]{display:flex;position:relative;z-index:1000}li.nav-item[_ngcontent-%COMP%]{display:inline-block}.nav-link[_ngcontent-%COMP%], .nav-link.active[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.nav-link.active[_ngcontent-%COMP%]{background-color:#fff5f9;border-bottom:solid 5px #019fb6}.nav-tabs[_ngcontent-%COMP%]{border-bottom:unset}']}),t})(),Dye=(()=>{class t{constructor(e,i,s,r){this.router=e,this.translationService=i,this.translationPipe=s,this.titleService=r,this.title="personal",((t=!0)=>{"undefined"!=typeof window&&(t||(ry=!1),ry&&fM(!0),window.customElements.get("swiper-container")||window.customElements.define("swiper-container",jV),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Q_e))})()}ngOnInit(){setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),this.translationService.localeChange.pipe(Mm(1)).subscribe(()=>{setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),localStorage.setItem("locale",this.translationService.getLanguage())}),this.router.events.pipe(mn(e=>e instanceof Cl)).subscribe(e=>{if(setTimeout(()=>{this.titleService.setTitle(this.translationPipe.transform("TITLE"))}),localStorage.getItem("locale"))this.translationService.use(localStorage.getItem("locale"));else{const i=navigator.language.slice(0,2);yQ.includes(i)&&this.translationService.use(i)&&localStorage.setItem("locale",i)}})}}return t.\u0275fac=function(e){return new(e||t)(C(ls),C(qs),C(Gn),C(UO))},t.\u0275cmp=mt({type:t,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"main"]],template:function(e,i){1&e&&(je(0,"app-header"),j(1,"main",0),je(2,"router-outlet"),z())},directives:[Mye,n1],styles:[".container[_ngcontent-%COMP%]{width:100vw;height:100%}.main[_ngcontent-%COMP%]{height:calc(100% - 40.38px)}"]}),t})(),XV=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(C(on))},t.\u0275dir=Le({type:t,selectors:[["ng-template","name",""]],inputs:{name:"name"}}),t})();function Sye(t,n){1&t&&(j(0,"th",18),$e(1," # "),z())}function Eye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.index,i=Ie();ae(1),$t(" ",0==i.paginator.pageIndex?e+1:1+e+i.paginator.pageIndex*i.paginator.pageSize," ")}}function Tye(t,n){1&t&&(j(0,"th",20),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Thumbnail")," "))}function Aye(t,n){if(1&t&&(j(0,"td",19),je(1,"img",21),z()),2&t){const e=n.$implicit;ae(1),ge("src",e.thumbnail,_i)}}function kye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Name")," "))}function Oye(t,n){1&t&&(j(0,"div",27),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"ONGOING")," "))}function Iye(t,n){if(1&t&&(j(0,"div"),$e(1),z()),2&t){const e=Ie().$implicit;ae(1),$t(" ",e.icon," ")}}function Pye(t,n){1&t&&qn(0)}function Rye(t,n){if(1&t&&(j(0,"div"),ke(1,Pye,1,0,"ng-container",32),z()),2&t){const e=Ie().$implicit;ae(1),ge("ngTemplateOutlet",e.templateRef)}}function Nye(t,n){if(1&t&&(j(0,"span",30),ct(1,"translate"),ke(2,Iye,2,1,"div",31),ke(3,Rye,2,1,"div",31),z()),2&t){const e=n.$implicit;ge("ngbTooltip",vt(1,3,e.name)),ae(2),ge("ngIf",!e.template),ae(1),ge("ngIf",e.template)}}function Fye(t,n){if(1&t&&(j(0,"div",28),ke(1,Nye,4,5,"span",29),z()),2&t){const e=Ie().$implicit;ae(1),ge("ngForOf",e.badge)}}function Lye(t,n){if(1&t&&(j(0,"td",19),j(1,"div",22),j(2,"span",23),j(3,"a",24),ct(4,"languageContent"),$e(5),z(),ke(6,Oye,3,3,"div",25),ke(7,Fye,2,1,"div",26),z(),z(),z()),2&t){const e=n.$implicit,i=Ie();ae(3),yi("href",ml(4,4,e.url,"ru",e.malUrl),_i),ae(2),$t(" ",e[i.titleFieldName]," "),ae(1),ge("ngIf","ongoing"===e.status),ae(1),ge("ngIf",!i.isSimplifiedView)}}function Bye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Score")," "))}function Vye(t,n){if(1&t&&(j(0,"td",19),$e(1),ct(2,"translate"),z()),2&t){const e=n.$implicit;ae(1),$t(" ",void 0===e.score?vt(2,1,"NOT RATED"):e.score," ")}}function Hye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Episodes")," "))}function jye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),hl(" ",e.episodesWatched," / ",0===e.episodes?"?":e.episodes," ")}}function zye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Chapters")," "))}function Gye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),hl(" ",e.chaptersRead," / ",0===e.chapters?"?":e.chapters," ")}}function $ye(t,n){1&t&&(j(0,"th",18),$e(1),ct(2,"translate"),z()),2&t&&(ae(1),$t(" ",vt(2,1,"Kind")," "))}function Uye(t,n){if(1&t&&(j(0,"td",19),$e(1),ct(2,"translate"),z()),2&t){const e=n.$implicit;ae(1),$t(" ",vt(2,1,e.kind)," ")}}function Wye(t,n){1&t&&je(0,"th",18)}function Yye(t,n){if(1&t&&(j(0,"td",19),$e(1),z()),2&t){const e=n.$implicit;ae(1),$t(" ",e.updatedAt," ")}}function qye(t,n){1&t&&je(0,"tr",33)}function Xye(t,n){if(1&t&&je(0,"tr",34),2&t){const e=n.$implicit;gt("anime-stats-table__gold",10===e.score)("anime-stats-table__silver",9===e.score)("anime-stats-table__bronze",8===e.score)}}function Qye(t,n){1&t&&(j(0,"tr",35),j(1,"td",36),$e(2),ct(3,"translate"),z(),z()),2&t&&(ae(2),Mt(vt(3,1,"NOTHING FOUND")))}function Kye(t,n){1&t&&(pn(),j(0,"svg",37),j(1,"mask",38),je(2,"rect",39),z(),j(3,"g",40),je(4,"path",41),j(5,"mask",42),je(6,"path",43),z(),j(7,"g",44),je(8,"path",45),z(),z(),z())}const Jye=function(){return[30,60,100]};let Zye=(()=>{class t extends IV{constructor(e,i,s,r){super(i,s,e,r),this.defaultSort="score",this.onFilterChanges=new ot,this.defaultColumns=["orderNumber","thumbnail","name","score","episodes","kind"],this.mobileColumns=["orderNumber","name","score"],this.displayedColumns=[...this.defaultColumns],this.titleFieldName="name",this.isSimplifiedView=!1}ngOnInit(){this.isAnime||(this.defaultColumns=["orderNumber","thumbnail","name","score","chapters","kind"],this.displayedColumns=[...this.defaultColumns]),this.onInitRoutine()}ngAfterViewInit(){this.tableData.forEach(e=>{var i;e.badge=[],null===(i=e.text)||void 0===i||i.split(", ").forEach(s=>{if(eP[s]){let o=eP[s];o.name=s,o&&(o.template&&(o.templateRef=this.getTemplateRefByName(o.icon)),e.badge.push(o))}})}),this.dataSource=new lM(this.tableData),this.afterViewInitRoutine(),this.cdr.detectChanges()}getTemplateRefByName(e){const i=this._templates.find(s=>s.name===e);return i?i.template:null}updateTitleFieldName(){this.titleFieldName="ru"===this.translationService.getLanguage()?"russian":"name"}sortReset(e){!e.direction&&e.active!==this.defaultSort&&(this.sort.active=this.defaultSort,this.sort.direction="desc")}}return t.\u0275fac=function(e){return new(e||t)(C(qs),C(Gt),C(Gn),C(nc))},t.\u0275cmp=mt({type:t,selectors:[["app-anime-stats-table"]],viewQuery:function(e,i){if(1&e&&Yt(XV,5),2&e){let s;st(s=rt())&&(i._templates=s)}},inputs:{tableData:"tableData",isAnime:"isAnime",defaultSort:"defaultSort"},outputs:{onFilterChanges:"onFilterChanges"},features:[Je],decls:31,vars:7,consts:[[1,"mat-elevation-z8"],["mat-table","","matSort","","matSortDirection","desc",1,"anime-stats-table__table",3,"dataSource","matSortActive","matSortChange"],["matColumnDef","orderNumber"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","thumbnail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","score"],["matColumnDef","episodes"],["matColumnDef","chapters"],["matColumnDef","kind"],["matColumnDef","updatedAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"anime-stats-table__gold","anime-stats-table__silver","anime-stats-table__bronze",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["aria-label","Select page of",1,"anime-stats-table__paginator",3,"pageSize","pageSizeOptions"],["class","anime-stats-table__emoji","name","japan"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"anime-stats-table__image",3,"src"],[1,"anime-stats-table__name-row"],[1,"anime-stats-table__name-wrapper"],["target","_blank","rel","noopener noreferrer",1,"anime-stats-table__name",3,"href"],["class","anime-stats-table__ongoing",4,"ngIf"],["class","anime-stats-table__emoji-wrapper",4,"ngIf"],[1,"anime-stats-table__ongoing"],[1,"anime-stats-table__emoji-wrapper"],["class","anime-stats-table__emoji",3,"ngbTooltip",4,"ngFor","ngForOf"],[1,"anime-stats-table__emoji",3,"ngbTooltip"],[4,"ngIf"],[4,"ngTemplateOutlet"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],["colspan","6",1,"mat-cell","anime-stats-table__nothing-found"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["id","mask0_270_60913","maskUnits","userSpaceOnUse","x","0","y","0","width","20","height","15",2,"mask-type","luminance"],["width","20","height","15","fill","white"],["mask","url(#mask0_270_60913)"],["fill-rule","evenodd","clip-rule","evenodd","d","M0 0V15H20V0H0Z","fill","#F7FCFF"],["id","mask1_270_60913","maskUnits","userSpaceOnUse","x","0","y","0","width","20","height","15",2,"mask-type","luminance"],["fill-rule","evenodd","clip-rule","evenodd","d","M0 0V15H20V0H0Z","fill","white"],["mask","url(#mask1_270_60913)"],["fill-rule","evenodd","clip-rule","evenodd","d","M10 12.1875C12.5888 12.1875 14.6875 10.0888 14.6875 7.5C14.6875 4.91117 12.5888 2.8125 10 2.8125C7.41117 2.8125 5.3125 4.91117 5.3125 7.5C5.3125 10.0888 7.41117 12.1875 10 12.1875Z","fill","#E31D1C"]],template:function(e,i){1&e&&(j(0,"div",0),j(1,"table",1),nt("matSortChange",function(r){return i.sortReset(r)}),Rn(2,2),ke(3,Sye,2,0,"th",3),ke(4,Eye,2,1,"td",4),Nn(),Rn(5,5),ke(6,Tye,3,3,"th",6),ke(7,Aye,2,1,"td",4),Nn(),Rn(8,7),ke(9,kye,3,3,"th",3),ke(10,Lye,8,8,"td",4),Nn(),Rn(11,8),ke(12,Bye,3,3,"th",3),ke(13,Vye,3,3,"td",4),Nn(),Rn(14,9),ke(15,Hye,3,3,"th",3),ke(16,jye,2,2,"td",4),Nn(),Rn(17,10),ke(18,zye,3,3,"th",3),ke(19,Gye,2,2,"td",4),Nn(),Rn(20,11),ke(21,$ye,3,3,"th",3),ke(22,Uye,3,3,"td",4),Nn(),Rn(23,12),ke(24,Wye,1,0,"th",3),ke(25,Yye,2,1,"td",4),Nn(),ke(26,qye,1,0,"tr",13),ke(27,Xye,1,6,"tr",14),ke(28,Qye,4,3,"tr",15),z(),je(29,"mat-paginator",16),z(),ke(30,Kye,9,0,"ng-template",17)),2&e&&(ae(1),ge("dataSource",i.dataSource)("matSortActive",i.defaultSort),ae(25),ge("matHeaderRowDef",i.displayedColumns),ae(1),ge("matRowDefColumns",i.displayedColumns),ae(2),ge("pageSize",30)("pageSizeOptions",ki(6,Jye)))},directives:[nM,Sf,K_,Q_,X_,iM,sM,aM,kV,XV,J_,Z3,Z_,vn,oi,cC,os,rM,oM],pipes:[Gn,Wa],styles:[".anime-stats-table__table[_ngcontent-%COMP%], .anime-stats-table__paginator[_ngcontent-%COMP%]{background-color:#e5fbff29}.anime-stats-table__ongoing[_ngcontent-%COMP%]{color:#0a4f0a;font-size:10px;margin-right:3px}.anime-stats-table__image[_ngcontent-%COMP%]{width:48px;height:75px}.anime-stats-table__emoji[_ngcontent-%COMP%]{font-size:15px;display:flex;height:100%;margin-right:3px;height:-moz-fit-content;height:fit-content;cursor:pointer}.anime-stats-table__emoji-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.anime-stats-table__name[_ngcontent-%COMP%]{margin-right:5px}.anime-stats-table__name-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.anime-stats-table__name-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-width:300px}.anime-stats-table__gold[_ngcontent-%COMP%]{background-color:#ffd70029}.anime-stats-table__silver[_ngcontent-%COMP%]{background-color:#b2b3bf}.anime-stats-table__bronze[_ngcontent-%COMP%]{background-color:#cd7f3247}.anime-stats-table__nothing-found[_ngcontent-%COMP%]{word-break:break-all}table.mat-table[_ngcontent-%COMP%]{width:100%;border-spacing:0}"],changeDetection:0}),t})(),n5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[ei,Sn,kd,oc],oc,Sn]}),t})(),pve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),c5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[o2,Ld,Sn,xw,ei],o2,Sn,xw,pve]}),t})(),d5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Sn],Sn]}),t})(),p5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx,Pd]]}),t})(),w5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[Dx]]}),t})(),s1e=(()=>{class t{constructor(e,i){dd(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:oo,useValue:Object.assign(Object.assign({},Sx),e)},{provide:Ex,useValue:i,multi:!0},{provide:Fl,useValue:!0}]:[{provide:oo,useValue:Object.assign(Object.assign({},Sx),e)},{provide:Ex,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(Me(Fl),Me(xs))},t.\u0275mod=kt({type:t}),t.\u0275inj=St({imports:[[p5,CN,w5],p5,CN,w5]}),t})();var r1e=function(){function t(){this.getFragmentDoc=pm(mJ)}return t.prototype.batch=function(n){var s,e=this;return this.performTransaction(function(){return s=n.update(e)},"string"==typeof n.optimistic?n.optimistic:!1===n.optimistic?null:void 0),s},t.prototype.recordOptimisticTransaction=function(n,e){this.performTransaction(n,e)},t.prototype.transformDocument=function(n){return n},t.prototype.identify=function(n){},t.prototype.gc=function(){return[]},t.prototype.modify=function(n){return!1},t.prototype.transformForLink=function(n){return n},t.prototype.readQuery=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read(et(et({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))},t.prototype.readFragment=function(n,e){return void 0===e&&(e=!!n.optimistic),this.read(et(et({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:n.id,optimistic:e}))},t.prototype.writeQuery=function(n){var e=n.id,i=n.data,s=Tl(n,["id","data"]);return this.write(Object.assign(s,{dataId:e||"ROOT_QUERY",result:i}))},t.prototype.writeFragment=function(n){var e=n.id,i=n.data,s=n.fragment,r=n.fragmentName,o=Tl(n,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(s,r),dataId:e,result:i}))},t.prototype.updateQuery=function(n,e){return this.batch({update:function(i){var s=i.readQuery(n),r=e(s);return null==r?s:(i.writeQuery(et(et({},n),{data:r})),r)}})},t.prototype.updateFragment=function(n,e){return this.batch({update:function(i){var s=i.readFragment(n),r=e(s);return null==r?s:(i.writeFragment(et(et({},n),{data:r})),r)}})},t}(),C5=function(n,e,i,s){this.message=n,this.path=e,this.query=i,this.variables=s};function vM(t){return __DEV__&&function(t){var n=new Set([t]);n.forEach(function(e){Ii(e)&&function(t){if(__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(i){Ii(e[i])&&n.add(e[i])})})}(t),t}var hy=Object.create(null),bM=function(){return hy},M5=Object.create(null),Pf=function(){function t(n,e){var i=this;this.policies=n,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(s,r){return vM(Un(s)?i.get(s.__ref,r):s&&s[r])},this.canRead=function(s){return Un(s)?i.has(s.__ref):"object"==typeof s},this.toReference=function(s,r){if("string"==typeof s)return bd(s);if(Un(s))return s;var o=i.policies.identify(s)[0];if(o){var a=bd(o);return r&&i.merge(o,s),a}}}return t.prototype.toObject=function(){return et({},this.data)},t.prototype.has=function(n){return void 0!==this.lookup(n,!0)},t.prototype.get=function(n,e){if(this.group.depend(n,e),us.call(this.data,n)){var i=this.data[n];if(i&&us.call(i,e))return i[e]}return"__typename"===e&&us.call(this.policies.rootTypenamesById,n)?this.policies.rootTypenamesById[n]:this instanceof Ja?this.parent.get(n,e):void 0},t.prototype.lookup=function(n,e){return e&&this.group.depend(n,"__exists"),us.call(this.data,n)?this.data[n]:this instanceof Ja?this.parent.lookup(n,e):this.policies.rootTypenamesById[n]?Object.create(null):void 0},t.prototype.merge=function(n,e){var s,i=this;Un(n)&&(n=n.__ref),Un(e)&&(e=e.__ref);var r="string"==typeof n?this.lookup(s=n):n,o="string"==typeof e?this.lookup(s=e):e;if(o){__DEV__?Rt("string"==typeof s,"store.merge expects a string ID"):Rt("string"==typeof s,1);var a=new Md(c1e).merge(r,o);if(this.data[s]=a,a!==r&&(delete this.refs[s],this.group.caching)){var l=Object.create(null);r||(l.__exists=1),Object.keys(o).forEach(function(c){if(!r||r[c]!==a[c]){l[c]=1;var d=Na(c);d!==c&&!i.policies.hasKeyArgs(a.__typename,d)&&(l[d]=1),void 0===a[c]&&!(i instanceof Ja)&&delete a[c]}}),l.__typename&&!(r&&r.__typename)&&this.policies.rootTypenamesById[s]===a.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return i.group.dirty(s,c)})}}},t.prototype.modify=function(n,e){var i=this,s=this.lookup(n);if(s){var r=Object.create(null),o=!1,a=!0,l={DELETE:hy,INVALIDATE:M5,isReference:Un,toReference:this.toReference,canRead:this.canRead,readField:function(c,d){return i.policies.readField("string"==typeof c?{fieldName:c,from:d||bd(n)}:c,{store:i})}};if(Object.keys(s).forEach(function(c){var d=Na(c),u=s[c];if(void 0!==u){var f="function"==typeof e?e:e[c]||e[d];if(f){var _=f===bM?hy:f(vM(u),et(et({},l),{fieldName:d,storeFieldName:c,storage:i.getStorage(n,c)}));_===M5?i.group.dirty(n,c):(_===hy&&(_=void 0),_!==u&&(r[c]=_,o=!0,u=_))}void 0!==u&&(a=!1)}}),o)return this.merge(n,r),a&&(this instanceof Ja?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1},t.prototype.delete=function(n,e,i){var s,r=this.lookup(n);if(r){var o=this.getFieldValue(r,"__typename"),a=e&&i?this.policies.getStoreFieldName({typename:o,fieldName:e,args:i}):e;return this.modify(n,a?((s={})[a]=bM,s):bM)}return!1},t.prototype.evict=function(n,e){var i=!1;return n.id&&(us.call(this.data,n.id)&&(i=this.delete(n.id,n.fieldName,n.args)),this instanceof Ja&&this!==e&&(i=this.parent.evict(n,e)||i),(n.fieldName||i)&&this.group.dirty(n.id,n.fieldName||"__exists")),i},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var n=this,e=this.toObject(),i=[];return this.getRootIdSet().forEach(function(s){us.call(n.policies.rootTypenamesById,s)||i.push(s)}),i.length&&(e.__META={extraRootIds:i.sort()}),e},t.prototype.replace=function(n){var e=this;if(Object.keys(this.data).forEach(function(r){n&&us.call(n,r)||e.delete(r)}),n){var i=n.__META,s=Tl(n,["__META"]);Object.keys(s).forEach(function(r){e.merge(r,s[r])}),i&&i.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(n){return this.rootIds[n]=(this.rootIds[n]||0)+1},t.prototype.release=function(n){if(this.rootIds[n]>0){var e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0},t.prototype.getRootIdSet=function(n){return void 0===n&&(n=new Set),Object.keys(this.rootIds).forEach(n.add,n),this instanceof Ja?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n},t.prototype.gc=function(){var n=this,e=this.getRootIdSet(),i=this.toObject();e.forEach(function(o){us.call(i,o)&&(Object.keys(n.findChildRefIds(o)).forEach(e.add,e),delete i[o])});var s=Object.keys(i);if(s.length){for(var r=this;r instanceof Ja;)r=r.parent;s.forEach(function(o){return r.delete(o)})}return s},t.prototype.findChildRefIds=function(n){if(!us.call(this.refs,n)){var e=this.refs[n]=Object.create(null),i=this.data[n];if(!i)return e;var s=new Set([i]);s.forEach(function(r){Un(r)&&(e[r.__ref]=!0),Ii(r)&&Object.keys(r).forEach(function(o){var a=r[o];Ii(a)&&s.add(a)})})}return this.refs[n]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),D5=function(){function t(n,e){void 0===e&&(e=null),this.caching=n,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?LR():null,this.keyMaker=new Fh(Il)},t.prototype.depend=function(n,e){if(this.d){this.d(xM(n,e));var i=Na(e);i!==e&&this.d(xM(n,i)),this.parent&&this.parent.depend(n,e)}},t.prototype.dirty=function(n,e){this.d&&this.d.dirty(xM(n,e),"__exists"===e?"forget":"setDirty")},t}();function xM(t,n){return n+"#"+t}function S5(t,n){Rf(t)&&t.group.depend(n,"__exists")}!function(t){var n=function(e){function i(s){var o=s.resultCaching,l=s.seed,c=e.call(this,s.policies,new D5(void 0===o||o))||this;return c.stump=new l1e(c),c.storageTrie=new Fh(Il),l&&c.replace(l),c}return io(i,e),i.prototype.addLayer=function(s,r){return this.stump.addLayer(s,r)},i.prototype.removeLayer=function(){return this},i.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},i}(t);t.Root=n}(Pf||(Pf={}));var Ja=function(t){function n(e,i,s,r){var o=t.call(this,i.policies,r)||this;return o.id=e,o.parent=i,o.replay=s,o.group=r,s(o),o}return io(n,t),n.prototype.addLayer=function(e,i){return new n(e,this,i,this.group)},n.prototype.removeLayer=function(e){var i=this,s=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(r){var o=i.data[r],a=s.lookup(r);a?o?o!==a&&Object.keys(o).forEach(function(l){ds(o[l],a[l])||i.group.dirty(r,l)}):(i.group.dirty(r,"__exists"),Object.keys(a).forEach(function(l){i.group.dirty(r,l)})):i.delete(r)}),s):s===this.parent?this:s.addLayer(this.id,this.replay)},n.prototype.toObject=function(){return et(et({},this.parent.toObject()),this.data)},n.prototype.findChildRefIds=function(e){var i=this.parent.findChildRefIds(e);return us.call(this.data,e)?et(et({},i),t.prototype.findChildRefIds.call(this,e)):i},n.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},n}(Pf),l1e=function(t){function n(e){return t.call(this,"EntityStore.Stump",e,function(){},new D5(e.group.caching,e.group))||this}return io(n,t),n.prototype.removeLayer=function(){return this},n.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},n}(Ja);function c1e(t,n,e){var i=t[e],s=n[e];return ds(i,s)?i:s}function Rf(t){return!!(t instanceof Pf&&t.group.caching)}function E5(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var d1e=function(){function t(n){var e=this;this.knownResults=new(Il?WeakMap:Map),this.config=cm(n,{addTypename:!1!==n.addTypename,canonizeResults:cR(n)}),this.canon=n.canon||new J1,this.executeSelectionSet=pm(function(i){var s,r=i.context.canonizeResults,o=E5(i);o[3]=!r;var a=(s=e.executeSelectionSet).peek.apply(s,o);return a?r?et(et({},a),{result:e.canon.admit(a.result)}):a:(S5(i.context.store,i.enclosingRef.__ref),e.execSelectionSetImpl(i))},{max:this.config.resultCacheMaxSize,keyArgs:E5,makeCacheKey:function(i,s,r,o){if(Rf(r.store))return r.store.makeCacheKey(i,Un(s)?s.__ref:s,r.varString,o)}}),this.executeSubSelectedArray=pm(function(i){return S5(i.context.store,i.enclosingRef.__ref),e.execSubSelectedArrayImpl(i)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(i){var s=i.field,r=i.array,o=i.context;if(Rf(o.store))return o.store.makeCacheKey(s,r,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new J1},t.prototype.diffQueryAgainstStore=function(n){var e=n.store,i=n.query,s=n.rootId,r=void 0===s?"ROOT_QUERY":s,o=n.variables,a=n.returnPartialData,l=void 0===a||a,c=n.canonizeResults,d=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;o=et(et({},G1(UP(i))),o);var T,f=bd(r),_=this.executeSelectionSet({selectionSet:z1(i).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:e,query:i,policies:u,variables:o,varString:Pl(o),canonizeResults:d,fragmentMap:im(om(i))}});if(_.missing&&(T=[new C5(u1e(_.missing),_.missing,i,o)],!l))throw T[0];return{result:_.result,complete:!T,missing:T}},t.prototype.isFresh=function(n,e,i,s){if(Rf(s.store)&&this.knownResults.get(n)===i){var r=this.executeSelectionSet.peek(i,e,s,this.canon.isKnown(n));if(r&&n===r.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(n){var e=this,i=n.selectionSet,s=n.objectOrReference,r=n.enclosingRef,o=n.context;if(Un(s)&&!o.policies.rootTypenamesById[s.__ref]&&!o.store.has(s.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(s.__ref," object")};var f,a=o.variables,l=o.policies,d=o.store.getFieldValue(s,"__typename"),u=[],_=new Md;function T(ue,Te){var Fe;return ue.missing&&(f=_.merge(f,((Fe={})[Te]=ue.missing,Fe))),ue.result}this.config.addTypename&&"string"==typeof d&&!l.rootIdsByTypename[d]&&u.push({__typename:d});var k=new Set(i.selections);k.forEach(function(ue){var Te,Fe;if(dm(ue,a))if(ea(ue)){var Be=l.readField({fieldName:ue.name.value,field:ue,variables:o.variables,from:s},o),Ue=Ol(ue);void 0===Be?sx.added(ue)||(f=_.merge(f,((Te={})[Ue]="Can't find field '".concat(ue.name.value,"' on ").concat(Un(s)?s.__ref+" object":"object "+JSON.stringify(s,null,2)),Te))):Ni(Be)?Be=T(e.executeSubSelectedArray({field:ue,array:Be,enclosingRef:r,context:o}),Ue):ue.selectionSet?null!=Be&&(Be=T(e.executeSelectionSet({selectionSet:ue.selectionSet,objectOrReference:Be,enclosingRef:Un(Be)?Be:r,context:o}),Ue)):o.canonizeResults&&(Be=e.canon.pass(Be)),void 0!==Be&&u.push(((Fe={})[Ue]=Be,Fe))}else{var He=B1(ue,o.fragmentMap);He&&l.fragmentMatches(He,d)&&He.selectionSet.selections.forEach(k.add,k)}});var L={result:Q1(u),missing:f},J=o.canonizeResults?this.canon.admit(L):vM(L);return J.result&&this.knownResults.set(J.result,i),J},t.prototype.execSubSelectedArrayImpl=function(n){var a,e=this,i=n.field,s=n.array,r=n.enclosingRef,o=n.context,l=new Md;function c(d,u){var f;return d.missing&&(a=l.merge(a,((f={})[u]=d.missing,f))),d.result}return i.selectionSet&&(s=s.filter(o.store.canRead)),s=s.map(function(d,u){return null===d?null:Ni(d)?c(e.executeSubSelectedArray({field:i,array:d,enclosingRef:r,context:o}),u):i.selectionSet?c(e.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:d,enclosingRef:Un(d)?d:r,context:o}),u):(__DEV__&&function(t,n,e){if(!n.selectionSet){var i=new Set([e]);i.forEach(function(s){Ii(s)&&(__DEV__?Rt(!Un(s),"Missing selection set for object of type ".concat(function(t,n){return Un(n)?t.get(n.__ref,"__typename"):n&&n.__typename}(t,s)," returned for query field ").concat(n.name.value)):Rt(!Un(s),5),Object.values(s).forEach(i.add,i))})}}(o.store,i,d),d)}),{result:o.canonizeResults?this.canon.admit(s):s,missing:a}},t}();function u1e(t){try{JSON.stringify(t,function(n,e){if("string"==typeof e)throw e;return e})}catch(n){return n}}var T5=Object.create(null);function wM(t){var n=JSON.stringify(t);return T5[n]||(T5[n]=Object.create(null))}function A5(t){var n=wM(t);return n.keyFieldsFn||(n.keyFieldsFn=function(e,i){var s=function(o,a){return i.readField(a,o)},r=i.keyObject=CM(t,function(o){var a=su(i.storeObject,o,s);return void 0===a&&e!==i.storeObject&&us.call(e,o[0])&&(a=su(e,o,I5)),__DEV__?Rt(void 0!==a,"Missing field '".concat(o.join("."),"' while extracting keyFields from ").concat(JSON.stringify(e))):Rt(void 0!==a,2),a});return"".concat(i.typename,":").concat(JSON.stringify(r))})}function k5(t){var n=wM(t);return n.keyArgsFn||(n.keyArgsFn=function(e,i){var s=i.field,r=i.variables,o=i.fieldName,a=CM(t,function(c){var d=c[0],u=d.charAt(0);if("@"!==u)if("$"!==u){if(e)return su(e,c)}else{var k=d.slice(1);if(r&&us.call(r,k)){var $=c.slice(0);return $[0]=k,su(r,$)}}else if(s&&Rl(s.directives)){var f=d.slice(1),_=s.directives.find(function(L){return L.name.value===f}),T=_&&sm(_,r);return T&&su(T,c.slice(1))}}),l=JSON.stringify(a);return(e||"{}"!==l)&&(o+=":"+l),o})}function CM(t,n){var e=new Md;return O5(t).reduce(function(i,s){var r,o=n(s);if(void 0!==o){for(var a=s.length-1;a>=0;--a)(r={})[s[a]]=o,o=r;i=e.merge(i,o)}return i},Object.create(null))}function O5(t){var n=wM(t);if(!n.paths){var e=n.paths=[],i=[];t.forEach(function(s,r){Ni(s)?(O5(s).forEach(function(o){return e.push(i.concat(o))}),i.length=0):(i.push(s),Ni(t[r+1])||(e.push(i.slice(0)),i.length=0))})}return n.paths}function I5(t,n){return t[n]}function su(t,n,e){return e=e||I5,P5(n.reduce(function i(s,r){return Ni(s)?s.map(function(o){return i(o,r)}):s&&e(s,r)},t))}function P5(t){return Ii(t)?Ni(t)?t.map(P5):CM(Object.keys(t).sort(),function(n){return su(t,n)}):t}function MM(t){return void 0!==t.args?t.args:t.field?sm(t.field,t.variables):null}V1.setStringify(Pl);var p1e=function(){},R5=function(t,n){return n.fieldName},N5=function(t,n,e){return(0,e.mergeObjects)(t,n)},F5=function(t,n){return n},g1e=function(){function t(n){this.config=n,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=et({dataIdFromObject:aR},n),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),n.possibleTypes&&this.addPossibleTypes(n.possibleTypes),n.typePolicies&&this.addTypePolicies(n.typePolicies)}return t.prototype.identify=function(n,e){var i,s=this,r=e&&(e.typename||(null===(i=e.storeObject)||void 0===i?void 0:i.__typename))||n.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var l,o=e&&e.storeObject||n,a=et(et({},e),{typename:r,storeObject:o,readField:e&&e.readField||function(){var f=DM(arguments,o);return s.readField(f,{store:s.cache.data,variables:f.variables})}}),c=r&&this.getTypePolicy(r),d=c&&c.keyFn||this.config.dataIdFromObject;d;){var u=d(n,a);if(!Ni(u)){l=u;break}d=A5(u)}return l=l?String(l):void 0,a.keyObject?[l,a.keyObject]:[l]},t.prototype.addTypePolicies=function(n){var e=this;Object.keys(n).forEach(function(i){var s=n[i],r=s.queryType,o=s.mutationType,a=s.subscriptionType,l=Tl(s,["queryType","mutationType","subscriptionType"]);r&&e.setRootTypename("Query",i),o&&e.setRootTypename("Mutation",i),a&&e.setRootTypename("Subscription",i),us.call(e.toBeAdded,i)?e.toBeAdded[i].push(l):e.toBeAdded[i]=[l]})},t.prototype.updateTypePolicy=function(n,e){var i=this,s=this.getTypePolicy(n),r=e.keyFields,o=e.fields;function a(l,c){l.merge="function"==typeof c?c:!0===c?N5:!1===c?F5:l.merge}a(s,e.merge),s.keyFn=!1===r?p1e:Ni(r)?A5(r):"function"==typeof r?r:s.keyFn,o&&Object.keys(o).forEach(function(l){var c=i.getFieldPolicy(n,l,!0),d=o[l];if("function"==typeof d)c.read=d;else{var u=d.keyArgs,f=d.read,_=d.merge;c.keyFn=!1===u?R5:Ni(u)?k5(u):"function"==typeof u?u:c.keyFn,"function"==typeof f&&(c.read=f),a(c,_)}c.read&&c.merge&&(c.keyFn=c.keyFn||R5)})},t.prototype.setRootTypename=function(n,e){void 0===e&&(e=n);var i="ROOT_"+n.toUpperCase(),s=this.rootTypenamesById[i];e!==s&&(__DEV__?Rt(!s||s===n,"Cannot change root ".concat(n," __typename more than once")):Rt(!s||s===n,3),s&&delete this.rootIdsByTypename[s],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)},t.prototype.addPossibleTypes=function(n){var e=this;this.usingPossibleTypes=!0,Object.keys(n).forEach(function(i){e.getSupertypeSet(i,!0),n[i].forEach(function(s){e.getSupertypeSet(s,!0).add(i);var r=s.match(dR);(!r||r[0]!==s)&&e.fuzzySubtypes.set(s,new RegExp(s))})})},t.prototype.getTypePolicy=function(n){var e=this;if(!us.call(this.typePolicies,n)){var i=this.typePolicies[n]=Object.create(null);i.fields=Object.create(null);var s=this.supertypeMap.get(n);s&&s.size&&s.forEach(function(o){var a=e.getTypePolicy(o),l=a.fields,c=Tl(a,["fields"]);Object.assign(i,c),Object.assign(i.fields,l)})}var r=this.toBeAdded[n];return r&&r.length&&r.splice(0).forEach(function(o){e.updateTypePolicy(n,o)}),this.typePolicies[n]},t.prototype.getFieldPolicy=function(n,e,i){if(n){var s=this.getTypePolicy(n).fields;return s[e]||i&&(s[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(n,e){var i=this.supertypeMap.get(n);return!i&&e&&this.supertypeMap.set(n,i=new Set),i},t.prototype.fragmentMatches=function(n,e,i,s){var r=this;if(!n.typeCondition)return!0;if(!e)return!1;var o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(e,!0),l=[a],c=function(T){var k=r.getSupertypeSet(T,!1);k&&k.size&&l.indexOf(k)<0&&l.push(k)},d=!(!i||!this.fuzzySubtypes.size),u=!1,f=0;f1?t[1]:n}:(o=et({},i),us.call(o,"from")||(o.from=n)),__DEV__&&void 0===o.from&&__DEV__&&Rt.warn("Undefined 'from' passed to readField with arguments ".concat(function(t){var n=rx("stringifyForDisplay");return JSON.stringify(t,function(e,i){return void 0===i?n:i}).split(JSON.stringify(n)).join("")}(Array.from(t)))),void 0===o.variables&&(o.variables=e),o}function B5(t){return function(e,i){if(Ni(e)||Ni(i))throw __DEV__?new Qn("Cannot automatically merge arrays"):new Qn(4);if(Ii(e)&&Ii(i)){var s=t.getFieldValue(e,"__typename"),r=t.getFieldValue(i,"__typename");if(s&&r&&s!==r)return i;if(Un(e)&&Dd(i))return t.merge(e.__ref,i),e;if(Dd(e)&&Un(i))return t.merge(e,i.__ref),i;if(Dd(e)&&Dd(i))return et(et({},e),i)}return i}}function SM(t,n,e){var i="".concat(n).concat(e),s=t.flavors.get(i);return s||t.flavors.set(i,s=t.clientOnly===n&&t.deferred===e?t:et(et({},t),{clientOnly:n,deferred:e})),s}var m1e=function(){function t(n,e){this.cache=n,this.reader=e}return t.prototype.writeToStore=function(n,e){var i=this,s=e.query,r=e.result,o=e.dataId,a=e.variables,l=e.overwrite,c=Rh(s),d=new Md;a=et(et({},G1(c)),a);var u={store:n,written:Object.create(null),merge:function(_,T){return d.merge(_,T)},variables:a,varString:Pl(a),fragmentMap:im(om(s)),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:r||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!Un(f))throw __DEV__?new Qn("Could not identify object ".concat(JSON.stringify(r))):new Qn(6);return u.incomingById.forEach(function(_,T){var k=_.storeObject,$=_.mergeTree,L=_.fieldNodeSet,J=bd(T);if($&&$.map.size){var ue=i.applyMerges($,J,k,u);if(Un(ue))return;k=ue}if(__DEV__&&!u.overwrite){var Te=Object.create(null);L.forEach(function(Ue){Ue.selectionSet&&(Te[Ue.name.value]=!0)}),Object.keys(k).forEach(function(Ue){(function(Ue){return!0===Te[Na(Ue)]})(Ue)&&!function(Ue){var He=$&&$.map.get(Ue);return Boolean(He&&He.info&&He.info.merge)}(Ue)&&function(t,n,e,i){var s=function(u){var f=i.getFieldValue(u,e);return"object"==typeof f&&f},r=s(t);if(r){var o=s(n);if(o&&!Un(r)&&!ds(r,o)&&!Object.keys(r).every(function(u){return void 0!==i.getFieldValue(o,u)})){var a=i.getFieldValue(t,"__typename")||i.getFieldValue(n,"__typename"),l=Na(e),c="".concat(a,".").concat(l);if(!z5.has(c)){z5.add(c);var d=[];!Ni(r)&&!Ni(o)&&[r,o].forEach(function(u){var f=i.getFieldValue(u,"__typename");"string"==typeof f&&!d.includes(f)&&d.push(f)}),__DEV__&&Rt.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(a," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(r).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(J,k,Ue,u.store)})}n.merge(T,k)}),n.retain(f.__ref),f},t.prototype.processSelectionSet=function(n){var e=this,i=n.dataId,s=n.result,r=n.selectionSet,o=n.context,a=n.mergeTree,l=this.cache.policies,c=Object.create(null),d=i&&l.rootTypenamesById[i]||H1(s,r,o.fragmentMap)||i&&o.store.get(i,"__typename");"string"==typeof d&&(c.__typename=d);var u=function(){var ue=DM(arguments,c,o.variables);if(Un(ue.from)){var Te=o.incomingById.get(ue.from.__ref);if(Te){var Fe=l.readField(et(et({},ue),{from:Te.storeObject}),o);if(void 0!==Fe)return Fe}}return l.readField(ue,o)},f=new Set;this.flattenFields(r,s,o,d).forEach(function(ue,Te){var Fe,Be=Ol(Te),Ue=s[Be];if(f.add(Te),void 0!==Ue){var He=l.getStoreFieldName({typename:d,fieldName:Te.name.value,field:Te,variables:ue.variables}),it=H5(a,He),lt=e.processFieldValue(Ue,Te,Te.selectionSet?SM(ue,!1,!1):ue,it),Xe=void 0;Te.selectionSet&&(Un(lt)||Dd(lt))&&(Xe=u("__typename",lt));var qe=l.getMergeFunction(d,Te.name.value,Xe);qe?it.info={field:Te,typename:d,merge:qe}:j5(a,He),c=ue.merge(c,((Fe={})[He]=lt,Fe))}else __DEV__&&!ue.clientOnly&&!ue.deferred&&!sx.added(Te)&&!l.getReadFunction(d,Te.name.value)&&__DEV__&&Rt.error("Missing field '".concat(Ol(Te),"' while writing result ").concat(JSON.stringify(s,null,2)).substring(0,1e3))});try{var _=l.identify(s,{typename:d,selectionSet:r,fragmentMap:o.fragmentMap,storeObject:c,readField:u}),k=_[1];i=i||_[0],k&&(c=o.merge(c,k))}catch(ue){if(!i)throw ue}if("string"==typeof i){var $=bd(i),L=o.written[i]||(o.written[i]=[]);if(L.indexOf(r)>=0||(L.push(r),this.reader&&this.reader.isFresh(s,$,r,o)))return $;var J=o.incomingById.get(i);return J?(J.storeObject=o.merge(J.storeObject,c),J.mergeTree=EM(J.mergeTree,a),f.forEach(function(ue){return J.fieldNodeSet.add(ue)})):o.incomingById.set(i,{storeObject:c,mergeTree:fy(a)?void 0:a,fieldNodeSet:f}),$}return c},t.prototype.processFieldValue=function(n,e,i,s){var r=this;return e.selectionSet&&null!==n?Ni(n)?n.map(function(o,a){var l=r.processFieldValue(o,e,i,H5(s,a));return j5(s,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:i,mergeTree:s}):__DEV__?bR(n):n},t.prototype.flattenFields=function(n,e,i,s){void 0===s&&(s=H1(e,n,i.fragmentMap));var r=new Map,o=this.cache.policies,a=new Fh(!1);return function l(c,d){var u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(function(f){if(dm(f,i.variables)){var _=d.clientOnly,T=d.deferred;if(!(_&&T)&&Rl(f.directives)&&f.directives.forEach(function(L){var J=L.name.value;if("client"===J&&(_=!0),"defer"===J){var ue=sm(L,i.variables);(!ue||!1!==ue.if)&&(T=!0)}}),ea(f)){var k=r.get(f);k&&(_=_&&k.clientOnly,T=T&&k.deferred),r.set(f,SM(i,_,T))}else{var $=B1(f,i.fragmentMap);$&&o.fragmentMatches($,s,e,i.variables)&&l($.selectionSet,SM(i,_,T))}}}))}(n,i),r},t.prototype.applyMerges=function(n,e,i,s,r){var o,a=this;if(n.map.size&&!Un(i)){var l=Ni(i)||!Un(e)&&!Dd(e)?void 0:e,c=i;l&&!r&&(r=[Un(l)?l.__ref:l]);var d,u=function(f,_){return Ni(f)?"number"==typeof _?f[_]:void 0:s.store.getFieldValue(f,String(_))};n.map.forEach(function(f,_){var T=u(l,_),k=u(c,_);if(void 0!==k){r&&r.push(_);var $=a.applyMerges(f,T,k,s,r);$!==k&&(d=d||new Map).set(_,$),r&&Rt(r.pop()===_)}}),d&&(i=Ni(c)?c.slice(0):et({},c),d.forEach(function(f,_){i[_]=f}))}return n.info?this.cache.policies.runMergeFunction(e,i,n.info,s,r&&(o=s.store).getStorage.apply(o,r)):i},t}(),V5=[];function H5(t,n){var e=t.map;return e.has(n)||e.set(n,V5.pop()||{map:new Map}),e.get(n)}function EM(t,n){if(t===n||!n||fy(n))return t;if(!t||fy(t))return n;var e=t.info&&n.info?et(et({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,r={info:e,map:i?new Map:t.map.size?t.map:n.map};if(i){var o=new Set(n.map.keys());t.map.forEach(function(a,l){r.map.set(l,EM(a,n.map.get(l))),o.delete(l)}),o.forEach(function(a){r.map.set(a,EM(n.map.get(a),t.map.get(a)))})}return r}function fy(t){return!t||!(t.info||t.map.size)}function j5(t,n){var e=t.map,i=e.get(n);i&&fy(i)&&(V5.push(i),e.delete(n))}var z5=new Set,G5=function(t){function n(e){void 0===e&&(e={});var i=t.call(this)||this;return i.watches=new Set,i.typenameDocumentCache=new Map,i.makeVar=iee,i.txCount=0,i.config=function(t){return cm(lR,t)}(e),i.addTypename=!!i.config.addTypename,i.policies=new g1e({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return io(n,t),n.prototype.init=function(){var e=this.data=new Pf.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},n.prototype.resetResultCache=function(e){var i=this,s=this.storeReader;this.storeWriter=new m1e(this,this.storeReader=new d1e({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:cR(this.config),canon:e?void 0:s&&s.canon})),this.maybeBroadcastWatch=pm(function(r,o){return i.broadcastWatch(r,o)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var o=r.optimistic?i.optimisticData:i.data;if(Rf(o))return o.makeCacheKey(r.query,r.callback,Pl({optimistic:r.optimistic,rootId:r.rootId,variables:r.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(r){return r.resetCaching()})},n.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},n.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},n.prototype.read=function(e){var i=e.returnPartialData,s=void 0!==i&&i;try{return this.storeReader.diffQueryAgainstStore(et(et({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:s})).result||null}catch(r){if(r instanceof C5)return null;throw r}},n.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.modify=function(e){if(us.call(e,"id")&&!e.id)return!1;var i=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,i.modify(e.id||"ROOT_QUERY",e.fields)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(et(et({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},n.prototype.watch=function(e){var i=this;return this.watches.size||function(t){Hh(t).vars.forEach(function(n){return n.attachCache(t)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){i.watches.delete(e)&&!i.watches.size&&zR(i),i.maybeBroadcastWatch.forget(e)}},n.prototype.gc=function(e){Pl.reset();var i=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),i},n.prototype.retain=function(e,i){return(i?this.optimisticData:this.data).retain(e)},n.prototype.release=function(e,i){return(i?this.optimisticData:this.data).release(e)},n.prototype.identify=function(e){if(Un(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(i){__DEV__&&Rt.warn(i)}},n.prototype.evict=function(e){if(!e.id){if(us.call(e,"id"))return!1;e=et(et({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},n.prototype.reset=function(e){var i=this;return this.init(),Pl.reset(),e&&e.discardWatches?(this.watches.forEach(function(s){return i.maybeBroadcastWatch.forget(s)}),this.watches.clear(),zR(this)):this.broadcastWatches(),Promise.resolve()},n.prototype.removeOptimistic=function(e){var i=this.optimisticData.removeLayer(e);i!==this.optimisticData&&(this.optimisticData=i,this.broadcastWatches())},n.prototype.batch=function(e){var c,i=this,s=e.update,r=e.optimistic,o=void 0===r||r,a=e.removeOptimistic,l=e.onWatchUpdated,d=function(f){var T=i.data,k=i.optimisticData;++i.txCount,f&&(i.data=i.optimisticData=f);try{return c=s(i)}finally{--i.txCount,i.data=T,i.optimisticData=k}},u=new Set;return l&&!this.txCount&&this.broadcastWatches(et(et({},e),{onWatchUpdated:function(f){return u.add(f),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,d):!1===o?d(this.data):d(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),l&&u.size?(this.broadcastWatches(et(et({},e),{onWatchUpdated:function(f,_){var T=l.call(this,f,_);return!1!==T&&u.delete(f),T}})),u.size&&u.forEach(function(f){return i.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(e),c},n.prototype.performTransaction=function(e,i){return this.batch({update:e,optimistic:i||null!==i})},n.prototype.transformDocument=function(e){if(this.addTypename){var i=this.typenameDocumentCache.get(e);return i||(i=sx(e),this.typenameDocumentCache.set(e,i),this.typenameDocumentCache.set(i,i)),i}return e},n.prototype.broadcastWatches=function(e){var i=this;this.txCount||this.watches.forEach(function(s){return i.maybeBroadcastWatch(s,e)})},n.prototype.broadcastWatch=function(e,i){var s=e.lastDiff,r=this.diff(e);i&&(e.optimistic&&"string"==typeof i.optimistic&&(r.fromOptimisticTransaction=!0),i.onWatchUpdated&&!1===i.onWatchUpdated.call(this,e,r,s))||(!s||!ds(s.result,r.result))&&e.callback(e.lastDiff=r,s)},n}(r1e);class y1e extends wd{constructor(n,e){super(),this.httpClient=n,this.options=e,this.print=XP,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=i=>new li(s=>{const r=i.getContext(),o=(J,ue)=>function(...t){const n=t.find(e=>void 0!==e);return void 0===n?t[t.length-1]:n}(r[J],this.options[J],ue);let a=o("method","POST");const l=o("includeQuery",!0),c=o("includeExtensions",!1),d=o("uri","graphql"),u=o("withCredentials"),f=o("useMultipart"),_=!0===this.options.useGETForQueries,T=i.query.definitions.some(J=>"OperationDefinition"===J.kind&&"query"===J.operation);_&&T&&(a="GET");const k={method:a,url:"function"==typeof d?d(i):d,body:{operationName:i.operationName,variables:i.variables},options:{withCredentials:u,useMultipart:f,headers:this.options.headers}};c&&(k.body.extensions=i.extensions),l&&(k.body.query=this.print(i.query));const $=function(t){let n=t.headers&&t.headers instanceof so?t.headers:new so(t.headers);if(t.clientAwareness){const{name:e,version:i}=t.clientAwareness;e&&!n.has("apollographql-client-name")&&(n=n.set("apollographql-client-name",e)),i&&!n.has("apollographql-client-version")&&(n=n.set("apollographql-client-version",i))}return n}(r);k.options.headers=((t,n)=>t&&n?n.keys().reduce((i,s)=>i.set(s,n.getAll(s)),t):n||t)(k.options.headers,$);const L=((t,n,e)=>{const i=-1!==["POST","PUT","PATCH"].indexOf(t.method.toUpperCase()),r=t.body.length;let a,o=t.options&&t.options.useMultipart;if(o){if(r)return new S(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!i)return new S(c=>c.error(new Error("File upload is not available when GET is used")));if(!e)return new S(c=>c.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=e(t.body),o=!!a.files.size}let l={};if(r){if(!i)return new S(c=>c.error(new Error("Batching is not available for GET requests")));l={body:t.body}}else{const c=o?a.clone:t.body;l=i?{body:c}:{params:Object.keys(t.body).reduce((u,f)=>{const _=t.body[f];return u[f]=(c=>-1!==["variables","extensions"].indexOf(c.toLowerCase()))(f)?JSON.stringify(_):_,u},{})}}if(o&&i){const c=new FormData;c.append("operations",JSON.stringify(l.body));const d={},u=a.files;let f=0;u.forEach(_=>{d[++f]=_}),c.append("map",JSON.stringify(d)),f=0,u.forEach((_,T)=>{c.append(++f+"",T,T.name)}),l.body=c}return n.request(t.method,t.url,Object.assign(Object.assign({observe:"response",responseType:"json",reportProgress:!1},l),t.options))})(k,this.httpClient,this.options.extractFiles).subscribe({next:J=>{i.setContext({response:J}),s.next(J.body)},error:J=>s.error(J),complete:()=>s.complete()});return()=>{L.closed||L.unsubscribe()}})}request(n){return this.requester(n)}}let Y5=(()=>{class t{constructor(e){this.httpClient=e}create(e){return new y1e(this.httpClient,e)}}return t.\u0275fac=function(e){return new(e||t)(Me(Pa))},t.\u0275prov=Ze({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function b1e(t){return{link:t.create({uri:"https://shikimori.me/api/graphql"}),cache:new G5}}let x1e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[{provide:Cx,useFactory:b1e,deps:[Y5]}],imports:[bee]}),t})(),q5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t}),t.\u0275inj=St({providers:[Gn,uC,Wa],imports:[[ei,Yw,zB,KB,dV,J3,OV,eV,tf,AL,E3,n5,c5,d5,Mw]]}),t})();function w1e(t){return()=>localStorage.getItem("locale")?t.use(localStorage.getItem("locale")):t.use("en")}let C1e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=kt({type:t,bootstrap:[Dye]}),t.\u0275inj=St({providers:[{provide:Cx,useFactory:n=>({cache:new G5,link:n.create({uri:"https://shikimori.one/api/graphql"}),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"all"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}}),deps:[Y5]},qs,{provide:sd,useFactory:w1e,deps:[qs],multi:!0}],imports:[[O0,nJ,R_e,zB,q5,Mie,Bce,KB,dye,dV,J3,OV,eV,tf,AL,E3,n5,c5,d5,Mw,Tpe,s1e,x1e,Yw,q5]]}),t})();(function(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(HM),i.pipeDefs=()=>e.map(jM)})(p3,[ef,Bd,u_,UC,oi,N_,F_,S3,D3,vn,Zye],[Gn]),function(){if(Ek)throw new Error("Cannot enable prod mode after platform setup.");Sk=!1}(),IY().bootstrapModule(C1e).catch(t=>console.error(t))}},Hn=>{Hn(Hn.s=428)}]); \ No newline at end of file