(self.webpackChunkgfn_calculator_web=self.webpackChunkgfn_calculator_web||[]).push([[179],{8255:Xe=>{function Ee(L){return Promise.resolve().then(()=>{var i=new Error("Cannot find module '"+L+"'");throw i.code="MODULE_NOT_FOUND",i})}Ee.keys=()=>[],Ee.resolve=Ee,Ee.id=8255,Xe.exports=Ee},2554:(Xe,Ee,L)=>{"use strict";L.d(Ee,{kx:()=>ie,w5:()=>Pe});var i=L(9765),o=L(7393),P=L(3637);const s={leading:!0,trailing:!1};function F(Se,_e=P.P,G=s){return se=>se.lift(new z(Se,_e,G.leading,G.trailing))}class z{constructor(_e,G,se,ze){this.duration=_e,this.scheduler=G,this.leading=se,this.trailing=ze}call(_e,G){return G.subscribe(new q(_e,this.duration,this.scheduler,this.leading,this.trailing))}}class q extends o.L{constructor(_e,G,se,ze,vt){super(_e),this.duration=G,this.scheduler=se,this.leading=ze,this.trailing=vt,this._hasTrailingValue=!1,this._trailingValue=null}_next(_e){this.throttled?this.trailing&&(this._trailingValue=_e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(d,this.duration,{subscriber:this})),this.leading?this.destination.next(_e):this.trailing&&(this._trailingValue=_e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const _e=this.throttled;_e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),_e.unsubscribe(),this.remove(_e),this.throttled=null)}}function d(Se){const{subscriber:_e}=Se;_e.clearThrottle()}var oe=L(8307),De=L(7519),st=L(5435),Te=L(6202),le=L(7716),pt=L(3679),He=L(8583);const Vt=["tooltipTemplate"],dn=["leftOuterSelectionBar"],Zn=["rightOuterSelectionBar"],Jn=["fullBar"],zn=["selectionBar"],J=["minHandle"],_t=["maxHandle"],Bt=["floorLabel"],fn=["ceilLabel"],At=["minHandleLabel"],ot=["maxHandleLabel"],Ze=["combinedLabel"],wt=["ticksElement"];function Dt(Se,_e){if(1&Se&&le._UZ(0,"ngx-slider-tooltip-wrapper",31),2&Se){const G=le.oxw().$implicit,se=le.oxw();le.Q6J("template",se.tooltipTemplate)("tooltip",G.valueTooltip)("placement",G.valueTooltipPlacement)("content",G.value)}}function Qt(Se,_e){if(1&Se&&le._UZ(0,"span",32),2&Se){const G=le.oxw().$implicit;le.Q6J("innerHTML",G.legend,le.oJD)}}const Ln=function(Se){return{"ngx-slider-selected":Se}};function Dn(Se,_e){if(1&Se&&(le.TgZ(0,"span",27),le._UZ(1,"ngx-slider-tooltip-wrapper",28),le.YNc(2,Dt,1,4,"ngx-slider-tooltip-wrapper",29),le.YNc(3,Qt,1,1,"span",30),le.qZA()),2&Se){const G=_e.$implicit,se=le.oxw();le.Q6J("ngClass",le.VKq(7,Ln,G.selected))("ngStyle",G.style),le.xp6(1),le.Q6J("template",se.tooltipTemplate)("tooltip",G.tooltip)("placement",G.tooltipPlacement),le.xp6(1),le.Q6J("ngIf",null!=G.value),le.xp6(1),le.Q6J("ngIf",null!=G.legend)}}function Si(Se,_e){}function $n(Se,_e){1&Se&&le.YNc(0,Si,0,0,"ng-template")}const mn=function(Se,_e,G){return{tooltip:Se,placement:_e,content:G}};function _i(Se,_e){if(1&Se&&(le.ynx(0),le.YNc(1,$n,1,0,void 0,1),le.BQk()),2&Se){const G=le.oxw();le.xp6(1),le.Q6J("ngTemplateOutlet",G.template)("ngTemplateOutletContext",le.kEZ(2,mn,G.tooltip,G.placement,G.content))}}function Sn(Se,_e){if(1&Se&&(le.ynx(0),le.TgZ(1,"div",2),le._uU(2),le.qZA(),le.BQk()),2&Se){const G=le.oxw();le.xp6(1),le.uIk("title",G.tooltip)("data-tooltip-placement",G.placement),le.xp6(1),le.hij(" ",G.content," ")}}const ai={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};ai[ai.Low]="Low",ai[ai.High]="High",ai[ai.Floor]="Floor",ai[ai.Ceil]="Ceil",ai[ai.TickValue]="TickValue";class di{constructor(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.mouseEventsInterval=50,this.touchEventsInterval=50,this.inputEventsInterval=100,this.outputEventsInterval=100,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=null,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.enforceStep=!0,this.enforceRange=!0,this.enforceStepsArray=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaLabelHigh=null,this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0,this.animateOnMove=!1}}const $t={Min:0,Max:1};$t[$t.Min]="Min",$t[$t.Max]="Max";class An{}class Me{static isNullOrUndefined(_e){return null==_e}static areArraysEqual(_e,G){if(_e.length!==G.length)return!1;for(let se=0;se<_e.length;++se)if(_e[se]!==G[se])return!1;return!0}static linearValueToPosition(_e,G,se){return(_e-G)/(se-G)}static logValueToPosition(_e,G,se){return((_e=Math.log(_e))-(G=Math.log(G)))/((se=Math.log(se))-G)}static linearPositionToValue(_e,G,se){return _e*(se-G)+G}static logPositionToValue(_e,G,se){return G=Math.log(G),se=Math.log(se),Math.exp(_e*(se-G)+G)}static findStepIndex(_e,G){const se=G.map(vt=>Math.abs(_e-vt.value));let ze=0;for(let vt=0;vt{vt.events.next(Ct)};return _e.addEventListener(G,Pt,{passive:!0,capture:!1}),vt.teardownCallback=()=>{_e.removeEventListener(G,Pt,{passive:!0,capture:!1})},vt.eventsSubscription=vt.events.pipe(Me.isNullOrUndefined(ze)?(0,oe.b)(()=>{}):F(ze,void 0,{leading:!0,trailing:!0})).subscribe(Ct=>{se(Ct)}),vt}detachEventListener(_e){Me.isNullOrUndefined(_e.eventsSubscription)||(_e.eventsSubscription.unsubscribe(),_e.eventsSubscription=null),Me.isNullOrUndefined(_e.events)||(_e.events.complete(),_e.events=null),Me.isNullOrUndefined(_e.teardownCallback)||(_e.teardownCallback(),_e.teardownCallback=null)}attachEventListener(_e,G,se,ze){const vt=new lt;return vt.eventName=G,vt.events=new i.xQ,vt.teardownCallback=this.renderer.listen(_e,G,Ct=>{vt.events.next(Ct)}),vt.eventsSubscription=vt.events.pipe(Me.isNullOrUndefined(ze)?(0,oe.b)(()=>{}):F(ze,void 0,{leading:!0,trailing:!0})).subscribe(Ct=>{se(Ct)}),vt}}let Ie=(()=>{class Se{constructor(G,se,ze){this.elemRef=G,this.renderer=se,this.changeDetectionRef=ze,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.eventListeners=[],this.eventListenerHelper=new Ne(this.renderer)}get position(){return this._position}get dimension(){return this._dimension}get alwaysHide(){return this._alwaysHide}get vertical(){return this._vertical}get scale(){return this._scale}setAlwaysHide(G){this._alwaysHide=G,this.visibility=G?"hidden":"visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return!this.alwaysHide&&0!==this.opacity}setVertical(G){this._vertical=G,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(G){this._scale=G}setPosition(G){this._position!==G&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._position=G,this._vertical?this.bottom=Math.round(G)+"px":this.left=Math.round(G)+"px"}calculateDimension(){const G=this.getBoundingClientRect();this._dimension=this.vertical?(G.bottom-G.top)*this.scale:(G.right-G.left)*this.scale}setDimension(G){this._dimension!==G&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._dimension=G,this._vertical?this.height=Math.round(G)+"px":this.width=Math.round(G)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(G,se,ze){const vt=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,G,se,ze);this.eventListeners.push(vt)}onPassive(G,se,ze){const vt=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,G,se,ze);this.eventListeners.push(vt)}off(G){let se,ze;Me.isNullOrUndefined(G)?(se=[],ze=this.eventListeners):(se=this.eventListeners.filter(vt=>vt.eventName!==G),ze=this.eventListeners.filter(vt=>vt.eventName===G));for(const vt of ze)this.eventListenerHelper.detachEventListener(vt);this.eventListeners=se}isRefDestroyed(){return Me.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}}return Se.\u0275fac=function(G){return new(G||Se)(le.Y36(le.SBq),le.Y36(le.Qsj),le.Y36(le.sBO))},Se.\u0275dir=le.lG2({type:Se,selectors:[["","ngxSliderElement",""]],hostVars:12,hostBindings:function(G,se){2&G&&le.Udp("opacity",se.opacity)("visibility",se.visibility)("left",se.left)("bottom",se.bottom)("height",se.height)("width",se.width)}}),Se})(),It=(()=>{class Se extends Ie{constructor(G,se,ze){super(G,se,ze),this.active=!1,this.role="",this.tabindex="",this.ariaOrientation="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaValueNow="",this.ariaValueText="",this.ariaValueMin="",this.ariaValueMax=""}focus(){this.elemRef.nativeElement.focus()}}return Se.\u0275fac=function(G){return new(G||Se)(le.Y36(le.SBq),le.Y36(le.Qsj),le.Y36(le.sBO))},Se.\u0275dir=le.lG2({type:Se,selectors:[["","ngxSliderHandle",""]],hostVars:11,hostBindings:function(G,se){2&G&&(le.uIk("role",se.role)("tabindex",se.tabindex)("aria-orientation",se.ariaOrientation)("aria-label",se.ariaLabel)("aria-labelledby",se.ariaLabelledBy)("aria-valuenow",se.ariaValueNow)("aria-valuetext",se.ariaValueText)("aria-valuemin",se.ariaValueMin)("aria-valuemax",se.ariaValueMax),le.ekj("ngx-slider-active",se.active))},features:[le.qOj]}),Se})(),ge=(()=>{class Se extends Ie{constructor(G,se,ze){super(G,se,ze),this._value=null}get value(){return this._value}setValue(G){let se=!1;!this.alwaysHide&&(Me.isNullOrUndefined(this.value)||this.value.length!==G.length||this.value.length>0&&0===this.dimension)&&(se=!0),this._value=G,this.elemRef.nativeElement.innerHTML=G,se&&this.calculateDimension()}}return Se.\u0275fac=function(G){return new(G||Se)(le.Y36(le.SBq),le.Y36(le.Qsj),le.Y36(le.sBO))},Se.\u0275dir=le.lG2({type:Se,selectors:[["","ngxSliderLabel",""]],features:[le.qOj]}),Se})();class et{constructor(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null}}class Qe{constructor(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0}}class $e{static compare(_e,G){return!(Me.isNullOrUndefined(_e)&&Me.isNullOrUndefined(G)||Me.isNullOrUndefined(_e)!==Me.isNullOrUndefined(G))&&_e.value===G.value&&_e.highValue===G.highValue}}class nn extends $e{static compare(_e,G){return!(Me.isNullOrUndefined(_e)&&Me.isNullOrUndefined(G)||Me.isNullOrUndefined(_e)!==Me.isNullOrUndefined(G))&&_e.value===G.value&&_e.highValue===G.highValue&&_e.forceChange===G.forceChange}}const St={provide:pt.JU,useExisting:(0,le.Gpc)(()=>Pe),multi:!0};let Pe=(()=>{class Se{constructor(G,se,ze,vt){this.renderer=G,this.elementRef=se,this.changeDetectionRef=ze,this.zone=vt,this.value=null,this.valueChange=new le.vpe,this.highValue=null,this.highValueChange=new le.vpe,this.options=new di,this.userChangeStart=new le.vpe,this.userChange=new le.vpe,this.userChangeEnd=new le.vpe,this.initHasRun=!1,this.inputModelChangeSubject=new i.xQ,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new i.xQ,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new di,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new Qe,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementWithLegendClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.moving=!1,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new Ne(this.renderer)}set manualRefresh(G){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=G.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}set triggerFocus(G){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=G.subscribe(se=>{this.focusPointer(se)})}get range(){return!Me.isNullOrUndefined(this.value)&&!Me.isNullOrUndefined(this.highValue)}get showTicks(){return this.viewOptions.showTicks}ngOnInit(){this.viewOptions=new di,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(G){Me.isNullOrUndefined(G.options)||this.onChangeOptions(),(!Me.isNullOrUndefined(G.value)||!Me.isNullOrUndefined(G.highValue))&&this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(G){G instanceof Array?(this.value=G[0],this.highValue=G[1]):this.value=G,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}registerOnChange(G){this.onChangeCallback=G}registerOnTouched(G){this.onTouchedCallback=G}setDisabledState(G){this.viewOptions.disabled=G,this.updateDisabledState()}onResize(G){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(G){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe((0,De.x)(nn.compare),(0,st.h)(se=>!se.forceChange&&!se.internalChange),Me.isNullOrUndefined(G)?(0,oe.b)(()=>{}):F(G,void 0,{leading:!0,trailing:!0})).subscribe(se=>this.applyInputModelChange(se))}subscribeOutputModelChangeSubject(G){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe((0,De.x)(nn.compare),Me.isNullOrUndefined(G)?(0,oe.b)(()=>{}):F(G,void 0,{leading:!0,trailing:!0})).subscribe(se=>this.publishOutputModelChange(se))}subscribeResizeObserver(){Et.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement))}unsubscribeResizeObserver(){Et.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}unsubscribeOnMove(){Me.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){Me.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)}unsubscribeInputModelChangeSubject(){Me.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){Me.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){Me.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){Me.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}getPointerElement(G){return G===$t.Min?this.minHandleElement:G===$t.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===$t.Min?this.viewLowValue:this.currentTrackingPointer===$t.Max?this.viewHighValue:null}modelValueToViewValue(G){return Me.isNullOrUndefined(G)?NaN:Me.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+G:Me.findStepIndex(+G,this.viewOptions.stepsArray)}viewValueToModelValue(G){return Me.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?G:this.getStepValue(G)}getStepValue(G){const se=this.viewOptions.stepsArray[G];return Me.isNullOrUndefined(se)?NaN:se.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})}applyInputModelChange(G){const se=this.normaliseModelValues(G),ze=!$e.compare(G,se);ze&&(this.value=se.value,this.highValue=se.highValue),this.viewLowValue=this.modelValueToViewValue(se.value),this.viewHighValue=this.range?this.modelValueToViewValue(se.highValue):null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:se.value,highValue:se.highValue,forceChange:ze,userEventInitiated:!1})}publishOutputModelChange(G){const se=()=>{this.valueChange.emit(G.value),this.range&&this.highValueChange.emit(G.highValue),Me.isNullOrUndefined(this.onChangeCallback)||this.onChangeCallback(this.range?[G.value,G.highValue]:G.value),Me.isNullOrUndefined(this.onTouchedCallback)||this.onTouchedCallback(this.range?[G.value,G.highValue]:G.value)};G.userEventInitiated?(se(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{se()})}normaliseModelValues(G){const se=new $e;if(se.value=G.value,se.highValue=G.highValue,!Me.isNullOrUndefined(this.viewOptions.stepsArray)){if(this.viewOptions.enforceStepsArray){const ze=Me.findStepIndex(se.value,this.viewOptions.stepsArray);if(se.value=this.viewOptions.stepsArray[ze].value,this.range){const vt=Me.findStepIndex(se.highValue,this.viewOptions.stepsArray);se.highValue=this.viewOptions.stepsArray[vt].value}}return se}if(this.viewOptions.enforceStep&&(se.value=this.roundStep(se.value),this.range&&(se.highValue=this.roundStep(se.highValue))),this.viewOptions.enforceRange&&(se.value=Ae.clampToRange(se.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(se.highValue=Ae.clampToRange(se.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&G.value>G.highValue))if(this.viewOptions.noSwitching)se.value=se.highValue;else{const ze=G.value;se.value=G.highValue,se.highValue=ze}return se}renormaliseModelValues(){const G={value:this.value,highValue:this.highValue},se=this.normaliseModelValues(G);$e.compare(se,G)||(this.value=se.value,this.highValue=se.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;const G=this.viewOptions.inputEventsInterval,se=this.viewOptions.outputEventsInterval,ze=this.getOptionsInfluencingEventBindings(this.viewOptions);this.applyOptions();const vt=this.getOptionsInfluencingEventBindings(this.viewOptions),Pt=!Me.areArraysEqual(ze,vt);G!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),se!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.resetSlider(Pt)}applyOptions(){if(this.viewOptions=new di,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!Me.isNullOrUndefined(this.viewOptions.ticksArray),this.viewOptions.showTicks&&(!Me.isNullOrUndefined(this.viewOptions.tickStep)||!Me.isNullOrUndefined(this.viewOptions.ticksArray))&&(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!Me.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),Me.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),Me.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(G,se)=>G+" - "+se),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")}applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,Me.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=G=>String(this.viewOptions.bindIndexForStepsArray?this.getStepValue(G):G))}applyFloorCeilOptions(){if(Me.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),Me.isNullOrUndefined(this.viewOptions.ceil)||Me.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,Me.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=G=>String(G))}resetSlider(G=!0){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),G&&(this.unbindEvents(),this.manageEventsBindings()),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(G){G!==$t.Min&&G!==$t.Max&&(G=$t.Min),G===$t.Min?this.minHandleElement.focus():this.range&&G===$t.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){Me.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);const G=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(G||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(G||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(G||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate})}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(const G of this.getAllSliderElements())Me.isNullOrUndefined(G)||G.setVertical(this.viewOptions.vertical)}updateScale(){for(const G of this.getAllSliderElements())G.setScale(this.viewOptions.scale)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.minHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.minHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",Me.isNullOrUndefined(this.viewOptions.ariaLabel)?Me.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.maxHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",Me.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?Me.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,ai.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,ai.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){Me.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);const G=this.minHandleElement.dimension;this.handleHalfDimension=G/2,Me.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-G,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks)return void setTimeout(()=>{this.sliderElementWithLegendClass=!1});const G=Me.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,se=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&G.reverse();const ze=Me.isNullOrUndefined(this.viewOptions.tickValueStep)?Me.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep:this.viewOptions.tickValueStep;let vt=!1;const Pt=G.map(Ct=>{let wn=this.valueToPosition(Ct);this.viewOptions.vertical&&(wn=this.maxHandlePosition-wn);const Nn=se+"("+Math.round(wn)+"px)",cn=new et;cn.selected=this.isTickSelected(Ct),cn.style={"-webkit-transform":Nn,"-moz-transform":Nn,"-o-transform":Nn,"-ms-transform":Nn,transform:Nn},cn.selected&&!Me.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(cn.style["background-color"]=this.getSelectionBarColor()),!cn.selected&&!Me.isNullOrUndefined(this.viewOptions.getTickColor)&&(cn.style["background-color"]=this.getTickColor(Ct)),Me.isNullOrUndefined(this.viewOptions.ticksTooltip)||(cn.tooltip=this.viewOptions.ticksTooltip(Ct),cn.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&!Me.isNullOrUndefined(ze)&&Ae.isModuloWithinPrecisionLimit(Ct,ze,this.viewOptions.precisionLimit)&&(cn.value=this.getDisplayValue(Ct,ai.TickValue),Me.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(cn.valueTooltip=this.viewOptions.ticksValuesTooltip(Ct),cn.valueTooltipPlacement=this.viewOptions.vertical?"right":"top"));let _n=null;if(Me.isNullOrUndefined(this.viewOptions.stepsArray))Me.isNullOrUndefined(this.viewOptions.getLegend)||(_n=this.viewOptions.getLegend(Ct));else{const vn=this.viewOptions.stepsArray[Ct];Me.isNullOrUndefined(vn)||(_n=vn.legend)}return Me.isNullOrUndefined(_n)||(cn.legend=_n,vt=!0),cn});if(setTimeout(()=>{this.sliderElementWithLegendClass=vt}),Me.isNullOrUndefined(this.ticks)||this.ticks.length!==Pt.length)this.ticks=Pt;else for(let Ct=0;Ct=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&G<=this.viewLowValue)return!0}else{const se=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>se&&G>=se&&G<=this.viewLowValue)return!0;if(this.viewLowValue=this.viewLowValue)return!0}return!!(this.range&&G>=this.viewLowValue&&G<=this.viewHighValue)}updateFloorLabel(){this.floorLabelElement.alwaysHide||(this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,ai.Floor)),this.floorLabelElement.calculateDimension(),this.floorLabelElement.setPosition(this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0))}updateCeilLabel(){this.ceilLabelElement.alwaysHide||(this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,ai.Ceil)),this.ceilLabelElement.calculateDimension(),this.ceilLabelElement.setPosition(this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension))}updateHandles(G,se){G===$t.Min?this.updateLowHandle(se):G===$t.Max&&this.updateHighHandle(se),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(G,se){const ze=G===$t.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,vt=se-ze/2+this.handleHalfDimension,Pt=this.fullBarElement.dimension-ze;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&G===$t.Min||!this.viewOptions.rightToLeft&&G===$t.Max?Math.min(vt,Pt):Math.min(Math.max(vt,0),Pt):vt}updateLowHandle(G){this.minHandleElement.setPosition(G),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,ai.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos($t.Min,G)),Me.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor($t.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(G){this.maxHandleElement.setPosition(G),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,ai.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos($t.Max,G)),Me.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor($t.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let G=!1,se=!1;const ze=this.isLabelBelowFloorLabel(this.minHandleLabelElement),vt=this.isLabelAboveCeilLabel(this.minHandleLabelElement),Pt=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),Ct=this.isLabelBelowFloorLabel(this.combinedLabelElement),wn=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(ze?(G=!0,this.floorLabelElement.hide()):(G=!1,this.floorLabelElement.show()),vt?(se=!0,this.ceilLabelElement.hide()):(se=!1,this.ceilLabelElement.show()),this.range){const Nn=this.combinedLabelElement.isVisible()?wn:Pt,cn=this.combinedLabelElement.isVisible()?Ct:ze;Nn?this.ceilLabelElement.hide():se||this.ceilLabelElement.show(),cn?this.floorLabelElement.hide():G||this.floorLabelElement.show()}}isLabelBelowFloorLabel(G){const se=G.position,vt=this.floorLabelElement.position;return this.viewOptions.rightToLeft?se+G.dimension>=vt-2:se<=vt+this.floorLabelElement.dimension+2}isLabelAboveCeilLabel(G){const se=G.position,vt=this.ceilLabelElement.position;return this.viewOptions.rightToLeft?se<=vt+this.ceilLabelElement.dimension+2:se+G.dimension>=vt-2}updateSelectionBar(){let G=0,se=0;const ze=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,vt=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)se=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),G=vt;else if(Me.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))ze?(se=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),G=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(se=this.minHandleElement.position+this.handleHalfDimension,G=0);else{const Pt=this.viewOptions.showSelectionBarFromValue,Ct=this.valueToPosition(Pt);(this.viewOptions.rightToLeft?this.viewLowValue<=Pt:this.viewLowValue>Pt)?(se=this.minHandleElement.position-Ct,G=Ct+this.handleHalfDimension):(se=Ct-this.minHandleElement.position,G=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(se),this.selectionBarElement.setPosition(G),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(G),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(G+se)),this.leftOuterSelectionBarElement.setPosition(G+se)):(this.leftOuterSelectionBarElement.setDimension(G),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(G+se)),this.rightOuterSelectionBarElement.setPosition(G+se))),Me.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!Me.isNullOrUndefined(this.viewOptions.selectionBarGradient)){const Pt=Me.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),Ct=Pt-G>0&&!ze||Pt-G<=0&&ze;this.barStyle={backgroundImage:"linear-gradient(to "+(this.viewOptions.vertical?Ct?"bottom":"top":Ct?"left":"right")+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(Pt+se+G+(Ct?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=Pt-G+(Ct?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{const Pt=this.getSelectionBarColor();this.barStyle={backgroundColor:Pt}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(G){return this.viewOptions.getPointerColor(G===$t.Max?this.highValue:this.value,G)}getTickColor(G){return this.viewOptions.getTickColor(G)}updateCombinedLabel(){let G=null;if(G=this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,G){const se=this.getDisplayValue(this.viewLowValue,ai.Low),ze=this.getDisplayValue(this.viewHighValue,ai.High),vt=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(ze,se):this.viewOptions.combineLabels(se,ze);this.combinedLabelElement.setValue(vt);const Pt=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(Pt),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(G,se){return!Me.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray&&(G=this.getStepValue(G)),this.viewOptions.translate(G,se)}roundStep(G,se){const ze=Me.isNullOrUndefined(se)?this.viewOptions.step:se;let vt=Ae.roundToPrecisionLimit((G-this.viewOptions.floor)/ze,this.viewOptions.precisionLimit);return vt=Math.round(vt)*ze,Ae.roundToPrecisionLimit(this.viewOptions.floor+vt,this.viewOptions.precisionLimit)}valueToPosition(G){let se=Me.linearValueToPosition;Me.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(se=Me.logValueToPosition):se=this.viewOptions.customValueToPosition;let ze=se(G=Ae.clampToRange(G,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return Me.isNullOrUndefined(ze)&&(ze=0),this.viewOptions.rightToLeft&&(ze=1-ze),ze*this.maxHandlePosition}positionToValue(G){let se=G/this.maxHandlePosition;this.viewOptions.rightToLeft&&(se=1-se);let ze=Me.linearPositionToValue;Me.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(ze=Me.logPositionToValue):ze=this.viewOptions.customPositionToValue;const vt=ze(se,this.viewOptions.floor,this.viewOptions.ceil);return Me.isNullOrUndefined(vt)?0:vt}getEventXY(G,se){if(G instanceof MouseEvent)return this.viewOptions.vertical?G.clientY:G.clientX;let ze=0;const vt=G.touches;if(!Me.isNullOrUndefined(se))for(let Pt=0;Ptvt?$t.Max:this.viewOptions.rightToLeft?se>this.minHandleElement.position?$t.Min:$t.Max:sethis.onBarStart(null,G,se,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",se=>this.onBarStart($t.Min,G,se,!0,!0)),this.maxHandleElement.on("mousedown",se=>this.onBarStart($t.Max,G,se,!0,!0))):(this.minHandleElement.on("mousedown",se=>this.onStart($t.Min,se,!0,!0)),this.range&&this.maxHandleElement.on("mousedown",se=>this.onStart($t.Max,se,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",se=>this.onStart(null,se,!0,!0,!0)),this.ticksElement.on("mousedown",se=>this.onStart(null,se,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",se=>this.onBarStart(null,G,se,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",se=>this.onBarStart($t.Min,G,se,!0,!0)),this.maxHandleElement.onPassive("touchstart",se=>this.onBarStart($t.Max,G,se,!0,!0))):(this.minHandleElement.onPassive("touchstart",se=>this.onStart($t.Min,se,!0,!0)),this.range&&this.maxHandleElement.onPassive("touchstart",se=>this.onStart($t.Max,se,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",se=>this.onStart(null,se,!0,!0,!0)),this.ticksElement.onPassive("touchstart",se=>this.onStart(null,se,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus($t.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus($t.Max)))}getOptionsInfluencingEventBindings(G){return[G.disabled,G.readOnly,G.draggableRange,G.draggableRangeOnly,G.onlyBindHandles,G.keyboardSupport]}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(const G of this.getAllSliderElements())Me.isNullOrUndefined(G)||G.off()}onBarStart(G,se,ze,vt,Pt,Ct,wn){se?this.onDragStart(G,ze,vt,Pt):this.onStart(G,ze,vt,Pt,Ct,wn)}onStart(G,se,ze,vt,Pt,Ct){se.stopPropagation(),(!Et.isTouchEvent(se)||!Te.Z.hasSupport)&&se.preventDefault(),this.moving=!1,this.calculateViewDimensions(),Me.isNullOrUndefined(G)&&(G=this.getNearestHandle(se)),this.currentTrackingPointer=G;const wn=this.getPointerElement(G);if(wn.active=!0,this.viewOptions.keyboardSupport&&wn.focus(),ze){this.unsubscribeOnMove();const Nn=cn=>this.dragging.active?this.onDragMove(cn):this.onMove(cn);this.onMoveEventListener=Et.isTouchEvent(se)?this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",Nn,this.viewOptions.touchEventsInterval):this.eventListenerHelper.attachEventListener(document,"mousemove",Nn,this.viewOptions.mouseEventsInterval)}if(vt){this.unsubscribeOnEnd();const Nn=cn=>this.onEnd(cn);this.onEndEventListener=Et.isTouchEvent(se)?this.eventListenerHelper.attachPassiveEventListener(document,"touchend",Nn):this.eventListenerHelper.attachEventListener(document,"mouseup",Nn)}this.userChangeStart.emit(this.getChangeContext()),Et.isTouchEvent(se)&&!Me.isNullOrUndefined(se.changedTouches)&&Me.isNullOrUndefined(this.touchId)&&(this.touchId=se.changedTouches[0].identifier),Pt&&this.onMove(se,!0),Ct&&this.onEnd(se)}onMove(G,se){let ze=null;if(Et.isTouchEvent(G)){const Nn=G.changedTouches;for(let cn=0;cn=this.maxHandlePosition?Pt=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil:(Pt=this.positionToValue(vt),Pt=se&&!Me.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(Pt,this.viewOptions.tickStep):this.roundStep(Pt)),this.positionTrackingHandle(Pt)}onEnd(G){Et.isTouchEvent(G)&&G.changedTouches[0].identifier!==this.touchId||(this.moving=!1,this.viewOptions.animate&&(this.sliderElementAnimateClass=!0),this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext()))}onPointerFocus(G){const se=this.getPointerElement(G);se.on("blur",()=>this.onPointerBlur(se)),se.on("keydown",ze=>this.onKeyboardEvent(ze)),se.on("keyup",()=>this.onKeyUp()),se.active=!0,this.currentTrackingPointer=G,this.currentFocusPointer=G,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(G){G.off("blur"),G.off("keydown"),G.off("keyup"),G.active=!1,Me.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(G){const se=this.viewOptions.ceil-this.viewOptions.floor;let ze=G+this.viewOptions.step,vt=G-this.viewOptions.step,Pt=G+se/10,Ct=G-se/10;this.viewOptions.reversedControls&&(ze=G-this.viewOptions.step,vt=G+this.viewOptions.step,Pt=G-se/10,Ct=G+se/10);const wn={UP:ze,DOWN:vt,LEFT:vt,RIGHT:ze,PAGEUP:Pt,PAGEDOWN:Ct,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(wn.LEFT=ze,wn.RIGHT=vt,this.viewOptions.vertical&&(wn.UP=vt,wn.DOWN=ze)),wn}onKeyboardEvent(G){const se=this.getCurrentTrackingValue(),ze=Me.isNullOrUndefined(G.keyCode)?G.which:G.keyCode,wn=this.getKeyActions(se)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[ze]];if(Me.isNullOrUndefined(wn)||Me.isNullOrUndefined(this.currentTrackingPointer))return;G.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));const Nn=Ae.clampToRange(wn,this.viewOptions.floor,this.viewOptions.ceil),cn=this.roundStep(Nn);if(this.viewOptions.draggableRangeOnly){const _n=this.viewHighValue-this.viewLowValue;let vn,Wn;this.currentTrackingPointer===$t.Min?(vn=cn,Wn=cn+_n,Wn>this.viewOptions.ceil&&(Wn=this.viewOptions.ceil,vn=Wn-_n)):this.currentTrackingPointer===$t.Max&&(Wn=cn,vn=cn-_n,vn=this.maxHandlePosition-ze;let cn,_n;if(se<=vt){if(0===Pt.position)return;cn=this.getMinValue(se,!0,!1),_n=this.getMaxValue(se,!0,!1)}else if(Nn){if(Ct.position===this.maxHandlePosition)return;_n=this.getMaxValue(se,!0,!0),cn=this.getMinValue(se,!0,!0)}else cn=this.getMinValue(se,!1,!1),_n=this.getMaxValue(se,!1,!1);this.positionTrackingBar(cn,_n)}positionTrackingBar(G,se){!Me.isNullOrUndefined(this.viewOptions.minLimit)&&Gthis.viewOptions.maxLimit&&(G=Ae.roundToPrecisionLimit((se=this.viewOptions.maxLimit)-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=G,this.viewHighValue=se,this.applyViewChange(),this.updateHandles($t.Min,this.valueToPosition(G)),this.updateHandles($t.Max,this.valueToPosition(se))}positionTrackingHandle(G){G=this.applyMinMaxLimit(G),this.range&&(this.viewOptions.pushRange?G=this.applyPushRange(G):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===$t.Min&&G>this.viewHighValue?G=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===$t.Max&&Gthis.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles($t.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=$t.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===$t.Max&&Gthis.viewOptions.maxLimit?this.viewOptions.maxLimit:G}applyMinMaxRange(G){const ze=Math.abs(G-(this.currentTrackingPointer===$t.Min?this.viewHighValue:this.viewLowValue));if(!Me.isNullOrUndefined(this.viewOptions.minRange)&&zethis.viewOptions.maxRange){if(this.currentTrackingPointer===$t.Min)return Ae.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===$t.Max)return Ae.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return G}applyPushRange(G){const se=this.currentTrackingPointer===$t.Min?this.viewHighValue-G:G-this.viewLowValue,ze=Me.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,vt=this.viewOptions.maxRange;return sevt&&(this.currentTrackingPointer===$t.Min?(this.viewHighValue=Ae.roundToPrecisionLimit(G+vt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles($t.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===$t.Max&&(this.viewLowValue=Ae.roundToPrecisionLimit(G-vt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles($t.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),G}getChangeContext(){const G=new An;return G.pointerType=this.currentTrackingPointer,G.value=+this.value,this.range&&(G.highValue=+this.highValue),G}}return Se.\u0275fac=function(G){return new(G||Se)(le.Y36(le.Qsj),le.Y36(le.SBq),le.Y36(le.sBO),le.Y36(le.R0b))},Se.\u0275cmp=le.Xpm({type:Se,selectors:[["ngx-slider"]],contentQueries:function(G,se,ze){if(1&G&&le.Suo(ze,Vt,5),2&G){let vt;le.iGM(vt=le.CRH())&&(se.tooltipTemplate=vt.first)}},viewQuery:function(G,se){if(1&G&&(le.Gf(dn,5,Ie),le.Gf(Zn,5,Ie),le.Gf(Jn,5,Ie),le.Gf(zn,5,Ie),le.Gf(J,5,It),le.Gf(_t,5,It),le.Gf(Bt,5,ge),le.Gf(fn,5,ge),le.Gf(At,5,ge),le.Gf(ot,5,ge),le.Gf(Ze,5,ge),le.Gf(wt,5,Ie)),2&G){let ze;le.iGM(ze=le.CRH())&&(se.leftOuterSelectionBarElement=ze.first),le.iGM(ze=le.CRH())&&(se.rightOuterSelectionBarElement=ze.first),le.iGM(ze=le.CRH())&&(se.fullBarElement=ze.first),le.iGM(ze=le.CRH())&&(se.selectionBarElement=ze.first),le.iGM(ze=le.CRH())&&(se.minHandleElement=ze.first),le.iGM(ze=le.CRH())&&(se.maxHandleElement=ze.first),le.iGM(ze=le.CRH())&&(se.floorLabelElement=ze.first),le.iGM(ze=le.CRH())&&(se.ceilLabelElement=ze.first),le.iGM(ze=le.CRH())&&(se.minHandleLabelElement=ze.first),le.iGM(ze=le.CRH())&&(se.maxHandleLabelElement=ze.first),le.iGM(ze=le.CRH())&&(se.combinedLabelElement=ze.first),le.iGM(ze=le.CRH())&&(se.ticksElement=ze.first)}},hostAttrs:[1,"ngx-slider"],hostVars:7,hostBindings:function(G,se){1&G&&le.NdJ("resize",function(vt){return se.onResize(vt)},!1,le.Jf7),2&G&&(le.uIk("disabled",se.sliderElementDisabledAttr),le.ekj("vertical",se.sliderElementVerticalClass)("animate",se.sliderElementAnimateClass)("with-legend",se.sliderElementWithLegendClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[le._Bn([St]),le.TTD],decls:29,vars:13,consts:[["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ngx-slider-span","ngx-slider-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-right-out-selection"],["rightOuterSelectionBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-full-bar"],["fullBar",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-selection-bar"],["selectionBar",""],[1,"ngx-slider-span","ngx-slider-bar","ngx-slider-selection",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-floor"],["floorLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-ceil"],["ceilLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-value"],["minHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-high"],["maxHandleLabel",""],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-combined"],["combinedLabel",""],["ngxSliderElement","",1,"ngx-slider-ticks",3,"hidden"],["ticksElement",""],["class","ngx-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ngx-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ngx-slider-span ngx-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ngx-slider-span ngx-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ngx-slider-span","ngx-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerHTML"]],template:function(G,se){1&G&&(le.TgZ(0,"span",0,1),le._UZ(2,"span",2),le.qZA(),le.TgZ(3,"span",3,4),le._UZ(5,"span",2),le.qZA(),le.TgZ(6,"span",5,6),le._UZ(8,"span",2),le.qZA(),le.TgZ(9,"span",7,8),le._UZ(11,"span",9),le.qZA(),le._UZ(12,"span",10,11),le._UZ(14,"span",12,13),le._UZ(16,"span",14,15),le._UZ(18,"span",16,17),le._UZ(20,"span",18,19),le._UZ(22,"span",20,21),le._UZ(24,"span",22,23),le.TgZ(26,"span",24,25),le.YNc(28,Dn,4,9,"span",26),le.qZA()),2&G&&(le.xp6(6),le.ekj("ngx-slider-transparent",se.fullBarTransparentClass),le.xp6(3),le.ekj("ngx-slider-draggable",se.selectionBarDraggableClass),le.xp6(2),le.Q6J("ngStyle",se.barStyle),le.xp6(1),le.Q6J("ngStyle",se.minPointerStyle),le.xp6(2),le.Udp("display",se.range?"inherit":"none"),le.Q6J("ngStyle",se.maxPointerStyle),le.xp6(12),le.ekj("ngx-slider-ticks-values-under",se.ticksUnderValuesClass),le.Q6J("hidden",!se.showTicks),le.xp6(2),le.Q6J("ngForOf",se.ticks))},directives:function(){return[Ie,He.PC,It,ge,He.sg,He.mk,ye,He.O5]},styles:[".ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y} .ngx-slider.with-legend{margin-bottom:40px} .ngx-slider[disabled]{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3} .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2} .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2} .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block} .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1} .ngx-slider .ngx-slider-draggable{cursor:move} .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:0 0} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688} .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;border-radius:2px} .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px} .ngx-slider .ngx-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff} .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff} .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4} .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff} .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px} .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d} .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none} .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px} .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px} .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0} .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)} .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal} .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x} .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px} .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%} .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0} .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0} .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1} .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px} .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)} .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap} .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px} .ngx-slider *{transition:none} .ngx-slider.animate .ngx-slider-bar-wrapper{transition:.3s linear} .ngx-slider.animate .ngx-slider-selection{transition:background-color .3s linear} .ngx-slider.animate .ngx-slider-pointer{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-tick{transition:background-color .3s linear}"]}),Se})(),ye=(()=>{class Se{}return Se.\u0275fac=function(G){return new(G||Se)},Se.\u0275cmp=le.Xpm({type:Se,selectors:[["ngx-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ngx-slider-inner-tooltip"]],template:function(G,se){1&G&&(le.YNc(0,_i,2,6,"ng-container",0),le.YNc(1,Sn,3,3,"ng-container",0)),2&G&&(le.Q6J("ngIf",se.template),le.xp6(1),le.Q6J("ngIf",!se.template))},directives:[He.O5,He.tP],styles:[".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),Se})(),ie=(()=>{class Se{}return Se.\u0275fac=function(G){return new(G||Se)},Se.\u0275mod=le.oAB({type:Se}),Se.\u0275inj=le.cJS({imports:[[He.ez]]}),Se})()},8583:(Xe,Ee,L)=>{"use strict";L.d(Ee,{mr:()=>Vt,ez:()=>zr,K0:()=>Z,x:()=>ot,Do:()=>Zn,V_:()=>q,Ye:()=>Jn,S$:()=>pt,mk:()=>ht,sg:()=>tn,O5:()=>Pn,PC:()=>kn,RF:()=>Ve,n9:()=>Ue,tP:()=>Zt,b0:()=>dn,Zx:()=>Jr,lw:()=>F,Tn:()=>Ze,EM:()=>Qi,JF:()=>v,p6:()=>vt,Mn:()=>Si,ol:()=>Dn,UT:()=>$n,NF:()=>vs,w_:()=>S,bD:()=>$r,q:()=>P,Mx:()=>Ce,HT:()=>E});var i=L(7716);let o=null;function P(){return o}function E(g){o||(o=g)}class S{}const Z=new i.OlP("DocumentToken");let F=(()=>{class g{historyGo(D){throw new Error("Not implemented")}}return g.\u0275fac=function(D){return new(D||g)},g.\u0275prov=(0,i.Yz7)({factory:z,token:g,providedIn:"platform"}),g})();function z(){return(0,i.LFG)(d)}const q=new i.OlP("Location Initialized");let d=(()=>{class g extends F{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P().getBaseHref(this._doc)}onPopState(D){const _=P().getGlobalEventTarget(this._doc,"window");return _.addEventListener("popstate",D,!1),()=>_.removeEventListener("popstate",D)}onHashChange(D){const _=P().getGlobalEventTarget(this._doc,"window");return _.addEventListener("hashchange",D,!1),()=>_.removeEventListener("hashchange",D)}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(D){this.location.pathname=D}pushState(D,_,w){oe()?this._history.pushState(D,_,w):this.location.hash=w}replaceState(D,_,w){oe()?this._history.replaceState(D,_,w):this.location.hash=w}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return g.\u0275fac=function(D){return new(D||g)(i.LFG(Z))},g.\u0275prov=(0,i.Yz7)({factory:De,token:g,providedIn:"platform"}),g})();function oe(){return!!window.history.pushState}function De(){return new d((0,i.LFG)(Z))}function st(g,x){if(0==g.length)return x;if(0==x.length)return g;let D=0;return g.endsWith("/")&&D++,x.startsWith("/")&&D++,2==D?g+x.substring(1):1==D?g+x:g+"/"+x}function Te(g){const x=g.match(/#|\?|$/),D=x&&x.index||g.length;return g.slice(0,D-("/"===g[D-1]?1:0))+g.slice(D)}function le(g){return g&&"?"!==g[0]?"?"+g:g}let pt=(()=>{class g{historyGo(D){throw new Error("Not implemented")}}return g.\u0275fac=function(D){return new(D||g)},g.\u0275prov=(0,i.Yz7)({factory:He,token:g,providedIn:"root"}),g})();function He(g){const x=(0,i.LFG)(Z).location;return new dn((0,i.LFG)(F),x&&x.origin||"")}const Vt=new i.OlP("appBaseHref");let dn=(()=>{class g extends pt{constructor(D,_){if(super(),this._platformLocation=D,this._removeListenerFns=[],null==_&&(_=this._platformLocation.getBaseHrefFromDOM()),null==_)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=_}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return st(this._baseHref,D)}path(D=!1){const _=this._platformLocation.pathname+le(this._platformLocation.search),w=this._platformLocation.hash;return w&&D?`${_}${w}`:_}pushState(D,_,w,T){const V=this.prepareExternalUrl(w+le(T));this._platformLocation.pushState(D,_,V)}replaceState(D,_,w,T){const V=this.prepareExternalUrl(w+le(T));this._platformLocation.replaceState(D,_,V)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(D=0){var _,w;null===(w=(_=this._platformLocation).historyGo)||void 0===w||w.call(_,D)}}return g.\u0275fac=function(D){return new(D||g)(i.LFG(F),i.LFG(Vt,8))},g.\u0275prov=i.Yz7({token:g,factory:g.\u0275fac}),g})(),Zn=(()=>{class g extends pt{constructor(D,_){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=_&&(this._baseHref=_)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let _=this._platformLocation.hash;return null==_&&(_="#"),_.length>0?_.substring(1):_}prepareExternalUrl(D){const _=st(this._baseHref,D);return _.length>0?"#"+_:_}pushState(D,_,w,T){let V=this.prepareExternalUrl(w+le(T));0==V.length&&(V=this._platformLocation.pathname),this._platformLocation.pushState(D,_,V)}replaceState(D,_,w,T){let V=this.prepareExternalUrl(w+le(T));0==V.length&&(V=this._platformLocation.pathname),this._platformLocation.replaceState(D,_,V)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(D=0){var _,w;null===(w=(_=this._platformLocation).historyGo)||void 0===w||w.call(_,D)}}return g.\u0275fac=function(D){return new(D||g)(i.LFG(F),i.LFG(Vt,8))},g.\u0275prov=i.Yz7({token:g,factory:g.\u0275fac}),g})(),Jn=(()=>{class g{constructor(D,_){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=D;const w=this._platformStrategy.getBaseHref();this._platformLocation=_,this._baseHref=Te(_t(w)),this._platformStrategy.onPopState(T=>{this._subject.emit({url:this.path(!0),pop:!0,state:T.state,type:T.type})})}path(D=!1){return this.normalize(this._platformStrategy.path(D))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(D,_=""){return this.path()==this.normalize(D+le(_))}normalize(D){return g.stripTrailingSlash(function(g,x){return g&&x.startsWith(g)?x.substring(g.length):x}(this._baseHref,_t(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._platformStrategy.prepareExternalUrl(D)}go(D,_="",w=null){this._platformStrategy.pushState(w,"",D,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+le(_)),w)}replaceState(D,_="",w=null){this._platformStrategy.replaceState(w,"",D,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+le(_)),w)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(D=0){var _,w;null===(w=(_=this._platformStrategy).historyGo)||void 0===w||w.call(_,D)}onUrlChange(D){this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(_=>{this._notifyUrlChangeListeners(_.url,_.state)}))}_notifyUrlChangeListeners(D="",_){this._urlChangeListeners.forEach(w=>w(D,_))}subscribe(D,_,w){return this._subject.subscribe({next:D,error:_,complete:w})}}return g.\u0275fac=function(D){return new(D||g)(i.LFG(pt),i.LFG(F))},g.normalizeQueryParams=le,g.joinWithSlash=st,g.stripTrailingSlash=Te,g.\u0275prov=(0,i.Yz7)({factory:zn,token:g,providedIn:"root"}),g})();function zn(){return new Jn((0,i.LFG)(pt),(0,i.LFG)(F))}function _t(g){return g.replace(/\/index.html$/,"")}var fn=(()=>((fn=fn||{})[fn.Decimal=0]="Decimal",fn[fn.Percent=1]="Percent",fn[fn.Currency=2]="Currency",fn[fn.Scientific=3]="Scientific",fn))(),At=(()=>((At=At||{})[At.Zero=0]="Zero",At[At.One=1]="One",At[At.Two=2]="Two",At[At.Few=3]="Few",At[At.Many=4]="Many",At[At.Other=5]="Other",At))(),ot=(()=>((ot=ot||{})[ot.Format=0]="Format",ot[ot.Standalone=1]="Standalone",ot))(),Ze=(()=>((Ze=Ze||{})[Ze.Narrow=0]="Narrow",Ze[Ze.Abbreviated=1]="Abbreviated",Ze[Ze.Wide=2]="Wide",Ze[Ze.Short=3]="Short",Ze))(),wt=(()=>((wt=wt||{})[wt.Short=0]="Short",wt[wt.Medium=1]="Medium",wt[wt.Long=2]="Long",wt[wt.Full=3]="Full",wt))(),Dt=(()=>((Dt=Dt||{})[Dt.Decimal=0]="Decimal",Dt[Dt.Group=1]="Group",Dt[Dt.List=2]="List",Dt[Dt.PercentSign=3]="PercentSign",Dt[Dt.PlusSign=4]="PlusSign",Dt[Dt.MinusSign=5]="MinusSign",Dt[Dt.Exponential=6]="Exponential",Dt[Dt.SuperscriptingExponent=7]="SuperscriptingExponent",Dt[Dt.PerMille=8]="PerMille",Dt[Dt.Infinity=9]="Infinity",Dt[Dt.NaN=10]="NaN",Dt[Dt.TimeSeparator=11]="TimeSeparator",Dt[Dt.CurrencyDecimal=12]="CurrencyDecimal",Dt[Dt.CurrencyGroup=13]="CurrencyGroup",Dt))();function Dn(g,x,D){const _=(0,i.cg1)(g),T=$e([_[i.wAp.DayPeriodsFormat],_[i.wAp.DayPeriodsStandalone]],x);return $e(T,D)}function Si(g,x,D){const _=(0,i.cg1)(g),T=$e([_[i.wAp.DaysFormat],_[i.wAp.DaysStandalone]],x);return $e(T,D)}function $n(g,x,D){const _=(0,i.cg1)(g),T=$e([_[i.wAp.MonthsFormat],_[i.wAp.MonthsStandalone]],x);return $e(T,D)}function ai(g,x){return $e((0,i.cg1)(g)[i.wAp.DateFormat],x)}function di(g,x){return $e((0,i.cg1)(g)[i.wAp.TimeFormat],x)}function $t(g,x){return $e((0,i.cg1)(g)[i.wAp.DateTimeFormat],x)}function An(g,x){const D=(0,i.cg1)(g),_=D[i.wAp.NumberSymbols][x];if(void 0===_){if(x===Dt.CurrencyDecimal)return D[i.wAp.NumberSymbols][Dt.Decimal];if(x===Dt.CurrencyGroup)return D[i.wAp.NumberSymbols][Dt.Group]}return _}const Ie=i.kL8;function It(g){if(!g[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $e(g,x){for(let D=x;D>-1;D--)if(void 0!==g[D])return g[D];throw new Error("Locale data API: locale data undefined")}function nn(g){const[x,D]=g.split(":");return{hours:+x,minutes:+D}}const ie=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Se={},_e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var G=(()=>((G=G||{})[G.Short=0]="Short",G[G.ShortGMT=1]="ShortGMT",G[G.Long=2]="Long",G[G.Extended=3]="Extended",G))(),se=(()=>((se=se||{})[se.FullYear=0]="FullYear",se[se.Month=1]="Month",se[se.Date=2]="Date",se[se.Hours=3]="Hours",se[se.Minutes=4]="Minutes",se[se.Seconds=5]="Seconds",se[se.FractionalSeconds=6]="FractionalSeconds",se[se.Day=7]="Day",se))(),ze=(()=>((ze=ze||{})[ze.DayPeriods=0]="DayPeriods",ze[ze.Days=1]="Days",ze[ze.Months=2]="Months",ze[ze.Eras=3]="Eras",ze))();function vt(g,x,D,_){let w=function(g){if(Kt(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[w,T=1,V=1]=g.split("-").map(pe=>+pe);return Pt(w,T-1,V)}const D=parseFloat(g);if(!isNaN(g-D))return new Date(D);let _;if(_=g.match(ie))return function(g){const x=new Date(0);let D=0,_=0;const w=g[8]?x.setUTCFullYear:x.setFullYear,T=g[8]?x.setUTCHours:x.setHours;g[9]&&(D=Number(g[9]+g[10]),_=Number(g[9]+g[11])),w.call(x,Number(g[1]),Number(g[2])-1,Number(g[3]));const V=Number(g[4]||0)-D,pe=Number(g[5]||0)-_,Be=Number(g[6]||0),Mt=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return T.call(x,V,pe,Be,Mt),x}(_)}const x=new Date(g);if(!Kt(x))throw new Error(`Unable to convert "${g}" into a date`);return x}(g);x=Ct(D,x)||x;let pe,V=[];for(;x;){if(pe=_e.exec(x),!pe){V.push(x);break}{V=V.concat(pe.slice(1));const Ft=V.pop();if(!Ft)break;x=Ft}}let Be=w.getTimezoneOffset();_&&(Be=Ir(_,Be),w=function(g,x,D){const w=g.getTimezoneOffset();return function(g,x){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+x),g}(g,-1*(Ir(x,w)-w))}(w,_));let Mt="";return V.forEach(Ft=>{const bt=function(g){if(Dr[g])return Dr[g];let x;switch(g){case"G":case"GG":case"GGG":x=Wn(ze.Eras,Ze.Abbreviated);break;case"GGGG":x=Wn(ze.Eras,Ze.Wide);break;case"GGGGG":x=Wn(ze.Eras,Ze.Narrow);break;case"y":x=_n(se.FullYear,1,0,!1,!0);break;case"yy":x=_n(se.FullYear,2,0,!0,!0);break;case"yyy":x=_n(se.FullYear,3,0,!1,!0);break;case"yyyy":x=_n(se.FullYear,4,0,!1,!0);break;case"Y":x=xi(1);break;case"YY":x=xi(2,!0);break;case"YYY":x=xi(3);break;case"YYYY":x=xi(4);break;case"M":case"L":x=_n(se.Month,1,1);break;case"MM":case"LL":x=_n(se.Month,2,1);break;case"MMM":x=Wn(ze.Months,Ze.Abbreviated);break;case"MMMM":x=Wn(ze.Months,Ze.Wide);break;case"MMMMM":x=Wn(ze.Months,Ze.Narrow);break;case"LLL":x=Wn(ze.Months,Ze.Abbreviated,ot.Standalone);break;case"LLLL":x=Wn(ze.Months,Ze.Wide,ot.Standalone);break;case"LLLLL":x=Wn(ze.Months,Ze.Narrow,ot.Standalone);break;case"w":x=qi(1);break;case"ww":x=qi(2);break;case"W":x=qi(1,!0);break;case"d":x=_n(se.Date,1);break;case"dd":x=_n(se.Date,2);break;case"c":case"cc":x=_n(se.Day,1);break;case"ccc":x=Wn(ze.Days,Ze.Abbreviated,ot.Standalone);break;case"cccc":x=Wn(ze.Days,Ze.Wide,ot.Standalone);break;case"ccccc":x=Wn(ze.Days,Ze.Narrow,ot.Standalone);break;case"cccccc":x=Wn(ze.Days,Ze.Short,ot.Standalone);break;case"E":case"EE":case"EEE":x=Wn(ze.Days,Ze.Abbreviated);break;case"EEEE":x=Wn(ze.Days,Ze.Wide);break;case"EEEEE":x=Wn(ze.Days,Ze.Narrow);break;case"EEEEEE":x=Wn(ze.Days,Ze.Short);break;case"a":case"aa":case"aaa":x=Wn(ze.DayPeriods,Ze.Abbreviated);break;case"aaaa":x=Wn(ze.DayPeriods,Ze.Wide);break;case"aaaaa":x=Wn(ze.DayPeriods,Ze.Narrow);break;case"b":case"bb":case"bbb":x=Wn(ze.DayPeriods,Ze.Abbreviated,ot.Standalone,!0);break;case"bbbb":x=Wn(ze.DayPeriods,Ze.Wide,ot.Standalone,!0);break;case"bbbbb":x=Wn(ze.DayPeriods,Ze.Narrow,ot.Standalone,!0);break;case"B":case"BB":case"BBB":x=Wn(ze.DayPeriods,Ze.Abbreviated,ot.Format,!0);break;case"BBBB":x=Wn(ze.DayPeriods,Ze.Wide,ot.Format,!0);break;case"BBBBB":x=Wn(ze.DayPeriods,Ze.Narrow,ot.Format,!0);break;case"h":x=_n(se.Hours,1,-12);break;case"hh":x=_n(se.Hours,2,-12);break;case"H":x=_n(se.Hours,1);break;case"HH":x=_n(se.Hours,2);break;case"m":x=_n(se.Minutes,1);break;case"mm":x=_n(se.Minutes,2);break;case"s":x=_n(se.Seconds,1);break;case"ss":x=_n(se.Seconds,2);break;case"S":x=_n(se.FractionalSeconds,1);break;case"SS":x=_n(se.FractionalSeconds,2);break;case"SSS":x=_n(se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":x=Ni(G.Short);break;case"ZZZZZ":x=Ni(G.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":x=Ni(G.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":x=Ni(G.Long);break;default:return null}return Dr[g]=x,x}(Ft);Mt+=bt?bt(w,D,Be):"''"===Ft?"'":Ft.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mt}function Pt(g,x,D){const _=new Date(0);return _.setFullYear(g,x,D),_.setHours(0,0,0),_}function Ct(g,x){const D=function(g){return(0,i.cg1)(g)[i.wAp.LocaleId]}(g);if(Se[D]=Se[D]||{},Se[D][x])return Se[D][x];let _="";switch(x){case"shortDate":_=ai(g,wt.Short);break;case"mediumDate":_=ai(g,wt.Medium);break;case"longDate":_=ai(g,wt.Long);break;case"fullDate":_=ai(g,wt.Full);break;case"shortTime":_=di(g,wt.Short);break;case"mediumTime":_=di(g,wt.Medium);break;case"longTime":_=di(g,wt.Long);break;case"fullTime":_=di(g,wt.Full);break;case"short":const w=Ct(g,"shortTime"),T=Ct(g,"shortDate");_=wn($t(g,wt.Short),[w,T]);break;case"medium":const V=Ct(g,"mediumTime"),pe=Ct(g,"mediumDate");_=wn($t(g,wt.Medium),[V,pe]);break;case"long":const Be=Ct(g,"longTime"),Mt=Ct(g,"longDate");_=wn($t(g,wt.Long),[Be,Mt]);break;case"full":const Ft=Ct(g,"fullTime"),bt=Ct(g,"fullDate");_=wn($t(g,wt.Full),[Ft,bt])}return _&&(Se[D][x]=_),_}function wn(g,x){return x&&(g=g.replace(/\{([^}]+)}/g,function(D,_){return null!=x&&_ in x?x[_]:D})),g}function Nn(g,x,D="-",_,w){let T="";(g<0||w&&g<=0)&&(w?g=1-g:(g=-g,T=D));let V=String(g);for(;V.length0||pe>-D)&&(pe+=D),g===se.Hours)0===pe&&-12===D&&(pe=12);else if(g===se.FractionalSeconds)return function(g,x){return Nn(g,3).substr(0,x)}(pe,x);const Be=An(V,Dt.MinusSign);return Nn(pe,x,Be,_,w)}}function Wn(g,x,D=ot.Format,_=!1){return function(w,T){return function(g,x,D,_,w,T){switch(D){case ze.Months:return $n(x,w,_)[g.getMonth()];case ze.Days:return Si(x,w,_)[g.getDay()];case ze.DayPeriods:const V=g.getHours(),pe=g.getMinutes();if(T){const Mt=function(g){const x=(0,i.cg1)(g);return It(x),(x[i.wAp.ExtraData][2]||[]).map(_=>"string"==typeof _?nn(_):[nn(_[0]),nn(_[1])])}(x),Ft=function(g,x,D){const _=(0,i.cg1)(g);It(_);const T=$e([_[i.wAp.ExtraData][0],_[i.wAp.ExtraData][1]],x)||[];return $e(T,D)||[]}(x,w,_),bt=Mt.findIndex(Wt=>{if(Array.isArray(Wt)){const[Mn,oi]=Wt,Mi=V>=Mn.hours&&pe>=Mn.minutes,ii=V0?Math.floor(w/60):Math.ceil(w/60);switch(g){case G.Short:return(w>=0?"+":"")+Nn(V,2,T)+Nn(Math.abs(w%60),2,T);case G.ShortGMT:return"GMT"+(w>=0?"+":"")+Nn(V,1,T);case G.Long:return"GMT"+(w>=0?"+":"")+Nn(V,2,T)+":"+Nn(Math.abs(w%60),2,T);case G.Extended:return 0===_?"Z":(w>=0?"+":"")+Nn(V,2,T)+":"+Nn(Math.abs(w%60),2,T);default:throw new Error(`Unknown zone width "${g}"`)}}}function me(g){return Pt(g.getFullYear(),g.getMonth(),g.getDate()+(4-g.getDay()))}function qi(g,x=!1){return function(D,_){let w;if(x){const T=new Date(D.getFullYear(),D.getMonth(),1).getDay()-1,V=D.getDate();w=1+Math.floor((V+T)/7)}else{const T=me(D),V=function(g){const x=Pt(g,0,1).getDay();return Pt(g,0,1+(x<=4?4:11)-x)}(T.getFullYear()),pe=T.getTime()-V.getTime();w=1+Math.round(pe/6048e5)}return Nn(w,g,An(_,Dt.MinusSign))}}function xi(g,x=!1){return function(D,_){return Nn(me(D).getFullYear(),g,An(_,Dt.MinusSign),x)}}const Dr={};function Ir(g,x){g=g.replace(/:/g,"");const D=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(D)?x:D}function Kt(g){return g instanceof Date&&!isNaN(g.valueOf())}const Tn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function yn(g){const x=parseInt(g);if(isNaN(x))throw new Error("Invalid integer literal when parsing "+g);return x}class it{}let we=(()=>{class g extends it{constructor(D){super(),this.locale=D}getPluralCategory(D,_){switch(Ie(_||this.locale)(D)){case At.Zero:return"zero";case At.One:return"one";case At.Two:return"two";case At.Few:return"few";case At.Many:return"many";default:return"other"}}}return g.\u0275fac=function(D){return new(D||g)(i.LFG(i.soG))},g.\u0275prov=i.Yz7({token:g,factory:g.\u0275fac}),g})();function Ce(g,x){x=encodeURIComponent(x);for(const D of g.split(";")){const _=D.indexOf("="),[w,T]=-1==_?[D,""]:[D.slice(0,_),D.slice(_+1)];if(w.trim()===x)return decodeURIComponent(T)}return null}let ht=(()=>{class g{constructor(D,_,w,T){this._iterableDiffers=D,this._keyValueDiffers=_,this._ngEl=w,this._renderer=T,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(_=>this._toggleClass(_.key,_.currentValue)),D.forEachChangedItem(_=>this._toggleClass(_.key,_.currentValue)),D.forEachRemovedItem(_=>{_.previousValue&&this._toggleClass(_.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(_=>{if("string"!=typeof _.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(_.item)}`);this._toggleClass(_.item,!0)}),D.forEachRemovedItem(_=>this._toggleClass(_.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(_=>this._toggleClass(_,!0)):Object.keys(D).forEach(_=>this._toggleClass(_,!!D[_])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(_=>this._toggleClass(_,!1)):Object.keys(D).forEach(_=>this._toggleClass(_,!1)))}_toggleClass(D,_){(D=D.trim())&&D.split(/\s+/g).forEach(w=>{_?this._renderer.addClass(this._ngEl.nativeElement,w):this._renderer.removeClass(this._ngEl.nativeElement,w)})}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),g})();class Cn{constructor(x,D,_,w){this.$implicit=x,this.ngForOf=D,this.index=_,this.count=w}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 tn=(()=>{class g{constructor(D,_,w){this._viewContainer=D,this._template=_,this._differs=w,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;if(!this._differ&&D)try{this._differ=this._differs.find(D).create(this.ngForTrackBy)}catch(_){throw new Error(`Cannot find a differ supporting object '${D}' of type '${function(g){return g.name||typeof g}(D)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const _=[];D.forEachOperation((w,T,V)=>{if(null==w.previousIndex){const pe=this._viewContainer.createEmbeddedView(this._template,new Cn(null,this._ngForOf,-1,-1),null===V?void 0:V),Be=new si(w,pe);_.push(Be)}else if(null==V)this._viewContainer.remove(null===T?void 0:T);else if(null!==T){const pe=this._viewContainer.get(T);this._viewContainer.move(pe,V);const Be=new si(w,pe);_.push(Be)}});for(let w=0;w<_.length;w++)this._perViewChange(_[w].view,_[w].record);for(let w=0,T=this._viewContainer.length;w{this._viewContainer.get(w.currentIndex).context.$implicit=w.item})}_perViewChange(D,_){D.context.$implicit=_.item}static ngTemplateContextGuard(D,_){return!0}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),g})();class si{constructor(x,D){this.record=x,this.view=D}}let Pn=(()=>{class g{constructor(D,_){this._viewContainer=D,this._context=new ur,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=_}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Sr("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Sr("ngIfElse",D),this._elseTemplateRef=D,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(D,_){return!0}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.s_b),i.Y36(i.Rgc))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),g})();class ur{constructor(){this.$implicit=null,this.ngIf=null}}function Sr(g,x){if(x&&!x.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,i.AaK)(x)}'.`)}class Or{constructor(x,D){this._viewContainerRef=x,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(x){x&&!this._created?this.create():!x&&this._created&&this.destroy()}}let Ve=(()=>{class g{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const _=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||_,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),_}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let _=0;_{class g{constructor(D,_,w){this.ngSwitch=w,w._addCase(),this._view=new Or(D,_)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(Ve,9))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),g})(),kn=(()=>{class g{constructor(D,_,w){this._ngEl=D,this._differs=_,this._renderer=w,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,_){const[w,T]=D.split(".");null!=(_=null!=_&&T?`${_}${T}`:_)?this._renderer.setStyle(this._ngEl.nativeElement,w,_):this._renderer.removeStyle(this._ngEl.nativeElement,w)}_applyChanges(D){D.forEachRemovedItem(_=>this._setStyle(_.key,null)),D.forEachAddedItem(_=>this._setStyle(_.key,_.currentValue)),D.forEachChangedItem(_=>this._setStyle(_.key,_.currentValue))}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.SBq),i.Y36(i.aQg),i.Y36(i.Qsj))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),g})(),Zt=(()=>{class g{constructor(D){this._viewContainerRef=D,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(D){if(D.ngTemplateOutlet){const _=this._viewContainerRef;this._viewRef&&_.remove(_.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?_.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&D.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return g.\u0275fac=function(D){return new(D||g)(i.Y36(i.s_b))},g.\u0275dir=i.lG2({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),g})();let Jr=(()=>{class g{constructor(D){this._locale=D}transform(D,_,w){if(!function(g){return!(null==g||""===g||g!=g)}(D))return null;w=w||this._locale;try{return function(g,x,D){return function(g,x,D,_,w,T,V=!1){let pe="",Be=!1;if(isFinite(g)){let Mt=function(g){let _,w,T,V,pe,x=Math.abs(g)+"",D=0;for((w=x.indexOf("."))>-1&&(x=x.replace(".","")),(T=x.search(/e/i))>0?(w<0&&(w=T),w+=+x.slice(T+1),x=x.substring(0,T)):w<0&&(w=x.length),T=0;"0"===x.charAt(T);T++);if(T===(pe=x.length))_=[0],w=1;else{for(pe--;"0"===x.charAt(pe);)pe--;for(w-=T,_=[],V=0;T<=pe;T++,V++)_[V]=Number(x.charAt(T))}return w>22&&(_=_.splice(0,21),D=w-1,w=1),{digits:_,exponent:D,integerLen:w}}(g);V&&(Mt=function(g){if(0===g.digits[0])return g;const x=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===x?g.digits.push(0,0):1===x&&g.digits.push(0),g.integerLen+=2),g}(Mt));let Ft=x.minInt,bt=x.minFrac,Wt=x.maxFrac;if(T){const es=T.match(Tn);if(null===es)throw new Error(`${T} is not a valid digit info`);const Gn=es[1],Qn=es[3],Qs=es[5];null!=Gn&&(Ft=yn(Gn)),null!=Qn&&(bt=yn(Qn)),null!=Qs?Wt=yn(Qs):null!=Qn&&bt>Wt&&(Wt=bt)}!function(g,x,D){if(x>D)throw new Error(`The minimum number of digits after fraction (${x}) is higher than the maximum (${D}).`);let _=g.digits,w=_.length-g.integerLen;const T=Math.min(Math.max(x,w),D);let V=T+g.integerLen,pe=_[V];if(V>0){_.splice(Math.max(g.integerLen,V));for(let bt=V;bt<_.length;bt++)_[bt]=0}else{w=Math.max(0,w),g.integerLen=1,_.length=Math.max(1,V=T+1),_[0]=0;for(let bt=1;bt=5)if(V-1<0){for(let bt=0;bt>V;bt--)_.unshift(0),g.integerLen++;_.unshift(1),g.integerLen++}else _[V-1]++;for(;w=Mt?oi.pop():Be=!1),Wt>=10?1:0},0);Ft&&(_.unshift(Ft),g.integerLen++)}(Mt,bt,Wt);let Mn=Mt.digits,oi=Mt.integerLen;const Mi=Mt.exponent;let ii=[];for(Be=Mn.every(es=>!es);oi0?ii=Mn.splice(oi,Mn.length):(ii=Mn,Mn=[0]);const Cr=[];for(Mn.length>=x.lgSize&&Cr.unshift(Mn.splice(-x.lgSize,Mn.length).join(""));Mn.length>x.gSize;)Cr.unshift(Mn.splice(-x.gSize,Mn.length).join(""));Mn.length&&Cr.unshift(Mn.join("")),pe=Cr.join(An(D,_)),ii.length&&(pe+=An(D,w)+ii.join("")),Mi&&(pe+=An(D,Dt.Exponential)+"+"+Mi)}else pe=An(D,Dt.Infinity);return pe=g<0&&!Be?x.negPre+pe+x.negSuf:x.posPre+pe+x.posSuf,pe}(g,function(g,x="-"){const D={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},_=g.split(";"),w=_[0],T=_[1],V=-1!==w.indexOf(".")?w.split("."):[w.substring(0,w.lastIndexOf("0")+1),w.substring(w.lastIndexOf("0")+1)],pe=V[0],Be=V[1]||"";D.posPre=pe.substr(0,pe.indexOf("#"));for(let Ft=0;Ft{class g{}return g.\u0275fac=function(D){return new(D||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({providers:[{provide:it,useClass:we}]}),g})();const $r="browser";function vs(g){return g===$r}let Qi=(()=>{class g{}return g.\u0275prov=(0,i.Yz7)({token:g,providedIn:"root",factory:()=>new Ts((0,i.LFG)(Z),window)}),g})();class Ts{constructor(x,D){this.document=x,this.window=D,this.offset=()=>[0,0]}setOffset(x){this.offset=Array.isArray(x)?()=>x:x}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(x){this.supportsScrolling()&&this.window.scrollTo(x[0],x[1])}scrollToAnchor(x){if(!this.supportsScrolling())return;const D=function(g,x){const D=g.getElementById(x)||g.getElementsByName(x)[0];if(D)return D;if("function"==typeof g.createTreeWalker&&g.body&&(g.body.createShadowRoot||g.body.attachShadow)){const _=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let w=_.currentNode;for(;w;){const T=w.shadowRoot;if(T){const V=T.getElementById(x)||T.querySelector(`[name="${x}"]`);if(V)return V}w=_.nextNode()}}return null}(this.document,x);D&&(this.scrollToElement(D),this.attemptFocus(D))}setHistoryScrollRestoration(x){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=x)}}scrollToElement(x){const D=x.getBoundingClientRect(),_=D.left+this.window.pageXOffset,w=D.top+this.window.pageYOffset,T=this.offset();this.window.scrollTo(_-T[0],w-T[1])}attemptFocus(x){return x.focus(),this.document.activeElement===x}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const x=Ps(this.window.history)||Ps(Object.getPrototypeOf(this.window.history));return!(!x||!x.writable&&!x.set)}catch(x){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(x){return!1}}}function Ps(g){return Object.getOwnPropertyDescriptor(g,"scrollRestoration")}class v{}},1841:(Xe,Ee,L)=>{"use strict";L.d(Ee,{TP:()=>Ln,eN:()=>Dt,JF:()=>$e});var i=L(8583),o=L(7716),P=L(5917),s=L(7574),E=L(4612),S=L(5435),Z=L(8002);class F{}class z{}class q{constructor(ye){this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?()=>{this.headers=new Map,ye.split("\n").forEach(ie=>{const Se=ie.indexOf(":");if(Se>0){const _e=ie.slice(0,Se),G=_e.toLowerCase(),se=ie.slice(Se+1).trim();this.maybeSetNormalizedName(_e,G),this.headers.has(G)?this.headers.get(G).push(se):this.headers.set(G,[se])}})}:()=>{this.headers=new Map,Object.keys(ye).forEach(ie=>{let Se=ye[ie];const _e=ie.toLowerCase();"string"==typeof Se&&(Se=[Se]),Se.length>0&&(this.headers.set(_e,Se),this.maybeSetNormalizedName(ie,_e))})}:this.headers=new Map}has(ye){return this.init(),this.headers.has(ye.toLowerCase())}get(ye){this.init();const ie=this.headers.get(ye.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}append(ye,ie){return this.clone({name:ye,value:ie,op:"a"})}set(ye,ie){return this.clone({name:ye,value:ie,op:"s"})}delete(ye,ie){return this.clone({name:ye,value:ie,op:"d"})}maybeSetNormalizedName(ye,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,ye)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ye=>this.applyUpdate(ye)),this.lazyUpdate=null))}copyFrom(ye){ye.init(),Array.from(ye.headers.keys()).forEach(ie=>{this.headers.set(ie,ye.headers.get(ie)),this.normalizedNames.set(ie,ye.normalizedNames.get(ie))})}clone(ye){const ie=new q;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),ie}applyUpdate(ye){const ie=ye.name.toLowerCase();switch(ye.op){case"a":case"s":let Se=ye.value;if("string"==typeof Se&&(Se=[Se]),0===Se.length)return;this.maybeSetNormalizedName(ye.name,ie);const _e=("a"===ye.op?this.headers.get(ie):void 0)||[];_e.push(...Se),this.headers.set(ie,_e);break;case"d":const G=ye.value;if(G){let se=this.headers.get(ie);if(!se)return;se=se.filter(ze=>-1===G.indexOf(ze)),0===se.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,se)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>ye(this.normalizedNames.get(ie),this.headers.get(ie)))}}class d{encodeKey(ye){return Te(ye)}encodeValue(ye){return Te(ye)}decodeKey(ye){return decodeURIComponent(ye)}decodeValue(ye){return decodeURIComponent(ye)}}const De=/%(\d[a-f0-9])/gi,st={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Te(Pe){return encodeURIComponent(Pe).replace(De,(ye,ie)=>{var Se;return null!==(Se=st[ie])&&void 0!==Se?Se:ye})}function le(Pe){return`${Pe}`}class pt{constructor(ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new d,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(Pe,ye){const ie=new Map;return Pe.length>0&&Pe.replace(/^\?/,"").split("&").forEach(_e=>{const G=_e.indexOf("="),[se,ze]=-1==G?[ye.decodeKey(_e),""]:[ye.decodeKey(_e.slice(0,G)),ye.decodeValue(_e.slice(G+1))],vt=ie.get(se)||[];vt.push(ze),ie.set(se,vt)}),ie}(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(ie=>{const Se=ye.fromObject[ie];this.map.set(ie,Array.isArray(Se)?Se:[Se])})):this.map=null}has(ye){return this.init(),this.map.has(ye)}get(ye){this.init();const ie=this.map.get(ye);return ie?ie[0]:null}getAll(ye){return this.init(),this.map.get(ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ye,ie){return this.clone({param:ye,value:ie,op:"a"})}appendAll(ye){const ie=[];return Object.keys(ye).forEach(Se=>{const _e=ye[Se];Array.isArray(_e)?_e.forEach(G=>{ie.push({param:Se,value:G,op:"a"})}):ie.push({param:Se,value:_e,op:"a"})}),this.clone(ie)}set(ye,ie){return this.clone({param:ye,value:ie,op:"s"})}delete(ye,ie){return this.clone({param:ye,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(ye=>{const ie=this.encoder.encodeKey(ye);return this.map.get(ye).map(Se=>ie+"="+this.encoder.encodeValue(Se)).join("&")}).filter(ye=>""!==ye).join("&")}clone(ye){const ie=new pt({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(ye),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ye=>this.map.set(ye,this.cloneFrom.map.get(ye))),this.updates.forEach(ye=>{switch(ye.op){case"a":case"s":const ie=("a"===ye.op?this.map.get(ye.param):void 0)||[];ie.push(le(ye.value)),this.map.set(ye.param,ie);break;case"d":if(void 0===ye.value){this.map.delete(ye.param);break}{let Se=this.map.get(ye.param)||[];const _e=Se.indexOf(le(ye.value));-1!==_e&&Se.splice(_e,1),Se.length>0?this.map.set(ye.param,Se):this.map.delete(ye.param)}}}),this.cloneFrom=this.updates=null)}}class Vt{constructor(){this.map=new Map}set(ye,ie){return this.map.set(ye,ie),this}get(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}delete(ye){return this.map.delete(ye),this}keys(){return this.map.keys()}}function Zn(Pe){return"undefined"!=typeof ArrayBuffer&&Pe instanceof ArrayBuffer}function Jn(Pe){return"undefined"!=typeof Blob&&Pe instanceof Blob}function zn(Pe){return"undefined"!=typeof FormData&&Pe instanceof FormData}class _t{constructor(ye,ie,Se,_e){let G;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function(Pe){switch(Pe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_e?(this.body=void 0!==Se?Se:null,G=_e):G=Se,G&&(this.reportProgress=!!G.reportProgress,this.withCredentials=!!G.withCredentials,G.responseType&&(this.responseType=G.responseType),G.headers&&(this.headers=G.headers),G.context&&(this.context=G.context),G.params&&(this.params=G.params)),this.headers||(this.headers=new q),this.context||(this.context=new Vt),this.params){const se=this.params.toString();if(0===se.length)this.urlWithParams=ie;else{const ze=ie.indexOf("?");this.urlWithParams=ie+(-1===ze?"?":zeNn.set(cn,ye.setHeaders[cn]),Pt)),ye.setParams&&(Ct=Object.keys(ye.setParams).reduce((Nn,cn)=>Nn.set(cn,ye.setParams[cn]),Ct)),new _t(Se,_e,se,{params:Ct,headers:Pt,context:wn,reportProgress:vt,responseType:G,withCredentials:ze})}}var Bt=(()=>((Bt=Bt||{})[Bt.Sent=0]="Sent",Bt[Bt.UploadProgress=1]="UploadProgress",Bt[Bt.ResponseHeader=2]="ResponseHeader",Bt[Bt.DownloadProgress=3]="DownloadProgress",Bt[Bt.Response=4]="Response",Bt[Bt.User=5]="User",Bt))();class fn{constructor(ye,ie=200,Se="OK"){this.headers=ye.headers||new q,this.status=void 0!==ye.status?ye.status:ie,this.statusText=ye.statusText||Se,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}}class At extends fn{constructor(ye={}){super(ye),this.type=Bt.ResponseHeader}clone(ye={}){return new At({headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class ot extends fn{constructor(ye={}){super(ye),this.type=Bt.Response,this.body=void 0!==ye.body?ye.body:null}clone(ye={}){return new ot({body:void 0!==ye.body?ye.body:this.body,headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class Ze extends fn{constructor(ye){super(ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ye.url||"(unknown url)"}`:`Http failure response for ${ye.url||"(unknown url)"}: ${ye.status} ${ye.statusText}`,this.error=ye.error||null}}function wt(Pe,ye){return{body:ye,headers:Pe.headers,context:Pe.context,observe:Pe.observe,params:Pe.params,reportProgress:Pe.reportProgress,responseType:Pe.responseType,withCredentials:Pe.withCredentials}}let Dt=(()=>{class Pe{constructor(ie){this.handler=ie}request(ie,Se,_e={}){let G;if(ie instanceof _t)G=ie;else{let vt,Pt;vt=_e.headers instanceof q?_e.headers:new q(_e.headers),_e.params&&(Pt=_e.params instanceof pt?_e.params:new pt({fromObject:_e.params})),G=new _t(ie,Se,void 0!==_e.body?_e.body:null,{headers:vt,context:_e.context,params:Pt,reportProgress:_e.reportProgress,responseType:_e.responseType||"json",withCredentials:_e.withCredentials})}const se=(0,P.of)(G).pipe((0,E.b)(vt=>this.handler.handle(vt)));if(ie instanceof _t||"events"===_e.observe)return se;const ze=se.pipe((0,S.h)(vt=>vt instanceof ot));switch(_e.observe||"body"){case"body":switch(G.responseType){case"arraybuffer":return ze.pipe((0,Z.U)(vt=>{if(null!==vt.body&&!(vt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return vt.body}));case"blob":return ze.pipe((0,Z.U)(vt=>{if(null!==vt.body&&!(vt.body instanceof Blob))throw new Error("Response is not a Blob.");return vt.body}));case"text":return ze.pipe((0,Z.U)(vt=>{if(null!==vt.body&&"string"!=typeof vt.body)throw new Error("Response is not a string.");return vt.body}));default:return ze.pipe((0,Z.U)(vt=>vt.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${_e.observe}}`)}}delete(ie,Se={}){return this.request("DELETE",ie,Se)}get(ie,Se={}){return this.request("GET",ie,Se)}head(ie,Se={}){return this.request("HEAD",ie,Se)}jsonp(ie,Se){return this.request("JSONP",ie,{params:(new pt).append(Se,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,Se={}){return this.request("OPTIONS",ie,Se)}patch(ie,Se,_e={}){return this.request("PATCH",ie,wt(_e,Se))}post(ie,Se,_e={}){return this.request("POST",ie,wt(_e,Se))}put(ie,Se,_e={}){return this.request("PUT",ie,wt(_e,Se))}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(o.LFG(F))},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Qt{constructor(ye,ie){this.next=ye,this.interceptor=ie}handle(ye){return this.interceptor.intercept(ye,this.next)}}const Ln=new o.OlP("HTTP_INTERCEPTORS");let Dn=(()=>{class Pe{intercept(ie,Se){return Se.handle(ie)}}return Pe.\u0275fac=function(ie){return new(ie||Pe)},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const $t=/^\)\]\}',?\n/;let Me=(()=>{class Pe{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.y(Se=>{const _e=this.xhrFactory.build();if(_e.open(ie.method,ie.urlWithParams),ie.withCredentials&&(_e.withCredentials=!0),ie.headers.forEach((cn,_n)=>_e.setRequestHeader(cn,_n.join(","))),ie.headers.has("Accept")||_e.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const cn=ie.detectContentTypeHeader();null!==cn&&_e.setRequestHeader("Content-Type",cn)}if(ie.responseType){const cn=ie.responseType.toLowerCase();_e.responseType="json"!==cn?cn:"text"}const G=ie.serializeBody();let se=null;const ze=()=>{if(null!==se)return se;const cn=1223===_e.status?204:_e.status,_n=_e.statusText||"OK",vn=new q(_e.getAllResponseHeaders()),Wn=function(Pe){return"responseURL"in Pe&&Pe.responseURL?Pe.responseURL:/^X-Request-URL:/m.test(Pe.getAllResponseHeaders())?Pe.getResponseHeader("X-Request-URL"):null}(_e)||ie.url;return se=new At({headers:vn,status:cn,statusText:_n,url:Wn}),se},vt=()=>{let{headers:cn,status:_n,statusText:vn,url:Wn}=ze(),li=null;204!==_n&&(li=void 0===_e.response?_e.responseText:_e.response),0===_n&&(_n=li?200:0);let Ni=_n>=200&&_n<300;if("json"===ie.responseType&&"string"==typeof li){const Qr=li;li=li.replace($t,"");try{li=""!==li?JSON.parse(li):null}catch(yr){li=Qr,Ni&&(Ni=!1,li={error:yr,text:li})}}Ni?(Se.next(new ot({body:li,headers:cn,status:_n,statusText:vn,url:Wn||void 0})),Se.complete()):Se.error(new Ze({error:li,headers:cn,status:_n,statusText:vn,url:Wn||void 0}))},Pt=cn=>{const{url:_n}=ze(),vn=new Ze({error:cn,status:_e.status||0,statusText:_e.statusText||"Unknown Error",url:_n||void 0});Se.error(vn)};let Ct=!1;const wn=cn=>{Ct||(Se.next(ze()),Ct=!0);let _n={type:Bt.DownloadProgress,loaded:cn.loaded};cn.lengthComputable&&(_n.total=cn.total),"text"===ie.responseType&&!!_e.responseText&&(_n.partialText=_e.responseText),Se.next(_n)},Nn=cn=>{let _n={type:Bt.UploadProgress,loaded:cn.loaded};cn.lengthComputable&&(_n.total=cn.total),Se.next(_n)};return _e.addEventListener("load",vt),_e.addEventListener("error",Pt),_e.addEventListener("timeout",Pt),_e.addEventListener("abort",Pt),ie.reportProgress&&(_e.addEventListener("progress",wn),null!==G&&_e.upload&&_e.upload.addEventListener("progress",Nn)),_e.send(G),Se.next({type:Bt.Sent}),()=>{_e.removeEventListener("error",Pt),_e.removeEventListener("abort",Pt),_e.removeEventListener("load",vt),_e.removeEventListener("timeout",Pt),ie.reportProgress&&(_e.removeEventListener("progress",wn),null!==G&&_e.upload&&_e.upload.removeEventListener("progress",Nn)),_e.readyState!==_e.DONE&&_e.abort()}})}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(o.LFG(i.JF))},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Et=new o.OlP("XSRF_COOKIE_NAME"),Ae=new o.OlP("XSRF_HEADER_NAME");class lt{}let Ne=(()=>{class Pe{constructor(ie,Se,_e){this.doc=ie,this.platform=Se,this.cookieName=_e,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(o.LFG(i.K0),o.LFG(o.Lbi),o.LFG(Et))},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ie=(()=>{class Pe{constructor(ie,Se){this.tokenService=ie,this.headerName=Se}intercept(ie,Se){const _e=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||_e.startsWith("http://")||_e.startsWith("https://"))return Se.handle(ie);const G=this.tokenService.getToken();return null!==G&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,G)})),Se.handle(ie)}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(o.LFG(lt),o.LFG(Ae))},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),It=(()=>{class Pe{constructor(ie,Se){this.backend=ie,this.injector=Se,this.chain=null}handle(ie){if(null===this.chain){const Se=this.injector.get(Ln,[]);this.chain=Se.reduceRight((_e,G)=>new Qt(_e,G),this.backend)}return this.chain.handle(ie)}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(o.LFG(z),o.LFG(o.zs3))},Pe.\u0275prov=o.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Qe=(()=>{class Pe{static disable(){return{ngModule:Pe,providers:[{provide:Ie,useClass:Dn}]}}static withOptions(ie={}){return{ngModule:Pe,providers:[ie.cookieName?{provide:Et,useValue:ie.cookieName}:[],ie.headerName?{provide:Ae,useValue:ie.headerName}:[]]}}}return Pe.\u0275fac=function(ie){return new(ie||Pe)},Pe.\u0275mod=o.oAB({type:Pe}),Pe.\u0275inj=o.cJS({providers:[Ie,{provide:Ln,useExisting:Ie,multi:!0},{provide:lt,useClass:Ne},{provide:Et,useValue:"XSRF-TOKEN"},{provide:Ae,useValue:"X-XSRF-TOKEN"}]}),Pe})(),$e=(()=>{class Pe{}return Pe.\u0275fac=function(ie){return new(ie||Pe)},Pe.\u0275mod=o.oAB({type:Pe}),Pe.\u0275inj=o.cJS({providers:[Dt,{provide:F,useClass:It},Me,{provide:z,useExisting:Me}],imports:[[Qe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Pe})()},7716:(Xe,Ee,L)=>{"use strict";L.d(Ee,{deG:()=>_a,tb:()=>Qv,AFp:()=>Wv,ip1:()=>kf,CZH:()=>Qu,hGG:()=>ED,z2F:()=>Fc,sBO:()=>wM,Sil:()=>Ic,_Vd:()=>Zu,EJc:()=>Xv,SBq:()=>Rl,qLn:()=>wu,vpe:()=>Yl,gxx:()=>Su,tBr:()=>ir,XFs:()=>Qe,OlP:()=>as,zs3:()=>Js,IIB:()=>CT,ZZ4:()=>_d,aQg:()=>vd,soG:()=>Ld,YKP:()=>F_,v3s:()=>cD,h0i:()=>hu,PXZ:()=>rD,R0b:()=>Ka,FiY:()=>Bi,r_U:()=>TT,Lbi:()=>Jv,g9A:()=>Gv,Qsj:()=>oM,FYo:()=>md,JOm:()=>Ii,Tiy:()=>tf,q3G:()=>lo,tp0:()=>Fr,EAV:()=>pD,Rgc:()=>Cc,dDg:()=>iy,DyG:()=>va,GfV:()=>k_,s_b:()=>wd,ifc:()=>se,eFA:()=>uy,G48:()=>QT,Gpc:()=>d,f3M:()=>Ot,_c5:()=>TD,VLi:()=>JT,c2e:()=>Kv,zSh:()=>dc,wAp:()=>Ui,vHH:()=>Te,EiD:()=>hp,mCW:()=>oc,qzn:()=>bu,JVY:()=>qy,pB0:()=>Gy,eBb:()=>$y,L6k:()=>zy,LAX:()=>Wy,cg1:()=>qh,Tjo:()=>MD,kL8:()=>Gm,yhl:()=>rp,dqk:()=>wn,sIi:()=>pc,CqO:()=>Ih,QGY:()=>Nh,F4k:()=>Xg,RDi:()=>Ns,AaK:()=>F,z3N:()=>Ul,qOj:()=>bh,TTD:()=>zr,_Bn:()=>C_,xp6:()=>xp,uIk:()=>Ch,Tol:()=>wm,Gre:()=>Fm,MT6:()=>Rm,DjV:()=>Ym,ekj:()=>jh,Suo:()=>Dv,Xpm:()=>xi,lG2:()=>Kt,Yz7:()=>di,cJS:()=>An,oAB:()=>gn,Yjl:()=>Tn,Y36:()=>mc,_UZ:()=>Jg,GkF:()=>Qg,BQk:()=>Ph,ynx:()=>Oh,qZA:()=>Eh,TgZ:()=>Ah,EpF:()=>Kg,n5z:()=>Gt,Ikx:()=>Uh,SDv:()=>b_,QtT:()=>w_,pQV:()=>Gh,LFG:()=>We,$8M:()=>or,NdJ:()=>Fh,CRH:()=>Sv,kcU:()=>Vn,O4$:()=>Hn,oxw:()=>im,ALo:()=>yv,lcZ:()=>bv,Hsn:()=>sm,F$t:()=>rm,Q6J:()=>kh,s9C:()=>Yh,MGl:()=>ad,DdM:()=>cv,VKq:()=>dv,WLB:()=>hv,kEZ:()=>fv,iGM:()=>Cv,MAs:()=>Yg,Jf7:()=>bp,CHM:()=>cs,oJD:()=>fp,uOi:()=>zd,LSH:()=>qd,kYT:()=>be,Akn:()=>vl,Udp:()=>Hh,YNc:()=>Rg,W1O:()=>Av,_uU:()=>km,Oqu:()=>Vh,hij:()=>ud,AsE:()=>Zh,Gf:()=>Tv});var i=L(9765),o=L(5319),P=L(7574),s=L(6682),E=L(8819);function S(e){for(let t in e)if(e[t]===S)return t;throw Error("Could not find renamed property on target object.")}function Z(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function F(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(F).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function z(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const q=S({__forward_ref__:S});function d(e){return e.__forward_ref__=d,e.toString=function(){return F(this())},e}function oe(e){return De(e)?e():e}function De(e){return"function"==typeof e&&e.hasOwnProperty(q)&&e.__forward_ref__===d}class Te extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function He(e){return"string"==typeof e?e:null==e?"":String(e)}function Vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():He(e)}function zn(e,t){const n=t?` in ${t}`:"";throw new Te("201",`No provider for ${Vt(e)} found${n}`)}function mn(e,t,n,a){throw new Error(`ASSERTION ERROR: ${e}`+(null==a?"":` [Expected=> ${n} ${a} ${t} <=Actual]`))}function di(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function An(e){return{providers:e.providers||[],imports:e.imports||[]}}function Me(e){return Et(e,Ie)||Et(e,ge)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ne(e){return e&&(e.hasOwnProperty(It)||e.hasOwnProperty(et))?e[It]:null}const Ie=S({\u0275prov:S}),It=S({\u0275inj:S}),ge=S({ngInjectableDef:S}),et=S({ngInjectorDef:S});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let $e;function St(e){const t=$e;return $e=e,t}function Pe(e,t,n){const a=Me(e);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:n&Qe.Optional?null:void 0!==t?t:void zn(F(e),"Injector")}function ie(e){return{toString:e}.toString()}var Se=(()=>((Se=Se||{})[Se.OnPush=0]="OnPush",Se[Se.Default=1]="Default",Se))(),se=(()=>((se=se||{})[se.Emulated=0]="Emulated",se[se.None=2]="None",se[se.ShadowDom=3]="ShadowDom",se))();const ze="undefined"!=typeof globalThis&&globalThis,vt="undefined"!=typeof window&&window,Pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,wn=ze||"undefined"!=typeof global&&global||vt||Pt,_n={},vn=[],Wn=S({\u0275cmp:S}),li=S({\u0275dir:S}),Ni=S({\u0275pipe:S}),Qr=S({\u0275mod:S}),yr=S({\u0275loc:S}),br=S({\u0275fac:S}),me=S({__NG_ELEMENT_ID__:S});let qi=0;function xi(e){return ie(()=>{const n={},a={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Se.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||vn,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||se.Emulated,id:"c",styles:e.styles||vn,_:null,setInput:null,schemas:e.schemas||null,tView:null},u=e.directives,f=e.features,C=e.pipes;return a.id+=qi++,a.inputs=nt(e.inputs,n),a.outputs=nt(e.outputs),f&&f.forEach(k=>k(a)),a.directiveDefs=u?()=>("function"==typeof u?u():u).map(Er):null,a.pipeDefs=C?()=>("function"==typeof C?C():C).map(Ir):null,a})}function Er(e){return Kn(e)||function(e){return e[li]||null}(e)}function Ir(e){return function(e){return e[Ni]||null}(e)}const dt={};function gn(e){return ie(()=>{const t={type:e.type,bootstrap:e.bootstrap||vn,declarations:e.declarations||vn,imports:e.imports||vn,exports:e.exports||vn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(dt[e.id]=e.type),t})}function be(e,t){return ie(()=>{const n=Ri(e,!0);n.declarations=t.declarations||vn,n.imports=t.imports||vn,n.exports=t.exports||vn})}function nt(e,t){if(null==e)return _n;const n={};for(const a in e)if(e.hasOwnProperty(a)){let u=e[a],f=u;Array.isArray(u)&&(f=u[1],u=u[0]),n[u]=a,t&&(t[u]=f)}return n}const Kt=xi;function Tn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Kn(e){return e[Wn]||null}function Ri(e,t){const n=e[Qr]||null;if(!n&&!0===t)throw new Error(`Type ${F(e)} does not have '\u0275mod' property.`);return n}function jt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ht(e){return Array.isArray(e)&&!0===e[1]}function pn(e){return 0!=(8&e.flags)}function kn(e){return 2==(2&e.flags)}function Zt(e){return 1==(1&e.flags)}function un(e){return null!==e.template}function Yn(e){return 0!=(512&e[2])}function xr(e,t){return e.hasOwnProperty(br)?e[br]:null}class Xr{constructor(t,n,a){this.previousValue=t,this.currentValue=n,this.firstChange=a}isFirstChange(){return this.firstChange}}function zr(){return $r}function $r(e){return e.type.prototype.ngOnChanges&&(e.setInput=xs),_s}function _s(){const e=vs(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===_n)e.previous=t;else for(let a in t)n[a]=t[a];e.current=null,this.ngOnChanges(t)}}function xs(e,t,n,a){const u=vs(e)||function(e,t){return e[ns]=t}(e,{previous:_n,current:null}),f=u.current||(u.current={}),C=u.previous,k=this.declaredInputs[n],j=C[k];f[k]=new Xr(j&&j.currentValue,t,C===_n),e[a]=t}zr.ngInherit=!0;const ns="__ngSimpleChanges__";function vs(e){return e[ns]||null}const Qi="http://www.w3.org/2000/svg";let Ps;function Ns(e){Ps=e}function Mr(){return void 0!==Ps?Ps:"undefined"!=typeof document?document:void 0}function g(e){return!!e.listen}const D={createRenderer:(e,t)=>Mr()};function w(e){for(;Array.isArray(e);)e=e[0];return e}function pe(e,t){return w(t[e])}function Be(e,t){return w(t[e.index])}function Ft(e,t){return e.data[t]}function bt(e,t){return e[t]}function Wt(e,t){const n=t[e];return jt(n)?n:n[0]}function Mn(e){return 4==(4&e[2])}function oi(e){return 128==(128&e[2])}function ii(e,t){return null==t?null:e[t]}function Cr(e){e[18]=0}function es(e,t){e[5]+=t;let n=e,a=e[3];for(;null!==a&&(1===t&&1===n[5]||-1===t&&0===n[5]);)a[5]+=t,n=a,a=a[3]}const Gn={lFrame:ho(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Is(){return Gn.bindingsEnabled}function rn(){return Gn.lFrame.lView}function ki(){return Gn.lFrame.tView}function cs(e){return Gn.lFrame.contextLView=e,e[8]}function vi(){let e=ws();for(;null!==e&&64===e.type;)e=e.parent;return e}function ws(){return Gn.lFrame.currentTNode}function is(){const e=Gn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wr(e,t){const n=Gn.lFrame;n.currentTNode=e,n.isParent=t}function Ms(){return Gn.lFrame.isParent}function Vs(){Gn.lFrame.isParent=!1}function rr(){return Gn.isInCheckNoChangesMode}function yo(e){Gn.isInCheckNoChangesMode=e}function Pr(){const e=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ds(){return Gn.lFrame.bindingIndex}function Zs(){return Gn.lFrame.bindingIndex++}function io(e){const t=Gn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bo(e){Gn.lFrame.inI18n=e}function Fs(e,t){const n=Gn.lFrame;n.bindingIndex=n.bindingRootIndex=e,ro(t)}function ro(e){Gn.lFrame.currentDirectiveIndex=e}function ea(){return Gn.lFrame.currentQueryIndex}function Vo(e){Gn.lFrame.currentQueryIndex=e}function ta(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Po(e,t,n){if(n&Qe.SkipSelf){let u=t,f=e;for(;!(u=u.parent,null!==u||n&Qe.Host||(u=ta(f),null===u||(f=f[15],10&u.type))););if(null===u)return!1;t=u,e=f}const a=Gn.lFrame=Pi();return a.currentTNode=t,a.lView=e,!0}function ys(e){const t=Pi(),n=e[1];Gn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pi(){const e=Gn.lFrame,t=null===e?null:e.child;return null===t?ho(e):t}function ho(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function qs(){const e=Gn.lFrame;return Gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const No=qs;function qe(){const e=qs();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Lt(){return Gn.lFrame.selectedIndex}function Ut(e){Gn.lFrame.selectedIndex=e}function en(){const e=Gn.lFrame;return Ft(e.tView,e.selectedIndex)}function Hn(){Gn.lFrame.currentNamespace=Qi}function Vn(){Gn.lFrame.currentNamespace=null}function Yi(e,t){for(let n=t.directiveStart,a=t.directiveEnd;n=a)break}else t[j]<0&&(e[18]+=65536),(k>11>16&&(3&e[2])===t){e[2]+=2048;try{f.call(k)}finally{}}}else try{f.call(k)}finally{}}class Zr{constructor(t,n,a){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=a}}function wo(e,t,n){const a=g(e);let u=0;for(;ut){C=f-1;break}}}for(;f>16}(e),a=t;for(;n>0;)a=a[15],n--;return a}let Io=!0;function Va(e){const t=Io;return Io=e,t}let Xa=0;function Mo(e,t){const n=fo(e,t);if(-1!==n)return n;const a=t[1];a.firstCreatePass&&(e.injectorIndex=t.length,so(a.data,e),so(t,null),so(a.blueprint,null));const u=Fo(e,t),f=e.injectorIndex;if(Vi(u)){const C=Sa(u),k=sa(u,t),j=k[1].data;for(let K=0;K<8;K++)t[f+K]=k[C+K]|j[C+K]}return t[f+8]=u,f}function so(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fo(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Fo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,a=null,u=t;for(;null!==u;){const f=u[1],C=f.type;if(a=2===C?f.declTNode:1===C?u[6]:null,null===a)return-1;if(n++,u=u[15],-1!==a.injectorIndex)return a.injectorIndex|n<<16}return-1}function Ws(e,t,n){!function(e,t,n){let a;"string"==typeof n?a=n.charCodeAt(0)||0:n.hasOwnProperty(me)&&(a=n[me]),null==a&&(a=n[me]=Xa++);const u=255&a;t.data[e+(u>>5)]|=1<=0?255&t:U:t}(n);if("function"==typeof f){if(!Po(t,e,a))return a&Qe.Host?ka(u,n,a):Ra(t,n,a,u);try{const C=f(a);if(null!=C||a&Qe.Optional)return C;zn(n)}finally{No()}}else if("number"==typeof f){let C=null,k=fo(e,t),j=-1,K=a&Qe.Host?t[16][6]:null;for((-1===k||a&Qe.SkipSelf)&&(j=-1===k?Fo(e,t):t[k+8],-1!==j&&Ke(a,!1)?(C=t[1],k=Sa(j),t=sa(j,t)):k=-1);-1!==k;){const he=t[1];if(ke(f,k,he.data)){const Re=Y(k,t,n,C,a,K);if(Re!==ul)return Re}j=t[k+8],-1!==j&&Ke(a,t[1].data[k+8]===K)&&ke(f,k,t)?(C=he,k=Sa(j),t=sa(j,t)):k=-1}}}return Ra(t,n,a,u)}const ul={};function U(){return new ft(vi(),rn())}function Y(e,t,n,a,u,f){const C=t[1],k=C.data[e+8],he=N(k,C,n,null==a?kn(k)&&Io:a!=C&&0!=(3&k.type),u&Qe.Host&&f===k);return null!==he?ee(t,C,he,k):ul}function N(e,t,n,a,u){const f=e.providerIndexes,C=t.data,k=1048575&f,j=e.directiveStart,he=f>>20,Ye=u?k+he:e.directiveEnd;for(let at=a?k:k+he;at=j&&Tt.type===n)return at}if(u){const at=C[j];if(at&&un(at)&&at.type===n)return j}return null}function ee(e,t,n,a){let u=e[n];const f=t.data;if(function(e){return e instanceof Zr}(u)){const C=u;C.resolving&&function(e,t){throw new Te("200",`Circular dependency in DI detected for ${e}`)}(Vt(f[n]));const k=Va(C.canSeeViewProviders);C.resolving=!0;const j=C.injectImpl?St(C.injectImpl):null;Po(e,a,Qe.Default);try{u=e[n]=C.factory(void 0,f,e,a),t.firstCreatePass&&n>=a.directiveStart&&function(e,t,n){const{ngOnChanges:a,ngOnInit:u,ngDoCheck:f}=t.type.prototype;if(a){const C=$r(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,C),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,C)}u&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,u),f&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f))}(n,f[n],t)}finally{null!==j&&St(j),Va(k),C.resolving=!1,No()}}return u}function ke(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[br]||Un(t),a=Object.prototype;let u=Object.getPrototypeOf(e.prototype).constructor;for(;u&&u!==a;){const f=u[br]||Un(u);if(f&&f!==n)return f;u=Object.getPrototypeOf(u)}return f=>new f})}function Un(e){return De(e)?()=>{const t=Un(oe(e));return t&&t()}:xr(e)}function or(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const a=n.length;let u=0;for(;u{const a=po(t);function u(...f){if(this instanceof u)return a.apply(this,f),this;const C=new u(...f);return k.annotation=C,k;function k(j,K,he){const Re=j.hasOwnProperty(Tr)?j[Tr]:Object.defineProperty(j,Tr,{value:[]})[Tr];for(;Re.length<=he;)Re.push(null);return(Re[he]=Re[he]||[]).push(C),j}}return n&&(u.prototype=Object.create(n.prototype)),u.prototype.ngMetadataName=e,u.annotationCls=u,u})}function la(e,t,n,a){return ie(()=>{const u=po(t);function f(...C){if(this instanceof f)return u.apply(this,C),this;const k=new f(...C);return function(K,he){const Re=K.constructor,Ye=Re.hasOwnProperty(zi)?Re[zi]:Object.defineProperty(Re,zi,{value:{}})[zi];Ye[he]=Ye.hasOwnProperty(he)&&Ye[he]||[],Ye[he].unshift(k),a&&a(K,he,...C)}}return n&&(f.prototype=Object.create(n.prototype)),f.prototype.ngMetadataName=e,f.annotationCls=f,f})}class as{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=di({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const _a=new as("AnalyzeForEntryComponents"),va=Function;function To(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Uo(n,t):t(n))}function bn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function go(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ao(e,t){const n=[];for(let a=0;a=0?e[1|a]=n:(a=~a,function(e,t,n,a){let u=e.length;if(u==t)e.push(n,a);else if(1===u)e.push(a,e[0]),e[0]=n;else{for(u--,e.push(e[u-1],e[u]);u>t;)e[u]=e[u-2],u--;e[t]=n,e[t+1]=a}}(e,a,t,n)),a}function Ll(e,t){const n=_o(e,t);if(n>=0)return e[1|n]}function _o(e,t){return function(e,t,n){let a=0,u=e.length>>n;for(;u!==a;){const f=a+(u-a>>1),C=e[f<t?u=f:a=f+1}return~(u< ");else if("object"==typeof t){let f=[];for(let C in t)if(t.hasOwnProperty(C)){let k=t[C];f.push(C+":"+("string"==typeof k?JSON.stringify(k):F(k)))}u=`{${f.join(", ")}}`}return`${n}${a?"("+a+")":""}[${u}]: ${e.replace(R,"\n ")}`}("\n"+e.message,u,n,a),e.ngTokenPath=u,e[M]=null,e}const ir=qn(Ls("Inject",e=>({token:e})),-1),Bi=qn(Ls("Optional"),8),Fr=qn(Ls("SkipSelf"),4);var Ii=(()=>((Ii=Ii||{})[Ii.Important=1]="Important",Ii[Ii.DashCase=2]="DashCase",Ii))();const Ea=/^>|^->||--!>|)/;const gt="__ngContext__";function je(e,t){e[gt]=t}function jn(e){const t=function(e){return e[gt]||null}(e);return t?Array.isArray(t)?t:t.lView:null}let Ys;function Lo(e,t){return Ys(e,t)}function Ha(e){const t=e[3];return Ht(t)?t[3]:t}function Oa(e){return Ho(e[13])}function fl(e){return Ho(e[4])}function Ho(e){for(;null!==e&&!Ht(e);)e=e[4];return e}function Ao(e,t,n,a,u){if(null!=a){let f,C=!1;Ht(a)?f=a:jt(a)&&(C=!0,a=a[0]);const k=w(a);0===e&&null!==n?null==u?Zc(t,n,k):El(t,n,k,u||null,!0):1===e&&null!==n?El(t,n,k,u||null,!0):2===e?kt(t,k,C):3===e&&t.destroyNode(k),null!=f&&function(e,t,n,a,u){const f=n[7];f!==w(n)&&Ao(t,e,a,f,u);for(let k=10;kt.replace(_u,"\u200b$1\u200b"))}(t))}function Al(e,t,n){return g(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function da(e,t){const n=e[9],a=n.indexOf(t),u=t[3];1024&t[2]&&(t[2]&=-1025,es(u,-1)),n.splice(a,1)}function Ba(e,t){if(e.length<=10)return;const n=10+t,a=e[n];if(a){const u=a[17];null!==u&&u!==e&&da(u,a),t>0&&(e[n-1][4]=a[4]);const f=go(e,10+t);!function(e,t){hn(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(a[1],a);const C=f[19];null!==C&&C.detachView(f[1]),a[3]=null,a[4]=null,a[2]&=-129}return a}function Ja(e,t){if(!(256&t[2])){const n=t[11];g(n)&&n.destroyNode&&hn(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Go(e[1],e);for(;t;){let n=null;if(jt(t))n=t[13];else{const a=t[10];a&&(n=a)}if(!n){for(;t&&!t[4]&&t!==e;)jt(t)&&Go(t[1],t),t=t[3];null===t&&(t=e),jt(t)&&Go(t[1],t),n=t&&t[4]}t=n}}(t)}}function Go(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let a=0;a=0?a[u=K]():a[u=-K].unsubscribe(),f+=2}else{const C=a[u=n[f+1]];n[f].call(C)}if(null!==a){for(let f=u+1;fe,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return eo}())||void 0===t?void 0:t.createHTML(e))||e}function il(){if(void 0===lu&&(lu=null,wn.trustedTypes))try{lu=wn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return lu}function tp(e){var t;return(null===(t=il())||void 0===t?void 0:t.createHTML(e))||e}function ip(e){var t;return(null===(t=il())||void 0===t?void 0:t.createScriptURL(e))||e}class uu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class jy extends uu{getTypeName(){return"HTML"}}class By extends uu{getTypeName(){return"Style"}}class Vy extends uu{getTypeName(){return"Script"}}class Zy extends uu{getTypeName(){return"URL"}}class Uy extends uu{getTypeName(){return"ResourceURL"}}function Ul(e){return e instanceof uu?e.changingThisBreaksApplicationSecurity:e}function bu(e,t){const n=rp(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function rp(e){return e instanceof uu&&e.getTypeName()||null}function qy(e){return new jy(e)}function zy(e){return new By(e)}function $y(e){return new Vy(e)}function Wy(e){return new Zy(e)}function Gy(e){return new Uy(e)}function sp(e){const t=new Qy(e);return function(){try{return!!(new window.DOMParser).parseFromString(Bs(""),"text/html")}catch(e){return!1}}()?new Jy(t):t}class Jy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Bs(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Qy{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const a=this.inertDocument.createElement("body");n.appendChild(a)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Bs(t),n;const a=this.inertDocument.createElement("body");return a.innerHTML=Bs(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(a),a}stripCustomNsAttrs(t){const n=t.attributes;for(let u=n.length-1;0oc(t.trim())).join(", ")}function Ol(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ac(...e){const t={};for(const n of e)for(const a in n)n.hasOwnProperty(a)&&(t[a]=!0);return t}const ap=Ol("area,br,col,hr,img,wbr"),lp=Ol("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),up=Ol("rp,rt"),Bd=ac(ap,ac(lp,Ol("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")),ac(up,Ol("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")),ac(up,lp)),Vd=Ol("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zd=Ol("srcset"),cp=ac(Vd,Zd,Ol("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"),Ol("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")),tb=Ol("script,style,template");class nb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,a=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?a=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,a&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let u=this.checkClobberedElement(n,n.nextSibling);if(u){n=u;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Bd.hasOwnProperty(n))return this.sanitizedSomething=!0,!tb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const a=t.attributes;for(let u=0;u"),!0}endElement(t){const n=t.nodeName.toLowerCase();Bd.hasOwnProperty(n)&&!ap.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(dp(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ib=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rb=/([^\#-~ |!])/g;function dp(e){return e.replace(/&/g,"&").replace(ib,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(rb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Jc;function hp(e,t){let n=null;try{Jc=Jc||sp(e);let a=t?String(t):"";n=Jc.getInertBodyElement(a);let u=5,f=a;do{if(0===u)throw new Error("Failed to sanitize html because the input is unstable");u--,a=f,f=n.innerHTML,n=Jc.getInertBodyElement(a)}while(a!==f);return Bs((new nb).sanitizeChildren(Ud(n)||n))}finally{if(n){const a=Ud(n)||n;for(;a.firstChild;)a.removeChild(a.firstChild)}}}function Ud(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var lo=(()=>((lo=lo||{})[lo.NONE=0]="NONE",lo[lo.HTML=1]="HTML",lo[lo.STYLE=2]="STYLE",lo[lo.SCRIPT=3]="SCRIPT",lo[lo.URL=4]="URL",lo[lo.RESOURCE_URL=5]="RESOURCE_URL",lo))();function fp(e){const t=lc();return t?tp(t.sanitize(lo.HTML,e)||""):bu(e,"HTML")?tp(Ul(e)):hp(Mr(),He(e))}function qd(e){const t=lc();return t?t.sanitize(lo.URL,e)||"":bu(e,"URL")?Ul(e):oc(He(e))}function zd(e){const t=lc();if(t)return ip(t.sanitize(lo.RESOURCE_URL,e)||"");if(bu(e,"ResourceURL"))return ip(Ul(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function lc(){const e=rn();return e&&e[12]}function Qc(e){return e.ngOriginalError}function gb(e,...t){e.error(...t)}class wu{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),a=this._findContext(t),u=(e=t)&&e.ngErrorLogger||gb;var e;u(this._console,"ERROR",t),n&&u(this._console,"ORIGINAL ERROR",n),a&&u(this._console,"ERROR CONTEXT",a)}_findContext(t){return t?t.ngDebugContext||this._findContext(Qc(t)):null}_findOriginalError(t){let n=t&&Qc(t);for(;n&&Qc(n);)n=Qc(n);return n||null}}const yp=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(wn))();function bp(e){return e.ownerDocument.defaultView}function Pl(e){return e instanceof Function?e():e}function Mp(e,t,n){let a=e.length;for(;;){const u=e.indexOf(t,n);if(-1===u)return u;if(0===u||e.charCodeAt(u-1)<=32){const f=t.length;if(u+f===a||e.charCodeAt(u+f)<=32)return u}n=u+1}}const Cp="ng-template";function Mb(e,t,n){let a=0;for(;af?"":u[Re+1].toLowerCase();const at=8&a?Ye:null;if(at&&-1!==Mp(at,K,0)||2&a&&K!==Ye){if(pl(a))return!1;C=!0}}}}else{if(!C&&!pl(a)&&!pl(j))return!1;if(C&&pl(j))continue;C=!1,a=j|1&a}}return pl(a)||C}function pl(e){return 0==(1&e)}function Db(e,t,n,a){if(null===t)return-1;let u=0;if(a||!n){let f=!1;for(;u-1)for(n++;n0?'="'+k+'"':"")+"]"}else 8&a?u+="."+C:4&a&&(u+=" "+C);else""!==u&&!pl(C)&&(t+=Sp(f,u),u=""),a=C,f=f||!pl(a);n++}return""!==u&&(t+=Sp(f,u)),t}const hr={};function xp(e){kp(ki(),rn(),Lt()+e,rr())}function kp(e,t,n,a){if(!a)if(3==(3&t[2])){const f=e.preOrderCheckHooks;null!==f&&ei(t,f,n)}else{const f=e.preOrderHooks;null!==f&&sr(t,f,0,n)}Ut(n)}function Kc(e,t){return e<<17|t<<2}function gl(e){return e>>17&32767}function Wd(e){return 2|e}function ql(e){return(131068&e)>>2}function Gd(e,t){return-131069&e|t<<2}function Jd(e){return 1|e}function Yp(e,t){const n=e.contentQueries;if(null!==n)for(let a=0;a20&&kp(e,t,20,rr()),n(a,u)}finally{Ut(f)}}function jp(e,t,n){if(pn(t)){const u=t.directiveEnd;for(let f=t.directiveStart;f0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(k)!=j&&k.push(j),k.push(a,u,C)}}function Wp(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function n1(e,t,n){if(n){if(t.exportAs)for(let a=0;a0&&lh(n)}}function lh(e){for(let a=Oa(e);null!==a;a=fl(a))for(let u=10;u0&&lh(f)}const n=e[1].components;if(null!==n)for(let a=0;a0&&lh(u)}}function u1(e,t){const n=Wt(t,e),a=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function eg(e){return e[7]||(e[7]=[])}function tg(e){return e.cleanup||(e.cleanup=[])}function ig(e,t){const n=e[9],a=n?n.get(wu,null):null;a&&a.handleError(t)}function rg(e,t,n,a,u){for(let f=0;fthis.processProvider(k,t,n)),Uo([t],k=>this.processInjectorType(k,[],f)),this.records.set(Su,xu(void 0,this));const C=this.records.get(dc);this.scope=null!=C?C.value:null,this.source=u||("object"==typeof t?null:F(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=h,a=Qe.Default){this.assertNotDestroyed();const u=Oe(this),f=St(void 0);try{if(!(a&Qe.SkipSelf)){let k=this.records.get(t);if(void 0===k){const j=("function"==typeof(e=t)||"object"==typeof e&&e instanceof as)&&Me(t);k=j&&this.injectableDefInScope(j)?xu(ph(t),hc):null,this.records.set(t,k)}if(null!=k)return this.hydrate(t,k)}return(a&Qe.Self?og():this.parent).get(t,n=a&Qe.Optional&&n===h?null:n)}catch(C){if("NullInjectorError"===C.name){if((C[M]=C[M]||[]).unshift(F(t)),u)throw C;return Zi(C,t,"R3InjectorError",this.source)}throw C}finally{St(f),Oe(u)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((a,u)=>t.push(F(u))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,a){if(!(t=oe(t)))return!1;let u=Ne(t);const f=null==u&&t.ngModule||void 0,C=void 0===f?t:f,k=-1!==a.indexOf(C);if(void 0!==f&&(u=Ne(f)),null==u)return!1;if(null!=u.imports&&!k){let he;a.push(C);try{Uo(u.imports,Re=>{this.processInjectorType(Re,n,a)&&(void 0===he&&(he=[]),he.push(Re))})}finally{}if(void 0!==he)for(let Re=0;Rethis.processProvider(Tt,Ye,at||vn))}}this.injectorDefTypes.add(C);const j=xr(C)||(()=>new C);this.records.set(C,xu(j,hc));const K=u.providers;if(null!=K&&!k){const he=t;Uo(K,Re=>this.processProvider(Re,he,K))}return void 0!==f&&void 0!==t.providers}processProvider(t,n,a){let u=ku(t=oe(t))?t:oe(t&&t.provide);const f=(e=t,ug(e)?xu(void 0,e.useValue):xu(lg(e),hc));var e;if(ku(t)||!0!==t.multi)this.records.get(u);else{let C=this.records.get(u);C||(C=xu(void 0,hc,!0),C.factory=()=>an(C.multi),this.records.set(u,C)),u=t,C.multi.push(t)}this.records.set(u,f)}hydrate(t,n){return n.value===hc&&(n.value=_1,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=oe(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function ph(e){const t=Me(e),n=null!==t?t.factory:xr(e);if(null!==n)return n;if(e instanceof as)throw new Error(`Token ${F(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const a=ao(t,"?");throw new Error(`Can't resolve all parameters for ${F(e)}: (${a.join(", ")}).`)}const n=function(e){const t=e&&(e[Ie]||e[ge]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function lg(e,t,n){let a;if(ku(e)){const u=oe(e);return xr(u)||ph(u)}if(ug(e))a=()=>oe(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))a=()=>e.useFactory(...an(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))a=()=>We(oe(e.useExisting));else{const u=oe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return xr(u)||ph(u);a=()=>new u(...an(e.deps))}return a}function xu(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ug(e){return null!==e&&"object"==typeof e&&ae in e}function ku(e){return"function"==typeof e}const cg=function(e,t,n){return function(e,t=null,n=null,a){const u=ag(e,t,n,a);return u._resolveInjectorDefTypes(),u}({name:n},t,e,n)};let Js=(()=>{class e{static create(n,a){return Array.isArray(n)?cg(n,a,""):cg(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=h,e.NULL=new sg,e.\u0275prov=di({token:e,providedIn:"any",factory:()=>We(Su)}),e.__NG_ELEMENT_ID__=-1,e})();function j1(e,t){Yi(jn(e)[1],vi())}function bh(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const a=[e];for(;t;){let u;if(un(e))u=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");u=t.\u0275dir}if(u){if(n){a.push(u);const C=e;C.inputs=wh(e.inputs),C.declaredInputs=wh(e.declaredInputs),C.outputs=wh(e.outputs);const k=u.hostBindings;k&&U1(e,k);const j=u.viewQuery,K=u.contentQueries;if(j&&V1(e,j),K&&Z1(e,K),Z(e.inputs,u.inputs),Z(e.declaredInputs,u.declaredInputs),Z(e.outputs,u.outputs),un(u)&&u.data.animation){const he=e.data;he.animation=(he.animation||[]).concat(u.data.animation)}}const f=u.features;if(f)for(let C=0;C=0;a--){const u=e[a];u.hostVars=t+=u.hostVars,u.hostAttrs=ma(u.hostAttrs,n=ma(n,u.hostAttrs))}}(a)}function wh(e){return e===_n?{}:e===vn?[]:e}function V1(e,t){const n=e.viewQuery;e.viewQuery=n?(a,u)=>{t(a,u),n(a,u)}:t}function Z1(e,t){const n=e.contentQueries;e.contentQueries=n?(a,u,f)=>{t(a,u,f),n(a,u,f)}:t}function U1(e,t){const n=e.hostBindings;e.hostBindings=n?(a,u)=>{t(a,u),n(a,u)}:t}let rd=null;function Lu(){if(!rd){const e=wn.Symbol;if(e&&e.iterator)rd=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nk(w(Ki[a.index])):a.index;if(g(n)){let Ki=null;if(!k&&j&&(Ki=function(e,t,n,a){const u=e.cleanup;if(null!=u)for(let f=0;fj?k[j]:null}"string"==typeof C&&(f+=2)}return null}(e,t,u,a.index)),null!==Ki)(Ki.__ngLastListenerFn__||Ki).__ngNextListenerFn__=f,Ki.__ngLastListenerFn__=f,at=!1;else{f=Rh(a,t,Re,f,!1);const Rr=n.listen(xn,u,f);Ye.push(f,Rr),he&&he.push(u,Ai,sn,sn+1)}}else f=Rh(a,t,Re,f,!0),xn.addEventListener(u,f,C),Ye.push(f),he&&he.push(u,Ai,sn,C)}else f=Rh(a,t,Re,f,!1);const Tt=a.outputs;let qt;if(at&&null!==Tt&&(qt=Tt[u])){const Rt=qt.length;if(Rt)for(let xn=0;xn0;)t=t[15],e--;return t}(e,Gn.lFrame.contextLView))[8]}(e)}function T0(e,t){let n=null;const a=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let u=0;u=0}const jo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gm(e){return e.substring(jo.key,jo.keyEnd)}function k0(e){return e.substring(jo.value,jo.valueEnd)}function mm(e,t){const n=jo.textEnd;return n===t?-1:(t=jo.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,jo.key=t,n),ju(e,t,n))}function _m(e,t){const n=jo.textEnd;let a=jo.key=ju(e,t,n);return n===a?-1:(a=jo.keyEnd=function(e,t,n){let a;for(;t=65&&(-33&a)<=90||a>=48&&a<=57);)t++;return t}(e,a,n),a=ym(e,a,n),a=jo.value=ju(e,a,n),a=jo.valueEnd=function(e,t,n){let a=-1,u=-1,f=-1,C=t,k=C;for(;C32&&(k=C),f=u,u=a,a=-33&j}return k}(e,a,n),ym(e,a,n))}function vm(e){jo.key=0,jo.keyEnd=0,jo.value=0,jo.valueEnd=0,jo.textEnd=e.length}function ju(e,t,n){for(;t=0;n=_m(t,n))Tm(e,gm(t),k0(t))}function wm(e){bl(mo,Fl,e,!0)}function Fl(e,t){for(let n=function(e){return vm(e),mm(e,ju(e,0,jo.textEnd))}(t);n>=0;n=mm(t,n))mo(e,gm(t),!0)}function yl(e,t,n,a){const u=rn(),f=ki(),C=io(2);f.firstUpdatePass&&Cm(f,e,C,a),t!==hr&&ba(u,C,t)&&Dm(f,f.data[Lt()],u,u[11],e,u[C+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=F(Ul(e)))),e}(t,n),a,C)}function bl(e,t,n,a){const u=ki(),f=io(2);u.firstUpdatePass&&Cm(u,null,f,a);const C=rn();if(n!==hr&&ba(C,f,n)){const k=u.data[Lt()];if(xm(k,a)&&!Mm(u,f)){let j=a?k.classesWithoutHost:k.stylesWithoutHost;null!==j&&(n=z(j,n||"")),Lh(u,k,C,n,a)}else!function(e,t,n,a,u,f,C,k){u===hr&&(u=vn);let j=0,K=0,he=0=e.expandoStartIndex}function Cm(e,t,n,a){const u=e.data;if(null===u[n+1]){const f=u[Lt()],C=Mm(e,n);xm(f,a)&&null===t&&!C&&(t=!1),t=function(e,t,n,a){const u=function(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let f=a?t.residualClasses:t.residualStyles;if(null===u)0===(a?t.classBindings:t.styleBindings)&&(n=_c(n=Bh(null,e,t,n,a),t.attrs,a),f=null);else{const C=t.directiveStylingLast;if(-1===C||e[C]!==u)if(n=Bh(u,e,t,n,a),null===f){let j=function(e,t,n){const a=n?t.classBindings:t.styleBindings;if(0!==ql(a))return e[gl(a)]}(e,t,a);void 0!==j&&Array.isArray(j)&&(j=Bh(null,e,t,j[1],a),j=_c(j,t.attrs,a),function(e,t,n,a){e[gl(n?t.classBindings:t.styleBindings)]=a}(e,t,a,j))}else f=function(e,t,n){let a;const u=t.directiveEnd;for(let f=1+t.directiveStylingLast;f0)&&(K=!0)}else he=n;if(u)if(0!==j){const Ye=gl(e[k+1]);e[a+1]=Kc(Ye,k),0!==Ye&&(e[Ye+1]=Gd(e[Ye+1],a)),e[k+1]=function(e,t){return 131071&e|t<<17}(e[k+1],a)}else e[a+1]=Kc(k,0),0!==k&&(e[k+1]=Gd(e[k+1],a)),k=a;else e[a+1]=Kc(j,0),0===k?k=a:e[j+1]=Gd(e[j+1],a),j=a;K&&(e[a+1]=Wd(e[a+1])),pm(e,he,a,!0),pm(e,he,a,!1),function(e,t,n,a,u){const f=u?e.residualClasses:e.residualStyles;null!=f&&"string"==typeof t&&_o(f,t)>=0&&(n[a+1]=Jd(n[a+1]))}(t,he,e,a,f),C=Kc(k,j),f?t.classBindings=C:t.styleBindings=C}(u,f,t,n,C,a)}}function Bh(e,t,n,a,u){let f=null;const C=n.directiveEnd;let k=n.directiveStylingLast;for(-1===k?k=n.directiveStart:k++;k0;){const j=e[u],K=Array.isArray(j),he=K?j[1]:j,Re=null===he;let Ye=n[u+1];Ye===hr&&(Ye=Re?vn:void 0);let at=Re?Ll(Ye,a):he===a?Ye:void 0;if(K&&!ld(at)&&(at=Ll(j,a)),ld(at)&&(k=at,C))return k;const Tt=e[u+1];u=C?gl(Tt):ql(Tt)}if(null!==t){let j=f?t.residualClasses:t.residualStyles;null!=j&&(k=Ll(j,a))}return k}function ld(e){return void 0!==e}function xm(e,t){return 0!=(e.flags&(t?16:32))}function km(e,t=""){const n=rn(),a=ki(),u=e+20,f=a.firstCreatePass?Cu(a,u,1,t,null):a.data[u],C=n[u]=Wa(n[11],t);y(a,n,C,f),Wr(f,!1)}function Vh(e){return ud("",e,""),Vh}function ud(e,t,n){const a=rn(),u=Eu(a,e,t,n);return u!==hr&&$l(a,Lt(),u),ud}function Zh(e,t,n,a,u){const f=rn(),C=Ou(f,e,t,n,a,u);return C!==hr&&$l(f,Lt(),C),Zh}function Fm(e,t,n){bl(mo,Fl,Eu(rn(),e,t,n),!0)}function Rm(e,t,n,a,u){bl(mo,Fl,Ou(rn(),e,t,n,a,u),!0)}function Ym(e,t,n,a,u,f,C,k,j){bl(mo,Fl,Nu(rn(),e,t,n,a,u,f,C,k,j),!0)}function Uh(e,t,n){const a=rn();return ba(a,Zs(),t)&&Qa(ki(),en(),a,e,t,a[11],n,!0),Uh}const du=void 0;var rw=["en",[["a","p"],["AM","PM"],du],[["AM","PM"],du,du],[["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"]],du,[["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"]],du,[["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}",du,"{1} 'at' {0}",du],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Bu={};function qh(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Jm(t);if(n)return n;const a=t.split("-")[0];if(n=Jm(a),n)return n;if("en"===a)return rw;throw new Error(`Missing locale data for the locale "${e}".`)}function Gm(e){return qh(e)[Ui.PluralCase]}function Jm(e){return e in Bu||(Bu[e]=wn.ng&&wn.ng.common&&wn.ng.common.locales&&wn.ng.common.locales[e]),Bu[e]}var Ui=(()=>((Ui=Ui||{})[Ui.LocaleId=0]="LocaleId",Ui[Ui.DayPeriodsFormat=1]="DayPeriodsFormat",Ui[Ui.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ui[Ui.DaysFormat=3]="DaysFormat",Ui[Ui.DaysStandalone=4]="DaysStandalone",Ui[Ui.MonthsFormat=5]="MonthsFormat",Ui[Ui.MonthsStandalone=6]="MonthsStandalone",Ui[Ui.Eras=7]="Eras",Ui[Ui.FirstDayOfWeek=8]="FirstDayOfWeek",Ui[Ui.WeekendRange=9]="WeekendRange",Ui[Ui.DateFormat=10]="DateFormat",Ui[Ui.TimeFormat=11]="TimeFormat",Ui[Ui.DateTimeFormat=12]="DateTimeFormat",Ui[Ui.NumberSymbols=13]="NumberSymbols",Ui[Ui.NumberFormats=14]="NumberFormats",Ui[Ui.CurrencyCode=15]="CurrencyCode",Ui[Ui.CurrencySymbol=16]="CurrencySymbol",Ui[Ui.CurrencyName=17]="CurrencyName",Ui[Ui.Currencies=18]="Currencies",Ui[Ui.Directionality=19]="Directionality",Ui[Ui.PluralCase=20]="PluralCase",Ui[Ui.ExtraData=21]="ExtraData",Ui))();const ow=["zero","one","two","few","many"],cd="en-US",dd={marker:"element"},hd={marker:"ICU"};var uo=(()=>((uo=uo||{})[uo.SHIFT=2]="SHIFT",uo[uo.APPEND_EAGERLY=1]="APPEND_EAGERLY",uo[uo.COMMENT=2]="COMMENT",uo))();let Qm=cd;function zh(e){(function(e,t){null==e&&mn(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Qm=e.toLowerCase().replace(/_/g,"-"))}function Km(e,t,n){const a=t.insertBeforeIndex,u=Array.isArray(a)?a[0]:a;return null===u?$c(e,0,n):w(n[u])}function Xm(e,t,n,a,u){const f=t.insertBeforeIndex;if(Array.isArray(f)){let C=a,k=null;if(3&t.type||(k=C,C=u),null!==C&&0==(2&t.flags))for(let j=1;j1)for(let n=e.length-2;n>=0;n--){const a=e[n];t_(a)||cw(a,t)&&null===dw(a)&&hw(a,t.index)}}function t_(e){return!(64&e.type)}function cw(e,t){return t_(t)||e.index>t.index}function dw(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function hw(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(c(Km,Xm),e.insertBeforeIndex=t)}function vc(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function gw(e,t,n){const a=ih(e,n,64,null,null);return e_(t,a),a}function fd(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function n_(e){return e>>>17}function i_(e){return(131070&e)>>>1}let yc=0,bc=0;function s_(e,t,n,a){const u=n[11];let C,f=null;for(let k=0;k>>1,n),null,null,at,Tt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${j}"`)}else switch(j){case hd:const K=t[++k],he=t[++k];null===n[he]&&je(n[he]=tl(u,K),n);break;case dd:const Re=t[++k],Ye=t[++k];null===n[Ye]&&je(n[Ye]=Al(u,Re,null),n)}}}function o_(e,t,n,a,u){for(let f=0;f>>2;switch(3&he){case 1:const Ye=n[++K],at=n[++K],Tt=e.data[Re];"string"==typeof Tt?ah(t[11],t[Re],null,Tt,Ye,j,at):Qa(e,Tt,t,Ye,j,t[11],at,!1);break;case 0:const qt=t[Re];null!==qt&&Ga(t[11],qt,j);break;case 2:bw(e,vc(e,Re),t,j);break;case 3:a_(e,vc(e,Re),a,t)}}}}else{const j=n[f+1];if(j>0&&3==(3&j)){const he=vc(e,j>>>2);t[he.currentCaseLViewIndex]<0&&a_(e,he,a,t)}}f+=k}}function a_(e,t,n,a){let u=a[t.currentCaseLViewIndex];if(null!==u){let f=yc;u<0&&(u=a[t.currentCaseLViewIndex]=~u,f=-1),o_(e,a,t.update[u],n,f)}}function bw(e,t,n,a){const u=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const a=function(e,t){const n=Gm(t)(parseInt(e,10)),a=ow[n];return void 0!==a?a:"other"}(t,Qm);n=e.cases.indexOf(a),-1===n&&"other"!==a&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,a);if(fd(t,n)!==u&&(l_(e,t,n),n[t.currentCaseLViewIndex]=null===u?null:~u,null!==u)){const C=n[t.anchorIdx];C&&s_(e,t.create[u],n,C)}}function l_(e,t,n){let a=fd(t,n);if(null!==a){const u=t.remove[a];for(let f=0;f0){const k=pe(C,n);null!==k&&kt(n[11],k)}else l_(e,vc(e,~C),n)}}}function Mw(){const e=[];let n,a,t=-1;function f(k,j){t=0;const K=fd(k,j);a=null!==K?k.remove[K]:vn}function C(){if(t0?n[k]:(e.push(t,a),f(n[1].data[~k],n),C())}return 0===e.length?null:(a=e.pop(),t=e.pop(),C())}return function(k,j){for(n=j;e.length;)e.pop();return f(k.value,j),C}}const pd=/\ufffd(\d+):?\d*\ufffd/gi,Tw=/\ufffd(\d+)\ufffd/,c_=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Dw=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Sw=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,xw=/\uE500/g;function d_(e,t,n,a,u,f,C){const k=Tu(e,a,1,null);let j=k<n.length&&n.push(j)}return{type:a,mainBinding:u,cases:t,values:n}}function $h(e){if(!e)return[];let t=0;const n=[],a=[],u=/[{}]/g;let f;for(u.lastIndex=0;f=u.exec(e);){const k=f.index;if("}"==f[0]){if(n.pop(),0==n.length){const j=e.substring(t,k);c_.test(j)?a.push(Iw(j)):a.push(j),t=k+1}}else{if(0==n.length){const j=e.substring(t,k);a.push(j),t=k+1}n.push("{")}}const C=e.substring(t);return a.push(C),a}function Fw(e,t,n,a,u,f,C,k){const j=[],K=[],he=[];t.cases.push(f),t.create.push(j),t.remove.push(K),t.update.push(he);const Ye=sp(Mr()).getInertBodyElement(C),at=Ud(Ye)||Ye;return at?g_(e,t,n,a,j,K,he,at,u,k,0):0}function g_(e,t,n,a,u,f,C,k,j,K,he){let Re=0,Ye=k.firstChild;for(;Ye;){const at=Tu(e,n,1,null);switch(Ye.nodeType){case Node.ELEMENT_NODE:const Tt=Ye,qt=Tt.tagName.toLowerCase();if(Bd.hasOwnProperty(qt)){Wh(u,dd,qt,j,at),e.data[at]=qt;const Ai=Tt.attributes;for(let Ki=0;Ki>>uo.SHIFT;let Re=e[he];null===Re&&(Re=e[he]=j?u.createComment(k):Wa(u,k)),K&&null!==n&&El(u,n,Re,a,!1)}})(u,j.create,he,k&&8&k.type?u[k.index]:null),bo(!0)}function b_(e,t,n){v_(e,t,n),bo(!1)}function Gh(e){return function(e){e&&(yc|=1<0){const a=e.data[n];o_(e,t,Array.isArray(a)?a:a.update,Ds()-bc-1,yc)}yc=0,bc=0}(ki(),rn(),e+20)}function Jh(e,t,n,a,u){if(e=oe(e),Array.isArray(e))for(let f=0;f>20;if(ku(e)||!e.multi){const at=new Zr(j,u,mc),Tt=Kh(k,t,u?he:he+Ye,Re);-1===Tt?(Ws(Mo(K,C),f,k),Qh(f,e,t.length),t.push(k),K.directiveStart++,K.directiveEnd++,u&&(K.providerIndexes+=1048576),n.push(at),C.push(at)):(n[Tt]=at,C[Tt]=at)}else{const at=Kh(k,t,he+Ye,Re),Tt=Kh(k,t,he,he+Ye),qt=at>=0&&n[at],Rt=Tt>=0&&n[Tt];if(u&&!Rt||!u&&!qt){Ws(Mo(K,C),f,k);const xn=function(e,t,n,a,u){const f=new Zr(e,n,mc);return f.multi=[],f.index=t,f.componentProviders=0,M_(f,u,a&&!n),f}(u?Xw:Kw,n.length,u,a,j);!u&&Rt&&(n[Tt].providerFactory=xn),Qh(f,e,t.length,0),t.push(k),K.directiveStart++,K.directiveEnd++,u&&(K.providerIndexes+=1048576),n.push(xn),C.push(xn)}else Qh(f,e,at>-1?at:Tt,M_(n[u?Tt:at],j,!u&&a));!u&&a&&Rt&&n[Tt].componentProviders++}}}function Qh(e,t,n,a){const u=ku(t);if(u||function(e){return!!e.useClass}(t)){const C=(t.useClass||t).prototype.ngOnDestroy;if(C){const k=e.destroyHooks||(e.destroyHooks=[]);if(!u&&t.multi){const j=k.indexOf(n);-1===j?k.push(n,[a,C]):k[j+1].push(a,C)}else k.push(n,C)}}}function M_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kh(e,t,n,a){for(let u=n;u{n.providersResolver=(a,u)=>function(e,t,n){const a=ki();if(a.firstCreatePass){const u=un(e);Jh(n,a.data,a.blueprint,u,!0),Jh(t,a.data,a.blueprint,u,!1)}}(a,u?u(e):e,t)}}class T_{}const S_="ngComponent";class nM{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${F(e)}. Did you add it to @NgModule.entryComponents?`);return t[S_]=e,t}(t)}}let Zu=(()=>{class e{}return e.NULL=new nM,e})();function gd(...e){}function Uu(e,t){return new Rl(Be(e,t))}const sM=function(){return Uu(vi(),rn())};let Rl=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=sM,e})();function x_(e){return e instanceof Rl?e.nativeElement:e}class md{}let oM=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>lM(),e})();const lM=function(){const e=rn(),n=Wt(vi().index,e);return function(e){return e[11]}(jt(n)?n:e)};let tf=(()=>{class e{}return e.\u0275prov=di({token:e,providedIn:"root",factory:()=>null}),e})();class k_{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const L_=new k_("12.2.17");class A_{constructor(){}supports(t){return pc(t)}create(t){return new hM(t)}}const dM=(e,t)=>t;class hM{constructor(t){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=t||dM}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,a=this._removalsHead,u=0,f=null;for(;n||a;){const C=!a||n&&n.currentIndex{C=this._trackByFn(u,k),null!==n&&Object.is(n.trackById,C)?(a&&(n=this._verifyReinsertion(n,k,C,u)),Object.is(n.item,k)||this._addIdentityChange(n,k)):(n=this._mismatch(n,k,C,u),a=!0),n=n._next,u++}),this.length=u;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,a,u){let f;return null===t?f=this._itTail:(f=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,f,u)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(a,u))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,f,u)):t=this._addAfter(new fM(n,a),f,u),t}_verifyReinsertion(t,n,a,u){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==f?t=this._reinsertAfter(f,t._prev,u):t.currentIndex!=u&&(t.currentIndex=u,this._addToMoves(t,u)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const u=t._prevRemoved,f=t._nextRemoved;return null===u?this._removalsHead=f:u._nextRemoved=f,null===f?this._removalsTail=u:f._prevRemoved=u,this._insertAfter(t,n,a),this._addToMoves(t,a),t}_moveAfter(t,n,a){return this._unlink(t),this._insertAfter(t,n,a),this._addToMoves(t,a),t}_addAfter(t,n,a){return this._insertAfter(t,n,a),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,a){const u=null===n?this._itHead:n._next;return t._next=u,t._prev=n,null===u?this._itTail=t:u._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(t),t.currentIndex=a,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,a=t._next;return null===n?this._itHead=a:n._next=a,null===a?this._itTail=n:a._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fM{constructor(t,n){this.item=t,this.trackById=n,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 pM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===n||n<=a.currentIndex)&&Object.is(a.trackById,t))return a;return null}remove(t){const n=t._prevDup,a=t._nextDup;return null===n?this._head=a:n._nextDup=a,null===a?this._tail=n:a._prevDup=n,null===this._head}}class E_{constructor(){this.map=new Map}put(t){const n=t.trackById;let a=this.map.get(n);a||(a=new pM,this.map.set(n,a)),a.add(t)}get(t,n){const u=this.map.get(t);return u?u.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function O_(e,t,n){const a=e.previousIndex;if(null===a)return a;let u=0;return n&&a{if(n&&n.key===u)this._maybeAddToChanges(n,a),this._appendAfter=n,n=n._next;else{const f=this._getOrCreateRecordForKey(u,a);n=this._insertBeforeOrAppend(n,f)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let a=n;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const a=t._prev;return n._next=t,n._prev=a,t._prev=n,a&&(a._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const u=this._records.get(t);this._maybeAddToChanges(u,n);const f=u._prev,C=u._next;return f&&(f._next=C),C&&(C._prev=f),u._next=null,u._prev=null,u}const a=new mM(t);return this._records.set(t,a),a.currentValue=n,this._addToAdditions(a),a}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(a=>n(t[a],a))}}class mM{constructor(t){this.key=t,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 N_(){return new _d([new A_])}let _d=(()=>{class e{constructor(n){this.factories=n}static create(n,a){if(null!=a){const u=a.factories.slice();n=n.concat(u)}return new e(n)}static extend(n){return{provide:e,useFactory:a=>e.create(n,a||N_()),deps:[[e,new Fr,new Bi]]}}find(n){const a=this.factories.find(u=>u.supports(n));if(null!=a)return a;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=di({token:e,providedIn:"root",factory:N_}),e})();function I_(){return new vd([new P_])}let vd=(()=>{class e{constructor(n){this.factories=n}static create(n,a){if(a){const u=a.factories.slice();n=n.concat(u)}return new e(n)}static extend(n){return{provide:e,useFactory:a=>e.create(n,a||I_()),deps:[[e,new Fr,new Bi]]}}find(n){const a=this.factories.find(u=>u.supports(n));if(a)return a;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=di({token:e,providedIn:"root",factory:I_}),e})();function yd(e,t,n,a,u=!1){for(;null!==n;){const f=t[n.index];if(null!==f&&a.push(w(f)),Ht(f))for(let k=10;k-1&&(Ba(t,a),go(n,a))}this._attachedToViewContainer=!1}Ja(this._lView[1],this._lView)}onDestroy(t){Up(this._lView[1],this._lView,null,t)}markForCheck(){uh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){dh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){yo(!0);try{dh(e,t,n)}finally{yo(!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(){var t;this._appRef=null,hn(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class vM extends Mc{constructor(t){super(t),this._view=t}detectChanges(){Xp(this._view)}checkNoChanges(){!function(e){yo(!0);try{Xp(e)}finally{yo(!1)}}(this._view)}get context(){return null}}const bM=function(e){return function(e,t,n){if(kn(e)&&!n){const a=Wt(e.index,t);return new Mc(a,a)}return 47&e.type?new Mc(t[16],t):null}(vi(),rn(),16==(16&e))};let wM=(()=>{class e{}return e.__NG_ELEMENT_ID__=bM,e})();const TM=[new P_],SM=new _d([new A_]),xM=new vd(TM),LM=function(){return bd(vi(),rn())};let Cc=(()=>{class e{}return e.__NG_ELEMENT_ID__=LM,e})();const AM=Cc,EM=class extends AM{constructor(t,n,a){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=a}createEmbeddedView(t){const n=this._declarationTContainer.tViews,a=uc(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);a[17]=this._declarationLView[this._declarationTContainer.index];const f=this._declarationLView[19];return null!==f&&(a[19]=f.createEmbeddedView(n)),cc(n,a,t),new Mc(a)}};function bd(e,t){return 4&e.type?new EM(t,e,Uu(e,t)):null}class hu{}class F_{}const NM=function(){return H_(vi(),rn())};let wd=(()=>{class e{}return e.__NG_ELEMENT_ID__=NM,e})();const FM=wd,R_=class extends FM{constructor(t,n,a){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=a}get element(){return Uu(this._hostTNode,this._hostLView)}get injector(){return new ft(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fo(this._hostTNode,this._hostLView);if(Vi(t)){const n=sa(t,this._hostLView),a=Sa(t);return new ft(n[1].data[a+8],n)}return new ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Y_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,a){const u=t.createEmbeddedView(n||{});return this.insert(u,a),u}createComponent(t,n,a,u,f){const C=a||this.parentInjector;if(!f&&null==t.ngModule&&C){const j=C.get(hu,null);j&&(f=j)}const k=t.create(C,u,void 0,f);return this.insert(k.hostView,n),k}insert(t,n){const a=t._lView,u=a[1];if(Ht(a[3])){const he=this.indexOf(t);if(-1!==he)this.detach(he);else{const Re=a[3],Ye=new R_(Re,Re[6],Re[3]);Ye.detach(Ye.indexOf(t))}}const f=this._adjustIndex(n),C=this._lContainer;!function(e,t,n,a){const u=10+a,f=n.length;a>0&&(n[u-1][4]=t),ayp});class av extends T_{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(Ab).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ov(this.componentDef.inputs)}get outputs(){return ov(this.componentDef.outputs)}create(t,n,a,u){const f=(u=u||this.ngModule)?function(e,t){return{get:(n,a,u)=>{const f=e.get(n,Wu,u);return f!==Wu||a===Wu?f:t.get(n,a,u)}}}(t,u.injector):t,C=f.get(md,D),k=f.get(tf,null),j=C.createRenderer(null,this.componentDef),K=this.componentDef.selectors[0][0]||"div",he=a?function(e,t,n){if(g(e))return e.selectRootElement(t,n===se.ShadowDom);let a="string"==typeof t?e.querySelector(t):t;return a.textContent="",a}(j,a,this.componentDef.encapsulation):Al(C.createRenderer(null,this.componentDef),K,function(e){const t=e.toLowerCase();return"svg"===t?Qi:"math"===t?"http://www.w3.org/1998/MathML/":null}(K)),Re=this.componentDef.onPush?576:528,Ye=function(e,t){return{components:[],scheduler:e||yp,clean:p1,playerHandler:t||null,flags:0}}(),at=td(0,null,null,1,0,null,null,null,null,null),Tt=uc(null,at,Ye,Re,null,null,C,j,k,f);let qt,Rt;ys(Tt);try{const xn=function(e,t,n,a,u,f){const C=n[1];n[20]=e;const j=Cu(C,20,2,"#host",null),K=j.mergedAttrs=t.hostAttrs;null!==K&&(id(j,K,!0),null!==e&&(wo(u,e,K),null!==j.classes&&Nr(u,e,j.classes),null!==j.styles&&Lr(u,e,j.styles)));const he=a.createRenderer(e,t),Re=uc(n,Bp(t),null,t.onPush?64:16,n[20],j,a,he,f||null,null);return C.firstCreatePass&&(Ws(Mo(j,n),C,t.type),Gp(C,j),Jp(j,n.length,1)),nd(n,Re),n[20]=Re}(he,this.componentDef,Tt,C,j);if(he)if(a)wo(j,he,["ng-version",L_.full]);else{const{attrs:sn,classes:Ai}=function(e){const t=[],n=[];let a=1,u=2;for(;a0&&Nr(j,he,Ai.join(" "))}if(Rt=Ft(at,20),void 0!==n){const sn=Rt.projection=[];for(let Ai=0;Aij(C,t)),t.contentQueries){const j=vi();t.contentQueries(1,C,j.directiveStart)}const k=vi();return!f.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ut(k.index),$p(n[1],k,0,k.directiveStart,k.directiveEnd,t),Wp(t,C)),C}(xn,this.componentDef,Tt,Ye,[j1]),cc(at,Tt,null)}finally{qe()}return new IC(this.componentType,qt,Uu(Rt,Tt),Tt,Rt)}}class IC extends class{}{constructor(t,n,a,u,f){super(),this.location=a,this._rootLView=u,this._tNode=f,this.instance=n,this.hostView=this.changeDetectorRef=new vM(u),this.componentType=t}get injector(){return new ft(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Gu=new Map;class YC extends hu{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new sv(this);const a=Ri(t),u=t[yr]||null;u&&zh(u),this._bootstrapComponents=Pl(a.bootstrap),this._r3Injector=ag(t,n,[{provide:hu,useValue:this},{provide:Zu,useValue:this.componentFactoryResolver}],F(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Js.THROW_IF_NOT_FOUND,a=Qe.Default){return t===Js||t===hu||t===Su?this:this._r3Injector.get(t,n,a)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class mf extends F_{constructor(t){super(),this.moduleType=t,null!==Ri(t)&&function(e){const t=new Set;!function n(a){const u=Ri(a,!0),f=u.id;null!==f&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${F(t)} vs ${F(t.name)}`)}(f,Gu.get(f),a),Gu.set(f,a));const C=Pl(u.imports);for(const k of C)t.has(k)||(t.add(k),n(k))}(e)}(t)}create(t){return new YC(this.moduleType,t)}}function cv(e,t,n){const a=Pr()+e,u=rn();return u[a]===hr?Il(u,a,n?t.call(n):t()):function(e,t){return e[t]}(u,a)}function dv(e,t,n,a){return pv(rn(),Pr(),e,t,n,a)}function hv(e,t,n,a,u){return function(e,t,n,a,u,f,C){const k=t+n;return cu(e,k,u,f)?Il(e,k+2,C?a.call(C,u,f):a(u,f)):Ec(e,k+2)}(rn(),Pr(),e,t,n,a,u)}function fv(e,t,n,a,u,f){return function(e,t,n,a,u,f,C,k){const j=t+n;return function(e,t,n,a,u){const f=cu(e,t,n,a);return ba(e,t+2,u)||f}(e,j,u,f,C)?Il(e,j+3,k?a.call(k,u,f,C):a(u,f,C)):Ec(e,j+3)}(rn(),Pr(),e,t,n,a,u,f)}function Ec(e,t){const n=e[t];return n===hr?void 0:n}function pv(e,t,n,a,u,f){const C=t+n;return ba(e,C,u)?Il(e,C+1,f?a.call(f,u):a(u)):Ec(e,C+1)}function yv(e,t){const n=ki();let a;const u=e+20;n.firstCreatePass?(a=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const a=t[n];if(e===a.name)return a}throw new Te("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[u]=a,a.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(u,a.onDestroy)):a=n.data[u];const f=a.factory||(a.factory=xr(a.type)),C=St(mc);try{const k=Va(!1),j=f();return Va(k),function(e,t,n,a){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=a}(n,rn(),u,j),j}finally{St(C)}}function bv(e,t,n){const a=e+20,u=rn(),f=bt(u,a);return function(e,t){_l.isWrapped(t)&&(t=_l.unwrap(t),e[Ds()]=hr);return t}(u,function(e,t){return e[1].data[t].pure}(u,a)?pv(u,Pr(),t,f.transform,n,f):f.transform(n))}function _f(e){return t=>{setTimeout(e,void 0,t)}}const Yl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,a){var u,f,C;let k=t,j=n||(()=>null),K=a;if(t&&"object"==typeof t){const Re=t;k=null===(u=Re.next)||void 0===u?void 0:u.bind(Re),j=null===(f=Re.error)||void 0===f?void 0:f.bind(Re),K=null===(C=Re.complete)||void 0===C?void 0:C.bind(Re)}this.__isAsync&&(j=_f(j),k&&(k=_f(k)),K&&(K=_f(K)));const he=super.subscribe({next:k,error:j,complete:K});return t instanceof o.w&&t.add(he),he}};function QC(){return this._results[Lu()]()}class Sd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Lu(),a=Sd.prototype;a[n]||(a[n]=QC)}get changes(){return this._changes||(this._changes=new Yl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const a=this;a.dirty=!1;const u=To(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let a=0;a0)a.push(C[k/2]);else{const K=f[k+1],he=t[-j];for(let Re=10;Re({bindingPropertyName:e})),TT=la("Output",e=>({bindingPropertyName:e})),kf=new as("Application Initializer");let Qu=(()=>{class e{constructor(n){this.appInits=n,this.resolve=gd,this.reject=gd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,u)=>{this.resolve=a,this.reject=u})}runInitializers(){if(this.initialized)return;const n=[],a=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let u=0;u{f.subscribe({complete:k,error:j})});n.push(C)}}Promise.all(n).then(()=>{a()}).catch(u=>{this.reject(u)}),0===n.length&&a(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(We(kf,8))},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();const Wv=new as("AppId"),NT={provide:Wv,useFactory:function(){return`${Lf()}${Lf()}${Lf()}`},deps:[]};function Lf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gv=new as("Platform Initializer"),Jv=new as("Platform ID"),Qv=new as("appBootstrapListener");let Kv=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();const Ld=new as("LocaleId"),Xv=new as("DefaultCurrencyCode");class FT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Af=function(e){return new mf(e)},RT=Af,YT=function(e){return Promise.resolve(Af(e))},ey=function(e){const t=Af(e),a=Pl(Ri(e).declarations).reduce((u,f)=>{const C=Kn(f);return C&&u.push(new av(C)),u},[]);return new FT(t,a)},HT=ey,jT=function(e){return Promise.resolve(ey(e))};let Ic=(()=>{class e{constructor(){this.compileModuleSync=RT,this.compileModuleAsync=YT,this.compileModuleAndAllComponentsSync=HT,this.compileModuleAndAllComponentsAsync=jT}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();const ZT=(()=>Promise.resolve(0))();function Ef(e){"undefined"==typeof Zone?ZT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ka{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Yl(!1),this.onMicrotaskEmpty=new Yl(!1),this.onStable=new Yl(!1),this.onError=new Yl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const u=this;u._nesting=0,u._outer=u._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(u._inner=u._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(u._inner=u._inner.fork(Zone.longStackTraceZoneSpec)),u.shouldCoalesceEventChangeDetection=!a&&n,u.shouldCoalesceRunChangeDetection=a,u.lastRequestAnimationFrameId=-1,u.nativeRequestAnimationFrame=function(){let e=wn.requestAnimationFrame,t=wn.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const a=t[Zone.__symbol__("OriginalDelegate")];a&&(t=a)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(wn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Pf(e),e.isCheckStableRunning=!0,Of(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Pf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,a,u,f,C,k)=>{try{return ty(e),n.invokeTask(u,f,C,k)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||e.shouldCoalesceRunChangeDetection)&&t(),ny(e)}},onInvoke:(n,a,u,f,C,k,j)=>{try{return ty(e),n.invoke(u,f,C,k,j)}finally{e.shouldCoalesceRunChangeDetection&&t(),ny(e)}},onHasTask:(n,a,u,f)=>{n.hasTask(u,f),a===u&&("microTask"==f.change?(e._hasPendingMicrotasks=f.microTask,Pf(e),Of(e)):"macroTask"==f.change&&(e.hasPendingMacrotasks=f.macroTask))},onHandleError:(n,a,u,f)=>(n.handleError(u,f),e.runOutsideAngular(()=>e.onError.emit(f)),!1)})}(u)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ka.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ka.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,a){return this._inner.run(t,n,a)}runTask(t,n,a,u){const f=this._inner,C=f.scheduleEventTask("NgZoneEvent: "+u,t,qT,gd,gd);try{return f.runTask(C,n,a)}finally{f.cancelTask(C)}}runGuarded(t,n,a){return this._inner.runGuarded(t,n,a)}runOutsideAngular(t){return this._outer.run(t)}}const qT={};function Of(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Pf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ty(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ny(e){e._nesting--,Of(e)}class WT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Yl,this.onMicrotaskEmpty=new Yl,this.onStable=new Yl,this.onError=new Yl}run(t,n,a){return t.apply(n,a)}runGuarded(t,n,a){return t.apply(n,a)}runOutsideAngular(t){return t()}runTask(t,n,a,u){return t.apply(n,a)}}let iy=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{Ka.assertNotInAngularZone(),Ef(()=>{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())Ef(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(n)||(clearTimeout(a.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,a,u){let f=-1;a&&a>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(C=>C.timeoutId!==f),n(this._didWork,this.getPendingTasks())},a)),this._callbacks.push({doneCb:n,timeoutId:f,updateCb:u})}whenStable(n,a,u){if(u&&!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(n,a,u),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,a,u){return[]}}return e.\u0275fac=function(n){return new(n||e)(We(Ka))},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})(),ry=(()=>{class e{constructor(){this._applications=new Map,Nf.addToWindow(this)}registerApplication(n,a){this._applications.set(n,a)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,a=!0){return Nf.findTestabilityInTree(this,n,a)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();class GT{addToWindow(t){}findTestabilityInTree(t,n,a){return null}}function JT(e){Nf=e}let Nf=new GT,sy=!0,oy=!1;function QT(){if(oy)throw new Error("Cannot enable prod mode after platform setup.");sy=!1}let Cl;const ly=new as("AllowMultipleToken");class rD{constructor(t,n){this.name=t,this.token=n}}function uy(e,t,n=[]){const a=`Platform: ${t}`,u=new as(a);return(f=[])=>{let C=cy();if(!C||C.injector.get(ly,!1))if(e)e(n.concat(f).concat({provide:u,useValue:!0}));else{const k=n.concat(f).concat({provide:u,useValue:!0},{provide:dc,useValue:"platform"});!function(e){if(Cl&&!Cl.destroyed&&!Cl.injector.get(ly,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cl=e.get(dy);const t=e.get(Gv,null);t&&t.forEach(n=>n())}(Js.create({providers:k,name:a}))}return function(e){const t=cy();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(u)}}function cy(){return Cl&&!Cl.destroyed?Cl:null}let dy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,a){const k=function(e,t){let n;return n="noop"===e?new WT:("zone.js"===e?void 0:e)||new Ka({enableLongStackTrace:(oy=!0,sy),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(a?a.ngZone:void 0,{ngZoneEventCoalescing:a&&a.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:a&&a.ngZoneRunCoalescing||!1}),j=[{provide:Ka,useValue:k}];return k.run(()=>{const K=Js.create({providers:j,parent:this.injector,name:n.moduleType.name}),he=n.create(K),Re=he.injector.get(wu,null);if(!Re)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(()=>{const Ye=k.onError.subscribe({next:at=>{Re.handleError(at)}});he.onDestroy(()=>{If(this._modules,he),Ye.unsubscribe()})}),function(e,t,n){try{const a=n();return Nh(a)?a.catch(u=>{throw t.runOutsideAngular(()=>e.handleError(u)),u}):a}catch(a){throw t.runOutsideAngular(()=>e.handleError(a)),a}}(Re,k,()=>{const Ye=he.injector.get(Qu);return Ye.runInitializers(),Ye.donePromise.then(()=>(zh(he.injector.get(Ld,cd)||cd),this._moduleDoBootstrap(he),he))})})}bootstrapModule(n,a=[]){const u=hy({},a);return function(e,t,n){const a=new mf(n);return Promise.resolve(a)}(0,0,n).then(f=>this.bootstrapModuleFactory(f,u))}_moduleDoBootstrap(n){const a=n.injector.get(Fc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(u=>a.bootstrap(u));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${F(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(a)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(We(Js))},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();function hy(e,t){return Array.isArray(t)?t.reduce(hy,e):Object.assign(Object.assign({},e),t)}let Fc=(()=>{class e{constructor(n,a,u,f,C){this._zone=n,this._injector=a,this._exceptionHandler=u,this._componentFactoryResolver=f,this._initStatus=C,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 k=new P.y(K=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{K.next(this._stable),K.complete()})}),j=new P.y(K=>{let he;this._zone.runOutsideAngular(()=>{he=this._zone.onStable.subscribe(()=>{Ka.assertNotInAngularZone(),Ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,K.next(!0))})})});const Re=this._zone.onUnstable.subscribe(()=>{Ka.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{K.next(!1)}))});return()=>{he.unsubscribe(),Re.unsubscribe()}});this.isStable=(0,s.T)(k,j.pipe((0,E.B)()))}bootstrap(n,a){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 u;u=n instanceof T_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(u.componentType);const f=function(e){return e.isBoundToModule}(u)?void 0:this._injector.get(hu),k=u.create(Js.NULL,[],a||u.selector,f),j=k.location.nativeElement,K=k.injector.get(iy,null),he=K&&k.injector.get(ry);return K&&he&&he.registerApplication(j,K),k.onDestroy(()=>{this.detachView(k.hostView),If(this.components,k),he&&he.unregisterApplication(j)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const a=n;this._views.push(a),a.attachToAppRef(this)}detachView(n){const a=n;If(this._views,a),a.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Qv,[]).concat(this._bootstrapListeners).forEach(u=>u(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(We(Ka),We(Js),We(wu),We(Zu),We(Qu))},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();function If(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class cD{}class hD{}const fD={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let pD=(()=>{class e{constructor(n,a){this._compiler=n,this._config=a||fD}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[a,u]=n.split("#");return void 0===u&&(u="default"),L(8255)(a).then(f=>f[u]).then(f=>my(f,a,u)).then(f=>this._compiler.compileModuleAsync(f))}loadFactory(n){let[a,u]=n.split("#"),f="NgFactory";return void 0===u&&(u="default",f=""),L(8255)(this._config.factoryPathPrefix+a+this._config.factoryPathSuffix).then(C=>C[u+f]).then(C=>my(C,a,u))}}return e.\u0275fac=function(n){return new(n||e)(We(Ic),We(hD,8))},e.\u0275prov=di({token:e,factory:e.\u0275fac}),e})();function my(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const MD=function(e){return null},TD=uy(null,"core",[{provide:Jv,useValue:"unknown"},{provide:dy,deps:[Js]},{provide:ry,deps:[]},{provide:Kv,deps:[]}]),LD=[{provide:Fc,useClass:Fc,deps:[Ka,Js,wu,Zu,Qu]},{provide:OC,deps:[Ka],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Qu,useClass:Qu,deps:[[new Bi,kf]]},{provide:Ic,useClass:Ic,deps:[]},NT,{provide:_d,useFactory:function(){return SM},deps:[]},{provide:vd,useFactory:function(){return xM},deps:[]},{provide:Ld,useFactory:function(e){return zh(e=e||"undefined"!=typeof $localize&&$localize.locale||cd),e},deps:[[new ir(Ld),new Bi,new Fr]]},{provide:Xv,useValue:"USD"}];let ED=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(We(Fc))},e.\u0275mod=gn({type:e}),e.\u0275inj=An({providers:LD}),e})()},3679:(Xe,Ee,L)=>{"use strict";L.d(Ee,{Wl:()=>q,Fj:()=>st,qu:()=>x,NI:()=>On,u:()=>Ji,cw:()=>xe,sg:()=>Zt,u5:()=>Mr,Cf:()=>pt,JU:()=>F,JJ:()=>et,JL:()=>Qe,On:()=>Cn,YN:()=>cr,_:()=>Ve,UX:()=>v,EJ:()=>tr,kI:()=>dn,_Y:()=>tn,Kr:()=>wr});var i=L(7716),o=L(8583),P=L(4402),s=L(5758),E=L(8002);let S=(()=>{class _{constructor(T,V){this._renderer=T,this._elementRef=V,this.onChange=pe=>{},this.onTouched=()=>{}}setProperty(T,V){this._renderer.setProperty(this._elementRef.nativeElement,T,V)}registerOnTouched(T){this.onTouched=T}registerOnChange(T){this.onChange=T}setDisabledState(T){this.setProperty("disabled",T)}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(i.Qsj),i.Y36(i.SBq))},_.\u0275dir=i.lG2({type:_}),_})(),Z=(()=>{class _ extends S{}return _.\u0275fac=function(){let w;return function(V){return(w||(w=i.n5z(_)))(V||_)}}(),_.\u0275dir=i.lG2({type:_,features:[i.qOj]}),_})();const F=new i.OlP("NgValueAccessor"),z={provide:F,useExisting:(0,i.Gpc)(()=>q),multi:!0};let q=(()=>{class _ extends Z{writeValue(T){this.setProperty("checked",T)}}return _.\u0275fac=function(){let w;return function(V){return(w||(w=i.n5z(_)))(V||_)}}(),_.\u0275dir=i.lG2({type:_,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(T,V){1&T&&i.NdJ("change",function(Be){return V.onChange(Be.target.checked)})("blur",function(){return V.onTouched()})},features:[i._Bn([z]),i.qOj]}),_})();const d={provide:F,useExisting:(0,i.Gpc)(()=>st),multi:!0},De=new i.OlP("CompositionEventMode");let st=(()=>{class _ extends S{constructor(T,V,pe){super(T,V),this._compositionMode=pe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const _=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test(_.toLowerCase())}())}writeValue(T){this.setProperty("value",null==T?"":T)}_handleInput(T){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(T)}_compositionStart(){this._composing=!0}_compositionEnd(T){this._composing=!1,this._compositionMode&&this.onChange(T)}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(De,8))},_.\u0275dir=i.lG2({type:_,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(T,V){1&T&&i.NdJ("input",function(Be){return V._handleInput(Be.target.value)})("blur",function(){return V.onTouched()})("compositionstart",function(){return V._compositionStart()})("compositionend",function(Be){return V._compositionEnd(Be.target.value)})},features:[i._Bn([d]),i.qOj]}),_})();function Te(_){return null==_||0===_.length}function le(_){return null!=_&&"number"==typeof _.length}const pt=new i.OlP("NgValidators"),He=new i.OlP("NgAsyncValidators"),Vt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class dn{static min(w){return _=w,w=>{if(Te(w.value)||Te(_))return null;const T=parseFloat(w.value);return!isNaN(T)&&T<_?{min:{min:_,actual:w.value}}:null};var _}static max(w){return _=w,w=>{if(Te(w.value)||Te(_))return null;const T=parseFloat(w.value);return!isNaN(T)&&T>_?{max:{max:_,actual:w.value}}:null};var _}static required(w){return Te(w.value)?{required:!0}:null}static requiredTrue(w){return!0===w.value?null:{required:!0}}static email(w){return Te((_=w).value)||Vt.test(_.value)?null:{email:!0};var _}static minLength(w){return _=w,w=>Te(w.value)||!le(w.value)?null:w.value.length<_?{minlength:{requiredLength:_,actualLength:w.value.length}}:null;var _}static maxLength(w){return _=w,w=>le(w.value)&&w.value.length>_?{maxlength:{requiredLength:_,actualLength:w.value.length}}:null;var _}static pattern(w){return function(_){if(!_)return ot;let w,T;return"string"==typeof _?(T="","^"!==_.charAt(0)&&(T+="^"),T+=_,"$"!==_.charAt(_.length-1)&&(T+="$"),w=new RegExp(T)):(T=_.toString(),w=_),V=>{if(Te(V.value))return null;const pe=V.value;return w.test(pe)?null:{pattern:{requiredPattern:T,actualValue:pe}}}}(w)}static nullValidator(w){return null}static compose(w){return Si(w)}static composeAsync(w){return mn(w)}}function ot(_){return null}function Ze(_){return null!=_}function wt(_){const w=(0,i.QGY)(_)?(0,P.D)(_):_;return(0,i.CqO)(w),w}function Dt(_){let w={};return _.forEach(T=>{w=null!=T?Object.assign(Object.assign({},w),T):w}),0===Object.keys(w).length?null:w}function Qt(_,w){return w.map(T=>T(_))}function Dn(_){return _.map(w=>function(_){return!_.validate}(w)?w:T=>w.validate(T))}function Si(_){if(!_)return null;const w=_.filter(Ze);return 0==w.length?null:function(T){return Dt(Qt(T,w))}}function $n(_){return null!=_?Si(Dn(_)):null}function mn(_){if(!_)return null;const w=_.filter(Ze);return 0==w.length?null:function(T){const V=Qt(T,w).map(wt);return(0,s.D)(V).pipe((0,E.U)(Dt))}}function _i(_){return null!=_?mn(Dn(_)):null}function Sn(_,w){return null===_?[w]:Array.isArray(_)?[..._,w]:[_,w]}function ai(_){return _._rawValidators}function di(_){return _._rawAsyncValidators}function $t(_){return _?Array.isArray(_)?_:[_]:[]}function An(_,w){return Array.isArray(_)?_.includes(w):_===w}function Me(_,w){const T=$t(w);return $t(_).forEach(pe=>{An(T,pe)||T.push(pe)}),T}function Et(_,w){return $t(w).filter(T=>!An(_,T))}let Ae=(()=>{class _{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(T){this._rawValidators=T||[],this._composedValidatorFn=$n(this._rawValidators)}_setAsyncValidators(T){this._rawAsyncValidators=T||[],this._composedAsyncValidatorFn=_i(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(T){this._onDestroyCallbacks.push(T)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(T=>T()),this._onDestroyCallbacks=[]}reset(T){this.control&&this.control.reset(T)}hasError(T,V){return!!this.control&&this.control.hasError(T,V)}getError(T,V){return this.control?this.control.getError(T,V):null}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275dir=i.lG2({type:_}),_})(),lt=(()=>{class _ extends Ae{get formDirective(){return null}get path(){return null}}return _.\u0275fac=function(){let w;return function(V){return(w||(w=i.n5z(_)))(V||_)}}(),_.\u0275dir=i.lG2({type:_,features:[i.qOj]}),_})();class Ne extends Ae{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ie{constructor(w){this._cd=w}is(w){var T,V,pe;return"submitted"===w?!!(null===(T=this._cd)||void 0===T?void 0:T.submitted):!!(null===(pe=null===(V=this._cd)||void 0===V?void 0:V.control)||void 0===pe?void 0:pe[w])}}let et=(()=>{class _ extends Ie{constructor(T){super(T)}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(Ne,2))},_.\u0275dir=i.lG2({type:_,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(T,V){2&T&&i.ekj("ng-untouched",V.is("untouched"))("ng-touched",V.is("touched"))("ng-pristine",V.is("pristine"))("ng-dirty",V.is("dirty"))("ng-valid",V.is("valid"))("ng-invalid",V.is("invalid"))("ng-pending",V.is("pending"))},features:[i.qOj]}),_})(),Qe=(()=>{class _ extends Ie{constructor(T){super(T)}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(lt,10))},_.\u0275dir=i.lG2({type:_,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(T,V){2&T&&i.ekj("ng-untouched",V.is("untouched"))("ng-touched",V.is("touched"))("ng-pristine",V.is("pristine"))("ng-dirty",V.is("dirty"))("ng-valid",V.is("valid"))("ng-invalid",V.is("invalid"))("ng-pending",V.is("pending"))("ng-submitted",V.is("submitted"))},features:[i.qOj]}),_})();function Pt(_,w){return[...w.path,_]}function Ct(_,w){_n(_,w),w.valueAccessor.writeValue(_.value),function(_,w){w.valueAccessor.registerOnChange(T=>{_._pendingValue=T,_._pendingChange=!0,_._pendingDirty=!0,"change"===_.updateOn&&Ni(_,w)})}(_,w),function(_,w){const T=(V,pe)=>{w.valueAccessor.writeValue(V),pe&&w.viewToModelUpdate(V)};_.registerOnChange(T),w._registerOnDestroy(()=>{_._unregisterOnChange(T)})}(_,w),function(_,w){w.valueAccessor.registerOnTouched(()=>{_._pendingTouched=!0,"blur"===_.updateOn&&_._pendingChange&&Ni(_,w),"submit"!==_.updateOn&&_.markAsTouched()})}(_,w),function(_,w){if(w.valueAccessor.setDisabledState){const T=V=>{w.valueAccessor.setDisabledState(V)};_.registerOnDisabledChange(T),w._registerOnDestroy(()=>{_._unregisterOnDisabledChange(T)})}}(_,w)}function wn(_,w,T=!0){const V=()=>{};w.valueAccessor&&(w.valueAccessor.registerOnChange(V),w.valueAccessor.registerOnTouched(V)),vn(_,w),_&&(w._invokeOnDestroyCallbacks(),_._registerOnCollectionChange(()=>{}))}function Nn(_,w){_.forEach(T=>{T.registerOnValidatorChange&&T.registerOnValidatorChange(w)})}function _n(_,w){const T=ai(_);null!==w.validator?_.setValidators(Sn(T,w.validator)):"function"==typeof T&&_.setValidators([T]);const V=di(_);null!==w.asyncValidator?_.setAsyncValidators(Sn(V,w.asyncValidator)):"function"==typeof V&&_.setAsyncValidators([V]);const pe=()=>_.updateValueAndValidity();Nn(w._rawValidators,pe),Nn(w._rawAsyncValidators,pe)}function vn(_,w){let T=!1;if(null!==_){if(null!==w.validator){const pe=ai(_);if(Array.isArray(pe)&&pe.length>0){const Be=pe.filter(Mt=>Mt!==w.validator);Be.length!==pe.length&&(T=!0,_.setValidators(Be))}}if(null!==w.asyncValidator){const pe=di(_);if(Array.isArray(pe)&&pe.length>0){const Be=pe.filter(Mt=>Mt!==w.asyncValidator);Be.length!==pe.length&&(T=!0,_.setAsyncValidators(Be))}}}const V=()=>{};return Nn(w._rawValidators,V),Nn(w._rawAsyncValidators,V),T}function Ni(_,w){_._pendingDirty&&_.markAsDirty(),_.setValue(_._pendingValue,{emitModelToViewChange:!1}),w.viewToModelUpdate(_._pendingValue),_._pendingChange=!1}function xi(_,w){if(!_.hasOwnProperty("model"))return!1;const T=_.model;return!!T.isFirstChange()||!Object.is(w,T.currentValue)}function Ir(_,w){if(!w)return null;let T,V,pe;return Array.isArray(w),w.forEach(Be=>{Be.constructor===st?T=Be:function(_){return Object.getPrototypeOf(_.constructor)===Z}(Be)?V=Be:pe=Be}),pe||V||T||null}function dt(_,w){const T=_.indexOf(w);T>-1&&_.splice(T,1)}const be="VALID",nt="INVALID",Kt="PENDING",Tn="DISABLED";function En(_){return(hi(_)?_.validators:_)||null}function Rn(_){return Array.isArray(_)?$n(_):_||null}function Ri(_,w){return(hi(w)?w.asyncValidators:_)||null}function Gi(_){return Array.isArray(_)?_i(_):_||null}function hi(_){return null!=_&&!Array.isArray(_)&&"object"==typeof _}class ln{constructor(w,T){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=w,this._rawAsyncValidators=T,this._composedValidatorFn=Rn(this._rawValidators),this._composedAsyncValidatorFn=Gi(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(w){this._rawValidators=this._composedValidatorFn=w}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(w){this._rawAsyncValidators=this._composedAsyncValidatorFn=w}get parent(){return this._parent}get valid(){return this.status===be}get invalid(){return this.status===nt}get pending(){return this.status==Kt}get disabled(){return this.status===Tn}get enabled(){return this.status!==Tn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(w){this._rawValidators=w,this._composedValidatorFn=Rn(w)}setAsyncValidators(w){this._rawAsyncValidators=w,this._composedAsyncValidatorFn=Gi(w)}addValidators(w){this.setValidators(Me(w,this._rawValidators))}addAsyncValidators(w){this.setAsyncValidators(Me(w,this._rawAsyncValidators))}removeValidators(w){this.setValidators(Et(w,this._rawValidators))}removeAsyncValidators(w){this.setAsyncValidators(Et(w,this._rawAsyncValidators))}hasValidator(w){return An(this._rawValidators,w)}hasAsyncValidator(w){return An(this._rawAsyncValidators,w)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(w={}){this.touched=!0,this._parent&&!w.onlySelf&&this._parent.markAsTouched(w)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(w=>w.markAllAsTouched())}markAsUntouched(w={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(T=>{T.markAsUntouched({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}markAsDirty(w={}){this.pristine=!1,this._parent&&!w.onlySelf&&this._parent.markAsDirty(w)}markAsPristine(w={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(T=>{T.markAsPristine({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}markAsPending(w={}){this.status=Kt,!1!==w.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!w.onlySelf&&this._parent.markAsPending(w)}disable(w={}){const T=this._parentMarkedDirty(w.onlySelf);this.status=Tn,this.errors=null,this._forEachChild(V=>{V.disable(Object.assign(Object.assign({},w),{onlySelf:!0}))}),this._updateValue(),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},w),{skipPristineCheck:T})),this._onDisabledChange.forEach(V=>V(!0))}enable(w={}){const T=this._parentMarkedDirty(w.onlySelf);this.status=be,this._forEachChild(V=>{V.enable(Object.assign(Object.assign({},w),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},w),{skipPristineCheck:T})),this._onDisabledChange.forEach(V=>V(!1))}_updateAncestors(w){this._parent&&!w.onlySelf&&(this._parent.updateValueAndValidity(w),w.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(w){this._parent=w}updateValueAndValidity(w={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===be||this.status===Kt)&&this._runAsyncValidator(w.emitEvent)),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!w.onlySelf&&this._parent.updateValueAndValidity(w)}_updateTreeValidity(w={emitEvent:!0}){this._forEachChild(T=>T._updateTreeValidity(w)),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tn:be}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(w){if(this.asyncValidator){this.status=Kt,this._hasOwnPendingAsyncValidator=!0;const T=wt(this.asyncValidator(this));this._asyncValidationSubscription=T.subscribe(V=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(V,{emitEvent:w})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(w,T={}){this.errors=w,this._updateControlsErrors(!1!==T.emitEvent)}get(w){return function(_,w,T){if(null==w||(Array.isArray(w)||(w=w.split(".")),Array.isArray(w)&&0===w.length))return null;let V=_;return w.forEach(pe=>{V=V instanceof xe?V.controls.hasOwnProperty(pe)?V.controls[pe]:null:V instanceof tt&&V.at(pe)||null}),V}(this,w)}getError(w,T){const V=T?this.get(T):this;return V&&V.errors?V.errors[w]:null}hasError(w,T){return!!this.getError(w,T)}get root(){let w=this;for(;w._parent;)w=w._parent;return w}_updateControlsErrors(w){this.status=this._calculateStatus(),w&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(w)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Tn:this.errors?nt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kt)?Kt:this._anyControlsHaveStatus(nt)?nt:be}_anyControlsHaveStatus(w){return this._anyControls(T=>T.status===w)}_anyControlsDirty(){return this._anyControls(w=>w.dirty)}_anyControlsTouched(){return this._anyControls(w=>w.touched)}_updatePristine(w={}){this.pristine=!this._anyControlsDirty(),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}_updateTouched(w={}){this.touched=this._anyControlsTouched(),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}_isBoxedValue(w){return"object"==typeof w&&null!==w&&2===Object.keys(w).length&&"value"in w&&"disabled"in w}_registerOnCollectionChange(w){this._onCollectionChange=w}_setUpdateStrategy(w){hi(w)&&null!=w.updateOn&&(this._updateOn=w.updateOn)}_parentMarkedDirty(w){return!w&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class On extends ln{constructor(w=null,T,V){super(En(T),Ri(V,T)),this._onChange=[],this._applyFormState(w),this._setUpdateStrategy(T),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(w,T={}){this.value=this._pendingValue=w,this._onChange.length&&!1!==T.emitModelToViewChange&&this._onChange.forEach(V=>V(this.value,!1!==T.emitViewToModelChange)),this.updateValueAndValidity(T)}patchValue(w,T={}){this.setValue(w,T)}reset(w=null,T={}){this._applyFormState(w),this.markAsPristine(T),this.markAsUntouched(T),this.setValue(this.value,T),this._pendingChange=!1}_updateValue(){}_anyControls(w){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(w){this._onChange.push(w)}_unregisterOnChange(w){dt(this._onChange,w)}registerOnDisabledChange(w){this._onDisabledChange.push(w)}_unregisterOnDisabledChange(w){dt(this._onDisabledChange,w)}_forEachChild(w){}_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(w){this._isBoxedValue(w)?(this.value=this._pendingValue=w.value,w.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=w}}class xe extends ln{constructor(w,T,V){super(En(T),Ri(V,T)),this.controls=w,this._initObservables(),this._setUpdateStrategy(T),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(w,T){return this.controls[w]?this.controls[w]:(this.controls[w]=T,T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange),T)}addControl(w,T,V={}){this.registerControl(w,T),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}removeControl(w,T={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],this.updateValueAndValidity({emitEvent:T.emitEvent}),this._onCollectionChange()}setControl(w,T,V={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],T&&this.registerControl(w,T),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}contains(w){return this.controls.hasOwnProperty(w)&&this.controls[w].enabled}setValue(w,T={}){this._checkAllValuesPresent(w),Object.keys(w).forEach(V=>{this._throwIfControlMissing(V),this.controls[V].setValue(w[V],{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T)}patchValue(w,T={}){null!=w&&(Object.keys(w).forEach(V=>{this.controls[V]&&this.controls[V].patchValue(w[V],{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T))}reset(w={},T={}){this._forEachChild((V,pe)=>{V.reset(w[pe],{onlySelf:!0,emitEvent:T.emitEvent})}),this._updatePristine(T),this._updateTouched(T),this.updateValueAndValidity(T)}getRawValue(){return this._reduceChildren({},(w,T,V)=>(w[V]=T instanceof On?T.value:T.getRawValue(),w))}_syncPendingControls(){let w=this._reduceChildren(!1,(T,V)=>!!V._syncPendingControls()||T);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_throwIfControlMissing(w){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[w])throw new Error(`Cannot find form control with name: ${w}.`)}_forEachChild(w){Object.keys(this.controls).forEach(T=>{const V=this.controls[T];V&&w(V,T)})}_setUpControls(){this._forEachChild(w=>{w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(w){for(const T of Object.keys(this.controls)){const V=this.controls[T];if(this.contains(T)&&w(V))return!0}return!1}_reduceValue(){return this._reduceChildren({},(w,T,V)=>((T.enabled||this.disabled)&&(w[V]=T.value),w))}_reduceChildren(w,T){let V=w;return this._forEachChild((pe,Be)=>{V=T(V,pe,Be)}),V}_allControlsDisabled(){for(const w of Object.keys(this.controls))if(this.controls[w].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(w){this._forEachChild((T,V)=>{if(void 0===w[V])throw new Error(`Must supply a value for form control with name: '${V}'.`)})}}class tt extends ln{constructor(w,T,V){super(En(T),Ri(V,T)),this.controls=w,this._initObservables(),this._setUpdateStrategy(T),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(w){return this.controls[w]}push(w,T={}){this.controls.push(w),this._registerControl(w),this.updateValueAndValidity({emitEvent:T.emitEvent}),this._onCollectionChange()}insert(w,T,V={}){this.controls.splice(w,0,T),this._registerControl(T),this.updateValueAndValidity({emitEvent:V.emitEvent})}removeAt(w,T={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),this.controls.splice(w,1),this.updateValueAndValidity({emitEvent:T.emitEvent})}setControl(w,T,V={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),this.controls.splice(w,1),T&&(this.controls.splice(w,0,T),this._registerControl(T)),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(w,T={}){this._checkAllValuesPresent(w),w.forEach((V,pe)=>{this._throwIfControlMissing(pe),this.at(pe).setValue(V,{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T)}patchValue(w,T={}){null!=w&&(w.forEach((V,pe)=>{this.at(pe)&&this.at(pe).patchValue(V,{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T))}reset(w=[],T={}){this._forEachChild((V,pe)=>{V.reset(w[pe],{onlySelf:!0,emitEvent:T.emitEvent})}),this._updatePristine(T),this._updateTouched(T),this.updateValueAndValidity(T)}getRawValue(){return this.controls.map(w=>w instanceof On?w.value:w.getRawValue())}clear(w={}){this.controls.length<1||(this._forEachChild(T=>T._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:w.emitEvent}))}_syncPendingControls(){let w=this.controls.reduce((T,V)=>!!V._syncPendingControls()||T,!1);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_throwIfControlMissing(w){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(w))throw new Error(`Cannot find form control at index ${w}`)}_forEachChild(w){this.controls.forEach((T,V)=>{w(T,V)})}_updateValue(){this.value=this.controls.filter(w=>w.enabled||this.disabled).map(w=>w.value)}_anyControls(w){return this.controls.some(T=>T.enabled&&w(T))}_setUpControls(){this._forEachChild(w=>this._registerControl(w))}_checkAllValuesPresent(w){this._forEachChild((T,V)=>{if(void 0===w[V])throw new Error(`Must supply a value for form control at index: ${V}.`)})}_allControlsDisabled(){for(const w of this.controls)if(w.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(w){w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)}}const Ce={provide:Ne,useExisting:(0,i.Gpc)(()=>Cn)},zt=(()=>Promise.resolve(null))();let Cn=(()=>{class _ extends Ne{constructor(T,V,pe,Be){super(),this.control=new On,this._registered=!1,this.update=new i.vpe,this._parent=T,this._setValidators(V),this._setAsyncValidators(pe),this.valueAccessor=Ir(0,Be)}ngOnChanges(T){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in T&&this._updateDisabled(T),xi(T,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Pt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(T){this.viewModel=T,this.update.emit(T)}_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(){Ct(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(T){zt.then(()=>{this.control.setValue(T,{emitViewToModelChange:!1})})}_updateDisabled(T){const V=T.isDisabled.currentValue,pe=""===V||V&&"false"!==V;zt.then(()=>{pe&&!this.control.disabled?this.control.disable():!pe&&this.control.disabled&&this.control.enable()})}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(lt,9),i.Y36(pt,10),i.Y36(He,10),i.Y36(F,10))},_.\u0275dir=i.lG2({type:_,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Ce]),i.qOj,i.TTD]}),_})(),tn=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275dir=i.lG2({type:_,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_})();const Pn={provide:F,useExisting:(0,i.Gpc)(()=>Ve),multi:!0};let Sr=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=i.oAB({type:_}),_.\u0275inj=i.cJS({}),_})(),Or=(()=>{class _{constructor(){this._accessors=[]}add(T,V){this._accessors.push([T,V])}remove(T){for(let V=this._accessors.length-1;V>=0;--V)if(this._accessors[V][1]===T)return void this._accessors.splice(V,1)}select(T){this._accessors.forEach(V=>{this._isSameGroup(V,T)&&V[1]!==T&&V[1].fireUncheck(T.value)})}_isSameGroup(T,V){return!!T[0].control&&T[0]._parent===V._control._parent&&T[1].name===V.name}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275prov=(0,i.Yz7)({factory:function(){return new _},token:_,providedIn:Sr}),_})(),Ve=(()=>{class _ extends Z{constructor(T,V,pe,Be){super(T,V),this._registry=pe,this._injector=Be,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ne),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(T){this._state=T===this.value,this.setProperty("checked",this._state)}registerOnChange(T){this._fn=T,this.onChange=()=>{T(this.value),this._registry.select(this)}}fireUncheck(T){this.writeValue(T)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Or),i.Y36(i.zs3))},_.\u0275dir=i.lG2({type:_,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(T,V){1&T&&i.NdJ("change",function(){return V.onChange()})("blur",function(){return V.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i._Bn([Pn]),i.qOj]}),_})();const jt=new i.OlP("NgModelWithFormControlWarning"),kn={provide:lt,useExisting:(0,i.Gpc)(()=>Zt)};let Zt=(()=>{class _ extends lt{constructor(T,V){super(),this.validators=T,this.asyncValidators=V,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(T),this._setAsyncValidators(V)}ngOnChanges(T){this._checkFormPresent(),T.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(T){const V=this.form.get(T.path);return Ct(V,T),V.updateValueAndValidity({emitEvent:!1}),this.directives.push(T),V}getControl(T){return this.form.get(T.path)}removeControl(T){wn(T.control||null,T,!1),dt(this.directives,T)}addFormGroup(T){this._setUpFormContainer(T)}removeFormGroup(T){this._cleanUpFormContainer(T)}getFormGroup(T){return this.form.get(T.path)}addFormArray(T){this._setUpFormContainer(T)}removeFormArray(T){this._cleanUpFormContainer(T)}getFormArray(T){return this.form.get(T.path)}updateModel(T,V){this.form.get(T.path).setValue(V)}onSubmit(T){return this.submitted=!0,function(_,w){_._syncPendingControls(),w.forEach(T=>{const V=T.control;"submit"===V.updateOn&&V._pendingChange&&(T.viewToModelUpdate(V._pendingValue),V._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(T),!1}onReset(){this.resetForm()}resetForm(T){this.form.reset(T),this.submitted=!1}_updateDomValue(){this.directives.forEach(T=>{const V=T.control,pe=this.form.get(T.path);V!==pe&&(wn(V||null,T),pe instanceof On&&(Ct(pe,T),T.control=pe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(T){const V=this.form.get(T.path);(function(_,w){_n(_,w)})(V,T),V.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(T){if(this.form){const V=this.form.get(T.path);V&&function(_,w){return vn(_,w)}(V,T)&&V.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_n(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(pt,10),i.Y36(He,10))},_.\u0275dir=i.lG2({type:_,selectors:[["","formGroup",""]],hostBindings:function(T,V){1&T&&i.NdJ("submit",function(Be){return V.onSubmit(Be)})("reset",function(){return V.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([kn]),i.qOj,i.TTD]}),_})();const ni={provide:Ne,useExisting:(0,i.Gpc)(()=>Ji)};let Ji=(()=>{class _ extends Ne{constructor(T,V,pe,Be,Mt){super(),this._ngModelWarningConfig=Mt,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=T,this._setValidators(V),this._setAsyncValidators(pe),this.valueAccessor=Ir(0,Be)}set isDisabled(T){}ngOnChanges(T){this._added||this._setUpControl(),xi(T,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(T){this.viewModel=T,this.update.emit(T)}get path(){return Pt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(lt,13),i.Y36(pt,10),i.Y36(He,10),i.Y36(F,10),i.Y36(jt,8))},_.\u0275dir=i.lG2({type:_,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([ni]),i.qOj,i.TTD]}),_._ngModelWarningSentOnce=!1,_})();const Hi={provide:F,useExisting:(0,i.Gpc)(()=>tr),multi:!0};function bi(_,w){return null==_?`${w}`:(w&&"object"==typeof w&&(w="Object"),`${_}: ${w}`.slice(0,50))}let tr=(()=>{class _ extends Z{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(T){this._compareWith=T}writeValue(T){this.value=T;const V=this._getOptionId(T);null==V&&this.setProperty("selectedIndex",-1);const pe=bi(V,T);this.setProperty("value",pe)}registerOnChange(T){this.onChange=V=>{this.value=this._getOptionValue(V),T(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(T){for(const V of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(V),T))return V;return null}_getOptionValue(T){const V=function(_){return _.split(":")[0]}(T);return this._optionMap.has(V)?this._optionMap.get(V):T}}return _.\u0275fac=function(){let w;return function(V){return(w||(w=i.n5z(_)))(V||_)}}(),_.\u0275dir=i.lG2({type:_,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(T,V){1&T&&i.NdJ("change",function(Be){return V.onChange(Be.target.value)})("blur",function(){return V.onTouched()})},inputs:{compareWith:"compareWith"},features:[i._Bn([Hi]),i.qOj]}),_})(),cr=(()=>{class _{constructor(T,V,pe){this._element=T,this._renderer=V,this._select=pe,this._select&&(this.id=this._select._registerOption())}set ngValue(T){null!=this._select&&(this._select._optionMap.set(this.id,T),this._setElementValue(bi(this.id,T)),this._select.writeValue(this._select.value))}set value(T){this._setElementValue(T),this._select&&this._select.writeValue(this._select.value)}_setElementValue(T){this._renderer.setProperty(this._element.nativeElement,"value",T)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(tr,9))},_.\u0275dir=i.lG2({type:_,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),_})();const Ei={provide:F,useExisting:(0,i.Gpc)(()=>Yr),multi:!0};function Xi(_,w){return null==_?`${w}`:("string"==typeof w&&(w=`'${w}'`),w&&"object"==typeof w&&(w="Object"),`${_}: ${w}`.slice(0,50))}let Yr=(()=>{class _ extends Z{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(T){this._compareWith=T}writeValue(T){let V;if(this.value=T,Array.isArray(T)){const pe=T.map(Be=>this._getOptionId(Be));V=(Be,Mt)=>{Be._setSelected(pe.indexOf(Mt.toString())>-1)}}else V=(pe,Be)=>{pe._setSelected(!1)};this._optionMap.forEach(V)}registerOnChange(T){this.onChange=V=>{const pe=[];if(void 0!==V.selectedOptions){const Be=V.selectedOptions;for(let Mt=0;Mt{class _{constructor(T,V,pe){this._element=T,this._renderer=V,this._select=pe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(T){null!=this._select&&(this._value=T,this._setElementValue(Xi(this.id,T)),this._select.writeValue(this._select.value))}set value(T){this._select?(this._value=T,this._setElementValue(Xi(this.id,T)),this._select.writeValue(this._select.value)):this._setElementValue(T)}_setElementValue(T){this._renderer.setProperty(this._element.nativeElement,"value",T)}_setSelected(T){this._renderer.setProperty(this._element.nativeElement,"selected",T)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return _.\u0275fac=function(T){return new(T||_)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Yr,9))},_.\u0275dir=i.lG2({type:_,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),_})(),Ns=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=i.oAB({type:_}),_.\u0275inj=i.cJS({imports:[[Sr]]}),_})(),Mr=(()=>{class _{}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=i.oAB({type:_}),_.\u0275inj=i.cJS({imports:[Ns]}),_})(),v=(()=>{class _{static withConfig(T){return{ngModule:_,providers:[{provide:jt,useValue:T.warnOnNgModelWithFormControl}]}}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275mod=i.oAB({type:_}),_.\u0275inj=i.cJS({imports:[Ns]}),_})(),x=(()=>{class _{group(T,V=null){const pe=this._reduceControls(T);let Ft,Be=null,Mt=null;return null!=V&&(function(_){return void 0!==_.asyncValidators||void 0!==_.validators||void 0!==_.updateOn}(V)?(Be=null!=V.validators?V.validators:null,Mt=null!=V.asyncValidators?V.asyncValidators:null,Ft=null!=V.updateOn?V.updateOn:void 0):(Be=null!=V.validator?V.validator:null,Mt=null!=V.asyncValidator?V.asyncValidator:null)),new xe(pe,{asyncValidators:Mt,updateOn:Ft,validators:Be})}control(T,V,pe){return new On(T,V,pe)}array(T,V,pe){const Be=T.map(Mt=>this._createControl(Mt));return new tt(Be,V,pe)}_reduceControls(T){const V={};return Object.keys(T).forEach(pe=>{V[pe]=this._createControl(T[pe])}),V}_createControl(T){return T instanceof On||T instanceof xe||T instanceof tt?T:Array.isArray(T)?this.control(T[0],T.length>1?T[1]:null,T.length>2?T[2]:null):this.control(T)}}return _.\u0275fac=function(T){return new(T||_)},_.\u0275prov=(0,i.Yz7)({factory:function(){return new _},token:_,providedIn:v}),_})()},9075:(Xe,Ee,L)=>{"use strict";L.d(Ee,{b2:()=>gn,H7:()=>Wn,q6:()=>Ir});var i=L(8583),o=L(7716);class P extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class s extends P{static makeCurrent(){(0,i.HT)(new s)}onAndCancel(re,we,Q){return re.addEventListener(we,Q,!1),()=>{re.removeEventListener(we,Q,!1)}}dispatchEvent(re,we){re.dispatchEvent(we)}remove(re){re.parentNode&&re.parentNode.removeChild(re)}createElement(re,we){return(we=we||this.getDefaultDocument()).createElement(re)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(re){return re.nodeType===Node.ELEMENT_NODE}isShadowRoot(re){return re instanceof DocumentFragment}getGlobalEventTarget(re,we){return"window"===we?window:"document"===we?re:"body"===we?re.body:null}getBaseHref(re){const we=(E=E||document.querySelector("base"),E?E.getAttribute("href"):null);return null==we?null:function(it){Z=Z||document.createElement("a"),Z.setAttribute("href",it);const re=Z.pathname;return"/"===re.charAt(0)?re:`/${re}`}(we)}resetBaseElement(){E=null}getUserAgent(){return window.navigator.userAgent}getCookie(re){return(0,i.Mx)(document.cookie,re)}}let Z,E=null;const z=new o.OlP("TRANSITION_ID"),d=[{provide:o.ip1,useFactory:function(it,re,we){return()=>{we.get(o.CZH).donePromise.then(()=>{const Q=(0,i.q)(),Ce=re.querySelectorAll(`style[ng-transition="${it}"]`);for(let ht=0;ht{const ht=re.findTestabilityInTree(Q,Ce);if(null==ht)throw new Error("Could not find testability for element.");return ht},o.dqk.getAllAngularTestabilities=()=>re.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>re.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Q=>{const Ce=o.dqk.getAllAngularTestabilities();let ht=Ce.length,zt=!1;const Cn=function(tn){zt=zt||tn,ht--,0==ht&&Q(zt)};Ce.forEach(function(tn){tn.whenStable(Cn)})})}findTestabilityInTree(re,we,Q){if(null==we)return null;const Ce=re.getTestability(we);return null!=Ce?Ce:Q?(0,i.q)().isShadowRoot(we)?this.findTestabilityInTree(re,we.host,!0):this.findTestabilityInTree(re,we.parentElement,!0):null}}let De=(()=>{class it{build(){return new XMLHttpRequest}}return it.\u0275fac=function(we){return new(we||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})();const ot=new o.OlP("EventManagerPlugins");let Ze=(()=>{class it{constructor(we,Q){this._zone=Q,this._eventNameToPlugin=new Map,we.forEach(Ce=>Ce.manager=this),this._plugins=we.slice().reverse()}addEventListener(we,Q,Ce){return this._findPluginFor(Q).addEventListener(we,Q,Ce)}addGlobalEventListener(we,Q,Ce){return this._findPluginFor(Q).addGlobalEventListener(we,Q,Ce)}getZone(){return this._zone}_findPluginFor(we){const Q=this._eventNameToPlugin.get(we);if(Q)return Q;const Ce=this._plugins;for(let ht=0;ht{class it{constructor(){this._stylesSet=new Set}addStyles(we){const Q=new Set;we.forEach(Ce=>{this._stylesSet.has(Ce)||(this._stylesSet.add(Ce),Q.add(Ce))}),this.onStylesAdded(Q)}onStylesAdded(we){}getAllStyles(){return Array.from(this._stylesSet)}}return it.\u0275fac=function(we){return new(we||it)},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})(),Qt=(()=>{class it extends Dt{constructor(we){super(),this._doc=we,this._hostNodes=new Map,this._hostNodes.set(we.head,[])}_addStylesToHost(we,Q,Ce){we.forEach(ht=>{const zt=this._doc.createElement("style");zt.textContent=ht,Ce.push(Q.appendChild(zt))})}addHost(we){const Q=[];this._addStylesToHost(this._stylesSet,we,Q),this._hostNodes.set(we,Q)}removeHost(we){const Q=this._hostNodes.get(we);Q&&Q.forEach(Ln),this._hostNodes.delete(we)}onStylesAdded(we){this._hostNodes.forEach((Q,Ce)=>{this._addStylesToHost(we,Ce,Q)})}ngOnDestroy(){this._hostNodes.forEach(we=>we.forEach(Ln))}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(i.K0))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})();function Ln(it){(0,i.q)().remove(it)}const Dn={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/"},Si=/%COMP%/g;function $t(it,re,we){for(let Q=0;Q{if("__ngUnwrap__"===re)return it;!1===it(re)&&(re.preventDefault(),re.returnValue=!1)}}let Et=(()=>{class it{constructor(we,Q,Ce){this.eventManager=we,this.sharedStylesHost=Q,this.appId=Ce,this.rendererByCompId=new Map,this.defaultRenderer=new Ae(we)}createRenderer(we,Q){if(!we||!Q)return this.defaultRenderer;switch(Q.encapsulation){case o.ifc.Emulated:{let Ce=this.rendererByCompId.get(Q.id);return Ce||(Ce=new It(this.eventManager,this.sharedStylesHost,Q,this.appId),this.rendererByCompId.set(Q.id,Ce)),Ce.applyToHost(we),Ce}case 1:case o.ifc.ShadowDom:return new ge(this.eventManager,this.sharedStylesHost,we,Q);default:if(!this.rendererByCompId.has(Q.id)){const Ce=$t(Q.id,Q.styles,[]);this.sharedStylesHost.addStyles(Ce),this.rendererByCompId.set(Q.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(Ze),o.LFG(Qt),o.LFG(o.AFp))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})();class Ae{constructor(re){this.eventManager=re,this.data=Object.create(null)}destroy(){}createElement(re,we){return we?document.createElementNS(Dn[we]||we,re):document.createElement(re)}createComment(re){return document.createComment(re)}createText(re){return document.createTextNode(re)}appendChild(re,we){re.appendChild(we)}insertBefore(re,we,Q){re&&re.insertBefore(we,Q)}removeChild(re,we){re&&re.removeChild(we)}selectRootElement(re,we){let Q="string"==typeof re?document.querySelector(re):re;if(!Q)throw new Error(`The selector "${re}" did not match any elements`);return we||(Q.textContent=""),Q}parentNode(re){return re.parentNode}nextSibling(re){return re.nextSibling}setAttribute(re,we,Q,Ce){if(Ce){we=Ce+":"+we;const ht=Dn[Ce];ht?re.setAttributeNS(ht,we,Q):re.setAttribute(we,Q)}else re.setAttribute(we,Q)}removeAttribute(re,we,Q){if(Q){const Ce=Dn[Q];Ce?re.removeAttributeNS(Ce,we):re.removeAttribute(`${Q}:${we}`)}else re.removeAttribute(we)}addClass(re,we){re.classList.add(we)}removeClass(re,we){re.classList.remove(we)}setStyle(re,we,Q,Ce){Ce&(o.JOm.DashCase|o.JOm.Important)?re.style.setProperty(we,Q,Ce&o.JOm.Important?"important":""):re.style[we]=Q}removeStyle(re,we,Q){Q&o.JOm.DashCase?re.style.removeProperty(we):re.style[we]=""}setProperty(re,we,Q){re[we]=Q}setValue(re,we){re.nodeValue=we}listen(re,we,Q){return"string"==typeof re?this.eventManager.addGlobalEventListener(re,we,An(Q)):this.eventManager.addEventListener(re,we,An(Q))}}class It extends Ae{constructor(re,we,Q,Ce){super(re),this.component=Q;const ht=$t(Ce+"-"+Q.id,Q.styles,[]);we.addStyles(ht),this.contentAttr="_ngcontent-%COMP%".replace(Si,Ce+"-"+Q.id),this.hostAttr="_nghost-%COMP%".replace(Si,Ce+"-"+Q.id)}applyToHost(re){super.setAttribute(re,this.hostAttr,"")}createElement(re,we){const Q=super.createElement(re,we);return super.setAttribute(Q,this.contentAttr,""),Q}}class ge extends Ae{constructor(re,we,Q,Ce){super(re),this.sharedStylesHost=we,this.hostEl=Q,this.shadowRoot=Q.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ht=$t(Ce.id,Ce.styles,[]);for(let zt=0;zt{class it extends wt{constructor(we){super(we)}supports(we){return!0}addEventListener(we,Q,Ce){return we.addEventListener(Q,Ce,!1),()=>this.removeEventListener(we,Q,Ce)}removeEventListener(we,Q,Ce){return we.removeEventListener(Q,Ce)}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(i.K0))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})();const G=["alt","control","meta","shift"],ze={"\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"},vt={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"},cn={alt:it=>it.altKey,control:it=>it.ctrlKey,meta:it=>it.metaKey,shift:it=>it.shiftKey};let _n=(()=>{class it extends wt{constructor(we){super(we)}supports(we){return null!=it.parseEventName(we)}addEventListener(we,Q,Ce){const ht=it.parseEventName(Q),zt=it.eventCallback(ht.fullKey,Ce,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(we,ht.domEventName,zt))}static parseEventName(we){const Q=we.toLowerCase().split("."),Ce=Q.shift();if(0===Q.length||"keydown"!==Ce&&"keyup"!==Ce)return null;const ht=it._normalizeKey(Q.pop());let zt="";if(G.forEach(tn=>{const si=Q.indexOf(tn);si>-1&&(Q.splice(si,1),zt+=tn+".")}),zt+=ht,0!=Q.length||0===ht.length)return null;const Cn={};return Cn.domEventName=Ce,Cn.fullKey=zt,Cn}static getEventFullKey(we){let Q="",Ce=function(it){let re=it.key;if(null==re){if(re=it.keyIdentifier,null==re)return"Unidentified";re.startsWith("U+")&&(re=String.fromCharCode(parseInt(re.substring(2),16)),3===it.location&&vt.hasOwnProperty(re)&&(re=vt[re]))}return ze[re]||re}(we);return Ce=Ce.toLowerCase()," "===Ce?Ce="space":"."===Ce&&(Ce="dot"),G.forEach(ht=>{ht!=Ce&&cn[ht](we)&&(Q+=ht+".")}),Q+=Ce,Q}static eventCallback(we,Q,Ce){return ht=>{it.getEventFullKey(ht)===we&&Ce.runGuarded(()=>Q(ht))}}static _normalizeKey(we){return"esc"===we?"escape":we}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(i.K0))},it.\u0275prov=o.Yz7({token:it,factory:it.\u0275fac}),it})(),Wn=(()=>{class it{}return it.\u0275fac=function(we){return new(we||it)},it.\u0275prov=(0,o.Yz7)({factory:function(){return(0,o.LFG)(Ni)},token:it,providedIn:"root"}),it})(),Ni=(()=>{class it extends Wn{constructor(we){super(),this._doc=we}sanitize(we,Q){if(null==Q)return null;switch(we){case o.q3G.NONE:return Q;case o.q3G.HTML:return(0,o.qzn)(Q,"HTML")?(0,o.z3N)(Q):(0,o.EiD)(this._doc,String(Q)).toString();case o.q3G.STYLE:return(0,o.qzn)(Q,"Style")?(0,o.z3N)(Q):Q;case o.q3G.SCRIPT:if((0,o.qzn)(Q,"Script"))return(0,o.z3N)(Q);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Q),(0,o.qzn)(Q,"URL")?(0,o.z3N)(Q):(0,o.mCW)(String(Q));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Q,"ResourceURL"))return(0,o.z3N)(Q);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${we} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(we){return(0,o.JVY)(we)}bypassSecurityTrustStyle(we){return(0,o.L6k)(we)}bypassSecurityTrustScript(we){return(0,o.eBb)(we)}bypassSecurityTrustUrl(we){return(0,o.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,o.pB0)(we)}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(i.K0))},it.\u0275prov=(0,o.Yz7)({factory:function(){return function(it){return new Ni(it.get(i.K0))}((0,o.LFG)(o.gxx))},token:it,providedIn:"root"}),it})();const Ir=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:i.bD},{provide:o.g9A,useValue:function(){s.makeCurrent(),oe.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,o.RDi)(document),document},deps:[]}]),dt=[[],{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function(){return new o.qLn},deps:[]},{provide:ot,useClass:et,multi:!0,deps:[i.K0,o.R0b,o.Lbi]},{provide:ot,useClass:_n,multi:!0,deps:[i.K0]},[],{provide:Et,useClass:Et,deps:[Ze,Qt,o.AFp]},{provide:o.FYo,useExisting:Et},{provide:Dt,useExisting:Qt},{provide:Qt,useClass:Qt,deps:[i.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:Ze,useClass:Ze,deps:[ot,o.R0b]},{provide:i.JF,useClass:De,deps:[]},[]];let gn=(()=>{class it{constructor(we){if(we)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(we){return{ngModule:it,providers:[{provide:o.AFp,useValue:we.appId},{provide:z,useExisting:o.AFp},d]}}}return it.\u0275fac=function(we){return new(we||it)(o.LFG(it,12))},it.\u0275mod=o.oAB({type:it}),it.\u0275inj=o.cJS({providers:dt,imports:[i.ez,o.hGG]}),it})();"undefined"!=typeof window&&window},8741:(Xe,Ee,L)=>{"use strict";L.d(Ee,{gz:()=>Ht,m2:()=>et,F0:()=>Zr,yS:()=>zs,Bz:()=>$s,lC:()=>Ta});var i=L(8583),o=L(7716);const s=(()=>{function U(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return U.prototype=Object.create(Error.prototype),U})();var E=L(4402),S=L(5917),Z=L(6215),F=L(9112),z=L(7574),q=L(8071),d=L(1439),oe=L(9193),De=L(2441),st=L(9765),Te=L(7393);function le(U,Y){let N=!1;return arguments.length>=2&&(N=!0),function(ue){return ue.lift(new pt(U,Y,N))}}class pt{constructor(Y,N,ee=!1){this.accumulator=Y,this.seed=N,this.hasSeed=ee}call(Y,N){return N.subscribe(new He(Y,this.accumulator,this.seed,this.hasSeed))}}class He extends Te.L{constructor(Y,N,ee,ue){super(Y),this.accumulator=N,this._seed=ee,this.hasSeed=ue,this.index=0}get seed(){return this._seed}set seed(Y){this.hasSeed=!0,this._seed=Y}_next(Y){if(this.hasSeed)return this._tryNext(Y);this.seed=Y,this.destination.next(Y)}_tryNext(Y){const N=this.index++;let ee;try{ee=this.accumulator(this.seed,Y,N)}catch(ue){this.destination.error(ue)}this.seed=ee,this.destination.next(ee)}}var Vt=L(5345);function dn(U){return function(N){const ee=new Zn(U),ue=N.lift(ee);return ee.caught=ue}}class Zn{constructor(Y){this.selector=Y}call(Y,N){return N.subscribe(new Jn(Y,this.selector,this.caught))}}class Jn extends Vt.Ds{constructor(Y,N,ee){super(Y),this.selector=N,this.caught=ee}error(Y){if(!this.isStopped){let N;try{N=this.selector(Y,this.caught)}catch(ke){return void super.error(ke)}this._unsubscribeAndRecycle();const ee=new Vt.IY(this);this.add(ee);const ue=(0,Vt.ft)(N,ee);ue!==ee&&this.add(ue)}}}var zn=L(5435),J=L(7108);function _t(U){return function(N){return 0===U?(0,oe.c)():N.lift(new Bt(U))}}class Bt{constructor(Y){if(this.total=Y,this.total<0)throw new J.W}call(Y,N){return N.subscribe(new fn(Y,this.total))}}class fn extends Te.L{constructor(Y,N){super(Y),this.total=N,this.ring=new Array,this.count=0}_next(Y){const N=this.ring,ee=this.total,ue=this.count++;N.length0){const ee=this.count>=this.total?this.total:this.count,ue=this.ring;for(let ke=0;keY.lift(new ot(U))}class ot{constructor(Y){this.errorFactory=Y}call(Y,N){return N.subscribe(new Ze(Y,this.errorFactory))}}class Ze extends Te.L{constructor(Y,N){super(Y),this.errorFactory=N,this.hasValue=!1}_next(Y){this.hasValue=!0,this.destination.next(Y)}_complete(){if(this.hasValue)return this.destination.complete();{let Y;try{Y=this.errorFactory()}catch(N){Y=N}this.destination.error(Y)}}}function wt(){return new s}function Dt(U=null){return Y=>Y.lift(new Qt(U))}class Qt{constructor(Y){this.defaultValue=Y}call(Y,N){return N.subscribe(new Ln(Y,this.defaultValue))}}class Ln extends Te.L{constructor(Y,N){super(Y),this.defaultValue=N,this.isEmpty=!0}_next(Y){this.isEmpty=!1,this.destination.next(Y)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Dn=L(4487),$n=L(5257);function mn(U,Y){const N=arguments.length>=2;return ee=>ee.pipe(U?(0,zn.h)((ue,ke)=>U(ue,ke,ee)):Dn.y,(0,$n.q)(1),N?Dt(Y):At(()=>new s))}var _i=L(5319);class ai{constructor(Y){this.callback=Y}call(Y,N){return N.subscribe(new di(Y,this.callback))}}class di extends Te.L{constructor(Y,N){super(Y),this.add(new _i.w(N))}}var $t=L(8002),An=L(3190),Me=L(9761),Et=L(4612),Ae=L(9773),lt=L(8307),Ne=L(1307),Ie=L(3282);class It{constructor(Y,N){this.id=Y,this.url=N}}class ge extends It{constructor(Y,N,ee="imperative",ue=null){super(Y,N),this.navigationTrigger=ee,this.restoredState=ue}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class et extends It{constructor(Y,N,ee){super(Y,N),this.urlAfterRedirects=ee}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Qe extends It{constructor(Y,N,ee){super(Y,N),this.reason=ee}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $e extends It{constructor(Y,N,ee){super(Y,N),this.error=ee}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nn extends It{constructor(Y,N,ee,ue){super(Y,N),this.urlAfterRedirects=ee,this.state=ue}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class St extends It{constructor(Y,N,ee,ue){super(Y,N),this.urlAfterRedirects=ee,this.state=ue}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pe extends It{constructor(Y,N,ee,ue,ke){super(Y,N),this.urlAfterRedirects=ee,this.state=ue,this.shouldActivate=ke}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ye extends It{constructor(Y,N,ee,ue){super(Y,N),this.urlAfterRedirects=ee,this.state=ue}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie extends It{constructor(Y,N,ee,ue){super(Y,N),this.urlAfterRedirects=ee,this.state=ue}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Se{constructor(Y){this.route=Y}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _e{constructor(Y){this.route=Y}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class G{constructor(Y){this.snapshot=Y}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class se{constructor(Y){this.snapshot=Y}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ze{constructor(Y){this.snapshot=Y}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Y){this.snapshot=Y}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pt{constructor(Y,N,ee){this.routerEvent=Y,this.position=N,this.anchor=ee}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ct="primary";class wn{constructor(Y){this.params=Y||{}}has(Y){return Object.prototype.hasOwnProperty.call(this.params,Y)}get(Y){if(this.has(Y)){const N=this.params[Y];return Array.isArray(N)?N[0]:N}return null}getAll(Y){if(this.has(Y)){const N=this.params[Y];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function Nn(U){return new wn(U)}const cn="ngNavigationCancelingError";function _n(U){const Y=Error("NavigationCancelingError: "+U);return Y[cn]=!0,Y}function Wn(U,Y,N){const ee=N.path.split("/");if(ee.length>U.length||"full"===N.pathMatch&&(Y.hasChildren()||ee.lengthee[ke]===ue)}return U===Y}function yr(U){return Array.prototype.concat.apply([],U)}function br(U){return U.length>0?U[U.length-1]:null}function qi(U,Y){for(const N in U)U.hasOwnProperty(N)&&Y(U[N],N)}function xi(U){return(0,o.CqO)(U)?U:(0,o.QGY)(U)?(0,E.D)(Promise.resolve(U)):(0,S.of)(U)}const Er={exact:function be(U,Y,N){if(!hi(U.segments,Y.segments)||!Kn(U.segments,Y.segments,N)||U.numberOfChildren!==Y.numberOfChildren)return!1;for(const ee in Y.children)if(!U.children[ee]||!be(U.children[ee],Y.children[ee],N))return!1;return!0},subset:Kt},Ir={exact:function(U,Y){return Ni(U,Y)},subset:function(U,Y){return Object.keys(Y).length<=Object.keys(U).length&&Object.keys(Y).every(N=>Qr(U[N],Y[N]))},ignored:()=>!0};function dt(U,Y,N){return Er[N.paths](U.root,Y.root,N.matrixParams)&&Ir[N.queryParams](U.queryParams,Y.queryParams)&&!("exact"===N.fragment&&U.fragment!==Y.fragment)}function Kt(U,Y,N){return Tn(U,Y,Y.segments,N)}function Tn(U,Y,N,ee){if(U.segments.length>N.length){const ue=U.segments.slice(0,N.length);return!(!hi(ue,N)||Y.hasChildren()||!Kn(ue,N,ee))}if(U.segments.length===N.length){if(!hi(U.segments,N)||!Kn(U.segments,N,ee))return!1;for(const ue in Y.children)if(!U.children[ue]||!Kt(U.children[ue],Y.children[ue],ee))return!1;return!0}{const ue=N.slice(0,U.segments.length),ke=N.slice(U.segments.length);return!!(hi(U.segments,ue)&&Kn(U.segments,ue,ee)&&U.children[Ct])&&Tn(U.children[Ct],Y,ke,ee)}}function Kn(U,Y,N){return Y.every((ee,ue)=>Ir[N](U[ue].parameters,ee.parameters))}class En{constructor(Y,N,ee){this.root=Y,this.queryParams=N,this.fragment=ee}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nn(this.queryParams)),this._queryParamMap}toString(){return tt.serialize(this)}}class Rn{constructor(Y,N){this.segments=Y,this.children=N,this.parent=null,qi(N,(ee,ue)=>ee.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}}class Ri{constructor(Y,N){this.path=Y,this.parameters=N}get parameterMap(){return this._parameterMap||(this._parameterMap=Nn(this.parameters)),this._parameterMap}toString(){return re(this)}}function hi(U,Y){return U.length===Y.length&&U.every((N,ee)=>N.path===Y[ee].path)}class On{}class xe{parse(Y){const N=new ui(Y);return new En(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize(Y){const N=`/${Fe(Y.root,!0)}`,ee=function(U){const Y=Object.keys(U).map(N=>{const ee=U[N];return Array.isArray(ee)?ee.map(ue=>`${xt(N)}=${xt(ue)}`).join("&"):`${xt(N)}=${xt(ee)}`}).filter(N=>!!N);return Y.length?`?${Y.join("&")}`:""}(Y.queryParams);var U;return`${N}${ee}${"string"==typeof Y.fragment?`#${U=Y.fragment,encodeURI(U)}`:""}`}}const tt=new xe;function fe(U){return U.segments.map(Y=>re(Y)).join("/")}function Fe(U,Y){if(!U.hasChildren())return fe(U);if(Y){const N=U.children[Ct]?Fe(U.children[Ct],!1):"",ee=[];return qi(U.children,(ue,ke)=>{ke!==Ct&&ee.push(`${ke}:${Fe(ue,!1)}`)}),ee.length>0?`${N}(${ee.join("//")})`:N}{const N=function(U,Y){let N=[];return qi(U.children,(ee,ue)=>{ue===Ct&&(N=N.concat(Y(ee,ue)))}),qi(U.children,(ee,ue)=>{ue!==Ct&&(N=N.concat(Y(ee,ue)))}),N}(U,(ee,ue)=>ue===Ct?[Fe(U.children[Ct],!1)]:[`${ue}:${Fe(ee,!1)}`]);return 1===Object.keys(U.children).length&&null!=U.children[Ct]?`${fe(U)}/${N[0]}`:`${fe(U)}/(${N.join("//")})`}}function ct(U){return encodeURIComponent(U).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(U){return ct(U).replace(/%3B/gi,";")}function In(U){return ct(U).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yn(U){return decodeURIComponent(U)}function it(U){return yn(U.replace(/\+/g,"%20"))}function re(U){return`${In(U.path)}${function(U){return Object.keys(U).map(Y=>`;${In(Y)}=${In(U[Y])}`).join("")}(U.parameters)}`}const Ce=/^[^\/()?;=#]+/;function ht(U){const Y=U.match(Ce);return Y?Y[0]:""}const zt=/^[^=?&#]+/,tn=/^[^?&#]+/;class ui{constructor(Y){this.url=Y,this.remaining=Y}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}parseQueryParams(){const Y={};if(this.consumeOptional("?"))do{this.parseQueryParam(Y)}while(this.consumeOptional("&"));return Y}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Y=[];for(this.peekStartsWith("(")||Y.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Y.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let ee={};return this.peekStartsWith("(")&&(ee=this.parseParens(!1)),(Y.length>0||Object.keys(N).length>0)&&(ee[Ct]=new Rn(Y,N)),ee}parseSegment(){const Y=ht(this.remaining);if(""===Y&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Y),new Ri(yn(Y),this.parseMatrixParams())}parseMatrixParams(){const Y={};for(;this.consumeOptional(";");)this.parseParam(Y);return Y}parseParam(Y){const N=ht(this.remaining);if(!N)return;this.capture(N);let ee="";if(this.consumeOptional("=")){const ue=ht(this.remaining);ue&&(ee=ue,this.capture(ee))}Y[yn(N)]=yn(ee)}parseQueryParam(Y){const N=function(U){const Y=U.match(zt);return Y?Y[0]:""}(this.remaining);if(!N)return;this.capture(N);let ee="";if(this.consumeOptional("=")){const Ke=function(U){const Y=U.match(tn);return Y?Y[0]:""}(this.remaining);Ke&&(ee=Ke,this.capture(ee))}const ue=it(N),ke=it(ee);if(Y.hasOwnProperty(ue)){let Ke=Y[ue];Array.isArray(Ke)||(Ke=[Ke],Y[ue]=Ke),Ke.push(ke)}else Y[ue]=ke}parseParens(Y){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ee=ht(this.remaining),ue=this.remaining[ee.length];if("/"!==ue&&")"!==ue&&";"!==ue)throw new Error(`Cannot parse url '${this.url}'`);let ke;ee.indexOf(":")>-1?(ke=ee.substr(0,ee.indexOf(":")),this.capture(ke),this.capture(":")):Y&&(ke=Ct);const Ke=this.parseChildren();N[ke]=1===Object.keys(Ke).length?Ke[Ct]:new Rn([],Ke),this.consumeOptional("//")}return N}peekStartsWith(Y){return this.remaining.startsWith(Y)}consumeOptional(Y){return!!this.peekStartsWith(Y)&&(this.remaining=this.remaining.substring(Y.length),!0)}capture(Y){if(!this.consumeOptional(Y))throw new Error(`Expected "${Y}".`)}}class Pn{constructor(Y){this._root=Y}get root(){return this._root.value}parent(Y){const N=this.pathFromRoot(Y);return N.length>1?N[N.length-2]:null}children(Y){const N=ur(Y,this._root);return N?N.children.map(ee=>ee.value):[]}firstChild(Y){const N=ur(Y,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings(Y){const N=Sr(Y,this._root);return N.length<2?[]:N[N.length-2].children.map(ue=>ue.value).filter(ue=>ue!==Y)}pathFromRoot(Y){return Sr(Y,this._root).map(N=>N.value)}}function ur(U,Y){if(U===Y.value)return Y;for(const N of Y.children){const ee=ur(U,N);if(ee)return ee}return null}function Sr(U,Y){if(U===Y.value)return[Y];for(const N of Y.children){const ee=Sr(U,N);if(ee.length)return ee.unshift(Y),ee}return[]}class Or{constructor(Y,N){this.value=Y,this.children=N}toString(){return`TreeNode(${this.value})`}}function Ve(U){const Y={};return U&&U.children.forEach(N=>Y[N.value.outlet]=N),Y}class Ue extends Pn{constructor(Y,N){super(Y),this.snapshot=N,Yn(this,Y)}toString(){return this.snapshot.toString()}}function Ge(U,Y){const N=function(U,Y){const Ke=new Zt([],{},{},"",{},Ct,Y,null,U.root,-1,{});return new un("",new Or(Ke,[]))}(U,Y),ee=new Z.X([new Ri("",{})]),ue=new Z.X({}),ke=new Z.X({}),Ke=new Z.X({}),ft=new Z.X(""),Gt=new Ht(ee,ue,Ke,ft,ke,Ct,Y,N.root);return Gt.snapshot=N.root,new Ue(new Or(Gt,[]),N)}class Ht{constructor(Y,N,ee,ue,ke,Ke,ft,Gt){this.url=Y,this.params=N,this.queryParams=ee,this.fragment=ue,this.data=ke,this.outlet=Ke,this.component=ft,this._futureSnapshot=Gt}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((0,$t.U)(Y=>Nn(Y)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$t.U)(Y=>Nn(Y)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pn(U,Y="emptyOnly"){const N=U.pathFromRoot;let ee=0;if("always"!==Y)for(ee=N.length-1;ee>=1;){const ue=N[ee],ke=N[ee-1];if(ue.routeConfig&&""===ue.routeConfig.path)ee--;else{if(ke.component)break;ee--}}return function(U){return U.reduce((Y,N)=>({params:Object.assign(Object.assign({},Y.params),N.params),data:Object.assign(Object.assign({},Y.data),N.data),resolve:Object.assign(Object.assign({},Y.resolve),N._resolvedData)}),{params:{},data:{},resolve:{}})}(N.slice(ee))}class Zt{constructor(Y,N,ee,ue,ke,Ke,ft,Gt,Un,or,mi){this.url=Y,this.params=N,this.queryParams=ee,this.fragment=ue,this.data=ke,this.outlet=Ke,this.component=ft,this.routeConfig=Gt,this._urlSegment=Un,this._lastPathIndex=or,this._resolve=mi}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=Nn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ee=>ee.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class un extends Pn{constructor(Y,N){super(N),this.url=Y,Yn(this,N)}toString(){return Fn(this._root)}}function Yn(U,Y){Y.value._routerState=U,Y.children.forEach(N=>Yn(U,N))}function Fn(U){const Y=U.children.length>0?` { ${U.children.map(Fn).join(", ")} } `:"";return`${U.value}${Y}`}function wi(U){if(U.snapshot){const Y=U.snapshot,N=U._futureSnapshot;U.snapshot=N,Ni(Y.queryParams,N.queryParams)||U.queryParams.next(N.queryParams),Y.fragment!==N.fragment&&U.fragment.next(N.fragment),Ni(Y.params,N.params)||U.params.next(N.params),function(U,Y){if(U.length!==Y.length)return!1;for(let N=0;NNi(N.parameters,Y[ee].parameters))}(U.url,Y.url);return N&&!(!U.parent!=!Y.parent)&&(!U.parent||ti(U.parent,Y.parent))}function Ji(U,Y,N){if(N&&U.shouldReuseRoute(Y.value,N.value.snapshot)){const ee=N.value;ee._futureSnapshot=Y.value;const ue=function(U,Y,N){return Y.children.map(ee=>{for(const ue of N.children)if(U.shouldReuseRoute(ee.value,ue.value.snapshot))return Ji(U,ee,ue);return Ji(U,ee)})}(U,Y,N);return new Or(ee,ue)}{if(U.shouldAttach(Y.value)){const ke=U.retrieve(Y.value);if(null!==ke){const Ke=ke.route;return Hi(Y,Ke),Ke}}const ee=function(U){return new Ht(new Z.X(U.url),new Z.X(U.params),new Z.X(U.queryParams),new Z.X(U.fragment),new Z.X(U.data),U.outlet,U.component,U)}(Y.value),ue=Y.children.map(ke=>Ji(U,ke));return new Or(ee,ue)}}function Hi(U,Y){if(U.value.routeConfig!==Y.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(U.children.length!==Y.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");Y.value._futureSnapshot=U.value;for(let N=0;N{ke[ft]=Array.isArray(Ke)?Ke.map(Gt=>`${Gt}`):`${Ke}`}),new En(N.root===U?Y:er(N.root,U,Y),ke,ue)}function er(U,Y,N){const ee={};return qi(U.children,(ue,ke)=>{ee[ke]=ue===Y?N:er(ue,Y,N)}),new Rn(U.segments,ee)}class Ar{constructor(Y,N,ee){if(this.isAbsolute=Y,this.numberOfDoubleDots=N,this.commands=ee,Y&&ee.length>0&&cr(ee[0]))throw new Error("Root segment cannot have matrix parameters");const ue=ee.find(Ei);if(ue&&ue!==br(ee))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wr{constructor(Y,N,ee){this.segmentGroup=Y,this.processChildren=N,this.index=ee}}function jr(U,Y,N){if(U||(U=new Rn([],{})),0===U.segments.length&&U.hasChildren())return Ur(U,Y,N);const ee=function(U,Y,N){let ee=0,ue=Y;const ke={match:!1,pathIndex:0,commandIndex:0};for(;ue=N.length)return ke;const Ke=U.segments[ue],ft=N[ee];if(Ei(ft))break;const Gt=`${ft}`,Un=ee0&&void 0===Gt)break;if(Gt&&Un&&"object"==typeof Un&&void 0===Un.outlets){if(!$r(Gt,Un,Ke))return ke;ee+=2}else{if(!$r(Gt,{},Ke))return ke;ee++}ue++}return{match:!0,pathIndex:ue,commandIndex:ee}}(U,Y,N),ue=N.slice(ee.commandIndex);if(ee.match&&ee.pathIndex{"string"==typeof ke&&(ke=[ke]),null!==ke&&(ue[Ke]=jr(U.children[Ke],Y,ke))}),qi(U.children,(ke,Ke)=>{void 0===ee[Ke]&&(ue[Ke]=ke)}),new Rn(U.segments,ue)}}function xr(U,Y,N){const ee=U.segments.slice(0,Y);let ue=0;for(;ue{"string"==typeof N&&(N=[N]),null!==N&&(Y[ee]=xr(new Rn([],{}),0,N))}),Y}function zr(U){const Y={};return qi(U,(N,ee)=>Y[ee]=`${N}`),Y}function $r(U,Y,N){return U==N.path&&Ni(Y,N.parameters)}class xs{constructor(Y,N,ee,ue){this.routeReuseStrategy=Y,this.futureState=N,this.currState=ee,this.forwardEvent=ue}activate(Y){const N=this.futureState._root,ee=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,ee,Y),wi(this.futureState.root),this.activateChildRoutes(N,ee,Y)}deactivateChildRoutes(Y,N,ee){const ue=Ve(N);Y.children.forEach(ke=>{const Ke=ke.value.outlet;this.deactivateRoutes(ke,ue[Ke],ee),delete ue[Ke]}),qi(ue,(ke,Ke)=>{this.deactivateRouteAndItsChildren(ke,ee)})}deactivateRoutes(Y,N,ee){const ue=Y.value,ke=N?N.value:null;if(ue===ke)if(ue.component){const Ke=ee.getContext(ue.outlet);Ke&&this.deactivateChildRoutes(Y,N,Ke.children)}else this.deactivateChildRoutes(Y,N,ee);else ke&&this.deactivateRouteAndItsChildren(N,ee)}deactivateRouteAndItsChildren(Y,N){this.routeReuseStrategy.shouldDetach(Y.value.snapshot)?this.detachAndStoreRouteSubtree(Y,N):this.deactivateRouteAndOutlet(Y,N)}detachAndStoreRouteSubtree(Y,N){const ee=N.getContext(Y.value.outlet);if(ee&&ee.outlet){const ue=ee.outlet.detach(),ke=ee.children.onOutletDeactivated();this.routeReuseStrategy.store(Y.value.snapshot,{componentRef:ue,route:Y,contexts:ke})}}deactivateRouteAndOutlet(Y,N){const ee=N.getContext(Y.value.outlet),ue=ee&&Y.value.component?ee.children:N,ke=Ve(Y);for(const Ke of Object.keys(ke))this.deactivateRouteAndItsChildren(ke[Ke],ue);ee&&ee.outlet&&(ee.outlet.deactivate(),ee.children.onOutletDeactivated(),ee.attachRef=null,ee.resolver=null,ee.route=null)}activateChildRoutes(Y,N,ee){const ue=Ve(N);Y.children.forEach(ke=>{this.activateRoutes(ke,ue[ke.value.outlet],ee),this.forwardEvent(new vt(ke.value.snapshot))}),Y.children.length&&this.forwardEvent(new se(Y.value.snapshot))}activateRoutes(Y,N,ee){const ue=Y.value,ke=N?N.value:null;if(wi(ue),ue===ke)if(ue.component){const Ke=ee.getOrCreateContext(ue.outlet);this.activateChildRoutes(Y,N,Ke.children)}else this.activateChildRoutes(Y,N,ee);else if(ue.component){const Ke=ee.getOrCreateContext(ue.outlet);if(this.routeReuseStrategy.shouldAttach(ue.snapshot)){const ft=this.routeReuseStrategy.retrieve(ue.snapshot);this.routeReuseStrategy.store(ue.snapshot,null),Ke.children.onOutletReAttached(ft.contexts),Ke.attachRef=ft.componentRef,Ke.route=ft.route.value,Ke.outlet&&Ke.outlet.attach(ft.componentRef,ft.route.value),ns(ft.route)}else{const ft=function(U){for(let Y=U.parent;Y;Y=Y.parent){const N=Y.routeConfig;if(N&&N._loadedConfig)return N._loadedConfig;if(N&&N.component)return null}return null}(ue.snapshot),Gt=ft?ft.module.componentFactoryResolver:null;Ke.attachRef=null,Ke.route=ue,Ke.resolver=Gt,Ke.outlet&&Ke.outlet.activateWith(ue,Gt),this.activateChildRoutes(Y,null,Ke.children)}}else this.activateChildRoutes(Y,null,ee)}}function ns(U){wi(U.value),U.children.forEach(ns)}class Os{constructor(Y,N){this.routes=Y,this.module=N}}function Br(U){return"function"==typeof U}function dr(U){return U instanceof En}const Mr=Symbol("INITIAL_VALUE");function v(){return(0,An.w)(U=>(0,F.aj)(U.map(Y=>Y.pipe((0,$n.q)(1),(0,Me.O)(Mr)))).pipe(le((Y,N)=>{let ee=!1;return N.reduce((ue,ke,Ke)=>ue!==Mr?ue:(ke===Mr&&(ee=!0),ee||!1!==ke&&Ke!==N.length-1&&!dr(ke)?ue:ke),Y)},Mr),(0,zn.h)(Y=>Y!==Mr),(0,$t.U)(Y=>dr(Y)?Y:!0===Y),(0,$n.q)(1)))}let g=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275cmp=o.Xpm({type:U,selectors:[["ng-component"]],decls:1,vars:0,template:function(N,ee){1&N&&o._UZ(0,"router-outlet")},directives:function(){return[Ta]},encapsulation:2}),U})();function x(U,Y=""){for(let N=0;NT(ee)===Y);return N.push(...U.filter(ee=>T(ee)!==Y)),N}const pe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Be(U,Y,N){var ee;if(""===Y.path)return"full"===Y.pathMatch&&(U.hasChildren()||N.length>0)?Object.assign({},pe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const ke=(Y.matcher||Wn)(N,U,Y);if(!ke)return Object.assign({},pe);const Ke={};qi(ke.posParams,(Gt,Un)=>{Ke[Un]=Gt.path});const ft=ke.consumed.length>0?Object.assign(Object.assign({},Ke),ke.consumed[ke.consumed.length-1].parameters):Ke;return{matched:!0,consumedSegments:ke.consumed,lastChild:ke.consumed.length,parameters:ft,positionalParamSegments:null!==(ee=ke.posParams)&&void 0!==ee?ee:{}}}function Mt(U,Y,N,ee,ue="corrected"){if(N.length>0&&function(U,Y,N){return N.some(ee=>oi(U,Y,ee)&&T(ee)!==Ct)}(U,N,ee)){const Ke=new Rn(Y,function(U,Y,N,ee){const ue={};ue[Ct]=ee,ee._sourceSegment=U,ee._segmentIndexShift=Y.length;for(const ke of N)if(""===ke.path&&T(ke)!==Ct){const Ke=new Rn([],{});Ke._sourceSegment=U,Ke._segmentIndexShift=Y.length,ue[T(ke)]=Ke}return ue}(U,Y,ee,new Rn(N,U.children)));return Ke._sourceSegment=U,Ke._segmentIndexShift=Y.length,{segmentGroup:Ke,slicedSegments:[]}}if(0===N.length&&function(U,Y,N){return N.some(ee=>oi(U,Y,ee))}(U,N,ee)){const Ke=new Rn(U.segments,function(U,Y,N,ee,ue,ke){const Ke={};for(const ft of ee)if(oi(U,N,ft)&&!ue[T(ft)]){const Gt=new Rn([],{});Gt._sourceSegment=U,Gt._segmentIndexShift="legacy"===ke?U.segments.length:Y.length,Ke[T(ft)]=Gt}return Object.assign(Object.assign({},ue),Ke)}(U,Y,N,ee,U.children,ue));return Ke._sourceSegment=U,Ke._segmentIndexShift=Y.length,{segmentGroup:Ke,slicedSegments:N}}const ke=new Rn(U.segments,U.children);return ke._sourceSegment=U,ke._segmentIndexShift=Y.length,{segmentGroup:ke,slicedSegments:N}}function oi(U,Y,N){return(!(U.hasChildren()||Y.length>0)||"full"!==N.pathMatch)&&""===N.path}function Mi(U,Y,N,ee){return!!(T(U)===ee||ee!==Ct&&oi(Y,N,U))&&("**"===U.path||Be(Y,U,N).matched)}function ii(U,Y,N){return 0===Y.length&&!U.children[N]}class Cr{constructor(Y){this.segmentGroup=Y||null}}class es{constructor(Y){this.urlTree=Y}}function Gn(U){return new z.y(Y=>Y.error(new Cr(U)))}function Qn(U){return new z.y(Y=>Y.error(new es(U)))}function Qs(U){return new z.y(Y=>Y.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${U}'`)))}class Is{constructor(Y,N,ee,ue,ke){this.configLoader=N,this.urlSerializer=ee,this.urlTree=ue,this.config=ke,this.allowRedirects=!0,this.ngModule=Y.get(o.h0i)}apply(){const Y=Mt(this.urlTree.root,[],[],this.config).segmentGroup,N=new Rn(Y.segments,Y.children);return this.expandSegmentGroup(this.ngModule,this.config,N,Ct).pipe((0,$t.U)(ke=>this.createUrlTree(ts(ke),this.urlTree.queryParams,this.urlTree.fragment))).pipe(dn(ke=>{if(ke instanceof es)return this.allowRedirects=!1,this.match(ke.urlTree);throw ke instanceof Cr?this.noMatchError(ke):ke}))}match(Y){return this.expandSegmentGroup(this.ngModule,this.config,Y.root,Ct).pipe((0,$t.U)(ue=>this.createUrlTree(ts(ue),Y.queryParams,Y.fragment))).pipe(dn(ue=>{throw ue instanceof Cr?this.noMatchError(ue):ue}))}noMatchError(Y){return new Error(`Cannot match any routes. URL Segment: '${Y.segmentGroup}'`)}createUrlTree(Y,N,ee){const ue=Y.segments.length>0?new Rn([],{[Ct]:Y}):Y;return new En(ue,N,ee)}expandSegmentGroup(Y,N,ee,ue){return 0===ee.segments.length&&ee.hasChildren()?this.expandChildren(Y,N,ee).pipe((0,$t.U)(ke=>new Rn([],ke))):this.expandSegment(Y,ee,N,ee.segments,ue,!0)}expandChildren(Y,N,ee){const ue=[];for(const ke of Object.keys(ee.children))"primary"===ke?ue.unshift(ke):ue.push(ke);return(0,E.D)(ue).pipe((0,Et.b)(ke=>{const Ke=ee.children[ke],ft=V(N,ke);return this.expandSegmentGroup(Y,ft,Ke,ke).pipe((0,$t.U)(Gt=>({segment:Gt,outlet:ke})))}),le((ke,Ke)=>(ke[Ke.outlet]=Ke.segment,ke),{}),function(U,Y){const N=arguments.length>=2;return ee=>ee.pipe(U?(0,zn.h)((ue,ke)=>U(ue,ke,ee)):Dn.y,_t(1),N?Dt(Y):At(()=>new s))}())}expandSegment(Y,N,ee,ue,ke,Ke){return(0,E.D)(ee).pipe((0,Et.b)(ft=>this.expandSegmentAgainstRoute(Y,N,ee,ft,ue,ke,Ke).pipe(dn(Un=>{if(Un instanceof Cr)return(0,S.of)(null);throw Un}))),mn(ft=>!!ft),dn((ft,Gt)=>{if(ft instanceof s||"EmptyError"===ft.name){if(ii(N,ue,ke))return(0,S.of)(new Rn([],{}));throw new Cr(N)}throw ft}))}expandSegmentAgainstRoute(Y,N,ee,ue,ke,Ke,ft){return Mi(ue,N,ke,Ke)?void 0===ue.redirectTo?this.matchSegmentAgainstRoute(Y,N,ue,ke,Ke):ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Y,N,ee,ue,ke,Ke):Gn(N):Gn(N)}expandSegmentAgainstRouteUsingRedirect(Y,N,ee,ue,ke,Ke){return"**"===ue.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Y,ee,ue,Ke):this.expandRegularSegmentAgainstRouteUsingRedirect(Y,N,ee,ue,ke,Ke)}expandWildCardWithParamsAgainstRouteUsingRedirect(Y,N,ee,ue){const ke=this.applyRedirectCommands([],ee.redirectTo,{});return ee.redirectTo.startsWith("/")?Qn(ke):this.lineralizeSegments(ee,ke).pipe((0,Ae.zg)(Ke=>{const ft=new Rn(Ke,{});return this.expandSegment(Y,ft,N,Ke,ue,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Y,N,ee,ue,ke,Ke){const{matched:ft,consumedSegments:Gt,lastChild:Un,positionalParamSegments:or}=Be(N,ue,ke);if(!ft)return Gn(N);const mi=this.applyRedirectCommands(Gt,ue.redirectTo,or);return ue.redirectTo.startsWith("/")?Qn(mi):this.lineralizeSegments(ue,mi).pipe((0,Ae.zg)(Tr=>this.expandSegment(Y,N,ee,Tr.concat(ke.slice(Un)),Ke,!1)))}matchSegmentAgainstRoute(Y,N,ee,ue,ke){if("**"===ee.path)return ee.loadChildren?(ee._loadedConfig?(0,S.of)(ee._loadedConfig):this.configLoader.load(Y.injector,ee)).pipe((0,$t.U)(Tr=>(ee._loadedConfig=Tr,new Rn(ue,{})))):(0,S.of)(new Rn(ue,{}));const{matched:Ke,consumedSegments:ft,lastChild:Gt}=Be(N,ee,ue);if(!Ke)return Gn(N);const Un=ue.slice(Gt);return this.getChildConfig(Y,ee,ue).pipe((0,Ae.zg)(mi=>{const Tr=mi.module,zi=mi.routes,{segmentGroup:Gr,slicedSegments:po}=Mt(N,ft,Un,zi),Ls=new Rn(Gr.segments,Gr.children);if(0===po.length&&Ls.hasChildren())return this.expandChildren(Tr,zi,Ls).pipe((0,$t.U)(cl=>new Rn(ft,cl)));if(0===zi.length&&0===po.length)return(0,S.of)(new Rn(ft,{}));const la=T(ee)===ke;return this.expandSegment(Tr,Ls,zi,po,la?Ct:ke,!0).pipe((0,$t.U)(Co=>new Rn(ft.concat(Co.segments),Co.children)))}))}getChildConfig(Y,N,ee){return N.children?(0,S.of)(new Os(N.children,Y)):N.loadChildren?void 0!==N._loadedConfig?(0,S.of)(N._loadedConfig):this.runCanLoadGuards(Y.injector,N,ee).pipe((0,Ae.zg)(ue=>{return ue?this.configLoader.load(Y.injector,N).pipe((0,$t.U)(ke=>(N._loadedConfig=ke,ke))):(U=N,new z.y(Y=>Y.error(_n(`Cannot load children because the guard of the route "path: '${U.path}'" returned false`))));var U})):(0,S.of)(new Os([],Y))}runCanLoadGuards(Y,N,ee){const ue=N.canLoad;if(!ue||0===ue.length)return(0,S.of)(!0);const ke=ue.map(Ke=>{const ft=Y.get(Ke);let Gt;if((U=ft)&&Br(U.canLoad))Gt=ft.canLoad(N,ee);else{if(!Br(ft))throw new Error("Invalid CanLoad guard");Gt=ft(N,ee)}var U;return xi(Gt)});return(0,S.of)(ke).pipe(v(),(0,lt.b)(Ke=>{if(!dr(Ke))return;const ft=_n(`Redirecting to "${this.urlSerializer.serialize(Ke)}"`);throw ft.url=Ke,ft}),(0,$t.U)(Ke=>!0===Ke))}lineralizeSegments(Y,N){let ee=[],ue=N.root;for(;;){if(ee=ee.concat(ue.segments),0===ue.numberOfChildren)return(0,S.of)(ee);if(ue.numberOfChildren>1||!ue.children[Ct])return Qs(Y.redirectTo);ue=ue.children[Ct]}}applyRedirectCommands(Y,N,ee){return this.applyRedirectCreatreUrlTree(N,this.urlSerializer.parse(N),Y,ee)}applyRedirectCreatreUrlTree(Y,N,ee,ue){const ke=this.createSegmentGroup(Y,N.root,ee,ue);return new En(ke,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams(Y,N){const ee={};return qi(Y,(ue,ke)=>{if("string"==typeof ue&&ue.startsWith(":")){const ft=ue.substring(1);ee[ke]=N[ft]}else ee[ke]=ue}),ee}createSegmentGroup(Y,N,ee,ue){const ke=this.createSegments(Y,N.segments,ee,ue);let Ke={};return qi(N.children,(ft,Gt)=>{Ke[Gt]=this.createSegmentGroup(Y,ft,ee,ue)}),new Rn(ke,Ke)}createSegments(Y,N,ee,ue){return N.map(ke=>ke.path.startsWith(":")?this.findPosParam(Y,ke,ue):this.findOrReturn(ke,ee))}findPosParam(Y,N,ee){const ue=ee[N.path.substring(1)];if(!ue)throw new Error(`Cannot redirect to '${Y}'. Cannot find '${N.path}'.`);return ue}findOrReturn(Y,N){let ee=0;for(const ue of N){if(ue.path===Y.path)return N.splice(ee),ue;ee++}return Y}}function ts(U){const Y={};for(const ee of Object.keys(U.children)){const ke=ts(U.children[ee]);(ke.segments.length>0||ke.hasChildren())&&(Y[ee]=ke)}return function(U){if(1===U.numberOfChildren&&U.children[Ct]){const Y=U.children[Ct];return new Rn(U.segments.concat(Y.segments),Y.children)}return U}(new Rn(U.segments,Y))}class ki{constructor(Y){this.path=Y,this.route=this.path[this.path.length-1]}}class cs{constructor(Y,N){this.component=Y,this.route=N}}function vi(U,Y,N){const ee=U._root;return Ms(ee,Y?Y._root:null,N,[ee.value])}function is(U,Y,N){const ee=function(U){if(!U)return null;for(let Y=U.parent;Y;Y=Y.parent){const N=Y.routeConfig;if(N&&N._loadedConfig)return N._loadedConfig}return null}(Y);return(ee?ee.module.injector:N).get(U)}function Ms(U,Y,N,ee,ue={canDeactivateChecks:[],canActivateChecks:[]}){const ke=Ve(Y);return U.children.forEach(Ke=>{(function(U,Y,N,ee,ue={canDeactivateChecks:[],canActivateChecks:[]}){const ke=U.value,Ke=Y?Y.value:null,ft=N?N.getContext(U.value.outlet):null;if(Ke&&ke.routeConfig===Ke.routeConfig){const Gt=function(U,Y,N){if("function"==typeof N)return N(U,Y);switch(N){case"pathParamsChange":return!hi(U.url,Y.url);case"pathParamsOrQueryParamsChange":return!hi(U.url,Y.url)||!Ni(U.queryParams,Y.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ti(U,Y)||!Ni(U.queryParams,Y.queryParams);default:return!ti(U,Y)}}(Ke,ke,ke.routeConfig.runGuardsAndResolvers);Gt?ue.canActivateChecks.push(new ki(ee)):(ke.data=Ke.data,ke._resolvedData=Ke._resolvedData),Ms(U,Y,ke.component?ft?ft.children:null:N,ee,ue),Gt&&ft&&ft.outlet&&ft.outlet.isActivated&&ue.canDeactivateChecks.push(new cs(ft.outlet.component,Ke))}else Ke&&Oo(Y,ft,ue),ue.canActivateChecks.push(new ki(ee)),Ms(U,null,ke.component?ft?ft.children:null:N,ee,ue)})(Ke,ke[Ke.value.outlet],N,ee.concat([Ke.value]),ue),delete ke[Ke.value.outlet]}),qi(ke,(Ke,ft)=>Oo(Ke,N.getContext(ft),ue)),ue}function Oo(U,Y,N){const ee=Ve(U),ue=U.value;qi(ee,(ke,Ke)=>{Oo(ke,ue.component?Y?Y.children.getContext(Ke):null:Y,N)}),N.canDeactivateChecks.push(new cs(ue.component&&Y&&Y.outlet&&Y.outlet.isActivated?Y.outlet.component:null,ue))}class bo{}function Fs(U){return new z.y(Y=>Y.error(U))}class ro{constructor(Y,N,ee,ue,ke,Ke){this.rootComponentType=Y,this.config=N,this.urlTree=ee,this.url=ue,this.paramsInheritanceStrategy=ke,this.relativeLinkResolution=Ke}recognize(){const Y=Mt(this.urlTree.root,[],[],this.config.filter(Ke=>void 0===Ke.redirectTo),this.relativeLinkResolution).segmentGroup,N=this.processSegmentGroup(this.config,Y,Ct);if(null===N)return null;const ee=new Zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ct,this.rootComponentType,null,this.urlTree.root,-1,{}),ue=new Or(ee,N),ke=new un(this.url,ue);return this.inheritParamsAndData(ke._root),ke}inheritParamsAndData(Y){const N=Y.value,ee=pn(N,this.paramsInheritanceStrategy);N.params=Object.freeze(ee.params),N.data=Object.freeze(ee.data),Y.children.forEach(ue=>this.inheritParamsAndData(ue))}processSegmentGroup(Y,N,ee){return 0===N.segments.length&&N.hasChildren()?this.processChildren(Y,N):this.processSegment(Y,N,N.segments,ee)}processChildren(Y,N){const ee=[];for(const ke of Object.keys(N.children)){const Ke=N.children[ke],ft=V(Y,ke),Gt=this.processSegmentGroup(ft,Ke,ke);if(null===Gt)return null;ee.push(...Gt)}const ue=ta(ee);return ue.sort((Y,N)=>Y.value.outlet===Ct?-1:N.value.outlet===Ct?1:Y.value.outlet.localeCompare(N.value.outlet)),ue}processSegment(Y,N,ee,ue){for(const ke of Y){const Ke=this.processSegmentAgainstRoute(ke,N,ee,ue);if(null!==Ke)return Ke}return ii(N,ee,ue)?[]:null}processSegmentAgainstRoute(Y,N,ee,ue){if(Y.redirectTo||!Mi(Y,N,ee,ue))return null;let ke,Ke=[],ft=[];if("**"===Y.path){const zi=ee.length>0?br(ee).parameters:{};ke=new Zt(ee,zi,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ho(Y),T(Y),Y.component,Y,ys(N),Pi(N)+ee.length,qs(Y))}else{const zi=Be(N,Y,ee);if(!zi.matched)return null;Ke=zi.consumedSegments,ft=ee.slice(zi.lastChild),ke=new Zt(Ke,zi.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ho(Y),T(Y),Y.component,Y,ys(N),Pi(N)+Ke.length,qs(Y))}const Gt=(U=Y).children?U.children:U.loadChildren?U._loadedConfig.routes:[],{segmentGroup:Un,slicedSegments:or}=Mt(N,Ke,ft,Gt.filter(zi=>void 0===zi.redirectTo),this.relativeLinkResolution);var U;if(0===or.length&&Un.hasChildren()){const zi=this.processChildren(Gt,Un);return null===zi?null:[new Or(ke,zi)]}if(0===Gt.length&&0===or.length)return[new Or(ke,[])];const mi=T(Y)===ue,Tr=this.processSegment(Gt,Un,or,mi?Ct:ue);return null===Tr?null:[new Or(ke,Tr)]}}function Vo(U){const Y=U.value.routeConfig;return Y&&""===Y.path&&void 0===Y.redirectTo}function ta(U){const Y=[],N=new Set;for(const ee of U){if(!Vo(ee)){Y.push(ee);continue}const ue=Y.find(ke=>ee.value.routeConfig===ke.value.routeConfig);void 0!==ue?(ue.children.push(...ee.children),N.add(ue)):Y.push(ee)}for(const ee of N){const ue=ta(ee.children);Y.push(new Or(ee.value,ue))}return Y.filter(ee=>!N.has(ee))}function ys(U){let Y=U;for(;Y._sourceSegment;)Y=Y._sourceSegment;return Y}function Pi(U){let Y=U,N=Y._segmentIndexShift?Y._segmentIndexShift:0;for(;Y._sourceSegment;)Y=Y._sourceSegment,N+=Y._segmentIndexShift?Y._segmentIndexShift:0;return N-1}function ho(U){return U.data||{}}function qs(U){return U.resolve||{}}function Ut(U){return(0,An.w)(Y=>{const N=U(Y);return N?(0,E.D)(N).pipe((0,$t.U)(()=>Y)):(0,S.of)(Y)})}class Xn extends class{shouldDetach(Y){return!1}store(Y,N){}shouldAttach(Y){return!1}retrieve(Y){return null}shouldReuseRoute(Y,N){return Y.routeConfig===N.routeConfig}}{}const Vn=new o.OlP("ROUTES");class yi{constructor(Y,N,ee,ue){this.loader=Y,this.compiler=N,this.onLoadStartListener=ee,this.onLoadEndListener=ue}load(Y,N){if(N._loader$)return N._loader$;this.onLoadStartListener&&this.onLoadStartListener(N);const ue=this.loadModuleFactory(N.loadChildren).pipe((0,$t.U)(ke=>{this.onLoadEndListener&&this.onLoadEndListener(N);const Ke=ke.create(Y);return new Os(yr(Ke.injector.get(Vn,void 0,o.XFs.Self|o.XFs.Optional)).map(w),Ke)}),dn(ke=>{throw N._loader$=void 0,ke}));return N._loader$=new De.c(ue,()=>new st.xQ).pipe((0,Ne.x)()),N._loader$}loadModuleFactory(Y){return"string"==typeof Y?(0,E.D)(this.loader.load(Y)):xi(Y()).pipe((0,Ae.zg)(N=>N instanceof o.YKP?(0,S.of)(N):(0,E.D)(this.compiler.compileModuleAsync(N))))}}class pi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gi,this.attachRef=null}}class gi{constructor(){this.contexts=new Map}onChildOutletCreated(Y,N){const ee=this.getOrCreateContext(Y);ee.outlet=N,this.contexts.set(Y,ee)}onChildOutletDestroyed(Y){const N=this.getContext(Y);N&&(N.outlet=null,N.attachRef=null)}onOutletDeactivated(){const Y=this.contexts;return this.contexts=new Map,Y}onOutletReAttached(Y){this.contexts=Y}getOrCreateContext(Y){let N=this.getContext(Y);return N||(N=new pi,this.contexts.set(Y,N)),N}getContext(Y){return this.contexts.get(Y)||null}}class ei{shouldProcessUrl(Y){return!0}extract(Y){return Y}merge(Y,N){return Y}}function sr(U){throw U}function ds(U,Y,N){return Y.parse("/")}function rs(U,Y){return(0,S.of)(null)}const Rs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ss={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zr=(()=>{class U{constructor(N,ee,ue,ke,Ke,ft,Gt,Un){this.rootComponentType=N,this.urlSerializer=ee,this.rootContexts=ue,this.location=ke,this.config=Un,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new st.xQ,this.errorHandler=sr,this.malformedUriErrorHandler=ds,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rs,afterPreactivation:rs},this.urlHandlingStrategy=new ei,this.routeReuseStrategy=new Xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Ke.get(o.h0i),this.console=Ke.get(o.c2e);const Tr=Ke.get(o.R0b);this.isNgZoneEnabled=Tr instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(Un),this.currentUrlTree=new En(new Rn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yi(ft,Gt,zi=>this.triggerEvent(new Se(zi)),zi=>this.triggerEvent(new _e(zi))),this.routerState=Ge(this.currentUrlTree,this.rootComponentType),this.transitions=new Z.X({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 N;return null===(N=this.location.getState())||void 0===N?void 0:N.\u0275routerPageId}setupNavigations(N){const ee=this.events;return N.pipe((0,zn.h)(ue=>0!==ue.id),(0,$t.U)(ue=>Object.assign(Object.assign({},ue),{extractedUrl:this.urlHandlingStrategy.extract(ue.rawUrl)})),(0,An.w)(ue=>{let ke=!1,Ke=!1;return(0,S.of)(ue).pipe((0,lt.b)(ft=>{this.currentNavigation={id:ft.id,initialUrl:ft.currentRawUrl,extractedUrl:ft.extractedUrl,trigger:ft.source,extras:ft.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,An.w)(ft=>{const Gt=this.browserUrlTree.toString(),Un=!this.navigated||ft.extractedUrl.toString()!==Gt||Gt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Un)&&this.urlHandlingStrategy.shouldProcessUrl(ft.rawUrl))return fa(ft.source)&&(this.browserUrlTree=ft.extractedUrl),(0,S.of)(ft).pipe((0,An.w)(mi=>{const Tr=this.transitions.getValue();return ee.next(new ge(mi.id,this.serializeUrl(mi.extractedUrl),mi.source,mi.restoredState)),Tr!==this.transitions.getValue()?oe.E:Promise.resolve(mi)}),function(U,Y,N,ee){return(0,An.w)(ue=>function(U,Y,N,ee,ue){return new Is(U,Y,N,ee,ue).apply()}(U,Y,N,ue.extractedUrl,ee).pipe((0,$t.U)(ke=>Object.assign(Object.assign({},ue),{urlAfterRedirects:ke}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,lt.b)(mi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:mi.urlAfterRedirects})}),function(U,Y,N,ee,ue){return(0,Ae.zg)(ke=>function(U,Y,N,ee,ue="emptyOnly",ke="legacy"){try{const Ke=new ro(U,Y,N,ee,ue,ke).recognize();return null===Ke?Fs(new bo):(0,S.of)(Ke)}catch(Ke){return Fs(Ke)}}(U,Y,ke.urlAfterRedirects,N(ke.urlAfterRedirects),ee,ue).pipe((0,$t.U)(Ke=>Object.assign(Object.assign({},ke),{targetSnapshot:Ke}))))}(this.rootComponentType,this.config,mi=>this.serializeUrl(mi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,lt.b)(mi=>{"eager"===this.urlUpdateStrategy&&(mi.extras.skipLocationChange||this.setBrowserUrl(mi.urlAfterRedirects,mi),this.browserUrlTree=mi.urlAfterRedirects);const Tr=new nn(mi.id,this.serializeUrl(mi.extractedUrl),this.serializeUrl(mi.urlAfterRedirects),mi.targetSnapshot);ee.next(Tr)}));if(Un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Tr,extractedUrl:zi,source:Gr,restoredState:po,extras:Ls}=ft,la=new ge(Tr,this.serializeUrl(zi),Gr,po);ee.next(la);const ua=Ge(zi,this.rootComponentType).snapshot;return(0,S.of)(Object.assign(Object.assign({},ft),{targetSnapshot:ua,urlAfterRedirects:zi,extras:Object.assign(Object.assign({},Ls),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ft.rawUrl,this.browserUrlTree=ft.urlAfterRedirects,ft.resolve(null),oe.E}),Ut(ft=>{const{targetSnapshot:Gt,id:Un,extractedUrl:or,rawUrl:mi,extras:{skipLocationChange:Tr,replaceUrl:zi}}=ft;return this.hooks.beforePreactivation(Gt,{navigationId:Un,appliedUrlTree:or,rawUrlTree:mi,skipLocationChange:!!Tr,replaceUrl:!!zi})}),(0,lt.b)(ft=>{const Gt=new St(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);this.triggerEvent(Gt)}),(0,$t.U)(ft=>Object.assign(Object.assign({},ft),{guards:vi(ft.targetSnapshot,ft.currentSnapshot,this.rootContexts)})),function(U,Y){return(0,Ae.zg)(N=>{const{targetSnapshot:ee,currentSnapshot:ue,guards:{canActivateChecks:ke,canDeactivateChecks:Ke}}=N;return 0===Ke.length&&0===ke.length?(0,S.of)(Object.assign(Object.assign({},N),{guardsResult:!0})):function(U,Y,N,ee){return(0,E.D)(U).pipe((0,Ae.zg)(ue=>function(U,Y,N,ee,ue){const ke=Y&&Y.routeConfig?Y.routeConfig.canDeactivate:null;if(!ke||0===ke.length)return(0,S.of)(!0);const Ke=ke.map(ft=>{const Gt=is(ft,Y,ue);let Un;if(function(U){return U&&Br(U.canDeactivate)}(Gt))Un=xi(Gt.canDeactivate(U,Y,N,ee));else{if(!Br(Gt))throw new Error("Invalid CanDeactivate guard");Un=xi(Gt(U,Y,N,ee))}return Un.pipe(mn())});return(0,S.of)(Ke).pipe(v())}(ue.component,ue.route,N,Y,ee)),mn(ue=>!0!==ue,!0))}(Ke,ee,ue,U).pipe((0,Ae.zg)(ft=>ft&&function(U){return"boolean"==typeof U}(ft)?function(U,Y,N,ee){return(0,E.D)(Y).pipe((0,Et.b)(ue=>(0,q.z)(function(U,Y){return null!==U&&Y&&Y(new G(U)),(0,S.of)(!0)}(ue.route.parent,ee),function(U,Y){return null!==U&&Y&&Y(new ze(U)),(0,S.of)(!0)}(ue.route,ee),function(U,Y,N){const ee=Y[Y.length-1],ke=Y.slice(0,Y.length-1).reverse().map(Ke=>function(U){const Y=U.routeConfig?U.routeConfig.canActivateChild:null;return Y&&0!==Y.length?{node:U,guards:Y}:null}(Ke)).filter(Ke=>null!==Ke).map(Ke=>(0,d.P)(()=>{const ft=Ke.guards.map(Gt=>{const Un=is(Gt,Ke.node,N);let or;if(function(U){return U&&Br(U.canActivateChild)}(Un))or=xi(Un.canActivateChild(ee,U));else{if(!Br(Un))throw new Error("Invalid CanActivateChild guard");or=xi(Un(ee,U))}return or.pipe(mn())});return(0,S.of)(ft).pipe(v())}));return(0,S.of)(ke).pipe(v())}(U,ue.path,N),function(U,Y,N){const ee=Y.routeConfig?Y.routeConfig.canActivate:null;if(!ee||0===ee.length)return(0,S.of)(!0);const ue=ee.map(ke=>(0,d.P)(()=>{const Ke=is(ke,Y,N);let ft;if(function(U){return U&&Br(U.canActivate)}(Ke))ft=xi(Ke.canActivate(Y,U));else{if(!Br(Ke))throw new Error("Invalid CanActivate guard");ft=xi(Ke(Y,U))}return ft.pipe(mn())}));return(0,S.of)(ue).pipe(v())}(U,ue.route,N))),mn(ue=>!0!==ue,!0))}(ee,ke,U,Y):(0,S.of)(ft)),(0,$t.U)(ft=>Object.assign(Object.assign({},N),{guardsResult:ft})))})}(this.ngModule.injector,ft=>this.triggerEvent(ft)),(0,lt.b)(ft=>{if(dr(ft.guardsResult)){const Un=_n(`Redirecting to "${this.serializeUrl(ft.guardsResult)}"`);throw Un.url=ft.guardsResult,Un}const Gt=new Pe(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot,!!ft.guardsResult);this.triggerEvent(Gt)}),(0,zn.h)(ft=>!!ft.guardsResult||(this.restoreHistory(ft),this.cancelNavigationTransition(ft,""),!1)),Ut(ft=>{if(ft.guards.canActivateChecks.length)return(0,S.of)(ft).pipe((0,lt.b)(Gt=>{const Un=new ye(Gt.id,this.serializeUrl(Gt.extractedUrl),this.serializeUrl(Gt.urlAfterRedirects),Gt.targetSnapshot);this.triggerEvent(Un)}),(0,An.w)(Gt=>{let Un=!1;return(0,S.of)(Gt).pipe(function(U,Y){return(0,Ae.zg)(N=>{const{targetSnapshot:ee,guards:{canActivateChecks:ue}}=N;if(!ue.length)return(0,S.of)(N);let ke=0;return(0,E.D)(ue).pipe((0,Et.b)(Ke=>function(U,Y,N,ee){return function(U,Y,N,ee){const ue=Object.keys(U);if(0===ue.length)return(0,S.of)({});const ke={};return(0,E.D)(ue).pipe((0,Ae.zg)(Ke=>function(U,Y,N,ee){const ue=is(U,Y,ee);return xi(ue.resolve?ue.resolve(Y,N):ue(Y,N))}(U[Ke],Y,N,ee).pipe((0,lt.b)(ft=>{ke[Ke]=ft}))),_t(1),(0,Ae.zg)(()=>Object.keys(ke).length===ue.length?(0,S.of)(ke):oe.E))}(U._resolve,U,Y,ee).pipe((0,$t.U)(ke=>(U._resolvedData=ke,U.data=Object.assign(Object.assign({},U.data),pn(U,N).resolve),null)))}(Ke.route,ee,U,Y)),(0,lt.b)(()=>ke++),_t(1),(0,Ae.zg)(Ke=>ke===ue.length?(0,S.of)(N):oe.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,lt.b)({next:()=>Un=!0,complete:()=>{Un||(this.restoreHistory(Gt),this.cancelNavigationTransition(Gt,"At least one route resolver didn't emit any value."))}}))}),(0,lt.b)(Gt=>{const Un=new ie(Gt.id,this.serializeUrl(Gt.extractedUrl),this.serializeUrl(Gt.urlAfterRedirects),Gt.targetSnapshot);this.triggerEvent(Un)}))}),Ut(ft=>{const{targetSnapshot:Gt,id:Un,extractedUrl:or,rawUrl:mi,extras:{skipLocationChange:Tr,replaceUrl:zi}}=ft;return this.hooks.afterPreactivation(Gt,{navigationId:Un,appliedUrlTree:or,rawUrlTree:mi,skipLocationChange:!!Tr,replaceUrl:!!zi})}),(0,$t.U)(ft=>{const Gt=function(U,Y,N){const ee=Ji(U,Y._root,N?N._root:void 0);return new Ue(ee,Y)}(this.routeReuseStrategy,ft.targetSnapshot,ft.currentRouterState);return Object.assign(Object.assign({},ft),{targetRouterState:Gt})}),(0,lt.b)(ft=>{this.currentUrlTree=ft.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ft.urlAfterRedirects,ft.rawUrl),this.routerState=ft.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ft.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ft),this.browserUrlTree=ft.urlAfterRedirects)}),((U,Y,N)=>(0,$t.U)(ee=>(new xs(Y,ee.targetRouterState,ee.currentRouterState,N).activate(U),ee)))(this.rootContexts,this.routeReuseStrategy,ft=>this.triggerEvent(ft)),(0,lt.b)({next(){ke=!0},complete(){ke=!0}}),function(U){return Y=>Y.lift(new ai(U))}(()=>{var ft;if(!ke&&!Ke){const Gt=`Navigation ID ${ue.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(ue),this.cancelNavigationTransition(ue,Gt)):this.cancelNavigationTransition(ue,Gt)}(null===(ft=this.currentNavigation)||void 0===ft?void 0:ft.id)===ue.id&&(this.currentNavigation=null)}),dn(ft=>{if(Ke=!0,function(U){return U&&U[cn]}(ft)){const Gt=dr(ft.url);Gt||(this.navigated=!0,this.restoreHistory(ue,!0));const Un=new Qe(ue.id,this.serializeUrl(ue.extractedUrl),ft.message);ee.next(Un),Gt?setTimeout(()=>{const or=this.urlHandlingStrategy.merge(ft.url,this.rawUrlTree),mi={skipLocationChange:ue.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fa(ue.source)};this.scheduleNavigation(or,"imperative",null,mi,{resolve:ue.resolve,reject:ue.reject,promise:ue.promise})},0):ue.resolve(!1)}else{this.restoreHistory(ue,!0);const Gt=new $e(ue.id,this.serializeUrl(ue.extractedUrl),ft);ee.next(Gt);try{ue.resolve(this.errorHandler(ft))}catch(Un){ue.reject(Un)}}return oe.E}))}))}resetRootComponentType(N){this.rootComponentType=N,this.routerState.root.component=this.rootComponentType}getTransition(){const N=this.transitions.value;return N.urlAfterRedirects=this.browserUrlTree,N}setTransition(N){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),N))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(N=>{const ee=this.extractLocationChangeInfoFromEvent(N);this.shouldScheduleNavigation(this.lastLocationChangeInfo,ee)&&setTimeout(()=>{const{source:ue,state:ke,urlTree:Ke}=ee,ft={replaceUrl:!0};if(ke){const Gt=Object.assign({},ke);delete Gt.navigationId,delete Gt.\u0275routerPageId,0!==Object.keys(Gt).length&&(ft.state=Gt)}this.scheduleNavigation(Ke,ue,ke,ft)},0),this.lastLocationChangeInfo=ee}))}extractLocationChangeInfoFromEvent(N){var ee;return{source:"popstate"===N.type?"popstate":"hashchange",urlTree:this.parseUrl(N.url),state:(null===(ee=N.state)||void 0===ee?void 0:ee.navigationId)?N.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(N,ee){if(!N)return!0;const ue=ee.urlTree.toString()===N.urlTree.toString();return ee.transitionId!==N.transitionId||!ue||!("hashchange"===ee.source&&"popstate"===N.source||"popstate"===ee.source&&"hashchange"===N.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(N){this.events.next(N)}resetConfig(N){x(N),this.config=N.map(w),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(N,ee={}){const{relativeTo:ue,queryParams:ke,fragment:Ke,queryParamsHandling:ft,preserveFragment:Gt}=ee,Un=ue||this.routerState.root,or=Gt?this.currentUrlTree.fragment:Ke;let mi=null;switch(ft){case"merge":mi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),ke);break;case"preserve":mi=this.currentUrlTree.queryParams;break;default:mi=ke||null}return null!==mi&&(mi=this.removeEmptyProps(mi)),function(U,Y,N,ee,ue){if(0===N.length)return Xi(Y.root,Y.root,Y,ee,ue);const ke=function(U){if("string"==typeof U[0]&&1===U.length&&"/"===U[0])return new Ar(!0,0,U);let Y=0,N=!1;const ee=U.reduce((ue,ke,Ke)=>{if("object"==typeof ke&&null!=ke){if(ke.outlets){const ft={};return qi(ke.outlets,(Gt,Un)=>{ft[Un]="string"==typeof Gt?Gt.split("/"):Gt}),[...ue,{outlets:ft}]}if(ke.segmentPath)return[...ue,ke.segmentPath]}return"string"!=typeof ke?[...ue,ke]:0===Ke?(ke.split("/").forEach((ft,Gt)=>{0==Gt&&"."===ft||(0==Gt&&""===ft?N=!0:".."===ft?Y++:""!=ft&&ue.push(ft))}),ue):[...ue,ke]},[]);return new Ar(N,Y,ee)}(N);if(ke.toRoot())return Xi(Y.root,new Rn([],{}),Y,ee,ue);const Ke=function(U,Y,N){if(U.isAbsolute)return new wr(Y.root,!0,0);if(-1===N.snapshot._lastPathIndex){const ke=N.snapshot._urlSegment;return new wr(ke,ke===Y.root,0)}const ee=cr(U.commands[0])?0:1;return function(U,Y,N){let ee=U,ue=Y,ke=N;for(;ke>ue;){if(ke-=ue,ee=ee.parent,!ee)throw new Error("Invalid number of '../'");ue=ee.segments.length}return new wr(ee,!1,ue-ke)}(N.snapshot._urlSegment,N.snapshot._lastPathIndex+ee,U.numberOfDoubleDots)}(ke,Y,U),ft=Ke.processChildren?Ur(Ke.segmentGroup,Ke.index,ke.commands):jr(Ke.segmentGroup,Ke.index,ke.commands);return Xi(Ke.segmentGroup,ft,Y,ee,ue)}(Un,this.currentUrlTree,N,mi,null!=or?or:null)}navigateByUrl(N,ee={skipLocationChange:!1}){const ue=dr(N)?N:this.parseUrl(N),ke=this.urlHandlingStrategy.merge(ue,this.rawUrlTree);return this.scheduleNavigation(ke,"imperative",null,ee)}navigate(N,ee={skipLocationChange:!1}){return function(U){for(let Y=0;Y{const ke=N[ue];return null!=ke&&(ee[ue]=ke),ee},{})}processNavigations(){this.navigations.subscribe(N=>{this.navigated=!0,this.lastSuccessfulId=N.id,this.currentPageId=N.targetPageId,this.events.next(new et(N.id,this.serializeUrl(N.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,N.resolve(!0)},N=>{this.console.warn(`Unhandled Navigation Error: ${N}`)})}scheduleNavigation(N,ee,ue,ke,Ke){var ft,Gt;if(this.disposed)return Promise.resolve(!1);const Un=this.getTransition(),or=fa(ee)&&Un&&!fa(Un.source),zi=(this.lastSuccessfulId===Un.id||this.currentNavigation?Un.rawUrl:Un.urlAfterRedirects).toString()===N.toString();if(or&&zi)return Promise.resolve(!0);let Gr,po,Ls;Ke?(Gr=Ke.resolve,po=Ke.reject,Ls=Ke.promise):Ls=new Promise((Co,cl)=>{Gr=Co,po=cl});const la=++this.navigationId;let ua;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ue=this.location.getState()),ua=ue&&ue.\u0275routerPageId?ue.\u0275routerPageId:ke.replaceUrl||ke.skipLocationChange?null!==(ft=this.browserPageId)&&void 0!==ft?ft:0:(null!==(Gt=this.browserPageId)&&void 0!==Gt?Gt:0)+1):ua=0,this.setTransition({id:la,targetPageId:ua,source:ee,restoredState:ue,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:N,extras:ke,resolve:Gr,reject:po,promise:Ls,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ls.catch(Co=>Promise.reject(Co))}setBrowserUrl(N,ee){const ue=this.urlSerializer.serialize(N),ke=Object.assign(Object.assign({},ee.extras.state),this.generateNgRouterState(ee.id,ee.targetPageId));this.location.isCurrentPathEqualTo(ue)||ee.extras.replaceUrl?this.location.replaceState(ue,"",ke):this.location.go(ue,"",ke)}restoreHistory(N,ee=!1){var ue,ke;if("computed"===this.canceledNavigationResolution){const Ke=this.currentPageId-N.targetPageId;"popstate"!==N.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ue=this.currentNavigation)||void 0===ue?void 0:ue.finalUrl)||0===Ke?this.currentUrlTree===(null===(ke=this.currentNavigation)||void 0===ke?void 0:ke.finalUrl)&&0===Ke&&(this.resetState(N),this.browserUrlTree=N.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Ke)}else"replace"===this.canceledNavigationResolution&&(ee&&this.resetState(N),this.resetUrlToCurrentUrlTree())}resetState(N){this.routerState=N.currentRouterState,this.currentUrlTree=N.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,N.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(N,ee){const ue=new Qe(N.id,this.serializeUrl(N.extractedUrl),ee);this.triggerEvent(ue),N.resolve(!1)}generateNgRouterState(N,ee){return"computed"===this.canceledNavigationResolution?{navigationId:N,\u0275routerPageId:ee}:{navigationId:N}}}return U.\u0275fac=function(N){return new(N||U)(o.LFG(o.DyG),o.LFG(On),o.LFG(gi),o.LFG(i.Ye),o.LFG(o.zs3),o.LFG(o.v3s),o.LFG(o.Sil),o.LFG(void 0))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac}),U})();function fa(U){return"imperative"!==U}let zs=(()=>{class U{constructor(N,ee,ue){this.router=N,this.route=ee,this.locationStrategy=ue,this.commands=[],this.onChanges=new st.xQ,this.subscription=N.events.subscribe(ke=>{ke instanceof et&&this.updateTargetUrlAndHref()})}set routerLink(N){this.commands=null!=N?Array.isArray(N)?N:[N]:[]}ngOnChanges(N){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(N,ee,ue,ke,Ke){if(0!==N||ee||ue||ke||Ke||"string"==typeof this.target&&"_self"!=this.target)return!0;const ft={skipLocationChange:na(this.skipLocationChange),replaceUrl:na(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ft),!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:na(this.preserveFragment)})}}return U.\u0275fac=function(N){return new(N||U)(o.Y36(Zr),o.Y36(Ht),o.Y36(i.S$))},U.\u0275dir=o.lG2({type:U,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(N,ee){1&N&&o.NdJ("click",function(ke){return ee.onClick(ke.button,ke.ctrlKey,ke.shiftKey,ke.altKey,ke.metaKey)}),2&N&&(o.Ikx("href",ee.href,o.LSH),o.uIk("target",ee.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[o.TTD]}),U})();function na(U){return""===U||!!U}let Ta=(()=>{class U{constructor(N,ee,ue,ke,Ke){this.parentContexts=N,this.location=ee,this.resolver=ue,this.changeDetector=Ke,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.name=ke||Ct,N.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const N=this.parentContexts.getContext(this.name);N&&N.route&&(N.attachRef?this.attach(N.attachRef,N.route):this.activateWith(N.route,N.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 N=this.activated;return this.activated=null,this._activatedRoute=null,N}attach(N,ee){this.activated=N,this._activatedRoute=ee,this.location.insert(N.hostView)}deactivate(){if(this.activated){const N=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(N)}}activateWith(N,ee){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=N;const Ke=(ee=ee||this.resolver).resolveComponentFactory(N._futureSnapshot.routeConfig.component),ft=this.parentContexts.getOrCreateContext(this.name).children,Gt=new wo(N,ft,this.location.injector);this.activated=this.location.createComponent(Ke,this.location.length,Gt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return U.\u0275fac=function(N){return new(N||U)(o.Y36(gi),o.Y36(o.s_b),o.Y36(o._Vd),o.$8M("name"),o.Y36(o.sBO))},U.\u0275dir=o.lG2({type:U,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),U})();class wo{constructor(Y,N,ee){this.route=Y,this.childContexts=N,this.parent=ee}get(Y,N){return Y===Ht?this.route:Y===gi?this.childContexts:this.parent.get(Y,N)}}class Da{}class ma{preload(Y,N){return(0,S.of)(null)}}let ia=(()=>{class U{constructor(N,ee,ue,ke,Ke){this.router=N,this.injector=ke,this.preloadingStrategy=Ke,this.loader=new yi(ee,ue,Un=>N.triggerEvent(new Se(Un)),Un=>N.triggerEvent(new _e(Un)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,zn.h)(N=>N instanceof et),(0,Et.b)(()=>this.preload())).subscribe(()=>{})}preload(){const N=this.injector.get(o.h0i);return this.processRoutes(N,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(N,ee){const ue=[];for(const ke of ee)if(ke.loadChildren&&!ke.canLoad&&ke._loadedConfig){const Ke=ke._loadedConfig;ue.push(this.processRoutes(Ke.module,Ke.routes))}else ke.loadChildren&&!ke.canLoad?ue.push(this.preloadConfig(N,ke)):ke.children&&ue.push(this.processRoutes(N,ke.children));return(0,E.D)(ue).pipe((0,Ie.J)(),(0,$t.U)(ke=>{}))}preloadConfig(N,ee){return this.preloadingStrategy.preload(ee,()=>(ee._loadedConfig?(0,S.of)(ee._loadedConfig):this.loader.load(N.injector,ee)).pipe((0,Ae.zg)(ke=>(ee._loadedConfig=ke,this.processRoutes(ke.module,ke.routes)))))}}return U.\u0275fac=function(N){return new(N||U)(o.LFG(Zr),o.LFG(o.v3s),o.LFG(o.Sil),o.LFG(o.zs3),o.LFG(Da))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac}),U})(),Vi=(()=>{class U{constructor(N,ee,ue={}){this.router=N,this.viewportScroller=ee,this.options=ue,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ue.scrollPositionRestoration=ue.scrollPositionRestoration||"disabled",ue.anchorScrolling=ue.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(N=>{N instanceof ge?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=N.navigationTrigger,this.restoredId=N.restoredState?N.restoredState.navigationId:0):N instanceof et&&(this.lastId=N.id,this.scheduleScrollEvent(N,this.router.parseUrl(N.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(N=>{N instanceof Pt&&(N.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(N.position):N.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(N.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(N,ee){this.router.triggerEvent(new Pt(N,"popstate"===this.lastSource?this.store[this.restoredId]:null,ee))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return U.\u0275fac=function(N){return new(N||U)(o.LFG(Zr),o.LFG(i.EM),o.LFG(void 0))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac}),U})();const ra=new o.OlP("ROUTER_CONFIGURATION"),sa=new o.OlP("ROUTER_FORROOT_GUARD"),Va=[i.Ye,{provide:On,useClass:xe},{provide:Zr,useFactory:function(U,Y,N,ee,ue,ke,Ke,ft={},Gt,Un){const or=new Zr(null,U,Y,N,ee,ue,ke,yr(Ke));return Gt&&(or.urlHandlingStrategy=Gt),Un&&(or.routeReuseStrategy=Un),function(U,Y){U.errorHandler&&(Y.errorHandler=U.errorHandler),U.malformedUriErrorHandler&&(Y.malformedUriErrorHandler=U.malformedUriErrorHandler),U.onSameUrlNavigation&&(Y.onSameUrlNavigation=U.onSameUrlNavigation),U.paramsInheritanceStrategy&&(Y.paramsInheritanceStrategy=U.paramsInheritanceStrategy),U.relativeLinkResolution&&(Y.relativeLinkResolution=U.relativeLinkResolution),U.urlUpdateStrategy&&(Y.urlUpdateStrategy=U.urlUpdateStrategy)}(ft,or),ft.enableTracing&&or.events.subscribe(mi=>{var Tr,zi;null===(Tr=console.group)||void 0===Tr||Tr.call(console,`Router Event: ${mi.constructor.name}`),console.log(mi.toString()),console.log(mi),null===(zi=console.groupEnd)||void 0===zi||zi.call(console)}),or},deps:[On,gi,i.Ye,o.zs3,o.v3s,o.Sil,Vn,ra,[class{},new o.FiY],[class{},new o.FiY]]},gi,{provide:Ht,useFactory:function(U){return U.routerState.root},deps:[Zr]},{provide:o.v3s,useClass:o.EAV},ia,ma,class{preload(Y,N){return N().pipe(dn(()=>(0,S.of)(null)))}},{provide:ra,useValue:{enableTracing:!1}}];function xa(){return new o.PXZ("Router",Zr)}let $s=(()=>{class U{constructor(N,ee){}static forRoot(N,ee){return{ngModule:U,providers:[Va,Mo(N),{provide:sa,useFactory:oa,deps:[[Zr,new o.FiY,new o.tp0]]},{provide:ra,useValue:ee||{}},{provide:i.S$,useFactory:Xa,deps:[i.lw,[new o.tBr(i.mr),new o.FiY],ra]},{provide:Vi,useFactory:Fa,deps:[Zr,i.EM,ra]},{provide:Da,useExisting:ee&&ee.preloadingStrategy?ee.preloadingStrategy:ma},{provide:o.PXZ,multi:!0,useFactory:xa},[Ws,{provide:o.ip1,multi:!0,useFactory:Za,deps:[Ws]},{provide:Ra,useFactory:ka,deps:[Ws]},{provide:o.tb,multi:!0,useExisting:Ra}]]}}static forChild(N){return{ngModule:U,providers:[Mo(N)]}}}return U.\u0275fac=function(N){return new(N||U)(o.LFG(sa,8),o.LFG(Zr,8))},U.\u0275mod=o.oAB({type:U}),U.\u0275inj=o.cJS({}),U})();function Fa(U,Y,N){return N.scrollOffset&&Y.setOffset(N.scrollOffset),new Vi(U,Y,N)}function Xa(U,Y,N={}){return N.useHash?new i.Do(U,Y):new i.b0(U,Y)}function oa(U){return"guarded"}function Mo(U){return[{provide:o.deG,multi:!0,useValue:U},{provide:Vn,multi:!0,useValue:U}]}let Ws=(()=>{class U{constructor(N){this.injector=N,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new st.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let ee=null;const ue=new Promise(ft=>ee=ft),ke=this.injector.get(Zr),Ke=this.injector.get(ra);return"disabled"===Ke.initialNavigation?(ke.setUpLocationChangeListener(),ee(!0)):"enabled"===Ke.initialNavigation||"enabledBlocking"===Ke.initialNavigation?(ke.hooks.afterPreactivation=()=>this.initNavigation?(0,S.of)(null):(this.initNavigation=!0,ee(!0),this.resultOfPreactivationDone),ke.initialNavigation()):ee(!0),ue})}bootstrapListener(N){const ee=this.injector.get(ra),ue=this.injector.get(ia),ke=this.injector.get(Vi),Ke=this.injector.get(Zr),ft=this.injector.get(o.z2F);N===ft.components[0]&&(("enabledNonBlocking"===ee.initialNavigation||void 0===ee.initialNavigation)&&Ke.initialNavigation(),ue.setUpPreloading(),ke.init(),Ke.resetRootComponentType(ft.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return U.\u0275fac=function(N){return new(N||U)(o.LFG(o.zs3))},U.\u0275prov=o.Yz7({token:U,factory:U.\u0275fac}),U})();function Za(U){return U.appInitializer.bind(U)}function ka(U){return U.bootstrapListener.bind(U)}const Ra=new o.OlP("Router Initializer")},5834:(Xe,Ee,L)=>{"use strict";L.d(Ee,{FF:()=>fi,IJ:()=>$c,_L:()=>Ja,HK:()=>Go});var i=L(7716),o=L(8583),P=L(7574),s=L(9796),E=L(9105),S=L(8002);function F(m,A,c,y){return(0,E.m)(c)&&(y=c,c=void 0),y?F(m,A,c).pipe((0,S.U)(B=>(0,s.k)(B)?y(...B):y(B))):new P.y(B=>{z(m,A,function(rt){B.next(arguments.length>1?Array.prototype.slice.call(arguments):rt)},B,c)})}function z(m,A,c,y,B){let ne;if(function(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const rt=m;m.addEventListener(A,c,B),ne=()=>rt.removeEventListener(A,c,B)}else if(function(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const rt=m;m.on(A,c),ne=()=>rt.off(A,c)}else if(function(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const rt=m;m.addListener(A,c),ne=()=>rt.removeListener(A,c)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let rt=0,kt=m.length;rt=0}var Te=L(4869);function pt(m){const{index:A,period:c,subscriber:y}=m;if(y.next(A),!y.closed){if(-1===c)return y.complete();m.index=A+1,this.schedule(m,c)}}var He=L(6693),Vt=L(5197),dn=L(509);function Zn(...m){if(1===m.length){if(!(0,s.k)(m[0]))return m[0];m=m[0]}return(0,He.n)(m,void 0).lift(new Jn)}class Jn{call(A,c){return c.subscribe(new zn(A))}}class zn extends Vt.L{constructor(A){super(A),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(A){this.observables.push(A)}_complete(){const A=this.observables,c=A.length;if(0===c)this.destination.complete();else{for(let y=0;ythis.index}hasCompleted(){return this.array.length===this.index}}class Dn extends ot.Ds{constructor(A,c,y){super(A),this.parent=c,this.observable=y,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[At.hZ](){return this}next(){const A=this.buffer;return 0===A.length&&this.isComplete?{value:null,done:!0}:{value:A.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(A){this.buffer.push(A),this.parent.checkIterators()}subscribe(){return(0,ot.ft)(this.observable,new ot.IY(this))}}var Si=L(9193),$n=L(5917),mn=L(9765),ai=(L(6215),L(9112),L(6682)),di=L(8071);function An(m){return A=>A.lift(new Me(m))}class Me{constructor(A){this.notifier=A}call(A,c){const y=new Et(A),B=(0,ot.ft)(this.notifier,new ot.IY(y));return B&&!y.seenValue?(y.add(B),c.subscribe(y)):y}}class Et extends ot.Ds{constructor(A){super(A),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Ae(...m){return A=>{let c;return"function"==typeof m[m.length-1]&&(c=m.pop()),A.lift(new lt(m,c))}}class lt{constructor(A,c){this.observables=A,this.project=c}call(A,c){return c.subscribe(new Ne(A,this.observables,this.project))}}class Ne extends Vt.L{constructor(A,c,y){super(A),this.observables=c,this.project=y,this.toRespond=[];const B=c.length;this.values=new Array(B);for(let ne=0;ne0){const ne=B.indexOf(y);-1!==ne&&B.splice(ne,1)}}notifyComplete(){}_next(A){if(0===this.toRespond.length){const c=[A,...this.values];this.project?this._tryProject(c):this.destination.next(c)}}_tryProject(A){let c;try{c=this.project.apply(this,A)}catch(y){return void this.destination.error(y)}this.destination.next(c)}}var It=L(1593);function ge(m,A=De.P){const y=function(m){return m instanceof Date&&!isNaN(+m)}(m)?+m-A.now():Math.abs(m);return B=>B.lift(new et(y,A))}class et{constructor(A,c){this.delay=A,this.scheduler=c}call(A,c){return c.subscribe(new Qe(A,this.delay,this.scheduler))}}class Qe extends fn.L{constructor(A,c,y){super(A),this.delay=c,this.scheduler=y,this.queue=[],this.active=!1,this.errored=!1}static dispatch(A){const c=A.source,y=c.queue,B=A.scheduler,ne=A.destination;for(;y.length>0&&y[0].time-B.now()<=0;)y.shift().notification.observe(ne);if(y.length>0){const rt=Math.max(0,y[0].time-B.now());this.schedule(A,rt)}else this.unsubscribe(),c.active=!1}_schedule(A){this.active=!0,this.destination.add(A.schedule(Qe.dispatch,this.delay,{source:this,destination:this.destination,scheduler:A}))}scheduleNotification(A){if(!0===this.errored)return;const c=this.scheduler,y=new $e(c.now()+this.delay,A);this.queue.push(y),!1===this.active&&this._schedule(c)}_next(A){this.scheduleNotification(It.P.createNext(A))}_error(A){this.errored=!0,this.queue=[],this.destination.error(A),this.unsubscribe()}_complete(){this.scheduleNotification(It.P.createComplete()),this.unsubscribe()}}class $e{constructor(A,c){this.time=A,this.notification=c}}var ye=L(5435),ie=L(5257),G=(L(9761),L(7519),L(3190)),se=L(8307),ze=L(9773),vt=L(8819),Pt=L(3679);const Ni=["*"],re=["dialog"];function w(m){return null!=m}function Mt(m){return(m||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(m){let A=this;if(!document.documentElement.contains(A))return null;do{if(A.matches(m))return A;A=A.parentElement||A.parentNode}while(null!==A&&1===A.nodeType);return null});const Wt={animation:!0,transitionTimerDelayMs:5};let Mn=(()=>{class m{constructor(){this.animation=Wt.animation}}return m.\u0275fac=function(c){return new(c||m)},m.\u0275prov=i.Yz7({factory:function(){return new m},token:m,providedIn:"root"}),m})();const ii=()=>{},{transitionTimerDelayMs:es}=Wt,Gn=new Map,Qn=(m,A,c,y)=>{let B=y.context||{};const ne=Gn.get(A);if(ne)switch(y.runningTransition){case"continue":return Si.E;case"stop":m.run(()=>ne.transition$.complete()),B=Object.assign(ne.context,B),Gn.delete(A)}const rt=c(A,y.animation,B)||ii;if(!y.animation||"none"===window.getComputedStyle(A).transitionProperty)return m.run(()=>rt()),(0,$n.of)(void 0).pipe(function(m){return A=>new P.y(c=>A.subscribe(rt=>m.run(()=>c.next(rt)),rt=>m.run(()=>c.error(rt)),()=>m.run(()=>c.complete())))}(m));const kt=new mn.xQ,Xt=new mn.xQ,hn=kt.pipe(function(...m){return A=>(0,di.z)(A,(0,$n.of)(...m))}(!0));Gn.set(A,{transition$:kt,complete:()=>{Xt.next(),Xt.complete()},context:B});const Bn=function(m){const{transitionDelay:A,transitionDuration:c}=window.getComputedStyle(m);return 1e3*(parseFloat(A)+parseFloat(c))}(A);return m.runOutsideAngular(()=>{const Ti=F(A,"transitionend").pipe(An(hn),(0,ye.h)(({target:Fi})=>Fi===A));Zn(function(m=0,A,c){let y=-1;return st(A)?y=Number(A)<1?1:Number(A):(0,Te.K)(A)&&(c=A),(0,Te.K)(c)||(c=De.P),new P.y(B=>{const ne=st(m)?m:+m-c.now();return c.schedule(pt,ne,{index:0,period:y,subscriber:B})})}(Bn+es).pipe(An(hn)),Ti,Xt).pipe(An(hn)).subscribe(()=>{Gn.delete(A),m.run(()=>{rt(),kt.next(),kt.complete()})})}),kt.asObservable()};let is=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),nr=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),Zs=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({}),m})(),No=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),Nt=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({}),m})();var Vi=(()=>{return(m=Vi||(Vi={}))[m.Tab=9]="Tab",m[m.Enter=13]="Enter",m[m.Escape=27]="Escape",m[m.Space=32]="Space",m[m.PageUp=33]="PageUp",m[m.PageDown=34]="PageDown",m[m.End=35]="End",m[m.Home=36]="Home",m[m.ArrowLeft=37]="ArrowLeft",m[m.ArrowUp=38]="ArrowUp",m[m.ArrowRight=39]="ArrowRight",m[m.ArrowDown=40]="ArrowDown",Vi;var m})();const Io=(m,A)=>!!A&&A.some(c=>c.contains(m)),xa=(m,A)=>!A||null!=function(m,A){return A&&void 0!==m.closest?m.closest(A):null}(m,A),Xa="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 fo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Fo(m){const A=Array.from(m.querySelectorAll(fo)).filter(c=>-1!==c.tabIndex);return[A[0],A[A.length-1]]}const ka=/\s+/,Ra=new class{getAllStyles(A){return window.getComputedStyle(A)}getStyle(A,c){return this.getAllStyles(A)[c]}isStaticPositioned(A){return"static"===(this.getStyle(A,"position")||"static")}offsetParent(A){let c=A.offsetParent||document.documentElement;for(;c&&c!==document.documentElement&&this.isStaticPositioned(c);)c=c.offsetParent;return c||document.documentElement}position(A,c=!0){let y,B={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(A,"position"))y=A.getBoundingClientRect(),y={top:y.top,bottom:y.bottom,left:y.left,right:y.right,height:y.height,width:y.width};else{const ne=this.offsetParent(A);y=this.offset(A,!1),ne!==document.documentElement&&(B=this.offset(ne,!1)),B.top+=ne.clientTop,B.left+=ne.clientLeft}return y.top-=B.top,y.bottom-=B.top,y.left-=B.left,y.right-=B.left,c&&(y.top=Math.round(y.top),y.bottom=Math.round(y.bottom),y.left=Math.round(y.left),y.right=Math.round(y.right)),y}offset(A,c=!0){const y=A.getBoundingClientRect(),B_top=window.pageYOffset-document.documentElement.clientTop,B_left=window.pageXOffset-document.documentElement.clientLeft;let ne={height:y.height||A.offsetHeight,width:y.width||A.offsetWidth,top:y.top+B_top,bottom:y.bottom+B_top,left:y.left+B_left,right:y.right+B_left};return c&&(ne.height=Math.round(ne.height),ne.width=Math.round(ne.width),ne.top=Math.round(ne.top),ne.bottom=Math.round(ne.bottom),ne.left=Math.round(ne.left),ne.right=Math.round(ne.right)),ne}positionElements(A,c,y,B){const[ne="top",rt="center"]=y.split("-"),kt=B?this.offset(A,!1):this.position(A,!1),Xt=this.getAllStyles(c),hn=parseFloat(Xt.marginTop),Bn=parseFloat(Xt.marginBottom),Ti=parseFloat(Xt.marginLeft),ci=parseFloat(Xt.marginRight);let Fi=0,Lr=0;switch(ne){case"top":Fi=kt.top-(c.offsetHeight+hn+Bn);break;case"bottom":Fi=kt.top+kt.height;break;case"left":Lr=kt.left-(c.offsetWidth+Ti+ci);break;case"right":Lr=kt.left+kt.width}switch(rt){case"top":Fi=kt.top;break;case"bottom":Fi=kt.top+kt.height-c.offsetHeight;break;case"left":Lr=kt.left;break;case"right":Lr=kt.left+kt.width-c.offsetWidth;break;case"center":"top"===ne||"bottom"===ne?Lr=kt.left+kt.width/2-c.offsetWidth/2:Fi=kt.top+kt.height/2-c.offsetHeight/2}c.style.transform=`translate(${Math.round(Lr)}px, ${Math.round(Fi)}px)`;const Nr=c.getBoundingClientRect(),eo=document.documentElement,Jo=window.innerHeight||eo.clientHeight,Bs=window.innerWidth||eo.clientWidth;return Nr.left>=0&&Nr.top>=0&&Nr.right<=Bs&&Nr.bottom<=Jo}};new Date(1882,10,12),new Date(2174,10,25);let p=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez,Pt.u5]]}),m})(),Oe=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({}),m})(),Je=(()=>{class m{constructor(c){this._ngbConfig=c,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(c){this._animation=c}}return m.\u0275fac=function(c){return new(c||m)(i.LFG(Mn))},m.\u0275prov=i.Yz7({factory:function(){return new m(i.LFG(Mn))},token:m,providedIn:"root"}),m})();class We{constructor(A,c,y){this.nodes=A,this.viewRef=c,this.componentRef=y}}class ut{constructor(A,c,y,B,ne,rt,kt){this._type=A,this._injector=c,this._viewContainerRef=y,this._renderer=B,this._ngZone=ne,this._componentFactoryResolver=rt,this._applicationRef=kt,this._windowRef=null,this._contentRef=null}open(A,c,y=!1){this._windowRef||(this._contentRef=this._getContentRef(A,c),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:B}=this._windowRef.location,ne=this._ngZone.onStable.pipe((0,ie.q)(1),(0,ze.zg)(()=>Qn(this._ngZone,B,({classList:rt})=>rt.add("show"),{animation:y,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:ne}}close(A=!1){return this._windowRef?Qn(this._ngZone,this._windowRef.location.nativeElement,({classList:c})=>c.remove("show"),{animation:A,runningTransition:"stop"}).pipe((0,se.b)(()=>{var c;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(c=this._contentRef)||void 0===c?void 0:c.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,$n.of)(void 0)}_getContentRef(A,c){if(A){if(A instanceof i.Rgc){const y=A.createEmbeddedView(c);return this._applicationRef.attachView(y),new We([y.rootNodes],y)}return new We([[this._renderer.createText(`${A}`)]])}return new We([])}}const Ot=()=>{};let qn=(()=>{class m{constructor(c){this._document=c}compensate(){const c=this._getWidth();return this._isPresent(c)?this._adjustBody(c):Ot}_adjustBody(c){const y=this._document.body,B=y.style.paddingRight,ne=parseFloat(window.getComputedStyle(y)["padding-right"]);return y.style["padding-right"]=`${ne+c}px`,()=>y.style["padding-right"]=B}_isPresent(c){const y=this._document.body.getBoundingClientRect();return window.innerWidth-(y.left+y.right)>=c-.1*c}_getWidth(){const c=this._document.createElement("div");c.className="modal-scrollbar-measure";const y=this._document.body;y.appendChild(c);const B=c.getBoundingClientRect().width-c.clientWidth;return y.removeChild(c),B}}return m.\u0275fac=function(c){return new(c||m)(i.LFG(o.K0))},m.\u0275prov=i.Yz7({factory:function(){return new m(i.LFG(o.K0))},token:m,providedIn:"root"}),m})(),ri=(()=>{class m{constructor(c,y){this._el=c,this._zone=y}ngOnInit(){this._zone.onStable.asObservable().pipe((0,ie.q)(1)).subscribe(()=>{Qn(this._zone,this._el.nativeElement,(c,y)=>{y&&Mt(c),c.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Qn(this._zone,this._el.nativeElement,({classList:c})=>c.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(i.SBq),i.Y36(i.R0b))},m.\u0275cmp=i.Xpm({type:m,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(c,y){2&c&&(i.Tol("modal-backdrop"+(y.backdropClass?" "+y.backdropClass:"")),i.ekj("show",!y.animation)("fade",y.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(c,y){},encapsulation:2}),m})();class Zi{close(A){}dismiss(A){}}class ji{constructor(A,c,y,B){this._windowCmptRef=A,this._contentRef=c,this._backdropCmptRef=y,this._beforeDismiss=B,this._closed=new mn.xQ,this._dismissed=new mn.xQ,this._hidden=new mn.xQ,A.instance.dismissEvent.subscribe(ne=>{this.dismiss(ne)}),this.result=new Promise((ne,rt)=>{this._resolve=ne,this._reject=rt}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(An(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(An(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(A){this._windowCmptRef&&(this._closed.next(A),this._resolve(A),this._removeModalElements())}_dismiss(A){this._dismissed.next(A),this._reject(A),this._removeModalElements()}dismiss(A){if(this._windowCmptRef)if(this._beforeDismiss){const c=this._beforeDismiss();c&&c.then?c.then(y=>{!1!==y&&this._dismiss(A)},()=>{}):!1!==c&&this._dismiss(A)}else this._dismiss(A)}_removeModalElements(){const A=this._windowCmptRef.instance.hide(),c=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,$n.of)(void 0);A.subscribe(()=>{const{nativeElement:y}=this._windowCmptRef.location;y.parentNode.removeChild(y),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),c.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:y}=this._backdropCmptRef.location;y.parentNode.removeChild(y),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ze(A,c).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var vr=(()=>{return(m=vr||(vr={}))[m.BACKDROP_CLICK=0]="BACKDROP_CLICK",m[m.ESC=1]="ESC",vr;var m})();let ir=(()=>{class m{constructor(c,y,B){this._document=c,this._elRef=y,this._zone=B,this._closed$=new mn.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.vpe,this.shown=new mn.xQ,this.hidden=new mn.xQ}dismiss(c){this.dismissEvent.emit(c)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,ie.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:c}=this._elRef,y={animation:this.animation,runningTransition:"stop"},rt=Ze(Qn(this._zone,c,()=>c.classList.remove("show"),y),Qn(this._zone,this._dialogEl.nativeElement,()=>{},y));return rt.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),rt}_show(){const c={animation:this.animation,runningTransition:"continue"};Ze(Qn(this._zone,this._elRef.nativeElement,(ne,rt)=>{rt&&Mt(ne),ne.classList.add("show")},c),Qn(this._zone,this._dialogEl.nativeElement,()=>{},c)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:c}=this._elRef;this._zone.runOutsideAngular(()=>{F(c,"keydown").pipe(An(this._closed$),(0,ye.h)(B=>B.which===Vi.Escape)).subscribe(B=>{this.keyboard?requestAnimationFrame(()=>{B.defaultPrevented||this._zone.run(()=>this.dismiss(vr.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let y=!1;F(this._dialogEl.nativeElement,"mousedown").pipe(An(this._closed$),(0,se.b)(()=>y=!1),(0,G.w)(()=>F(c,"mouseup").pipe(An(this._closed$),(0,ie.q)(1))),(0,ye.h)(({target:B})=>c===B)).subscribe(()=>{y=!0}),F(c,"click").pipe(An(this._closed$)).subscribe(({target:B})=>{c===B&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!y&&this._zone.run(()=>this.dismiss(vr.BACKDROP_CLICK))),y=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:c}=this._elRef;if(!c.contains(document.activeElement)){const y=c.querySelector("[ngbAutofocus]"),B=Fo(c)[0];(y||B||c).focus()}}_restoreFocus(){const c=this._document.body,y=this._elWithFocus;let B;B=y&&y.focus&&c.contains(y)?y:c,this._zone.runOutsideAngular(()=>{setTimeout(()=>B.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Qn(this._zone,this._elRef.nativeElement,({classList:c})=>(c.add("modal-static"),()=>c.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(o.K0),i.Y36(i.SBq),i.Y36(i.R0b))},m.\u0275cmp=i.Xpm({type:m,selectors:[["ngb-modal-window"]],viewQuery:function(c,y){if(1&c&&i.Gf(re,7),2&c){let B;i.iGM(B=i.CRH())&&(y._dialogEl=B.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,y){2&c&&(i.uIk("aria-modal",!0)("aria-labelledby",y.ariaLabelledBy)("aria-describedby",y.ariaDescribedBy),i.Tol("modal d-block"+(y.windowClass?" "+y.windowClass:"")),i.ekj("fade",y.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:Ni,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(c,y){1&c&&(i.F$t(),i.TgZ(0,"div",0,1),i.TgZ(2,"div",2),i.Hsn(3),i.qZA(),i.qZA()),2&c&&i.Tol("modal-dialog"+(y.size?" modal-"+y.size:"")+(y.centered?" modal-dialog-centered":"")+(y.scrollable?" modal-dialog-scrollable":"")+(y.modalDialogClass?" "+y.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),m})(),Bi=(()=>{class m{constructor(c,y,B,ne,rt,kt){this._applicationRef=c,this._injector=y,this._document=B,this._scrollBar=ne,this._rendererFactory=rt,this._ngZone=kt,this._activeWindowCmptHasChanged=new mn.xQ,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 i.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const Xt=this._windowCmpts[this._windowCmpts.length-1];((m,A,c,y=!1)=>{m.runOutsideAngular(()=>{const B=F(A,"focusin").pipe(An(c),(0,S.U)(ne=>ne.target));F(A,"keydown").pipe(An(c),(0,ye.h)(ne=>ne.which===Vi.Tab),Ae(B)).subscribe(([ne,rt])=>{const[kt,Xt]=Fo(A);(rt===kt||rt===A)&&ne.shiftKey&&(Xt.focus(),ne.preventDefault()),rt===Xt&&!ne.shiftKey&&(kt.focus(),ne.preventDefault())}),y&&F(A,"click").pipe(An(c),Ae(B),(0,S.U)(ne=>ne[1])).subscribe(ne=>ne.focus())})})(this._ngZone,Xt.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(Xt.location.nativeElement)}})}open(c,y,B,ne){const rt=ne.container instanceof HTMLElement?ne.container:w(ne.container)?this._document.querySelector(ne.container):this._document.body,kt=this._rendererFactory.createRenderer(null,null),Xt=this._scrollBar.compensate(),hn=()=>{this._modalRefs.length||(kt.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!rt)throw new Error(`The specified modal container "${ne.container||"body"}" was not found in the DOM.`);const Bn=new Zi,Ti=this._getContentRef(c,ne.injector||y,B,Bn,ne);let ci=!1!==ne.backdrop?this._attachBackdrop(c,rt):void 0,Fi=this._attachWindowComponent(c,rt,Ti),Lr=new ji(Fi,Ti,ci,ne.beforeDismiss);return this._registerModalRef(Lr),this._registerWindowCmpt(Fi),Lr.result.then(Xt,Xt),Lr.result.then(hn,hn),Bn.close=Nr=>{Lr.close(Nr)},Bn.dismiss=Nr=>{Lr.dismiss(Nr)},this._applyWindowOptions(Fi.instance,ne),1===this._modalRefs.length&&kt.addClass(this._document.body,"modal-open"),ci&&ci.instance&&(this._applyBackdropOptions(ci.instance,ne),ci.changeDetectorRef.detectChanges()),Fi.changeDetectorRef.detectChanges(),Lr}get activeInstances(){return this._activeInstances}dismissAll(c){this._modalRefs.forEach(y=>y.dismiss(c))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(c,y){let ne=c.resolveComponentFactory(ri).create(this._injector);return this._applicationRef.attachView(ne.hostView),y.appendChild(ne.location.nativeElement),ne}_attachWindowComponent(c,y,B){let rt=c.resolveComponentFactory(ir).create(this._injector,B.nodes);return this._applicationRef.attachView(rt.hostView),y.appendChild(rt.location.nativeElement),rt}_applyWindowOptions(c,y){this._windowAttributes.forEach(B=>{w(y[B])&&(c[B]=y[B])})}_applyBackdropOptions(c,y){this._backdropAttributes.forEach(B=>{w(y[B])&&(c[B]=y[B])})}_getContentRef(c,y,B,ne,rt){return B?B instanceof i.Rgc?this._createFromTemplateRef(B,ne):function(m){return"string"==typeof m}(B)?this._createFromString(B):this._createFromComponent(c,y,B,ne,rt):new We([])}_createFromTemplateRef(c,y){const ne=c.createEmbeddedView({$implicit:y,close(rt){y.close(rt)},dismiss(rt){y.dismiss(rt)}});return this._applicationRef.attachView(ne),new We([ne.rootNodes],ne)}_createFromString(c){const y=this._document.createTextNode(`${c}`);return new We([[y]])}_createFromComponent(c,y,B,ne,rt){const kt=c.resolveComponentFactory(B),Xt=i.zs3.create({providers:[{provide:Zi,useValue:ne}],parent:y}),hn=kt.create(Xt),Bn=hn.location.nativeElement;return rt.scrollable&&Bn.classList.add("component-host-scrollable"),this._applicationRef.attachView(hn.hostView),new We([[Bn]],hn.hostView,hn)}_setAriaHidden(c){const y=c.parentElement;y&&c!==this._document.body&&(Array.from(y.children).forEach(B=>{B!==c&&"SCRIPT"!==B.nodeName&&(this._ariaHiddenValues.set(B,B.getAttribute("aria-hidden")),B.setAttribute("aria-hidden","true"))}),this._setAriaHidden(y))}_revertAriaHidden(){this._ariaHiddenValues.forEach((c,y)=>{c?y.setAttribute("aria-hidden",c):y.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(c){const y=()=>{const B=this._modalRefs.indexOf(c);B>-1&&(this._modalRefs.splice(B,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(c),this._activeInstances.emit(this._modalRefs),c.result.then(y,y)}_registerWindowCmpt(c){this._windowCmpts.push(c),this._activeWindowCmptHasChanged.next(),c.onDestroy(()=>{const y=this._windowCmpts.indexOf(c);y>-1&&(this._windowCmpts.splice(y,1),this._activeWindowCmptHasChanged.next())})}}return m.\u0275fac=function(c){return new(c||m)(i.LFG(i.z2F),i.LFG(i.zs3),i.LFG(o.K0),i.LFG(qn),i.LFG(i.FYo),i.LFG(i.R0b))},m.\u0275prov=i.Yz7({factory:function(){return new m(i.LFG(i.z2F),i.LFG(i.gxx),i.LFG(o.K0),i.LFG(qn),i.LFG(i.FYo),i.LFG(i.R0b))},token:m,providedIn:"root"}),m})(),fi=(()=>{class m{constructor(c,y,B,ne){this._moduleCFR=c,this._injector=y,this._modalStack=B,this._config=ne}open(c,y={}){const B=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),y);return this._modalStack.open(this._moduleCFR,this._injector,c,B)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(c){this._modalStack.dismissAll(c)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return m.\u0275fac=function(c){return new(c||m)(i.LFG(i._Vd),i.LFG(i.zs3),i.LFG(Bi),i.LFG(Je))},m.\u0275prov=i.Yz7({factory:function(){return new m(i.LFG(i._Vd),i.LFG(i.gxx),i.LFG(Bi),i.LFG(Je))},token:m,providedIn:"root"}),m})(),Fr=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({providers:[fi]}),m})(),mt=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),Yo=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})();class yu{constructor(A,c){this.open=A,this.close=c,c||(this.close=A)}isManual(){return"manual"===this.open||"manual"===this.close}}const ve={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Yt=m=>m>0?ge(m):A=>A;let Ks=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),Ys=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),Xs=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),tl=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),js=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})(),bs=(()=>{class m{constructor(c){this._ngbConfig=c,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(c){this._animation=c}}return m.\u0275fac=function(c){return new(c||m)(i.LFG(Mn))},m.\u0275prov=i.Yz7({factory:function(){return new m(i.LFG(Mn))},token:m,providedIn:"root"}),m})(),da=0,Ba=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275cmp=i.Xpm({type:m,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(c,y){2&c&&(i.Ikx("id",y.id),i.Tol("tooltip"+(y.tooltipClass?" "+y.tooltipClass:"")),i.ekj("fade",y.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Ni,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(c,y){1&c&&(i.F$t(),i._UZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA())},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}),m})(),Ja=(()=>{class m{constructor(c,y,B,ne,rt,kt,Xt,hn,Bn,Ti){this._elementRef=c,this._renderer=y,this._ngZone=Xt,this._document=hn,this._changeDetector=Bn,this.shown=new i.vpe,this.hidden=new i.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+da++,this._windowRef=null,this.animation=kt.animation,this.autoClose=kt.autoClose,this.placement=kt.placement,this.triggers=kt.triggers,this.container=kt.container,this.disableTooltip=kt.disableTooltip,this.tooltipClass=kt.tooltipClass,this.openDelay=kt.openDelay,this.closeDelay=kt.closeDelay,this._popupService=new ut(Ba,B,rt,y,this._ngZone,ne,Ti),this._zoneSubscription=Xt.onStable.subscribe(()=>{this._windowRef&&function(m,A,c,y,B){let ne=Array.isArray(c)?c:c.split(ka);const rt=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],kt=A.classList,Xt=Fi=>{const[Lr,Nr]=Fi.split("-"),eo=[];return B&&(eo.push(`${B}-${Lr}`),Nr&&eo.push(`${B}-${Lr}-${Nr}`),eo.forEach(Jo=>{kt.add(Jo)})),eo};B&&rt.forEach(Fi=>{kt.remove(`${B}-${Fi}`)});let hn=ne.findIndex(Fi=>"auto"===Fi);hn>=0&&rt.forEach(function(Fi){null==ne.find(Lr=>-1!==Lr.search("^"+Fi))&&ne.splice(hn++,1,Fi)});const Bn=A.style;Bn.position="absolute",Bn.top="0",Bn.left="0",Bn["will-change"]="transform";let Ti=null,ci=!1;for(Ti of ne){let Fi=Xt(Ti);if(Ra.positionElements(m,A,Ti,y)){ci=!0;break}B&&Fi.forEach(Lr=>{kt.remove(Lr)})}ci||(Ti=ne[0],Xt(Ti),Ra.positionElements(m,A,Ti,y))}(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(c){this._ngbTooltip=c,!c&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(c){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:y,transition$:B}=this._popupService.open(this._ngbTooltip,c,this.animation);this._windowRef=y,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(m,A,c,y,B,ne,rt,kt){c&&m.runOutsideAngular((m=>Xa?()=>setTimeout(()=>m(),100):m)(()=>{const hn=F(A,"keydown").pipe(An(B),(0,ye.h)(ci=>ci.which===Vi.Escape),(0,se.b)(ci=>ci.preventDefault())),Bn=F(A,"mousedown").pipe((0,S.U)(ci=>{const Fi=ci.target;return 2!==ci.button&&!Io(Fi,rt)&&("inside"===c?Io(Fi,ne)&&xa(Fi,kt):"outside"===c?!Io(Fi,ne):xa(Fi,kt)||!Io(Fi,ne))}),An(B)),Ti=F(A,"mouseup").pipe(Ae(Bn),(0,ye.h)(([ci,Fi])=>Fi),ge(0),An(B));Zn([hn.pipe((0,S.U)(ci=>0)),Ti.pipe((0,S.U)(ci=>1))]).subscribe(ci=>m.run(()=>y(ci)))}))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),B.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(m,A,c,y,B,ne,rt=0,kt=0){const Xt=function(m,A=ve){const c=(m||"").trim();if(0===c.length)return[];const y=c.split(/\s+/).map(ne=>ne.split(":")).map(ne=>{let rt=A[ne[0]]||ne;return new yu(rt[0],rt[1])}),B=y.filter(ne=>ne.isManual());if(B.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===B.length&&y.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return y}(c);if(1===Xt.length&&Xt[0].isManual())return()=>{};const hn=function(m,A,c,y){return new P.y(B=>{const ne=[],rt=()=>B.next(!0),kt=()=>B.next(!1),Xt=()=>B.next(!y());return c.forEach(hn=>{hn.open===hn.close?ne.push(m.listen(A,hn.open,Xt)):ne.push(m.listen(A,hn.open,rt),m.listen(A,hn.close,kt))}),()=>{ne.forEach(hn=>hn())}})}(m,A,Xt,y).pipe(function(m,A,c){return y=>{let B=null;const ne=y.pipe((0,S.U)(Xt=>({open:Xt})),(0,ye.h)(Xt=>{const hn=c();return hn===Xt.open||B&&B.open!==hn?(B&&B.open!==Xt.open&&(B=null),!1):(B=Xt,!0)}),(0,vt.B)()),rt=ne.pipe((0,ye.h)(Xt=>Xt.open),Yt(m)),kt=ne.pipe((0,ye.h)(Xt=>!Xt.open),Yt(A));return(0,ai.T)(rt,kt).pipe((0,ye.h)(Xt=>Xt===B&&(B=null,Xt.open!==c())),(0,S.U)(Xt=>Xt.open))}}(rt,kt,y)).subscribe(Bn=>Bn?B():ne());return()=>hn.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:c}){c&&this.isOpen()&&(this._windowRef.instance.tooltipClass=c.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return m.\u0275fac=function(c){return new(c||m)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.zs3),i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(bs),i.Y36(i.R0b),i.Y36(o.K0),i.Y36(i.sBO),i.Y36(i.z2F))},m.\u0275dir=i.lG2({type:m,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:[i.TTD]}),m})(),Go=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({}),m})();new i.OlP("live announcer delay",{providedIn:"root",factory:function(){return 100}});let qc=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[[o.ez]]}),m})();const zc=[is,nr,Zs,No,Nt,p,Oe,Fr,mt,Yo,Ks,Ys,Xs,tl,js,Go,qc];let $c=(()=>{class m{}return m.\u0275fac=function(c){return new(c||m)},m.\u0275mod=i.oAB({type:m}),m.\u0275inj=i.cJS({imports:[zc,is,nr,Zs,No,Nt,p,Oe,Fr,mt,Yo,Ks,Ys,Xs,tl,js,Go,qc]}),m})()},5935:(Xe,Ee,L)=>{"use strict";L.d(Ee,{Zw:()=>Dt,aw:()=>St,X$:()=>$e,sK:()=>et});var i=L(7716),o=L(7574);function P(Pe){return!!Pe&&(Pe instanceof o.y||"function"==typeof Pe.lift&&"function"==typeof Pe.subscribe)}var s=L(5917),E=L(5758),S=L(8071),Z=L(1439),F=L(9765),z=L(6465),d=L(6102);const st=new class extends d.v{}(class extends z.o{constructor(ye,ie){super(ye,ie),this.scheduler=ye,this.work=ie}schedule(ye,ie=0){return ie>0?super.schedule(ye,ie):(this.delay=ie,this.state=ye,this.scheduler.flush(this),this)}execute(ye,ie){return ie>0||this.closed?super.execute(ye,ie):this._execute(ye,ie)}requestAsyncId(ye,ie,Se=0){return null!==Se&&Se>0||null===Se&&this.delay>0?super.requestAsyncId(ye,ie,Se):ye.flush(this)}});var Te=L(5319),le=L(7393),pt=L(1593);class dn extends le.L{constructor(ye,ie,Se=0){super(ye),this.scheduler=ie,this.delay=Se}static dispatch(ye){const{notification:ie,destination:Se}=ye;ie.observe(Se),this.unsubscribe()}scheduleMessage(ye){this.destination.add(this.scheduler.schedule(dn.dispatch,this.delay,new Zn(ye,this.destination)))}_next(ye){this.scheduleMessage(pt.P.createNext(ye))}_error(ye){this.scheduleMessage(pt.P.createError(ye)),this.unsubscribe()}_complete(){this.scheduleMessage(pt.P.createComplete()),this.unsubscribe()}}class Zn{constructor(ye,ie){this.notification=ye,this.destination=ie}}var Jn=L(7971),zn=L(8858);class J extends F.xQ{constructor(ye=Number.POSITIVE_INFINITY,ie=Number.POSITIVE_INFINITY,Se){super(),this.scheduler=Se,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=ye<1?1:ye,this._windowTime=ie<1?1:ie,ie===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(ye){if(!this.isStopped){const ie=this._events;ie.push(ye),ie.length>this._bufferSize&&ie.shift()}super.next(ye)}nextTimeWindow(ye){this.isStopped||(this._events.push(new _t(this._getNow(),ye)),this._trimBufferThenGetEvents()),super.next(ye)}_subscribe(ye){const ie=this._infiniteTimeWindow,Se=ie?this._events:this._trimBufferThenGetEvents(),_e=this.scheduler,G=Se.length;let se;if(this.closed)throw new Jn.N;if(this.isStopped||this.hasError?se=Te.w.EMPTY:(this.observers.push(ye),se=new zn.W(this,ye)),_e&&ye.add(ye=new dn(ye,_e)),ie)for(let ze=0;zeie&&(se=Math.max(se,G-ie)),se>0&&_e.splice(0,se),_e}}class _t{constructor(ye,ie){this.time=ye,this.value=ie}}function Bt(Pe,ye,ie){let Se;return Se=Pe&&"object"==typeof Pe?Pe:{bufferSize:Pe,windowTime:ye,refCount:!1,scheduler:ie},_e=>_e.lift(function({bufferSize:Pe=Number.POSITIVE_INFINITY,windowTime:ye=Number.POSITIVE_INFINITY,refCount:ie,scheduler:Se}){let _e,se,G=0,ze=!1,vt=!1;return function(Ct){let wn;G++,!_e||ze?(ze=!1,_e=new J(Pe,ye,Se),wn=_e.subscribe(this),se=Ct.subscribe({next(Nn){_e.next(Nn)},error(Nn){ze=!0,_e.error(Nn)},complete(){vt=!0,se=void 0,_e.complete()}})):wn=_e.subscribe(this),this.add(()=>{G--,wn.unsubscribe(),se&&!vt&&ie&&0===G&&(se.unsubscribe(),se=void 0,_e=void 0)})}}(Se))}var At=L(5257),ot=L(8002),Ze=L(4612),wt=L(3190);class Dt{}let Qt=(()=>{class Pe extends Dt{getTranslation(ie){return(0,s.of)({})}}return Pe.\u0275fac=function(){let ye;return function(Se){return(ye||(ye=i.n5z(Pe)))(Se||Pe)}}(),Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Dn{}let Si=(()=>{class Pe{handle(ie){return ie.key}}return Pe.\u0275fac=function(ie){return new(ie||Pe)},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function $n(Pe,ye){if(Pe===ye)return!0;if(null===Pe||null===ye)return!1;if(Pe!=Pe&&ye!=ye)return!0;let _e,G,se,ie=typeof Pe;if(ie==typeof ye&&"object"==ie){if(!Array.isArray(Pe)){if(Array.isArray(ye))return!1;for(G in se=Object.create(null),Pe){if(!$n(Pe[G],ye[G]))return!1;se[G]=!0}for(G in ye)if(!(G in se)&&void 0!==ye[G])return!1;return!0}if(!Array.isArray(ye))return!1;if((_e=Pe.length)==ye.length){for(G=0;G<_e;G++)if(!$n(Pe[G],ye[G]))return!1;return!0}}return!1}function mn(Pe){return null!=Pe}function _i(Pe){return Pe&&"object"==typeof Pe&&!Array.isArray(Pe)}function Sn(Pe,ye){let ie=Object.assign({},Pe);return _i(Pe)&&_i(ye)&&Object.keys(ye).forEach(Se=>{_i(ye[Se])?Se in Pe?ie[Se]=Sn(Pe[Se],ye[Se]):Object.assign(ie,{[Se]:ye[Se]}):Object.assign(ie,{[Se]:ye[Se]})}),ie}class ai{}let di=(()=>{class Pe extends ai{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(ie,Se){let _e;return _e="string"==typeof ie?this.interpolateString(ie,Se):"function"==typeof ie?this.interpolateFunction(ie,Se):ie,_e}getValue(ie,Se){let _e="string"==typeof Se?Se.split("."):[Se];Se="";do{Se+=_e.shift(),!mn(ie)||!mn(ie[Se])||"object"!=typeof ie[Se]&&_e.length?_e.length?Se+=".":ie=void 0:(ie=ie[Se],Se="")}while(_e.length);return ie}interpolateFunction(ie,Se){return ie(Se)}interpolateString(ie,Se){return Se?ie.replace(this.templateMatcher,(_e,G)=>{let se=this.getValue(Se,G);return mn(se)?se:_e}):ie}}return Pe.\u0275fac=function(){let ye;return function(Se){return(ye||(ye=i.n5z(Pe)))(Se||Pe)}}(),Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class $t{}let An=(()=>{class Pe extends $t{compile(ie,Se){return ie}compileTranslations(ie,Se){return ie}}return Pe.\u0275fac=function(){let ye;return function(Se){return(ye||(ye=i.n5z(Pe)))(Se||Pe)}}(),Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Me{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Et=new i.OlP("USE_STORE"),Ae=new i.OlP("USE_DEFAULT_LANG"),lt=new i.OlP("DEFAULT_LANGUAGE"),Ne=new i.OlP("USE_EXTEND");let et=(()=>{class Pe{constructor(ie,Se,_e,G,se,ze=!0,vt=!1,Pt=!1,Ct){this.store=ie,this.currentLoader=Se,this.compiler=_e,this.parser=G,this.missingTranslationHandler=se,this.useDefaultLang=ze,this.isolate=vt,this.extend=Pt,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},Ct&&this.setDefaultLang(Ct)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ie){this.isolate?this._defaultLang=ie:this.store.defaultLang=ie}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ie){this.isolate?this._currentLang=ie:this.store.currentLang=ie}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ie){this.isolate?this._langs=ie:this.store.langs=ie}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ie){this.isolate?this._translations=ie:this.store.translations=ie}setDefaultLang(ie){if(ie===this.defaultLang)return;let Se=this.retrieveTranslations(ie);void 0!==Se?(null==this.defaultLang&&(this.defaultLang=ie),Se.pipe((0,At.q)(1)).subscribe(_e=>{this.changeDefaultLang(ie)})):this.changeDefaultLang(ie)}getDefaultLang(){return this.defaultLang}use(ie){if(ie===this.currentLang)return(0,s.of)(this.translations[ie]);let Se=this.retrieveTranslations(ie);return void 0!==Se?(this.currentLang||(this.currentLang=ie),Se.pipe((0,At.q)(1)).subscribe(_e=>{this.changeLang(ie)}),Se):(this.changeLang(ie),(0,s.of)(this.translations[ie]))}retrieveTranslations(ie){let Se;return(void 0===this.translations[ie]||this.extend)&&(this._translationRequests[ie]=this._translationRequests[ie]||this.getTranslation(ie),Se=this._translationRequests[ie]),Se}getTranslation(ie){this.pending=!0;const Se=this.currentLoader.getTranslation(ie).pipe(Bt(1),(0,At.q)(1));return this.loadingTranslations=Se.pipe((0,ot.U)(_e=>this.compiler.compileTranslations(_e,ie)),Bt(1),(0,At.q)(1)),this.loadingTranslations.subscribe({next:_e=>{this.translations[ie]=this.extend&&this.translations[ie]?Object.assign(Object.assign({},_e),this.translations[ie]):_e,this.updateLangs(),this.pending=!1},error:_e=>{this.pending=!1}}),Se}setTranslation(ie,Se,_e=!1){Se=this.compiler.compileTranslations(Se,ie),this.translations[ie]=(_e||this.extend)&&this.translations[ie]?Sn(this.translations[ie],Se):Se,this.updateLangs(),this.onTranslationChange.emit({lang:ie,translations:this.translations[ie]})}getLangs(){return this.langs}addLangs(ie){ie.forEach(Se=>{-1===this.langs.indexOf(Se)&&this.langs.push(Se)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ie,Se,_e){let G;if(Se instanceof Array){let se={},ze=!1;for(let vt of Se)se[vt]=this.getParsedResult(ie,vt,_e),P(se[vt])&&(ze=!0);if(ze){const vt=Se.map(Pt=>P(se[Pt])?se[Pt]:(0,s.of)(se[Pt]));return(0,E.D)(vt).pipe((0,ot.U)(Pt=>{let Ct={};return Pt.forEach((wn,Nn)=>{Ct[Se[Nn]]=wn}),Ct}))}return se}if(ie&&(G=this.parser.interpolate(this.parser.getValue(ie,Se),_e)),void 0===G&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(G=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Se),_e)),void 0===G){let se={key:Se,translateService:this};void 0!==_e&&(se.interpolateParams=_e),G=this.missingTranslationHandler.handle(se)}return void 0!==G?G:Se}get(ie,Se){if(!mn(ie)||!ie.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ze.b)(_e=>P(_e=this.getParsedResult(_e,ie,Se))?_e:(0,s.of)(_e)));{let _e=this.getParsedResult(this.translations[this.currentLang],ie,Se);return P(_e)?_e:(0,s.of)(_e)}}getStreamOnTranslationChange(ie,Se){if(!mn(ie)||!ie.length)throw new Error('Parameter "key" required');return(0,S.z)((0,Z.P)(()=>this.get(ie,Se)),this.onTranslationChange.pipe((0,wt.w)(_e=>{const G=this.getParsedResult(_e.translations,ie,Se);return"function"==typeof G.subscribe?G:(0,s.of)(G)})))}stream(ie,Se){if(!mn(ie)||!ie.length)throw new Error('Parameter "key" required');return(0,S.z)((0,Z.P)(()=>this.get(ie,Se)),this.onLangChange.pipe((0,wt.w)(_e=>{const G=this.getParsedResult(_e.translations,ie,Se);return P(G)?G:(0,s.of)(G)})))}instant(ie,Se){if(!mn(ie)||!ie.length)throw new Error('Parameter "key" required');let _e=this.getParsedResult(this.translations[this.currentLang],ie,Se);if(P(_e)){if(ie instanceof Array){let G={};return ie.forEach((se,ze)=>{G[ie[ze]]=ie[ze]}),G}return ie}return _e}set(ie,Se,_e=this.currentLang){this.translations[_e][ie]=this.compiler.compile(Se,_e),this.updateLangs(),this.onTranslationChange.emit({lang:_e,translations:this.translations[_e]})}changeLang(ie){this.currentLang=ie,this.onLangChange.emit({lang:ie,translations:this.translations[ie]}),null==this.defaultLang&&this.changeDefaultLang(ie)}changeDefaultLang(ie){this.defaultLang=ie,this.onDefaultLangChange.emit({lang:ie,translations:this.translations[ie]})}reloadLang(ie){return this.resetLang(ie),this.getTranslation(ie)}resetLang(ie){this._translationRequests[ie]=void 0,this.translations[ie]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let ie=window.navigator.languages?window.navigator.languages[0]:null;return ie=ie||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==ie?(-1!==ie.indexOf("-")&&(ie=ie.split("-")[0]),-1!==ie.indexOf("_")&&(ie=ie.split("_")[0]),ie):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let ie=window.navigator.languages?window.navigator.languages[0]:null;return ie=ie||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ie}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(i.LFG(Me),i.LFG(Dt),i.LFG($t),i.LFG(ai),i.LFG(Dn),i.LFG(Ae),i.LFG(Et),i.LFG(Ne),i.LFG(lt))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),$e=(()=>{class Pe{constructor(ie,Se){this.translate=ie,this._ref=Se,this.value=""}updateValue(ie,Se,_e){let G=se=>{this.value=void 0!==se?se:ie,this.lastKey=ie,this._ref.markForCheck()};if(_e){let se=this.translate.getParsedResult(_e,ie,Se);P(se.subscribe)?se.subscribe(G):G(se)}this.translate.get(ie,Se).subscribe(G)}transform(ie,...Se){if(!ie||!ie.length)return ie;if($n(ie,this.lastKey)&&$n(Se,this.lastParams))return this.value;let _e;if(mn(Se[0])&&Se.length)if("string"==typeof Se[0]&&Se[0].length){let G=Se[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{_e=JSON.parse(G)}catch(se){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Se[0]}`)}}else"object"==typeof Se[0]&&!Array.isArray(Se[0])&&(_e=Se[0]);return this.lastKey=ie,this.lastParams=Se,this.updateValue(ie,_e),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(G=>{this.lastKey&&G.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ie,_e,G.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(G=>{this.lastKey&&(this.lastKey=null,this.updateValue(ie,_e,G.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ie,_e))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Pe.\u0275fac=function(ie){return new(ie||Pe)(i.Y36(et,16),i.Y36(i.sBO,16))},Pe.\u0275pipe=i.Yjl({name:"translate",type:Pe,pure:!1}),Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),St=(()=>{class Pe{static forRoot(ie={}){return{ngModule:Pe,providers:[ie.loader||{provide:Dt,useClass:Qt},ie.compiler||{provide:$t,useClass:An},ie.parser||{provide:ai,useClass:di},ie.missingTranslationHandler||{provide:Dn,useClass:Si},Me,{provide:Et,useValue:ie.isolate},{provide:Ae,useValue:ie.useDefaultLang},{provide:Ne,useValue:ie.extend},{provide:lt,useValue:ie.defaultLanguage},et]}}static forChild(ie={}){return{ngModule:Pe,providers:[ie.loader||{provide:Dt,useClass:Qt},ie.compiler||{provide:$t,useClass:An},ie.parser||{provide:ai,useClass:di},ie.missingTranslationHandler||{provide:Dn,useClass:Si},{provide:Et,useValue:ie.isolate},{provide:Ae,useValue:ie.useDefaultLang},{provide:Ne,useValue:ie.extend},{provide:lt,useValue:ie.defaultLanguage},et]}}}return Pe.\u0275fac=function(ie){return new(ie||Pe)},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({}),Pe})()},2472:(Xe,Ee,L)=>{"use strict";L.d(Ee,{w:()=>i});class i{constructor(P,s="/assets/i18n/",E=".json"){this.http=P,this.prefix=s,this.suffix=E}getTranslation(P){return this.http.get(`${this.prefix}${P}${this.suffix}`)}}},8609:(Xe,Ee,L)=>{"use strict";L.d(Ee,{Eb:()=>fn,lG:()=>st});var i=L(7716),o=L(9765),P=L(8583);class q{constructor(ot={}){this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==ot.theme&&(this.theme=ot.theme),void 0!==ot.animations&&(void 0!==ot.animations.enabled&&(this.animations.enabled=ot.animations.enabled),void 0!==ot.animations.overlap&&(this.animations.overlap=ot.animations.overlap),void 0!==ot.animations.hide&&Object.assign(this.animations.hide,ot.animations.hide),void 0!==ot.animations.shift&&Object.assign(this.animations.shift,ot.animations.shift),void 0!==ot.animations.show&&Object.assign(this.animations.show,ot.animations.show)),void 0!==ot.behaviour&&Object.assign(this.behaviour,ot.behaviour),void 0!==ot.position&&(void 0!==ot.position.horizontal&&Object.assign(this.position.horizontal,ot.position.horizontal),void 0!==ot.position.vertical&&Object.assign(this.position.vertical,ot.position.vertical))}}const d=new i.OlP("[angular-notifier] Notifier Options"),oe=new i.OlP("[anuglar-notifier] Notifier Config");let De=(()=>{class At{constructor(){this.actionStream=new o.xQ,this.actionQueue=[],this.isActionInProgress=!1}push(Ze){this.actionQueue.push(Ze),this.tryToRunNextAction()}continue(){this.isActionInProgress=!1,this.tryToRunNextAction()}tryToRunNextAction(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))}}return At.\u0275fac=function(Ze){return new(Ze||At)},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})(),st=(()=>{class At{constructor(Ze,wt){this.queueService=Ze,this.config=wt}getConfig(){return this.config}get actionStream(){return this.queueService.actionStream.asObservable()}show(Ze){this.queueService.push({payload:Ze,type:"SHOW"})}hide(Ze){this.queueService.push({payload:Ze,type:"HIDE"})}hideNewest(){this.queueService.push({type:"HIDE_NEWEST"})}hideOldest(){this.queueService.push({type:"HIDE_OLDEST"})}hideAll(){this.queueService.push({type:"HIDE_ALL"})}notify(Ze,wt,Dt){const Qt={message:wt,type:Ze};void 0!==Dt&&(Qt.id=Dt),this.show(Qt)}}return At.\u0275fac=function(Ze){return new(Ze||At)(i.LFG(De),i.LFG(oe))},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})();const He={hide:()=>({from:{opacity:"1"},to:{opacity:"0"}}),show:()=>({from:{opacity:"0"},to:{opacity:"1"}})},Zn={hide:At=>{const ot=At.component.getConfig(),Ze=At.component.getShift();let wt,Dt;if("left"===ot.position.horizontal.position)wt={transform:`translate3d( 0, ${Ze}px, 0 )`},Dt={transform:`translate3d( calc( -100% - ${ot.position.horizontal.distance}px - 10px ), ${Ze}px, 0 )`};else if("right"===ot.position.horizontal.position)wt={transform:`translate3d( 0, ${Ze}px, 0 )`},Dt={transform:`translate3d( calc( 100% + ${ot.position.horizontal.distance}px + 10px ), ${Ze}px, 0 )`};else{let Qt;Qt="top"===ot.position.vertical.position?`calc( -100% - ${ot.position.horizontal.distance}px - 10px )`:`calc( 100% + ${ot.position.horizontal.distance}px + 10px )`,wt={transform:`translate3d( -50%, ${Ze}px, 0 )`},Dt={transform:`translate3d( -50%, ${Qt}, 0 )`}}return{from:wt,to:Dt}},show:At=>{const ot=At.component.getConfig();let Ze,wt;if("left"===ot.position.horizontal.position)Ze={transform:`translate3d( calc( -100% - ${ot.position.horizontal.distance}px - 10px ), 0, 0 )`},wt={transform:"translate3d( 0, 0, 0 )"};else if("right"===ot.position.horizontal.position)Ze={transform:`translate3d( calc( 100% + ${ot.position.horizontal.distance}px + 10px ), 0, 0 )`},wt={transform:"translate3d( 0, 0, 0 )"};else{let Dt;Dt="top"===ot.position.vertical.position?`calc( -100% - ${ot.position.horizontal.distance}px - 10px )`:`calc( 100% + ${ot.position.horizontal.distance}px + 10px )`,Ze={transform:`translate3d( -50%, ${Dt}, 0 )`},wt={transform:"translate3d( -50%, 0, 0 )"}}return{from:Ze,to:wt}}};let Jn=(()=>{class At{constructor(){this.animationPresets={fade:He,slide:Zn}}getAnimationData(Ze,wt){let Dt,Qt,Ln;return"show"===Ze?(Dt=this.animationPresets[wt.component.getConfig().animations.show.preset].show(wt),Qt=wt.component.getConfig().animations.show.speed,Ln=wt.component.getConfig().animations.show.easing):(Dt=this.animationPresets[wt.component.getConfig().animations.hide.preset].hide(wt),Qt=wt.component.getConfig().animations.hide.speed,Ln=wt.component.getConfig().animations.hide.easing),{keyframes:[Dt.from,Dt.to],options:{duration:Qt,easing:Ln,fill:"forwards"}}}}return At.\u0275fac=function(Ze){return new(Ze||At)},At.\u0275prov=i.Yz7({token:At,factory:At.\u0275fac}),At})();function _t(At){return new q(At)}function Bt(){return new q({})}let fn=(()=>{class At{static withConfig(Ze={}){return{ngModule:At,providers:[{provide:d,useValue:Ze},{deps:[d],provide:oe,useFactory:_t}]}}}return At.\u0275fac=function(Ze){return new(Ze||At)},At.\u0275mod=i.oAB({type:At}),At.\u0275inj=i.cJS({providers:[Jn,st,De,{provide:oe,useFactory:Bt}],imports:[[P.ez]]}),At})()},6823:function(Xe,Ee,L){Xe.exports=function(i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},E=function(r,l){return r(l={exports:{}},l.exports),l.exports}(function(r){var l={};for(var h in s)s.hasOwnProperty(h)&&(l[s[h]]=h);var p=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var M in p)if(p.hasOwnProperty(M)){if(!("channels"in p[M]))throw new Error("missing channels property: "+M);if(!("labels"in p[M]))throw new Error("missing channel labels property: "+M);if(p[M].labels.length!==p[M].channels)throw new Error("channel and label counts mismatch: "+M);var O=p[M].channels,R=p[M].labels;delete p[M].channels,delete p[M].labels,Object.defineProperty(p[M],"channels",{value:O}),Object.defineProperty(p[M],"labels",{value:R})}function W(H,X){return Math.pow(H[0]-X[0],2)+Math.pow(H[1]-X[1],2)+Math.pow(H[2]-X[2],2)}p.rgb.hsl=function(H){var ut,an,X=H[0]/255,ae=H[1]/255,de=H[2]/255,Oe=Math.min(X,ae,de),Je=Math.max(X,ae,de),We=Je-Oe;return Je===Oe?ut=0:X===Je?ut=(ae-de)/We:ae===Je?ut=2+(de-X)/We:de===Je&&(ut=4+(X-ae)/We),(ut=Math.min(60*ut,360))<0&&(ut+=360),an=(Oe+Je)/2,[ut,100*(Je===Oe?0:an<=.5?We/(Je+Oe):We/(2-Je-Oe)),100*an]},p.rgb.hsv=function(H){var X,ae,de,Oe,Je,We=H[0]/255,ut=H[1]/255,Ot=H[2]/255,an=Math.max(We,ut,Ot),qn=an-Math.min(We,ut,Ot),ri=function(Zi){return(an-Zi)/6/qn+.5};return 0===qn?Oe=Je=0:(Je=qn/an,X=ri(We),ae=ri(ut),de=ri(Ot),We===an?Oe=de-ae:ut===an?Oe=1/3+X-de:Ot===an&&(Oe=2/3+ae-X),Oe<0?Oe+=1:Oe>1&&(Oe-=1)),[360*Oe,100*Je,100*an]},p.rgb.hwb=function(H){var X=H[0],ae=H[1],de=H[2];return[p.rgb.hsl(H)[0],1/255*Math.min(X,Math.min(ae,de))*100,100*(de=1-1/255*Math.max(X,Math.max(ae,de)))]},p.rgb.cmyk=function(H){var ut,X=H[0]/255,ae=H[1]/255,de=H[2]/255;return[100*((1-X-(ut=Math.min(1-X,1-ae,1-de)))/(1-ut)||0),100*((1-ae-ut)/(1-ut)||0),100*((1-de-ut)/(1-ut)||0),100*ut]},p.rgb.keyword=function(H){var X=l[H];if(X)return X;var de,ae=1/0;for(var Oe in s)if(s.hasOwnProperty(Oe)){var We=W(H,s[Oe]);We.04045?Math.pow((X+.055)/1.055,2.4):X/12.92)+.3576*(ae=ae>.04045?Math.pow((ae+.055)/1.055,2.4):ae/12.92)+.1805*(de=de>.04045?Math.pow((de+.055)/1.055,2.4):de/12.92)),100*(.2126*X+.7152*ae+.0722*de),100*(.0193*X+.1192*ae+.9505*de)]},p.rgb.lab=function(H){var X=p.rgb.xyz(H),ae=X[0],de=X[1],Oe=X[2];return de/=100,Oe/=108.883,ae=(ae/=95.047)>.008856?Math.pow(ae,1/3):7.787*ae+16/116,[116*(de=de>.008856?Math.pow(de,1/3):7.787*de+16/116)-16,500*(ae-de),200*(de-(Oe=Oe>.008856?Math.pow(Oe,1/3):7.787*Oe+16/116))]},p.hsl.rgb=function(H){var Oe,Je,We,ut,Ot,X=H[0]/360,ae=H[1]/100,de=H[2]/100;if(0===ae)return[Ot=255*de,Ot,Ot];Oe=2*de-(Je=de<.5?de*(1+ae):de+ae-de*ae),ut=[0,0,0];for(var an=0;an<3;an++)(We=X+1/3*-(an-1))<0&&We++,We>1&&We--,ut[an]=255*(Ot=6*We<1?Oe+6*(Je-Oe)*We:2*We<1?Je:3*We<2?Oe+(Je-Oe)*(2/3-We)*6:Oe);return ut},p.hsl.hsv=function(H){var X=H[0],ae=H[1]/100,de=H[2]/100,Oe=ae,Je=Math.max(de,.01);return ae*=(de*=2)<=1?de:2-de,Oe*=Je<=1?Je:2-Je,[X,100*(0===de?2*Oe/(Je+Oe):2*ae/(de+ae)),(de+ae)/2*100]},p.hsv.rgb=function(H){var X=H[0]/60,ae=H[1]/100,de=H[2]/100,Oe=Math.floor(X)%6,Je=X-Math.floor(X),We=255*de*(1-ae),ut=255*de*(1-ae*Je),Ot=255*de*(1-ae*(1-Je));switch(de*=255,Oe){case 0:return[de,Ot,We];case 1:return[ut,de,We];case 2:return[We,de,Ot];case 3:return[We,ut,de];case 4:return[Ot,We,de];case 5:return[de,We,ut]}},p.hsv.hsl=function(H){var Je,We,ut,X=H[0],ae=H[1]/100,de=H[2]/100,Oe=Math.max(de,.01);return ut=(2-ae)*de,We=ae*Oe,[X,100*(We=(We/=(Je=(2-ae)*Oe)<=1?Je:2-Je)||0),100*(ut/=2)]},p.hwb.rgb=function(H){var Je,We,ut,Ot,an,qn,ri,X=H[0]/360,ae=H[1]/100,de=H[2]/100,Oe=ae+de;switch(Oe>1&&(ae/=Oe,de/=Oe),ut=6*X-(Je=Math.floor(6*X)),0!=(1&Je)&&(ut=1-ut),Ot=ae+ut*((We=1-de)-ae),Je){default:case 6:case 0:an=We,qn=Ot,ri=ae;break;case 1:an=Ot,qn=We,ri=ae;break;case 2:an=ae,qn=We,ri=Ot;break;case 3:an=ae,qn=Ot,ri=We;break;case 4:an=Ot,qn=ae,ri=We;break;case 5:an=We,qn=ae,ri=Ot}return[255*an,255*qn,255*ri]},p.cmyk.rgb=function(H){var ae=H[1]/100,de=H[2]/100,Oe=H[3]/100;return[255*(1-Math.min(1,H[0]/100*(1-Oe)+Oe)),255*(1-Math.min(1,ae*(1-Oe)+Oe)),255*(1-Math.min(1,de*(1-Oe)+Oe))]},p.xyz.rgb=function(H){var Oe,Je,We,X=H[0]/100,ae=H[1]/100,de=H[2]/100;return Je=-.9689*X+1.8758*ae+.0415*de,We=.0557*X+-.204*ae+1.057*de,Oe=(Oe=3.2406*X+-1.5372*ae+-.4986*de)>.0031308?1.055*Math.pow(Oe,1/2.4)-.055:12.92*Oe,Je=Je>.0031308?1.055*Math.pow(Je,1/2.4)-.055:12.92*Je,We=We>.0031308?1.055*Math.pow(We,1/2.4)-.055:12.92*We,[255*(Oe=Math.min(Math.max(0,Oe),1)),255*(Je=Math.min(Math.max(0,Je),1)),255*(We=Math.min(Math.max(0,We),1))]},p.xyz.lab=function(H){var X=H[0],ae=H[1],de=H[2];return ae/=100,de/=108.883,X=(X/=95.047)>.008856?Math.pow(X,1/3):7.787*X+16/116,[116*(ae=ae>.008856?Math.pow(ae,1/3):7.787*ae+16/116)-16,500*(X-ae),200*(ae-(de=de>.008856?Math.pow(de,1/3):7.787*de+16/116))]},p.lab.xyz=function(H){var Oe,Je,We;Oe=H[1]/500+(Je=(H[0]+16)/116),We=Je-H[2]/200;var ut=Math.pow(Je,3),Ot=Math.pow(Oe,3),an=Math.pow(We,3);return Je=ut>.008856?ut:(Je-16/116)/7.787,Oe=Ot>.008856?Ot:(Oe-16/116)/7.787,We=an>.008856?an:(We-16/116)/7.787,[Oe*=95.047,Je*=100,We*=108.883]},p.lab.lch=function(H){var Je,X=H[0],ae=H[1],de=H[2];return(Je=360*Math.atan2(de,ae)/2/Math.PI)<0&&(Je+=360),[X,Math.sqrt(ae*ae+de*de),Je]},p.lch.lab=function(H){var We,ae=H[1];return We=H[2]/360*2*Math.PI,[H[0],ae*Math.cos(We),ae*Math.sin(We)]},p.rgb.ansi16=function(H){var X=H[0],ae=H[1],de=H[2],Oe=1 in arguments?arguments[1]:p.rgb.hsv(H)[2];if(0===(Oe=Math.round(Oe/50)))return 30;var Je=30+(Math.round(de/255)<<2|Math.round(ae/255)<<1|Math.round(X/255));return 2===Oe&&(Je+=60),Je},p.hsv.ansi16=function(H){return p.rgb.ansi16(p.hsv.rgb(H),H[2])},p.rgb.ansi256=function(H){var X=H[0],ae=H[1],de=H[2];return X===ae&&ae===de?X<8?16:X>248?231:Math.round((X-8)/247*24)+232:16+36*Math.round(X/255*5)+6*Math.round(ae/255*5)+Math.round(de/255*5)},p.ansi16.rgb=function(H){var X=H%10;if(0===X||7===X)return H>50&&(X+=3.5),[X=X/10.5*255,X,X];var ae=.5*(1+~~(H>50));return[(1&X)*ae*255,(X>>1&1)*ae*255,(X>>2&1)*ae*255]},p.ansi256.rgb=function(H){if(H>=232){var X=10*(H-232)+8;return[X,X,X]}var ae;return H-=16,[Math.floor(H/36)/5*255,Math.floor((ae=H%36)/6)/5*255,ae%6/5*255]},p.rgb.hex=function(H){var ae=(((255&Math.round(H[0]))<<16)+((255&Math.round(H[1]))<<8)+(255&Math.round(H[2]))).toString(16).toUpperCase();return"000000".substring(ae.length)+ae},p.hex.rgb=function(H){var X=H.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!X)return[0,0,0];var ae=X[0];3===X[0].length&&(ae=ae.split("").map(function(ut){return ut+ut}).join(""));var de=parseInt(ae,16);return[de>>16&255,de>>8&255,255&de]},p.rgb.hcg=function(H){var Ot,X=H[0]/255,ae=H[1]/255,de=H[2]/255,Oe=Math.max(Math.max(X,ae),de),Je=Math.min(Math.min(X,ae),de),We=Oe-Je;return Ot=We<=0?0:Oe===X?(ae-de)/We%6:Oe===ae?2+(de-X)/We:4+(X-ae)/We+4,Ot/=6,[360*(Ot%=1),100*We,100*(We<1?Je/(1-We):0)]},p.hsl.hcg=function(H){var de,X=H[1]/100,ae=H[2]/100,Oe=0;return(de=ae<.5?2*X*ae:2*X*(1-ae))<1&&(Oe=(ae-.5*de)/(1-de)),[H[0],100*de,100*Oe]},p.hsv.hcg=function(H){var ae=H[2]/100,de=H[1]/100*ae,Oe=0;return de<1&&(Oe=(ae-de)/(1-de)),[H[0],100*de,100*Oe]},p.hcg.rgb=function(H){var ae=H[1]/100,de=H[2]/100;if(0===ae)return[255*de,255*de,255*de];var Ot,Oe=[0,0,0],Je=H[0]/360%1*6,We=Je%1,ut=1-We;switch(Math.floor(Je)){case 0:Oe[0]=1,Oe[1]=We,Oe[2]=0;break;case 1:Oe[0]=ut,Oe[1]=1,Oe[2]=0;break;case 2:Oe[0]=0,Oe[1]=1,Oe[2]=We;break;case 3:Oe[0]=0,Oe[1]=ut,Oe[2]=1;break;case 4:Oe[0]=We,Oe[1]=0,Oe[2]=1;break;default:Oe[0]=1,Oe[1]=0,Oe[2]=ut}return[255*(ae*Oe[0]+(Ot=(1-ae)*de)),255*(ae*Oe[1]+Ot),255*(ae*Oe[2]+Ot)]},p.hcg.hsv=function(H){var X=H[1]/100,de=X+H[2]/100*(1-X),Oe=0;return de>0&&(Oe=X/de),[H[0],100*Oe,100*de]},p.hcg.hsl=function(H){var X=H[1]/100,de=H[2]/100*(1-X)+.5*X,Oe=0;return de>0&&de<.5?Oe=X/(2*de):de>=.5&&de<1&&(Oe=X/(2*(1-de))),[H[0],100*Oe,100*de]},p.hcg.hwb=function(H){var X=H[1]/100,de=X+H[2]/100*(1-X);return[H[0],100*(de-X),100*(1-de)]},p.hwb.hcg=function(H){var de=1-H[2]/100,Oe=de-H[1]/100,Je=0;return Oe<1&&(Je=(de-Oe)/(1-Oe)),[H[0],100*Oe,100*Je]},p.apple.rgb=function(H){return[H[0]/65535*255,H[1]/65535*255,H[2]/65535*255]},p.rgb.apple=function(H){return[H[0]/255*65535,H[1]/255*65535,H[2]/255*65535]},p.gray.rgb=function(H){return[H[0]/100*255,H[0]/100*255,H[0]/100*255]},p.gray.hsl=p.gray.hsv=function(H){return[0,0,H[0]]},p.gray.hwb=function(H){return[0,100,H[0]]},p.gray.cmyk=function(H){return[0,0,0,H[0]]},p.gray.lab=function(H){return[H[0],0,0]},p.gray.hex=function(H){var X=255&Math.round(H[0]/100*255),de=((X<<16)+(X<<8)+X).toString(16).toUpperCase();return"000000".substring(de.length)+de},p.rgb.gray=function(H){return[(H[0]+H[1]+H[2])/3/255*100]}});function Jn(r){var l=function(){for(var r={},l=Object.keys(E),h=l.length,p=0;p1&&(h=Array.prototype.slice.call(arguments));var p=r(h);if("object"==typeof p)for(var M=p.length,O=0;O1&&(h=Array.prototype.slice.call(arguments)),r(h))};return"conversion"in r&&(l.conversion=r.conversion),l}(M)})});var Ze=Bt,wt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Dt={getRgba:Qt,getHsla:Ln,getRgb:function(r){var l=Qt(r);return l&&l.slice(0,3)},getHsl:function(r){var l=Ln(r);return l&&l.slice(0,3)},getHwb:Dn,getAlpha:function(r){var l=Qt(r);return l||(l=Ln(r))||(l=Dn(r))?l[3]:void 0},hexString:function(r,l){return l=void 0!==l&&3===r.length?l:r[3],"#"+Ne(r[0])+Ne(r[1])+Ne(r[2])+(l>=0&&l<1?Ne(Math.round(255*l)):"")},rgbString:function(r,l){return l<1||r[3]&&r[3]<1?ai(r,l):"rgb("+r[0]+", "+r[1]+", "+r[2]+")"},rgbaString:ai,percentString:function(r,l){return l<1||r[3]&&r[3]<1?$t(r,l):"rgb("+Math.round(r[0]/255*100)+"%, "+Math.round(r[1]/255*100)+"%, "+Math.round(r[2]/255*100)+"%)"},percentaString:$t,hslString:function(r,l){return l<1||r[3]&&r[3]<1?Me(r,l):"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)"},hslaString:Me,hwbString:function(r,l){return void 0===l&&(l=void 0!==r[3]?r[3]:1),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+(void 0!==l&&1!==l?", "+l:"")+")"},keyword:function(r){return Ie[r.slice(0,3)]}};function Qt(r){if(r){var R=[0,0,0],W=1,H=r.match(/^#([a-fA-F0-9]{3,4})$/i),X="";if(H){X=(H=H[1])[3];for(var ae=0;aeh?(l+.05)/(h+.05):(h+.05)/(l+.05)},level:function(r){var l=this.contrast(r);return l>=7.1?"AAA":l>=4.5?"AA":""},dark:function(){var r=this.values.rgb;return(299*r[0]+587*r[1]+114*r[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var r=[],l=0;l<3;l++)r[l]=255-this.values.rgb[l];return this.setValues("rgb",r),this},lighten:function(r){var l=this.values.hsl;return l[2]+=l[2]*r,this.setValues("hsl",l),this},darken:function(r){var l=this.values.hsl;return l[2]-=l[2]*r,this.setValues("hsl",l),this},saturate:function(r){var l=this.values.hsl;return l[1]+=l[1]*r,this.setValues("hsl",l),this},desaturate:function(r){var l=this.values.hsl;return l[1]-=l[1]*r,this.setValues("hsl",l),this},whiten:function(r){var l=this.values.hwb;return l[1]+=l[1]*r,this.setValues("hwb",l),this},blacken:function(r){var l=this.values.hwb;return l[2]+=l[2]*r,this.setValues("hwb",l),this},greyscale:function(){var r=this.values.rgb,l=.3*r[0]+.59*r[1]+.11*r[2];return this.setValues("rgb",[l,l,l]),this},clearer:function(r){var l=this.values.alpha;return this.setValues("alpha",l-l*r),this},opaquer:function(r){var l=this.values.alpha;return this.setValues("alpha",l+l*r),this},rotate:function(r){var l=this.values.hsl,h=(l[0]+r)%360;return l[0]=h<0?360+h:h,this.setValues("hsl",l),this},mix:function(r,l){var h=this,p=r,M=void 0===l?.5:l,O=2*M-1,R=h.alpha()-p.alpha(),W=((O*R==-1?O:(O+R)/(1+O*R))+1)/2,H=1-W;return this.rgb(W*h.red()+H*p.red(),W*h.green()+H*p.green(),W*h.blue()+H*p.blue()).alpha(h.alpha()*M+p.alpha()*(1-M))},toJSON:function(){return this.rgb()},clone:function(){var p,M,r=new ge,l=this.values,h=r.values;for(var O in l)l.hasOwnProperty(O)&&("[object Array]"===(M={}.toString.call(p=l[O]))?h[O]=p.slice(0):"[object Number]"===M?h[O]=p:console.error("unexpected color value:",p));return r}},ge.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},ge.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},ge.prototype.getValues=function(r){for(var l=this.values,h={},p=0;p=0;M--)l.call(h,r[M],M);else for(M=0;M=1?r:-(Math.sqrt(1-r*r)-1)},easeOutCirc:function(r){return Math.sqrt(1-(r-=1)*r)},easeInOutCirc:function(r){return(r/=.5)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},easeInElastic:function(r){var l=1.70158,h=0,p=1;return 0===r?0:1===r?1:(h||(h=.3),p<1?(p=1,l=h/4):l=h/(2*Math.PI)*Math.asin(1/p),-p*Math.pow(2,10*(r-=1))*Math.sin((r-l)*(2*Math.PI)/h))},easeOutElastic:function(r){var l=1.70158,h=0,p=1;return 0===r?0:1===r?1:(h||(h=.3),p<1?(p=1,l=h/4):l=h/(2*Math.PI)*Math.asin(1/p),p*Math.pow(2,-10*r)*Math.sin((r-l)*(2*Math.PI)/h)+1)},easeInOutElastic:function(r){var l=1.70158,h=0,p=1;return 0===r?0:2==(r/=.5)?1:(h||(h=.45),p<1?(p=1,l=h/4):l=h/(2*Math.PI)*Math.asin(1/p),r<1?p*Math.pow(2,10*(r-=1))*Math.sin((r-l)*(2*Math.PI)/h)*-.5:p*Math.pow(2,-10*(r-=1))*Math.sin((r-l)*(2*Math.PI)/h)*.5+1)},easeInBack:function(r){var l=1.70158;return r*r*((l+1)*r-l)},easeOutBack:function(r){var l=1.70158;return(r-=1)*r*((l+1)*r+l)+1},easeInOutBack:function(r){var l=1.70158;return(r/=.5)<1?r*r*((1+(l*=1.525))*r-l)*.5:.5*((r-=2)*r*((1+(l*=1.525))*r+l)+2)},easeInBounce:function(r){return 1-St.easeOutBounce(1-r)},easeOutBounce:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},easeInOutBounce:function(r){return r<.5?.5*St.easeInBounce(2*r):.5*St.easeOutBounce(2*r-1)+.5}},Pe={effects:St};nn.easingEffects=St;var ye=Math.PI,ie=ye/180,Se=2*ye,_e=ye/2,G=ye/4,se=2*ye/3,ze={clear:function(r){r.ctx.clearRect(0,0,r.width,r.height)},roundedRect:function(r,l,h,p,M,O){if(O){var R=Math.min(O,M/2,p/2),W=l+R,H=h+R,X=l+p-R,ae=h+M-R;r.moveTo(l,H),Wl.left-h&&r.xl.top-h&&r.y0&&r.requestAnimationFrame()},advance:function(){for(var l,h,p,M,r=this.animations,O=0;O=p?(me.callback(l.onAnimationComplete,[l],h),h.animating=!1,r.splice(O,1)):++O}},Kn=me.options.resolve,En=["push","pop","shift","splice","unshift"];function Ri(r,l){var h=r._chartjs;if(h){var p=h.listeners,M=p.indexOf(l);-1!==M&&p.splice(M,1),!(p.length>0)&&(En.forEach(function(O){delete r[O]}),delete r._chartjs)}}var Gi=function(r,l){this.initialize(r,l)};me.extend(Gi.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(r,l){var h=this;h.chart=r,h.index=l,h.linkScales(),h.addElements(),h._type=h.getMeta().type},updateIndex:function(r){this.index=r},linkScales:function(){var r=this,l=r.getMeta(),h=r.chart,p=h.scales,M=r.getDataset(),O=h.options.scales;(null===l.xAxisID||!(l.xAxisID in p)||M.xAxisID)&&(l.xAxisID=M.xAxisID||O.xAxes[0].id),(null===l.yAxisID||!(l.yAxisID in p)||M.yAxisID)&&(l.yAxisID=M.yAxisID||O.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(r){return this.chart.scales[r]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Ri(this._data,this)},createMetaDataset:function(){var r=this,l=r.datasetElementType;return l&&new l({_chart:r.chart,_datasetIndex:r.index})},createMetaData:function(r){var l=this,h=l.dataElementType;return h&&new h({_chart:l.chart,_datasetIndex:l.index,_index:r})},addElements:function(){var M,O,r=this,l=r.getMeta(),h=r.getDataset().data||[],p=l.data;for(M=0,O=h.length;Mp&&r.insertElements(p,M-p)},insertElements:function(r,l){for(var h=0;hM?r.arc(R,W,l.innerRadius-M,p+(O=M/l.innerRadius),h-O,!0):r.arc(R,W,M,p+Math.PI/2,h-Math.PI/2),r.closePath(),r.clip()}function tt(r,l,h){var p="inner"===l.borderAlign;p?(r.lineWidth=2*l.borderWidth,r.lineJoin="round"):(r.lineWidth=l.borderWidth,r.lineJoin="bevel"),h.fullCircles&&function(r,l,h,p){var O,M=h.endAngle;for(p&&(h.endAngle=h.startAngle+ln,On(r,h),h.endAngle=M,h.endAngle===h.startAngle&&h.fullCircles&&(h.endAngle+=ln,h.fullCircles--)),r.beginPath(),r.arc(h.x,h.y,h.innerRadius,h.startAngle+ln,h.startAngle,!0),O=0;OW;)M-=ln;for(;M=R&&M<=W&&O>=h.innerRadius&&O<=h.outerRadius}return!1},getCenterPoint:function(){var r=this._view,l=(r.startAngle+r.endAngle)/2,h=(r.innerRadius+r.outerRadius)/2;return{x:r.x+Math.cos(l)*h,y:r.y+Math.sin(l)*h}},getArea:function(){var r=this._view;return Math.PI*((r.endAngle-r.startAngle)/(2*Math.PI))*(Math.pow(r.outerRadius,2)-Math.pow(r.innerRadius,2))},tooltipPosition:function(){var r=this._view,l=r.startAngle+(r.endAngle-r.startAngle)/2,h=(r.outerRadius-r.innerRadius)/2+r.innerRadius;return{x:r.x+Math.cos(l)*h,y:r.y+Math.sin(l)*h}},draw:function(){var M,r=this._chart.ctx,l=this._view,h="inner"===l.borderAlign?.33:0,p={x:l.x,y:l.y,innerRadius:l.innerRadius,outerRadius:Math.max(l.outerRadius-h,0),pixelMargin:h,startAngle:l.startAngle,endAngle:l.endAngle,fullCircles:Math.floor(l.circumference/ln)};if(r.save(),r.fillStyle=l.backgroundColor,r.strokeStyle=l.borderColor,p.fullCircles){for(p.endAngle=p.startAngle+ln,r.beginPath(),r.arc(p.x,p.y,p.outerRadius,p.startAngle,p.endAngle),r.arc(p.x,p.y,p.innerRadius,p.endAngle,p.startAngle,!0),r.closePath(),M=0;Mr.x&&(l=ht(l,"left","right")):r.baseh?h:O,r:M.right||R<0?0:R>l?l:R,b:M.bottom||W<0?0:W>h?h:W,l:M.left||H<0?0:H>l?l:H}}function si(r,l,h){var p=null===l,M=null===h,O=!(!r||p&&M)&&Ce(r);return O&&(p||l>=O.left&&l<=O.right)&&(M||h>=O.top&&h<=O.bottom)}Ct._set("global",{elements:{rectangle:{backgroundColor:we,borderColor:we,borderSkipped:"bottom",borderWidth:0}}});var ui=be.extend({_type:"rectangle",draw:function(){var r=this._chart.ctx,l=this._view,h=function(r){var l=Ce(r),h=l.right-l.left,p=l.bottom-l.top,M=Cn(r,h/2,p/2);return{outer:{x:l.left,y:l.top,w:h,h:p},inner:{x:l.left+M.l,y:l.top+M.t,w:h-M.l-M.r,h:p-M.t-M.b}}}(l),p=h.outer,M=h.inner;r.fillStyle=l.backgroundColor,r.fillRect(p.x,p.y,p.w,p.h),(p.w!==M.w||p.h!==M.h)&&(r.save(),r.beginPath(),r.rect(p.x,p.y,p.w,p.h),r.clip(),r.fillStyle=l.borderColor,r.rect(M.x,M.y,M.w,M.h),r.fill("evenodd"),r.restore())},height:function(){var r=this._view;return r.base-r.y},inRange:function(r,l){return si(this._view,r,l)},inLabelRange:function(r,l){var h=this._view;return Q(h)?si(h,r,null):si(h,null,l)},inXRange:function(r){return si(this._view,r,null)},inYRange:function(r){return si(this._view,null,r)},getCenterPoint:function(){var l,h,r=this._view;return Q(r)?(l=r.x,h=(r.y+r.base)/2):(l=(r.x+r.base)/2,h=r.y),{x:l,y:h}},getArea:function(){var r=this._view;return Q(r)?r.width*Math.abs(r.y-r.base):r.height*Math.abs(r.x-r.base)},tooltipPosition:function(){var r=this._view;return{x:r.x,y:r.y}}}),Pn={},Sr=xt,Or=re,Ve=ui;Pn.Arc=fe,Pn.Line=Sr,Pn.Point=Or,Pn.Rectangle=Ve;var Ue=me._deprecated,Ge=me.valueOrDefault;function Ht(r,l,h){var W,H,p=h.barThickness,M=l.stackCount,O=l.pixels[r],R=me.isNullOrUndef(p)?function(r,l){var p,M,O,R,h=r._length;for(O=1,R=l.length;O0?Math.min(h,Math.abs(M-p)):h,p=M;return h}(l.scale,l.pixels):-1;return me.isNullOrUndef(p)?(W=R*h.categoryPercentage,H=h.barPercentage):(W=p*M,H=1),{chunk:W/M,ratio:H,start:O-W/2}}Ct._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),Ct._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var kn=hi.extend({dataElementType:Pn.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var l,h,r=this;hi.prototype.initialize.apply(r,arguments),(l=r.getMeta()).stack=r.getDataset().stack,l.bar=!0,h=r._getIndexScale().options,Ue("bar chart",h.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ue("bar chart",h.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ue("bar chart",h.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ue("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ue("bar chart",h.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(r){var p,M,l=this,h=l.getMeta().data;for(l._ruler=l.getRuler(),p=0,M=h.length;p=0&&X.min>=0?X.min:X.max,We=void 0===X.start?X.end:X.max>=0&&X.min>=0?X.max-X.min:X.min-X.max,ut=H.length;if(de||void 0===de&&void 0!==Oe)for(Ot=0;Ot=0&&vr.max>=0?vr.max:vr.min,(X.min<0&&qn<0||X.max>=0&&qn>0)&&(Je+=qn));return ri=O.getPixelForValue(Je),ji=(Zi=O.getPixelForValue(Je+We))-ri,void 0!==ae&&Math.abs(ji)=0&&!R||We<0&&R?ri-ae:ri+ae),{size:ji,base:ri,head:Zi,center:Zi+ji/2}},calculateBarIndexPixels:function(r,l,h,p){var O="flex"===p.barThickness?function(r,l,h){var H,p=l.pixels,M=p[r],O=r>0?p[r-1]:null,R=r=wi?-ti:qn<-wi?ti:0)+Oe,Zi=Math.cos(qn),ji=Math.sin(qn),vr=Math.cos(ri),ir=Math.sin(ri),Bi=qn<=0&&ri>=0||ri>=ti,fi=qn<=ni&&ri>=ni||ri>=ti+ni,Ss=qn<=-ni&&ri>=-ni||ri>=wi+ni,fs=qn===-wi||ri>=wi?-1:Math.min(Zi,Zi*de,vr,vr*de),Es=Ss?-1:Math.min(ji,ji*de,ir,ir*de),ca=Bi?1:Math.max(Zi,Zi*de,vr,vr*de),$o=fi?1:Math.max(ji,ji*de,ir,ir*de);O=(ca-fs)/2,R=($o-Es)/2,W=-(ca+fs)/2,H=-($o+Es)/2}for(Ot=0,an=ae.length;Ot0&&!isNaN(r)?ti*(Math.abs(r)/l):0},getMaxBorderWidth:function(r){var M,O,R,W,H,X,ae,de,h=0,p=this.chart;if(!r)for(M=0,O=p.data.datasets.length;M(h=(ae=X.borderWidth)>h?ae:h)?de:h);return h},setHoverStyle:function(r){var l=r._model,h=r._options,p=me.getHoverColor;r.$previousStyle={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth},l.backgroundColor=Fn(h.hoverBackgroundColor,p(h.backgroundColor)),l.borderColor=Fn(h.hoverBorderColor,p(h.borderColor)),l.borderWidth=Fn(h.hoverBorderWidth,h.borderWidth)},_getRingWeightOffset:function(r){for(var l=0,h=0;h0&&tr(O[R-1]._model,M)&&(H.controlPointPreviousX=ae(H.controlPointPreviousX,M.left,M.right),H.controlPointPreviousY=ae(H.controlPointPreviousY,M.top,M.bottom)),R0&&(O=r.getDatasetMeta(O[0]._datasetIndex).data),O},"x-axis":function(r,l){return $r(r,l,{intersect:!1})},point:function(r,l){return xr(r,Ur(l,r))},nearest:function(r,l,h){var p=Ur(l,r);h.axis=h.axis||"xy";var M=zr(h.axis);return Xr(r,p,h.intersect,M)},x:function(r,l,h){var p=Ur(l,r),M=[],O=!1;return Kr(r,function(R){R.inXRange(p.x)&&M.push(R),R.inRange(p.x,p.y)&&(O=!0)}),h.intersect&&!O&&(M=[]),M},y:function(r,l,h){var p=Ur(l,r),M=[],O=!1;return Kr(r,function(R){R.inYRange(p.y)&&M.push(R),R.inRange(p.x,p.y)&&(O=!0)}),h.intersect&&!O&&(M=[]),M}}},xs=me.extend;function ns(r,l){return me.where(r,function(h){return h.pos===l})}function vs(r,l){return r.sort(function(h,p){var M=l?p:h,O=l?h:p;return M.weight===O.weight?M.index-O.index:M.weight-O.weight})}function dr(r,l,h,p){return Math.max(r[h],l[h])+Math.max(r[p],l[p])}function Qi(r,l,h){var O,R,p=h.box,M=r.maxPadding;if(h.size&&(r[h.pos]-=h.size),h.size=h.horizontal?p.height:p.width,r[h.pos]+=h.size,p.getPadding){var W=p.getPadding();M.top=Math.max(M.top,W.top),M.left=Math.max(M.left,W.left),M.bottom=Math.max(M.bottom,W.bottom),M.right=Math.max(M.right,W.right)}if(O=l.outerWidth-dr(M,r,"left","right"),R=l.outerHeight-dr(M,r,"top","bottom"),O!==r.w||R!==r.h){r.w=O,r.h=R;var H=h.horizontal?[O,r.w]:[R,r.h];return!(H[0]===H[1]||isNaN(H[0])&&isNaN(H[1]))}}function Ps(r,l){var O,h=l.maxPadding;return O={left:0,top:0,right:0,bottom:0},(r?["left","right"]:["top","bottom"]).forEach(function(R){O[R]=Math.max(l[R],h[R])}),O}function Ns(r,l,h){var M,O,R,W,H,X,p=[];for(M=0,O=r.length;M div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),w="$chartjs",T="chartjs-",V=T+"size-monitor",pe=T+"render-monitor",Mt=["animationstart","webkitAnimationStart"],Ft={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function bt(r,l){var h=me.getStyle(r,l),p=h&&h.match(/^(\d+)(\.\d+)?px$/);return p?Number(p[1]):void 0}var oi=!!function(){var r=!1;try{var l=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("e",null,l)}catch(h){}return r}()&&{passive:!0};function Mi(r,l,h){r.addEventListener(l,h,oi)}function ii(r,l,h){r.removeEventListener(l,h,oi)}function Cr(r,l,h,p,M){return{type:r,chart:l,native:M||null,x:void 0!==h?h:null,y:void 0!==p?p:null}}function Qn(r){var l=document.createElement("div");return l.className=r||"",l}function Is(r,l,h){var p=r[w]||(r[w]={}),M=p.resizer=function(r){var l=1e6,h=Qn(V),p=Qn(V+"-expand"),M=Qn(V+"-shrink");p.appendChild(Qn()),M.appendChild(Qn()),h.appendChild(p),h.appendChild(M),h._reset=function(){p.scrollLeft=l,p.scrollTop=l,M.scrollLeft=l,M.scrollTop=l};var O=function(){h._reset(),r()};return Mi(p,"scroll",O.bind(p,"expand")),Mi(M,"scroll",O.bind(M,"shrink")),h}(function(r,l){var h=!1,p=[];return function(){p=Array.prototype.slice.call(arguments),l=l||this,h||(h=!0,me.requestAnimFrame.call(window,function(){h=!1,r.apply(l,p)}))}}(function(){if(p.resizer){var O=h.options.maintainAspectRatio&&r.parentNode,R=O?O.clientWidth:0;l(Cr("resize",h)),O&&O.clientWidth0){var O=r[0];O.label?h=O.label:O.xLabel?h=O.xLabel:M>0&&O.index-1?r.split("\n"):r}function Oo(r){var l=r._xScale,h=r._yScale||r._scale,p=r._index,M=r._datasetIndex,O=r._chart.getDatasetMeta(M).controller,R=O._getIndexScale(),W=O._getValueScale();return{xLabel:l?l.getLabelForIndex(p,M):"",yLabel:h?h.getLabelForIndex(p,M):"",label:R?""+R.getLabelForIndex(p,M):"",value:W?""+W.getLabelForIndex(p,M):"",index:p,datasetIndex:M,x:r._model.x,y:r._model.y}}function rr(r){var l=Ct.global;return{xPadding:r.xPadding,yPadding:r.yPadding,xAlign:r.xAlign,yAlign:r.yAlign,rtl:r.rtl,textDirection:r.textDirection,bodyFontColor:r.bodyFontColor,_bodyFontFamily:is(r.bodyFontFamily,l.defaultFontFamily),_bodyFontStyle:is(r.bodyFontStyle,l.defaultFontStyle),_bodyAlign:r.bodyAlign,bodyFontSize:is(r.bodyFontSize,l.defaultFontSize),bodySpacing:r.bodySpacing,titleFontColor:r.titleFontColor,_titleFontFamily:is(r.titleFontFamily,l.defaultFontFamily),_titleFontStyle:is(r.titleFontStyle,l.defaultFontStyle),titleFontSize:is(r.titleFontSize,l.defaultFontSize),_titleAlign:r.titleAlign,titleSpacing:r.titleSpacing,titleMarginBottom:r.titleMarginBottom,footerFontColor:r.footerFontColor,_footerFontFamily:is(r.footerFontFamily,l.defaultFontFamily),_footerFontStyle:is(r.footerFontStyle,l.defaultFontStyle),footerFontSize:is(r.footerFontSize,l.defaultFontSize),_footerAlign:r.footerAlign,footerSpacing:r.footerSpacing,footerMarginTop:r.footerMarginTop,caretSize:r.caretSize,cornerRadius:r.cornerRadius,backgroundColor:r.backgroundColor,opacity:0,legendColorBackground:r.multiKeyBackground,displayColors:r.displayColors,borderColor:r.borderColor,borderWidth:r.borderWidth}}function ha(r,l){return"center"===l?r.x+r.width/2:"right"===l?r.x+r.width-r.xPadding:r.x+r.xPadding}function Zs(r){return Vs([],nr(r))}var io=be.extend({initialize:function(){this._model=rr(this._options),this._lastActive=[]},getTitle:function(){var r=this,h=r._options.callbacks,p=h.beforeTitle.apply(r,arguments),M=h.title.apply(r,arguments),O=h.afterTitle.apply(r,arguments),R=[];return R=Vs(R,nr(p)),R=Vs(R,nr(M)),Vs(R,nr(O))},getBeforeBody:function(){return Zs(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(r,l){var h=this,p=h._options.callbacks,M=[];return me.each(r,function(O){var R={before:[],lines:[],after:[]};Vs(R.before,nr(p.beforeLabel.call(h,O,l))),Vs(R.lines,p.label.call(h,O,l)),Vs(R.after,nr(p.afterLabel.call(h,O,l))),M.push(R)}),M},getAfterBody:function(){return Zs(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var r=this,l=r._options.callbacks,h=l.beforeFooter.apply(r,arguments),p=l.footer.apply(r,arguments),M=l.afterFooter.apply(r,arguments),O=[];return O=Vs(O,nr(h)),O=Vs(O,nr(p)),Vs(O,nr(M))},update:function(r){var de,Oe,l=this,h=l._options,p=l._model,M=l._model=rr(h),O=l._active,R=l._data,W={xAlign:p.xAlign,yAlign:p.yAlign},H={x:p.x,y:p.y},X={width:p.width,height:p.height},ae={x:p.caretX,y:p.caretY};if(O.length){M.opacity=1;var Je=[],We=[];ae=Ms[h.position].call(l,O,l._eventPosition);var ut=[];for(de=0,Oe=O.length;dep.width&&(M=p.width-l.width),M<0&&(M=0)),"top"===ae?O+=de:O-="bottom"===ae?l.height+de:l.height/2,"center"===ae?"left"===X?M+=de:"right"===X&&(M-=de):"left"===X?M-=Oe:"right"===X&&(M+=Oe),{x:M,y:O}}(M,X=function(r,l){var h=r._chart.ctx,p=2*l.yPadding,M=0,O=l.body,R=O.reduce(function(We,ut){return We+ut.before.length+ut.lines.length+ut.after.length},0),W=l.title.length,H=l.footer.length,X=l.titleFontSize,ae=l.bodyFontSize,de=l.footerFontSize;p+=W*X,p+=W?(W-1)*l.titleSpacing:0,p+=W?l.titleMarginBottom:0,p+=(R+=l.beforeBody.length+l.afterBody.length)*ae,p+=R?(R-1)*l.bodySpacing:0,p+=H?l.footerMarginTop:0,p+=H*de,p+=H?(H-1)*l.footerSpacing:0;var Oe=0,Je=function(We){M=Math.max(M,h.measureText(We).width+Oe)};return h.font=me.fontString(X,l._titleFontStyle,l._titleFontFamily),me.each(l.title,Je),h.font=me.fontString(ae,l._bodyFontStyle,l._bodyFontFamily),me.each(l.beforeBody.concat(l.afterBody),Je),Oe=l.displayColors?ae+2:0,me.each(O,function(We){me.each(We.before,Je),me.each(We.lines,Je),me.each(We.after,Je)}),Oe=0,h.font=me.fontString(de,l._footerFontStyle,l._footerFontFamily),me.each(l.footer,Je),{width:M+=2*l.xPadding,height:p}}(this,M),W=function(r,l){var h=r._model,p=r._chart,M=r._chart.chartArea,O="center",R="center";h.yp.height-l.height&&(R="bottom");var W,H,X,ae,de,Oe=(M.left+M.right)/2,Je=(M.top+M.bottom)/2;"center"===R?(W=function(ut){return ut<=Oe},H=function(ut){return ut>Oe}):(W=function(ut){return ut<=l.width/2},H=function(ut){return ut>=p.width-l.width/2}),X=function(ut){return ut+l.width+h.caretSize+h.caretPadding>p.width},ae=function(ut){return ut-l.width-h.caretSize-h.caretPadding<0},de=function(ut){return ut<=Je?"top":"bottom"},W(h.x)?(O="left",X(h.x)&&(O="center",R=de(h.y))):H(h.x)&&(O="right",ae(h.x)&&(O="center",R=de(h.y)));var We=r._options;return{xAlign:We.xAlign?We.xAlign:O,yAlign:We.yAlign?We.yAlign:R}}(this,X),l._chart)}else M.opacity=0;return M.xAlign=W.xAlign,M.yAlign=W.yAlign,M.x=H.x,M.y=H.y,M.width=X.width,M.height=X.height,M.caretX=ae.x,M.caretY=ae.y,l._model=M,r&&h.custom&&h.custom.call(l,M),l},drawCaret:function(r,l){var h=this._chart.ctx,M=this.getCaretPosition(r,l,this._view);h.lineTo(M.x1,M.y1),h.lineTo(M.x2,M.y2),h.lineTo(M.x3,M.y3)},getCaretPosition:function(r,l,h){var p,M,O,R,W,H,X=h.caretSize,ae=h.cornerRadius,de=h.xAlign,Oe=h.yAlign,Je=r.x,We=r.y,ut=l.width,Ot=l.height;if("center"===Oe)W=We+Ot/2,"left"===de?(M=(p=Je)-X,O=p,R=W+X,H=W-X):(M=(p=Je+ut)+X,O=p,R=W-X,H=W+X);else if("left"===de?(p=(M=Je+ae+X)-X,O=M+X):"right"===de?(p=(M=Je+ut-ae-X)-X,O=M+X):(p=(M=h.caretX)-X,O=M+X),"top"===Oe)W=(R=We)-X,H=R;else{W=(R=We+Ot)+X,H=R;var an=O;O=p,p=an}return{x1:p,x2:M,x3:O,y1:R,y2:W,y3:H}},drawTitle:function(r,l,h){var O,R,W,p=l.title,M=p.length;if(M){var H=Wr(l.rtl,l.x,l.width);for(r.x=ha(l,l._titleAlign),h.textAlign=H.textAlign(l._titleAlign),h.textBaseline="middle",O=l.titleFontSize,R=l.titleSpacing,h.fillStyle=l.titleFontColor,h.font=me.fontString(O,l._titleFontStyle,l._titleFontFamily),W=0;W0&&h.stroke()},draw:function(){var r=this._chart.ctx,l=this._view;if(0!==l.opacity){var h={width:l.width,height:l.height},p={x:l.x,y:l.y},M=Math.abs(l.opacity<.001)?0:l.opacity;this._options.enabled&&(l.title.length||l.beforeBody.length||l.body.length||l.afterBody.length||l.footer.length)&&(r.save(),r.globalAlpha=M,this.drawBackground(p,l,r,h),p.y+=l.yPadding,me.rtl.overrideTextDirection(r,l.textDirection),this.drawTitle(p,l,r),this.drawBody(p,l,r),this.drawFooter(p,l,r),me.rtl.restoreTextDirection(r,l.textDirection),r.restore())}},handleEvent:function(r){var p,l=this,h=l._options;return l._lastActive=l._lastActive||[],"mouseout"===r.type?l._active=[]:(l._active=l._chart.getElementsAtEventForMode(r,h.mode,h),h.reverse&&l._active.reverse()),(p=!me.arrayEquals(l._active,l._lastActive))&&(l._lastActive=l._active,(h.enabled||h.custom)&&(l._eventPosition={x:r.x,y:r.y},l.update(!0),l.pivot())),p}}),bo=io;bo.positioners=Ms;var Fs=me.valueOrDefault;function Us(){return me.merge(Object.create(null),[].slice.call(arguments),{merger:function(r,l,h,p){if("xAxes"===r||"yAxes"===r){var O,R,W,M=h[r].length;for(l[r]||(l[r]=[]),O=0;O=l[r].length&&l[r].push({}),me.merge(l[r][O],!l[r][O].type||W.type&&W.type!==l[r][O].type?[ws.getScaleDefaults(R),W]:W)}else me._merger(r,l,h,p)}})}function ro(){return me.merge(Object.create(null),[].slice.call(arguments),{merger:function(r,l,h,p){var M=l[r]||Object.create(null),O=h[r];"scales"===r?l[r]=Us(M,O):"scale"===r?l[r]=me.merge(M,[ws.getScaleDefaults(O.type),O]):me._merger(r,l,h,p)}})}function ea(r){var l=r.options;me.each(r.scales,function(h){v.removeBox(r,h)}),l=ro(Ct.global,Ct[r.config.type],l),r.options=r.config.options=l,r.ensureScalesHaveIDs(),r.buildOrUpdateScales(),r.tooltip._options=l.tooltips,r.tooltip.initialize()}function Vo(r,l,h){var p,M=function(O){return O.id===p};do{p=l+h++}while(me.findIndex(r,M)>=0);return p}function ta(r){return"top"===r||"bottom"===r}function Po(r,l){return function(h,p){return h[r]===p[r]?h[l]-p[l]:h[r]-p[r]}}Ct._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var ys=function(r,l){return this.construct(r,l),this};me.extend(ys.prototype,{construct:function(r,l){var h=this;l=function(r){var l=(r=r||Object.create(null)).data=r.data||{};return l.datasets=l.datasets||[],l.labels=l.labels||[],r.options=ro(Ct.global,Ct[r.type],r.options||{}),r}(l);var p=cs.acquireContext(r,l),M=p&&p.canvas,O=M&&M.height,R=M&&M.width;h.id=me.uid(),h.ctx=p,h.canvas=M,h.config=l,h.width=R,h.height=O,h.aspectRatio=O?R/O:null,h.options=l.options,h._bufferedRender=!1,h._layers=[],h.chart=h,h.controller=h,ys.instances[h.id]=h,Object.defineProperty(h,"data",{get:function(){return h.config.data},set:function(W){h.config.data=W}}),p&&M?(h.initialize(),h.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var r=this;return vi.notify(r,"beforeInit"),me.retinaScale(r,r.options.devicePixelRatio),r.bindEvents(),r.options.responsive&&r.resize(!0),r.initToolTip(),vi.notify(r,"afterInit"),r},clear:function(){return me.canvas.clear(this),this},stop:function(){return Tn.cancelAnimation(this),this},resize:function(r){var l=this,h=l.options,p=l.canvas,M=h.maintainAspectRatio&&l.aspectRatio||null,O=Math.max(0,Math.floor(me.getMaximumWidth(p))),R=Math.max(0,Math.floor(M?O/M:me.getMaximumHeight(p)));if((l.width!==O||l.height!==R)&&(p.width=l.width=O,p.height=l.height=R,p.style.width=O+"px",p.style.height=R+"px",me.retinaScale(l,h.devicePixelRatio),!r)){var W={width:O,height:R};vi.notify(l,"resize",[W]),h.onResize&&h.onResize(l,W),l.stop(),l.update({duration:h.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var r=this.options,l=r.scales||{},h=r.scale;me.each(l.xAxes,function(p,M){p.id||(p.id=Vo(l.xAxes,"x-axis-",M))}),me.each(l.yAxes,function(p,M){p.id||(p.id=Vo(l.yAxes,"y-axis-",M))}),h&&(h.id=h.id||"scale")},buildOrUpdateScales:function(){var r=this,l=r.options,h=r.scales||{},p=[],M=Object.keys(h).reduce(function(O,R){return O[R]=!1,O},{});l.scales&&(p=p.concat((l.scales.xAxes||[]).map(function(O){return{options:O,dtype:"category",dposition:"bottom"}}),(l.scales.yAxes||[]).map(function(O){return{options:O,dtype:"linear",dposition:"left"}}))),l.scale&&p.push({options:l.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),me.each(p,function(O){var R=O.options,W=R.id,H=Fs(R.type,O.dtype);ta(R.position)!==ta(O.dposition)&&(R.position=O.dposition),M[W]=!0;var X=null;if(W in h&&h[W].type===H)(X=h[W]).options=R,X.ctx=r.ctx,X.chart=r;else{var ae=ws.getScaleConstructor(H);if(!ae)return;X=new ae({id:W,type:H,options:R,ctx:r.ctx,chart:r}),h[X.id]=X}X.mergeTicksOptions(),O.isDefault&&(r.scale=X)}),me.each(M,function(O,R){O||delete h[R]}),r.scales=h,ws.addScalesToLayout(this)},buildOrUpdateControllers:function(){var p,M,r=this,l=[],h=r.data.datasets;for(p=0,M=h.length;p=0;--p)l.drawDataset(h[p],r);vi.notify(l,"afterDatasetsDraw",[r])}},drawDataset:function(r,l){var p={meta:r,index:r.index,easingValue:l};!1!==vi.notify(this,"beforeDatasetDraw",[p])&&(r.controller.draw(l),vi.notify(this,"afterDatasetDraw",[p]))},_drawTooltip:function(r){var l=this,h=l.tooltip,p={tooltip:h,easingValue:r};!1!==vi.notify(l,"beforeTooltipDraw",[p])&&(h.draw(),vi.notify(l,"afterTooltipDraw",[p]))},getElementAtEvent:function(r){return _s.modes.single(this,r)},getElementsAtEvent:function(r){return _s.modes.label(this,r,{intersect:!0})},getElementsAtXAxis:function(r){return _s.modes["x-axis"](this,r,{intersect:!0})},getElementsAtEventForMode:function(r,l,h){var p=_s.modes[l];return"function"==typeof p?p(this,r,h):[]},getDatasetAtEvent:function(r){return _s.modes.dataset(this,r,{intersect:!0})},getDatasetMeta:function(r){var l=this,h=l.data.datasets[r];h._meta||(h._meta={});var p=h._meta[l.id];return p||(p=h._meta[l.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:h.order||0,index:r}),p},getVisibleDatasetCount:function(){for(var r=0,l=0,h=this.data.datasets.length;l3?h[2]-h[1]:h[1]-h[0];Math.abs(p)>1&&r!==Math.floor(r)&&(p=r-Math.floor(r));var M=me.log10(Math.abs(p)),O="";if(0!==r)if(Math.max(Math.abs(h[0]),Math.abs(h[h.length-1]))<1e-4){var W=me.log10(Math.abs(r)),H=Math.floor(W)-Math.floor(M);H=Math.max(Math.min(H,20),0),O=r.toExponential(H)}else{var X=-1*Math.floor(M);X=Math.max(Math.min(X,20),0),O=r.toFixed(X)}else O="0";return O},logarithmic:function(r,l,h){var p=r/Math.pow(10,Math.floor(me.log10(r)));return 0===r?"0":1===p||2===p||5===p||0===l||l===h.length-1?r.toExponential():""}}},Lt=me.isArray,Ut=me.isNullOrUndef,en=me.valueOrDefault,Hn=me.valueAtIndexOrDefault;function Vn(r,l,h){var X,p=r.getTicks().length,M=Math.min(l,p-1),O=r.getPixelForTick(M),R=r._startPixel,W=r._endPixel,H=1e-6;if(!(h&&(X=1===p?Math.max(O-R,W-O):0===l?(r.getPixelForTick(1)-O)/2:(O-r.getPixelForTick(M-1))/2,O+=MW+H)))return O}function pi(r,l,h,p){var ae,de,Oe,Je,We,ut,Ot,an,qn,ri,Zi,ji,vr,M=h.length,O=[],R=[],W=[],H=0,X=0;for(ae=0;ael){for(O=0;O=O||p<=1||!r.isHorizontal()?r.labelRotation=M:(H=(W=r._getLabelSizes()).widest.width,X=W.highest.height-W.highest.offset,ae=Math.min(r.maxWidth,r.chart.width-H),H+6>(de=l.offset?r.maxWidth/p:ae/(p-1))&&(de=ae/(p-(l.offset?.5:1)),Oe=r.maxHeight-gi(l.gridLines)-h.padding-Yi(l.scaleLabel),Je=Math.sqrt(H*H+X*X),R=me.toDegrees(Math.min(Math.asin(Math.min((W.highest.height+6)/de,1)),Math.asin(Math.min(Oe/Je,1))-Math.asin(X/Je))),R=Math.max(M,Math.min(O,R))),r.labelRotation=R)},afterCalculateTickRotation:function(){me.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){me.callback(this.options.beforeFit,[this])},fit:function(){var r=this,l=r.minSize={width:0,height:0},h=r.chart,p=r.options,M=p.ticks,O=p.scaleLabel,R=p.gridLines,W=r._isVisible(),H="bottom"===p.position,X=r.isHorizontal();if(X?l.width=r.maxWidth:W&&(l.width=gi(R)+Yi(O)),X?W&&(l.height=gi(R)+Yi(O)):l.height=r.maxHeight,M.display&&W){var ae=sr(M),de=r._getLabelSizes(),Oe=de.first,Je=de.last,We=de.widest,ut=de.highest,Ot=.4*ae.minor.lineHeight,an=M.padding;if(X){var qn=0!==r.labelRotation,ri=me.toRadians(r.labelRotation),Zi=Math.cos(ri),ji=Math.sin(ri);l.height=Math.min(r.maxHeight,l.height+(ji*We.width+Zi*(ut.height-(qn?ut.offset:0))+(qn?0:Ot))+an);var fi,Fr,ir=r.getPixelForTick(0)-r.left,Bi=r.right-r.getPixelForTick(r.getTicks().length-1);qn?(fi=H?Zi*Oe.width+ji*Oe.offset:ji*(Oe.height-Oe.offset),Fr=H?ji*(Je.height-Je.offset):Zi*Je.width+ji*Je.offset):(fi=Oe.width/2,Fr=Je.width/2),r.paddingLeft=Math.max((fi-ir)*r.width/(r.width-ir),0)+3,r.paddingRight=Math.max((Fr-Bi)*r.width/(r.width-Bi),0)+3}else l.width=Math.min(r.maxWidth,l.width+(M.mirror?0:We.width+an+Ot)),r.paddingTop=Oe.height/2,r.paddingBottom=Je.height/2}r.handleMargins(),X?(r.width=r._length=h.width-r.margins.left-r.margins.right,r.height=l.height):(r.width=l.width,r.height=r._length=h.height-r.margins.top-r.margins.bottom)},handleMargins:function(){var r=this;r.margins&&(r.margins.left=Math.max(r.paddingLeft,r.margins.left),r.margins.top=Math.max(r.paddingTop,r.margins.top),r.margins.right=Math.max(r.paddingRight,r.margins.right),r.margins.bottom=Math.max(r.paddingBottom,r.margins.bottom))},afterFit:function(){me.callback(this.options.afterFit,[this])},isHorizontal:function(){var r=this.options.position;return"top"===r||"bottom"===r},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(r){if(Ut(r))return NaN;if(("number"==typeof r||r instanceof Number)&&!isFinite(r))return NaN;if(r)if(this.isHorizontal()){if(void 0!==r.x)return this.getRightValue(r.x)}else if(void 0!==r.y)return this.getRightValue(r.y);return r},_convertTicksToLabels:function(r){var h,p,M,l=this;for(l.ticks=r.map(function(O){return O.value}),l.beforeTickToLabelConversion(),h=l.convertTicksToLabels(r)||l.ticks,l.afterTickToLabelConversion(),p=0,M=r.length;pp-1?null:l.getPixelForDecimal(r*M+(h?M/2:0))},getPixelForDecimal:function(r){var l=this;return l._reversePixels&&(r=1-r),l._startPixel+r*l._length},getDecimalForPixel:function(r){var l=(r-this._startPixel)/this._length;return this._reversePixels?1-l:l},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var r=this,l=r.min,h=r.max;return r.beginAtZero?0:l<0&&h<0?h:l>0&&h>0?l:0},_autoSkip:function(r){var X,ae,de,Oe,l=this,h=l.options.ticks,p=l._length,M=h.maxTicksLimit||p/l._tickSize()+1,O=h.major.enabled?function(r){var h,p,l=[];for(h=0,p=r.length;hM)return function(r,l,h){var O,R,p=0,M=l[0];for(h=Math.ceil(h),O=0;OO)return W;return Math.max(O,1)}(O,r,0,M),R>0){for(X=0,ae=R-1;X1?(H-W)/(R-1):null)?0:W-Oe,W),hs(r,de,H,me.isNullOrUndef(Oe)?r.length:H+Oe),ds(r)}return hs(r,de),ds(r)},_tickSize:function(){var r=this,l=r.options.ticks,h=me.toRadians(r.labelRotation),p=Math.abs(Math.cos(h)),M=Math.abs(Math.sin(h)),O=r._getLabelSizes(),R=l.autoSkipPadding||0,W=O?O.widest.width+R:0,H=O?O.highest.height+R:0;return r.isHorizontal()?H*p>W*M?W/p:H/M:H*M=0&&(O=W),void 0!==M&&(W=l.indexOf(M))>=0&&(R=W),r.minIndex=O,r.maxIndex=R,r.min=l[O],r.max=l[R]},buildTicks:function(){var r=this,l=r._getLabels(),h=r.minIndex,p=r.maxIndex;r.ticks=0===h&&p===l.length-1?l:l.slice(h,p+1)},getLabelForIndex:function(r,l){var h=this,p=h.chart;return p.getDatasetMeta(l).controller._getValueScaleId()===h.id?h.getRightValue(p.data.datasets[l].data[r]):h._getLabels()[r]},_configure:function(){var r=this,l=r.options.offset,h=r.ticks;os.prototype._configure.call(r),r.isHorizontal()||(r._reversePixels=!r._reversePixels),h&&(r._startValue=r.minIndex-(l?.5:0),r._valueRange=Math.max(h.length-(l?0:1),1))},getPixelForValue:function(r,l,h){var M,O,R,p=this;return!zs(l)&&!zs(h)&&(r=p.chart.data.datasets[h].data[l]),zs(r)||(M=p.isHorizontal()?r.x:r.y),(void 0!==M||void 0!==r&&isNaN(l))&&(O=p._getLabels(),r=me.valueOrDefault(M,r),l=-1!==(R=O.indexOf(r))?R:l,isNaN(l)&&(l=r)),p.getPixelForDecimal((l-p._startValue)/p._valueRange)},getPixelForTick:function(r){var l=this.ticks;return r<0||r>l.length-1?null:this.getPixelForValue(l[r],r+this.minIndex)},getValueForPixel:function(r){var l=this,h=Math.round(l._startValue+l.getDecimalForPixel(r)*l._valueRange);return Math.min(Math.max(h,0),l.ticks.length-1)},getBasePixel:function(){return this.bottom}});Ia._defaults={position:"bottom"};var wo=me.isNullOrUndef;var pa=os.extend({getRightValue:function(r){return"string"==typeof r?+r:os.prototype.getRightValue.call(this,r)},handleTickRangeOptions:function(){var r=this,h=r.options.ticks;if(h.beginAtZero){var p=me.sign(r.min),M=me.sign(r.max);p<0&&M<0?r.max=0:p>0&&M>0&&(r.min=0)}var O=void 0!==h.min||void 0!==h.suggestedMin,R=void 0!==h.max||void 0!==h.suggestedMax;void 0!==h.min?r.min=h.min:void 0!==h.suggestedMin&&(r.min=null===r.min?h.suggestedMin:Math.min(r.min,h.suggestedMin)),void 0!==h.max?r.max=h.max:void 0!==h.suggestedMax&&(r.max=null===r.max?h.suggestedMax:Math.max(r.max,h.suggestedMax)),O!==R&&r.min>=r.max&&(O?r.max=r.min+1:r.min=r.max-1),r.min===r.max&&(r.max++,h.beginAtZero||r.min--)},getTickLimit:function(){var M,r=this,l=r.options.ticks,h=l.stepSize,p=l.maxTicksLimit;return h?M=Math.ceil(r.max/h)-Math.floor(r.min/h)+1:(M=r._computeTickLimit(),p=p||11),p&&(M=Math.min(p,M)),M},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:me.noop,buildTicks:function(){var r=this,h=r.options.ticks,p=r.getTickLimit(),M={maxTicks:p=Math.max(2,p),min:h.min,max:h.max,precision:h.precision,stepSize:me.valueOrDefault(h.fixedStepSize,h.stepSize)},O=r.ticks=function(r,l){var Je,We,ut,Ot,h=[],M=r.stepSize,O=M||1,R=r.maxTicks-1,W=r.min,H=r.max,X=r.precision,ae=l.min,de=l.max,Oe=me.niceNum((de-ae)/R/O)*O;if(Oe<1e-14&&wo(W)&&wo(H))return[ae,de];(Ot=Math.ceil(de/Oe)-Math.floor(ae/Oe))>R&&(Oe=me.niceNum(Ot*Oe/R/O)*O),M||wo(X)?Je=Math.pow(10,me._decimalPlaces(Oe)):(Je=Math.pow(10,X),Oe=Math.ceil(Oe*Je)/Je),We=Math.floor(ae/Oe)*Oe,ut=Math.ceil(de/Oe)*Oe,M&&(!wo(W)&&me.almostWhole(W/Oe,Oe/1e3)&&(We=W),!wo(H)&&me.almostWhole(H/Oe,Oe/1e3)&&(ut=H)),Ot=me.almostEquals(Ot=(ut-We)/Oe,Math.round(Ot),Oe/1e3)?Math.round(Ot):Math.ceil(Ot),We=Math.round(We*Je)/Je,ut=Math.round(ut*Je)/Je,h.push(wo(W)?We:W);for(var an=1;anl.length-1?null:this.getPixelForValue(l[r])}});Io._defaults=ma;var xa=me.valueOrDefault,$s=me.math.log10;var Xa={position:"left",ticks:{callback:Nt.formatters.logarithmic}};function oa(r,l){return me.isFinite(r)&&r>=0?r:l}var Mo=os.extend({determineDataLimits:function(){var R,W,H,X,ae,de,r=this,l=r.options,h=r.chart,p=h.data.datasets,M=r.isHorizontal();function O(Ot){return M?Ot.xAxisID===r.id:Ot.yAxisID===r.id}r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,r.minNotZero=Number.POSITIVE_INFINITY;var Oe=l.stacked;if(void 0===Oe)for(R=0;R0){var an=me.min(Ot),qn=me.max(Ot);r.min=Math.min(r.min,an),r.max=Math.max(r.max,qn)}})}else for(R=0;R0?r.min:r.max<1?Math.pow(10,Math.floor($s(r.max))):1)},buildTicks:function(){var r=this,l=r.options.ticks,h=!r.isHorizontal(),p={min:oa(l.min),max:oa(l.max)},M=r.ticks=function(r,l){var R,W,h=[],p=xa(r.min,Math.pow(10,Math.floor($s(l.min)))),M=Math.floor($s(l.max)),O=Math.ceil(l.max/Math.pow(10,M));0===p?(R=Math.floor($s(l.minNotZero)),W=Math.floor(l.minNotZero/Math.pow(10,R)),h.push(p),p=W*Math.pow(10,R)):(R=Math.floor($s(p)),W=Math.floor(p/Math.pow(10,R)));var H=R<0?Math.pow(10,Math.abs(R)):1;do{h.push(p),10==++W&&(W=1,H=++R>=0?1:H),p=Math.round(W*Math.pow(10,R)*H)/H}while(Rl.length-1?null:this.getPixelForValue(l[r])},_getFirstTickValue:function(r){var l=Math.floor($s(r));return Math.floor(r/Math.pow(10,l))*Math.pow(10,l)},_configure:function(){var r=this,l=r.min,h=0;os.prototype._configure.call(r),0===l&&(l=r._getFirstTickValue(r.minNotZero),h=xa(r.options.ticks.fontSize,Ct.global.defaultFontSize)/r._length),r._startValue=$s(l),r._valueOffset=h,r._valueRange=($s(r.max)-$s(l))/(1-h)},getPixelForValue:function(r){var l=this,h=0;return(r=+l.getRightValue(r))>l.min&&r>0&&(h=($s(r)-l._startValue)/l._valueRange+l._valueOffset),l.getPixelForDecimal(h)},getValueForPixel:function(r){var l=this,h=l.getDecimalForPixel(r);return 0===h&&0===l.min?0:Math.pow(10,l._startValue+(h-l._valueOffset)*l._valueRange)}});Mo._defaults=Xa;var fo=me.valueOrDefault,Fo=me.valueAtIndexOrDefault,Ws=me.options.resolve,Za={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Nt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(r){return r}}};function ka(r){var l=r.ticks;return l.display&&r.display?fo(l.fontSize,Ct.global.defaultFontSize)+2*l.backdropPaddingY:0}function Ra(r,l,h){return me.isArray(h)?{w:me.longestText(r,r.font,h),h:h.length*l}:{w:r.measureText(h).width,h:l}}function aa(r,l,h,p,M){return r===p||r===M?{start:l-h/2,end:l+h/2}:rM?{start:l-h,end:l}:{start:l,end:l+h}}function U(r){return 0===r||180===r?"center":r<180?"left":"right"}function Y(r,l,h,p){var O,R,M=h.y+p/2;if(me.isArray(l))for(O=0,R=l.length;O270||r<90)&&(h.y-=l.h)}function ke(r){return me.isNumber(r)?r:0}var Ke=pa.extend({setDimensions:function(){var r=this;r.width=r.maxWidth,r.height=r.maxHeight,r.paddingTop=ka(r.options)/2,r.xCenter=Math.floor(r.width/2),r.yCenter=Math.floor((r.height-r.paddingTop)/2),r.drawingArea=Math.min(r.height-r.paddingTop,r.width)/2},determineDataLimits:function(){var r=this,l=r.chart,h=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY;me.each(l.data.datasets,function(M,O){if(l.isDatasetVisible(O)){var R=l.getDatasetMeta(O);me.each(M.data,function(W,H){var X=+r.getRightValue(W);isNaN(X)||R.data[H].hidden||(h=Math.min(X,h),p=Math.max(X,p))})}}),r.min=h===Number.POSITIVE_INFINITY?0:h,r.max=p===Number.NEGATIVE_INFINITY?0:p,r.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/ka(this.options))},convertTicksToLabels:function(){var r=this;pa.prototype.convertTicksToLabels.call(r),r.pointLabels=r.chart.data.labels.map(function(){var l=me.callback(r.options.pointLabels.callback,arguments,r);return l||0===l?l:""})},getLabelForIndex:function(r,l){return+this.getRightValue(this.chart.data.datasets[l].data[r])},fit:function(){var r=this,l=r.options;l.display&&l.pointLabels.display?function(r){var M,O,R,l=me.options._parseFont(r.options.pointLabels),h={l:0,r:r.width,t:0,b:r.height-r.paddingTop},p={};r.ctx.font=l.string,r._pointLabelSizes=[];var W=r.chart.data.labels.length;for(M=0;Mh.r&&(h.r=ae.end,p.r=H),de.starth.b&&(h.b=de.end,p.b=H)}r.setReductions(r.drawingArea,h,p)}(r):r.setCenterPoint(0,0,0,0)},setReductions:function(r,l,h){var p=this,M=l.l/Math.sin(h.l),O=Math.max(l.r-p.width,0)/Math.sin(h.r),R=-l.t/Math.cos(h.t),W=-Math.max(l.b-(p.height-p.paddingTop),0)/Math.cos(h.b);M=ke(M),O=ke(O),R=ke(R),W=ke(W),p.drawingArea=Math.min(Math.floor(r-(M+O)/2),Math.floor(r-(R+W)/2)),p.setCenterPoint(M,O,R,W)},setCenterPoint:function(r,l,h,p){var M=this,W=h+M.drawingArea,H=M.height-M.paddingTop-p-M.drawingArea;M.xCenter=Math.floor((r+M.drawingArea+(M.width-l-M.drawingArea))/2+M.left),M.yCenter=Math.floor((W+H)/2+M.top+M.paddingTop)},getIndexAngle:function(r){var l=this.chart,O=(r*(360/l.data.labels.length)+((l.options||{}).startAngle||0))%360;return(O<0?O+360:O)*Math.PI*2/360},getDistanceFromCenterForValue:function(r){var l=this;if(me.isNullOrUndef(r))return NaN;var h=l.drawingArea/(l.max-l.min);return l.options.ticks.reverse?(l.max-r)*h:(r-l.min)*h},getPointPosition:function(r,l){var h=this,p=h.getIndexAngle(r)-Math.PI/2;return{x:Math.cos(p)*l+h.xCenter,y:Math.sin(p)*l+h.yCenter}},getPointPositionForValue:function(r,l){return this.getPointPosition(r,this.getDistanceFromCenterForValue(l))},getBasePosition:function(r){var l=this,h=l.min,p=l.max;return l.getPointPositionForValue(r||0,l.beginAtZero?0:h<0&&p<0?p:h>0&&p>0?h:0)},_drawGrid:function(){var W,H,X,r=this,l=r.ctx,h=r.options,p=h.gridLines,M=h.angleLines,O=fo(M.lineWidth,p.lineWidth),R=fo(M.color,p.color);if(h.pointLabels.display&&function(r){var l=r.ctx,h=r.options,p=h.pointLabels,M=ka(h),O=r.getDistanceFromCenterForValue(h.ticks.reverse?r.min:r.max),R=me.options._parseFont(p);l.save(),l.font=R.string,l.textBaseline="middle";for(var W=r.chart.data.labels.length-1;W>=0;W--){var X=r.getPointPosition(W,O+(0===W?M/2:0)+5),ae=Fo(p.fontColor,W,Ct.global.defaultFontColor);l.fillStyle=ae;var de=r.getIndexAngle(W),Oe=me.toDegrees(de);l.textAlign=U(Oe),N(Oe,r._pointLabelSizes[W],X),Y(l,r.pointLabels[W],X,R.lineHeight)}l.restore()}(r),p.display&&me.each(r.ticks,function(ae,de){0!==de&&(H=r.getDistanceFromCenterForValue(r.ticksAsNumbers[de]),function(r,l,h,p){var X,M=r.ctx,O=l.circular,R=r.chart.data.labels.length,W=Fo(l.color,p-1),H=Fo(l.lineWidth,p-1);if((O||R)&&W&&H){if(M.save(),M.strokeStyle=W,M.lineWidth=H,M.setLineDash&&(M.setLineDash(l.borderDash||[]),M.lineDashOffset=l.borderDashOffset||0),M.beginPath(),O)M.arc(r.xCenter,r.yCenter,h,0,2*Math.PI);else{X=r.getPointPosition(0,h),M.moveTo(X.x,X.y);for(var ae=1;ae=0;W--)H=r.getDistanceFromCenterForValue(h.ticks.reverse?r.min:r.max),X=r.getPointPosition(W,H),l.beginPath(),l.moveTo(r.xCenter,r.yCenter),l.lineTo(X.x,X.y),l.stroke();l.restore()}},_drawLabels:function(){var r=this,l=r.ctx,p=r.options.ticks;if(p.display){var W,H,M=r.getIndexAngle(0),O=me.options._parseFont(p),R=fo(p.fontColor,Ct.global.defaultFontColor);l.save(),l.font=O.string,l.translate(r.xCenter,r.yCenter),l.rotate(M),l.textAlign="center",l.textBaseline="middle",me.each(r.ticks,function(X,ae){0===ae&&!p.reverse||(W=r.getDistanceFromCenterForValue(r.ticksAsNumbers[ae]),p.showLabelBackdrop&&(H=l.measureText(X).width,l.fillStyle=p.backdropColor,l.fillRect(-H/2-p.backdropPaddingX,-W-O.size/2-p.backdropPaddingY,H+2*p.backdropPaddingX,O.size+2*p.backdropPaddingY)),l.fillStyle=R,l.fillText(X,0,-W))}),l.restore()}},_drawTitle:me.noop});Ke._defaults=Za;var Gt=me._deprecated,Un=me.options.resolve,or=me.valueOrDefault,mi=Number.MIN_SAFE_INTEGER||-9007199254740991,Tr=Number.MAX_SAFE_INTEGER||9007199254740991,zi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Gr=Object.keys(zi);function po(r,l){return r-l}function la(r){return me.valueOrDefault(r.time.min,r.ticks.min)}function ua(r){return me.valueOrDefault(r.time.max,r.ticks.max)}function Ua(r,l,h,p){var M=function(r,l,h){for(var O,R,W,p=0,M=r.length-1;p>=0&&p<=M;){if(W=r[O=p+M>>1],!(R=r[O-1]||null))return{lo:null,hi:W};if(W[l]h))return{lo:R,hi:W};M=O-1}}return{lo:W,hi:null}}(r,l,h),O=M.lo?M.hi?M.lo:r[r.length-2]:r[0],R=M.lo?M.hi?M.hi:r[r.length-1]:r[1],W=R[l]-O[l];return O[p]+(R[p]-O[p])*(W?(h-O[l])/W:0)}function as(r,l){var h=r._adapter,p=r.options.time,M=p.parser,O=M||p.format,R=l;return"function"==typeof M&&(R=M(R)),me.isFinite(R)||(R="string"==typeof O?h.parse(R,O):h.parse(R)),null!==R?+R:(!M&&"function"==typeof O&&(R=O(l),me.isFinite(R)||(R=h.parse(R))),R)}function _a(r,l){if(me.isNullOrUndef(l))return null;var h=r.options.time,p=as(r,r.getRightValue(l));return null===p||h.round&&(p=+r._adapter.startOf(p,h.round)),p}function qa(r,l,h,p){var O,R,M=Gr.length;for(O=Gr.indexOf(r);O=0&&(l[H].major=!0);return l}(r,p,M,h):p}var hl=os.extend({initialize:function(){this.mergeTicksOptions(),os.prototype.initialize.call(this)},update:function(){var r=this,l=r.options,h=l.time||(l.time={}),p=r._adapter=new yt._date(l.adapters.date);return Gt("time scale",h.format,"time.format","time.parser"),Gt("time scale",h.min,"time.min","ticks.min"),Gt("time scale",h.max,"time.max","ticks.max"),me.mergeIf(h.displayFormats,p.formats()),os.prototype.update.apply(r,arguments)},getRightValue:function(r){return r&&void 0!==r.t&&(r=r.t),os.prototype.getRightValue.call(this,r)},determineDataLimits:function(){var ae,de,Oe,Je,We,ut,Ot,r=this,l=r.chart,h=r._adapter,p=r.options,M=p.time.unit||"day",O=Tr,R=mi,W=[],H=[],X=[],an=r._getLabels();for(ae=0,Oe=an.length;ae1?function(r){var p,M,O,l={},h=[];for(p=0,M=r.length;p1e5*H)throw l+" and "+h+" are too far apart with stepSize of "+H+" "+W;for(Oe=ae;Oe=l&&Je<=h&&W.push(Je);return r.min=l,r.max=h,r._unit=O.unit||(M.autoSkip?qa(O.minUnit,r.min,r.max,H):function(r,l,h,p,M){var O,R;for(O=Gr.length-1;O>=Gr.indexOf(h);O--)if(zi[R=Gr[O]].common&&r._adapter.diff(M,p,R)>=l-1)return R;return Gr[h?Gr.indexOf(h):0]}(r,W.length,O.minUnit,r.min,r.max)),r._majorUnit=M.major.enabled&&"year"!==r._unit?function(r){for(var l=Gr.indexOf(r)+1,h=Gr.length;ll&&X=0&&r0?W:1}});hl._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Ya={category:Ia,linear:Io,logarithmic:Mo,radialLinear:Ke,time:hl},xl={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};yt._date.override("function"==typeof i?{_id:"moment",formats:function(){return xl},parse:function(r,l){return"string"==typeof r&&"string"==typeof l?r=i(r,l):r instanceof i||(r=i(r)),r.isValid()?r.valueOf():null},format:function(r,l){return i(r).format(l)},add:function(r,l,h){return i(r).add(l,h).valueOf()},diff:function(r,l,h){return i(r).diff(i(l),h)},startOf:function(r,l,h){return r=i(r),"isoWeek"===l?r.isoWeekday(h).valueOf():r.startOf(l).valueOf()},endOf:function(r,l){return i(r).endOf(l).valueOf()},_create:function(r){return i(r)}}:{}),Ct._set("global",{plugins:{filler:{propagate:!0}}});var As={dataset:function(r){var l=r.fill,h=r.chart,p=h.getDatasetMeta(l),O=p&&h.isDatasetVisible(l)&&p.dataset._children||[],R=O.length||0;return R?function(W,H){return H=h)&&O;switch(M){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return M;default:return!1}}function jl(r){return(r.el._scale||{}).getPointPositionForValue?function(r){var R,W,H,X,ae,l=r.el._scale,h=l.options,p=l.chart.data.labels.length,M=r.fill,O=[];if(!p)return null;for(W=h.ticks.reverse?l.min:l.max,H=l.getPointPositionForValue(0,R=h.ticks.reverse?l.max:l.min),X=0;X0;--O)r.arc(R,W,H,h[O].angle,h[O-1].angle,!0);return}for(r.lineTo(h[M-1].x,h[M-1].y),O=M-1;O>0;--O)me.canvas.lineTo(r,h[O],h[O-1],!0)}}function ao(r,l,h,p,M,O){var Oe,Je,We,ut,Ot,an,qn,ri,R=l.length,W=p.spanGaps,H=[],X=[],ae=0,de=0;for(r.beginPath(),Oe=0,Je=R;Oe=0;--M)(p=l[M].$filler)&&p.visible&&(W=(O=p.el)._children||[],X=(R=O._view).backgroundColor||Ct.global.defaultColor,(H=p.mapper)&&X&&W.length&&(me.canvas.clipArea(h,r.chartArea),ao(h,W,H,R,X,O._loop),me.canvas.unclipArea(h)))}},_r=me.rtl.getRtlAdapter,Do=me.noop,Ro=me.valueOrDefault;function qo(r,l){return r.usePointStyle&&r.boxWidth>l?l:r.boxWidth}Ct._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(r,l){var h=l.datasetIndex,p=this.chart,M=p.getDatasetMeta(h);M.hidden=null===M.hidden?!p.data.datasets[h].hidden:null,p.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(r){var l=r.data.datasets,h=r.options.legend||{},p=h.labels&&h.labels.usePointStyle;return r._getSortedDatasetMetas().map(function(M){var O=M.controller.getStyle(p?0:void 0);return{text:l[M.index].label,fillStyle:O.backgroundColor,hidden:!r.isDatasetVisible(M.index),lineCap:O.borderCapStyle,lineDash:O.borderDash,lineDashOffset:O.borderDashOffset,lineJoin:O.borderJoinStyle,lineWidth:O.borderWidth,strokeStyle:O.borderColor,pointStyle:O.pointStyle,rotation:O.rotation,datasetIndex:M.index}},this)}}},legendCallback:function(r){var p,M,O,l=document.createElement("ul"),h=r.data.datasets;for(l.setAttribute("class",r.id+"-legend"),p=0,M=h.length;pH.width)&&(de+=R+h.padding,ae[ae.length-(ri>0?0:1)]=0),W[ri]={left:0,top:0,width:ji,height:R},ae[ae.length-1]+=ji+h.padding}),H.height+=de}else{var Oe=h.padding,Je=r.columnWidths=[],We=r.columnHeights=[],ut=h.padding,Ot=0,an=0;me.each(r.legendItems,function(qn,ri){var ji=qo(h,R)+R/2+M.measureText(qn.text).width;ri>0&&an+R+2*Oe>H.height&&(ut+=Ot+h.padding,Je.push(Ot),We.push(an),Ot=0,an=0),Ot=Math.max(Ot,ji),an+=R+Oe,W[ri]={left:0,top:0,width:ji,height:R}}),ut+=Ot,Je.push(Ot),We.push(an),H.width+=ut}r.width=H.width,r.height=H.height}else r.width=H.width=r.height=H.height=0},afterFit:Do,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var r=this,l=r.options,h=l.labels,p=Ct.global,M=p.defaultColor,O=p.elements.line,R=r.height,W=r.columnHeights,H=r.width,X=r.lineWidths;if(l.display){var ut,ae=_r(l.rtl,r.left,r.minSize.width),de=r.ctx,Oe=Ro(h.fontColor,p.defaultFontColor),Je=me.options._parseFont(h),We=Je.size;de.textAlign=ae.textAlign("left"),de.textBaseline="middle",de.lineWidth=.5,de.strokeStyle=Oe,de.fillStyle=Oe,de.font=Je.string;var Ot=qo(h,We),an=r.legendHitBoxes,Zi=function(ir,Bi){switch(l.align){case"start":return h.padding;case"end":return ir-Bi;default:return(ir-Bi+h.padding)/2}},ji=r.isHorizontal();ut=ji?{x:r.left+Zi(H,X[0]),y:r.top+h.padding,line:0}:{x:r.left+h.padding,y:r.top+Zi(R,W[0]),line:0},me.rtl.overrideTextDirection(r.ctx,l.textDirection);var vr=We+h.padding;me.each(r.legendItems,function(ir,Bi){var fi=de.measureText(ir.text).width,Fr=Ot+We/2+fi,Ss=ut.x,fs=ut.y;ae.setWidth(r.minSize.width),ji?Bi>0&&Ss+Fr+h.padding>r.left+r.minSize.width&&(fs=ut.y+=vr,ut.line++,Ss=ut.x=r.left+Zi(H,X[ut.line])):Bi>0&&fs+vr>r.top+r.minSize.height&&(Ss=ut.x=Ss+r.columnWidths[ut.line]+h.padding,ut.line++,fs=ut.y=r.top+Zi(R,W[ut.line]));var Es=ae.x(Ss);(function(ir,Bi,fi){if(!(isNaN(Ot)||Ot<=0)){de.save();var Fr=Ro(fi.lineWidth,O.borderWidth);if(de.fillStyle=Ro(fi.fillStyle,M),de.lineCap=Ro(fi.lineCap,O.borderCapStyle),de.lineDashOffset=Ro(fi.lineDashOffset,O.borderDashOffset),de.lineJoin=Ro(fi.lineJoin,O.borderJoinStyle),de.lineWidth=Fr,de.strokeStyle=Ro(fi.strokeStyle,M),de.setLineDash&&de.setLineDash(Ro(fi.lineDash,O.borderDash)),h&&h.usePointStyle){var Ss=Ot*Math.SQRT2/2,fs=ae.xPlus(ir,Ot/2);me.canvas.drawPoint(de,fi.pointStyle,Ss,fs,Bi+We/2,fi.rotation)}else de.fillRect(ae.leftForLtr(ir,Ot),Bi,Ot,We),0!==Fr&&de.strokeRect(ae.leftForLtr(ir,Ot),Bi,Ot,We);de.restore()}})(Es,fs,ir),an[Bi].left=ae.leftForLtr(Es,an[Bi].width),an[Bi].top=fs,function(ir,Bi,fi,Fr){var Ss=We/2,fs=ae.xPlus(ir,Ot+Ss),Es=Bi+Ss;de.fillText(fi.text,fs,Es),fi.hidden&&(de.beginPath(),de.lineWidth=2,de.moveTo(fs,Es),de.lineTo(ae.xPlus(fs,Fr),Es),de.stroke())}(Es,fs,ir,fi),ji?ut.x+=Fr+h.padding:ut.y+=vr}),me.rtl.restoreTextDirection(r.ctx,l.textDirection)}},_getLegendItemAt:function(r,l){var p,M,O,h=this;if(r>=h.left&&r<=h.right&&l>=h.top&&l<=h.bottom)for(O=h.legendHitBoxes,p=0;p=(M=O[p]).left&&r<=M.left+M.width&&l>=M.top&&l<=M.top+M.height)return h.legendItems[p];return null},handleEvent:function(r){var M,l=this,h=l.options,p="mouseup"===r.type?"click":r.type;if("mousemove"===p){if(!h.onHover&&!h.onLeave)return}else{if("click"!==p)return;if(!h.onClick)return}M=l._getLegendItemAt(r.x,r.y),"click"===p?M&&h.onClick&&h.onClick.call(l,r.native,M):(h.onLeave&&M!==l._hoveredItem&&(l._hoveredItem&&h.onLeave.call(l,r.native,l._hoveredItem),l._hoveredItem=M),h.onHover&&M&&h.onHover.call(l,r.native,M))}});function mo(r,l){var h=new za({ctx:r.ctx,options:l,chart:r});v.configure(r,h,l),v.addBox(r,h),r.legend=h}var Ll={id:"legend",_element:za,beforeInit:function(r){var l=r.options.legend;l&&mo(r,l)},beforeUpdate:function(r){var l=r.options.legend,h=r.legend;l?(me.mergeIf(l,Ct.global.legend),h?(v.configure(r,h,l),h.options=l):mo(r,l)):h&&(v.removeBox(r,h),delete r.legend)},afterEvent:function(r,l){var h=r.legend;h&&h.handleEvent(l)}},_o=me.noop;Ct._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ql=be.extend({initialize:function(r){me.extend(this,r),this.legendHitBoxes=[]},beforeUpdate:_o,update:function(r,l,h){var p=this;return p.beforeUpdate(),p.maxWidth=r,p.maxHeight=l,p.margins=h,p.beforeSetDimensions(),p.setDimensions(),p.afterSetDimensions(),p.beforeBuildLabels(),p.buildLabels(),p.afterBuildLabels(),p.beforeFit(),p.fit(),p.afterFit(),p.afterUpdate(),p.minSize},afterUpdate:_o,beforeSetDimensions:_o,setDimensions:function(){var r=this;r.isHorizontal()?(r.width=r.maxWidth,r.left=0,r.right=r.width):(r.height=r.maxHeight,r.top=0,r.bottom=r.height),r.paddingLeft=0,r.paddingTop=0,r.paddingRight=0,r.paddingBottom=0,r.minSize={width:0,height:0}},afterSetDimensions:_o,beforeBuildLabels:_o,buildLabels:_o,afterBuildLabels:_o,beforeFit:_o,fit:function(){var O,r=this,l=r.options,h=r.minSize={},p=r.isHorizontal();l.display?(O=(me.isArray(l.text)?l.text.length:1)*me.options._parseFont(l).lineHeight+2*l.padding,r.width=h.width=p?r.maxWidth:O,r.height=h.height=p?O:r.maxHeight):r.width=h.width=r.height=h.height=0},afterFit:_o,isHorizontal:function(){var r=this.options.position;return"top"===r||"bottom"===r},draw:function(){var r=this,l=r.ctx,h=r.options;if(h.display){var de,Oe,Je,p=me.options._parseFont(h),M=p.lineHeight,O=M/2+h.padding,R=0,W=r.top,H=r.left,X=r.bottom,ae=r.right;l.fillStyle=me.valueOrDefault(h.fontColor,Ct.global.defaultFontColor),l.font=p.string,r.isHorizontal()?(Oe=H+(ae-H)/2,Je=W+O,de=ae-H):(Oe="left"===h.position?H+O:ae-O,Je=W+(X-W)/2,de=X-W,R=Math.PI*("left"===h.position?-.5:.5)),l.save(),l.translate(Oe,Je),l.rotate(R),l.textAlign="center",l.textBaseline="middle";var We=h.text;if(me.isArray(We))for(var ut=0,Ot=0;Ot=0;R--){var W=p[R];if(M(W))return W}},me.isNumber=function(p){return!isNaN(parseFloat(p))&&isFinite(p)},me.almostEquals=function(p,M,O){return Math.abs(p-M)=p},me.max=function(p){return p.reduce(function(M,O){return isNaN(O)?M:Math.max(M,O)},Number.NEGATIVE_INFINITY)},me.min=function(p){return p.reduce(function(M,O){return isNaN(O)?M:Math.min(M,O)},Number.POSITIVE_INFINITY)},me.sign=Math.sign?function(p){return Math.sign(p)}:function(p){return 0==(p=+p)||isNaN(p)?p:p>0?1:-1},me.toRadians=function(p){return p*(Math.PI/180)},me.toDegrees=function(p){return p*(180/Math.PI)},me._decimalPlaces=function(p){if(me.isFinite(p)){for(var M=1,O=0;Math.round(p*M)/M!==p;)M*=10,O++;return O}},me.getAngleFromPoint=function(p,M){var O=M.x-p.x,R=M.y-p.y,W=Math.sqrt(O*O+R*R),H=Math.atan2(R,O);return H<-.5*Math.PI&&(H+=2*Math.PI),{angle:H,distance:W}},me.distanceBetweenPoints=function(p,M){return Math.sqrt(Math.pow(M.x-p.x,2)+Math.pow(M.y-p.y,2))},me.aliasPixel=function(p){return p%2==0?0:.5},me._alignPixel=function(p,M,O){var R=p.currentDevicePixelRatio,W=O/2;return Math.round((M-W)*R)/R+W},me.splineCurve=function(p,M,O,R){var W=p.skip?M:p,H=M,X=O.skip?M:O,ae=Math.sqrt(Math.pow(H.x-W.x,2)+Math.pow(H.y-W.y,2)),de=Math.sqrt(Math.pow(X.x-H.x,2)+Math.pow(X.y-H.y,2)),Oe=ae/(ae+de),Je=de/(ae+de),We=R*(Oe=isNaN(Oe)?0:Oe),ut=R*(Je=isNaN(Je)?0:Je);return{previous:{x:H.x-We*(X.x-W.x),y:H.y-We*(X.y-W.y)},next:{x:H.x+ut*(X.x-W.x),y:H.y+ut*(X.y-W.y)}}},me.EPSILON=Number.EPSILON||1e-14,me.splineCurveMonotone=function(p){var R,W,H,X,de,Oe,Je,We,ut,M=(p||[]).map(function(Ot){return{model:Ot._model,deltaK:0,mK:0}}),O=M.length;for(R=0;R0?M[R-1]:null,(X=R0?M[R-1]:null)&&!W.model.skip&&(H.model.controlPointPreviousX=H.model.x-(ut=(H.model.x-W.model.x)/3),H.model.controlPointPreviousY=H.model.y-ut*H.mK),X&&!X.model.skip&&(H.model.controlPointNextX=H.model.x+(ut=(X.model.x-H.model.x)/3),H.model.controlPointNextY=H.model.y+ut*H.mK))},me.nextItem=function(p,M,O){return O?M>=p.length-1?p[0]:p[M+1]:M>=p.length-1?p[p.length-1]:p[M+1]},me.previousItem=function(p,M,O){return O?M<=0?p[p.length-1]:p[M-1]:M<=0?p[0]:p[M-1]},me.niceNum=function(p,M){var O=Math.floor(me.log10(p)),R=p/Math.pow(10,O);return(M?R<1.5?1:R<3?2:R<7?5:10:R<=1?1:R<=2?2:R<=5?5:10)*Math.pow(10,O)},me.requestAnimFrame="undefined"==typeof window?function(p){p()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(p){return window.setTimeout(p,1e3/60)},me.getRelativePosition=function(p,M){var O,R,W=p.originalEvent||p,H=p.target||p.srcElement,X=H.getBoundingClientRect(),ae=W.touches;ae&&ae.length>0?(O=ae[0].clientX,R=ae[0].clientY):(O=W.clientX,R=W.clientY);var de=parseFloat(me.getStyle(H,"padding-left")),Oe=parseFloat(me.getStyle(H,"padding-top")),Je=parseFloat(me.getStyle(H,"padding-right")),We=parseFloat(me.getStyle(H,"padding-bottom")),Ot=X.bottom-X.top-Oe-We;return{x:O=Math.round((O-X.left-de)/(X.right-X.left-de-Je)*H.width/M.currentDevicePixelRatio),y:R=Math.round((R-X.top-Oe)/Ot*H.height/M.currentDevicePixelRatio)}},me.getConstraintWidth=function(p){return h(p,"max-width","clientWidth")},me.getConstraintHeight=function(p){return h(p,"max-height","clientHeight")},me._calculatePadding=function(p,M,O){return(M=me.getStyle(p,M)).indexOf("%")>-1?O*parseInt(M,10)/100:parseInt(M,10)},me._getParentNode=function(p){var M=p.parentNode;return M&&"[object ShadowRoot]"===M.toString()&&(M=M.host),M},me.getMaximumWidth=function(p){var M=me._getParentNode(p);if(!M)return p.clientWidth;var O=M.clientWidth,H=O-me._calculatePadding(M,"padding-left",O)-me._calculatePadding(M,"padding-right",O),X=me.getConstraintWidth(p);return isNaN(X)?H:Math.min(H,X)},me.getMaximumHeight=function(p){var M=me._getParentNode(p);if(!M)return p.clientHeight;var O=M.clientHeight,H=O-me._calculatePadding(M,"padding-top",O)-me._calculatePadding(M,"padding-bottom",O),X=me.getConstraintHeight(p);return isNaN(X)?H:Math.min(H,X)},me.getStyle=function(p,M){return p.currentStyle?p.currentStyle[M]:document.defaultView.getComputedStyle(p,null).getPropertyValue(M)},me.retinaScale=function(p,M){var O=p.currentDevicePixelRatio=M||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==O){var R=p.canvas,W=p.height,H=p.width;R.height=W*O,R.width=H*O,p.ctx.scale(O,O),!R.style.height&&!R.style.width&&(R.style.height=W+"px",R.style.width=H+"px")}},me.fontString=function(p,M,O){return M+" "+p+"px "+O},me.longestText=function(p,M,O,R){var W=(R=R||{}).data=R.data||{},H=R.garbageCollect=R.garbageCollect||[];R.font!==M&&(W=R.data={},H=R.garbageCollect=[],R.font=M),p.font=M;var de,Oe,Je,We,ut,X=0,ae=O.length;for(de=0;deO.length){for(de=0;deR&&(R=H),R},me.numberOfLabelLines=function(p){var M=1;return me.each(p,function(O){me.isArray(O)&&O.length>M&&(M=O.length)}),M},me.color=et?function(p){return p instanceof CanvasGradient&&(p=Ct.global.defaultColor),et(p)}:function(p){return console.error("Color.js not found!"),p},me.getHoverColor=function(p){return p instanceof CanvasPattern||p instanceof CanvasGradient?p:me.color(p).saturate(.5).darken(.1).rgbString()}}(),Pi._adapters=yt,Pi.Animation=Kt,Pi.animationService=Tn,Pi.controllers=jr,Pi.DatasetController=hi,Pi.defaults=Ct,Pi.Element=be,Pi.elements=Pn,Pi.Interaction=_s,Pi.layouts=v,Pi.platform=cs,Pi.plugins=vi,Pi.Scale=os,Pi.scaleService=ws,Pi.Ticks=Nt,Pi.Tooltip=bo,Pi.helpers.each(Ya,function(r,l){Pi.scaleService.registerScaleType(l,r,r._defaults)}),ya)ya.hasOwnProperty($a)&&Pi.plugins.register(ya[$a]);Pi.platform.initialize();var el=Pi;return"undefined"!=typeof window&&(window.Chart=Pi),Pi.Chart=Pi,Pi.Legend=ya.legend._element,Pi.Title=ya.title._element,Pi.pluginService=Pi.plugins,Pi.PluginBase=Pi.Element.extend({}),Pi.canvasHelpers=Pi.helpers.canvas,Pi.layoutService=Pi.layouts,Pi.LinearScaleBase=pa,Pi.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(r){Pi[r]=function(l,h){return new Pi(l,Pi.helpers.merge(h||{},{type:r.charAt(0).toLowerCase()+r.slice(1)}))}}),el}(function(){try{return L(6738)}catch(P){}}())},6202:(Xe,Ee)=>{"use strict";var i={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var P=!1,s=Object.defineProperty({},"passive",{get:function(){P=!0}}),E=function(){};window.addEventListener("testPassiveEventSupport",E,s),window.removeEventListener("testPassiveEventSupport",E,s),i.hasSupport=P}}};i.update(),Ee.Z=i},1704:function(Xe,Ee){var i;!function(o,P){"use strict";"object"==typeof Xe.exports?Xe.exports=o.document?P(o,!0):function(s){if(!s.document)throw new Error("jQuery requires a window with a document");return P(s)}:P(o)}("undefined"!=typeof window?window:this,function(o,P){"use strict";var s=[],E=Object.getPrototypeOf,S=s.slice,Z=s.flat?function(v){return s.flat.call(v)}:function(v){return s.concat.apply([],v)},F=s.push,z=s.indexOf,q={},d=q.toString,oe=q.hasOwnProperty,De=oe.toString,st=De.call(Object),Te={},le=function(g){return"function"==typeof g&&"number"!=typeof g.nodeType&&"function"!=typeof g.item},pt=function(g){return null!=g&&g===g.window},He=o.document,Vt={type:!0,src:!0,nonce:!0,noModule:!0};function dn(v,g,x){var D,_,w=(x=x||He).createElement("script");if(w.text=v,g)for(D in Vt)(_=g[D]||g.getAttribute&&g.getAttribute(D))&&w.setAttribute(D,_);x.head.appendChild(w).parentNode.removeChild(w)}function Zn(v){return null==v?v+"":"object"==typeof v||"function"==typeof v?q[d.call(v)]||"object":typeof v}var zn=/HTML$/i,J=function(v,g){return new J.fn.init(v,g)};function _t(v){var g=!!v&&"length"in v&&v.length,x=Zn(v);return!le(v)&&!pt(v)&&("array"===x||0===g||"number"==typeof g&&g>0&&g-1 in v)}function Bt(v,g){return v.nodeName&&v.nodeName.toLowerCase()===g.toLowerCase()}J.fn=J.prototype={jquery:"3.7.1",constructor:J,length:0,toArray:function(){return S.call(this)},get:function(v){return null==v?S.call(this):v<0?this[v+this.length]:this[v]},pushStack:function(v){var g=J.merge(this.constructor(),v);return g.prevObject=this,g},each:function(v){return J.each(this,v)},map:function(v){return this.pushStack(J.map(this,function(g,x){return v.call(g,x,g)}))},slice:function(){return this.pushStack(S.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(J.grep(this,function(v,g){return(g+1)%2}))},odd:function(){return this.pushStack(J.grep(this,function(v,g){return g%2}))},eq:function(v){var g=this.length,x=+v+(v<0?g:0);return this.pushStack(x>=0&&x+~]|"+Ze+")"+Ze+"*"),Xo=new RegExp(Ze+"|>"),ts=new RegExp(Qs),rn=new RegExp("^"+Gn+"$"),ki={ID:new RegExp("^#("+Gn+")"),CLASS:new RegExp("^\\.("+Gn+")"),TAG:new RegExp("^("+Gn+"|[*])"),ATTR:new RegExp("^"+Qn),PSEUDO:new RegExp("^"+Qs),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ze+"*(even|odd|(([+-]|)(\\d*)n|)"+Ze+"*(?:([+-]|)"+Ze+"*(\\d+)|))"+Ze+"*\\)|)","i"),bool:new RegExp("^(?:"+es+")$","i"),needsContext:new RegExp("^"+Ze+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ze+"*((?:-\\d)?\\d*)"+Ze+"*\\)|)(?=[^-]|$)","i")},cs=/^(?:input|select|textarea|button)$/i,vi=/^h\d$/i,ws=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,is=/[+~]/,Wr=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ze+"?|\\\\([^\\r\\n\\f])","g"),Ms=function(qe,yt){var Nt="0x"+qe.slice(1)-65536;return yt||(Nt<0?String.fromCharCode(Nt+65536):String.fromCharCode(Nt>>10|55296,1023&Nt|56320))},Vs=function(){Fs()},nr=ea(function(qe){return!0===qe.disabled&&Bt(qe,"fieldset")},{dir:"parentNode",next:"legend"});try{w.apply(s=S.call(Ln.childNodes),Ln.childNodes)}catch(qe){w={apply:function(yt,Nt){Dn.apply(yt,S.call(Nt))},call:function(yt){Dn.apply(yt,S.call(arguments,1))}}}function rr(qe,yt,Nt,Lt){var Ut,en,Hn,Xn,Vn,yi,pi,gi=yt&&yt.ownerDocument,Yi=yt?yt.nodeType:9;if(Nt=Nt||[],"string"!=typeof qe||!qe||1!==Yi&&9!==Yi&&11!==Yi)return Nt;if(!Lt&&(Fs(yt),yt=yt||T,pe)){if(11!==Yi&&(Vn=ws.exec(qe)))if(Ut=Vn[1]){if(9===Yi){if(!(Hn=yt.getElementById(Ut)))return Nt;if(Hn.id===Ut)return w.call(Nt,Hn),Nt}else if(gi&&(Hn=gi.getElementById(Ut))&&rr.contains(yt,Hn)&&Hn.id===Ut)return w.call(Nt,Hn),Nt}else{if(Vn[2])return w.apply(Nt,yt.getElementsByTagName(qe)),Nt;if((Ut=Vn[3])&&yt.getElementsByClassName)return w.apply(Nt,yt.getElementsByClassName(Ut)),Nt}if(!(ii[qe+" "]||Be&&Be.test(qe))){if(pi=qe,gi=yt,1===Yi&&(Xo.test(qe)||Is.test(qe))){for(((gi=is.test(qe)&&bo(yt.parentNode)||yt)!=yt||!Te.scope)&&((Xn=yt.getAttribute("id"))?Xn=J.escapeSelector(Xn):yt.setAttribute("id",Xn=Ft)),en=(yi=ro(qe)).length;en--;)yi[en]=(Xn?"#"+Xn:":scope")+" "+co(yi[en]);pi=yi.join(",")}try{return w.apply(Nt,gi.querySelectorAll(pi)),Nt}catch(ei){ii(qe,!0)}finally{Xn===Ft&&yt.removeAttribute("id")}}}return No(qe.replace(wt,"$1"),yt,Nt,Lt)}function yo(){var qe=[];return function yt(Nt,Lt){return qe.push(Nt+" ")>g.cacheLength&&delete yt[qe.shift()],yt[Nt+" "]=Lt}}function Pr(qe){return qe[Ft]=!0,qe}function Ds(qe){var yt=T.createElement("fieldset");try{return!!qe(yt)}catch(Nt){return!1}finally{yt.parentNode&&yt.parentNode.removeChild(yt),yt=null}}function ha(qe){return function(yt){return Bt(yt,"input")&&yt.type===qe}}function Zs(qe){return function(yt){return(Bt(yt,"input")||Bt(yt,"button"))&&yt.type===qe}}function io(qe){return function(yt){return"form"in yt?yt.parentNode&&!1===yt.disabled?"label"in yt?"label"in yt.parentNode?yt.parentNode.disabled===qe:yt.disabled===qe:yt.isDisabled===qe||yt.isDisabled!==!qe&&nr(yt)===qe:yt.disabled===qe:"label"in yt&&yt.disabled===qe}}function ks(qe){return Pr(function(yt){return yt=+yt,Pr(function(Nt,Lt){for(var Ut,en=qe([],Nt.length,yt),Hn=en.length;Hn--;)Nt[Ut=en[Hn]]&&(Nt[Ut]=!(Lt[Ut]=Nt[Ut]))})})}function bo(qe){return qe&&void 0!==qe.getElementsByTagName&&qe}function Fs(qe){var yt,Nt=qe?qe.ownerDocument||qe:Ln;return Nt==T||9!==Nt.nodeType||!Nt.documentElement||(V=(T=Nt).documentElement,pe=!J.isXMLDoc(T),Mt=V.matches||V.webkitMatchesSelector||V.msMatchesSelector,V.msMatchesSelector&&Ln!=T&&(yt=T.defaultView)&&yt.top!==yt&&yt.addEventListener("unload",Vs),Te.getById=Ds(function(Lt){return V.appendChild(Lt).id=J.expando,!T.getElementsByName||!T.getElementsByName(J.expando).length}),Te.disconnectedMatch=Ds(function(Lt){return Mt.call(Lt,"*")}),Te.scope=Ds(function(){return T.querySelectorAll(":scope")}),Te.cssHas=Ds(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(Lt){return!0}}),Te.getById?(g.filter.ID=function(Lt){var Ut=Lt.replace(Wr,Ms);return function(en){return en.getAttribute("id")===Ut}},g.find.ID=function(Lt,Ut){if(void 0!==Ut.getElementById&&pe){var en=Ut.getElementById(Lt);return en?[en]:[]}}):(g.filter.ID=function(Lt){var Ut=Lt.replace(Wr,Ms);return function(en){var Hn=void 0!==en.getAttributeNode&&en.getAttributeNode("id");return Hn&&Hn.value===Ut}},g.find.ID=function(Lt,Ut){if(void 0!==Ut.getElementById&&pe){var en,Hn,Xn,Vn=Ut.getElementById(Lt);if(Vn){if((en=Vn.getAttributeNode("id"))&&en.value===Lt)return[Vn];for(Xn=Ut.getElementsByName(Lt),Hn=0;Vn=Xn[Hn++];)if((en=Vn.getAttributeNode("id"))&&en.value===Lt)return[Vn]}return[]}}),g.find.TAG=function(Lt,Ut){return void 0!==Ut.getElementsByTagName?Ut.getElementsByTagName(Lt):Ut.querySelectorAll(Lt)},g.find.CLASS=function(Lt,Ut){if(void 0!==Ut.getElementsByClassName&&pe)return Ut.getElementsByClassName(Lt)},Be=[],Ds(function(Lt){var Ut;V.appendChild(Lt).innerHTML="",Lt.querySelectorAll("[selected]").length||Be.push("\\["+Ze+"*(?:value|"+es+")"),Lt.querySelectorAll("[id~="+Ft+"-]").length||Be.push("~="),Lt.querySelectorAll("a#"+Ft+"+*").length||Be.push(".#.+[+~]"),Lt.querySelectorAll(":checked").length||Be.push(":checked"),(Ut=T.createElement("input")).setAttribute("type","hidden"),Lt.appendChild(Ut).setAttribute("name","D"),V.appendChild(Lt).disabled=!0,2!==Lt.querySelectorAll(":disabled").length&&Be.push(":enabled",":disabled"),(Ut=T.createElement("input")).setAttribute("name",""),Lt.appendChild(Ut),Lt.querySelectorAll("[name='']").length||Be.push("\\["+Ze+"*name"+Ze+"*="+Ze+"*(?:''|\"\")")}),Te.cssHas||Be.push(":has"),Be=Be.length&&new RegExp(Be.join("|")),Cr=function(Lt,Ut){if(Lt===Ut)return _=!0,0;var en=!Lt.compareDocumentPosition-!Ut.compareDocumentPosition;return en||(1&(en=(Lt.ownerDocument||Lt)==(Ut.ownerDocument||Ut)?Lt.compareDocumentPosition(Ut):1)||!Te.sortDetached&&Ut.compareDocumentPosition(Lt)===en?Lt===T||Lt.ownerDocument==Ln&&rr.contains(Ln,Lt)?-1:Ut===T||Ut.ownerDocument==Ln&&rr.contains(Ln,Ut)?1:D?z.call(D,Lt)-z.call(D,Ut):0:4&en?-1:1)}),T}for(v in rr.matches=function(qe,yt){return rr(qe,null,null,yt)},rr.matchesSelector=function(qe,yt){if(Fs(qe),pe&&!ii[yt+" "]&&(!Be||!Be.test(yt)))try{var Nt=Mt.call(qe,yt);if(Nt||Te.disconnectedMatch||qe.document&&11!==qe.document.nodeType)return Nt}catch(Lt){ii(yt,!0)}return rr(yt,T,null,[qe]).length>0},rr.contains=function(qe,yt){return(qe.ownerDocument||qe)!=T&&Fs(qe),J.contains(qe,yt)},rr.attr=function(qe,yt){(qe.ownerDocument||qe)!=T&&Fs(qe);var Nt=g.attrHandle[yt.toLowerCase()],Lt=Nt&&oe.call(g.attrHandle,yt.toLowerCase())?Nt(qe,yt,!pe):void 0;return void 0!==Lt?Lt:qe.getAttribute(yt)},rr.error=function(qe){throw new Error("Syntax error, unrecognized expression: "+qe)},J.uniqueSort=function(qe){var yt,Nt=[],Lt=0,Ut=0;if(_=!Te.sortStable,D=!Te.sortStable&&S.call(qe,0),At.call(qe,Cr),_){for(;yt=qe[Ut++];)yt===qe[Ut]&&(Lt=Nt.push(Ut));for(;Lt--;)ot.call(qe,Nt[Lt],1)}return D=null,qe},J.fn.uniqueSort=function(){return this.pushStack(J.uniqueSort(S.apply(this)))},(g=J.expr={cacheLength:50,createPseudo:Pr,match:ki,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(qe){return qe[1]=qe[1].replace(Wr,Ms),qe[3]=(qe[3]||qe[4]||qe[5]||"").replace(Wr,Ms),"~="===qe[2]&&(qe[3]=" "+qe[3]+" "),qe.slice(0,4)},CHILD:function(qe){return qe[1]=qe[1].toLowerCase(),"nth"===qe[1].slice(0,3)?(qe[3]||rr.error(qe[0]),qe[4]=+(qe[4]?qe[5]+(qe[6]||1):2*("even"===qe[3]||"odd"===qe[3])),qe[5]=+(qe[7]+qe[8]||"odd"===qe[3])):qe[3]&&rr.error(qe[0]),qe},PSEUDO:function(qe){var yt,Nt=!qe[6]&&qe[2];return ki.CHILD.test(qe[0])?null:(qe[3]?qe[2]=qe[4]||qe[5]||"":Nt&&ts.test(Nt)&&(yt=ro(Nt,!0))&&(yt=Nt.indexOf(")",Nt.length-yt)-Nt.length)&&(qe[0]=qe[0].slice(0,yt),qe[2]=Nt.slice(0,yt)),qe.slice(0,3))}},filter:{TAG:function(qe){var yt=qe.replace(Wr,Ms).toLowerCase();return"*"===qe?function(){return!0}:function(Nt){return Bt(Nt,yt)}},CLASS:function(qe){var yt=Mn[qe+" "];return yt||(yt=new RegExp("(^|"+Ze+")"+qe+"("+Ze+"|$)"))&&Mn(qe,function(Nt){return yt.test("string"==typeof Nt.className&&Nt.className||void 0!==Nt.getAttribute&&Nt.getAttribute("class")||"")})},ATTR:function(qe,yt,Nt){return function(Lt){var Ut=rr.attr(Lt,qe);return null==Ut?"!="===yt:!yt||(Ut+="","="===yt?Ut===Nt:"!="===yt?Ut!==Nt:"^="===yt?Nt&&0===Ut.indexOf(Nt):"*="===yt?Nt&&Ut.indexOf(Nt)>-1:"$="===yt?Nt&&Ut.slice(-Nt.length)===Nt:"~="===yt?(" "+Ut.replace($i," ")+" ").indexOf(Nt)>-1:"|="===yt&&(Ut===Nt||Ut.slice(0,Nt.length+1)===Nt+"-"))}},CHILD:function(qe,yt,Nt,Lt,Ut){var en="nth"!==qe.slice(0,3),Hn="last"!==qe.slice(-4),Xn="of-type"===yt;return 1===Lt&&0===Ut?function(Vn){return!!Vn.parentNode}:function(Vn,yi,pi){var gi,Yi,ei,sr,ds,rs=en!==Hn?"nextSibling":"previousSibling",Rs=Vn.parentNode,ss=Xn&&Vn.nodeName.toLowerCase(),Zr=!pi&&!Xn,hs=!1;if(Rs){if(en){for(;rs;){for(ei=Vn;ei=ei[rs];)if(Xn?Bt(ei,ss):1===ei.nodeType)return!1;ds=rs="only"===qe&&!ds&&"nextSibling"}return!0}if(ds=[Hn?Rs.firstChild:Rs.lastChild],Hn&&Zr){for(hs=(sr=(gi=(Yi=Rs[Ft]||(Rs[Ft]={}))[qe]||[])[0]===bt&&gi[1])&&gi[2],ei=sr&&Rs.childNodes[sr];ei=++sr&&ei&&ei[rs]||(hs=sr=0)||ds.pop();)if(1===ei.nodeType&&++hs&&ei===Vn){Yi[qe]=[bt,sr,hs];break}}else if(Zr&&(hs=sr=(gi=(Yi=Vn[Ft]||(Vn[Ft]={}))[qe]||[])[0]===bt&&gi[1]),!1===hs)for(;(ei=++sr&&ei&&ei[rs]||(hs=sr=0)||ds.pop())&&(!(Xn?Bt(ei,ss):1===ei.nodeType)||!++hs||(Zr&&((Yi=ei[Ft]||(ei[Ft]={}))[qe]=[bt,hs]),ei!==Vn)););return(hs-=Ut)===Lt||hs%Lt==0&&hs/Lt>=0}}},PSEUDO:function(qe,yt){var Nt,Lt=g.pseudos[qe]||g.setFilters[qe.toLowerCase()]||rr.error("unsupported pseudo: "+qe);return Lt[Ft]?Lt(yt):Lt.length>1?(Nt=[qe,qe,"",yt],g.setFilters.hasOwnProperty(qe.toLowerCase())?Pr(function(Ut,en){for(var Hn,Xn=Lt(Ut,yt),Vn=Xn.length;Vn--;)Ut[Hn=z.call(Ut,Xn[Vn])]=!(en[Hn]=Xn[Vn])}):function(Ut){return Lt(Ut,0,Nt)}):Lt}},pseudos:{not:Pr(function(qe){var yt=[],Nt=[],Lt=qs(qe.replace(wt,"$1"));return Lt[Ft]?Pr(function(Ut,en,Hn,Xn){for(var Vn,yi=Lt(Ut,null,Xn,[]),pi=Ut.length;pi--;)(Vn=yi[pi])&&(Ut[pi]=!(en[pi]=Vn))}):function(Ut,en,Hn){return yt[0]=Ut,Lt(yt,null,Hn,Nt),yt[0]=null,!Nt.pop()}}),has:Pr(function(qe){return function(yt){return rr(qe,yt).length>0}}),contains:Pr(function(qe){return qe=qe.replace(Wr,Ms),function(yt){return(yt.textContent||J.text(yt)).indexOf(qe)>-1}}),lang:Pr(function(qe){return rn.test(qe||"")||rr.error("unsupported lang: "+qe),qe=qe.replace(Wr,Ms).toLowerCase(),function(yt){var Nt;do{if(Nt=pe?yt.lang:yt.getAttribute("xml:lang")||yt.getAttribute("lang"))return(Nt=Nt.toLowerCase())===qe||0===Nt.indexOf(qe+"-")}while((yt=yt.parentNode)&&1===yt.nodeType);return!1}}),target:function(qe){var yt=o.location&&o.location.hash;return yt&&yt.slice(1)===qe.id},root:function(qe){return qe===V},focus:function(qe){return qe===function(){try{return T.activeElement}catch(qe){}}()&&T.hasFocus()&&!!(qe.type||qe.href||~qe.tabIndex)},enabled:io(!1),disabled:io(!0),checked:function(qe){return Bt(qe,"input")&&!!qe.checked||Bt(qe,"option")&&!!qe.selected},selected:function(qe){return!0===qe.selected},empty:function(qe){for(qe=qe.firstChild;qe;qe=qe.nextSibling)if(qe.nodeType<6)return!1;return!0},parent:function(qe){return!g.pseudos.empty(qe)},header:function(qe){return vi.test(qe.nodeName)},input:function(qe){return cs.test(qe.nodeName)},button:function(qe){return Bt(qe,"input")&&"button"===qe.type||Bt(qe,"button")},text:function(qe){var yt;return Bt(qe,"input")&&"text"===qe.type&&(null==(yt=qe.getAttribute("type"))||"text"===yt.toLowerCase())},first:ks(function(){return[0]}),last:ks(function(qe,yt){return[yt-1]}),eq:ks(function(qe,yt,Nt){return[Nt<0?Nt+yt:Nt]}),even:ks(function(qe,yt){for(var Nt=0;Ntyt?yt:Nt;--Lt>=0;)qe.push(Lt);return qe}),gt:ks(function(qe,yt,Nt){for(var Lt=Nt<0?Nt+yt:Nt;++Lt1?function(yt,Nt,Lt){for(var Ut=qe.length;Ut--;)if(!qe[Ut](yt,Nt,Lt))return!1;return!0}:qe[0]}function Po(qe,yt,Nt,Lt,Ut){for(var en,Hn=[],Xn=0,Vn=qe.length,yi=null!=yt;Xn-1&&(Hn[pi]=!(Xn[pi]=Yi))}}else ei=Po(ei===Xn?ei.splice(rs,ei.length):ei),Ut?Ut(null,Xn,ei,yi):w.apply(Xn,ei)})}function Pi(qe){for(var yt,Nt,Lt,Ut=qe.length,en=g.relative[qe[0].type],Hn=en||g.relative[" "],Xn=en?1:0,Vn=ea(function(gi){return gi===yt},Hn,!0),yi=ea(function(gi){return z.call(yt,gi)>-1},Hn,!0),pi=[function(gi,Yi,ei){var sr=!en&&(ei||Yi!=x)||((yt=Yi).nodeType?Vn(gi,Yi,ei):yi(gi,Yi,ei));return yt=null,sr}];Xn1&&Vo(pi),Xn>1&&co(qe.slice(0,Xn-1).concat({value:" "===qe[Xn-2].type?"*":""})).replace(wt,"$1"),Nt,Xn0,Lt=qe.length>0,Ut=function(en,Hn,Xn,Vn,yi){var pi,gi,Yi,ei=0,sr="0",ds=en&&[],rs=[],Rs=x,ss=en||Lt&&g.find.TAG("*",yi),Zr=bt+=null==Rs?1:Math.random()||.1,hs=ss.length;for(yi&&(x=Hn==T||Hn||yi);sr!==hs&&null!=(pi=ss[sr]);sr++){if(Lt&&pi){for(gi=0,!Hn&&pi.ownerDocument!=T&&(Fs(pi),Xn=!pe);Yi=qe[gi++];)if(Yi(pi,Hn||T,Xn)){w.call(Vn,pi);break}yi&&(bt=Zr)}Nt&&((pi=!Yi&&pi)&&ei--,en&&ds.push(pi))}if(ei+=sr,Nt&&sr!==ei){for(gi=0;Yi=yt[gi++];)Yi(ds,rs,Hn,Xn);if(en){if(ei>0)for(;sr--;)ds[sr]||rs[sr]||(rs[sr]=fn.call(Vn));rs=Po(rs)}w.apply(Vn,rs),yi&&!en&&rs.length>0&&ei+yt.length>1&&J.uniqueSort(Vn)}return yi&&(bt=Zr,x=Rs),ds};return Nt?Pr(Ut):Ut}(Ut,Lt)),en.selector=qe}return en}function No(qe,yt,Nt,Lt){var Ut,en,Hn,Xn,Vn,yi="function"==typeof qe&&qe,pi=!Lt&&ro(qe=yi.selector||qe);if(Nt=Nt||[],1===pi.length){if((en=pi[0]=pi[0].slice(0)).length>2&&"ID"===(Hn=en[0]).type&&9===yt.nodeType&&pe&&g.relative[en[1].type]){if(!(yt=(g.find.ID(Hn.matches[0].replace(Wr,Ms),yt)||[])[0]))return Nt;yi&&(yt=yt.parentNode),qe=qe.slice(en.shift().value.length)}for(Ut=ki.needsContext.test(qe)?0:en.length;Ut--&&!g.relative[Xn=(Hn=en[Ut]).type];)if((Vn=g.find[Xn])&&(Lt=Vn(Hn.matches[0].replace(Wr,Ms),is.test(en[0].type)&&bo(yt.parentNode)||yt))){if(en.splice(Ut,1),!(qe=Lt.length&&co(en)))return w.apply(Nt,Lt),Nt;break}}return(yi||qs(qe,pi))(Lt,yt,!pe,Nt,!yt||is.test(qe)&&bo(yt.parentNode)||yt),Nt}Us.prototype=g.filters=g.pseudos,g.setFilters=new Us,Te.sortStable=Ft.split("").sort(Cr).join("")===Ft,Fs(),Te.sortDetached=Ds(function(qe){return 1&qe.compareDocumentPosition(T.createElement("fieldset"))}),J.find=rr,J.expr[":"]=J.expr.pseudos,J.unique=J.uniqueSort,rr.compile=qs,rr.select=No,rr.setDocument=Fs,rr.tokenize=ro,rr.escape=J.escapeSelector,rr.getText=J.text,rr.isXML=J.isXMLDoc,rr.selectors=J.expr,rr.support=J.support,rr.uniqueSort=J.uniqueSort}();var Si=function(v,g,x){for(var D=[],_=void 0!==x;(v=v[g])&&9!==v.nodeType;)if(1===v.nodeType){if(_&&J(v).is(x))break;D.push(v)}return D},$n=function(v,g){for(var x=[];v;v=v.nextSibling)1===v.nodeType&&v!==g&&x.push(v);return x},mn=J.expr.match.needsContext,_i=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Sn(v,g,x){return le(g)?J.grep(v,function(D,_){return!!g.call(D,_,D)!==x}):g.nodeType?J.grep(v,function(D){return D===g!==x}):"string"!=typeof g?J.grep(v,function(D){return z.call(g,D)>-1!==x}):J.filter(g,v,x)}J.filter=function(v,g,x){var D=g[0];return x&&(v=":not("+v+")"),1===g.length&&1===D.nodeType?J.find.matchesSelector(D,v)?[D]:[]:J.find.matches(v,J.grep(g,function(_){return 1===_.nodeType}))},J.fn.extend({find:function(v){var g,x,D=this.length,_=this;if("string"!=typeof v)return this.pushStack(J(v).filter(function(){for(g=0;g1?J.uniqueSort(x):x},filter:function(v){return this.pushStack(Sn(this,v||[],!1))},not:function(v){return this.pushStack(Sn(this,v||[],!0))},is:function(v){return!!Sn(this,"string"==typeof v&&mn.test(v)?J(v):v||[],!1).length}});var ai,di=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,$t=J.fn.init=function(v,g,x){var D,_;if(!v)return this;if(x=x||ai,"string"==typeof v){if(!(D="<"===v[0]&&">"===v[v.length-1]&&v.length>=3?[null,v,null]:di.exec(v))||!D[1]&&g)return!g||g.jquery?(g||x).find(v):this.constructor(g).find(v);if(D[1]){if(J.merge(this,J.parseHTML(D[1],(g=g instanceof J?g[0]:g)&&g.nodeType?g.ownerDocument||g:He,!0)),_i.test(D[1])&&J.isPlainObject(g))for(D in g)le(this[D])?this[D](g[D]):this.attr(D,g[D]);return this}return(_=He.getElementById(D[2]))&&(this[0]=_,this.length=1),this}return v.nodeType?(this[0]=v,this.length=1,this):le(v)?void 0!==x.ready?x.ready(v):v(J):J.makeArray(v,this)};$t.prototype=J.fn,ai=J(He);var An=/^(?:parents|prev(?:Until|All))/,Me={children:!0,contents:!0,next:!0,prev:!0};function Et(v,g){for(;(v=v[g])&&1!==v.nodeType;);return v}J.fn.extend({has:function(v){var g=J(v,this),x=g.length;return this.filter(function(){for(var D=0;D-1:1===x.nodeType&&J.find.matchesSelector(x,v))){w.push(x);break}return this.pushStack(w.length>1?J.uniqueSort(w):w)},index:function(v){return v?"string"==typeof v?z.call(J(v),this[0]):z.call(this,v.jquery?v[0]:v):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(v,g){return this.pushStack(J.uniqueSort(J.merge(this.get(),J(v,g))))},addBack:function(v){return this.add(null==v?this.prevObject:this.prevObject.filter(v))}}),J.each({parent:function(v){var g=v.parentNode;return g&&11!==g.nodeType?g:null},parents:function(v){return Si(v,"parentNode")},parentsUntil:function(v,g,x){return Si(v,"parentNode",x)},next:function(v){return Et(v,"nextSibling")},prev:function(v){return Et(v,"previousSibling")},nextAll:function(v){return Si(v,"nextSibling")},prevAll:function(v){return Si(v,"previousSibling")},nextUntil:function(v,g,x){return Si(v,"nextSibling",x)},prevUntil:function(v,g,x){return Si(v,"previousSibling",x)},siblings:function(v){return $n((v.parentNode||{}).firstChild,v)},children:function(v){return $n(v.firstChild)},contents:function(v){return null!=v.contentDocument&&E(v.contentDocument)?v.contentDocument:(Bt(v,"template")&&(v=v.content||v),J.merge([],v.childNodes))}},function(v,g){J.fn[v]=function(x,D){var _=J.map(this,g,x);return"Until"!==v.slice(-5)&&(D=x),D&&"string"==typeof D&&(_=J.filter(D,_)),this.length>1&&(Me[v]||J.uniqueSort(_),An.test(v)&&_.reverse()),this.pushStack(_)}});var Ae=/[^\x20\t\r\n\f]+/g;function Ne(v){return v}function Ie(v){throw v}function It(v,g,x,D){var _;try{v&&le(_=v.promise)?_.call(v).done(g).fail(x):v&&le(_=v.then)?_.call(v,g,x):g.apply(void 0,[v].slice(D))}catch(w){x.apply(void 0,[w])}}J.Callbacks=function(v){v="string"==typeof v?function(v){var g={};return J.each(v.match(Ae)||[],function(x,D){g[D]=!0}),g}(v):J.extend({},v);var g,x,D,_,w=[],T=[],V=-1,pe=function(){for(_=_||v.once,D=g=!0;T.length;V=-1)for(x=T.shift();++V-1;)w.splice(bt,1),bt<=V&&V--}),this},has:function(Mt){return Mt?J.inArray(Mt,w)>-1:w.length>0},empty:function(){return w&&(w=[]),this},disable:function(){return _=T=[],w=x="",this},disabled:function(){return!w},lock:function(){return _=T=[],!x&&!g&&(w=x=""),this},locked:function(){return!!_},fireWith:function(Mt,Ft){return _||(Ft=[Mt,(Ft=Ft||[]).slice?Ft.slice():Ft],T.push(Ft),g||pe()),this},fire:function(){return Be.fireWith(this,arguments),this},fired:function(){return!!D}};return Be},J.extend({Deferred:function(v){var g=[["notify","progress",J.Callbacks("memory"),J.Callbacks("memory"),2],["resolve","done",J.Callbacks("once memory"),J.Callbacks("once memory"),0,"resolved"],["reject","fail",J.Callbacks("once memory"),J.Callbacks("once memory"),1,"rejected"]],x="pending",D={state:function(){return x},always:function(){return _.done(arguments).fail(arguments),this},catch:function(w){return D.then(null,w)},pipe:function(){var w=arguments;return J.Deferred(function(T){J.each(g,function(V,pe){var Be=le(w[pe[4]])&&w[pe[4]];_[pe[1]](function(){var Mt=Be&&Be.apply(this,arguments);Mt&&le(Mt.promise)?Mt.promise().progress(T.notify).done(T.resolve).fail(T.reject):T[pe[0]+"With"](this,Be?[Mt]:arguments)})}),w=null}).promise()},then:function(w,T,V){var pe=0;function Be(Mt,Ft,bt,Wt){return function(){var Mn=this,oi=arguments,Mi=function(){var Cr,es;if(!(Mt=pe&&(bt!==Ie&&(Mn=void 0,oi=[Cr]),Ft.rejectWith(Mn,oi))}};Mt?ii():(J.Deferred.getErrorHook?ii.error=J.Deferred.getErrorHook():J.Deferred.getStackHook&&(ii.error=J.Deferred.getStackHook()),o.setTimeout(ii))}}return J.Deferred(function(Mt){g[0][3].add(Be(0,Mt,le(V)?V:Ne,Mt.notifyWith)),g[1][3].add(Be(0,Mt,le(w)?w:Ne)),g[2][3].add(Be(0,Mt,le(T)?T:Ie))}).promise()},promise:function(w){return null!=w?J.extend(w,D):D}},_={};return J.each(g,function(w,T){var V=T[2],pe=T[5];D[T[1]]=V.add,pe&&V.add(function(){x=pe},g[3-w][2].disable,g[3-w][3].disable,g[0][2].lock,g[0][3].lock),V.add(T[3].fire),_[T[0]]=function(){return _[T[0]+"With"](this===_?void 0:this,arguments),this},_[T[0]+"With"]=V.fireWith}),D.promise(_),v&&v.call(_,_),_},when:function(v){var g=arguments.length,x=g,D=Array(x),_=S.call(arguments),w=J.Deferred(),T=function(V){return function(pe){D[V]=this,_[V]=arguments.length>1?S.call(arguments):pe,--g||w.resolveWith(D,_)}};if(g<=1&&(It(v,w.done(T(x)).resolve,w.reject,!g),"pending"===w.state()||le(_[x]&&_[x].then)))return w.then();for(;x--;)It(_[x],T(x),w.reject);return w.promise()}});var ge=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;J.Deferred.exceptionHook=function(v,g){o.console&&o.console.warn&&v&&ge.test(v.name)&&o.console.warn("jQuery.Deferred exception: "+v.message,v.stack,g)},J.readyException=function(v){o.setTimeout(function(){throw v})};var et=J.Deferred();function Qe(){He.removeEventListener("DOMContentLoaded",Qe),o.removeEventListener("load",Qe),J.ready()}J.fn.ready=function(v){return et.then(v).catch(function(g){J.readyException(g)}),this},J.extend({isReady:!1,readyWait:1,ready:function(v){(!0===v?--J.readyWait:J.isReady)||(J.isReady=!0,!(!0!==v&&--J.readyWait>0)&&et.resolveWith(He,[J]))}}),J.ready.then=et.then,"complete"===He.readyState||"loading"!==He.readyState&&!He.documentElement.doScroll?o.setTimeout(J.ready):(He.addEventListener("DOMContentLoaded",Qe),o.addEventListener("load",Qe));var $e=function(v,g,x,D,_,w,T){var V=0,pe=v.length,Be=null==x;if("object"===Zn(x))for(V in _=!0,x)$e(v,g,V,x[V],!0,w,T);else if(void 0!==D&&(_=!0,le(D)||(T=!0),Be&&(T?(g.call(v,D),g=null):(Be=g,g=function(Mt,Ft,bt){return Be.call(J(Mt),bt)})),g))for(;V1,null,!0)},removeData:function(v){return this.each(function(){G.remove(this,v)})}}),J.extend({queue:function(v,g,x){var D;if(v)return D=_e.get(v,g=(g||"fx")+"queue"),x&&(!D||Array.isArray(x)?D=_e.access(v,g,J.makeArray(x)):D.push(x)),D||[]},dequeue:function(v,g){var x=J.queue(v,g=g||"fx"),D=x.length,_=x.shift(),w=J._queueHooks(v,g);"inprogress"===_&&(_=x.shift(),D--),_&&("fx"===g&&x.unshift("inprogress"),delete w.stop,_.call(v,function(){J.dequeue(v,g)},w)),!D&&w&&w.empty.fire()},_queueHooks:function(v,g){var x=g+"queueHooks";return _e.get(v,x)||_e.access(v,x,{empty:J.Callbacks("once memory").add(function(){_e.remove(v,[g+"queue",x])})})}}),J.fn.extend({queue:function(v,g){var x=2;return"string"!=typeof v&&(g=v,v="fx",x--),arguments.length\x20\t\r\n\f]*)/i,qi=/^$|^module$|\/(?:java|ecma)script/i;g=He.createDocumentFragment().appendChild(He.createElement("div")),(x=He.createElement("input")).setAttribute("type","radio"),x.setAttribute("checked","checked"),x.setAttribute("name","t"),g.appendChild(x),Te.checkClone=g.cloneNode(!0).cloneNode(!0).lastChild.checked,g.innerHTML="",Te.noCloneChecked=!!g.cloneNode(!0).lastChild.defaultValue,g.innerHTML="",Te.option=!!g.lastChild;var xi={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Dr(v,g){var x;return x=void 0!==v.getElementsByTagName?v.getElementsByTagName(g||"*"):void 0!==v.querySelectorAll?v.querySelectorAll(g||"*"):[],void 0===g||g&&Bt(v,g)?J.merge([v],x):x}function Er(v,g){for(var x=0,D=v.length;x",""]);var Ir=/<|&#?\w+;/;function dt(v,g,x,D,_){for(var w,T,V,pe,Be,Mt,Ft=g.createDocumentFragment(),bt=[],Wt=0,Mn=v.length;Wt-1)_&&_.push(w);else if(Be=_n(w),T=Dr(Ft.appendChild(w),"script"),Be&&Er(T),x)for(Mt=0;w=T[Mt++];)qi.test(w.type||"")&&x.push(w);return Ft}var gn=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function nt(){return!1}function Kt(v,g,x,D,_,w){var T,V;if("object"==typeof g){for(V in"string"!=typeof x&&(D=D||x,x=void 0),g)Kt(v,V,x,D,g[V],w);return v}if(null==D&&null==_?(_=x,D=x=void 0):null==_&&("string"==typeof x?(_=D,D=void 0):(_=D,D=x,x=void 0)),!1===_)_=nt;else if(!_)return v;return 1===w&&(T=_,_=function(pe){return J().off(pe),T.apply(this,arguments)},_.guid=T.guid||(T.guid=J.guid++)),v.each(function(){J.event.add(this,g,_,D,x)})}function Tn(v,g,x){x?(_e.set(v,g,!1),J.event.add(v,g,{namespace:!1,handler:function(D){var _,w=_e.get(this,g);if(1&D.isTrigger&&this[g]){if(w)(J.event.special[g]||{}).delegateType&&D.stopPropagation();else if(w=S.call(arguments),_e.set(this,g,w),this[g](),_=_e.get(this,g),_e.set(this,g,!1),w!==_)return D.stopImmediatePropagation(),D.preventDefault(),_}else w&&(_e.set(this,g,J.event.trigger(w[0],w.slice(1),this)),D.stopPropagation(),D.isImmediatePropagationStopped=be)}})):void 0===_e.get(v,g)&&J.event.add(v,g,be)}J.event={global:{},add:function(v,g,x,D,_){var w,T,V,pe,Be,Mt,Ft,bt,Wt,Mn,oi,Mi=_e.get(v);if(ie(v))for(x.handler&&(x=(w=x).handler,_=w.selector),_&&J.find.matchesSelector(cn,_),x.guid||(x.guid=J.guid++),(pe=Mi.events)||(pe=Mi.events=Object.create(null)),(T=Mi.handle)||(T=Mi.handle=function(ii){return void 0!==J&&J.event.triggered!==ii.type?J.event.dispatch.apply(v,arguments):void 0}),Be=(g=(g||"").match(Ae)||[""]).length;Be--;)Wt=oi=(V=gn.exec(g[Be])||[])[1],Mn=(V[2]||"").split(".").sort(),Wt&&(Ft=J.event.special[Wt]||{},Ft=J.event.special[Wt=(_?Ft.delegateType:Ft.bindType)||Wt]||{},Mt=J.extend({type:Wt,origType:oi,data:D,handler:x,guid:x.guid,selector:_,needsContext:_&&J.expr.match.needsContext.test(_),namespace:Mn.join(".")},w),(bt=pe[Wt])||((bt=pe[Wt]=[]).delegateCount=0,(!Ft.setup||!1===Ft.setup.call(v,D,Mn,T))&&v.addEventListener&&v.addEventListener(Wt,T)),Ft.add&&(Ft.add.call(v,Mt),Mt.handler.guid||(Mt.handler.guid=x.guid)),_?bt.splice(bt.delegateCount++,0,Mt):bt.push(Mt),J.event.global[Wt]=!0)},remove:function(v,g,x,D,_){var w,T,V,pe,Be,Mt,Ft,bt,Wt,Mn,oi,Mi=_e.hasData(v)&&_e.get(v);if(Mi&&(pe=Mi.events)){for(Be=(g=(g||"").match(Ae)||[""]).length;Be--;)if(Wt=oi=(V=gn.exec(g[Be])||[])[1],Mn=(V[2]||"").split(".").sort(),Wt){for(Ft=J.event.special[Wt]||{},bt=pe[Wt=(D?Ft.delegateType:Ft.bindType)||Wt]||[],V=V[2]&&new RegExp("(^|\\.)"+Mn.join("\\.(?:.*\\.|)")+"(\\.|$)"),T=w=bt.length;w--;)Mt=bt[w],(_||oi===Mt.origType)&&(!x||x.guid===Mt.guid)&&(!V||V.test(Mt.namespace))&&(!D||D===Mt.selector||"**"===D&&Mt.selector)&&(bt.splice(w,1),Mt.selector&&bt.delegateCount--,Ft.remove&&Ft.remove.call(v,Mt));T&&!bt.length&&((!Ft.teardown||!1===Ft.teardown.call(v,Mn,Mi.handle))&&J.removeEvent(v,Wt,Mi.handle),delete pe[Wt])}else for(Wt in pe)J.event.remove(v,Wt+g[Be],x,D,!0);J.isEmptyObject(pe)&&_e.remove(v,"handle events")}},dispatch:function(v){var g,x,D,_,w,T,V=new Array(arguments.length),pe=J.event.fix(v),Be=(_e.get(this,"events")||Object.create(null))[pe.type]||[],Mt=J.event.special[pe.type]||{};for(V[0]=pe,g=1;g=1))for(;Be!==this;Be=Be.parentNode||this)if(1===Be.nodeType&&("click"!==v.type||!0!==Be.disabled)){for(w=[],T={},x=0;x-1:J.find(_,this,null,[Be]).length),T[_]&&w.push(D);w.length&&V.push({elem:Be,handlers:w})}return Be=this,pe\s*$/g;function Ri(v,g){return Bt(v,"table")&&Bt(11!==g.nodeType?g:g.firstChild,"tr")&&J(v).children("tbody")[0]||v}function Gi(v){return v.type=(null!==v.getAttribute("type"))+"/"+v.type,v}function hi(v){return"true/"===(v.type||"").slice(0,5)?v.type=v.type.slice(5):v.removeAttribute("type"),v}function ln(v,g){var x,D,_,T,V,pe;if(1===g.nodeType){if(_e.hasData(v)&&(pe=_e.get(v).events))for(_ in _e.remove(g,"handle events"),pe)for(x=0,D=pe[_].length;x1&&"string"==typeof Wt&&!Te.checkClone&&En.test(Wt))return v.each(function(oi){var Mi=v.eq(oi);Mn&&(g[0]=Wt.call(this,oi,Mi.html())),xe(Mi,g,x,D)});if(Ft&&(w=(_=dt(g,v[0].ownerDocument,!1,v,D)).firstChild,1===_.childNodes.length&&(_=w),w||D)){for(V=(T=J.map(Dr(_,"script"),Gi)).length;Mt0&&Er(T,!pe&&Dr(v,"script")),V},cleanData:function(v){for(var g,x,D,_=J.event.special,w=0;void 0!==(x=v[w]);w++)if(ie(x)){if(g=x[_e.expando]){if(g.events)for(D in g.events)_[D]?J.event.remove(x,D):J.removeEvent(x,D,g.handle);x[_e.expando]=void 0}x[G.expando]&&(x[G.expando]=void 0)}}}),J.fn.extend({detach:function(v){return tt(this,v,!0)},remove:function(v){return tt(this,v)},text:function(v){return $e(this,function(g){return void 0===g?J.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=g)})},null,v,arguments.length)},append:function(){return xe(this,arguments,function(v){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ri(this,v).appendChild(v)})},prepend:function(){return xe(this,arguments,function(v){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var g=Ri(this,v);g.insertBefore(v,g.firstChild)}})},before:function(){return xe(this,arguments,function(v){this.parentNode&&this.parentNode.insertBefore(v,this)})},after:function(){return xe(this,arguments,function(v){this.parentNode&&this.parentNode.insertBefore(v,this.nextSibling)})},empty:function(){for(var v,g=0;null!=(v=this[g]);g++)1===v.nodeType&&(J.cleanData(Dr(v,!1)),v.textContent="");return this},clone:function(v,g){return v=null!=v&&v,g=null==g?v:g,this.map(function(){return J.clone(this,v,g)})},html:function(v){return $e(this,function(g){var x=this[0]||{},D=0,_=this.length;if(void 0===g&&1===x.nodeType)return x.innerHTML;if("string"==typeof g&&!Kn.test(g)&&!xi[(me.exec(g)||["",""])[1].toLowerCase()]){g=J.htmlPrefilter(g);try{for(;D<_;D++)1===(x=this[D]||{}).nodeType&&(J.cleanData(Dr(x,!1)),x.innerHTML=g);x=0}catch(w){}}x&&this.empty().append(g)},null,v,arguments.length)},replaceWith:function(){var v=[];return xe(this,arguments,function(g){var x=this.parentNode;J.inArray(this,v)<0&&(J.cleanData(Dr(this)),x&&x.replaceChild(g,this))},v)}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(v,g){J.fn[v]=function(x){for(var D,_=[],w=J(x),T=w.length-1,V=0;V<=T;V++)D=V===T?this:this.clone(!0),J(w[V])[g](D),F.apply(_,D.get());return this.pushStack(_)}});var fe=new RegExp("^("+Ct+")(?!px)[a-z%]+$","i"),Fe=/^--/,ct=function(v){var g=v.ownerDocument.defaultView;return(!g||!g.opener)&&(g=o),g.getComputedStyle(v)},xt=function(v,g,x){var D,_,w={};for(_ in g)w[_]=v.style[_],v.style[_]=g[_];for(_ in D=x.call(v),g)v.style[_]=w[_];return D},on=new RegExp(Nn.join("|"),"i");function In(v,g,x){var D,_,w,T,V=Fe.test(g),pe=v.style;return(x=x||ct(v))&&(T=x.getPropertyValue(g)||x[g],V&&T&&(T=T.replace(wt,"$1")||void 0),""===T&&!_n(v)&&(T=J.style(v,g)),!Te.pixelBoxStyles()&&fe.test(T)&&on.test(g)&&(D=pe.width,_=pe.minWidth,w=pe.maxWidth,pe.minWidth=pe.maxWidth=pe.width=T,T=x.width,pe.width=D,pe.minWidth=_,pe.maxWidth=w)),void 0!==T?T+"":T}function yn(v,g){return{get:function(){if(!v())return(this.get=g).apply(this,arguments);delete this.get}}}!function(){function v(){if(Be){pe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Be.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",cn.appendChild(pe).appendChild(Be);var Mt=o.getComputedStyle(Be);x="1%"!==Mt.top,V=12===g(Mt.marginLeft),Be.style.right="60%",w=36===g(Mt.right),D=36===g(Mt.width),Be.style.position="absolute",_=12===g(Be.offsetWidth/3),cn.removeChild(pe),Be=null}}function g(Mt){return Math.round(parseFloat(Mt))}var x,D,_,w,T,V,pe=He.createElement("div"),Be=He.createElement("div");!Be.style||(Be.style.backgroundClip="content-box",Be.cloneNode(!0).style.backgroundClip="",Te.clearCloneStyle="content-box"===Be.style.backgroundClip,J.extend(Te,{boxSizingReliable:function(){return v(),D},pixelBoxStyles:function(){return v(),w},pixelPosition:function(){return v(),x},reliableMarginLeft:function(){return v(),V},scrollboxSize:function(){return v(),_},reliableTrDimensions:function(){var Mt,Ft,bt,Wt;return null==T&&(Mt=He.createElement("table"),Ft=He.createElement("tr"),bt=He.createElement("div"),Mt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ft.style.cssText="box-sizing:content-box;border:1px solid",Ft.style.height="1px",bt.style.height="9px",bt.style.display="block",cn.appendChild(Mt).appendChild(Ft).appendChild(bt),Wt=o.getComputedStyle(Ft),T=parseInt(Wt.height,10)+parseInt(Wt.borderTopWidth,10)+parseInt(Wt.borderBottomWidth,10)===Ft.offsetHeight,cn.removeChild(Mt)),T}}))}();var it=["Webkit","Moz","ms"],re=He.createElement("div").style,we={};function Ce(v){return J.cssProps[v]||we[v]||(v in re?v:we[v]=function(v){for(var g=v[0].toUpperCase()+v.slice(1),x=it.length;x--;)if((v=it[x]+g)in re)return v}(v)||v)}var ht=/^(none|table(?!-c[ea]).+)/,zt={position:"absolute",visibility:"hidden",display:"block"},Cn={letterSpacing:"0",fontWeight:"400"};function tn(v,g,x){var D=wn.exec(g);return D?Math.max(0,D[2]-(x||0))+(D[3]||"px"):g}function si(v,g,x,D,_,w){var T="width"===g?1:0,V=0,pe=0,Be=0;if(x===(D?"border":"content"))return 0;for(;T<4;T+=2)"margin"===x&&(Be+=J.css(v,x+Nn[T],!0,_)),D?("content"===x&&(pe-=J.css(v,"padding"+Nn[T],!0,_)),"margin"!==x&&(pe-=J.css(v,"border"+Nn[T]+"Width",!0,_))):(pe+=J.css(v,"padding"+Nn[T],!0,_),"padding"!==x?pe+=J.css(v,"border"+Nn[T]+"Width",!0,_):V+=J.css(v,"border"+Nn[T]+"Width",!0,_));return!D&&w>=0&&(pe+=Math.max(0,Math.ceil(v["offset"+g[0].toUpperCase()+g.slice(1)]-w-pe-V-.5))||0),pe+Be}function ui(v,g,x){var D=ct(v),w=(!Te.boxSizingReliable()||x)&&"border-box"===J.css(v,"boxSizing",!1,D),T=w,V=In(v,g,D),pe="offset"+g[0].toUpperCase()+g.slice(1);if(fe.test(V)){if(!x)return V;V="auto"}return(!Te.boxSizingReliable()&&w||!Te.reliableTrDimensions()&&Bt(v,"tr")||"auto"===V||!parseFloat(V)&&"inline"===J.css(v,"display",!1,D))&&v.getClientRects().length&&(w="border-box"===J.css(v,"boxSizing",!1,D),(T=pe in v)&&(V=v[pe])),(V=parseFloat(V)||0)+si(v,g,x||(w?"border":"content"),T,D,V)+"px"}function Pn(v,g,x,D,_){return new Pn.prototype.init(v,g,x,D,_)}J.extend({cssHooks:{opacity:{get:function(v,g){if(g){var x=In(v,"opacity");return""===x?"1":x}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(v,g,x,D){if(v&&3!==v.nodeType&&8!==v.nodeType&&v.style){var _,w,T,V=ye(g),pe=Fe.test(g),Be=v.style;if(pe||(g=Ce(V)),T=J.cssHooks[g]||J.cssHooks[V],void 0===x)return T&&"get"in T&&void 0!==(_=T.get(v,!1,D))?_:Be[g];if("string"==(w=typeof x)&&(_=wn.exec(x))&&_[1]&&(x=li(v,g,_),w="number"),null==x||x!=x)return;"number"===w&&!pe&&(x+=_&&_[3]||(J.cssNumber[V]?"":"px")),!Te.clearCloneStyle&&""===x&&0===g.indexOf("background")&&(Be[g]="inherit"),(!T||!("set"in T)||void 0!==(x=T.set(v,x,D)))&&(pe?Be.setProperty(g,x):Be[g]=x)}},css:function(v,g,x,D){var _,w,T,V=ye(g);return Fe.test(g)||(g=Ce(V)),(T=J.cssHooks[g]||J.cssHooks[V])&&"get"in T&&(_=T.get(v,!0,x)),void 0===_&&(_=In(v,g,D)),"normal"===_&&g in Cn&&(_=Cn[g]),""===x||x?(w=parseFloat(_),!0===x||isFinite(w)?w||0:_):_}}),J.each(["height","width"],function(v,g){J.cssHooks[g]={get:function(x,D,_){if(D)return!ht.test(J.css(x,"display"))||x.getClientRects().length&&x.getBoundingClientRect().width?ui(x,g,_):xt(x,zt,function(){return ui(x,g,_)})},set:function(x,D,_){var w,T=ct(x),V=!Te.scrollboxSize()&&"absolute"===T.position,Be=(V||_)&&"border-box"===J.css(x,"boxSizing",!1,T),Mt=_?si(x,g,_,Be,T):0;return Be&&V&&(Mt-=Math.ceil(x["offset"+g[0].toUpperCase()+g.slice(1)]-parseFloat(T[g])-si(x,g,"border",!1,T)-.5)),Mt&&(w=wn.exec(D))&&"px"!==(w[3]||"px")&&(x.style[g]=D,D=J.css(x,g)),tn(0,D,Mt)}}}),J.cssHooks.marginLeft=yn(Te.reliableMarginLeft,function(v,g){if(g)return(parseFloat(In(v,"marginLeft"))||v.getBoundingClientRect().left-xt(v,{marginLeft:0},function(){return v.getBoundingClientRect().left}))+"px"}),J.each({margin:"",padding:"",border:"Width"},function(v,g){J.cssHooks[v+g]={expand:function(x){for(var D=0,_={},w="string"==typeof x?x.split(" "):[x];D<4;D++)_[v+Nn[D]+g]=w[D]||w[D-2]||w[0];return _}},"margin"!==v&&(J.cssHooks[v+g].set=tn)}),J.fn.extend({css:function(v,g){return $e(this,function(x,D,_){var w,T,V={},pe=0;if(Array.isArray(D)){for(w=ct(x),T=D.length;pe1)}}),J.Tween=Pn,(Pn.prototype={constructor:Pn,init:function(v,g,x,D,_,w){this.elem=v,this.prop=x,this.easing=_||J.easing._default,this.options=g,this.start=this.now=this.cur(),this.end=D,this.unit=w||(J.cssNumber[x]?"":"px")},cur:function(){var v=Pn.propHooks[this.prop];return v&&v.get?v.get(this):Pn.propHooks._default.get(this)},run:function(v){var g,x=Pn.propHooks[this.prop];return this.pos=g=this.options.duration?J.easing[this.easing](v,this.options.duration*v,0,1,this.options.duration):v,this.now=(this.end-this.start)*g+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),x&&x.set?x.set(this):Pn.propHooks._default.set(this),this}}).init.prototype=Pn.prototype,(Pn.propHooks={_default:{get:function(v){var g;return 1!==v.elem.nodeType||null!=v.elem[v.prop]&&null==v.elem.style[v.prop]?v.elem[v.prop]:(g=J.css(v.elem,v.prop,""))&&"auto"!==g?g:0},set:function(v){J.fx.step[v.prop]?J.fx.step[v.prop](v):1!==v.elem.nodeType||!J.cssHooks[v.prop]&&null==v.elem.style[Ce(v.prop)]?v.elem[v.prop]=v.now:J.style(v.elem,v.prop,v.now+v.unit)}}}).scrollTop=Pn.propHooks.scrollLeft={set:function(v){v.elem.nodeType&&v.elem.parentNode&&(v.elem[v.prop]=v.now)}},J.easing={linear:function(v){return v},swing:function(v){return.5-Math.cos(v*Math.PI)/2},_default:"swing"},J.fx=Pn.prototype.init,J.fx.step={};var ur,Sr,Or=/^(?:toggle|show|hide)$/,Ve=/queueHooks$/;function Ue(){Sr&&(!1===He.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(Ue):o.setTimeout(Ue,J.fx.interval),J.fx.tick())}function Ge(){return o.setTimeout(function(){ur=void 0}),ur=Date.now()}function jt(v,g){var x,D=0,_={height:v};for(g=g?1:0;D<4;D+=2-g)_["margin"+(x=Nn[D])]=_["padding"+x]=v;return g&&(_.opacity=_.width=v),_}function Ht(v,g,x){for(var D,_=(Zt.tweeners[g]||[]).concat(Zt.tweeners["*"]),w=0,T=_.length;w1)},removeAttr:function(v){return this.each(function(){J.removeAttr(this,v)})}}),J.extend({attr:function(v,g,x){var D,_,w=v.nodeType;if(3!==w&&8!==w&&2!==w)return void 0===v.getAttribute?J.prop(v,g,x):((1!==w||!J.isXMLDoc(v))&&(_=J.attrHooks[g.toLowerCase()]||(J.expr.match.bool.test(g)?un:void 0)),void 0!==x?null===x?void J.removeAttr(v,g):_&&"set"in _&&void 0!==(D=_.set(v,x,g))?D:(v.setAttribute(g,x+""),x):_&&"get"in _&&null!==(D=_.get(v,g))?D:null==(D=J.find.attr(v,g))?void 0:D)},attrHooks:{type:{set:function(v,g){if(!Te.radioValue&&"radio"===g&&Bt(v,"input")){var x=v.value;return v.setAttribute("type",g),x&&(v.value=x),g}}}},removeAttr:function(v,g){var x,D=0,_=g&&g.match(Ae);if(_&&1===v.nodeType)for(;x=_[D++];)v.removeAttribute(x)}}),un={set:function(v,g,x){return!1===g?J.removeAttr(v,x):v.setAttribute(x,x),x}},J.each(J.expr.match.bool.source.match(/\w+/g),function(v,g){var x=Yn[g]||J.find.attr;Yn[g]=function(D,_,w){var T,V,pe=_.toLowerCase();return w||(V=Yn[pe],Yn[pe]=T,T=null!=x(D,_,w)?pe:null,Yn[pe]=V),T}});var Fn=/^(?:input|select|textarea|button)$/i,wi=/^(?:a|area)$/i;function ti(v){return(v.match(Ae)||[]).join(" ")}function ni(v){return v.getAttribute&&v.getAttribute("class")||""}function Ji(v){return Array.isArray(v)?v:"string"==typeof v&&v.match(Ae)||[]}J.fn.extend({prop:function(v,g){return $e(this,J.prop,v,g,arguments.length>1)},removeProp:function(v){return this.each(function(){delete this[J.propFix[v]||v]})}}),J.extend({prop:function(v,g,x){var D,_,w=v.nodeType;if(3!==w&&8!==w&&2!==w)return(1!==w||!J.isXMLDoc(v))&&(_=J.propHooks[g=J.propFix[g]||g]),void 0!==x?_&&"set"in _&&void 0!==(D=_.set(v,x,g))?D:v[g]=x:_&&"get"in _&&null!==(D=_.get(v,g))?D:v[g]},propHooks:{tabIndex:{get:function(v){var g=J.find.attr(v,"tabindex");return g?parseInt(g,10):Fn.test(v.nodeName)||wi.test(v.nodeName)&&v.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Te.optSelected||(J.propHooks.selected={get:function(v){return null},set:function(v){}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this}),J.fn.extend({addClass:function(v){var g,x,D,_,w,T;return le(v)?this.each(function(V){J(this).addClass(v.call(this,V,ni(this)))}):(g=Ji(v)).length?this.each(function(){if(D=ni(this),x=1===this.nodeType&&" "+ti(D)+" "){for(w=0;w-1;)x=x.replace(" "+_+" "," ");T=ti(x),D!==T&&this.setAttribute("class",T)}}):this:this.attr("class","")},toggleClass:function(v,g){var x,D,_,w,T=typeof v,V="string"===T||Array.isArray(v);return le(v)?this.each(function(pe){J(this).toggleClass(v.call(this,pe,ni(this),g),g)}):"boolean"==typeof g&&V?g?this.addClass(v):this.removeClass(v):(x=Ji(v),this.each(function(){if(V)for(w=J(this),_=0;_-1)return!0;return!1}});var Hi=/\r/g;J.fn.extend({val:function(v){var g,x,D,_=this[0];return arguments.length?(D=le(v),this.each(function(w){var T;1===this.nodeType&&(null==(T=D?v.call(this,w,J(this).val()):v)?T="":"number"==typeof T?T+="":Array.isArray(T)&&(T=J.map(T,function(V){return null==V?"":V+""})),(!(g=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()])||!("set"in g)||void 0===g.set(this,T,"value"))&&(this.value=T))})):_?(g=J.valHooks[_.type]||J.valHooks[_.nodeName.toLowerCase()])&&"get"in g&&void 0!==(x=g.get(_,"value"))?x:"string"==typeof(x=_.value)?x.replace(Hi,""):null==x?"":x:void 0}}),J.extend({valHooks:{option:{get:function(v){var g=J.find.attr(v,"value");return null!=g?g:ti(J.text(v))}},select:{get:function(v){var g,x,D,_=v.options,w=v.selectedIndex,T="select-one"===v.type,V=T?null:[],pe=T?w+1:_.length;for(D=w<0?pe:T?w:0;D-1)&&(x=!0);return x||(v.selectedIndex=-1),w}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(v,g){if(Array.isArray(g))return v.checked=J.inArray(J(v).val(),g)>-1}},Te.checkOn||(J.valHooks[this].get=function(v){return null===v.getAttribute("value")?"on":v.value})});var bi=o.location,mr={guid:Date.now()},tr=/\?/;J.parseXML=function(v){var g,x;if(!v||"string"!=typeof v)return null;try{g=(new o.DOMParser).parseFromString(v,"text/xml")}catch(D){}return x=g&&g.getElementsByTagName("parsererror")[0],(!g||x)&&J.error("Invalid XML: "+(x?J.map(x.childNodes,function(D){return D.textContent}).join("\n"):v)),g};var cr=/^(?:focusinfocus|focusoutblur)$/,Ei=function(v){v.stopPropagation()};J.extend(J.event,{trigger:function(v,g,x,D){var _,w,T,V,pe,Be,Mt,Ft,bt=[x||He],Wt=oe.call(v,"type")?v.type:v,Mn=oe.call(v,"namespace")?v.namespace.split("."):[];if(w=Ft=T=x=x||He,3!==x.nodeType&&8!==x.nodeType&&!cr.test(Wt+J.event.triggered)&&(Wt.indexOf(".")>-1&&(Mn=Wt.split("."),Wt=Mn.shift(),Mn.sort()),pe=Wt.indexOf(":")<0&&"on"+Wt,(v=v[J.expando]?v:new J.Event(Wt,"object"==typeof v&&v)).isTrigger=D?2:3,v.namespace=Mn.join("."),v.rnamespace=v.namespace?new RegExp("(^|\\.)"+Mn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,v.result=void 0,v.target||(v.target=x),g=null==g?[v]:J.makeArray(g,[v]),Mt=J.event.special[Wt]||{},D||!Mt.trigger||!1!==Mt.trigger.apply(x,g))){if(!D&&!Mt.noBubble&&!pt(x)){for(cr.test((V=Mt.delegateType||Wt)+Wt)||(w=w.parentNode);w;w=w.parentNode)bt.push(w),T=w;T===(x.ownerDocument||He)&&bt.push(T.defaultView||T.parentWindow||o)}for(_=0;(w=bt[_++])&&!v.isPropagationStopped();)Ft=w,v.type=_>1?V:Mt.bindType||Wt,(Be=(_e.get(w,"events")||Object.create(null))[v.type]&&_e.get(w,"handle"))&&Be.apply(w,g),(Be=pe&&w[pe])&&Be.apply&&ie(w)&&(v.result=Be.apply(w,g),!1===v.result&&v.preventDefault());return v.type=Wt,!D&&!v.isDefaultPrevented()&&(!Mt._default||!1===Mt._default.apply(bt.pop(),g))&&ie(x)&&pe&&le(x[Wt])&&!pt(x)&&((T=x[pe])&&(x[pe]=null),J.event.triggered=Wt,v.isPropagationStopped()&&Ft.addEventListener(Wt,Ei),x[Wt](),v.isPropagationStopped()&&Ft.removeEventListener(Wt,Ei),J.event.triggered=void 0,T&&(x[pe]=T)),v.result}},simulate:function(v,g,x){var D=J.extend(new J.Event,x,{type:v,isSimulated:!0});J.event.trigger(D,null,g)}}),J.fn.extend({trigger:function(v,g){return this.each(function(){J.event.trigger(v,g,this)})},triggerHandler:function(v,g){var x=this[0];if(x)return J.event.trigger(v,g,x,!0)}});var Xi=/\[\]$/,er=/\r?\n/g,Ar=/^(?:submit|button|image|reset|file)$/i,Yr=/^(?:input|select|textarea|keygen)/i;function wr(v,g,x,D){var _;if(Array.isArray(g))J.each(g,function(w,T){x||Xi.test(v)?D(v,T):wr(v+"["+("object"==typeof T&&null!=T?w:"")+"]",T,x,D)});else if(x||"object"!==Zn(g))D(v,g);else for(_ in g)wr(v+"["+_+"]",g[_],x,D)}J.param=function(v,g){var x,D=[],_=function(w,T){var V=le(T)?T():T;D[D.length]=encodeURIComponent(w)+"="+encodeURIComponent(null==V?"":V)};if(null==v)return"";if(Array.isArray(v)||v.jquery&&!J.isPlainObject(v))J.each(v,function(){_(this.name,this.value)});else for(x in v)wr(x,v[x],g,_);return D.join("&")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var v=J.prop(this,"elements");return v?J.makeArray(v):this}).filter(function(){var v=this.type;return this.name&&!J(this).is(":disabled")&&Yr.test(this.nodeName)&&!Ar.test(v)&&(this.checked||!br.test(v))}).map(function(v,g){var x=J(this).val();return null==x?null:Array.isArray(x)?J.map(x,function(D){return{name:g.name,value:D.replace(er,"\r\n")}}):{name:g.name,value:x.replace(er,"\r\n")}}).get()}});var pr=/%20/g,Hr=/#.*$/,Jr=/([?&])_=[^&]*/,jr=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kr=/^(?:GET|HEAD)$/,xr=/^\/\//,Xr={},zr={},$r="*/".concat("*"),_s=He.createElement("a");function xs(v){return function(g,x){"string"!=typeof g&&(x=g,g="*");var D,_=0,w=g.toLowerCase().match(Ae)||[];if(le(x))for(;D=w[_++];)"+"===D[0]?(D=D.slice(1)||"*",(v[D]=v[D]||[]).unshift(x)):(v[D]=v[D]||[]).push(x)}}function ns(v,g,x,D){var _={},w=v===zr;function T(V){var pe;return _[V]=!0,J.each(v[V]||[],function(Be,Mt){var Ft=Mt(g,x,D);return"string"!=typeof Ft||w||_[Ft]?w?!(pe=Ft):void 0:(g.dataTypes.unshift(Ft),T(Ft),!1)}),pe}return T(g.dataTypes[0])||!_["*"]&&T("*")}function vs(v,g){var x,D,_=J.ajaxSettings.flatOptions||{};for(x in g)void 0!==g[x]&&((_[x]?v:D||(D={}))[x]=g[x]);return D&&J.extend(!0,v,D),v}_s.href=bi.href,J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bi.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$r,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(v,g){return g?vs(vs(v,J.ajaxSettings),g):vs(J.ajaxSettings,v)},ajaxPrefilter:xs(Xr),ajaxTransport:xs(zr),ajax:function(v,g){"object"==typeof v&&(g=v,v=void 0);var x,D,_,w,T,V,pe,Be,Mt,Ft,bt=J.ajaxSetup({},g=g||{}),Wt=bt.context||bt,Mn=bt.context&&(Wt.nodeType||Wt.jquery)?J(Wt):J.event,oi=J.Deferred(),Mi=J.Callbacks("once memory"),ii=bt.statusCode||{},Cr={},es={},Gn="canceled",Qn={readyState:0,getResponseHeader:function($i){var Vr;if(pe){if(!w)for(w={};Vr=jr.exec(_);)w[Vr[1].toLowerCase()+" "]=(w[Vr[1].toLowerCase()+" "]||[]).concat(Vr[2]);Vr=w[$i.toLowerCase()+" "]}return null==Vr?null:Vr.join(", ")},getAllResponseHeaders:function(){return pe?_:null},setRequestHeader:function($i,Vr){return null==pe&&($i=es[$i.toLowerCase()]=es[$i.toLowerCase()]||$i,Cr[$i]=Vr),this},overrideMimeType:function($i){return null==pe&&(bt.mimeType=$i),this},statusCode:function($i){var Vr;if($i)if(pe)Qn.always($i[Qn.status]);else for(Vr in $i)ii[Vr]=[ii[Vr],$i[Vr]];return this},abort:function($i){var Vr=$i||Gn;return x&&x.abort(Vr),Qs(0,Vr),this}};if(oi.promise(Qn),bt.url=((v||bt.url||bi.href)+"").replace(xr,bi.protocol+"//"),bt.type=g.method||g.type||bt.method||bt.type,bt.dataTypes=(bt.dataType||"*").toLowerCase().match(Ae)||[""],null==bt.crossDomain){V=He.createElement("a");try{V.href=bt.url,V.href=V.href,bt.crossDomain=_s.protocol+"//"+_s.host!=V.protocol+"//"+V.host}catch($i){bt.crossDomain=!0}}if(bt.data&&bt.processData&&"string"!=typeof bt.data&&(bt.data=J.param(bt.data,bt.traditional)),ns(Xr,bt,g,Qn),pe)return Qn;for(Mt in(Be=J.event&&bt.global)&&0==J.active++&&J.event.trigger("ajaxStart"),bt.type=bt.type.toUpperCase(),bt.hasContent=!Kr.test(bt.type),D=bt.url.replace(Hr,""),bt.hasContent?bt.data&&bt.processData&&0===(bt.contentType||"").indexOf("application/x-www-form-urlencoded")&&(bt.data=bt.data.replace(pr,"+")):(Ft=bt.url.slice(D.length),bt.data&&(bt.processData||"string"==typeof bt.data)&&(D+=(tr.test(D)?"&":"?")+bt.data,delete bt.data),!1===bt.cache&&(D=D.replace(Jr,"$1"),Ft=(tr.test(D)?"&":"?")+"_="+mr.guid+++Ft),bt.url=D+Ft),bt.ifModified&&(J.lastModified[D]&&Qn.setRequestHeader("If-Modified-Since",J.lastModified[D]),J.etag[D]&&Qn.setRequestHeader("If-None-Match",J.etag[D])),(bt.data&&bt.hasContent&&!1!==bt.contentType||g.contentType)&&Qn.setRequestHeader("Content-Type",bt.contentType),Qn.setRequestHeader("Accept",bt.dataTypes[0]&&bt.accepts[bt.dataTypes[0]]?bt.accepts[bt.dataTypes[0]]+("*"!==bt.dataTypes[0]?", "+$r+"; q=0.01":""):bt.accepts["*"]),bt.headers)Qn.setRequestHeader(Mt,bt.headers[Mt]);if(bt.beforeSend&&(!1===bt.beforeSend.call(Wt,Qn,bt)||pe))return Qn.abort();if(Gn="abort",Mi.add(bt.complete),Qn.done(bt.success),Qn.fail(bt.error),x=ns(zr,bt,g,Qn)){if(Qn.readyState=1,Be&&Mn.trigger("ajaxSend",[Qn,bt]),pe)return Qn;bt.async&&bt.timeout>0&&(T=o.setTimeout(function(){Qn.abort("timeout")},bt.timeout));try{pe=!1,x.send(Cr,Qs)}catch($i){if(pe)throw $i;Qs(-1,$i)}}else Qs(-1,"No Transport");function Qs($i,Vr,Is,Xo){var ts,rn,ki,cs,vi,ws=Vr;pe||(pe=!0,T&&o.clearTimeout(T),x=void 0,_=Xo||"",Qn.readyState=$i>0?4:0,ts=$i>=200&&$i<300||304===$i,Is&&(cs=function(v,g,x){for(var D,_,w,T,V=v.contents,pe=v.dataTypes;"*"===pe[0];)pe.shift(),void 0===D&&(D=v.mimeType||g.getResponseHeader("Content-Type"));if(D)for(_ in V)if(V[_]&&V[_].test(D)){pe.unshift(_);break}if(pe[0]in x)w=pe[0];else{for(_ in x){if(!pe[0]||v.converters[_+" "+pe[0]]){w=_;break}T||(T=_)}w=w||T}if(w)return w!==pe[0]&&pe.unshift(w),x[w]}(bt,Qn,Is)),!ts&&J.inArray("script",bt.dataTypes)>-1&&J.inArray("json",bt.dataTypes)<0&&(bt.converters["text script"]=function(){}),cs=function(v,g,x,D){var _,w,T,V,pe,Be={},Mt=v.dataTypes.slice();if(Mt[1])for(T in v.converters)Be[T.toLowerCase()]=v.converters[T];for(w=Mt.shift();w;)if(v.responseFields[w]&&(x[v.responseFields[w]]=g),!pe&&D&&v.dataFilter&&(g=v.dataFilter(g,v.dataType)),pe=w,w=Mt.shift())if("*"===w)w=pe;else if("*"!==pe&&pe!==w){if(!(T=Be[pe+" "+w]||Be["* "+w]))for(_ in Be)if((V=_.split(" "))[1]===w&&(T=Be[pe+" "+V[0]]||Be["* "+V[0]])){!0===T?T=Be[_]:!0!==Be[_]&&(w=V[0],Mt.unshift(V[1]));break}if(!0!==T)if(T&&v.throws)g=T(g);else try{g=T(g)}catch(Ft){return{state:"parsererror",error:T?Ft:"No conversion from "+pe+" to "+w}}}return{state:"success",data:g}}(bt,cs,Qn,ts),ts?(bt.ifModified&&((vi=Qn.getResponseHeader("Last-Modified"))&&(J.lastModified[D]=vi),(vi=Qn.getResponseHeader("etag"))&&(J.etag[D]=vi)),204===$i||"HEAD"===bt.type?ws="nocontent":304===$i?ws="notmodified":(ws=cs.state,rn=cs.data,ts=!(ki=cs.error))):(ki=ws,($i||!ws)&&(ws="error",$i<0&&($i=0))),Qn.status=$i,Qn.statusText=(Vr||ws)+"",ts?oi.resolveWith(Wt,[rn,ws,Qn]):oi.rejectWith(Wt,[Qn,ws,ki]),Qn.statusCode(ii),ii=void 0,Be&&Mn.trigger(ts?"ajaxSuccess":"ajaxError",[Qn,bt,ts?rn:ki]),Mi.fireWith(Wt,[Qn,ws]),Be&&(Mn.trigger("ajaxComplete",[Qn,bt]),--J.active||J.event.trigger("ajaxStop")))}return Qn},getJSON:function(v,g,x){return J.get(v,g,x,"json")},getScript:function(v,g){return J.get(v,void 0,g,"script")}}),J.each(["get","post"],function(v,g){J[g]=function(x,D,_,w){return le(D)&&(w=w||_,_=D,D=void 0),J.ajax(J.extend({url:x,type:g,dataType:w,data:D,success:_},J.isPlainObject(x)&&x))}}),J.ajaxPrefilter(function(v){var g;for(g in v.headers)"content-type"===g.toLowerCase()&&(v.contentType=v.headers[g]||"")}),J._evalUrl=function(v,g,x){return J.ajax({url:v,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(D){J.globalEval(D,g,x)}})},J.fn.extend({wrapAll:function(v){var g;return this[0]&&(le(v)&&(v=v.call(this[0])),g=J(v,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&g.insertBefore(this[0]),g.map(function(){for(var x=this;x.firstElementChild;)x=x.firstElementChild;return x}).append(this)),this},wrapInner:function(v){return le(v)?this.each(function(g){J(this).wrapInner(v.call(this,g))}):this.each(function(){var g=J(this),x=g.contents();x.length?x.wrapAll(v):g.append(v)})},wrap:function(v){var g=le(v);return this.each(function(x){J(this).wrapAll(g?v.call(this,x):v)})},unwrap:function(v){return this.parent(v).not("body").each(function(){J(this).replaceWith(this.childNodes)}),this}}),J.expr.pseudos.hidden=function(v){return!J.expr.pseudos.visible(v)},J.expr.pseudos.visible=function(v){return!!(v.offsetWidth||v.offsetHeight||v.getClientRects().length)},J.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(v){}};var no={0:200,1223:204},dr=J.ajaxSettings.xhr();Te.cors=!!dr&&"withCredentials"in dr,Te.ajax=dr=!!dr,J.ajaxTransport(function(v){var g,x;if(Te.cors||dr&&!v.crossDomain)return{send:function(D,_){var w,T=v.xhr();if(T.open(v.type,v.url,v.async,v.username,v.password),v.xhrFields)for(w in v.xhrFields)T[w]=v.xhrFields[w];for(w in v.mimeType&&T.overrideMimeType&&T.overrideMimeType(v.mimeType),!v.crossDomain&&!D["X-Requested-With"]&&(D["X-Requested-With"]="XMLHttpRequest"),D)T.setRequestHeader(w,D[w]);g=function(V){return function(){g&&(g=x=T.onload=T.onerror=T.onabort=T.ontimeout=T.onreadystatechange=null,"abort"===V?T.abort():"error"===V?"number"!=typeof T.status?_(0,"error"):_(T.status,T.statusText):_(no[T.status]||T.status,T.statusText,"text"!==(T.responseType||"text")||"string"!=typeof T.responseText?{binary:T.response}:{text:T.responseText},T.getAllResponseHeaders()))}},T.onload=g(),x=T.onerror=T.ontimeout=g("error"),void 0!==T.onabort?T.onabort=x:T.onreadystatechange=function(){4===T.readyState&&o.setTimeout(function(){g&&x()})},g=g("abort");try{T.send(v.hasContent&&v.data||null)}catch(V){if(g)throw V}},abort:function(){g&&g()}}}),J.ajaxPrefilter(function(v){v.crossDomain&&(v.contents.script=!1)}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(v){return J.globalEval(v),v}}}),J.ajaxPrefilter("script",function(v){void 0===v.cache&&(v.cache=!1),v.crossDomain&&(v.type="GET")}),J.ajaxTransport("script",function(v){var g,x;if(v.crossDomain||v.scriptAttrs)return{send:function(D,_){g=J("