(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t,e){return n=>n.lift(new i(t,e))}class i{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends s.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("bHdf");function r(){return Object(s.a)(1)}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("XNiG"),r=n("9ppp");class i extends s.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return r});let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("D0XW"),r=n("7o/Q"),i=n("WMd4");function o(t,e=s.a){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(r,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends r.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,s=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-s.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(i.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(i.a.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("quSY");class r extends s.a{constructor(t,e){super()}schedule(t,e=0){return this}}class i extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,s=void 0;try{this.work(t)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return Nt}),n.d(e,"d",function(){return xt}),n.d(e,"e",function(){return Ot}),n.d(e,"f",function(){return Pt}),n.d(e,"g",function(){return jt}),n.d(e,"h",function(){return l}),n.d(e,"i",function(){return M}),n.d(e,"j",function(){return I}),n.d(e,"k",function(){return yt}),n.d(e,"l",function(){return vt}),n.d(e,"m",function(){return H}),n.d(e,"n",function(){return Rt}),n.d(e,"o",function(){return Dt}),n.d(e,"p",function(){return b}),n.d(e,"q",function(){return wt});var s=n("fXoL"),r=n("ofXK"),i=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new s.q("NgValueAccessor"),u={provide:l,useExisting:Object(s.T)(()=>c),multi:!0};let c=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.ac("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[s.zb([u])]}),t})();const h={provide:l,useExisting:Object(s.T)(()=>f),multi:!0},d=new s.q("CompositionEventMode");let f=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.v)()?Object(r.v)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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 t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l),s.Nb(d,8))},t.\u0275dir=s.Ib({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&s.ac("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s.zb([h])]}),t})();function p(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}const m=new s.q("NgValidators"),y=new s.q("NgAsyncValidators"),_=/^(?=.{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 b{static min(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return p(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return p(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>p(e.value)||!g(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>g(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return b.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(p(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){return S(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){const n=C(t,e).map(w);return Object(i.a)(n).pipe(Object(a.a)(S))}}}function v(t){return null!=t}function w(t){const e=Object(s.rb)(t)?Object(o.a)(t):t;return Object(s.qb)(e),e}function S(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function O(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function E(t){return null!=t?b.compose(O(t)):null}function x(t){return null!=t?b.composeAsync(O(t)):null}function T(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function D(t){return t._rawValidators}function k(t){return t._rawAsyncValidators}let j=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=E(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=x(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,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t}),t})(),A=(()=>{class t extends j{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return N(e||t)},t.\u0275dir=s.Ib({type:t,features:[s.xb]}),t})();const N=s.Vb(A);class P extends j{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R{constructor(t){this._cd=t}get ngClassUntouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.untouched)&&void 0!==n&&n}get ngClassTouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.touched)&&void 0!==n&&n}get ngClassPristine(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pristine)&&void 0!==n&&n}get ngClassDirty(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.dirty)&&void 0!==n&&n}get ngClassValid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.valid)&&void 0!==n&&n}get ngClassInvalid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.invalid)&&void 0!==n&&n}get ngClassPending(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pending)&&void 0!==n&&n}}let M=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(P,2))},t.\u0275dir=s.Ib({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.xb]}),t})(),I=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(A,10))},t.\u0275dir=s.Ib({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.xb]}),t})();const L={provide:l,useExisting:Object(s.T)(()=>V),multi:!0};let V=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.ac("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s.zb([L])]}),t})();const F={provide:l,useExisting:Object(s.T)(()=>H),multi:!0};let U=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e,n,s){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(P),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l),s.Nb(U),s.Nb(s.r))},t.\u0275dir=s.Ib({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.ac("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.zb([F])]}),t})();const z={provide:l,useExisting:Object(s.T)(()=>$),multi:!0};let $=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.ac("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s.zb([z])]}),t})();const q={provide:l,useExisting:Object(s.T)(()=>Y),multi:!0};let Y=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.ac("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s.zb([q])]}),t})();const B={provide:l,useExisting:Object(s.T)(()=>W),multi:!0};let W=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const s=t.item(e),r=this._getOptionValue(s.value);n.push(r)}}else{const t=e.options;for(let e=0;e<t.length;e++){const s=t.item(e);if(s.selected){const t=this._getOptionValue(s.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.D),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&s.ac("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s.zb([B])]}),t})();function X(t,e){return[...e.path,t]}function G(t,e){K(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Q(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function K(t,e,n){const s=D(t);null!==e.validator?t.setValidators(T(s,e.validator)):"function"==typeof s&&t.setValidators([s]);const r=k(t);if(null!==e.asyncValidator?t.setAsyncValidators(T(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();Q(e._rawValidators,n),Q(e._rawAsyncValidators,n)}}function Z(t,e,n){if(null!==t){if(null!==e.validator){const n=D(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=k(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};Q(e._rawValidators,t),Q(e._rawAsyncValidators,t)}}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){K(t,e,!1)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const nt=[c,$,V,Y,W,H];function st(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function rt(t,e){if(!e)return null;Array.isArray(e);let n=void 0,s=void 0,r=void 0;return e.forEach(t=>{var e;t.constructor===f?n=t:(e=t,nt.some(t=>e.constructor===t)?s=t:r=t)}),r||s||n||null}function it(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ot(t){return(ct(t)?t.validators:t)||null}function at(t){return Array.isArray(t)?E(t):t||null}function lt(t,e){return(ct(e)?e.asyncValidators:t)||null}function ut(t){return Array.isArray(t)?x(t):t||null}function ct(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=at(this._rawValidators),this._composedAsyncValidatorFn=ut(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=at(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ut(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof ft?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof pt&&s.at(t)||null}),s}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.n,this.statusChanges=new s.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ct(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class dt extends ht{constructor(t=null,e,n){super(ot(e),lt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){it(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){it(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ft extends ht{constructor(t,e,n){super(ot(e),lt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof dt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class pt extends ht{constructor(t,e,n){super(ot(e),lt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof dt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const gt={provide:A,useExisting:Object(s.T)(()=>yt)},mt=(()=>Promise.resolve(null))();let yt=(()=>{class t extends A{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.n,this.form=new ft({},E(t),x(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),it(this._directives,t)})}addFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path),n=new ft({});tt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,st(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(m,10),s.Nb(y,10))},t.\u0275dir=s.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.ac("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.zb([gt]),s.xb]}),t})();const _t={provide:P,useExisting:Object(s.T)(()=>vt)},bt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends P{constructor(t,e,n,r){super(),this.control=new dt,this._registered=!1,this.update=new s.n,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?X(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(){G(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){bt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;bt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(A,9),s.Nb(m,10),s.Nb(y,10),s.Nb(l,10))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s.zb([_t]),s.xb,s.yb]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const St=new s.q("NgModelWithFormControlWarning"),Ct={provide:A,useExisting:Object(s.T)(()=>Ot)};let Ot=(()=>{class t extends A{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.n,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){it(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,st(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 e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),Z(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&G(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){K(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(m,10),s.Nb(y,10))},t.\u0275dir=s.Ib({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.ac("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.zb([Ct]),s.xb,s.yb]}),t})();const Et={provide:P,useExisting:Object(s.T)(()=>xt)};let xt=(()=>{class t extends P{constructor(t,e,n,r,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new s.n,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(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 X(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 t.\u0275fac=function(e){return new(e||t)(s.Nb(A,13),s.Nb(m,10),s.Nb(y,10),s.Nb(l,10),s.Nb(St,8))},t.\u0275dir=s.Ib({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.zb([Et]),s.xb,s.yb]}),t._ngModelWarningSentOnce=!1,t})();const Tt={provide:m,useExisting:Object(s.T)(()=>Dt),multi:!0};let Dt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?b.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.Bb("required",e.required?"":null)},inputs:{required:"required"},features:[s.zb([Tt])]}),t})();const kt={provide:m,useExisting:Object(s.T)(()=>jt),multi:!0};let jt=(()=>{class t{constructor(){this._validator=b.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=b.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.Bb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.zb([kt]),s.yb]}),t})(),At=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})(),Nt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let s=null,r=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new ft(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new dt(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new pt(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof dt||t instanceof ft||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),Pt=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[U],imports:[At]}),t})(),Rt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:St,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[Nt,U],imports:[At]}),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("lJxs"),r=n("Cfvw"),i=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(o((n,i)=>Object(r.a)(t(n,i)).pipe(Object(s.a)((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends i.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new i.a(this),n=this.destination;n.add(e);const s=Object(i.c)(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("n6bG"),r=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class u extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const s=new u(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class c extends u{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(s.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==r.a&&(a=Object.create(e),Object(s.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(Object(l.a)(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AcyG:function(t,e,n){"use strict";n.d(e,"a",function(){return jt}),n.d(e,"b",function(){return kt}),n.d(e,"c",function(){return Nt}),n.d(e,"d",function(){return Pt}),n.d(e,"e",function(){return At}),n.d(e,"f",function(){return Ct});var s=n("fXoL"),r=n("jtHE");let i=(()=>{class t{constructor(){this.bootstrap$=new r.a(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();function o(t,e){return t===e}function a(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;const s=e.length;for(let r=0;r<s;r++)if(!t(e[r],n[r]))return!1;return!0}function l(t,e=o){let n=null,s=null;function r(){return a(e,n,arguments)||(s=t.apply(null,arguments)),n=arguments,s}return r.reset=function(){n=null,s=null},r}const u=new s.q("INITIAL_STATE_TOKEN");let c=(()=>{class t{static set(t){this.value=t}static pop(){const t=this.value;return this.value={},t}}return t.value={},t})();const h=new s.q("Internals.StateContextFactory"),d=new s.q("Internals.StateFactory");var f=n("ofXK"),p=n("HDdC"),g=n("XNiG"),m=n("2Vo4"),y=n("LRne"),_=n("cp0P"),b=n("z6cu"),v=n("EY2u"),w=n("Cfvw"),S=n("qgXg"),C=n("pLZG"),O=n("lJxs"),E=n("UXun"),x=n("IzEk"),T=n("XqQ8"),D=n("5+tZ"),k=n("xbPD"),j=n("JIr8"),A=n("zx2A");function N(t){return e=>e.lift(new P(t))}class P{constructor(t){this.notifier=t}call(t,e){const n=new R(t),s=Object(A.c)(this.notifier,new A.a(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class R extends A.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}var M=n("vkgz"),I=n("pxpQ"),L=n("/uUt");let V=(()=>{class t{constructor(t,e){this._ngZone=t,this._platformId=e}enter(t){return Object(f.s)(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return s.z.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return s.z.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.z),s.Xb(s.B))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(s.R)({factory:function(){return new t(Object(s.U)(s.z),Object(s.U)(s.B))},token:t,providedIn:"root"}),t})();const F=new s.q("ROOT_STATE_TOKEN"),U=new s.q("FEATURE_STATE_TOKEN"),H=new s.q("NGXS_PLUGINS");let z=(()=>{class t{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=V}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class ${constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}}let q=(()=>{class t{enter(t){return t()}leave(t){return t()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(s.R)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Y=new s.q("USER_PROVIDED_NGXS_EXECUTION_STRATEGY"),B=new s.q("NGXS_EXECUTION_STRATEGY",{providedIn:"root",factory:()=>{const t=Object(s.U)(s.o),e=t.get(Y);return t.get(e||(void 0!==s.ob.Zone?V:q))}});function W(t){return t.constructor&&t.constructor.type?t.constructor.type:t.type}const X=(t,e,n)=>{t=Object.assign({},t);const s=e.split("."),r=s.length-1;return s.reduce((t,e,s)=>(t[e]=s===r?n:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t},G=(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t),Q=t=>t&&"object"==typeof t&&!Array.isArray(t),K=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(Q(t)&&Q(n))for(const s in n)Q(n[s])?(t[s]||Object.assign(t,{[s]:{}}),K(t[s],n[s])):Object.assign(t,{[s]:n[s]});return K(t,...e)};function Z(t){if(!t.hasOwnProperty("NGXS_META")){const e={name:null,actions:{},defaults:{},path:null,makeRootSelector:t=>t.getStateGetter(e.name),children:[]};Object.defineProperty(t,"NGXS_META",{value:e})}return J(t)}function J(t){return t.NGXS_META}function tt(t){return t.NGXS_SELECTOR_META}function et(t,e){return e&&e.compatibility&&e.compatibility.strictContentSecurityPolicy?function(t){const e=t.slice();return t=>e.reduce((t,e)=>t&&t[e],t)}(t):function(t){const e=t;let n="store."+e[0],s=0;const r=e.length;let i=n;for(;++s<r;)i=i+" && "+(n=n+"."+e[s]);return new Function("store","return "+i+";")}(t)}function nt(t,e){const n=G(e.currentAppState,t.path),s=G(e.newAppState,t.path);return new $(n,s,!t.isInitialised)}function st(...t){return function(t,e,n=rt){const s=t.reduce((t,e)=>(t[W(e)]=!0,t),{}),r=e&&function(t){return t.reduce((t,e)=>(t[e]=!0,t),{})}(e);return function(t){return t.pipe(function(t,e){return Object(C.a)(n=>{const s=W(n.action);return t[s]&&(!e||e[n.status])})}(s,r),n())}}(t,["DISPATCHED"])}function rt(){return Object(O.a)(t=>t.action)}function it(t){return e=>new p.a(n=>e.subscribe({next(e){t.leave(()=>n.next(e))},error(e){t.leave(()=>n.error(e))},complete(){t.leave(()=>n.complete())}}))}let ot=(()=>{class t{constructor(t){this._executionStrategy=t}enter(t){return this._executionStrategy.enter(t)}leave(t){return this._executionStrategy.leave(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(B))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class at extends g.a{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const t=this._itemQueue.pop();super.next(t)}this._busyPushingNext=!1}}}let lt=(()=>{class t extends at{}return t.\u0275fac=function(e){return ut(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const ut=s.Vb(lt);let ct=(()=>{class t extends p.a{constructor(t,e){super(n=>{const s=t.pipe(it(e)).subscribe({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()});n.add(s)})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(lt),s.Xb(ot))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const ht=t=>(...e)=>t.shift()(...e,(...e)=>ht(t)(...e));let dt=(()=>{class t extends m.a{constructor(){super({})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),ft=(()=>{class t{constructor(t,e){this._parentManager=t,this._pluginHandlers=e,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const t=this.getPluginHandlers();this.rootPlugins.push(...t)}getPluginHandlers(){return(this._pluginHandlers||[]).map(t=>t.handle?t.handle.bind(t):t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(t,12),s.Xb(H,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),pt=(()=>{class t extends g.a{}return t.\u0275fac=function(e){return gt(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const gt=s.Vb(pt);let mt=(()=>{class t{constructor(t,e,n,s,r,i){this._injector=t,this._actions=e,this._actionResults=n,this._pluginManager=s,this._stateStream=r,this._ngxsExecutionStrategy=i}dispatch(t){const e=this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(t));return e.subscribe({error:t=>this._ngxsExecutionStrategy.leave(()=>{try{this._errorHandler=this._errorHandler||this._injector.get(s.m),this._errorHandler.handleError(t)}catch(e){}})}),e.pipe(it(this._ngxsExecutionStrategy))}dispatchByEvents(t){return Array.isArray(t)?0===t.length?Object(y.a)(this._stateStream.getValue()):Object(_.a)(t.map(t=>this.dispatchSingle(t))):this.dispatchSingle(t)}dispatchSingle(t){const e=this._stateStream.getValue();return ht([...this._pluginManager.plugins,(t,n)=>{t!==e&&this._stateStream.next(t);const s=this.getActionResultStream(n);return s.subscribe(t=>this._actions.next(t)),this._actions.next({action:n,status:"DISPATCHED"}),this.createDispatchObservable(s)}])(e,t).pipe(Object(E.a)())}getActionResultStream(t){return this._actionResults.pipe(Object(C.a)(e=>e.action===t&&"DISPATCHED"!==e.status),Object(x.a)(1),Object(E.a)())}createDispatchObservable(t){return t.pipe(Object(T.a)(t=>{switch(t.status){case"SUCCESSFUL":return Object(y.a)(this._stateStream.getValue());case"ERRORED":return Object(b.a)(t.error);default:return v.a}})).pipe(Object(E.a)())}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.r),s.Xb(lt),s.Xb(pt),s.Xb(ft),s.Xb(dt),s.Xb(ot))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),yt=(()=>{class t{constructor(t,e,n){this._stateStream=t,this._dispatcher=e,this._config=n}getRootStateOperations(){return{getState:()=>this._stateStream.getValue(),setState:t=>this._stateStream.next(t),dispatch:t=>this._dispatcher.dispatch(t)}}setStateToTheCurrentWithNew(t){const e=this.getRootStateOperations(),n=e.getState();e.setState(Object.assign({},n,t.defaults))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(dt),s.Xb(mt),s.Xb(z))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),_t=(()=>{class t{constructor(t){this._internalStateOperations=t}createStateContext(t){const e=this._internalStateOperations.getRootStateOperations();function n(e){return G(e,t.path)}function s(n,s){const r=X(n,t.path,s),i=t.instance;if(i.ngxsOnChanges){const e=nt(t,{currentAppState:n,newAppState:r});i.ngxsOnChanges(e)}return e.setState(r),r}function r(t,e){return s(t,e(n(t)))}return{getState:()=>n(e.getState()),patchState:t=>r(e.getState(),function(t){return e=>{Array.isArray(t)?function(){throw new Error("Patching arrays is not supported.")}():"object"!=typeof t&&function(){throw new Error("Patching primitives is not supported.")}();const n=Object.assign({},e);for(const s in t)n[s]=t[s];return n}}(t)),setState(t){const n=e.getState();return"function"==typeof t?r(n,t):s(n,t)},dispatch:t=>e.dispatch(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(yt))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),bt=(()=>{class t{constructor(t,e,n,s,r,i,o){this._injector=t,this._config=e,this._parentFactory=n,this._actions=s,this._actionResults=r,this._stateContextFactory=i,this._initialState=o,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=l(()=>{const t=this;function e(e){const n=t.statePaths[e];return n?et(n.split("."),t._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(t){let n=e(t);return n||((...s)=>(n||(n=e(t)),n?n(...s):void 0))},getSelectorOptions:e=>Object.assign({},t._config.selectorOptions,e||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(t){let e={};var n;return e=Array.isArray(t)?t.slice():"object"==typeof(n=t)&&null!==n||"function"==typeof n?Object.assign({},t):void 0===t?{}:t,e}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){const{newStates:n}=this.addToStatesMap(e);if(!n.length)return[];const s=function(t){const e=e=>t.find(t=>t===e).NGXS_META.name;return t.reduce((t,n)=>{const{name:s,children:r}=n.NGXS_META;return t[s]=(r||[]).map(e),t},{})}(n),r=function(t){const e=[],n={},s=(r,i=[])=>{Array.isArray(i)||(i=[]),i.push(r),n[r]=!0,t[r].forEach(t=>{n[t]||s(t,i.slice(0))}),e.indexOf(r)<0&&e.push(r)};return Object.keys(t).forEach(t=>s(t)),e.reverse()}(s),i=function(t,e={}){const n=(t,e)=>{for(const s in t)if(t.hasOwnProperty(s)&&t[s].indexOf(e)>=0){const e=n(t,s);return null!==e?`${e}.${s}`:s}return null};for(const s in t)if(t.hasOwnProperty(s)){const r=n(t,s);e[s]=r?`${r}.${s}`:s}return e}(s),o=n.reduce((t,e)=>(t[e.NGXS_META.name]=e,t),{}),a=[];for(const l of r){const e=o[l],n=i[l],s=e.NGXS_META;this.addRuntimeInfoToMeta(s,n);const r={name:l,path:n,isInitialised:!1,actions:s.actions,instance:this._injector.get(e),defaults:t.cloneDefaults(s.defaults)};this.hasBeenMountedAndBootstrapped(l,n)||a.push(r),this.states.push(r)}return a}addAndReturnDefaults(t){const e=this.add(t||[]);return{defaults:e.reduce((t,e)=>X(t,e.path,e.defaults),{}),states:e}}connectActionHandlers(){if(null!==this._actionsSubscription)return;const t=new g.a;this._actionsSubscription=this._actions.pipe(Object(C.a)(t=>"DISPATCHED"===t.status),Object(D.a)(e=>{t.next(e);const n=e.action;return this.invokeActions(t,n).pipe(Object(O.a)(()=>({action:n,status:"SUCCESSFUL"})),Object(k.a)({action:n,status:"CANCELED"}),Object(j.a)(t=>Object(y.a)({action:n,status:"ERRORED",error:t})))})).subscribe(t=>this._actionResults.next(t))}invokeActions(t,e){const n=W(e),s=[];for(const i of this.states){const o=i.actions[n];if(o)for(const n of o){const o=this._stateContextFactory.createStateContext(i);try{let r=i.instance[n.fn](o,e);r instanceof Promise&&(r=Object(w.a)(r)),r instanceof p.a?(r=r.pipe(Object(D.a)(t=>t instanceof Promise?Object(w.a)(t):t instanceof p.a?t:Object(y.a)(t)),Object(k.a)({})),n.options.cancelUncompleted&&(r=r.pipe(N(t.pipe(st(e)))))):r=Object(y.a)({}).pipe(Object(E.a)()),s.push(r)}catch(r){s.push(Object(b.a)(r))}}}return s.length||s.push(Object(y.a)({})),Object(_.a)(s)}addToStatesMap(t){const e=[],n=this.statesByName;for(const s of t){const t=J(s).name;!n[t]&&(e.push(s),n[t]=s)}return{newStates:e}}addRuntimeInfoToMeta(t,e){this.statePaths[t.name]=e,t.path=e}hasBeenMountedAndBootstrapped(t,e){const n=void 0!==G(this._initialState,e);return this.statesByName[t]&&n}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.r),s.Xb(z),s.Xb(t,12),s.Xb(lt),s.Xb(pt),s.Xb(_t),s.Xb(u,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),vt=(()=>{class t{constructor(t,e,n){this.internalStateOperations=t,this.stateContextFactory=e,this.bootstrapper=n}ngxsBootstrap(t,e){this.internalStateOperations.getRootStateOperations().dispatch(t).pipe(Object(C.a)(()=>!!e),Object(M.a)(()=>this.invokeInit(e.states)),Object(D.a)(()=>this.bootstrapper.appBootstrapped$),Object(C.a)(t=>!!t)).subscribe(()=>this.invokeBootstrap(e.states))}invokeInit(t){for(const e of t){const t=e.instance;if(t.ngxsOnChanges){const n=nt(e,{currentAppState:{},newAppState:this.internalStateOperations.getRootStateOperations().getState()});t.ngxsOnChanges(n)}t.ngxsOnInit&&t.ngxsOnInit(this.getStateContext(e)),e.isInitialised=!0}}invokeBootstrap(t){for(const e of t){const t=e.instance;t.ngxsAfterBootstrap&&t.ngxsAfterBootstrap(this.getStateContext(e))}}getStateContext(t){return this.stateContextFactory.createStateContext(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(yt),s.Xb(_t),s.Xb(i))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const wt=t=>t&&t.NGXS_SELECTOR_OPTIONS_META||{};function St(t){const e=tt(t)||J(t);return e&&e.makeRootSelector||(()=>t)}let Ct=(()=>{class t{constructor(t,e,n,s,r,i){this._stateStream=t,this._internalStateOperations=e,this._config=n,this._internalExecutionStrategy=s,this._stateFactory=r,this._selectableStateStream=this._stateStream.pipe(Object(I.b)(S.b),it(this._internalExecutionStrategy),Object(E.a)({bufferSize:1,refCount:!0})),this.initStateStream(i)}dispatch(t){return this._internalStateOperations.getRootStateOperations().dispatch(t)}select(t){const e=this.getStoreBoundSelectorFn(t);return this._selectableStateStream.pipe(Object(O.a)(e),Object(j.a)(t=>{const{suppressErrors:e}=this._config.selectorOptions;return t instanceof TypeError&&e?Object(y.a)(void 0):Object(b.a)(t)}),Object(L.a)(),it(this._internalExecutionStrategy))}selectOnce(t){return this.select(t).pipe(Object(x.a)(1))}selectSnapshot(t){return this.getStoreBoundSelectorFn(t)(this._stateStream.getValue())}subscribe(t){return this._selectableStateStream.pipe(it(this._internalExecutionStrategy)).subscribe(t)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(t){return this._internalStateOperations.getRootStateOperations().setState(t)}getStoreBoundSelectorFn(t){return St(t)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(t){const e=this._stateStream.value;if(!e||0===Object.keys(e).length){const e=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,t):t;this._stateStream.next(e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(dt),s.Xb(yt),s.Xb(z),s.Xb(ot),s.Xb(bt),s.Xb(u,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),Ot=(()=>{class t{constructor(e,n){t.store=e,t.config=n}ngOnDestroy(){t.store=null,t.config=null}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(Ct),s.Xb(z))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t.store=null,t.config=null,t})();class Et{static get type(){return"@@INIT"}}class xt{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}let Tt=(()=>{class t{constructor(t,e,n,s,r=[],i){const o=t.addAndReturnDefaults(r);e.setStateToTheCurrentWithNew(o),t.connectActionHandlers(),i.ngxsBootstrap(new Et,o)}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(bt),s.Xb(yt),s.Xb(Ct),s.Xb(Ot),s.Xb(F,8),s.Xb(vt))}}),t})(),Dt=(()=>{class t{constructor(e,n,s,r=[],i){const o=t.flattenStates(r),a=s.addAndReturnDefaults(o);a.states.length&&(n.setStateToTheCurrentWithNew(a),i.ngxsBootstrap(new xt(a.defaults),a))}static flattenStates(t=[]){return t.reduce((t,e)=>t.concat(e),[])}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(Ct),s.Xb(yt),s.Xb(bt),s.Xb(U,8),s.Xb(vt))}}),t})(),kt=(()=>{class t{static forRoot(e=[],n={}){return{ngModule:Tt,providers:[bt,_t,ct,lt,i,vt,mt,pt,yt,ot,Ct,dt,Ot,ft,...e,...t.ngxsTokenProviders(e,n)]}}static forFeature(t=[]){return{ngModule:Dt,providers:[bt,ft,...t,{provide:U,multi:!0,useValue:t}]}}static ngxsTokenProviders(e,n){return[{provide:Y,useValue:n.executionStrategy},{provide:F,useValue:e},{provide:t.ROOT_OPTIONS,useValue:n},{provide:z,useFactory:t.ngxsConfigFactory,deps:[t.ROOT_OPTIONS]},{provide:s.b,useFactory:t.appBootstrapListenerFactory,multi:!0,deps:[i]},{provide:u,useFactory:t.getInitialState},{provide:h,useExisting:_t},{provide:d,useExisting:bt}]}static ngxsConfigFactory(t){return K(new z,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return c.pop()}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t.ROOT_OPTIONS=new s.q("ROOT_OPTIONS"),t})();function jt(t,e){return(n,s)=>{const r=Z(n.constructor);Array.isArray(t)||(t=[t]);for(const i of t){const t=i.type;r.actions[t]||(r.actions[t]=[]),r.actions[t].push({fn:s,options:e||{},type:t})}}}function At(t){return e=>{const n=e,s=Z(n),r=Object.getPrototypeOf(n),i=function(e){return Object.assign({},e.NGXS_OPTIONS_META||{},t)}(r);!function(t){const{meta:e,inheritedStateClass:n,optionsWithInheritance:s}=t,{children:r,defaults:i,name:o}=s,a="string"==typeof o?o:o&&o.getName()||null;n.hasOwnProperty("NGXS_META")&&(e.actions=Object.assign({},e.actions,(n.NGXS_META||{}).actions)),e.children=r,e.defaults=i,e.name=a}({meta:s,inheritedStateClass:r,optionsWithInheritance:i}),n.NGXS_OPTIONS_META=i}}function Nt(t,...e){return function(n,s){const r=s.toString(),i=`__${r}__selector`,o=function(t,e,n=[]){return"string"==typeof(e=e||function(t){const e=t.length-1;return 36===t.charCodeAt(e)?t.slice(0,e):t}(t))?et(n.length?[e,...n]:e.split("."),Ot.config):e}(r,t,e);Object.defineProperties(n,{[i]:{writable:!0,enumerable:!1,configurable:!0},[r]:{enumerable:!0,configurable:!0,get(){return this[i]||(this[i]=function(t){return Ot.store||function(){throw new Error("You have forgotten to import the NGXS module!")}(),Ot.store.select(t)}(o))}}})}}function Pt(t){return(e,n,s)=>{const r=s.value,i=function(t,e,n){const s=n&&n.containerClass,r=l(function(...t){const n=e.apply(s,t);return n instanceof Function?l.apply(null,[n]):n});Object.setPrototypeOf(r,e);const i=function(t,e){const n=((s=t).hasOwnProperty("NGXS_SELECTOR_META")||Object.defineProperty(s,"NGXS_SELECTOR_META",{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),tt(s));var s;n.originalFn=t;let r=()=>({});e&&(n.containerClass=e.containerClass,n.selectorName=e.selectorName,r=e.getSelectorOptions||r);const i=Object.assign({},n);return n.getSelectorOptions=()=>function(t,e){return Object.assign({},wt(t.containerClass)||{},wt(t.originalFn)||{},t.getSelectorOptions()||{},e)}(i,r()),n}(e,n);return i.makeRootSelector=e=>{const{argumentSelectorFunctions:n,selectorOptions:s}=function(t,e,n=[]){const s=e.getSelectorOptions(),r=t.getSelectorOptions(s);return{selectorOptions:r,argumentSelectorFunctions:function(t=[],e,n){const s=[];return n&&(0===t.length||e.injectContainerState)&&J(n)&&s.push(n),t&&s.push(...t),s}(n,r,e.containerClass).map(e=>St(e)(t))}}(e,i,t);return function(t){const e=n.map(e=>e(t));try{return r(...e)}catch(i){if(i instanceof TypeError&&s.suppressErrors)return;throw i}}},r}(t,r,{containerClass:e,selectorName:n.toString(),getSelectorOptions:()=>({})}),o={configurable:!0,get:()=>i};return o.originalFn=r,o}}},BFxc:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("7o/Q"),r=n("4I5i"),i=n("EY2u");function o(t){return function(e){return 0===t?Object(i.b)():e.lift(new a(t))}}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends s.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(t):e[s%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(s[r])}}t.complete()}}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var s=n("HDdC"),r=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),u=n("c2HN"),c=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new s.a(n=>{const s=new i.a;return s.add(e.schedule(()=>{const r=t[o.a]();s.add(r.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(Object(u.a)(t))return function(t,e){return new s.a(n=>{const s=new i.a;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(Object(c.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new s.a(n=>{const s=new i.a;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(e.schedule(()=>{r=t[l.a](),s.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())}))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof s.a?t:new s.a(Object(r.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("3N8a");const r=new(n("IjjT").a)(s.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var s=n("HDdC");const r=new s.a(t=>t.complete());function i(t){return t?function(t){return new s.a(e=>t.schedule(()=>e.complete()))}(t):r}},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("LRne"),r=n("0EUg");function i(...t){return Object(r.a)()(Object(s.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("7o/Q"),r=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof s.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new s.a(t,e,n):new s.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof s.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=c(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(r){n(r),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=c(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function c(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return r});let s=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends s{constructor(t,e=s.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("7o/Q"),r=n("4I5i"),i=n("EY2u");function o(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends s.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("zx2A");function r(t){return function(e){const n=new i(t),s=e.lift(n);return n.caught=s}}class i{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends s.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new s.a(this);this.add(r);const i=Object(s.c)(n,r);i!==r&&this.add(i)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("GyhO"),r=n("z+Ro");function i(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),n=>Object(s.a)(t,n,e)):e=>Object(s.a)(t,e)}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new i(t,e,n))}}class i{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends s.a{constructor(t,e,n,s){super(t),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("z+Ro"),r=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(s.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(r.a)(t)}},Lhse:function(t,e,n){"use strict";function s(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return r});const r=s()},NJ4a:function(t,e,n){"use strict";function s(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return s})},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("HDdC"),r=n("Cfvw"),i=n("EY2u");function o(t){return new s.a(e=>{let n;try{n=t()}catch(s){return void e.error(s)}return(n?Object(r.a)(n):Object(i.b)()).subscribe(e)})}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return c}),n.d(e,"h",function(){return u}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return o}),n.d(e,"k",function(){return p}),n.d(e,"l",function(){return g});class s{}class r{}const i="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function c(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t){Promise.resolve(null).then(t)}class f{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class p{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const r=this.players.length;0==r?d(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const g="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return ye});var s=n("fXoL"),r=n("jhN1"),i=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new i.d;case 1:return t[0];default:return new i.k(t)}}function l(t,e,n,s,r={},o={}){const a=[],l=[];let u=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==u,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,l=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,a),l){case i.l:l=r[n];break;case i.a:l=o[n];break;default:l=e.normalizeStyleValue(n,s,l,a)}h[s]=l}),s||l.push(h),c=h,u=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&c(n,"start",t)));break;case"done":t.onDone(()=>s(n&&c(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&c(n,"destroy",t)))}}function c(t,e,n){const s=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),i=t._data;return null!=i&&(r._data=i),r}function h(t,e,n,s,r="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function d(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let p=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,n)=>[];const y=o();(y||"undefined"!=typeof Element)&&(p=(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),m=(t,e,n)=>{let s=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)s.push(n[t])}else{const n=t.querySelector(e);n&&s.push(n)}return s});let _=null,b=!1;function v(t){_||(_=("undefined"!=typeof document?document.body:null)||{},b=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&b)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=g,S=p,C=m;function O(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let E=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,r,o=[],a){return new i.d(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{}return t.NOOP=new E,t})();function T(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return 1e3*t;default:return t}}function k(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,r=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=D(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=D(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=t;if(!n){let n=!1,i=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:r,easing:i}}(t,e,n)}function j(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function A(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else j(t,n);return n}function N(t,e,n){return n?e+":"+n+";":""}function P(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=N(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=N(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function R(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const r=z(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[r]),t.style[r]=e[s]}),o()&&P(t))}function M(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=z(e);t.style[n]=""}),o()&&P(t))}function I(t){return Array.isArray(t)?1==t.length?t[0]:Object(i.f)(t):t}const L=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(t){let e=[];if("string"==typeof t){let n;for(;n=L.exec(t);)e.push(n[1]);L.lastIndex=0}return e}function F(t,e,n){const s=t.toString(),r=s.replace(L,(t,s)=>{let r=e[s];return e.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?t:r}function U(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const H=/-+([a-z0-9])/g;function z(t){return t.replace(H,(...t)=>t[1].toUpperCase())}function $(t,e){return 0===t||0===e}function q(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let i=e[0],o=[];if(s.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=B(t,e)})}}return e}function Y(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function B(t,e){return window.getComputedStyle(t)[e]}function W(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=s[1],i=s[2],o=s[3];e.push(Q(r,o)),"<"!=i[0]||"*"==r&&"*"==o||e.push(Q(o,r))}(t,n,e)):n.push(t),n}const X=new Set(["true","1"]),G=new Set(["false","0"]);function Q(t,e){const n=X.has(t)||G.has(t),s=X.has(e)||G.has(e);return(r,i)=>{let o="*"==t||t==r,a="*"==e||e==i;return!o&&n&&"boolean"==typeof r&&(o=r?X.has(t):G.has(t)),!a&&s&&"boolean"==typeof i&&(a=i?X.has(e):G.has(e)),o&&a}}const K=new RegExp("s*:selfs*,?","g");function Z(t,e,n){return new J(t).build(e,n)}class J{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),Y(this,I(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const r=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,s+=r.depCount,i.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{V(e[t]).forEach(t=>{i.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=U(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Y(this,I(t.animation),e);return{type:1,matchers:W(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Y(this,t,e);return s=Math.max(s,e.currentTime),r});return e.currentTime=s,{type:3,steps:r,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return st(k(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=st(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||k(s,e),st(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let r=t.styles?t.styles:Object(i.h)({});if(5==r.type)s=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=Object(i.h)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,s=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==i.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,r=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},r=V(t);r.length&&r.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=l&&(s++,u=n.offset=l),o=o||u<0||u>1,i=i||u<a,a=u,r.push(u),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&e.errors.push("Please ensure that all keyframe offsets are in order");const u=t.steps.length;let c=0;s>0&&s<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(c=1/(u-1));const h=u-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return l.forEach((t,s)=>{const i=c>0?s==h?1:c*s:r[s],o=i*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Y(this,I(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[r,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(K,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const o=Y(this,I(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:k(t.timings,e.errors,!0);return{type:12,animation:Y(this,I(t.animation),e),timings:n,options:null}}}class tt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=j(t)).params&&(t.params=(e=t.params)?j(e):null):t={},t}function st(t,e,n){return{duration:t,delay:e,easing:n}}function rt(t,e,n,s,r,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class it{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),at=new RegExp(":leave","g");function lt(t,e,n,s,r,i={},o={},a,l,u=[]){return(new ut).buildKeyframes(t,e,n,s,r,i,o,a,l,u)}class ut{buildKeyframes(t,e,n,s,r,i,o,a,l,u=[]){l=l||new it;const c=new ht(t,e,l,s,r,u,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Y(this,n,c);const h=c.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,c.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[rt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),r=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?T(n.duration):null,i=null!=n.delay?T(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const r=t.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ct);const t=T(r.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?T(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Y(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return k(e.params?F(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*r),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(s+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},r=s.delay?T(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ct);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),Y(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,r=t.timings,i=Math.abs(r.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;Y(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-u+(s.startTime-n.currentTimeline.startTime)}}const ct={};class ht{constructor(t,e,n,s,r,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=T(n.duration)),null!=n.delay&&(s.delay=T(n.delay));const r=n.params;if(r){let t=s.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=F(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,r=new ht(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ct,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,r,i){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||i.a,this._currentKeyframe[t]=i.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=i.a})):A(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=F(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:i.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,o)=>{const a=A(r,!0);Object.keys(a).forEach(n=>{const s=a[n];s==i.l?t.add(n):s==i.a&&e.add(n)}),n||(a.offset=o/this.duration),s.push(a)});const r=t.size?U(t.values()):[],o=e.size?U(e.values()):[];if(n){const t=s[0],e=j(t);t.offset=0,e.offset=1,s=[t,e]}return rt(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class ft extends dt{constructor(t,e,n,s,r,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],i=n+e,o=e/i,a=A(t[0],!1);a.offset=0,r.push(a);const l=A(t[0],!1);l.offset=pt(o),r.push(l);const u=t.length-1;for(let s=1;s<=u;s++){let o=A(t[s],!1);o.offset=pt((e+o.offset*n)/i),r.push(o)}n=i,e=0,s="",t=r}return rt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function pt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class gt{}class mt extends gt{normalizePropertyName(t,e){return z(t)}normalizeStyleValue(t,e,n,s){let r="";const i=n.toString().trim();if(yt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+r}}const yt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _t(t,e,n,s,r,i,o,a,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const bt={};class vt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,r){return t.some(t=>t(e,n,s,r))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],r=this._stateStyles[t],i=s?s.buildStyles(e,n):{};return r?r.buildStyles(e,n):i}build(t,e,n,s,r,i,o,a,l,u){const c=[],h=this.ast.options&&this.ast.options.params||bt,f=this.buildStyles(n,o&&o.params||bt,c),p=a&&a.params||bt,g=this.buildStyles(s,p,c),m=new Set,y=new Map,_=new Map,b="void"===s,v={params:Object.assign(Object.assign({},h),p)},w=u?[]:lt(t,e,this.ast.animation,r,i,f,g,v,l,c);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),c.length)return _t(e,this._triggerName,n,s,b,f,g,[],[],y,_,S,c);w.forEach(t=>{const n=t.element,s=d(y,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const C=U(m.values());return _t(e,this._triggerName,n,s,b,f,g,w,C,y,_,S)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=j(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let i=r[t];i.length>1&&(i=F(i,s,e)),n[t]=i})}}),n}}class St{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new vt(t,e,this.states))}),this.fallbackTransition=new vt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(r=>r.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Ct(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Ot=new it;class Et{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=Z(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,r=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],r=this._animations[t];let o;const l=new Map;if(r?(o=lt(this._driver,e,r,"ng-enter","ng-leave",{},{},n,Ot,s),o.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,i.a)})});const u=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,s){const r=h(e,"","","");return u(this._getPlayer(t),n,r,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const xt=[],Tt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Dt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class kt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=j(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt=new kt("void");class At{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Vt(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const i=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};i.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Vt(t,"ng-trigger"),Vt(t,"ng-trigger-"+e),a[e]=jt),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const r=this._getTrigger(e),i=new Pt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Vt(t,"ng-trigger"),Vt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new kt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=jt),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=r.matchStyles(a.value,a.params,e),s=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{M(t,n),R(t,s)})}return}const u=d(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let c=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!c){if(!s)return;c=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Vt(t,"ng-animate-queued"),i.onStart(()=>{Ft(t,"ng-animate-queued")})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),u.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,s){const r=this._engine.statesByElement.get(t);if(r){const i=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(t)[s]||jt,o=new kt("void"),a=new Pt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==Tt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Vt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(e=>{if(e.name==n.triggerName){const s=h(r,n.triggerName,n.fromState.value,n.toState.value);s._data=t,u(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Nt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new At(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const r=n[t[s]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(Rt(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!Rt(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Vt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ft(t,"ng-animate-disabled"))}removeNode(t,e,n,s){if(Rt(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,r){return Rt(e)?this._fetchNamespace(t).listen(e,n,s,r):()=>{}}_buildInstruction(t,e,n,s,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Tt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Vt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new it,s=[],r=new Map,o=[],l=new Map,u=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const f=this.bodyNode,p=Array.from(this.statesByElement.keys()),g=Lt(p,this.collectedEnterElements),m=new Map;let y=0;g.forEach((t,e)=>{const n="ng-enter"+y++;m.set(e,n),t.forEach(t=>Vt(t,n))});const _=[],b=new Set,v=new Set;for(let i=0;i<this.collectedLeaveElements.length;i++){const t=this.collectedLeaveElements[i],e=t.__ng_removed;e&&e.setForRemoval&&(_.push(t),b.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>b.add(t)):v.add(t))}const w=new Map,S=Lt(p,Array.from(b));S.forEach((t,e)=>{const n="ng-leave"+y++;w.set(e,n),t.forEach(t=>Vt(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Ft(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Ft(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],O=[];for(let i=this._namespaceList.length-1;i>=0;i--)this._namespaceList[i].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const i=!f||!this.driver.containsElement(f,r),a=w.get(r),h=m.get(r),p=this._buildInstruction(t,n,h,a,i);if(p.errors&&p.errors.length)O.push(p);else{if(i)return e.onStart(()=>M(r,p.fromStyles)),e.onDestroy(()=>R(r,p.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>M(r,p.fromStyles)),e.onDestroy(()=>R(r,p.toStyles)),void s.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),o.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>d(l,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=u.get(e);t||u.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=c.get(e);s||c.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(O.length){const t=[];O.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,x=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(x.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(E,e,[]).push(t),t.destroy()})});const T=_.filter(t=>zt(t,u,c)),D=new Map;It(D,this.driver,v,c,i.a).forEach(t=>{zt(t,u,c)&&T.push(t)});const k=new Map;g.forEach((t,e)=>{It(k,this.driver,new Set(t),u,i.l)}),T.forEach(t=>{const e=D.get(t),n=k.get(t);D.set(t,Object.assign(Object.assign({},e),n))});const j=[],A=[],N={};o.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>R(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let t=N;if(x.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=x.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>x.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,E,r,k,D);if(i.setRealPlayer(n),t===N)j.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),s.push(i)}}else M(e,o.fromStyles),i.onDestroy(()=>R(e,o.toStyles)),A.push(i),h.has(e)&&s.push(i)}),A.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let i=0;i<_.length;i++){const t=_[i],e=t.__ng_removed;if(Ft(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,".ng-animating",!0);for(let t=0;t<s.length;t++){let e=l.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?Ut(this,t,s):this.processLeaveNode(t)}return _.length=0,j.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),j}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,r){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&i.push(e)})}}return(n||s)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const s=e.element,r=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=d(n,t,[]);this._getPreviousPlayers(t,a,r,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}M(s,e.fromStyles)}_buildAnimation(t,e,n,s,r,o){const u=e.triggerName,c=e.element,h=[],f=new Set,p=new Set,g=e.timelines.map(e=>{const a=e.element;f.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new i.d(e.duration,e.delay);const g=a!==c,m=function(t){const e=[];return Ht(t,e),e}((n.get(a)||xt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),y=r.get(a),_=o.get(a),b=l(0,this._normalizer,0,e.keyframes,y,_),v=this._buildPlayer(e,b,m);if(e.subTimeline&&s&&p.add(a),g){const e=new Pt(t,u,a);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),f.forEach(t=>Vt(t,"ng-animating"));const m=a(g);return m.onDestroy(()=>{f.forEach(t=>Ft(t,"ng-animating")),R(c,e.toStyles)}),p.forEach(t=>{d(s,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new i.d(t.duration,t.delay)}}class Pt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new i.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Rt(t){return t&&1===t.nodeType}function Mt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function It(t,e,n,s,r){const i=[];n.forEach(t=>i.push(Mt(t)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(s,t,r);n&&0!=n.length||(s.__ng_removed=Dt,o.push(s))}),t.set(s,i)});let a=0;return n.forEach(t=>Mt(t,i[a++])),o}function Lt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),r=new Map;function i(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:s.has(o)?1:i(o),r.set(t,e),e}return e.forEach(t=>{const e=i(t);1!==e&&n.get(e).push(t)}),n}function Vt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ft(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ut(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Ht(t,e){for(let n=0;n<t.length;n++){const s=t[n];s instanceof i.k?Ht(s.players,e):e.push(s)}}function zt(t,e,n){const s=n.get(t);if(!s)return!1;let r=e.get(t);return r?s.forEach(t=>r.add(t)):e.set(t,s),n.delete(t),!0}class $t{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Nt(t,e,n),this._timelineEngine=new Et(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,r){const i=t+"-"+s;let o=this._triggerCache[i];if(!o){const t=[],e=Z(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new St(t,e)}(s,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,r]=f(n);this._timelineEngine.command(t,e,r,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,r){if("@"==n.charAt(0)){const[t,s]=f(n);return this._timelineEngine.listen(t,e,s,r)}return this._transitionEngine.listen(t,e,n,s,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function qt(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Bt(e[0]),e.length>1&&(s=Bt(e[e.length-1]))):e&&(n=Bt(e)),n||s?new Yt(t,n,s):null}let Yt=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&R(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(R(this._element,this._initialStyles),this._endStyles&&(R(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(M(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),R(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Bt(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const r=n[s];Wt(r)&&(e=e||{},e[r]=t[r])}return e}function Wt(t){return"display"===t||"position"===t}class Xt{constructor(t,e,n,s,r,i,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=te(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Jt(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Zt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Gt(this._element,this._name,"paused")}resume(){Gt(this._element,this._name,"running")}setPosition(t){const e=Qt(this._element,this._name);this._position=t*this._duration,Jt(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=te(t,"").split(","),s=Kt(n,e);s>=0&&(n.splice(s,1),Jt(t,"",n.join(",")))}(this._element,this._name))}}function Gt(t,e,n){Jt(t,"PlayState",n,Qt(t,e))}function Qt(t,e){const n=te(t,"");return n.indexOf(",")>0?Kt(n.split(","),e):Kt([n],e)}function Kt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Jt(t,e,n,s){const r="animation"+e;if(null!=s){const e=t.style[r];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[r]=n}function te(t,e){return t.style["animation"+e]||""}class ee{constructor(t,e,n,s,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Xt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:B(this.element,n))})}this.currentSnapshot=t}}class ne extends i.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=O(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class se{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>O(t));let s=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);s+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${e}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.textContent=s,i}animate(t,e,n,s,r,i=[],o){const a=i.filter(t=>t instanceof ee),l={};$(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=q(t,e,l));if(0==n)return new ne(t,u);const c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);const d=qt(t,e),f=new ee(t,e,c,n,s,r,u,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}}class re{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:B(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ie{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oe().toString()),this._cssKeyframesDriver=new se}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},u=i.filter(t=>t instanceof re);$(n,s)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=qt(t,e=q(t,e=e.map(t=>A(t,!1)),l));return new re(t,e,a,c)}}function oe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ae=n("ofXK");let le=(()=>{class t extends i.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.P.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(i.f)(t):t;return he(this._renderer,null,e,"register",[n]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.E),s.Xb(ae.d))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class ue extends i.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ce(this._id,t,e||{},this._renderer)}}class ce{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return he(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function he(t,e,n,s,r){return t.setProperty(e,`@@${n}:${s}`,r)}let de=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new fe("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const i=e=>{Array.isArray(e)?e.forEach(i):this.engine.registerTrigger(s,r,t,e.name,e)};return e.data.animation.forEach(i),new pe(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.E),s.Xb($t),s.Xb(s.z))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class fe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,s=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,s)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends fe{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),i="";return"@"!=r.charAt(0)&&([r,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ge=(()=>{class t extends $t{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(ae.d),s.Xb(x),s.Xb(gt))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const me=[{provide:x,useFactory:function(){return"function"==typeof oe()?new ie:new se}},{provide:new s.q("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:i.b,useClass:le},{provide:gt,useFactory:function(){return new mt}},{provide:$t,useClass:ge},{provide:s.E,useFactory:function(t,e,n){return new de(t,e,n)},deps:[r.g,$t,s.z]}];let ye=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:me,imports:[r.a]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("ngJS"),r=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),u=n("XoHu");const c=t=>{if(t&&"function"==typeof t[o.a])return c=t,t=>{const e=c[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(s.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(u.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,c}},SpAZ:function(t,e,n){"use strict";function s(t){return t}n.d(e,"a",function(){return s})},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("sVev"),r=n("pLZG"),i=n("IzEk"),o=n("xbPD"),a=n("XDbj"),l=n("SpAZ");function u(t,e){const n=arguments.length>=2;return u=>u.pipe(t?Object(r.a)((e,n)=>t(e,n,u)):l.a,Object(i.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new s.a))}},UXun:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("jtHE");function r(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,o,a=0,l=!1,u=!1;return function(c){let h;a++,!i||l?(l=!1,i=new s.a(t,e,r),h=i.subscribe(this),o=c.subscribe({next(t){i.next(t)},error(t){l=!0,i.error(t)},complete(){u=!0,o=void 0,i.complete()}}),u&&(o=void 0)):h=i.subscribe(this),this.add(()=>{a--,h.unsubscribe(),h=void 0,o&&!u&&n&&0===a&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("HDdC"),r=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(r.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof s.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("EY2u"),r=n("LRne"),i=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(i.a)(this.error);case"C":return Object(s.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("sVev"),r=n("7o/Q");function i(t=l){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function l(){return new s.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return c});var s=n("HDdC"),r=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class u extends r.a{constructor(t){super(t),this.destination=t}}let c=(()=>{class t extends s.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let r=0;r<n;r++)s[r].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let r=0;r<n;r++)s[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new s.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends c{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function s(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return s})},XqQ8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("lJxs"),r=n("Cfvw"),i=n("zx2A");function o(t,e){return e?n=>n.pipe(o((n,i)=>Object(r.a)(t(n,i)).pipe(Object(s.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends i.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new i.a(this),n=this.destination;n.add(e);const s=Object(i.c)(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("quSY");class r extends s.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("5+tZ"),r=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(s.a)(r.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("5+tZ");function r(t,e){return Object(s.a)(t,e,1)}},bhfF:function(t,e,n){"use strict";n.d(e,"a",function(){return lt}),n.d(e,"b",function(){return ct}),n.d(e,"c",function(){return at});var s=n("fXoL"),r=n("ofXK"),i=n("XNiG"),o=n("VRyK"),a=n("LRne"),l=n("Cfvw"),u=n("vkgz"),c=n("pLZG"),h=n("eIep"),d=n("SxV6"),f=n("IzEk"),p=n("7o/Q");function g(t){return e=>e.lift(new m(t))}class m{constructor(t){this.total=t}call(t,e){return e.subscribe(new y(t,this.total))}}class y extends p.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var _=n("lJxs"),b=n("Kqap"),v=n("BFxc"),w=n("xbPD"),S=n("mCNh");function C(t,e,n){return 0===n?[e]:(t.push(e),t)}var O=n("3E0/"),E=n("tyNb"),x=n("R0Ic"),T=n("jhN1");const D=function(t,e){return{isMouseDragable:t,isTouchDragable:e}};function k(t,e){if(1&t&&(s.Tb(0,"div",4),s.Ob(1,"owl-stage",5),s.Sb()),2&t){const t=s.cc();s.Ab(1),s.gc("owlDraggable",s.mc(3,D,null==t.owlDOMData?null:t.owlDOMData.isMouseDragable,null==t.owlDOMData?null:t.owlDOMData.isTouchDragable))("stageData",t.stageData)("slidesData",t.slidesData)}}const j=function(t,e){return{active:t,"owl-dot-text":e}};function A(t,e){if(1&t){const t=s.Ub();s.Tb(0,"div",11),s.ac("click",function(){s.tc(t);const n=e.$implicit;return s.cc(2).moveByDot(n.id)}),s.Ob(1,"span",12),s.Sb()}if(2&t){const t=e.$implicit;s.gc("ngClass",s.mc(2,j,t.active,t.showInnerContent)),s.Ab(1),s.gc("innerHTML",t.innerContent,s.uc)}}const N=function(t){return{disabled:t}};function P(t,e){if(1&t){const t=s.Ub();s.Rb(0),s.Tb(1,"div",6),s.Tb(2,"div",7),s.ac("click",function(){return s.tc(t),s.cc().prev()}),s.Sb(),s.Tb(3,"div",8),s.ac("click",function(){return s.tc(t),s.cc().next()}),s.Sb(),s.Sb(),s.Tb(4,"div",9),s.zc(5,A,2,5,"div",10),s.Sb(),s.Qb()}if(2&t){const t=s.cc();s.Ab(1),s.gc("ngClass",s.lc(7,N,null==t.navData?null:t.navData.disabled)),s.Ab(1),s.gc("ngClass",s.lc(9,N,null==t.navData||null==t.navData.prev?null:t.navData.prev.disabled))("innerHTML",null==t.navData||null==t.navData.prev?null:t.navData.prev.htmlText,s.uc),s.Ab(1),s.gc("ngClass",s.lc(11,N,null==t.navData||null==t.navData.next?null:t.navData.next.disabled))("innerHTML",null==t.navData||null==t.navData.next?null:t.navData.next.htmlText,s.uc),s.Ab(1),s.gc("ngClass",s.lc(13,N,null==t.dotsData?null:t.dotsData.disabled)),s.Ab(1),s.gc("ngForOf",null==t.dotsData?null:t.dotsData.dots)}}const R=function(t,e,n,s,r){return{"owl-rtl":t,"owl-loaded":e,"owl-responsive":n,"owl-drag":s,"owl-grab":r}};function M(t,e){}const I=function(t,e){return{$implicit:t,index:e}};function L(t,e){if(1&t&&s.zc(0,M,0,0,"ng-template",4),2&t){const t=s.cc(),e=t.$implicit,n=t.index,r=s.cc();s.gc("ngTemplateOutlet",e.tplRef)("ngTemplateOutletContext",s.mc(2,I,r.preparePublicSlide(e),n))}}const V=function(t,e,n,s){return{width:t,"margin-left":e,"margin-right":n,left:s}};function F(t,e){if(1&t){const t=s.Ub();s.Rb(0),s.Tb(1,"div",2),s.ac("animationend",function(){s.tc(t);const n=e.$implicit;return s.cc().clear(n.id)}),s.zc(2,L,1,5,void 0,3),s.Sb(),s.Qb()}if(2&t){const t=e.$implicit;s.Ab(1),s.gc("ngClass",t.classes)("ngStyle",s.nc(4,V,t.width+"px",t.marginL?t.marginL+"px":"",t.marginR?t.marginR+"px":"",t.left))("@autoHeight",t.heightState),s.Ab(1),s.gc("ngIf",t.load)}}const U=function(t,e,n,s,r){return{width:t,transform:e,transition:n,"padding-left":s,"padding-right":r}};let H=(()=>{class t{constructor(t){this.eventManager=t,this.resizeSubject=new i.a,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}get onResize$(){return this.resizeSubject.asObservable()}onResize(t){this.resizeSubject.next(t.target)}onLoaded(t){this.windowWidth=t.target}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(T.c))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class z{constructor(){this.items=3,this.skip_validateItems=!1,this.loop=!1,this.center=!1,this.rewind=!1,this.mouseDrag=!0,this.touchDrag=!0,this.pullDrag=!0,this.freeDrag=!1,this.margin=0,this.stagePadding=0,this.merge=!1,this.mergeFit=!0,this.autoWidth=!1,this.startPosition=0,this.rtl=!1,this.smartSpeed=250,this.fluidSpeed=!1,this.dragEndSpeed=!1,this.responsive={},this.responsiveRefreshRate=200,this.nav=!1,this.navText=["prev","next"],this.navSpeed=!1,this.slideBy=1,this.dots=!0,this.dotsEach=!1,this.dotsData=!1,this.dotsSpeed=!1,this.autoplay=!1,this.autoplayTimeout=5e3,this.autoplayHoverPause=!1,this.autoplaySpeed=!1,this.autoplayMouseleaveTimeout=1,this.lazyLoad=!1,this.lazyLoadEager=0,this.slideTransition="",this.animateOut=!1,this.animateIn=!1,this.autoHeight=!1,this.URLhashListener=!1}}class ${constructor(){this.items="number",this.skip_validateItems="boolean",this.loop="boolean",this.center="boolean",this.rewind="boolean",this.mouseDrag="boolean",this.touchDrag="boolean",this.pullDrag="boolean",this.freeDrag="boolean",this.margin="number",this.stagePadding="number",this.merge="boolean",this.mergeFit="boolean",this.autoWidth="boolean",this.startPosition="number|string",this.rtl="boolean",this.smartSpeed="number",this.fluidSpeed="boolean",this.dragEndSpeed="number|boolean",this.responsive={},this.responsiveRefreshRate="number",this.nav="boolean",this.navText="string[]",this.navSpeed="number|boolean",this.slideBy="number|string",this.dots="boolean",this.dotsEach="number|boolean",this.dotsData="boolean",this.dotsSpeed="number|boolean",this.autoplay="boolean",this.autoplayTimeout="number",this.autoplayHoverPause="boolean",this.autoplaySpeed="number|boolean",this.autoplayMouseleaveTimeout="number",this.lazyLoad="boolean",this.lazyLoadEager="number",this.slideTransition="string",this.animateOut="string|boolean",this.animateIn="string|boolean",this.autoHeight="boolean",this.URLhashListener="boolean"}}let q=(()=>{class t{constructor(t){this.errorHandler=t}log(t,...e){Object(s.V)()&&console.log(t,...e)}error(t){this.errorHandler.handleError(t)}warn(t,...e){console.warn(t,...e)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.m))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();var Y=function(t){return t.Event="event",t.State="state",t}({}),B=function(t){return t.Default="default",t.Inner="inner",t.Outer="outer",t}({});let W=(()=>{class t{constructor(t){this.logger=t,this._viewSettingsShipper$=new i.a,this._initializedCarousel$=new i.a,this._changeSettingsCarousel$=new i.a,this._changedSettingsCarousel$=new i.a,this._translateCarousel$=new i.a,this._translatedCarousel$=new i.a,this._resizeCarousel$=new i.a,this._resizedCarousel$=new i.a,this._refreshCarousel$=new i.a,this._refreshedCarousel$=new i.a,this._dragCarousel$=new i.a,this._draggedCarousel$=new i.a,this.settings={items:0},this.owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1},this.stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0},this._items=[],this._widths=[],this._supress={},this._plugins={},this._current=null,this._clones=[],this._mergers=[],this._speed=null,this._coordinates=[],this._breakpoint=null,this.clonedIdPrefix="cloned-",this._options={},this._invalidated={},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},this._pipe=[{filter:["width","items","settings"],run:t=>{t.current=this._items&&this._items[this.relative(this._current)].id}},{filter:["width","items","settings"],run:t=>{const e=this.settings.margin||"",n=this.settings.rtl,s={"margin-left":n?e:"","margin-right":n?"":e};!this.settings.autoWidth||this.slidesData.forEach(t=>{t.marginL=s["margin-left"],t.marginR=s["margin-right"]}),t.css=s}},{filter:["width","items","settings"],run:t=>{const e=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=!this.settings.autoWidth,s=[];let r=null,i=this._items.length;for(t.items={merge:!1,width:e};i--;)r=this._mergers[i],r=this.settings.mergeFit&&Math.min(r,this.settings.items)||r,t.items.merge=r>1||t.items.merge,s[i]=n?e*r:this._items[i].width?this._items[i].width:e;this._widths=s,this.slidesData.forEach((e,n)=>{e.width=this._widths[n],e.marginR=t.css["margin-right"],e.marginL=t.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const t=[],e=this._items,n=this.settings,s=Math.max(2*n.items,4),r=2*Math.ceil(e.length/2);let i=[],o=[],a=n.loop&&e.length?n.rewind?s:Math.max(s,r):0;for(a/=2;a--;)t.push(this.normalize(t.length/2,!0)),i.push(Object.assign({},this.slidesData[t[t.length-1]])),t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),o.unshift(Object.assign({},this.slidesData[t[t.length-1]]));this._clones=t,i=i.map(t=>(t.id=`${this.clonedIdPrefix}${t.id}`,t.isActive=!1,t.isCloned=!0,t)),o=o.map(t=>(t.id=`${this.clonedIdPrefix}${t.id}`,t.isActive=!1,t.isCloned=!0,t)),this.slidesData=o.concat(this.slidesData).concat(i)}},{filter:["width","items","settings"],run:()=>{const t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,n=[];let s=-1,r=0,i=0;for(;++s<e;)r=n[s-1]||0,i=this._widths[this.relative(s)]+this.settings.margin,n.push(r+i*t);this._coordinates=n}},{filter:["width","items","settings"],run:()=>{const t=this.settings.stagePadding,e=this._coordinates,n={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.stageData.width=n.width,this.stageData.paddingL=n["padding-left"],this.stageData.paddingR=n["padding-right"]}},{filter:["width","items","settings"],run:t=>{let e=t.current?this.slidesData.findIndex(e=>e.id===t.current):0;e=Math.max(this.minimum(),Math.min(this.maximum(),e)),this.reset(e)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const t=this.settings.rtl?1:-1,e=2*this.settings.stagePadding,n=[];let s,r,i,o,a,l;if(s=this.coordinates(this.current()),"number"==typeof s?s+=e:s=0,r=s+this.width()*t,-1===t&&this.settings.center){const t=this._coordinates.filter(t=>this.settings.items%2==1?t>=s:t>s);s=t.length?t[t.length-1]:s}for(a=0,l=this._coordinates.length;a<l;a++)i=Math.ceil(this._coordinates[a-1]||0),o=Math.ceil(Math.abs(this._coordinates[a])+e*t),(this._op(i,"<=",s)&&this._op(i,">",r)||this._op(o,"<",s)&&this._op(o,">",r))&&n.push(a);this.slidesData.forEach(t=>(t.isActive=!1,t)),n.forEach(t=>{this.slidesData[t].isActive=!0}),this.settings.center&&(this.slidesData.forEach(t=>(t.isCentered=!1,t)),this.slidesData[this.current()].isCentered=!0)}}]}get invalidated(){return this._invalidated}get states(){return this._states}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(t){const e=new z,n=this._validateOptions(t,e);this._options=Object.assign(Object.assign({},e),n)}_validateOptions(t,e){const n=Object.assign({},t),s=new $,r=(n,s)=>(this.logger.log(`options.${s} must be type of ${n}; ${s}=${t[s]} skipped to defaults: ${s}=${e[s]}`),e[s]);for(const i in n)if(n.hasOwnProperty(i))if("number"===s[i])this._isNumeric(n[i])?(n[i]=+n[i],n[i]="items"===i?this._validateItems(n[i],n.skip_validateItems):n[i]):n[i]=r(s[i],i);else if("boolean"===s[i]&&"boolean"!=typeof n[i])n[i]=r(s[i],i);else if("number|boolean"!==s[i]||this._isNumberOrBoolean(n[i]))if("number|string"!==s[i]||this._isNumberOrString(n[i]))if("string|boolean"!==s[i]||this._isStringOrBoolean(n[i])){if("string[]"===s[i])if(Array.isArray(n[i])){let t=!1;n[i].forEach(e=>{t="string"==typeof e}),t||(n[i]=r(s[i],i))}else n[i]=r(s[i],i)}else n[i]=r(s[i],i);else n[i]=r(s[i],i);else n[i]=r(s[i],i);return n}_validateItems(t,e){let n=t;return t>this._items.length?e?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(n=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):t===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),n}setCarouselWidth(t){this._width=t}setup(t,e,n){this.setCarouselWidth(t),this.setItems(e),this._defineSlidesData(),this.setOptions(n),this.settings=Object.assign({},this._options),this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const t=this._width,e=this._options.responsive;let n=-1;if(!Object.keys(e).length)return;if(!t)return void(this.settings.items=1);for(const r in e)e.hasOwnProperty(r)&&+r<=t&&+r>n&&(n=Number(r));this.settings=Object.assign(Object.assign(Object.assign({},this._options),e[n]),{items:e[n]&&e[n].items?this._validateItems(e[n].items,this._options.skip_validateItems):this._options.items}),delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const s=[];this._items.forEach(t=>{s.push(this.settings.merge?t.dataMerge:1)}),this._mergers=s,this._breakpoint=n,this.invalidate("settings")}initialize(t){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),t.forEach(t=>{this._mergers.push(this.settings.merge?t.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let t=0;const e=this._pipe.length,n=t=>this._invalidated[t],s={};for(;t<e;){const e=this._pipe[t].filter.filter(n);(this._invalidated.all||e.length>0)&&this._pipe[t].run(s),t++}this.slidesData.forEach(t=>t.classes=this.setCurSlideClasses(t)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(t){switch(t=t||B.Default){case B.Inner:case B.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(t){if(!this._items.length)return!1;this.setCarouselWidth(t),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(t){let e,n=null;return e=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),n={x:+e[0],y:+e[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===t.type&&(this.owlDOMData.isGrab=!0),this.speed(0),n}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(t,e){let n=null,s=null,r=null;const i=this.difference(e.pointer,this.pointer(t)),o=this.difference(e.stage.start,i);return!!this.is("dragging")&&(this.settings.loop?(n=this.coordinates(this.minimum()),s=+this.coordinates(this.maximum()+1)-n,o.x=((o.x-n)%s+s)%s+n):(n=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),s=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),r=this.settings.pullDrag?-1*i.x/5:0,o.x=Math.max(Math.min(o.x,n+r),s+r)),o)}finishDragging(t,e,n){const s=this.difference(e.pointer,this.pointer(t)),r=e.stage.current,i=["right","left"][+(this.settings.rtl?s.x<+this.settings.rtl:s.x>+this.settings.rtl)];let o,a,l;(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),o=this.closest(r.x,0!==s.x?i:e.direction),a=this.current(),l=this.current(-1===o?void 0:o),a!==l&&(this.invalidate("position"),this.update()),e.direction=i,(Math.abs(s.x)>3||(new Date).getTime()-e.time>300)&&n()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(t,e){const n=this.width();let s=this.coordinates(),r=-1;this.settings.center&&(s=s.map(t=>(0===t&&(t+=1e-6),t)));for(let i=0;i<s.length&&("left"===e&&t>s[i]-30&&t<s[i]+30?r=i:"right"===e&&t>s[i]-n-30&&t<s[i]-n+30?r=i+1:this._op(t,"<",s[i])&&this._op(t,">",s[i+1]||s[i]-n)?r="left"===e?i+1:i:null===e&&t>s[i]-30&&t<s[i]+30&&(r=i),-1===r);i++);return this.settings.loop||(this._op(t,">",s[this.minimum()])?r=t=this.minimum():this._op(t,"<",s[this.maximum()])&&(r=t=this.maximum())),r}animate(t){const e=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+t+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(t){return this._states.current[t]&&this._states.current[t]>0}current(t){return void 0===t?this._current:0!==this._items.length?(t=this.normalize(t),this._current!==t&&(this._trigger("change",{property:{name:"position",value:t}}),this._current=t,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(t){return"string"==typeof t&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this._suppress(["translate","translated"]),this.animate(this.coordinates(t)),this._release(["translate","translated"]))}normalize(t,e){const n=this._items.length,s=e?0:this._clones.length;return!this._isNumeric(t)||n<1?t=void 0:(t<0||t>=n+s)&&(t=((t-s/2)%n+n)%n+s/2),t}relative(t){return this.normalize(t-=this._clones.length/2,!0)}maximum(t=!1){const e=this.settings;let n,s,r,i=this._coordinates.length;if(e.loop)i=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(n=this._items.length,s=this.slidesData[--n].width,r=this._width;n--&&(s+=+this.slidesData[n].width+this.settings.margin,!(s>r)););i=n+1}else i=e.center?this._items.length-1:this._items.length-e.items;return t&&(i-=this._clones.length/2),Math.max(i,0)}minimum(t=!1){return t?0:this._clones.length/2}items(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),[this._items[t]])}mergers(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])}clones(t){const e=this._clones.length/2,n=e+this._items.length,s=t=>t%2==0?n+t/2:e-(t+1)/2;return void 0===t?this._clones.map((t,e)=>s(e)):this._clones.map((e,n)=>e===t?s(n):null).filter(t=>t)}speed(t){return void 0!==t&&(this._speed=t),this._speed}coordinates(t){let e,n,s=1,r=t-1;return void 0===t?(n=this._coordinates.map((t,e)=>this.coordinates(e)),n):(this.settings.center?(this.settings.rtl&&(s=-1,r=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[r]||0))/2*s):e=this._coordinates[r]||0,e=Math.ceil(e),e)}_duration(t,e,n){return 0===n?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(+n||this.settings.smartSpeed)}to(t,e){let n=this.current(),s=null,r=t-this.relative(n),i=this.maximum(),o=0;const a=+(r>0)-+(r<0),l=this._items.length,u=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>l/2&&(r+=-1*a*l),s=(((t=n+r)-u)%l+l)%l+u,s!==t&&s-r<=i&&s-r>0&&(n=s-r,t=s,o=30,this.reset(n),this.sendChanges())):this.settings.rewind?(i+=1,t=(t%i+i)%i):t=Math.max(u,Math.min(i,t)),setTimeout(()=>{this.speed(this._duration(n,t,e)),this.current(t),this.update()},o)}next(t){t=t||!1,this.to(this.relative(this.current())+1,t)}prev(t){t=t||!1,this.to(this.relative(this.current())-1,t)}onTransitionEnd(t){if(void 0!==t)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let t;return this._width?t=this._width:this.logger.log("Can not detect viewport width."),t}setItems(t){this._items=t}_defineSlidesData(){let t;this.slidesData&&this.slidesData.length&&(t=new Map,this.slidesData.forEach(e=>{e.load&&t.set(e.id,e.load)})),this.slidesData=this._items.map(e=>({id:""+e.id,isActive:!1,tplRef:e.tplRef,dataMerge:e.dataMerge,width:0,isCloned:!1,load:!!t&&t.get(e.id),hashFragment:e.dataHash}))}setCurSlideClasses(t){const e={active:t.isActive,center:t.isCentered,cloned:t.isCloned,animated:t.isAnimated,"owl-animated-in":t.isDefAnimatedIn,"owl-animated-out":t.isDefAnimatedOut};return this.settings.animateIn&&(e[this.settings.animateIn]=t.isCustomAnimatedIn),this.settings.animateOut&&(e[this.settings.animateOut]=t.isCustomAnimatedOut),e}_op(t,e,n){const s=this.settings.rtl;switch(e){case"<":return s?t>n:t<n;case">":return s?t<n:t>n;case">=":return s?t<=n:t>=n;case"<=":return s?t>=n:t<=n}}_trigger(t,e,n,s,r){switch(t){case"initialized":this._initializedCarousel$.next(t);break;case"change":this._changeSettingsCarousel$.next(e);break;case"changed":this._changedSettingsCarousel$.next(e);break;case"drag":this._dragCarousel$.next(t);break;case"dragged":this._draggedCarousel$.next(t);break;case"resize":this._resizeCarousel$.next(t);break;case"resized":this._resizedCarousel$.next(t);break;case"refresh":this._refreshCarousel$.next(t);break;case"refreshed":this._refreshedCarousel$.next(t);break;case"translate":this._translateCarousel$.next(t);break;case"translated":this._translatedCarousel$.next(t)}}enter(t){[t].concat(this._states.tags[t]||[]).forEach(t=>{void 0===this._states.current[t]&&(this._states.current[t]=0),this._states.current[t]++})}leave(t){[t].concat(this._states.tags[t]||[]).forEach(t=>{(0===this._states.current[t]||this._states.current[t])&&this._states.current[t]--})}register(t){t.type===Y.State&&(this._states.tags[t.name]=this._states.tags[t.name]?this._states.tags[t.name].concat(t.tags):t.tags,this._states.tags[t.name]=this._states.tags[t.name].filter((e,n)=>this._states.tags[t.name].indexOf(e)===n))}_suppress(t){t.forEach(t=>{this._supress[t]=!0})}_release(t){t.forEach(t=>{delete this._supress[t]})}pointer(t){const e={x:null,y:null};return(t=(t=t.originalEvent||t||window.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e}_isNumeric(t){return!isNaN(parseFloat(t))}_isNumberOrBoolean(t){return this._isNumeric(t)||"boolean"==typeof t}_isNumberOrString(t){return this._isNumeric(t)||"string"==typeof t}_isStringOrBoolean(t){return"string"==typeof t||"boolean"==typeof t}difference(t,e){return null===t||null===e?{x:0,y:0}:{x:t.x-e.x,y:t.y-e.y}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(q))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),X=(()=>{class t{constructor(t){this.carouselService=t,this._initialized=!1,this._pages=[],this._navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}},this._dotsData={disabled:!1,dots:[]},this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getInitializedState().pipe(Object(u.a)(t=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),e=this.carouselService.getChangedState().pipe(Object(c.a)(t=>"position"===t.property.name),Object(u.a)(t=>{this.update()})),n=this.carouselService.getRefreshedState().pipe(Object(u.a)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),s=Object(o.a)(t,e,n);this.navSubscription=s.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let t,e,n;const s=this.carouselService.clones().length/2,r=s+this.carouselService.items().length,i=this.carouselService.maximum(!0),o=[],a=this.carouselService.settings;let l=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(l=+l,"page"!==a.slideBy&&(a.slideBy=Math.min(+a.slideBy,a.items)),a.dots||"page"===a.slideBy)for(t=s,e=0,n=0;t<r;t++){if(e>=l||0===e){if(o.push({start:Math.min(i,t-s),end:t-s+l-1}),Math.min(i,t-s)===i)break;e=0,++n}e+=this.carouselService.mergers(this.carouselService.relative(t))}this._pages=o}draw(){let t;const e=this.carouselService.settings,n=this.carouselService.items(),s=n.length<=e.items;if(this._navData.disabled=!e.nav||s,this._dotsData.disabled=!e.dots||s,e.dots)if(t=this._pages.length-this._dotsData.dots.length,e.dotsData&&0!==t)this._dotsData.dots=[],n.forEach(t=>{this._dotsData.dots.push({active:!1,id:"dot-"+t.id,innerContent:t.dotContent,showInnerContent:!0})});else if(t>0){const e=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let n=0;n<t;n++)this._dotsData.dots.push({active:!1,id:"dot-"+(n+e),innerContent:"",showInnerContent:!1})}else t<0&&this._dotsData.dots.splice(t,Math.abs(t));this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}update(){this._updateNavButtons(),this._updateDots()}_updateNavButtons(){const t=this.carouselService.settings,e=t.loop||t.rewind,n=this.carouselService.relative(this.carouselService.current());t.nav&&(this._navData.prev.disabled=!e&&n<=this.carouselService.minimum(!0),this._navData.next.disabled=!e&&n>=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let t;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(t=>{!0===t.active&&(t.active=!1)}),t=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[t].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const t=this.carouselService.relative(this.carouselService.current());let e;const n=this._pages.filter((e,n)=>e.start<=t&&e.end>=t).pop();return e=this._pages.findIndex(t=>t.start===n.start&&t.end===n.end),e}_getPosition(t){let e,n;const s=this.carouselService.settings;return"page"===s.slideBy?(e=this._current(),n=this._pages.length,t?++e:--e,e=this._pages[(e%n+n)%n].start):(e=this.carouselService.relative(this.carouselService.current()),n=this.carouselService.items().length,t?e+=+s.slideBy:e-=+s.slideBy),e}next(t){this.carouselService.to(this._getPosition(!0),t)}prev(t){this.carouselService.to(this._getPosition(!1),t)}to(t,e,n){let s;!n&&this._pages.length?(s=this._pages.length,this.carouselService.to(this._pages[(t%s+s)%s].start,e)):this.carouselService.to(t,e)}moveByDot(t){const e=this._dotsData.dots.findIndex(e=>t===e.id);this.to(e,this.carouselService.settings.dotsSpeed)}toSlideById(t){const e=this.carouselService.slidesData.findIndex(e=>e.id===t&&!1===e.isCloned);-1!==e&&e!==this.carouselService.current()&&this.carouselService.to(this.carouselService.relative(e),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const G=new s.q("WindowToken");class Q{get nativeWindow(){throw new Error("Not implemented.")}}const K=[{provide:Q,useClass:(()=>{class t extends Q{constructor(){super()}get nativeWindow(){return window}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})()},{provide:G,useFactory:function(t,e){return Object(r.r)(e)?t.nativeWindow:{setTimeout:(t,e)=>{},clearTimeout:t=>{}}},deps:[Q,s.B]}],Z=new s.q("DocumentToken");class J{get nativeDocument(){throw new Error("Not implemented.")}}const tt=[{provide:J,useClass:(()=>{class t extends J{constructor(){super()}get nativeDocument(){return document}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})()},{provide:Z,useFactory:function(t,e){return Object(r.r)(e)?t.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[J,s.B]}];let et=(()=>{class t{constructor(t,e,n){this.carouselService=t,this._timeout=null,this._paused=!1,this._isAutoplayStopped=!1,this.winRef=e,this.docRef=n,this.spyDataStreams()}get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(t){this._isAutoplayStopped=t}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getInitializedState().pipe(Object(u.a)(()=>{this.carouselService.settings.autoplay&&this.play()})),e=this.carouselService.getChangedState().pipe(Object(u.a)(t=>{this._handleChangeObservable(t)})),n=this.carouselService.getResizedState().pipe(Object(u.a)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),s=Object(o.a)(t,e,n);this.autoplaySubscription=s.subscribe(()=>{})}play(t,e){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),this.carouselService.is("rotating")||(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(t,e){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!t,this.winRef.setTimeout(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(e||this.carouselService.settings.autoplaySpeed)},t||this.carouselService.settings.autoplayTimeout)}_setAutoPlayInterval(t){this._timeout=this._getNextTimeout(t)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(t){"settings"===t.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===t.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){Object(a.a)("translated").pipe(Object(h.a)(t=>this.carouselService.getTranslatedState()),Object(d.a)(),Object(c.a)(()=>this._isArtificialAutoplayTimeout),Object(u.a)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W),s.Xb(G),s.Xb(Z))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),nt=(()=>{class t{constructor(t){this.carouselService=t,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getInitializedState().pipe(Object(u.a)(()=>{const t=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(e=>e.load=!!t)})),e=this.carouselService.getChangeState(),n=this.carouselService.getResizedState(),s=Object(o.a)(t,e,n).pipe(Object(u.a)(t=>this._defineLazyLoadSlides(t)));this.lazyLoadSubscription=s.subscribe(()=>{})}_defineLazyLoadSlides(t){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(t.property&&"position"===t.property.name||"initialized"===t||"resized"===t)){const e=this.carouselService.settings,n=this.carouselService.clones().length;let s=e.center&&Math.ceil(e.items/2)||e.items,r=e.center&&-1*s||0,i=(t.property&&void 0!==t.property.value?t.property.value:this.carouselService.current())+r;for(e.lazyLoadEager>0&&(s+=e.lazyLoadEager,e.loop&&(i-=e.lazyLoadEager,s++));r++<s;)this._load(n/2+this.carouselService.relative(i)),n&&this.carouselService.clones(this.carouselService.relative(i)).forEach(t=>this._load(t)),i++}}_load(t){this.carouselService.slidesData[t].load||(this.carouselService.slidesData[t].load=!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),st=(()=>{class t{constructor(t){this.carouselService=t,this.swapping=!0,this.previous=void 0,this.next=void 0,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getChangeState().pipe(Object(u.a)(t=>{"position"===t.property.name&&(this.previous=this.carouselService.current(),this.next=t.property.value)})),e=this.carouselService.getDragState(),n=this.carouselService.getDraggedState(),s=this.carouselService.getTranslatedState(),r=Object(o.a)(e,n,s).pipe(Object(u.a)(t=>this.swapping="translated"===t)),i=this.carouselService.getTranslateState().pipe(Object(u.a)(t=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),a=Object(o.a)(t,i,r).pipe();this.animateSubscription=a.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let t;this.carouselService.speed(0);const e=this.carouselService.slidesData[this.previous],n=this.carouselService.slidesData[this.next],s=this.carouselService.settings.animateIn,r=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(r&&(t=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(n=>{n.id===e.id&&(n.left=t+"px",n.isAnimated=!0,n.isDefAnimatedOut=!0,n.isCustomAnimatedOut=!0)})),s&&this.carouselService.slidesData.forEach(t=>{t.id===n.id&&(t.isAnimated=!0,t.isDefAnimatedIn=!0,t.isCustomAnimatedIn=!0)}))}clear(t){this.carouselService.slidesData.forEach(e=>{e.id===t&&(e.left="",e.isAnimated=!1,e.isDefAnimatedOut=!1,e.isCustomAnimatedOut=!1,e.isDefAnimatedIn=!1,e.isCustomAnimatedIn=!1,e.classes=this.carouselService.setCurSlideClasses(e))}),this.carouselService.onTransitionEnd()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),rt=(()=>{class t{constructor(t){this.carouselService=t,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getInitializedState().pipe(Object(u.a)(t=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(t=>t.heightState="full")})),e=this.carouselService.getChangedState().pipe(Object(u.a)(t=>{this.carouselService.settings.autoHeight&&"position"===t.property.name&&this.update()})),n=this.carouselService.getRefreshedState().pipe(Object(u.a)(t=>{this.carouselService.settings.autoHeight&&this.update()})),s=Object(o.a)(t,e,n);this.autoHeightSubscription=s.subscribe(()=>{})}update(){const t=this.carouselService.settings.items;let e=this.carouselService.current(),n=e+t;this.carouselService.settings.center&&(e=t%2==1?e-(t-1)/2:e-t/2,n=t%2==1?e+t:e+t+1),this.carouselService.slidesData.forEach((t,s)=>{t.heightState=s>=e&&s<n?"full":"nulled"})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),it=(()=>{class t{constructor(t,e,n){this.carouselService=t,this.route=e,this.router=n,this.spyDataStreams(),this.route||(this.route={fragment:Object(a.a)("no route").pipe(Object(f.a)(1))}),this.router||(this.router={navigate:(t,e)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getInitializedState().pipe(Object(u.a)(()=>this.listenToRoute())),e=this.carouselService.getChangedState().pipe(Object(u.a)(t=>{if(this.carouselService.settings.URLhashListener&&"position"===t.property.name){const t=this.carouselService.current(),e=this.carouselService.slidesData[t].hashFragment;if(!e||e===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:e,relativeTo:this.route})}})),n=Object(o.a)(t,e);this.hashSubscription=n.subscribe(()=>{})}rewind(t){const e=this.carouselService.slidesData.findIndex(e=>e.hashFragment===t&&!1===e.isCloned);-1!==e&&e!==this.carouselService.current()&&this.carouselService.to(this.carouselService.relative(e),!1)}listenToRoute(){this.route.fragment.pipe(g("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(t=>{this.currentHashFragment=t,this.rewind(t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(W),s.Xb(E.a,8),s.Xb(E.g,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),ot=0,at=(()=>{class t{constructor(t){this.tplRef=t,this.id="owl-slide-"+ot++,this._dataMerge=1,this.width=0,this.dotContent="",this.dataHash=""}set dataMerge(t){this._dataMerge=this.isNumeric(t)?t:1}get dataMerge(){return this._dataMerge}isNumeric(t){return!isNaN(parseFloat(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.K))},t.\u0275dir=s.Ib({type:t,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",width:"width",dotContent:"dotContent",dataHash:"dataHash",dataMerge:"dataMerge"}}),t})(),lt=(()=>{class t{constructor(t,e,n,r,i,o,a,l,u,c,h,d){this.el=t,this.resizeService=e,this.carouselService=n,this.navigationService=r,this.autoplayService=i,this.lazyLoadService=o,this.animateService=a,this.autoHeightService=l,this.hashService=u,this.logger=c,this.changeDetectorRef=h,this.translated=new s.n,this.dragging=new s.n,this.change=new s.n,this.changed=new s.n,this.initialized=new s.n,this.slidesData=[],this.carouselLoaded=!1,this.docRef=d}onVisibilityChange(t){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){var t;this.prevOptions!==this.options&&(this.prevOptions&&(null===(t=this.slides)||void 0===t?void 0:t.toArray().length)?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")),this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe(Object(u.a)(t=>{t.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,t.toArray(),this.options),this.carouselService.initialize(t.toArray())):(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered"))})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe(Object(u.a)(t=>{this.owlDOMData=t.owlDOMData,this.stageData=t.stageData,this.slidesData=t.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=t.navData,this.dotsData=t.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe(Object(u.a)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe(Object(u.a)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe(Object(u.a)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe(Object(h.a)(t=>{const e=Object(a.a)(t).pipe(Object(c.a)(()=>"position"===t.property.name),Object(h.a)(()=>Object(l.a)(this.slidesData)),g(t.property.value),Object(f.a)(this.carouselService.settings.items),Object(_.a)(t=>{const e=this.carouselService.clonedIdPrefix,n=t.id.indexOf(e)>=0?t.id.slice(e.length):t.id;return Object.assign(Object.assign({},t),{id:n,isActive:!0})}),function(t,e){return arguments.length>=2?function(n){return Object(S.a)(Object(b.a)(t,e),Object(v.a)(1),Object(w.a)(e))(n)}:function(e){return Object(S.a)(Object(b.a)((e,n,s)=>t(e,n,s+1)),Object(v.a)(1))(e)}}(C,[]),Object(_.a)(e=>({slides:e,startPosition:this.carouselService.relative(t.property.value)})));return Object(o.a)(e)}),Object(u.a)(t=>{this.gatherTranslatedData(),this.changed.emit(t.slides.length?t:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe(Object(u.a)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),Object(h.a)(()=>this.carouselService.getDraggedState().pipe(Object(_.a)(()=>!!this.carouselService.is("animating")))),Object(h.a)(t=>t?this.carouselService.getTranslatedState().pipe(Object(d.a)()):Object(a.a)("not animating")),Object(u.a)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=Object(o.a)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe(Object(c.a)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),Object(O.a)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(t){this.carouselLoaded&&this.navigationService.moveByDot(t)}to(t){this.carouselLoaded&&this.navigationService.toSlideById(t)}gatherTranslatedData(){let t;const e=this.carouselService.clonedIdPrefix,n=this.slidesData.filter(t=>!0===t.isActive).map(t=>({id:t.id.indexOf(e)>=0?t.id.slice(e.length):t.id,width:t.width,marginL:t.marginL,marginR:t.marginR,center:t.isCentered}));t=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:t,slides:n}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(H),s.Nb(W),s.Nb(X),s.Nb(et),s.Nb(nt),s.Nb(st),s.Nb(rt),s.Nb(it),s.Nb(q),s.Nb(s.h),s.Nb(Z))},t.\u0275cmp=s.Hb({type:t,selectors:[["owl-carousel-o"]],contentQueries:function(t,e,n){if(1&t&&s.Gb(n,at,!1),2&t){let t;s.qc(t=s.bc())&&(e.slides=t)}},hostBindings:function(t,e){1&t&&s.ac("visibilitychange",function(t){return e.onVisibilityChange(t)},!1,s.sc)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[s.zb([X,et,W,nt,st,rt,it]),s.yb],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(t,e){1&t&&(s.Tb(0,"div",0,1),s.ac("mouseover",function(){return e.startPausing()})("mouseleave",function(){return e.startPlayML()})("touchstart",function(){return e.startPausing()})("touchend",function(){return e.startPlayTE()}),s.zc(2,k,2,6,"div",2),s.zc(3,P,6,15,"ng-container",3),s.Sb()),2&t&&(s.gc("ngClass",s.oc(3,R,null==e.owlDOMData?null:e.owlDOMData.rtl,null==e.owlDOMData?null:e.owlDOMData.isLoaded,null==e.owlDOMData?null:e.owlDOMData.isResponsive,null==e.owlDOMData?null:e.owlDOMData.isMouseDragable,null==e.owlDOMData?null:e.owlDOMData.isGrab)),s.Ab(2),s.gc("ngIf",e.carouselLoaded),s.Ab(1),s.gc("ngIf",e.slides.toArray().length))},directives:function(){return[r.j,r.l,ut,r.k]},styles:[".owl-theme[_ngcontent-%COMP%] { display: block; }"],changeDetection:0}),t})(),ut=(()=>{class t{constructor(t,e,n,s,r){this.zone=t,this.el=e,this.renderer=n,this.carouselService=s,this.animateService=r,this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this._oneDragMove$=new i.a,this.preparePublicSlide=t=>{const e=Object.assign({},t);return delete e.tplRef,e},this.bindOneMouseTouchMove=t=>{this._oneMouseTouchMove(t)},this.bindOnDragMove=t=>{this._onDragMove(t)},this.bindOnDragEnd=t=>{this._onDragEnd(t)},this._oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()}}onMouseDown(t){this.owlDraggable.isMouseDragable&&this._onDragStart(t)}onTouchStart(t){if(t.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(t)}onTouchCancel(t){this._onDragEnd(t)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe(Object(d.a)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}_onDragStart(t){let e=null;3!==t.which&&(e=this._prepareDragging(t),this._drag.time=(new Date).getTime(),this._drag.target=t.target,this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this._pointer(t),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(t){const e=this._difference(this._drag.pointer,this._pointer(t));this.listenerATag&&this.listenerATag(),Math.abs(e.x)<3&&Math.abs(e.y)<3&&this._is("valid")||Math.abs(e.x)<3&&Math.abs(e.x)<Math.abs(e.y)&&this._is("valid")||(this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving=!0,this.blockClickAnchorInDragging(t),this.listenerMouseMove=this.renderer.listen(document,"mousemove",this.bindOnDragMove),this.listenerTouchMove=this.renderer.listen(document,"touchmove",this.bindOnDragMove),t.preventDefault(),this._enterDragging(),this._oneDragMove$.next(t))}blockClickAnchorInDragging(t){let e=t.target;for(;e&&!(e instanceof HTMLAnchorElement);)e=e.parentElement;e instanceof HTMLAnchorElement&&(this.listenerATag=this.renderer.listen(e,"click",()=>!1))}_onDragMove(t){let e;const n=this.carouselService.defineNewCoordsDrag(t,this._drag);!1!==n&&(e=n,t.preventDefault(),this._drag.stage.current=e,this._animate(e.x-this._drag.stage.start.x))}_animate(t){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${t}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(t){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(t),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(t){return this.carouselService.prepareDragging(t)}_finishDragging(t){this.carouselService.finishDragging(t,this._drag,this._oneClickHandler)}_pointer(t){return this.carouselService.pointer(t)}_difference(t,e){return this.carouselService.difference(t,e)}_is(t){return this.carouselService.is(t)}_enter(t){this.carouselService.enter(t)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(t){this.animateService.clear(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.z),s.Nb(s.l),s.Nb(s.D),s.Nb(W),s.Nb(st))},t.\u0275cmp=s.Hb({type:t,selectors:[["owl-stage"]],hostBindings:function(t,e){1&t&&s.ac("mousedown",function(t){return e.onMouseDown(t)})("touchstart",function(t){return e.onTouchStart(t)})("touchcancel",function(t){return e.onTouchCancel(t)})("dragstart",function(){return e.onDragStart()})("selectstart",function(){return e.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(s.Tb(0,"div"),s.Tb(1,"div",0),s.ac("transitionend",function(){return e.onTransitionEnd()}),s.zc(2,F,3,9,"ng-container",1),s.Sb(),s.Sb()),2&t&&(s.Ab(1),s.gc("ngStyle",s.oc(2,U,e.stageData.width+"px",e.stageData.transform,e.stageData.transition,e.stageData.paddingL?e.stageData.paddingL+"px":"",e.stageData.paddingR?e.stageData.paddingR+"px":"")),s.Ab(1),s.gc("ngForOf",e.slidesData))},directives:[r.m,r.k,r.j,r.l,r.n],encapsulation:2,data:{animation:[Object(x.j)("autoHeight",[Object(x.g)("nulled",Object(x.h)({height:0})),Object(x.g)("full",Object(x.h)({height:"*"})),Object(x.i)("full => nulled",[Object(x.e)("700ms 350ms")]),Object(x.i)("nulled => full",[Object(x.e)(350)])])]}}),t})(),ct=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[K,H,tt,q],imports:[[r.c]]}),t})()},c2HN:function(t,e,n){"use strict";function s(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return s})},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var s=n("HDdC"),r=n("DH7j"),i=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return u(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(i.a)(t=>e(...t)))}return u(t,null)}function u(t,e){return new s.a(n=>{const s=t.length;if(0===s)return void n.complete();const r=new Array(s);let i=0,o=0;for(let l=0;l<s;l++){const u=Object(a.a)(t[l]);let c=!1;n.add(u.subscribe({next:t=>{c||(c=!0,o++),r[l]=t},error:t=>n.error(t),complete:()=>{i++,i!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("lJxs"),r=n("Cfvw"),i=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,i)=>Object(r.a)(t(n,i)).pipe(Object(s.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends i.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new i.a(this),s=this.destination;s.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",function(){return un}),n.d(e,"b",function(){return iu}),n.d(e,"c",function(){return tu}),n.d(e,"d",function(){return Zl}),n.d(e,"e",function(){return Jl}),n.d(e,"f",function(){return Ju}),n.d(e,"g",function(){return $u}),n.d(e,"h",function(){return $a}),n.d(e,"i",function(){return yu}),n.d(e,"j",function(){return ma}),n.d(e,"k",function(){return lu}),n.d(e,"l",function(){return va}),n.d(e,"m",function(){return Os}),n.d(e,"n",function(){return Al}),n.d(e,"o",function(){return ai}),n.d(e,"p",function(){return _n}),n.d(e,"q",function(){return ln}),n.d(e,"r",function(){return Ci}),n.d(e,"s",function(){return La}),n.d(e,"t",function(){return Va}),n.d(e,"u",function(){return au}),n.d(e,"v",function(){return tl}),n.d(e,"w",function(){return Yu}),n.d(e,"x",function(){return Ja}),n.d(e,"y",function(){return Vu}),n.d(e,"z",function(){return vu}),n.d(e,"A",function(){return bn}),n.d(e,"B",function(){return ru}),n.d(e,"C",function(){return su}),n.d(e,"D",function(){return Sa}),n.d(e,"E",function(){return wa}),n.d(e,"F",function(){return ks}),n.d(e,"G",function(){return Oa}),n.d(e,"H",function(){return ys}),n.d(e,"I",function(){return wn}),n.d(e,"J",function(){return Xu}),n.d(e,"K",function(){return Ga}),n.d(e,"L",function(){return Tu}),n.d(e,"M",function(){return cn}),n.d(e,"N",function(){return Ea}),n.d(e,"O",function(){return nl}),n.d(e,"P",function(){return F}),n.d(e,"Q",function(){return Fu}),n.d(e,"R",function(){return O}),n.d(e,"S",function(){return Iu}),n.d(e,"T",function(){return v}),n.d(e,"U",function(){return jn}),n.d(e,"V",function(){return Mu}),n.d(e,"W",function(){return Ku}),n.d(e,"X",function(){return ju}),n.d(e,"Y",function(){return ou}),n.d(e,"Z",function(){return ui}),n.d(e,"ab",function(){return sa}),n.d(e,"bb",function(){return gs}),n.d(e,"cb",function(){return Zn}),n.d(e,"db",function(){return Hn}),n.d(e,"eb",function(){return $n}),n.d(e,"fb",function(){return Wn}),n.d(e,"gb",function(){return Yn}),n.d(e,"hb",function(){return qn}),n.d(e,"ib",function(){return Bn}),n.d(e,"jb",function(){return Jo}),n.d(e,"kb",function(){return Qu}),n.d(e,"lb",function(){return ta}),n.d(e,"mb",function(){return ea}),n.d(e,"nb",function(){return zn}),n.d(e,"ob",function(){return q}),n.d(e,"pb",function(){return Pi}),n.d(e,"qb",function(){return so}),n.d(e,"rb",function(){return no}),n.d(e,"sb",function(){return uu}),n.d(e,"tb",function(){return Zo}),n.d(e,"ub",function(){return jt}),n.d(e,"vb",function(){return y}),n.d(e,"wb",function(){return Un}),n.d(e,"xb",function(){return Ei}),n.d(e,"yb",function(){return Ot}),n.d(e,"zb",function(){return fa}),n.d(e,"Ab",function(){return cr}),n.d(e,"Bb",function(){return Ui}),n.d(e,"Cb",function(){return $i}),n.d(e,"Db",function(){return To}),n.d(e,"Eb",function(){return Bo}),n.d(e,"Fb",function(){return Eo}),n.d(e,"Gb",function(){return Yl}),n.d(e,"Hb",function(){return et}),n.d(e,"Ib",function(){return lt}),n.d(e,"Jb",function(){return C}),n.d(e,"Kb",function(){return E}),n.d(e,"Lb",function(){return it}),n.d(e,"Mb",function(){return ut}),n.d(e,"Nb",function(){return Bi}),n.d(e,"Ob",function(){return Ki}),n.d(e,"Pb",function(){return to}),n.d(e,"Qb",function(){return Ji}),n.d(e,"Rb",function(){return Zi}),n.d(e,"Sb",function(){return Qi}),n.d(e,"Tb",function(){return Gi}),n.d(e,"Ub",function(){return eo}),n.d(e,"Vb",function(){return rn}),n.d(e,"Wb",function(){return Xo}),n.d(e,"Xb",function(){return kn}),n.d(e,"Yb",function(){return on}),n.d(e,"Zb",function(){return Kl}),n.d(e,"ac",function(){return ro}),n.d(e,"bc",function(){return Bl}),n.d(e,"cc",function(){return ao}),n.d(e,"dc",function(){return xl}),n.d(e,"ec",function(){return Tl}),n.d(e,"fc",function(){return Dl}),n.d(e,"gc",function(){return Wi}),n.d(e,"hc",function(){return lo}),n.d(e,"ic",function(){return uo}),n.d(e,"jc",function(){return co}),n.d(e,"kc",function(){return yl}),n.d(e,"lc",function(){return _l}),n.d(e,"mc",function(){return bl}),n.d(e,"nc",function(){return vl}),n.d(e,"oc",function(){return wl}),n.d(e,"pc",function(){return Sl}),n.d(e,"qc",function(){return $l}),n.d(e,"rc",function(){return Yi}),n.d(e,"sc",function(){return Ts}),n.d(e,"tc",function(){return Qt}),n.d(e,"uc",function(){return _s}),n.d(e,"vc",function(){return bs}),n.d(e,"wc",function(){return ot}),n.d(e,"xc",function(){return Wo}),n.d(e,"yc",function(){return Oo}),n.d(e,"zc",function(){return qi}),n.d(e,"Ac",function(){return Ql}),n.d(e,"Bc",function(){return Uo}),n.d(e,"Cc",function(){return Ho}),n.d(e,"Dc",function(){return zo}),n.d(e,"Ec",function(){return $o}),n.d(e,"Fc",function(){return qo}),n.d(e,"Gc",function(){return Yo}),n.d(e,"Hc",function(){return ql});var s=n("XNiG"),r=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("7o/Q");function l(){return function(t){return t.lift(new u(t))}}class u{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new c(t,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class c extends a.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class h extends i.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.a,t.add(this.source.subscribe(new f(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.a.EMPTY)),t}refCount(){return l()(this)}}const d=(()=>{const t=h.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class f extends s.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function p(){return new s.a}function g(t){for(let e in t)if(t[e]===g)return e;throw Error("Could not find renamed property on target object.")}function m(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function y(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(y).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function _(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const b=g({__forward_ref__:g});function v(t){return t.__forward_ref__=v,t.toString=function(){return y(this())},t}function w(t){return S(t)?t():t}function S(t){return"function"==typeof t&&t.hasOwnProperty(b)&&t.__forward_ref__===v}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const O=C;function E(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function x(t){return T(t,k)||T(t,A)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function D(t){return t&&(t.hasOwnProperty(j)||t.hasOwnProperty(N))?t[j]:null}const k=g({\u0275prov:g}),j=g({\u0275inj:g}),A=g({ngInjectableDef:g}),N=g({ngInjectorDef:g});var P=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let R;function M(t){const e=R;return R=t,e}function I(t,e,n){const s=x(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&P.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${y(t)}]`)}function L(t){return{toString:t}.toString()}var V=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),F=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const U="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$="undefined"!=typeof global&&global,q=U||$||H||z,Y={},B=[],W=g({\u0275cmp:g}),X=g({\u0275dir:g}),G=g({\u0275pipe:g}),Q=g({\u0275mod:g}),K=g({\u0275loc:g}),Z=g({\u0275fac:g}),J=g({__NG_ELEMENT_ID__:g});let tt=0;function et(t){return L(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===V.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||B,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||B,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,i=t.pipes;return n.id+=tt++,n.inputs=at(t.inputs,e),n.outputs=at(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(nt):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(st):null,n})}function nt(t){return ct(t)||function(t){return t[X]||null}(t)}function st(t){return function(t){return t[G]||null}(t)}const rt={};function it(t){const e={type:t.type,bootstrap:t.bootstrap||B,declarations:t.declarations||B,imports:t.imports||B,exports:t.exports||B,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&L(()=>{rt[t.id]=t.type}),e}function ot(t,e){return L(()=>{const n=ht(t,!0);n.declarations=e.declarations||B,n.imports=e.imports||B,n.exports=e.exports||B})}function at(t,e){if(null==t)return Y;const n={};for(const s in t)if(t.hasOwnProperty(s)){let r=t[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,e&&(e[r]=i)}return n}const lt=et;function ut(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[W]||null}function ht(t,e){const n=t[Q]||null;if(!n&&!0===e)throw new Error(`Type ${y(t)} does not have '\u0275mod' property.`);return n}function dt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ft(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function gt(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function yt(t){return null!==t.template}function _t(t,e){return t.hasOwnProperty(Z)?t[Z]:null}class bt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function vt(t){return"string"==typeof t?t:null==t?"":String(t)}function wt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():vt(t)}function St(t,e){const n=e?" in "+e:"";throw new bt("201",`No provider for ${wt(t)} found${n}`)}class Ct{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ot(){return Et}function Et(t){return t.type.prototype.ngOnChanges&&(t.setInput=Tt),xt}function xt(){const t=Dt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Y)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Tt(t,e,n,s){const r=Dt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Y,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Ct(l&&l.currentValue,e,o===Y),t[s]=e}function Dt(t){return t.__ngSimpleChanges__||null}Ot.ngInherit=!0;let kt=void 0;function jt(t){kt=t}function At(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function Nt(t){return!!t.listen}const Pt={createRenderer:(t,e)=>At()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Mt(t,e){return Rt(e[t])}function It(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Vt(t,e){return t[e]}function Ft(t,e){const n=e[t];return dt(n)?n:n[0]}function Ut(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ht(t){return 4==(4&t[2])}function zt(t){return 128==(128&t[2])}function $t(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function Yt(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const Bt={lFrame:me(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wt(){return Bt.bindingsEnabled}function Xt(){return Bt.lFrame.lView}function Gt(){return Bt.lFrame.tView}function Qt(t){Bt.lFrame.contextLView=t}function Kt(){let t=Zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Zt(){return Bt.lFrame.currentTNode}function Jt(t,e){const n=Bt.lFrame;n.currentTNode=t,n.isParent=e}function te(){return Bt.lFrame.isParent}function ee(){Bt.lFrame.isParent=!1}function ne(){return Bt.isInCheckNoChangesMode}function se(t){Bt.isInCheckNoChangesMode=t}function re(){const t=Bt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ie(){return Bt.lFrame.bindingIndex}function oe(){return Bt.lFrame.bindingIndex++}function ae(t){const e=Bt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function le(t,e){const n=Bt.lFrame;n.bindingIndex=n.bindingRootIndex=t,ue(e)}function ue(t){Bt.lFrame.currentDirectiveIndex=t}function ce(){return Bt.lFrame.currentQueryIndex}function he(t){Bt.lFrame.currentQueryIndex=t}function de(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function fe(t,e,n){if(n&P.SkipSelf){let s=e,r=t;for(;s=s.parent,!(null!==s||n&P.Host||(s=de(r),null===s)||(r=r[15],10&s.type)););if(null===s)return!1;e=s,t=r}const s=Bt.lFrame=ge();return s.currentTNode=e,s.lView=t,!0}function pe(t){const e=ge(),n=t[1];Bt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ge(){const t=Bt.lFrame,e=null===t?null:t.child;return null===e?me(t):e}function me(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ye(){const t=Bt.lFrame;return Bt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const _e=ye;function be(){const t=ye();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ve(){return Bt.lFrame.selectedIndex}function we(t){Bt.lFrame.selectedIndex=t}function Se(){const t=Bt.lFrame;return Lt(t.tView,t.selectedIndex)}function Ce(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),i&&(t.viewHooks||(t.viewHooks=[])).push(-n,i),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Oe(t,e,n){Te(t,e,3,n)}function Ee(t,e,n,s){(3&t[2])===n&&Te(t,e,n,s)}function xe(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Te(t,e,n,s){const r=null!=s?s:-1,i=e.length-1;let o=0;for(let a=void 0!==s?65535&t[18]:0;a<i;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=s&&o>=s)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(De(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function De(t,e,n,s){const r=n[s]<0,i=n[s+1],o=t[r?-n[s]:n[s]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}class ke{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function je(t,e,n){const s=Nt(t);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];Ne(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ae(t){return 3===t||4===t||6===t}function Ne(t){return 64===t.charCodeAt(0)}function Pe(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const r=e[s];"number"==typeof r?n=r:0===n||Re(t,n,r,null,-1===n||2===n?e[++s]:null)}}return t}function Re(t,e,n,s,r){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==r&&(t[i+1]=r));if(s===t[i+1])return void(t[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==s&&t.splice(i++,0,s),null!==r&&t.splice(i++,0,r)}function Me(t){return-1!==t}function Ie(t){return 32767&t}function Le(t,e){let n=t>>16,s=e;for(;n>0;)s=s[15],n--;return s}let Ve=!0;function Fe(t){const e=Ve;return Ve=t,e}let Ue=0;function He(t,e){const n=$e(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,ze(s.data,t),ze(e,null),ze(s.blueprint,null));const r=qe(t,e),i=t.injectorIndex;if(Me(r)){const t=Ie(r),n=Le(r,e),s=n[1].data;for(let r=0;r<8;r++)e[i+r]=n[t+r]|s[t+r]}return e[i+8]=r,i}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function $e(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,s=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(s=2===e?t.declTNode:1===e?r[6]:null,null===s)return-1;if(n++,r=r[15],-1!==s.injectorIndex)return s.injectorIndex|n<<16}return-1}function Ye(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(s=n[J]),null==s&&(s=n[J]=Ue++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=e.data;128&r?o?a?l[t+7]|=i:l[t+6]|=i:a?l[t+5]|=i:l[t+4]|=i:o?a?l[t+3]|=i:l[t+2]|=i:a?l[t+1]|=i:l[t]|=i}(t,e,n)}function Be(t,e,n){if(n&P.Optional)return t;St(e,"NodeInjector")}function We(t,e,n,s){if(n&P.Optional&&void 0===s&&(s=null),0==(n&(P.Self|P.Host))){const r=t[9],i=M(void 0);try{return r?r.get(e,s,n&P.Optional):I(e,s,n&P.Optional)}finally{M(i)}}return Be(s,e,n)}function Xe(t,e,n,s=P.Default,r){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Qe:e}(n);if("function"==typeof i){if(!fe(e,t,s))return s&P.Host?Be(r,n,s):We(e,n,s,r);try{const t=i();if(null!=t||s&P.Optional)return t;St(n)}finally{_e()}}else if("number"==typeof i){let r=null,o=$e(t,e),a=-1,l=s&P.Host?e[16][6]:null;for((-1===o||s&P.SkipSelf)&&(a=-1===o?qe(t,e):e[o+8],-1!==a&&en(s,!1)?(r=e[1],o=Ie(a),e=Le(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(i,o,t.data)){const t=Ke(o,e,n,r,s,l);if(t!==Ge)return t}a=e[o+8],-1!==a&&en(s,e[1].data[o+8]===l)&&tn(i,o,e)?(r=t,o=Ie(a),e=Le(a,e)):o=-1}}}return We(e,n,s,r)}const Ge={};function Qe(){return new nn(Kt(),Xt())}function Ke(t,e,n,s,r,i){const o=e[1],a=o.data[t+8],l=Ze(a,o,n,null==s?gt(a)&&Ve:s!=o&&0!=(3&a.type),r&P.Host&&i===a);return null!==l?Je(e,o,l,a):Ge}function Ze(t,e,n,s,r){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,u=i>>20,c=r?a+u:t.directiveEnd;for(let h=s?a:a+u;h<c;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(r){const t=o[l];if(t&&yt(t)&&t.type===n)return l}return null}function Je(t,e,n,s){let r=t[n];const i=e.data;if(r instanceof ke){const o=r;o.resolving&&function(t,e){throw new bt("200","Circular dependency in DI detected for "+t)}(wt(i[n]));const a=Fe(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;fe(t,s,P.Default);try{r=t[n]=o.factory(void 0,i,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=e.type.prototype;if(s){const s=Et(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&M(l),Fe(a),o.resolving=!1,_e()}}return r}function tn(t,e,n){const s=64&t,r=32&t;let i;return i=128&t?s?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:s?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(i&1<<t)}function en(t,e){return!(t&P.Self||t&P.Host&&e)}class nn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Xe(this._tNode,this._lView,t,void 0,e)}}function sn(t){const e=t;if(S(t))return()=>{const t=sn(w(e));return t?t():null};let n=_t(e);if(null===n){const t=D(e);n=t&&t.factory}return n||null}function rn(t){return L(()=>{const e=t.prototype.constructor,n=e[Z]||sn(e),s=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==s;){const t=r[Z]||sn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const r=n[s];if(Ae(r))break;if(0===r)s+=2;else if("number"==typeof r)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(r===e)return n[s+1];s+=2}}}return null}(Kt(),t)}function an(t,e,n){return L(()=>{const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return s.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,s){const r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ln{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=C({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const un=new ln("AnalyzeForEntryComponents"),cn=Function;function hn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let s=t[n];Array.isArray(s)?(e===t&&(e=t.slice(0,n)),hn(s,e)):e!==t&&e.push(s)}return e}function dn(t,e){t.forEach(t=>Array.isArray(t)?dn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function pn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e,n){let s=yn(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let r=t.length;if(r==e)t.push(n,s);else if(1===r)t.push(s,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function mn(t,e){const n=yn(t,e);if(n>=0)return t[1|n]}function yn(t,e){return function(t,e,n){let s=0,r=t.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=t[n<<1];if(e===i)return n<<1;i>e?r=n:s=n+1}return~(r<<1)}(t,e)}const _n=an("Inject",t=>({token:t})),bn=an("Optional"),vn=an("Self"),wn=an("SkipSelf"),Sn=an("Host"),Cn={},On=/\n/gm,En=g({provide:String,useValue:g});let xn=void 0;function Tn(t){const e=xn;return xn=t,e}function Dn(t,e=P.Default){if(void 0===xn)throw new Error("inject() must be called from an injection context");return null===xn?I(t,void 0,e):xn.get(t,e&P.Optional?null:void 0,e)}function kn(t,e=P.Default){return(R||Dn)(w(t),e)}const jn=kn;function An(t){const e=[];for(let n=0;n<t.length;n++){const s=w(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=P.Default;for(let e=0;e<s.length;e++){const r=s[e];r instanceof bn||"Optional"===r.ngMetadataName||r===bn?n|=P.Optional:r instanceof wn||"SkipSelf"===r.ngMetadataName||r===wn?n|=P.SkipSelf:r instanceof vn||"Self"===r.ngMetadataName||r===vn?n|=P.Self:r instanceof Sn||"Host"===r.ngMetadataName||r===Sn?n|=P.Host:t=r instanceof _n||r===_n?r.token:r}e.push(kn(t,n))}else e.push(kn(s))}return e}let Nn;function Pn(t){var e;return(null===(e=function(){if(void 0===Nn&&(Nn=null,q.trustedTypes))try{Nn=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Nn}())||void 0===e?void 0:e.createHTML(t))||t}class Rn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Mn extends Rn{getTypeName(){return"HTML"}}class In extends Rn{getTypeName(){return"Style"}}class Ln extends Rn{getTypeName(){return"Script"}}class Vn extends Rn{getTypeName(){return"URL"}}class Fn extends Rn{getTypeName(){return"ResourceURL"}}function Un(t){return t instanceof Rn?t.changingThisBreaksApplicationSecurity:t}function Hn(t,e){const n=zn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function zn(t){return t instanceof Rn&&t.getTypeName()||null}function $n(t){return new Mn(t)}function qn(t){return new In(t)}function Yn(t){return new Ln(t)}function Bn(t){return new Vn(t)}function Wn(t){return new Fn(t)}class Xn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Pn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Gn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Pn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Pn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Qn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Kn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Zn(t){return(t=String(t)).match(Qn)||t.match(Kn)?t:"unsafe:"+t}function Jn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ts(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const es=Jn("area,br,col,hr,img,wbr"),ns=Jn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ss=Jn("rp,rt"),rs=ts(ss,ns),is=ts(es,ts(ns,Jn("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")),ts(ss,Jn("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")),rs),os=Jn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),as=Jn("srcset"),ls=ts(os,as,Jn("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"),Jn("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")),us=Jn("script,style,template");class cs{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!is.hasOwnProperty(e))return this.sanitizedSomething=!0,!us.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,i=e.toLowerCase();if(!ls.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;os[i]&&(o=Zn(o)),as[i]&&(s=o,o=(s=String(s)).split(",").map(t=>Zn(t.trim())).join(", ")),this.buf.push(" ",e,'="',fs(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();is.hasOwnProperty(e)&&!es.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(fs(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&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 e}}const hs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ds=/([^\#-~ |!])/g;function fs(t){return t.replace(/&/g,"&amp;").replace(hs,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ds,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ps;function gs(t,e){let n=null;try{ps=ps||function(t){const e=new Gn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Pn(""),"text/html")}catch(t){return!1}}()?new Xn(e):e}(t);let s=e?String(e):"";n=ps.getInertBodyElement(s);let r=5,i=s;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,s=i,i=n.innerHTML,n=ps.getInertBodyElement(s)}while(s!==i);return(new cs).sanitizeChildren(ms(n)||n)}finally{if(n){const t=ms(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ms(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ys=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function _s(t){const e=vs();return e?e.sanitize(ys.HTML,t)||"":Hn(t,"HTML")?Un(t):gs(At(),vt(t))}function bs(t){const e=vs();return e?e.sanitize(ys.URL,t)||"":Hn(t,"URL")?Un(t):Zn(vt(t))}function vs(){const t=Xt();return t&&t[12]}function ws(t){return t.ngDebugContext}function Ss(t){return t.ngOriginalError}function Cs(t,...e){t.error(...e)}class Os{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||Cs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ws(t)?ws(t):this._findContext(Ss(t)):null}_findOriginalError(t){let e=Ss(t);for(;e&&Ss(e);)e=Ss(e);return e}}function Es(t,e){t.__ngContext__=e}const xs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function Ts(t){return{name:"document",target:t.ownerDocument}}function Ds(t){return t instanceof Function?t():t}var ks=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function js(t,e){return(void 0)(t,e)}function As(t){const e=t[3];return ft(e)?e[3]:e}function Ns(t){return Rs(t[13])}function Ps(t){return Rs(t[4])}function Rs(t){for(;null!==t&&!ft(t);)t=t[4];return t}function Ms(t,e,n,s,r){if(null!=s){let i,o=!1;ft(s)?i=s:dt(s)&&(o=!0,s=s[0]);const a=Rt(s);0===t&&null!==n?null==r?zs(e,n,a):Hs(e,n,a,r||null,!0):1===t&&null!==n?Hs(e,n,a,r||null,!0):2===t?function(t,e,n){const s=qs(t,e);s&&function(t,e,n,s){Nt(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,s,r){const i=n[7];i!==Rt(n)&&Ms(e,t,s,i,r);for(let o=10;o<n.length;o++){const r=n[o];Gs(r[1],r,t,e,s,i)}}(e,t,i,n,r)}}function Is(t,e,n){return Nt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ls(t,e){const n=t[9],s=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Yt(r,-1)),n.splice(s,1)}function Vs(t,e){if(t.length<=10)return;const n=10+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&Ls(i,s),e>0&&(t[n-1][4]=s[4]);const o=pn(t,10+e);Gs(s[1],r=s,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var r;return s}function Fs(t,e){if(!(256&e[2])){const n=e[11];Nt(n)&&n.destroyNode&&Gs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Us(t[1],t);for(;e;){let n=null;if(dt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)dt(e)&&Us(e[1],e),e=e[3];null===e&&(e=t),dt(e)&&Us(e[1],e),n=e&&e[4]}e=n}}(e)}}function Us(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof ke)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup,s=e[7];let r=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const t=n[i+1],o="function"==typeof t?t(e):Rt(e[t]),a=s[r=n[i+2]],l=n[i+3];"boolean"==typeof l?o.removeEventListener(n[i],a,l):l>=0?s[r=l]():s[r=-l].unsubscribe(),i+=2}else{const t=s[r=n[i+1]];n[i].call(t)}if(null!==s){for(let t=r+1;t<s.length;t++)(0,s[t])();e[7]=null}}(t,e),1===e[1].type&&Nt(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ft(e[3])){n!==e[3]&&Ls(n,e);const s=e[19];null!==s&&s.detachView(t)}}}function Hs(t,e,n,s,r){Nt(t)?t.insertBefore(e,n,s,r):e.insertBefore(n,s,r)}function zs(t,e,n){Nt(t)?t.appendChild(e,n):e.appendChild(n)}function $s(t,e,n,s,r){null!==s?Hs(t,e,n,s,r):zs(t,e,n)}function qs(t,e){return Nt(t)?t.parentNode(e):e.parentNode}function Ys(t,e,n,s){const r=function(t,e,n){return function(t,e,n){let s=e;for(;null!==s&&40&s.type;)s=(e=s).parent;if(null===s)return n[0];if(2&s.flags){const e=t.data[s.directiveStart].encapsulation;if(e===F.None||e===F.Emulated)return null}return It(s,n)}(t,e.parent,n)}(t,s,e),i=e[11],o=function(t,e,n){return function(t,e,n){return 40&t.type?It(t,n):null}(t,0,n)}(s.parent||e[6],0,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)$s(i,r,n[a],o,!1);else $s(i,r,n,o,!1)}function Bs(t,e){if(null!==e){const n=e.type;if(3&n)return It(e,t);if(4&n)return Ws(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Bs(t,n);{const n=t[e.index];return ft(n)?Ws(-1,n):Rt(n)}}if(32&n)return js(e,t)()||Rt(t[e.index]);{const n=t[16],s=n[6],r=As(n),i=s.projection[e.projection];return null!=i?Bs(r,i):Bs(t,e.next)}}return null}function Ws(t,e){const n=10+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return Bs(t,s)}return e[7]}function Xs(t,e,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;if(o&&0===e&&(a&&Es(Rt(a),s),n.flags|=4),64!=(64&n.flags))if(8&l)Xs(t,e,n.child,s,r,i,!1),Ms(e,t,r,a,i);else if(32&l){const o=js(n,s);let l;for(;l=o();)Ms(e,t,r,l,i);Ms(e,t,r,a,i)}else 16&l?Qs(t,e,s,n,r,i):Ms(e,t,r,a,i);n=o?n.projectionNext:n.next}}function Gs(t,e,n,s,r,i){Xs(n,s,t.firstChild,e,r,i,!1)}function Qs(t,e,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ms(e,t,r,a[l],i);else Xs(t,e,a,o[3],r,i,!0)}function Ks(t,e,n){Nt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Zs(t,e,n){Nt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Js(t,e,n){let s=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===s||t.charCodeAt(r+n)<=32)return r}n=r+1}}function tr(t,e,n){let s=0;for(;s<t.length;){let r=t[s++];if(n&&"class"===r){if(r=t[s],-1!==Js(r.toLowerCase(),e,0))return!0}else if(1===r){for(;s<t.length&&"string"==typeof(r=t[s++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function er(t){return 4===t.type&&"ng-template"!==t.value}function nr(t,e,n){return e===(4!==t.type||n?t.value:"ng-template")}function sr(t,e,n){let s=4;const r=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(Ae(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!nr(t,l,n)||""===l&&1===e.length){if(rr(s))return!1;o=!0}}else{const u=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!tr(t.attrs,u,n)){if(rr(s))return!1;o=!0}continue}const c=ir(8&s?"class":l,r,er(t),n);if(-1===c){if(rr(s))return!1;o=!0;continue}if(""!==u){let t;t=c>i?"":r[c+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Js(e,u,0)||2&s&&u!==t){if(rr(s))return!1;o=!0}}}}else{if(!o&&!rr(s)&&!rr(l))return!1;if(o&&rr(l))continue;o=!1,s=l|1&s}}return rr(s)||o}function rr(t){return 0==(1&t)}function ir(t,e,n,s){if(null===e)return-1;let r=0;if(s||!n){let n=!1;for(;r<e.length;){const s=e[r];if(s===t)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function or(t,e,n=!1){for(let s=0;s<e.length;s++)if(sr(t,e[s],n))return!0;return!1}function ar(t,e){return t?":not("+e.trim()+")":e}function lr(t){let e=t[0],n=1,s=2,r="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||rr(o)||(e+=ar(i,r),r=""),s=o,i=i||!rr(s);n++}return""!==r&&(e+=ar(i,r)),e}const ur={};function cr(t){hr(Gt(),Xt(),ve()+t,ne())}function hr(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Oe(e,s,n)}else{const s=t.preOrderHooks;null!==s&&Ee(e,s,0,n)}we(n)}function dr(t,e){return t<<17|e<<2}function fr(t){return t>>17&32767}function pr(t){return 2|t}function gr(t){return(131068&t)>>2}function mr(t,e){return-131069&t|e<<2}function yr(t){return 1|t}function _r(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=t.data[i];he(r),n.contentQueries(2,e[i],i)}}}function br(t,e,n,s,r,i,o,a,l,u){const c=e.blueprint.slice();return c[0]=r,c[2]=140|s,qt(c),c[3]=c[15]=t,c[8]=n,c[10]=o||t&&t[10],c[11]=a||t&&t[11],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=i,c[16]=2==e.type?t[16]:c,c}function vr(t,e,n,s,r){let i=t.data[e];if(null===i)i=function(t,e,n,s,r){const i=Zt(),o=te(),a=t.data[e]=function(t,e,n,s,r,i){return{type:n,index:s,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?i:i&&i.parent,n,e,s,r);return null===t.firstChild&&(t.firstChild=a),null!==i&&(o?null==i.child&&null!==a.parent&&(i.child=a):null===i.next&&(i.next=a)),a}(t,e,n,s,r),Bt.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=s,i.attrs=r;const t=function(){const t=Bt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();i.injectorIndex=null===t?-1:t.injectorIndex}return Jt(i,!0),i}function wr(t,e,n,s){if(0===n)return-1;const r=e.length;for(let i=0;i<n;i++)e.push(s),t.blueprint.push(s),t.data.push(null);return r}function Sr(t,e,n){pe(e);try{const s=t.viewQuery;null!==s&&Jr(1,s,n);const r=t.template;null!==r&&Er(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&_r(t,e),t.staticViewQueries&&Jr(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)Xr(t,e[n])}(e,i)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,be()}}function Cr(t,e,n,s){const r=e[2];if(256==(256&r))return;pe(e);const i=ne();try{qt(e),Bt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Er(t,e,n,2,s);const o=3==(3&r);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&Oe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Ee(e,n,0,null),xe(e,0)}if(function(t){for(let e=Ns(t);null!==e;e=Ps(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&Yt(s,1),n[2]|=1024}}}(e),function(t){for(let e=Ns(t);null!==e;e=Ps(e))for(let t=10;t<e.length;t++){const n=e[t],s=n[1];zt(n)&&Cr(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&_r(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&Oe(e,n)}else{const n=t.contentHooks;null!==n&&Ee(e,n,1),xe(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const s=n[t];if(s<0)we(~s);else{const r=s,i=n[++t],o=n[++t];le(i,r),o(2,e[r])}}}finally{we(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Br(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Jr(2,l,s),!i)if(o){const n=t.viewCheckHooks;null!==n&&Oe(e,n)}else{const n=t.viewHooks;null!==n&&Ee(e,n,2),xe(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Yt(e[3],-1))}finally{be()}}function Or(t,e,n,s){const r=e[10],i=!ne(),o=Ht(e);try{i&&!o&&r.begin&&r.begin(),o&&Sr(t,e,s),Cr(t,e,n,s)}finally{i&&!o&&r.end&&r.end()}}function Er(t,e,n,s,r){const i=ve();try{we(-1),2&s&&e.length>20&&hr(t,e,20,ne()),n(s,r)}finally{we(i)}}function xr(t,e,n){if(pt(e)){const s=e.directiveEnd;for(let r=e.directiveStart;r<s;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function Tr(t,e,n){Wt()&&(function(t,e,n,s){const r=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||He(n,e),Es(s,e);const o=n.initialInputs;for(let a=r;a<i;a++){const s=t.data[a],i=yt(s);i&&Hr(e,n,s);const l=Je(e,t,a,n);Es(l,e),null!==o&&$r(0,a-r,l,s,0,o),i&&(Ft(n.index,e)[8]=l)}}(t,e,n,It(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,r=n.directiveEnd,i=n.index,o=Bt.lFrame.currentDirectiveIndex;try{we(i);for(let n=s;n<r;n++){const s=t.data[n],r=e[n];ue(n),null===s.hostBindings&&0===s.hostVars&&null===s.hostAttrs||Ir(s,r)}}finally{we(-1),ue(o)}}(t,e,n))}function Dr(t,e,n=It){const s=e.localNames;if(null!==s){let r=e.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function kr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=jr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function jr(t,e,n,s,r,i,o,a,l,u){const c=20+s,h=c+r,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:ur);return n}(c,h),f="function"==typeof u?u():u;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Ar(t,e,n,s){const r=ei(e);null===n?r.push(s):(r.push(n),t.firstCreatePass&&ni(t).push(s,r.length-1))}function Nr(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const r=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,r):n[s]=[e,r]}return n}function Pr(t,e,n,s,r,i,o,a){const l=It(e,n);let u,c=e.inputs;var h;!a&&null!=c&&(u=c[s])?(ri(t,n,u,s,r),gt(e)&&function(t,e){const n=Ft(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,e.value||"",s):r,Nt(i)?i.setProperty(l,s,r):Ne(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}function Rr(t,e,n,s){let r=!1;if(Wt()){const i=function(t,e,n){const s=t.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];or(n,o.selectors,!1)&&(r||(r=[]),Ye(He(n,e),t,o.type),yt(o)?(Lr(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===s?null:{"":-1};if(null!==i){r=!0,Fr(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}let s=!1,a=!1,l=wr(t,e,i.length,null);for(let r=0;r<i.length;r++){const u=i[r];n.mergedAttrs=Pe(n.mergedAttrs,u.hostAttrs),Ur(t,n,e,l,u),Vr(l,u,o),null!==u.contentQueries&&(n.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=128);const c=u.type.prototype;!s&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),s=!0),a||!c.ngOnChanges&&!c.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,s=t.data,r=e.attrs,i=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,u=null===r||er(e)?null:qr(n,r);i.push(u),o=Nr(n,l,o),a=Nr(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new bt("301",`Export of name '${e[t+1]}' not found!`);s.push(e[t],r)}}}(n,s,o)}return n.mergedAttrs=Pe(n.mergedAttrs,n.attrs),r}function Mr(t,e,n,s,r,i){const o=i.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const i=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(s,r,o)}}function Ir(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Lr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vr(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;yt(e)&&(n[""]=t)}}function Fr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ur(t,e,n,s,r){t.data[s]=r;const i=r.factory||(r.factory=_t(r.type)),o=new ke(i,yt(r),null);t.blueprint[s]=o,n[s]=o,Mr(t,e,0,s,wr(t,n,r.hostVars,ur),r)}function Hr(t,e,n){const s=It(e,t),r=kr(n),i=t[10],o=Gr(t,br(t,r,null,n.onPush?64:16,s,e,i,i.createRenderer(s,n),null,null));t[e.index]=o}function zr(t,e,n,s,r,i){const o=It(t,e);!function(t,e,n,s,r,i,o){if(null==i)Nt(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?vt(i):o(i,s||"",r);Nt(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,i,t.value,n,s,r)}function $r(t,e,n,s,r,i){const o=i[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const r=o[e++],i=o[e++],a=o[e++];null!==t?s.setInput(n,a,r,i):n[i]=a}}}function qr(t,e){let n=null,s=0;for(;s<e.length;){const r=e[s];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[s+1])),s+=2}else s+=2;else s+=4}return n}function Yr(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function Br(t,e){const n=Ft(e,t);if(zt(n)){const t=n[1];80&n[2]?Cr(t,n,t.template,n[8]):n[5]>0&&Wr(n)}}function Wr(t){for(let n=Ns(t);null!==n;n=Ps(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Cr(t,e,t.template,e[8])}else e[5]>0&&Wr(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const s=Ft(e[n],t);zt(s)&&s[5]>0&&Wr(s)}}function Xr(t,e){const n=Ft(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Sr(s,n,n[8])}function Gr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Qr(t){for(;t;){t[2]|=64;const e=As(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Kr(t,e,n){const s=e[10];s.begin&&s.begin();try{Cr(t,e,t.template,n)}catch(r){throw si(e,r),r}finally{s.end&&s.end()}}function Zr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Ut(n),r=s[1];Or(r,s,r.template,n)}}(t[8])}function Jr(t,e,n){he(0),e(t,n)}const ti=(()=>Promise.resolve(null))();function ei(t){return t[7]||(t[7]=[])}function ni(t){return t.cleanup||(t.cleanup=[])}function si(t,e){const n=t[9],s=n?n.get(Os,null):null;s&&s.handleError(e)}function ri(t,e,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=e[o],u=t.data[o];null!==u.setInput?u.setInput(l,r,s,a):l[a]=r}}function ii(t,e,n){const s=Mt(e,t);!function(t,e,n){Nt(t)?t.setValue(e,n):e.textContent=n}(t[11],s,n)}function oi(t,e,n){let s=n?t.styles:null,r=n?t.classes:null,i=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?r=_(r,t):2==i&&(s=_(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=r:t.classesWithoutHost=r}const ai=new ln("INJECTOR",-1);class li{get(t,e=Cn){if(e===Cn){const e=new Error(`NullInjectorError: No provider for ${y(t)}!`);throw e.name="NullInjectorError",e}return e}}const ui=new ln("Set Injector scope."),ci={},hi={},di=[];let fi=void 0;function pi(){return void 0===fi&&(fi=new li),fi}function gi(t,e=null,n=null,s){return new mi(t,n,e||pi(),s)}class mi{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&dn(e,n=>this.processProvider(n,t,e)),dn([t],t=>this.processInjectorType(t,[],r)),this.records.set(ai,bi(void 0,this));const i=this.records.get(ui);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof t?null:y(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,e=Cn,n=P.Default){this.assertNotDestroyed();const s=Tn(this);try{if(!(n&P.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ln)&&x(t);e=n&&this.injectableDefInScope(n)?bi(yi(t),ci):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&P.Self?pi():this.parent).get(t,e=n&P.Optional&&e===Cn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(y(t)),s)throw i;return function(t,e,n,s){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=y(e);if(Array.isArray(e))r=e.map(y).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):y(s)))}r=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${t.replace(On,"\n  ")}`}("\n"+t.message,r,n,s),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{Tn(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(y(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=w(t)))return!1;let s=D(t);const r=null==s&&t.ngModule||void 0,i=void 0===r?t:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=D(r)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(i);try{dn(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];dn(s,t=>this.processProvider(t,n,s||di))}}this.injectorDefTypes.add(i),this.records.set(i,bi(s.factory,ci));const a=s.providers;if(null!=a&&!o){const e=t;dn(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let s=wi(t=w(t))?t:w(t&&t.provide);const r=function(t,e,n){return vi(t)?bi(void 0,t.useValue):bi(_i(t),ci)}(t);if(wi(t)||!0!==t.multi)this.records.get(s);else{let e=this.records.get(s);e||(e=bi(void 0,ci,!0),e.factory=()=>An(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,r)}hydrate(t,e){var n;return e.value===ci&&(e.value=hi,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function yi(t){const e=x(t),n=null!==e?e.factory:_t(t);if(null!==n)return n;const s=D(t);if(null!==s)return s.factory;if(t instanceof ln)throw new Error(`Token ${y(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let s=0;s<t;s++)n.push("?");return n}(e);throw new Error(`Can't resolve all parameters for ${y(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[k]||t[A]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function _i(t,e,n){let s=void 0;if(wi(t)){const e=w(t);return _t(e)||yi(e)}if(vi(t))s=()=>w(t.useValue);else if((r=t)&&r.useFactory)s=()=>t.useFactory(...An(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>kn(w(t.useExisting));else{const e=w(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return _t(e)||yi(e);s=()=>new e(...An(t.deps))}var r;return s}function bi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function vi(t){return null!==t&&"object"==typeof t&&En in t}function wi(t){return"function"==typeof t}const Si=function(t,e,n){return function(t,e=null,n=null,s){const r=gi(t,e,n,s);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Ci=(()=>{class t{static create(t,e){return Array.isArray(t)?Si(t,e,""):Si(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Cn,t.NULL=new li,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>kn(ai)}),t.__NG_ELEMENT_ID__=-1,t})();function Oi(t,e){Ce(Ut(t)[1],Kt())}function Ei(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let r=void 0;if(yt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){s.push(r);const e=t;e.inputs=xi(t.inputs),e.declaredInputs=xi(t.declaredInputs),e.outputs=xi(t.outputs);const n=r.hostBindings;n&&ki(t,n);const i=r.viewQuery,o=r.contentQueries;if(i&&Ti(t,i),o&&Di(t,o),m(t.inputs,r.inputs),m(t.declaredInputs,r.declaredInputs),m(t.outputs,r.outputs),yt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let s=0;s<e.length;s++){const r=e[s];r&&r.ngInherit&&r(t),r===Ei&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const r=t[s];r.hostVars=e+=r.hostVars,r.hostAttrs=Pe(r.hostAttrs,n=Pe(n,r.hostAttrs))}}(s)}function xi(t){return t===Y?{}:t===B?[]:t}function Ti(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function Di(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,r)=>{e(t,s,r),n(t,s,r)}:e}function ki(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}let ji=null;function Ai(){if(!ji){const t=q.Symbol;if(t&&t.iterator)ji=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(ji=n)}}}return ji}class Ni{constructor(t){this.wrapped=t}static wrap(t){return new Ni(t)}static unwrap(t){return Ni.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ni}}function Pi(t){return!!Ri(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ai()in t)}function Ri(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Mi(t,e,n){return t[e]=n}function Ii(t,e){return t[e]}function Li(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Vi(t,e,n,s){const r=Li(t,e,n);return Li(t,e+1,s)||r}function Fi(t,e,n,s,r,i){const o=Vi(t,e,n,s);return Vi(t,e+2,r,i)||o}function Ui(t,e,n,s){const r=Xt();return Li(r,oe(),e)&&(Gt(),zr(Se(),r,t,e,n,s)),Ui}function Hi(t,e,n,s){return Li(t,oe(),n)?e+vt(n)+s:ur}function zi(t,e,n,s,r,i){const o=Vi(t,ie(),n,r);return ae(2),o?e+vt(n)+s+vt(r)+i:ur}function $i(t,e,n,s,r,i){const o=Xt(),a=Hi(o,e,n,s);return a!==ur&&zr(Se(),o,t,a,r,i),$i}function qi(t,e,n,s,r,i,o,a){const l=Xt(),u=Gt(),c=t+20,h=u.firstCreatePass?function(t,e,n,s,r,i,o,a,l){const u=e.consts,c=vr(e,t,4,o||null,$t(u,a));Rr(e,n,c,$t(u,l)),Ce(e,c);const h=c.tViews=jr(2,c,s,r,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,n,s,r,i,o):u.data[c];Jt(h,!1);const d=l[11].createComment("");Ys(u,l,d,h),Es(d,l),Gr(l,l[c]=Yr(d,l,d,h)),mt(h)&&Tr(u,l,h),null!=o&&Dr(l,h,a)}function Yi(t){return Vt(Bt.lFrame.contextLView,20+t)}function Bi(t,e=P.Default){const n=Xt();return null===n?kn(t,e):Xe(Kt(),n,w(t),e)}function Wi(t,e,n){const s=Xt();return Li(s,oe(),e)&&Pr(Gt(),Se(),s,t,e,s[11],n,!1),Wi}function Xi(t,e,n,s,r){const i=r?"class":"style";ri(t,n,e.inputs[i],i,s)}function Gi(t,e,n,s){const r=Xt(),i=Gt(),o=20+t,a=r[11],l=r[o]=Is(a,e,Bt.lFrame.currentNamespace),u=i.firstCreatePass?function(t,e,n,s,r,i,o){const a=e.consts,l=vr(e,t,2,r,$t(a,i));return Rr(e,n,l,$t(a,o)),null!==l.attrs&&oi(l,l.attrs,!1),null!==l.mergedAttrs&&oi(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,i,r,0,e,n,s):i.data[o];Jt(u,!0);const c=u.mergedAttrs;null!==c&&je(a,l,c);const h=u.classes;null!==h&&Zs(a,l,h);const d=u.styles;null!==d&&Ks(a,l,d),64!=(64&u.flags)&&Ys(i,r,l,u),0===Bt.lFrame.elementDepthCount&&Es(l,r),Bt.lFrame.elementDepthCount++,mt(u)&&(Tr(i,r,u),xr(i,u,r)),null!==s&&Dr(r,u)}function Qi(){let t=Kt();te()?ee():(t=t.parent,Jt(t,!1));const e=t;Bt.lFrame.elementDepthCount--;const n=Gt();n.firstCreatePass&&(Ce(n,t),pt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Xi(n,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Xi(n,e,Xt(),e.stylesWithoutHost,!1)}function Ki(t,e,n,s){Gi(t,e,n,s),Qi()}function Zi(t,e,n){const s=Xt(),r=Gt(),i=t+20,o=r.firstCreatePass?function(t,e,n,s,r){const i=e.consts,o=$t(i,s),a=vr(e,t,8,"ng-container",o);return null!==o&&oi(a,o,!0),Rr(e,n,a,$t(i,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(i,r,s,e,n):r.data[i];Jt(o,!0);const a=s[i]=s[11].createComment("");Ys(r,s,a,o),Es(a,s),mt(o)&&(Tr(r,s,o),xr(r,o,s)),null!=n&&Dr(s,o)}function Ji(){let t=Kt();const e=Gt();te()?ee():(t=t.parent,Jt(t,!1)),e.firstCreatePass&&(Ce(e,t),pt(t)&&e.queries.elementEnd(t))}function to(t,e,n){Zi(t,e,n),Ji()}function eo(){return Xt()}function no(t){return!!t&&"function"==typeof t.then}function so(t){return!!t&&"function"==typeof t.subscribe}function ro(t,e,n=!1,s){const r=Xt(),i=Gt(),o=Kt();return function(t,e,n,s,r,i,o=!1,a){const l=mt(s),u=t.firstCreatePass&&ni(t),c=ei(e);let h=!0;if(3&s.type){const d=It(s,e),f=a?a(d):Y,p=f.target||d,g=c.length,m=a?t=>a(Rt(t[s.index])).target:s.index;if(Nt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const r=t.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const t=r[i];if(t===n&&r[i+1]===s){const t=e[7],n=r[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=oo(s,e,i,!1);const t=n.listen(f.name||p,r,i);c.push(i,t),u&&u.push(r,m,g,g+1)}}else i=oo(s,e,i,!0),p.addEventListener(r,i,o),c.push(i),u&&u.push(r,m,g,o)}else i=oo(s,e,i,!1);const d=s.outputs;let f;if(h&&null!==d&&(f=d[r])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(i),o=c.length;c.push(i,t),u&&u.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,t,e,n,s),ro}function io(t,e,n){try{return!1!==e(n)}catch(s){return si(t,s),!1}}function oo(t,e,n,s){return function r(i){if(i===Function)return n;const o=2&t.flags?Ft(t.index,e):e;0==(32&e[2])&&Qr(o);let a=io(e,n,i),l=r.__ngNextListenerFn__;for(;l;)a=io(e,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function ao(t=1){return function(t){return(Bt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Bt.lFrame.contextLView))[8]}(t)}function lo(t,e,n){return uo(t,"",e,"",n),lo}function uo(t,e,n,s,r){const i=Xt(),o=Hi(i,e,n,s);return o!==ur&&Pr(Gt(),Se(),i,t,o,i[11],r,!1),uo}function co(t,e,n,s,r,i,o){const a=Xt(),l=zi(a,e,n,s,r,i);return l!==ur&&Pr(Gt(),Se(),a,t,l,a[11],o,!1),co}const ho=[];function fo(t,e,n,s,r){const i=t[n+1],o=null===e;let a=s?fr(i):gr(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];po(t[a],e)&&(l=!0,t[a+1]=s?yr(n):pr(n)),a=s?fr(n):gr(n)}l&&(t[n+1]=s?pr(i):yr(i))}function po(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&yn(t,e)>=0}const go={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mo(t){return t.substring(go.key,go.keyEnd)}function yo(t){return t.substring(go.value,go.valueEnd)}function _o(t,e){const n=go.textEnd;return n===e?-1:(e=go.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,go.key=e,n),wo(t,e,n))}function bo(t,e){const n=go.textEnd;let s=go.key=wo(t,e,n);return n===s?-1:(s=go.keyEnd=function(t,e,n){let s;for(;e<n&&(45===(s=t.charCodeAt(e))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)e++;return e}(t,s,n),s=So(t,s,n),s=go.value=wo(t,s,n),s=go.valueEnd=function(t,e,n){let s=-1,r=-1,i=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Co(t,l,o,n):e===o-4&&85===i&&82===r&&76===s&&40===l?a=o=Co(t,41,o,n):l>32&&(a=o),i=r,r=s,s=-33&l}return a}(t,s,n),So(t,s,n))}function vo(t){go.key=0,go.keyEnd=0,go.value=0,go.valueEnd=0,go.textEnd=t.length}function wo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function So(t,e,n,s){return(e=wo(t,e,n))<n&&e++,e}function Co(t,e,n,s){let r=-1,i=n;for(;i<s;){const n=t.charCodeAt(i++);if(n==e&&92!==r)return i;r=92==n&&92===r?0:n}throw new Error}function Oo(t,e,n){return ko(t,e,n,!1),Oo}function Eo(t,e){return ko(t,e,null,!0),Eo}function xo(t,e){for(let n=function(t){return vo(t),bo(t,wo(t,0,go.textEnd))}(e);n>=0;n=bo(e,n))Mo(t,mo(e),yo(e))}function To(t){jo(gn,Do,t,!0)}function Do(t,e){for(let n=function(t){return vo(t),_o(t,wo(t,0,go.textEnd))}(e);n>=0;n=_o(e,n))gn(t,mo(e),!0)}function ko(t,e,n,s){const r=Xt(),i=Gt(),o=ae(2);i.firstUpdatePass&&No(i,t,o,s),e!==ur&&Li(r,o,e)&&Io(i,i.data[ve()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=y(Un(t)))),t}(e,n),s,o)}function jo(t,e,n,s){const r=Gt(),i=ae(2);r.firstUpdatePass&&No(r,null,i,s);const o=Xt();if(n!==ur&&Li(o,i,n)){const a=r.data[ve()];if(Fo(a,s)&&!Ao(r,i)){let t=s?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=_(t,n||"")),Xi(r,a,o,n,s)}else!function(t,e,n,s,r,i,o,a){r===ur&&(r=ho);let l=0,u=0,c=0<r.length?r[0]:null,h=0<i.length?i[0]:null;for(;null!==c||null!==h;){const d=l<r.length?r[l+1]:void 0,f=u<i.length?i[u+1]:void 0;let p=null,g=void 0;c===h?(l+=2,u+=2,d!==f&&(p=h,g=f)):null===h||null!==c&&c<h?(l+=2,p=c):(u+=2,p=h,g=f),null!==p&&Io(t,e,n,s,p,g,o,a),c=l<r.length?r[l]:null,h=u<i.length?i[u]:null}}(r,a,o,o[11],o[i+1],o[i+1]=function(t,e,n){if(null==n||""===n)return ho;const s=[],r=Un(n);if(Array.isArray(r))for(let i=0;i<r.length;i++)t(s,r[i],!0);else if("object"==typeof r)for(const i in r)r.hasOwnProperty(i)&&t(s,i,r[i]);else"string"==typeof r&&e(s,r);return s}(t,e,n),s,i)}}function Ao(t,e){return e>=t.expandoStartIndex}function No(t,e,n,s){const r=t.data;if(null===r[n+1]){const i=r[ve()],o=Ao(t,n);Fo(i,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const r=function(t){const e=Bt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=s?e.residualClasses:e.residualStyles;if(null===r)0===(s?e.classBindings:e.styleBindings)&&(n=Ro(n=Po(null,t,e,n,s),e.attrs,s),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Po(r,t,e,n,s),null===i){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==gr(s))return t[fr(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=Po(null,t,e,n[1],s),n=Ro(n,e.attrs,s),function(t,e,n,s){t[fr(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else i=function(t,e,n){let s=void 0;const r=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<r;i++)s=Ro(s,t[i].hostAttrs,n);return Ro(s,e.attrs,n)}(t,e,s)}return void 0!==i&&(s?e.residualClasses=i:e.residualStyles=i),n}(r,i,e,s),function(t,e,n,s,r,i){let o=i?e.classBindings:e.styleBindings,a=fr(o),l=gr(o);t[s]=n;let u,c=!1;if(Array.isArray(n)){const t=n;u=t[1],(null===u||yn(t,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){const e=fr(t[a+1]);t[s+1]=dr(e,a),0!==e&&(t[e+1]=mr(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=dr(a,0),0!==a&&(t[a+1]=mr(t[a+1],s)),a=s;else t[s+1]=dr(l,0),0===a?a=s:t[l+1]=mr(t[l+1],s),l=s;c&&(t[s+1]=pr(t[s+1])),fo(t,u,s,!0),fo(t,u,s,!1),function(t,e,n,s,r){const i=r?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&yn(i,e)>=0&&(n[s+1]=yr(n[s+1]))}(e,u,t,s,i),o=dr(a,l),i?e.classBindings=o:e.styleBindings=o}(r,i,e,n,o,s)}}function Po(t,e,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=e[a],s=Ro(s,i.hostAttrs,r),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function Ro(t,e,n){const s=n?1:2;let r=-1;if(null!==e)for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?r=o:r===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),gn(t,o,!!n||e[++i]))}return void 0===t?null:t}function Mo(t,e,n){gn(t,e,Un(n))}function Io(t,e,n,s,r,i,o,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];Vo(1==(1&u)?Lo(l,e,n,r,gr(u),o):void 0)||(Vo(i)||2==(2&u)&&(i=Lo(l,null,n,r,a,o)),function(t,e,n,s,r){const i=Nt(t);if(e)r?i?t.addClass(n,s):n.classList.add(s):i?t.removeClass(n,s):n.classList.remove(s);else{let e=-1===s.indexOf("-")?void 0:ks.DashCase;if(null==r)i?t.removeStyle(n,s,e):n.style.removeProperty(s);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=ks.Important),i?t.setStyle(n,s,r,e):n.style.setProperty(s,r,o?"important":"")}}}(s,o,Mt(ve(),n),r,i))}function Lo(t,e,n,s,r,i){const o=null===e;let a=void 0;for(;r>0;){const e=t[r],i=Array.isArray(e),l=i?e[1]:e,u=null===l;let c=n[r+1];c===ur&&(c=u?ho:void 0);let h=u?mn(c,s):l===s?c:void 0;if(i&&!Vo(h)&&(h=mn(e,s)),Vo(h)&&(a=h,o))return a;const d=t[r+1];r=o?fr(d):gr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=mn(t,s))}return a}function Vo(t){return void 0!==t}function Fo(t,e){return 0!=(t.flags&(e?16:32))}function Uo(t,e=""){const n=Xt(),s=Gt(),r=t+20,i=s.firstCreatePass?vr(s,r,1,e,null):s.data[r],o=n[r]=function(t,e){return Nt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ys(s,n,o,i),Jt(i,!1)}function Ho(t){return zo("",t,""),Ho}function zo(t,e,n){const s=Xt(),r=Hi(s,t,e,n);return r!==ur&&ii(s,ve(),r),zo}function $o(t,e,n,s,r){const i=Xt(),o=zi(i,t,e,n,s,r);return o!==ur&&ii(i,ve(),o),$o}function qo(t,e,n,s,r,i,o){const a=Xt(),l=function(t,e,n,s,r,i,o,a){const l=function(t,e,n,s,r){const i=Vi(t,e,n,s);return Li(t,e+2,r)||i}(t,ie(),n,r,o);return ae(3),l?e+vt(n)+s+vt(r)+i+vt(o)+a:ur}(a,t,e,n,s,r,i,o);return l!==ur&&ii(a,ve(),l),qo}function Yo(t,e,n,s,r,i,o,a,l){const u=Xt(),c=function(t,e,n,s,r,i,o,a,l,u){const c=Fi(t,ie(),n,r,o,l);return ae(4),c?e+vt(n)+s+vt(r)+i+vt(o)+a+vt(l)+u:ur}(u,t,e,n,s,r,i,o,a,l);return c!==ur&&ii(u,ve(),c),Yo}function Bo(t,e,n){jo(gn,Do,Hi(Xt(),t,e,n),!0)}function Wo(t,e,n){jo(Mo,xo,Hi(Xt(),t,e,n),!1)}function Xo(t,e,n){const s=Xt();return Li(s,oe(),e)&&Pr(Gt(),Se(),s,t,e,s[11],n,!0),Xo}const Go=void 0;var Qo=["en",[["a","p"],["AM","PM"],Go],[["AM","PM"],Go,Go],[["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"]],Go,[["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"]],Go,[["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}",Go,"{1} 'at' {0}",Go],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ko={};function Zo(t,e,n){"string"!=typeof e&&(n=e,e=t[sa.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Ko[e]=t,n&&(Ko[e][sa.ExtraData]=n)}function Jo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=na(e);if(n)return n;const s=e.split("-")[0];if(n=na(s),n)return n;if("en"===s)return Qo;throw new Error(`Missing locale data for the locale "${t}".`)}function ta(t){return Jo(t)[sa.CurrencyCode]||null}function ea(t){return Jo(t)[sa.PluralCase]}function na(t){return t in Ko||(Ko[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),Ko[t]}var sa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ra="en-US";function ia(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ra=t.toLowerCase().replace(/_/g,"-"))}function oa(t,e,n,s,r){if(t=w(t),Array.isArray(t))for(let i=0;i<t.length;i++)oa(t[i],e,n,s,r);else{const i=Gt(),o=Xt();let a=wi(t)?t:w(t.provide),l=_i(t);const u=Kt(),c=1048575&u.providerIndexes,h=u.directiveStart,d=u.providerIndexes>>20;if(wi(t)||!t.multi){const s=new ke(l,r,Bi),f=ua(a,e,r?c:c+d,h);-1===f?(Ye(He(u,o),i,a),aa(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(s),o.push(s)):(n[f]=s,o[f]=s)}else{const f=ua(a,e,c+d,h),p=ua(a,e,c,c+d),g=f>=0&&n[f],m=p>=0&&n[p];if(r&&!m||!r&&!g){Ye(He(u,o),i,a);const c=function(t,e,n,s,r){const i=new ke(t,n,Bi);return i.multi=[],i.index=e,i.componentProviders=0,la(i,r,s&&!n),i}(r?ha:ca,n.length,r,s,l);!r&&m&&(n[p].providerFactory=c),aa(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else aa(i,t,f>-1?f:p,la(n[r?p:f],l,!r&&s));!r&&s&&m&&n[p].componentProviders++}}}function aa(t,e,n,s){const r=wi(e);if(r||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[s,i]):o[t+1].push(s,i)}else o.push(n,i)}}}function la(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,n,s){for(let r=n;r<s;r++)if(e[r]===t)return r;return-1}function ca(t,e,n,s){return da(this.multi,[])}function ha(t,e,n,s){const r=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Je(n,n[1],this.providerFactory.index,s);i=e.slice(0,t),da(r,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],da(r,i);return i}function da(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function fa(t,e=[]){return n=>{n.providersResolver=(n,s)=>function(t,e,n){const s=Gt();if(s.firstCreatePass){const r=yt(t);oa(n,s.data,s.blueprint,r,!0),oa(e,s.data,s.blueprint,r,!1)}}(n,s?s(t):t,e)}}class pa{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${y(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new ga,t})();function ya(...t){}function _a(t,e){return new va(It(t,e))}const ba=function(){return _a(Kt(),Xt())};let va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ba,t})();class wa{}let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ca(),t})();const Ca=function(){const t=Xt(),e=Ft(Kt().index,t);return function(t){return t[11]}(dt(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xa=new Ea("11.0.9");class Ta{constructor(){}supports(t){return Pi(t)}create(t){return new ka(t)}}const Da=(t,e)=>e;class ka{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||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const i=!n||e&&e.currentIndex<Pa(n,s,r)?e:n,o=Pa(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)s++;else{r||(r=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;e<=i&&i<t&&(r[n]=s+1)}r[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Pi(t))throw new Error(`Error trying to diff '${y(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,r=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,e),i=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Ai()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,t,s,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,s,e),i=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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,e,n,s){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,s)):t=this._addAfter(new ja(e,n),r,s),t}_verifyReinsertion(t,e,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,r=t._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ja{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Aa{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,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Aa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,n){const s=t.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+e+r}class Ra{constructor(){}supports(t){return t instanceof Map||Ri(t)}create(){return new Ma}}class Ma{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ri(t)))throw new Error(`Error trying to diff '${y(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Ia(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ia{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}}let La=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new wn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t([new Ta])}),t})(),Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new wn,new bn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t([new Ra])}),t})();function Fa(t,e,n,s,r=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&s.push(Rt(i)),ft(i))for(let t=10;t<i.length;t++){const e=i[t],n=e[1].firstChild;null!==n&&Fa(e[1],e,n,s)}const o=n.type;if(8&o)Fa(t,e,n.child,s);else if(32&o){const t=js(n,e);let r;for(;r=t();)s.push(r)}else if(16&o){const t=e[16],r=t[6].projection[n.projection];if(Array.isArray(r))s.push(...r);else{const e=As(t);Fa(e[1],e,r,s,!0)}}n=r?n.projectionNext:n.next}return s}class Ua{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Fa(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(ft(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Vs(t,n),pn(e,n))}this._attachedToViewContainer=!1}Fs(this._lView[1],this._lView)}onDestroy(t){Ar(this._lView[1],this._lView,null,t)}markForCheck(){Qr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Kr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){se(!0);try{Kr(t,e,n)}finally{se(!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,Gs(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 Ha extends Ua{constructor(t){super(t),this._view=t}detectChanges(){Zr(this._view)}checkNoChanges(){!function(t){se(!0);try{Zr(t)}finally{se(!1)}}(this._view)}get context(){return null}}const za=qa;let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=za,t.__ChangeDetectorRef__=!0,t})();function qa(t=!1){return function(t,e,n){if(!n&&gt(t)){const n=Ft(t.index,e);return new Ua(n,n)}return 47&t.type?new Ua(e[16],e):null}(Kt(),Xt(),t)}const Ya=[new Ra],Ba=new La([new Ta]),Wa=new Va(Ya),Xa=function(){return Za(Kt(),Xt())};let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=Xa,t})();const Qa=Ga,Ka=class extends Qa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=br(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Sr(e,n,t),new Ua(n)}};function Za(t,e){return 4&t.type?new Ka(e,t,_a(t,e)):null}class Ja{}class tl{}const el=function(){return al(Kt(),Xt())};let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=el,t})();const sl=nl,rl=class extends sl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Me(t)){const e=Le(t,this._hostLView),n=Ie(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=il(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,r){const i=n||this.parentInjector;if(!r&&null==t.ngModule&&i){const t=i.get(Ja,null);t&&(r=t)}const o=t.create(i,s,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(ft(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new rl(e,e[6],e[3]);s.detach(s.indexOf(t))}}const r=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,s){const r=10+s,i=n.length;s>0&&(n[r-1][4]=e),s<i-10?(e[4]=n[r],fn(n,10+s,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(s,n,i,r);const o=Ws(r,i),a=n[11],l=qs(a,i[7]);return null!==l&&function(t,e,n,s,r,i){s[0]=r,s[6]=e,Gs(t,s,n,1,r,i)}(s,i[6],a,n,l,o),t.attachToViewContainerRef(),fn(ol(i),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=il(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Vs(this._lContainer,e);n&&(pn(ol(this._lContainer),e),Fs(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Vs(this._lContainer,e);return n&&null!=pn(ol(this._lContainer),e)?new Ua(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function il(t){return t[8]}function ol(t){return t[8]||(t[8]=[])}function al(t,e){let n;const s=e[t.index];if(ft(s))n=s;else{let r;if(8&t.type)r=Rt(s);else{const n=e[11];r=n.createComment("");const s=It(t,e);Hs(n,qs(n,s),r,function(t,e){return Nt(t)?t.nextSibling(e):e.nextSibling}(n,s),!1)}e[t.index]=n=Yr(s,e,r,t),Gr(e,n)}return new rl(n,t,e)}const ll={};class ul extends ma{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ct(t);return new dl(e,this.ngModule)}}function cl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const hl=new ln("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>xs});class dl extends pa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(lr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cl(this.componentDef.inputs)}get outputs(){return cl(this.componentDef.outputs)}create(t,e,n,s){const r=(s=s||this.ngModule)?function(t,e){return{get:(n,s,r)=>{const i=t.get(n,ll,r);return i!==ll||s===ll?i:e.get(n,s,r)}}}(t,s.injector):t,i=r.get(wa,Pt),o=r.get(Oa,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(Nt(t))return t.selectRootElement(e,n===F.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Is(i.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:xs,clean:ti,playerHandler:null,flags:0},d=jr(0,null,null,1,0,null,null,null,null,null),f=br(null,d,h,c,null,null,i,a,o,r);let p,g;pe(f);try{const t=function(t,e,n,s,r,i){const o=n[1];n[20]=t;const a=vr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(oi(a,l,!0),null!==t&&(je(r,t,l),null!==a.classes&&Zs(r,t,a.classes),null!==a.styles&&Ks(r,t,a.styles)));const u=s.createRenderer(t,e),c=br(n,kr(e),null,e.onPush?64:16,n[20],a,s,u,null,null);return o.firstCreatePass&&(Ye(He(a,n),o,e.type),Lr(o,a),Fr(a,n.length,1)),Gr(n,c),n[20]=c}(u,this.componentDef,f,i,a);if(u)if(n)je(a,u,["ng-version",xa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,r=2;for(;s<t.length;){let i=t[s];if("string"==typeof i)2===r?""!==i&&e.push(i,t[++s]):8===r&&n.push(i);else{if(!rr(r))break;r=i}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&je(a,u,t),e&&e.length>0&&Zs(a,u,e.join(" "))}if(g=Lt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}p=function(t,e,n,s,r){const i=n[1],o=function(t,e,n){const s=Kt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ur(t,s,e,wr(t,e,1,null),n));const r=Je(e,t,s.directiveStart,s);Es(r,e);const i=It(s,e);return i&&Es(i,e),r}(i,n,e);if(s.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(we(a.index),Mr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Ir(e,o)),o}(t,this.componentDef,f,h,[Oi]),Sr(d,f,null)}finally{be()}return new fl(this.componentType,p,_a(g,f),f,g)}}class fl extends class{}{constructor(t,e,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Ha(s),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const pl=new Map;class gl extends Ja{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const n=ht(t),s=t[K]||null;s&&ia(s),this._bootstrapComponents=Ds(n.bootstrap),this._r3Injector=gi(t,e,[{provide:Ja,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],y(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ci.THROW_IF_NOT_FOUND,n=P.Default){return t===Ci||t===Ja||t===ai?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ml extends tl{constructor(t){super(),this.moduleType=t,null!==ht(t)&&function(t){const e=new Set;!function t(n){const s=ht(n,!0),r=s.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${y(e)} vs ${y(e.name)}`)}(r,pl.get(r),n),pl.set(r,n));const i=Ds(s.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new gl(this.moduleType,t)}}function yl(t,e,n){const s=re()+t,r=Xt();return r[s]===ur?Mi(r,s,n?e.call(n):e()):Ii(r,s)}function _l(t,e,n,s){return Ol(Xt(),re(),t,e,n,s)}function bl(t,e,n,s,r){return El(Xt(),re(),t,e,n,s,r)}function vl(t,e,n,s,r,i,o){return function(t,e,n,s,r,i,o,a,l){const u=e+n;return Fi(t,u,r,i,o,a)?Mi(t,u+4,l?s.call(l,r,i,o,a):s(r,i,o,a)):Cl(t,u+4)}(Xt(),re(),t,e,n,s,r,i,o)}function wl(t,e,n,s,r,i,o,a){const l=re()+t,u=Xt(),c=Fi(u,l,n,s,r,i);return Li(u,l+4,o)||c?Mi(u,l+5,a?e.call(a,n,s,r,i,o):e(n,s,r,i,o)):Ii(u,l+5)}function Sl(t,e,n,s,r,i,o,a,l,u,c){const h=re()+t,d=Xt(),f=Fi(d,h,n,s,r,i);return Fi(d,h+4,o,a,l,u)||f?Mi(d,h+8,c?e.call(c,n,s,r,i,o,a,l,u):e(n,s,r,i,o,a,l,u)):Ii(d,h+8)}function Cl(t,e){const n=t[e];return n===ur?void 0:n}function Ol(t,e,n,s,r,i){const o=e+n;return Li(t,o,r)?Mi(t,o+1,i?s.call(i,r):s(r)):Cl(t,o+1)}function El(t,e,n,s,r,i,o){const a=e+n;return Vi(t,a,r,i)?Mi(t,a+2,o?s.call(o,r,i):s(r,i)):Cl(t,a+2)}function xl(t,e){const n=Gt();let s;const r=t+20;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new bt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,s.onDestroy)):s=n.data[r];const i=s.factory||(s.factory=_t(s.type)),o=M(Bi);try{const t=Fe(!1),e=i();return Fe(t),function(t,e,n,s){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(n,Xt(),r,e),e}finally{M(o)}}function Tl(t,e,n){const s=t+20,r=Xt(),i=Vt(r,s);return jl(r,kl(r,s)?Ol(r,re(),e,i.transform,n,i):i.transform(n))}function Dl(t,e,n,s){const r=t+20,i=Xt(),o=Vt(i,r);return jl(i,kl(i,r)?El(i,re(),e,o.transform,n,s,o):o.transform(n,s))}function kl(t,e){return t[1].data[e].pure}function jl(t,e){return Ni.isWrapped(e)&&(e=Ni.unwrap(e),t[ie()]=ur),e}const Al=class extends s.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,o=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(s,i,o);return t instanceof r.a&&t.add(a),a}};function Nl(){return this._results[Ai()]()}class Pl{constructor(){this.dirty=!0,this._results=[],this.changes=new Al,this.length=0;const t=Ai(),e=Pl.prototype;e[t]||(e[t]=Nl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}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){this._results=hn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Rl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Rl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ml{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new Ml(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Gl(t,e).matches&&this.queries[e].setDirty()}}class Il{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class Ll{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const s=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,s);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new Ll(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Vl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Vl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(t,e,Fl(e,r)),this.matchTNodeWithReadOption(t,e,Ze(e,t,r,!1,!1))}else n===Ga?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ze(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===va||s===nl||s===Ga&&4&e.type)this.addMatch(e.index,-2);else{const n=Ze(e,t,s,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Fl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function Ul(t,e,n,s){return-1===n?function(t,e){return 11&t.type?_a(t,e):4&t.type?Za(t,e):null}(e,t):-2===n?function(t,e,n){return n===va?_a(e,t):n===Ga?Za(e,t):n===nl?al(e,t):void 0}(t,e,s):Je(t,t[1],n,e)}function Hl(t,e,n,s){const r=e[19].queries[s];if(null===r.matches){const s=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const r=i[t];o.push(r<0?null:Ul(e,s[r],i[t+1],n.metadata.read))}r.matches=o}return r.matches}function zl(t,e,n,s){const r=t.queries.getByIndex(n),i=r.matches;if(null!==i){const o=Hl(t,e,r,n);for(let t=0;t<i.length;t+=2){const n=i[t];if(n>0)s.push(o[t/2]);else{const r=i[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&zl(e[1],e,r,s)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];zl(n[1],n,r,s)}}}}}return s}function $l(t){const e=Xt(),n=Gt(),s=ce();he(s+1);const r=Gl(n,s);if(t.dirty&&Ht(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const i=r.crossesNgTemplate?zl(n,e,s,[]):Hl(n,e,r,s);t.reset(i),t.notifyOnChanges()}return!0}return!1}function ql(t,e,n){!function(t,e,n,s,r,i){t.firstCreatePass&&Xl(t,new Il(n,s,false,r),-1),Wl(t,e)}(Gt(),Xt(),t,e,n)}function Yl(t,e,n,s){!function(t,e,n,s,r,i,o,a){t.firstCreatePass&&(Xl(t,new Il(n,s,false,r),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),Wl(t,e)}(Gt(),Xt(),e,n,s,0,Kt(),t)}function Bl(){return t=Xt(),e=ce(),t[19].queries[e].queryList;var t,e}function Wl(t,e){const n=new Pl;Ar(t,e,n,n.destroy),null===e[19]&&(e[19]=new Ml),e[19].queries.push(new Rl(n))}function Xl(t,e,n){null===t.queries&&(t.queries=new Ll),t.queries.track(new Vl(e,n))}function Gl(t,e){return t.queries.getByIndex(e)}function Ql(t,e){return Za(t,e)}function Kl(t=P.Default){const e=qa(!0);if(null!=e||t&P.Optional)return e;St("ChangeDetectorRef")}const Zl=new ln("Application Initializer");let Jl=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ya,this.reject=ya,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();no(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(kn(Zl,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const tu=new ln("AppId"),eu={provide:tu,useFactory:function(){return`${nu()}${nu()}${nu()}`},deps:[]};function nu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const su=new ln("Platform Initializer"),ru=new ln("Platform ID"),iu=new ln("appBootstrapListener");let ou=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const au=new ln("LocaleId"),lu=new ln("DefaultCurrencyCode"),uu=!0;class cu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const hu=function(t){return new ml(t)},du=hu,fu=function(t){return Promise.resolve(hu(t))},pu=function(t){const e=hu(t),n=Ds(ht(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new dl(n)),t},[]);return new cu(e,n)},gu=pu,mu=function(t){return Promise.resolve(pu(t))};let yu=(()=>{class t{constructor(){this.compileModuleSync=du,this.compileModuleAsync=fu,this.compileModuleAndAllComponentsSync=gu,this.compileModuleAndAllComponentsAsync=mu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const _u=(()=>Promise.resolve(0))();function bu(t){"undefined"==typeof Zone?_u.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class vu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Al(!1),this.onMicrotaskEmpty=new Al(!1),this.onStable=new Al(!1),this.onError=new Al(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cu(t),Su(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cu(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,r,i,o,a)=>{try{return Ou(t),n.invokeTask(r,i,o,a)}finally{e&&"eventTask"===i.type&&e(),Eu(t)}},onInvoke:(e,n,s,r,i,o,a)=>{try{return Ou(t),e.invoke(s,r,i,o,a)}finally{Eu(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Cu(t),Su(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(vu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,t,wu,ya,ya);try{return r.runTask(i,e,n)}finally{r.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const wu={};function Su(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Ou(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Eu(t){t._nesting--,Su(t)}class xu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Al,this.onMicrotaskEmpty=new Al,this.onStable=new Al,this.onError=new Al}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,s){return t.apply(e,n)}}let Tu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{vu.assertNotInAngularZone(),bu(()=>{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())bu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(kn(vu))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})(),Du=(()=>{class t{constructor(){this._applications=new Map,Nu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Nu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();class ku{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function ju(t){Nu=t}let Au,Nu=new ku,Pu=!0,Ru=!1;function Mu(){return Ru=!0,Pu}function Iu(){if(Ru)throw new Error("Cannot enable prod mode after platform setup.");Pu=!1}const Lu=new ln("AllowMultipleToken");class Vu{constructor(t,e){this.name=t,this.token=e}}function Fu(t,e,n=[]){const s="Platform: "+e,r=new ln(s);return(e=[])=>{let i=Uu();if(!i||i.injector.get(Lu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:ui,useValue:"platform"});!function(t){if(Au&&!Au.destroyed&&!Au.injector.get(Lu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Au=t.get(Hu);const e=t.get(su,null);e&&e.forEach(t=>t())}(Ci.create({providers:t,name:s}))}return function(t){const e=Uu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Uu(){return Au&&!Au.destroyed?Au:null}let Hu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new xu:("zone.js"===t?void 0:t)||new vu({enableLongStackTrace:Mu(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:vu,useValue:n}];return n.run(()=>{const e=Ci.create({providers:s,parent:this.injector,name:t.moduleType.name}),r=t.create(e),i=r.injector.get(Os,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{i.handleError(t)}});r.onDestroy(()=>{qu(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const s=n();return no(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(i,n,()=>{const t=r.injector.get(Jl);return t.runInitializers(),t.donePromise.then(()=>(uu&&ia(r.injector.get(au,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=zu({},e);return function(t,e,n){const s=new ml(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get($u);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${y(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(kn(Ci))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function zu(t,e){return Array.isArray(e)?e.reduce(zu,t):Object.assign(Object.assign({},t),e)}let $u=(()=>{class t{constructor(t,e,n,s,r,a){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=a,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 u=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{vu.assertNotInAngularZone(),bu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{vu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,c.pipe(t=>{return l()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,d);return s.source=t,s.subjectFactory=n,s})(t));var e}))}bootstrap(t,e){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 n;n=t instanceof pa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ja),r=n.create(Ci.NULL,[],e||n.selector,s),i=r.location.nativeElement,o=r.injector.get(Tu,null),a=o&&r.injector.get(Du);return o&&a&&a.registerApplication(i,o),r.onDestroy(()=>{this.detachView(r.hostView),qu(this.components,r),a&&a.unregisterApplication(i)}),this._loadComponent(r),Mu()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;qu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(iu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(kn(vu),kn(ou),kn(Ci),kn(Os),kn(ma),kn(Jl))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function qu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Yu{}class Bu{}const Wu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Xu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Wu}load(t){return!uu&&this._compiler instanceof yu?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n("zn8P")(e).then(t=>t[s]).then(t=>Gu(t,e,s)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,s]=t.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+r]).then(t=>Gu(t,e,s))}}return t.\u0275fac=function(e){return new(e||t)(kn(yu),kn(Bu,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Gu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Qu=function(t){return null},Ku=Fu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Hu,deps:[Ci]},{provide:Du,deps:[]},{provide:ou,deps:[]}]),Zu=[{provide:$u,useClass:$u,deps:[vu,ou,Ci,Os,ma,Jl]},{provide:hl,deps:[vu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Jl,useClass:Jl,deps:[[new bn,Zl]]},{provide:yu,useClass:yu,deps:[]},eu,{provide:La,useFactory:function(){return Ba},deps:[]},{provide:Va,useFactory:function(){return Wa},deps:[]},{provide:au,useFactory:function(t){return t=t||uu&&"undefined"!=typeof $localize&&$localize.locale||"en-US",uu&&ia(t),t},deps:[[new _n(au),new bn,new wn]]},{provide:lu,useValue:"USD"}];let Ju=(()=>{class t{constructor(t){}}return t.\u0275mod=it({type:t}),t.\u0275inj=E({factory:function(e){return new(e||t)(kn($u))},providers:Zu}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("2fFW"),r=n("NJ4a");const i={closed:!0,next(t){},error(t){if(s.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("HDdC"),r=n("quSY");function i(t,e){return new s.a(n=>{const s=new r.a;let i=0;return s.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()})),s})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",function(){return L}),n.d(e,"b",function(){return A}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return F}),n.d(e,"e",function(){return z}),n.d(e,"f",function(){return M}),n.d(e,"g",function(){return w});var s=n("ofXK"),r=n("fXoL");class i extends s.t{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(s.x)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(s.w)(document.cookie,t)}}let a,l=null;const u=new r.q("TRANSITION_ID"),c=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(s.v)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[u,s.d,r.r],multi:!0}];class h{static init(){Object(r.X)(new h)}addToWindow(t){r.ob.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},r.ob.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.ob.getAllAngularRootElements=()=>t.getAllRootElements(),r.ob.frameworkStabilizers||(r.ob.frameworkStabilizers=[]),r.ob.frameworkStabilizers.push(t=>{const e=r.ob.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach(function(t){t.whenStable(i)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(s.v)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.q("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(d),r.Xb(r.z))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Object(s.v)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let g=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),m=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(s.v)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const y={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/"},_=/%COMP%/g;function b(t,e,n){for(let s=0;s<e.length;s++){let r=e[s];Array.isArray(r)?b(t,r,n):(r=r.replace(_,t),n.push(r))}return n}function v(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.P.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.P.ShadowDom:return new O(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=b(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(f),r.Xb(m),r.Xb(r.c))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const r=y[s];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=y[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&(r.F.DashCase|r.F.Important)?t.style.setProperty(e,n,s&r.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.F.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class C extends S{constructor(t,e,n,s){super(t),this.component=n;const r=b(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_,s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class O extends S{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=b(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const t=document.createElement("style");t.textContent=r[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let E=(()=>{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const x=["alt","control","meta","shift"],T={"\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"},D={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"},k={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(s.v)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(n.pop());let i="";if(x.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&D.hasOwnProperty(e)&&(e=D[e]))}return T[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),x.forEach(s=>{s!=n&&(0,k[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Jb)({factory:function(){return Object(r.Xb)(P)},token:t,providedIn:"root"}),t})();function N(t){return new P(t.get(s.d))}let P=(()=>{class t extends A{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.H.NONE:return e;case r.H.HTML:return Object(r.db)(e,"HTML")?Object(r.wb)(e):Object(r.bb)(this._doc,String(e));case r.H.STYLE:return Object(r.db)(e,"Style")?Object(r.wb)(e):e;case r.H.SCRIPT:if(Object(r.db)(e,"Script"))return Object(r.wb)(e);throw new Error("unsafe value used in a script context");case r.H.URL:return Object(r.nb)(e),Object(r.db)(e,"URL")?Object(r.wb)(e):Object(r.cb)(String(e));case r.H.RESOURCE_URL:if(Object(r.db)(e,"ResourceURL"))return Object(r.wb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.eb)(t)}bypassSecurityTrustStyle(t){return Object(r.hb)(t)}bypassSecurityTrustScript(t){return Object(r.gb)(t)}bypassSecurityTrustUrl(t){return Object(r.ib)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.fb)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=Object(r.Jb)({factory:function(){return N(Object(r.Xb)(r.o))},token:t,providedIn:"root"}),t})();const R=[{provide:r.B,useValue:s.u},{provide:r.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:s.d,useFactory:function(){return Object(r.ub)(document),document},deps:[]}],M=Object(r.Q)(r.W,"browser",R),I=[[],{provide:r.Z,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:d,useClass:E,multi:!0,deps:[s.d,r.z,r.B]},{provide:d,useClass:j,multi:!0,deps:[s.d]},[],{provide:w,useClass:w,deps:[f,m,r.c]},{provide:r.E,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[s.d]},{provide:r.L,useClass:r.L,deps:[r.z]},{provide:f,useClass:f,deps:[d,r.z]},[]];let L=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:u,useExisting:r.c},c]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(t,12))},providers:I,imports:[s.c,r.f]}),t})();function V(){return new F(Object(r.Xb)(s.d))}let F=(()=>{class t{constructor(t){this._doc=t,this._dom=Object(s.v)()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(this._getMetaKeyMap(n),t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(this._getMetaKeyMap(n))===t[n])}_getMetaKeyMap(t){return U[t]||t}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=Object(r.Jb)({factory:V,token:t,providedIn:"root"}),t})();const U={httpEquiv:"http-equiv"};function H(){return new z(Object(r.Xb)(s.d))}let z=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.d))},t.\u0275prov=Object(r.Jb)({factory:H,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("XNiG"),r=n("qgXg"),i=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2");class u extends s.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new c(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let u;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?u=i.a.EMPTY:(this.observers.push(t),u=new l.a(this,t)),s&&t.add(t=new o.a(t,s)),e)for(let i=0;i<r&&!t.closed;i++)t.next(n[i]);else for(let i=0;i<r&&!t.closed;i++)t.next(n[i].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),u}_getNow(){return(this.scheduler||r.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(t-s[i].time<n);)i++;return r>e&&(i=Math.max(i,r-e)),i>0&&s.splice(0,i),s}}class c{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends s.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mCNh:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var s=n("SpAZ");function r(...t){return i(t)}function i(t){return 0===t.length?s.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mqiu:function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}},mrSG:function(t,e,n){"use strict";function s(t,e,n,s){var r,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i<3?r(o):i>3?r(e,n,o):r(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",function(){return s})},n6bG:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.d(e,"a",function(){return s})},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("7o/Q"),r=n("quSY");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends s.a{constructor(t,e){super(t),this.add(new r.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()}},ofXK:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return Q}),n.d(e,"c",function(){return Z}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return K}),n.d(e,"f",function(){return S}),n.d(e,"g",function(){return h}),n.d(e,"h",function(){return C}),n.d(e,"i",function(){return _}),n.d(e,"j",function(){return I}),n.d(e,"k",function(){return V}),n.d(e,"l",function(){return U}),n.d(e,"m",function(){return $}),n.d(e,"n",function(){return q}),n.d(e,"o",function(){return w}),n.d(e,"p",function(){return u}),n.d(e,"q",function(){return nt}),n.d(e,"r",function(){return tt}),n.d(e,"s",function(){return et}),n.d(e,"t",function(){return a}),n.d(e,"u",function(){return J}),n.d(e,"v",function(){return i}),n.d(e,"w",function(){return M}),n.d(e,"x",function(){return o});var s=n("fXoL");let r=null;function i(){return r}function o(t){r||(r=t)}class a{}const l=new s.q("DocumentToken");let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return Object(s.Xb)(d)}const h=new s.q("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(l))},t.\u0275prov=Object(s.Jb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(s.Xb)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function y(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=Object(s.Xb)(l).location;return new w(Object(s.Xb)(u),e&&e.origin||"")}const v=new s.q("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const r=this.prepareExternalUrl(n+y(s));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){const r=this.prepareExternalUrl(n+y(s));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(u),s.Xb(v,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let r=this.prepareExternalUrl(n+y(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){let r=this.prepareExternalUrl(n+y(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(u),s.Xb(v,8))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new s.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(E(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,E(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(_),s.Xb(u))},t.normalizeQueryParams=y,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=Object(s.Jb)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new C(Object(s.Xb)(_),Object(s.Xb)(u))}function E(t){return t.replace(/\/index.html$/,"")}var x=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),T=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),D=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function k(t,e){const n=Object(s.jb)(t),r=n[s.ab.NumberSymbols][e];if(void 0===r){if(e===D.CurrencyDecimal)return n[s.ab.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[s.ab.NumberSymbols][D.Group]}return r}const j=s.mb,A=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function N(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class P{}let R=(()=>{class t extends P{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(j(e||this.locale)(t)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.u))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();function M(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(r)}return null}let I=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(s.pb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(s.vb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.s),s.Nb(s.t),s.Nb(s.l),s.Nb(s.D))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class L{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let V=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new L(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new F(t,n);e.push(r)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const i=new F(t,r);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.O),s.Nb(s.K),s.Nb(s.s))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class F{constructor(t,e){this.record=t,this.view=e}}let U=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new H,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){z("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){z("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.O),s.Nb(s.K))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class H{constructor(){this.$implicit=null,this.ngIf=null}}function z(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(s.vb)(e)}'.`)}let $=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,s]=t.split(".");null!=(e=null!=e&&s?`${e}${s}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.t),s.Nb(s.D))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),q=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.O))},t.\u0275dir=s.Ib({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[s.yb]}),t})();function Y(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(s.vb)(t)}'`)}class B{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class W{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const X=new W,G=new B;let Q=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(s.rb)(e))return X;if(Object(s.qb)(e))return G;throw Y(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Zb())},t.\u0275pipe=s.Mb({name:"async",type:t,pure:!1}),t})(),K=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,s,r,i,o=!1){let a="",l=!1;if(isFinite(t)){let u=function(t){let e,n,s,r,i,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(s=o.search(/e/i))>0?(n<0&&(n=s),n+=+o.slice(s+1),o=o.substring(0,s)):n<0&&(n=o.length),s=0;"0"===o.charAt(s);s++);if(s===(i=o.length))e=[0],n=1;else{for(i--;"0"===o.charAt(i);)i--;for(n-=s,e=[],r=0;s<=i;s++,r++)e[r]=Number(o.charAt(s))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(u=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));let c=e.minInt,h=e.minFrac,d=e.maxFrac;if(i){const t=i.match(A);if(null===t)throw new Error(i+" is not a valid digit info");const e=t[1],n=t[3],s=t[5];null!=e&&(c=N(e)),null!=n&&(h=N(n)),null!=s?d=N(s):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let s=t.digits,r=s.length-t.integerLen;const i=Math.min(Math.max(e,r),n);let o=i+t.integerLen,a=s[o];if(o>0){s.splice(Math.max(t.integerLen,o));for(let t=o;t<s.length;t++)s[t]=0}else{r=Math.max(0,r),t.integerLen=1,s.length=Math.max(1,o=i+1),s[0]=0;for(let t=1;t<o;t++)s[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)s.unshift(0),t.integerLen++;s.unshift(1),t.integerLen++}else s[o-1]++;for(;r<Math.max(0,i);r++)s.push(0);let l=0!==i;const u=e+t.integerLen,c=s.reduceRight(function(t,e,n,s){return s[n]=(e+=t)<10?e:e-10,l&&(0===s[n]&&n>=u?s.pop():l=!1),e>=10?1:0},0);c&&(s.unshift(c),t.integerLen++)}(u,h,d);let f=u.digits,p=u.integerLen;const g=u.exponent;let m=[];for(l=f.every(t=>!t);p<c;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?m=f.splice(p,f.length):(m=f,f=[0]);const y=[];for(f.length>=e.lgSize&&y.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)y.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&y.unshift(f.join("")),a=y.join(k(n,s)),m.length&&(a+=k(n,r)+m.join("")),g&&(a+=k(n,D.Exponential)+"+"+g)}else a=k(n,D.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},s=t.split(";"),r=s[0],i=s[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c<l.length;c++){const t=l.charAt(c);"0"===t?n.minFrac=n.maxFrac=c+1:"#"===t?n.maxFrac=c+1:n.posSuf+=t}const u=a.split(",");if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){const t=r.length-n.posPre.length-n.posSuf.length,e=i.indexOf("#");n.negPre=i.substr(0,e).replace(/'/g,""),n.negSuf=i.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Object(s.jb)(t)[s.ab.NumberFormats][e]}(e,x.Decimal),k(e,D.MinusSign)),e,D.Group,D.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(e),r,n)}catch(i){throw Y(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.u))},t.\u0275pipe=s.Mb({name:"number",type:t,pure:!0}),t})(),Z=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[{provide:P,useClass:R}]}),t})();const J="browser";function tt(t){return t===J}function et(t){return"server"===t}let nt=(()=>{class t{}return t.\u0275prov=Object(s.Jb)({token:t,providedIn:"root",factory:()=>new st(Object(s.Xb)(l),window)}),t})();class st{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=rt(this.window.history)||rt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function rt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends s.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return a});var s=n("7o/Q"),r=n("WMd4");function i(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends s.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(t,this.destination)))}_next(t){this.scheduleMessage(r.a.createNext(t))}_error(t){this.scheduleMessage(r.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.notification=t,this.destination=e}}},qgXg:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l});var s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var i=n("IjjT");class o extends i.a{}const a=new o(r),l=a},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("DH7j"),r=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:u,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(i.a)(u)){a&&(this._unsubscribe=void 0);try{u.call(this)}catch(h){e=h instanceof o?l(h.errors):[h]}}if(Object(s.a)(c)){let t=-1,n=c.length;for(;++t<n;){const n=c[t];if(Object(r.a)(n))try{n.unsubscribe()}catch(h){e=e||[],h instanceof o?e=e.concat(l(h.errors)):e.push(h)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function l(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sYmb:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return L}),n.d(e,"c",function(){return I}),n.d(e,"d",function(){return M});var s=n("fXoL"),r=n("LRne"),i=n("HDdC");function o(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var a=n("cp0P"),l=n("GyhO"),u=n("NXyV"),c=n("IzEk"),h=n("UXun"),d=n("lJxs"),f=n("bOdf"),p=n("eIep");class g{}let m=(()=>{class t extends g{getTranslation(t){return Object(r.a)({})}}return t.\u0275fac=function(e){return y(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const y=s.Vb(m);class _{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();function v(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,s,r,i=typeof t;if(i==typeof e&&"object"==i){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(s in r=Object.create(null),t){if(!v(t[s],e[s]))return!1;r[s]=!0}for(s in e)if(!(s in r)&&void 0!==e[s])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(s=0;s<n;s++)if(!v(t[s],e[s]))return!1;return!0}}return!1}function w(t){return null!=t}function S(t){return t&&"object"==typeof t&&!Array.isArray(t)}function C(t,e){let n=Object.assign({},t);return S(t)&&S(e)&&Object.keys(e).forEach(s=>{S(e[s])?s in t?n[s]=C(t[s],e[s]):Object.assign(n,{[s]:e[s]}):Object.assign(n,{[s]:e[s]})}),n}class O{}let E=(()=>{class t extends O{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!w(t)||!w(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let s=this.getValue(e,n);return w(s)?s:t}):t}}return t.\u0275fac=function(e){return x(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const x=s.Vb(E);class T{}let D=(()=>{class t extends T{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return k(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const k=s.Vb(D);class j{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.n,this.onLangChange=new s.n,this.onDefaultLangChange=new s.n}}const A=new s.q("USE_STORE"),N=new s.q("USE_DEFAULT_LANG"),P=new s.q("DEFAULT_LANGUAGE"),R=new s.q("USE_EXTEND");let M=(()=>{class t{constructor(t,e,n,r,i,o=!0,a=!1,l=!1,u){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=i,this.useDefaultLang=o,this.isolate=a,this.extend=l,this.pending=!1,this._onTranslationChange=new s.n,this._onLangChange=new s.n,this._onDefaultLangChange=new s.n,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(r.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(r.a)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(h.a)(1),Object(c.a)(1));return this.loadingTranslations=e.pipe(Object(d.a)(e=>this.compiler.compileTranslations(e,t)),Object(h.a)(1),Object(c.a)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?C(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let s;if(e instanceof Array){let s={},i=!1;for(let r of e)s[r]=this.getParsedResult(t,r,n),o(s[r])&&(i=!0);if(i){const t=e.map(t=>o(s[t])?s[t]:Object(r.a)(s[t]));return Object(a.a)(t).pipe(Object(d.a)(t=>{let n={};return t.forEach((t,s)=>{n[e[s]]=t}),n}))}return s}if(t&&(s=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===s&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===s){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),s=this.missingTranslationHandler.handle(t)}return void 0!==s?s:e}get(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(f.a)(n=>o(n=this.getParsedResult(n,t,e))?n:Object(r.a)(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return o(n)?n:Object(r.a)(n)}}getStreamOnTranslationChange(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return Object(l.a)(Object(u.a)(()=>this.get(t,e)),this.onTranslationChange.pipe(Object(p.a)(n=>{const s=this.getParsedResult(n.translations,t,e);return"function"==typeof s.subscribe?s:Object(r.a)(s)})))}stream(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return Object(l.a)(Object(u.a)(()=>this.get(t,e)),this.onLangChange.pipe(Object(p.a)(n=>{const s=this.getParsedResult(n.translations,t,e);return o(s)?s:Object(r.a)(s)})))}instant(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(o(n)){if(t instanceof Array){let e={};return t.forEach((n,s)=>{e[t[s]]=t[s]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(j),s.Xb(g),s.Xb(T),s.Xb(O),s.Xb(_),s.Xb(N),s.Xb(A),s.Xb(R),s.Xb(P))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let s=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let r=this.translate.getParsedResult(n,t,e);o(r.subscribe)?r.subscribe(s):s(r)}this.translate.get(t,e).subscribe(s)}transform(t,...e){if(!t||!t.length)return t;if(v(t,this.lastKey)&&v(e,this.lastParams))return this.value;let n;if(w(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),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 t.\u0275fac=function(e){return new(e||t)(s.Nb(M),s.Zb())},t.\u0275pipe=s.Mb({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:m},e.compiler||{provide:T,useClass:D},e.parser||{provide:O,useClass:E},e.missingTranslationHandler||{provide:_,useClass:b},j,{provide:A,useValue:e.isolate},{provide:N,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:P,useValue:e.defaultLanguage},M]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:m},e.compiler||{provide:T,useClass:D},e.parser||{provide:O,useClass:E},e.missingTranslationHandler||{provide:_,useClass:b},{provide:A,useValue:e.isolate},{provide:N,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:P,useValue:e.defaultLanguage},M]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})()},sjEL:function(t,e,n){(function(t){t.exports=function(){"use strict";var e;function s(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(o(t,e))return;return 1}function l(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){for(var n=[],s=t.length,r=0;r<s;++r)n.push(e(t[r],r));return n}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,s){return be(t,e,n,s,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=p(t),n=y.call(e.parsedDateParts,function(t){return null!=t});if(n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function m(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}var y=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,s=0;s<n;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1},_=s.momentProperties=[],b=!1;function v(t,e){var n,s,r,i=_.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=p(e)),l(e._locale)||(t._locale=e._locale),0<i)for(n=0;n<i;n++)l(r=e[s=_[n]])||(t[s]=r);return t}function w(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,s.updateOffset(this),b=!1)}function S(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function C(t){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var n=!0;return d(function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,t),n){for(var r,i,a=[],l=arguments.length,u=0;u<l;u++){if(r="","object"==typeof arguments[u]){for(i in r+="\n["+u+"] ",arguments[0])o(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[u];a.push(r)}C(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var E={};function x(t,e){null!=s.deprecationHandler&&s.deprecationHandler(t,e),E[t]||(C(e),E[t]=!0)}function T(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function D(t,e){var n,s=d({},t);for(n in e)o(e,n)&&(i(t[n])&&i(e[n])?(s[n]={},d(s[n],t[n]),d(s[n],e[n])):null!=e[n]?s[n]=e[n]:delete s[n]);for(n in t)o(t,n)&&!o(e,n)&&i(t[n])&&(s[n]=d({},s[n]));return s}function k(t){null!=t&&this.set(t)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null;var j=Object.keys||function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};function A(t,e,n){var s=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-s.length)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},M={};function I(t,e,n,s){var r="string"==typeof s?function(){return this[s]()}:s;t&&(M[t]=r),e&&(M[e[0]]=function(){return A(r.apply(this,arguments),e[1],e[2])}),n&&(M[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function L(t,e){return t.isValid()?(e=V(e,t.localeData()),R[e]=R[e]||function(t){for(var e,n=t.match(N),s=0,r=n.length;s<r;s++)n[s]=M[n[s]]?M[n[s]]:(e=n[s]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var s="",i=0;i<r;i++)s+=T(n[i])?n[i].call(e,t):n[i];return s}}(e),R[e](t)):t.localeData().invalidDate()}function V(t,e){var n=5;function s(t){return e.longDateFormat(t)||t}for(P.lastIndex=0;0<=n&&P.test(t);)t=t.replace(P,s),P.lastIndex=0,--n;return t}var F={};function U(t,e){var n=t.toLowerCase();F[n]=F[n+"s"]=F[e]=t}function H(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function z(t){var e,n,s={};for(n in t)o(t,n)&&(e=H(n))&&(s[e]=t[n]);return s}var $={};function q(t,e){$[t]=e}function Y(t){return t%4==0&&t%100!=0||t%400==0}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function W(t){return 0!=(t=+t)&&isFinite(t)?B(t):0}function X(t,e){return function(n){return null!=n?(Q(this,t,n),s.updateOffset(this,e),this):G(this,t)}}function G(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Q(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Y(t.year())&&1===t.month()&&29===t.date()?(n=W(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),wt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var K=/\d/,Z=/\d\d/,J=/\d{3}/,tt=/\d{4}/,et=/[+-]?\d{6}/,nt=/\d\d?/,st=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,it=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,lt=/\d+/,ut=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,ht=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ft(t,e,n){yt[t]=T(e)?e:function(t,s){return t&&n?n:e}}function pt(t,e){return o(yt,t)?yt[t](e._strict,e._locale):new RegExp(gt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,s,r){return e||n||s||r})))}function gt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var mt,yt={},_t={};function bt(t,e){var n,s,r=e;for("string"==typeof t&&(t=[t]),u(e)&&(r=function(t,n){n[e]=W(t)}),s=t.length,n=0;n<s;n++)_t[t[n]]=r}function vt(t,e){bt(t,function(t,n,s,r){s._w=s._w||{},e(t,s._w,s,r)})}function wt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?Y(t)?29:28:31-n%7%2}mt=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),I("MMMM",0,0,function(t){return this.localeData().months(this,t)}),U("month","M"),q("month",8),ft("M",nt),ft("MM",nt,Z),ft("MMM",function(t,e){return e.monthsShortRegex(t)}),ft("MMMM",function(t,e){return e.monthsRegex(t)}),bt(["M","MM"],function(t,e){e[1]=W(t)-1}),bt(["MMM","MMMM"],function(t,e,n,s){null!=(s=n._locale.monthsParse(t,s,n._strict))?e[1]=s:p(n).invalidMonth=t});var St="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ct="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Et=dt,xt=dt;function Tt(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=W(e);else if(!u(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),wt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function Dt(t){return null!=t?(Tt(this,t),s.updateOffset(this,!0),this):G(this,"Month")}function kt(){function t(t,e){return e.length-t.length}for(var e,n=[],s=[],r=[],i=0;i<12;i++)e=f([2e3,i]),n.push(this.monthsShort(e,"")),s.push(this.months(e,"")),r.push(this.months(e,"")),r.push(this.monthsShort(e,""));for(n.sort(t),s.sort(t),r.sort(t),i=0;i<12;i++)n[i]=gt(n[i]),s[i]=gt(s[i]);for(i=0;i<24;i++)r[i]=gt(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function jt(t){return Y(t)?366:365}I("Y",0,0,function(){var t=this.year();return t<=9999?A(t,4):"+"+t}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),U("year","y"),q("year",1),ft("Y",ut),ft("YY",nt,Z),ft("YYYY",ot,tt),ft("YYYYY",at,et),ft("YYYYYY",at,et),bt(["YYYYY","YYYYYY"],0),bt("YYYY",function(t,e){e[0]=2===t.length?s.parseTwoDigitYear(t):W(t)}),bt("YY",function(t,e){e[0]=s.parseTwoDigitYear(t)}),bt("Y",function(t,e){e[0]=parseInt(t,10)}),s.parseTwoDigitYear=function(t){return W(t)+(68<W(t)?1900:2e3)};var At=X("FullYear",!0);function Nt(t,e,n,s,r,i,o){var a;return t<100&&0<=t?(a=new Date(t+400,e,n,s,r,i,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,s,r,i,o),a}function Pt(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Rt(t,e,n){return(n=7+e-n)-(7+Pt(t,0,n).getUTCDay()-e)%7-1}function Mt(t,e,n,s,r){var i;return n=(e=1+7*(e-1)+(7+n-s)%7+Rt(t,s,r))<=0?jt(i=t-1)+e:e>jt(t)?(i=t+1,e-jt(t)):(i=t,e),{year:i,dayOfYear:n}}function It(t,e,n){var s,r,i=Rt(t.year(),e,n);return(i=Math.floor((t.dayOfYear()-i-1)/7)+1)<1?s=i+Lt(r=t.year()-1,e,n):i>Lt(t.year(),e,n)?(s=i-Lt(t.year(),e,n),r=t.year()+1):(r=t.year(),s=i),{week:s,year:r}}function Lt(t,e,n){var s=Rt(t,e,n);return e=Rt(t+1,e,n),(jt(t)-s+e)/7}function Vt(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),U("week","w"),U("isoWeek","W"),q("week",5),q("isoWeek",5),ft("w",nt),ft("ww",nt,Z),ft("W",nt),ft("WW",nt,Z),vt(["w","ww","W","WW"],function(t,e,n,s){e[s.substr(0,1)]=W(t)}),I("d",0,"do","day"),I("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),I("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),I("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),U("day","d"),U("weekday","e"),U("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),ft("d",nt),ft("e",nt),ft("E",nt),ft("dd",function(t,e){return e.weekdaysMinRegex(t)}),ft("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ft("dddd",function(t,e){return e.weekdaysRegex(t)}),vt(["dd","ddd","dddd"],function(t,e,n,s){null!=(s=n._locale.weekdaysParse(t,s,n._strict))?e.d=s:p(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,s){e[s]=W(t)});var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ut="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=dt,$t=dt,qt=dt;function Yt(){function t(t,e){return e.length-t.length}for(var e,n,s,r=[],i=[],o=[],a=[],l=0;l<7;l++)s=f([2e3,1]).day(l),e=gt(this.weekdaysMin(s,"")),n=gt(this.weekdaysShort(s,"")),s=gt(this.weekdays(s,"")),r.push(e),i.push(n),o.push(s),a.push(e),a.push(n),a.push(s);r.sort(t),i.sort(t),o.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Bt(){return this.hours()%12||12}function Wt(t,e){I(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Xt(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Bt),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Bt.apply(this)+A(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Bt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),U("hour","h"),q("hour",13),ft("a",Xt),ft("A",Xt),ft("H",nt),ft("h",nt),ft("k",nt),ft("HH",nt,Z),ft("hh",nt,Z),ft("kk",nt,Z),ft("hmm",st),ft("hmmss",rt),ft("Hmm",st),ft("Hmmss",rt),bt(["H","HH"],3),bt(["k","kk"],function(t,e,n){t=W(t),e[3]=24===t?0:t}),bt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),bt(["h","hh"],function(t,e,n){e[3]=W(t),p(n).bigHour=!0}),bt("hmm",function(t,e,n){var s=t.length-2;e[3]=W(t.substr(0,s)),e[4]=W(t.substr(s)),p(n).bigHour=!0}),bt("hmmss",function(t,e,n){var s=t.length-4,r=t.length-2;e[3]=W(t.substr(0,s)),e[4]=W(t.substr(s,2)),e[5]=W(t.substr(r)),p(n).bigHour=!0}),bt("Hmm",function(t,e,n){var s=t.length-2;e[3]=W(t.substr(0,s)),e[4]=W(t.substr(s))}),bt("Hmmss",function(t,e,n){var s=t.length-4,r=t.length-2;e[3]=W(t.substr(0,s)),e[4]=W(t.substr(s,2)),e[5]=W(t.substr(r))}),dt=X("Hours",!0);var Gt,Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Ft,weekdaysMin:Ht,weekdaysShort:Ut,meridiemParse:/[ap]\.?m?\.?/i},Kt={},Zt={};function Jt(t){return t&&t.toLowerCase().replace("_","-")}function te(e){var s;if(void 0===Kt[e]&&void 0!==t&&t&&t.exports&&null!=e.match("^[^/\\\\]*$"))try{s=Gt._abbr,n("Lw2E")("./"+e),ee(s)}catch(s){Kt[e]=null}return Kt[e]}function ee(t,e){return t&&((e=l(e)?se(t):ne(t,e))?Gt=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Gt._abbr}function ne(t,e){if(null===e)return delete Kt[t],null;var n,s=Qt;if(e.abbr=t,null!=Kt[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=Kt[t]._config;else if(null!=e.parentLocale)if(null!=Kt[e.parentLocale])s=Kt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Zt[e.parentLocale]||(Zt[e.parentLocale]=[]),Zt[e.parentLocale].push({name:t,config:e}),null;s=n._config}return Kt[t]=new k(D(s,e)),Zt[t]&&Zt[t].forEach(function(t){ne(t.name,t.config)}),ee(t),Kt[t]}function se(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return Gt;if(!r(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,s,r,i=0;i<t.length;){for(e=(r=Jt(t[i]).split("-")).length,n=(n=Jt(t[i+1]))?n.split("-"):null;0<e;){if(s=te(r.slice(0,e).join("-")))return s;if(n&&n.length>=e&&function(t,e){for(var n=Math.min(t.length,e.length),s=0;s<n;s+=1)if(t[s]!==e[s])return s;return n}(r,n)>=e-1)break;e--}i++}return Gt}(t)}function re(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[1]<0||11<e[1]?1:e[2]<1||e[2]>wt(e[0],e[1])?2:e[3]<0||24<e[3]||24===e[3]&&(0!==e[4]||0!==e[5]||0!==e[6])?3:e[4]<0||59<e[4]?4:e[5]<0||59<e[5]?5:e[6]<0||999<e[6]?6:-1,p(t)._overflowDayOfYear&&(e<0||2<e)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}var ie=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ae=/Z|[+-]\d\d(?::?\d\d)?/,le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ue=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ce=/^\/?Date\((-?\d+)/i,he=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,de={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fe(t){var e,n,s,r,i,o,a=ie.exec(l=t._i)||oe.exec(l),l=le.length,u=ue.length;if(a){for(p(t).iso=!0,e=0,n=l;e<n;e++)if(le[e][1].exec(a[1])){r=le[e][0],s=!1!==le[e][2];break}if(null==r)t._isValid=!1;else{if(a[3]){for(e=0,n=u;e<n;e++)if(ue[e][1].exec(a[3])){i=(a[2]||" ")+ue[e][0];break}if(null==i)return void(t._isValid=!1)}if(s||null==i){if(a[4]){if(!ae.exec(a[4]))return void(t._isValid=!1);o="Z"}t._f=r+(i||"")+(o||""),ye(t)}else t._isValid=!1}}else t._isValid=!1}function pe(t){var e,n,s,r,i=he.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(s=e=function(t,e,n,s,r,i){return t=[function(t){return(t=parseInt(t,10))<=49?2e3+t:t<=999?1900+t:t}(t),Ct.indexOf(e),parseInt(n,10),parseInt(s,10),parseInt(r,10)],i&&t.push(parseInt(i,10)),t}(i[4],i[3],i[2],i[5],i[6],i[7]),r=t,(n=i[1])&&Ut.indexOf(n)!==new Date(s[0],s[1],s[2]).getDay()?(p(r).weekdayMismatch=!0,r._isValid=!1):(t._a=e,t._tzm=(s=i[9],r=i[10],(n=i[8])?de[n]:s?0:((n=parseInt(r,10))-(s=n%100))/100*60+s),t._d=Pt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0)):t._isValid=!1}function ge(t,e,n){return null!=t?t:null!=e?e:n}function me(t){var e,n,r,i,o,a,l,u,c,h,d,f=[];if(!t._d){for(r=t,i=new Date(s.now()),n=r._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&(null!=(i=(r=t)._w).GG||null!=i.W||null!=i.E?(u=1,c=4,o=ge(i.GG,r._a[0],It(ve(),1,4).year),a=ge(i.W,1),((l=ge(i.E,1))<1||7<l)&&(h=!0)):(u=r._locale._week.dow,c=r._locale._week.doy,d=It(ve(),u,c),o=ge(i.gg,r._a[0],d.year),a=ge(i.w,d.week),null!=i.d?((l=i.d)<0||6<l)&&(h=!0):null!=i.e?(l=i.e+u,(i.e<0||6<i.e)&&(h=!0)):l=u),a<1||a>Lt(o,u,c)?p(r)._overflowWeeks=!0:null!=h?p(r)._overflowWeekday=!0:(d=Mt(o,a,l,u,c),r._a[0]=d.year,r._dayOfYear=d.dayOfYear)),null!=t._dayOfYear&&(i=ge(t._a[0],n[0]),(t._dayOfYear>jt(i)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),h=Pt(i,0,t._dayOfYear),t._a[1]=h.getUTCMonth(),t._a[2]=h.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=n[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Pt:Nt).apply(null,f),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}function ye(t){if(t._f===s.ISO_8601)fe(t);else if(t._f===s.RFC_2822)pe(t);else{t._a=[],p(t).empty=!0;for(var e,n,r,i,a,l=""+t._i,u=l.length,c=0,h=V(t._f,t._locale).match(N)||[],d=h.length,f=0;f<d;f++)(e=(l.match(pt(n=h[f],t))||[])[0])&&(0<(r=l.substr(0,l.indexOf(e))).length&&p(t).unusedInput.push(r),l=l.slice(l.indexOf(e)+e.length),c+=e.length),M[n]?(e?p(t).empty=!1:p(t).unusedTokens.push(n),r=n,a=t,null!=(i=e)&&o(_t,r)&&_t[r](i,a._a,a,r)):t._strict&&!e&&p(t).unusedTokens.push(n);p(t).charsLeftOver=u-c,0<l.length&&p(t).unusedInput.push(l),t._a[3]<=12&&!0===p(t).bigHour&&0<t._a[3]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[3],t._meridiem),null!==(u=p(t).era)&&(t._a[0]=t._locale.erasConvertYear(u,t._a[0])),me(t),re(t)}}function _e(t){var e,n,o,a=t._i,f=t._f;return t._locale=t._locale||se(t._l),null===a||void 0===f&&""===a?m({nullInput:!0}):("string"==typeof a&&(t._i=a=t._locale.preparse(a)),S(a)?new w(re(a)):(c(a)?t._d=a:r(f)?function(t){var e,n,s,r,i,o,a=!1,l=t._f.length;if(0===l)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<l;r++)i=0,o=!1,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ye(e),g(e)&&(o=!0),i=(i+=p(e).charsLeftOver)+10*p(e).unusedTokens.length,p(e).score=i,a?i<s&&(s=i,n=e):(null==s||i<s||o)&&(s=i,n=e,o&&(a=!0));d(t,n||e)}(t):f?ye(t):l(f=(a=t)._i)?a._d=new Date(s.now()):c(f)?a._d=new Date(f.valueOf()):"string"==typeof f?null!==(e=ce.exec((n=a)._i))?n._d=new Date(+e[1]):(fe(n),!1===n._isValid&&(delete n._isValid,pe(n),!1===n._isValid&&(delete n._isValid,n._strict?n._isValid=!1:s.createFromInputFallback(n)))):r(f)?(a._a=h(f.slice(0),function(t){return parseInt(t,10)}),me(a)):i(f)?(e=a)._d||(o=void 0===(n=z(e._i)).day?n.date:n.day,e._a=h([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),me(e)):u(f)?a._d=new Date(f):s.createFromInputFallback(a),g(t)||(t._d=null),t))}function be(t,e,n,s,o){var l={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(i(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=s,(o=new w(re(_e(o=l))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function ve(t,e,n,s){return be(t,e,n,s,!1)}function we(t,e){var n,s;if(!(e=1===e.length&&r(e[0])?e[0]:e).length)return ve();for(n=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](n)||(n=e[s]);return n}s.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){},st=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ve.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),rt=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ve.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});var Se=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ce(t){var e=(t=z(t)).year||0,n=t.quarter||0,s=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(t){var e,n,s=!1,r=Se.length;for(e in t)if(o(t,e)&&(-1===mt.call(Se,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Se[n]]){if(s)return!1;parseFloat(t[Se[n]])!==W(t[Se[n]])&&(s=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+i+7*r,this._months=+s+3*n+12*e,this._data={},this._locale=se(),this._bubble()}function Oe(t){return t instanceof Ce}function Ee(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function xe(t,e){I(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+A(~~(t/60),2)+e+A(~~t%60,2)})}xe("Z",":"),xe("ZZ",""),ft("Z",ht),ft("ZZ",ht),bt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=De(ht,t)});var Te=/([\+\-]|\d\d)/gi;function De(t,e){return null===(e=(e||"").match(t))?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Te)||["-",0,0])[1]+W(t[2]))?0:"+"===t[0]?e:-e}function ke(t,e){var n;return e._isUTC?(e=e.clone(),n=(S(t)||c(t)?t:ve(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),s.updateOffset(e,!1),e):ve(t).local()}function je(t){return-Math.round(t._d.getTimezoneOffset())}function Ae(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ne=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Re(t,e){var n,s=t,r=null;return Oe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:u(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(r=Ne.exec(t))?(n="-"===r[1]?-1:1,s={y:0,d:W(r[2])*n,h:W(r[3])*n,m:W(r[4])*n,s:W(r[5])*n,ms:W(Ee(1e3*r[6]))*n}):(r=Pe.exec(t))?s={y:Me(r[2],n="-"===r[1]?-1:1),M:Me(r[3],n),w:Me(r[4],n),d:Me(r[5],n),h:Me(r[6],n),m:Me(r[7],n),s:Me(r[8],n)}:null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(e=function(t,e){var n;return t.isValid()&&e.isValid()?(e=ke(e,t),t.isBefore(e)?n=Ie(t,e):((n=Ie(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(ve(s.from),ve(s.to)),(s={}).ms=e.milliseconds,s.M=e.months),r=new Ce(s),Oe(t)&&o(t,"_locale")&&(r._locale=t._locale),Oe(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function Me(t,e){return t=t&&parseFloat(t.replace(",",".")),(isNaN(t)?0:t)*e}function Ie(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Le(t,e){return function(n,s){var r;return null===s||isNaN(+s)||(x(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),Ve(this,Re(n,s),t),this}}function Ve(t,e,n,r){var i=e._milliseconds,o=Ee(e._days);e=Ee(e._months),t.isValid()&&(r=null==r||r,e&&Tt(t,G(t,"Month")+e*n),o&&Q(t,"Date",G(t,"Date")+o*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&s.updateOffset(t,o||e))}function Fe(t){return"string"==typeof t||t instanceof String}function Ue(t){return S(t)||c(t)||Fe(t)||u(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter(function(e){return!u(e)&&Fe(t)}).length),e&&n}(t)||function(t){var e,n=i(t)&&!a(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=r.length;for(e=0;e<l;e+=1)s=s||o(t,r[e]);return n&&s}(t)||null==t}function He(t,e){if(t.date()<e.date())return-He(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(n,"months");return-(n+(e=e-s<0?(e-s)/(s-t.clone().add(n-1,"months")):(e-s)/(t.clone().add(1+n,"months")-s)))||0}function ze(t){return void 0===t?this._locale._abbr:(null!=(t=se(t))&&(this._locale=t),this)}function $e(){return this._locale}Re.fn=Ce.prototype,Re.invalid=function(){return Re(NaN)},St=Le(1,"add"),Ft=Le(-1,"subtract"),s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ht=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});var qe,Ye=126227808e5;function Be(t,e){return(t%e+e)%e}function We(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-Ye:new Date(t,e,n).valueOf()}function Xe(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-Ye:Date.UTC(t,e,n)}function Ge(t,e){return e.erasAbbrRegex(t)}function Qe(){for(var t=[],e=[],n=[],s=[],r=this.eras(),i=0,o=r.length;i<o;++i)e.push(gt(r[i].name)),t.push(gt(r[i].abbr)),n.push(gt(r[i].narrow)),s.push(gt(r[i].name)),s.push(gt(r[i].abbr)),s.push(gt(r[i].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function Ke(t,e){I(0,[t,t.length],0,e)}function Ze(t,e,n,s,r){var i;return null==t?It(this,s,r).year:(i=Lt(t,s,r),(function(t,e,n,s,r){return e=Pt((t=Mt(t,e,n,s,r)).year,0,t.dayOfYear),this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}).call(this,t,e=i<e?i:e,n,s,r))}for(I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ft("N",Ge),ft("NN",Ge),ft("NNN",Ge),ft("NNNN",function(t,e){return e.erasNameRegex(t)}),ft("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),bt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,s){(s=n._locale.erasParse(t,s,n._strict))?p(n).era=s:p(n).invalidEra=t}),ft("y",lt),ft("yy",lt),ft("yyy",lt),ft("yyyy",lt),ft("yo",function(t,e){return e._eraYearOrdinalRegex||lt}),bt(["y","yy","yyy","yyyy"],0),bt(["yo"],function(t,e,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),e[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(t,r):parseInt(t,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ke("gggg","weekYear"),Ke("ggggg","weekYear"),Ke("GGGG","isoWeekYear"),Ke("GGGGG","isoWeekYear"),U("weekYear","gg"),U("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),ft("G",ut),ft("g",ut),ft("GG",nt,Z),ft("gg",nt,Z),ft("GGGG",ot,tt),ft("gggg",ot,tt),ft("GGGGG",at,et),ft("ggggg",at,et),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,s){e[s.substr(0,2)]=W(t)}),vt(["gg","GG"],function(t,e,n,r){e[r]=s.parseTwoDigitYear(t)}),I("Q",0,"Qo","quarter"),U("quarter","Q"),q("quarter",7),ft("Q",K),bt("Q",function(t,e){e[1]=3*(W(t)-1)}),I("D",["DD",2],"Do","date"),U("date","D"),q("date",9),ft("D",nt),ft("DD",nt,Z),ft("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),bt(["D","DD"],2),bt("Do",function(t,e){e[2]=W(t.match(nt)[0])}),ot=X("Date",!0),I("DDD",["DDDD",3],"DDDo","dayOfYear"),U("dayOfYear","DDD"),q("dayOfYear",4),ft("DDD",it),ft("DDDD",J),bt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=W(t)}),I("m",["mm",2],0,"minute"),U("minute","m"),q("minute",14),ft("m",nt),ft("mm",nt,Z),bt(["m","mm"],4),tt=X("Minutes",!1),I("s",["ss",2],0,"second"),U("second","s"),q("second",15),ft("s",nt),ft("ss",nt,Z),bt(["s","ss"],5),at=X("Seconds",!1),I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),U("millisecond","ms"),q("millisecond",16),ft("S",it,K),ft("SS",it,Z),ft("SSS",it,J),qe="SSSS";qe.length<=9;qe+="S")ft(qe,lt);function Je(t,e){e[6]=W(1e3*("0."+t))}for(qe="S";qe.length<=9;qe+="S")bt(qe,Je);function tn(t){return t}function en(t,e,n,s){var r=se();return s=f().set(s,e),r[n](s,t)}function nn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return en(t,e,n,"month");for(var s=[],r=0;r<12;r++)s[r]=en(t,r,n,"month");return s}function sn(t,e,n,s){"boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e=e||"";var r,i=se(),o=t?i._week.dow:0,a=[];if(null!=n)return en(e,(n+o)%7,s,"day");for(r=0;r<7;r++)a[r]=en(e,(r+o)%7,s,"day");return a}et=X("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName"),(K=w.prototype).add=St,K.calendar=function(t,e){1===arguments.length&&(arguments[0]?Ue(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=i(t)&&!a(t),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<s.length;r+=1)n=n||o(t,s[r]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n=ke(t=t||ve(),this).startOf("day");return n=s.calendarFormat(this,n)||"sameElse",e=e&&(T(e[n])?e[n].call(this,t):e[n]),this.format(e||this.localeData().calendar(n,this,ve(t)))},K.clone=function(){return new w(this)},K.diff=function(t,e,n){var s,r,i;if(!this.isValid())return NaN;if(!(s=ke(t,this)).isValid())return NaN;switch(r=6e4*(s.utcOffset()-this.utcOffset()),e=H(e)){case"year":i=He(this,s)/12;break;case"month":i=He(this,s);break;case"quarter":i=He(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-r)/864e5;break;case"week":i=(this-s-r)/6048e5;break;default:i=this-s}return n?i:B(i)},K.endOf=function(t){var e,n;if(void 0===(t=H(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Xe:We,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Be(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Be(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Be(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},K.format=function(t){return t=L(this,t=t||(this.isUtc()?s.defaultFormatUtc:s.defaultFormat)),this.localeData().postformat(t)},K.from=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||ve(t).isValid())?Re({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},K.fromNow=function(t){return this.from(ve(),t)},K.to=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||ve(t).isValid())?Re({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},K.toNow=function(t){return this.to(ve(),t)},K.get=function(t){return T(this[t=H(t)])?this[t]():this},K.invalidAt=function(){return p(this).overflow},K.isAfter=function(t,e){return t=S(t)?t:ve(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=H(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},K.isBefore=function(t,e){return t=S(t)?t:ve(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=H(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},K.isBetween=function(t,e,n,s){return t=S(t)?t:ve(t),e=S(e)?e:ve(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(s=s||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===s[1]?this.isBefore(e,n):!this.isAfter(e,n))},K.isSame=function(t,e){return t=S(t)?t:ve(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=H(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},K.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},K.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},K.isValid=function(){return g(this)},K.lang=Ht,K.locale=ze,K.localeData=$e,K.max=rt,K.min=st,K.parsingFlags=function(){return d({},p(this))},K.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:$[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=z(t)),s=n.length,r=0;r<s;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=H(t)]))return this[t](e);return this},K.startOf=function(t){var e,n;if(void 0===(t=H(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Xe:We,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Be(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Be(e,6e4);break;case"second":e=this._d.valueOf(),e-=Be(e,1e3)}return this._d.setTime(e),s.updateOffset(this,!0),this},K.subtract=Ft,K.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},K.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},K.toDate=function(){return new Date(this.valueOf())},K.toISOString=function(t){if(!this.isValid())return null;var e=(t=!0!==t)?this.clone().utc():this;return e.year()<0||9999<e.year()?L(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(e,"Z")):L(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},K.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e="moment",n="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+e+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(K[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},K.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},K.eraName=function(){for(var t,e=this.localeData().eras(),n=0,s=e.length;n<s;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},K.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,s=e.length;n<s;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},K.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,s=e.length;n<s;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},K.eraYear=function(){for(var t,e,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(t=n[r].since<=n[r].until?1:-1,e=this.clone().startOf("day").valueOf(),n[r].since<=e&&e<=n[r].until||n[r].until<=e&&e<=n[r].since)return(this.year()-s(n[r].since).year())*t+n[r].offset;return this.year()},K.year=At,K.isLeapYear=function(){return Y(this.year())},K.weekYear=function(t){return Ze.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},K.isoWeekYear=function(t){return Ze.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},K.quarter=K.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},K.month=Dt,K.daysInMonth=function(){return wt(this.year(),this.month())},K.week=K.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},K.isoWeek=K.isoWeeks=function(t){var e=It(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},K.weeksInYear=function(){var t=this.localeData()._week;return Lt(this.year(),t.dow,t.doy)},K.weeksInWeekYear=function(){var t=this.localeData()._week;return Lt(this.weekYear(),t.dow,t.doy)},K.isoWeeksInYear=function(){return Lt(this.year(),1,4)},K.isoWeeksInISOWeekYear=function(){return Lt(this.isoWeekYear(),1,4)},K.date=ot,K.day=K.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-s,"d")):s},K.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},K.isoWeekday=function(t){return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN;var e,n},K.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},K.hour=K.hours=dt,K.minute=K.minutes=tt,K.second=K.seconds=at,K.millisecond=K.milliseconds=et,K.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?i:je(this);if("string"==typeof t){if(null===(t=De(ht,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=je(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ve(this,Re(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this},K.utc=function(t){return this.utcOffset(0,t)},K.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(je(this),"m")),this},K.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=De(ct,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},K.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ve(t).utcOffset():0,(this.utcOffset()-t)%60==0)},K.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},K.isLocal=function(){return!!this.isValid()&&!this._isUTC},K.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},K.isUtc=Ae,K.isUTC=Ae,K.zoneAbbr=function(){return this._isUTC?"UTC":""},K.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},K.dates=O("dates accessor is deprecated. Use date instead.",ot),K.months=O("months accessor is deprecated. Use month instead",Dt),K.years=O("years accessor is deprecated. Use year instead",At),K.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),K.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return v(e,this),(e=_e(e))._a?(t=(e._isUTC?f:ve)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,n){for(var s=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),i=0,o=0;o<s;o++)W(t[o])!==W(e[o])&&i++;return i+r}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),(Z=k.prototype).calendar=function(t,e,n){return T(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},Z.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(N).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},Z.invalidDate=function(){return this._invalidDate},Z.ordinal=function(t){return this._ordinal.replace("%d",t)},Z.preparse=tn,Z.postformat=tn,Z.relativeTime=function(t,e,n,s){var r=this._relativeTime[n];return T(r)?r(t,e,n,s):r.replace(/%d/i,t)},Z.pastFuture=function(t,e){return T(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},Z.set=function(t){var e,n;for(n in t)o(t,n)&&(T(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Z.eras=function(t,e){for(var n,r=this._eras||se("en")._eras,i=0,o=r.length;i<o;++i){switch(typeof r[i].since){case"string":n=s(r[i].since).startOf("day"),r[i].since=n.valueOf()}switch(typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=s(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}}return r},Z.erasParse=function(t,e,n){var s,r,i,o,a,l=this.eras();for(t=t.toUpperCase(),s=0,r=l.length;s<r;++s)if(i=l[s].name.toUpperCase(),o=l[s].abbr.toUpperCase(),a=l[s].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[s];break;case"NNNN":if(i===t)return l[s];break;case"NNNNN":if(a===t)return l[s]}else if(0<=[i,o,a].indexOf(t))return l[s]},Z.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?s(t.since).year():s(t.since).year()+(e-t.offset)*n},Z.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||Qe.call(this),t?this._erasAbbrRegex:this._erasRegex},Z.erasNameRegex=function(t){return o(this,"_erasNameRegex")||Qe.call(this),t?this._erasNameRegex:this._erasRegex},Z.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||Qe.call(this),t?this._erasNarrowRegex:this._erasRegex},Z.months=function(t,e){return t?(r(this._months)?this._months:this._months[(this._months.isFormat||Ot).test(e)?"format":"standalone"])[t.month()]:r(this._months)?this._months:this._months.standalone},Z.monthsShort=function(t,e){return t?(r(this._monthsShort)?this._monthsShort:this._monthsShort[Ot.test(e)?"format":"standalone"])[t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Z.monthsParse=function(t,e,n){var s,r;if(this._monthsParseExact)return(function(t,e,n){var s,r,i;if(t=t.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=mt.call(this._shortMonthsParse,t))?r:null:-1!==(r=mt.call(this._longMonthsParse,t))?r:null:"MMM"===e?-1!==(r=mt.call(this._shortMonthsParse,t))||-1!==(r=mt.call(this._longMonthsParse,t))?r:null:-1!==(r=mt.call(this._longMonthsParse,t))||-1!==(r=mt.call(this._shortMonthsParse,t))?r:null}).call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(n&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!n&&this._monthsParse[s].test(t))return s}},Z.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||kt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=xt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Z.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||kt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Et),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Z.week=function(t){return It(t,this._week.dow,this._week.doy).week},Z.firstDayOfYear=function(){return this._week.doy},Z.firstDayOfWeek=function(){return this._week.dow},Z.weekdays=function(t,e){return e=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Vt(e,this._week.dow):t?e[t.day()]:e},Z.weekdaysMin=function(t){return!0===t?Vt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Z.weekdaysShort=function(t){return!0===t?Vt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Z.weekdaysParse=function(t,e,n){var s,r;if(this._weekdaysParseExact)return(function(t,e,n){var s,r,i;if(t=t.toLocaleLowerCase(),!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=mt.call(this._weekdaysParse,t))?r:null:"ddd"===e?-1!==(r=mt.call(this._shortWeekdaysParse,t))?r:null:-1!==(r=mt.call(this._minWeekdaysParse,t))?r:null:"dddd"===e?-1!==(r=mt.call(this._weekdaysParse,t))||-1!==(r=mt.call(this._shortWeekdaysParse,t))||-1!==(r=mt.call(this._minWeekdaysParse,t))?r:null:"ddd"===e?-1!==(r=mt.call(this._shortWeekdaysParse,t))||-1!==(r=mt.call(this._weekdaysParse,t))||-1!==(r=mt.call(this._minWeekdaysParse,t))?r:null:-1!==(r=mt.call(this._minWeekdaysParse,t))||-1!==(r=mt.call(this._weekdaysParse,t))||-1!==(r=mt.call(this._shortWeekdaysParse,t))?r:null}).call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(n&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(n&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!n&&this._weekdaysParse[s].test(t))return s}},Z.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Z.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Z.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Z.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Z.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ee("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===W(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),s.lang=O("moment.lang is deprecated. Use moment.locale instead.",ee),s.langData=O("moment.langData is deprecated. Use moment.localeData instead.",se);var rn=Math.abs;function on(t,e,n,s){return e=Re(e,n),t._milliseconds+=s*e._milliseconds,t._days+=s*e._days,t._months+=s*e._months,t._bubble()}function an(t){return t<0?Math.floor(t):Math.ceil(t)}function ln(t){return 4800*t/146097}function un(t){return 146097*t/4800}function cn(t){return function(){return this.as(t)}}function hn(t){return function(){return this.isValid()?this._data[t]:NaN}}it=cn("ms"),J=cn("s"),St=cn("m"),rt=cn("h"),st=cn("d"),Ft=cn("w"),dt=cn("M"),tt=cn("Q"),at=cn("y"),et=hn("milliseconds"),ot=hn("seconds"),At=hn("minutes"),Z=hn("hours");var dn=hn("days"),fn=hn("months"),pn=hn("years"),gn=Math.round,mn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},yn=Math.abs;function _n(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,s,r,i,o,a=yn(this._milliseconds)/1e3,l=yn(this._days),u=yn(this._months),c=this.asSeconds();return c?(t=B(a/60),e=B(t/60),a%=60,t%=60,n=B(u/12),u%=12,s=a?a.toFixed(3).replace(/\.?0+$/,""):"",r=_n(this._months)!==_n(c)?"-":"",i=_n(this._days)!==_n(c)?"-":"",o=_n(this._milliseconds)!==_n(c)?"-":"",(c<0?"-":"")+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(l?i+l+"D":"")+(e||t||a?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(a?o+s+"S":"")):"P0D"}var vn=Ce.prototype;return vn.isValid=function(){return this._isValid},vn.abs=function(){var t=this._data;return this._milliseconds=rn(this._milliseconds),this._days=rn(this._days),this._months=rn(this._months),t.milliseconds=rn(t.milliseconds),t.seconds=rn(t.seconds),t.minutes=rn(t.minutes),t.hours=rn(t.hours),t.months=rn(t.months),t.years=rn(t.years),this},vn.add=function(t,e){return on(this,t,e,1)},vn.subtract=function(t,e){return on(this,t,e,-1)},vn.as=function(t){if(!this.isValid())return NaN;var e,n,s=this._milliseconds;if("month"===(t=H(t))||"quarter"===t||"year"===t)switch(e=this._days+s/864e5,n=this._months+ln(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(un(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},vn.asMilliseconds=it,vn.asSeconds=J,vn.asMinutes=St,vn.asHours=rt,vn.asDays=st,vn.asWeeks=Ft,vn.asMonths=dt,vn.asQuarters=tt,vn.asYears=at,vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},vn._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,s=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*an(un(n)+e),n=e=0),s.milliseconds=t%1e3,t=B(t/1e3),s.seconds=t%60,t=B(t/60),s.minutes=t%60,t=B(t/60),s.hours=t%24,e+=B(t/24),n+=t=B(ln(e)),e-=an(un(t)),t=B(n/12),n%=12,s.days=e,s.months=n,s.years=t,this},vn.clone=function(){return Re(this)},vn.get=function(t){return t=H(t),this.isValid()?this[t+"s"]():NaN},vn.milliseconds=et,vn.seconds=ot,vn.minutes=At,vn.hours=Z,vn.days=dn,vn.weeks=function(){return B(this.days()/7)},vn.months=fn,vn.years=pn,vn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=mn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(s=Object.assign({},mn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),e=function(t,e,n,s){var r=Re(t).abs(),i=gn(r.as("s")),o=gn(r.as("m")),a=gn(r.as("h")),l=gn(r.as("d")),u=gn(r.as("M")),c=gn(r.as("w"));return r=gn(r.as("y")),i=(i<=n.ss?["s",i]:i<n.s&&["ss",i])||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l],(i=(i=null!=n.w?i||c<=1&&["w"]||c<n.w&&["ww",c]:i)||u<=1&&["M"]||u<n.M&&["MM",u]||r<=1&&["y"]||["yy",r])[2]=e,i[3]=0<+t,i[4]=s,(function(t,e,n,s,r){return r.relativeTime(e||1,!!n,t,s)}).apply(null,i)}(this,!n,s,t=this.localeData()),n&&(e=t.pastFuture(+this,e)),t.postformat(e)},vn.toISOString=bn,vn.toString=bn,vn.toJSON=bn,vn.locale=ze,vn.localeData=$e,vn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),vn.lang=Ht,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ft("x",ut),ft("X",/[+-]?\d+(\.\d{1,3})?/),bt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),bt("x",function(t,e,n){n._d=new Date(W(t))}),s.version="2.29.4",e=ve,s.fn=K,s.min=function(){return we("isBefore",[].slice.call(arguments,0))},s.max=function(){return we("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=f,s.unix=function(t){return ve(1e3*t)},s.months=function(t,e){return nn(t,e,"months")},s.isDate=c,s.locale=ee,s.invalid=m,s.duration=Re,s.isMoment=S,s.weekdays=function(t,e,n){return sn(t,e,n,"weekdays")},s.parseZone=function(){return ve.apply(null,arguments).parseZone()},s.localeData=se,s.isDuration=Oe,s.monthsShort=function(t,e){return nn(t,e,"monthsShort")},s.weekdaysMin=function(t,e,n){return sn(t,e,n,"weekdaysMin")},s.defineLocale=ne,s.updateLocale=function(t,e){var n,s;return null!=e?(s=Qt,null!=Kt[t]&&null!=Kt[t].parentLocale?Kt[t].set(D(Kt[t]._config,e)):(e=D(s=null!=(n=te(t))?n._config:s,e),null==n&&(e.abbr=t),(s=new k(e)).parentLocale=Kt[t],Kt[t]=s),ee(t)):null!=Kt[t]&&(null!=Kt[t].parentLocale?(Kt[t]=Kt[t].parentLocale,t===ee()&&ee(t)):null!=Kt[t]&&delete Kt[t]),Kt[t]},s.locales=function(){return j(Kt)},s.weekdaysShort=function(t,e,n){return sn(t,e,n,"weekdaysShort")},s.normalizeUnits=H,s.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==mn[t]&&(void 0===e?mn[t]:(mn[t]=e,"s"===t&&(mn.ss=e-1),!0))},s.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},s.prototype=K,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,n("YuTi")(t))},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return D}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return H}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return g});var s=n("fXoL"),r=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),u=n("ofXK");class c{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[r,i]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(r)||[];o.push(i),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class b{constructor(t,e,n,s){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new g,this.urlWithParams=e}serializeBody(){return null===this.body?null:m(this.body)||y(this.body)||_(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_(this.body)?null:y(this.body)?this.body.type||null:m(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new b(e,n,r,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:i})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class O extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let x=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof b)s=t;else{let r=void 0;r=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof g?n.params:new g({fromObject:n.params})),s=new b(t,e,void 0!==n.body?n.body:null,{headers:r,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(r.a)(s).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof b||"events"===n.observe)return i;const u=i.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(Object(l.a)(t=>t.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(c))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class T{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const D=new s.q("HTTP_INTERCEPTORS");let k=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const j=/^\)\]\}',?\n/;class A{}let N=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const s=t.serializeBody();let r=null;const i=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,s=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new S({headers:i,status:e,statusText:s,url:o}),r},o=()=>{let{headers:s,status:r,statusText:o,url:a}=i(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(j,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,u&&(u=!1,l={error:c,text:l})}}u?(e.next(new C({body:l,headers:s,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new O({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=i(),r=new O({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(r)};let l=!1;const u=s=>{l||(e.next(i()),l=!0);let r={type:v.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(r.total=s.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},c=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",u),null!==s&&n.upload&&n.upload.addEventListener("progress",c)),n.send(s),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",u),null!==s&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(A))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const R=new s.q("XSRF_COOKIE_NAME"),M=new s.q("XSRF_HEADER_NAME");class I{}let L=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(u.w)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(u.d),s.Xb(s.B),s.Xb(R))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(I),s.Xb(M))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(D,[]);this.chain=t.reduceRight((t,e)=>new T(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(h),s.Xb(s.r))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:k}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[V,{provide:D,useExisting:V,multi:!0},{provide:I,useClass:L},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[x,{provide:c,useClass:F},P,{provide:h,useExisting:P},N,{provide:A,useExisting:N}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return Bt}),n.d(e,"b",function(){return Ot}),n.d(e,"c",function(){return Y}),n.d(e,"d",function(){return q}),n.d(e,"e",function(){return B}),n.d(e,"f",function(){return $}),n.d(e,"g",function(){return dn}),n.d(e,"h",function(){return fn}),n.d(e,"i",function(){return En}),n.d(e,"j",function(){return gn});var s=n("ofXK"),r=n("fXoL"),i=n("Cfvw"),o=n("LRne"),a=n("2Vo4"),l=n("z+Ro"),u=n("DH7j"),c=n("7o/Q");class h extends c.a{notifyNext(t,e,n,s,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class d extends c.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var f=n("SeVD"),p=n("HDdC");function g(t,e,n,s,r=new d(t,n,s)){if(!r.closed)return e instanceof p.a?e.subscribe(r):Object(f.a)(e)(r)}var m=n("yCtX");const y={};class _{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new b(t,this.resultSelector))}}class b extends h{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(y),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(g(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,r=this.toRespond?s[n]===y?--this.toRespond:this.toRespond:0;s[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}var v=n("sVev"),w=n("GyhO"),S=n("NXyV"),C=n("EY2u"),O=n("XNiG"),E=n("lJxs"),x=n("eIep"),T=n("IzEk"),D=n("JX91"),k=n("Kqap"),j=n("pLZG"),A=n("JIr8"),N=n("bOdf"),P=n("BFxc"),R=n("XDbj"),M=n("xbPD"),I=n("SpAZ"),L=n("SxV6"),V=n("5+tZ"),F=n("vkgz"),U=n("nYR2"),H=n("bHdf");class z{constructor(t,e){this.id=t,this.url=e}}class $ extends z{constructor(t,e,n="imperative",s=null){super(t,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class q extends z{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Y extends z{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class B extends z{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class W extends z{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends z{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G extends z{constructor(t,e,n,s,r){super(t,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Q extends z{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends z{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class J{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class tt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class it{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ot(t){return new it(t)}function at(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function lt(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.length<t.length))return null;const r={};for(let i=0;i<s.length;i++){const e=s[i],n=t[i];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,s.length),posParams:r}}function ut(t,e){const n=Object.keys(t),s=Object.keys(e);if(!n||!s||n.length!=s.length)return!1;let r;for(let i=0;i<n.length;i++)if(r=n[i],!ct(t[r],e[r]))return!1;return!0}function ct(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),s=[...e].sort();return n.every((t,e)=>s[e]===t)}return t===e}function ht(t){return Array.prototype.concat.apply([],t)}function dt(t){return t.length>0?t[t.length-1]:null}function ft(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function pt(t){return Object(r.qb)(t)?t:Object(r.rb)(t)?Object(i.a)(Promise.resolve(t)):Object(o.a)(t)}function gt(t,e,n){return n?function(t,e){return ut(t,e)}(t.queryParams,e.queryParams)&&mt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ct(t[n],e[n]))}(t.queryParams,e.queryParams)&&yt(t.root,e.root)}function mt(t,e){if(!St(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!mt(t.children[n],e.children[n]))return!1}return!0}function yt(t,e){return _t(t,e,e.segments)}function _t(t,e,n){if(t.segments.length>n.length)return!!St(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!St(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!yt(t.children[n],e.children[n]))return!1}return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!St(t.segments,s)&&!!t.children.primary&&_t(t.children.primary,e,r)}}class bt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ot(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class vt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ft(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class wt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ot(this.parameters)),this._parameterMap}toString(){return Pt(this)}}function St(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ct{}class Ot{parse(t){const e=new Vt(t);return new bt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Tt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${kt(e)}=${kt(t)}`).join("&"):`${kt(e)}=${kt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Et=new Ot;function xt(t){return t.segments.map(t=>Pt(t)).join("/")}function Tt(t,e){if(!t.hasChildren())return xt(t);if(e){const e=t.children.primary?Tt(t.children.primary,!1):"",n=[];return ft(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${Tt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return ft(t.children,(t,s)=>{"primary"===s&&(n=n.concat(e(t,s)))}),ft(t.children,(t,s)=>{"primary"!==s&&(n=n.concat(e(t,s)))}),n}(t,(e,n)=>"primary"===n?[Tt(t.children.primary,!1)]:[`${n}:${Tt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xt(t)}/${e[0]}`:`${xt(t)}/(${e.join("//")})`}}function Dt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kt(t){return Dt(t).replace(/%3B/gi,";")}function jt(t){return Dt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function Nt(t){return At(t.replace(/\+/g,"%20"))}function Pt(t){return`${jt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${jt(t)}=${jt(e[t])}`).join("")}`;var e}const Rt=/^[^\/()?;=#]+/;function Mt(t){const e=t.match(Rt);return e?e[0]:""}const It=/^[^=?&#]+/,Lt=/^[^?&#]+/;class Vt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new vt(t,e)),n}parseSegment(){const t=Mt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new wt(At(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Mt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Mt(this.remaining);t&&(n=t,this.capture(n))}t[At(e)]=At(n)}parseQueryParam(t){const e=function(t){const e=t.match(It);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Lt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const s=Nt(e),r=Nt(n);if(t.hasOwnProperty(s)){let e=t[s];Array.isArray(e)||(e=[e],t[s]=e),e.push(r)}else t[s]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Mt(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const i=this.parseChildren();e[r]=1===Object.keys(i).length?i.primary:new vt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ft{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ut(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ut(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ht(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ht(t,this._root).map(t=>t.value)}}function Ut(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ut(t,n);if(e)return e}return null}function Ht(t,e){if(t===e.value)return[e];for(const n of e.children){const s=Ht(t,n);if(s.length)return s.unshift(e),s}return[]}class zt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function $t(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class qt extends Ft{constructor(t,e){super(t),this.snapshot=e,Qt(this,t)}toString(){return this.snapshot.toString()}}function Yt(t,e){const n=function(t,e){const n=new Xt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Gt("",new zt(n,[]))}(t,e),s=new a.a([new wt("",{})]),r=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),u=new Bt(s,r,o,l,i,"primary",e,n.root);return u.snapshot=n.root,new qt(new zt(u,[]),n)}class Bt{constructor(t,e,n,s,r,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this._futureSnapshot=a}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(Object(E.a)(t=>ot(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(E.a)(t=>ot(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Wt(t,e="emptyOnly"){const n=t.pathFromRoot;let s=0;if("always"!==e)for(s=n.length-1;s>=1;){const t=n[s],e=n[s-1];if(t.routeConfig&&""===t.routeConfig.path)s--;else{if(e.component)break;s--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class Xt{constructor(t,e,n,s,r,i,o,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}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=ot(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ot(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gt extends Ft{constructor(t,e){super(e),this.url=t,Qt(this,e)}toString(){return Kt(this._root)}}function Qt(t,e){e.value._routerState=t,e.children.forEach(e=>Qt(t,e))}function Kt(t){const e=t.children.length>0?` { ${t.children.map(Kt).join(", ")} } `:"";return`${t.value}${e}`}function Zt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ut(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ut(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!ut(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),ut(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Jt(t,e){var n,s;return ut(t.params,e.params)&&St(n=t.url,s=e.url)&&n.every((t,e)=>ut(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Jt(t.parent,e.parent))}function te(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const s of n.children)if(t.shouldReuseRoute(e.value,s.value.snapshot))return te(t,e,s);return te(t,e)})}(t,e,n);return new zt(s,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return ee(e,t),t}{const n=new Bt(new a.a((s=e.value).url),new a.a(s.params),new a.a(s.queryParams),new a.a(s.fragment),new a.a(s.data),s.outlet,s.component,s),r=e.children.map(e=>te(t,e));return new zt(n,r)}}var s}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)ee(t.children[n],e.children[n])}function ne(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function se(t){return"object"==typeof t&&null!=t&&t.outlets}function re(t,e,n,s,r){let i={};return s&&ft(s,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new bt(n.root===t?e:ie(n.root,t,e),i,r)}function ie(t,e,n){const s={};return ft(t.children,(t,r)=>{s[r]=t===e?n:ie(t,e,n)}),new vt(t.segments,s)}class oe{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&ne(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(se);if(s&&s!==dt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function le(t,e,n){if(t||(t=new vt([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,n);const s=function(t,e,n){let s=0,r=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(s>=n.length)return i;const e=t.segments[r],o=n[s];if(se(o))break;const a=""+o,l=s<n.length-1?n[s+1]:null;if(r>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!fe(a,l,e))return i;s+=2}else{if(!fe(a,{},e))return i;s++}r++}return{match:!0,pathIndex:r,commandIndex:s}}(t,e,n),r=n.slice(s.commandIndex);if(s.match&&s.pathIndex<t.segments.length){const e=new vt(t.segments.slice(0,s.pathIndex),{});return e.children.primary=new vt(t.segments.slice(s.pathIndex),t.children),ue(e,0,r)}return s.match&&0===r.length?new vt(t.segments,{}):s.match&&!t.hasChildren()?ce(t,e,n):s.match?ue(t,0,r):ce(t,e,n)}function ue(t,e,n){if(0===n.length)return new vt(t.segments,{});{const s=function(t){return se(t[0])?t[0].outlets:{primary:t}}(n),r={};return ft(s,(n,s)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[s]=le(t.children[s],e,n))}),ft(t.children,(t,e)=>{void 0===s[e]&&(r[e]=t)}),new vt(t.segments,r)}}function ce(t,e,n){const s=t.segments.slice(0,e);let r=0;for(;r<n.length;){const i=n[r];if(se(i)){const t=he(i.outlets);return new vt(s,t)}if(0===r&&ne(n[0])){s.push(new wt(t.segments[e].path,n[0])),r++;continue}const o=se(i)?i.outlets.primary:""+i,a=r<n.length-1?n[r+1]:null;o&&a&&ne(a)?(s.push(new wt(o,de(a))),r+=2):(s.push(new wt(o,{})),r++)}return new vt(s,{})}function he(t){const e={};return ft(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ce(new vt([],{}),0,t))}),e}function de(t){const e={};return ft(t,(t,n)=>e[n]=""+t),e}function fe(t,e,n){return t==n.path&&ut(e,n.parameters)}class pe{constructor(t,e,n,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Zt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=$t(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),ft(s,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(s===r)if(s.component){const r=n.getContext(s.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),s=n&&t.value.component?n.children:e,r=$t(t);for(const i of Object.keys(r))this.deactivateRouteAndItsChildren(r[i],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const s=$t(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new st(t.value.snapshot))}),t.children.length&&this.forwardEvent(new et(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(Zt(s),s===r)if(s.component){const r=n.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(s.component){const e=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const t=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ge(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=s,e.resolver=r,e.outlet&&e.outlet.activateWith(s,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ge(t){Zt(t.value),t.children.forEach(ge)}class me{constructor(t,e){this.routes=t,this.module=e}}function ye(t){return"function"==typeof t}function _e(t){return t instanceof bt}const be=Symbol("INITIAL_VALUE");function ve(){return Object(x.a)(t=>function(...t){let e=void 0,n=void 0;return Object(l.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(u.a)(t[0])&&(t=t[0]),Object(m.a)(t,n).lift(new _(e))}(t.map(t=>t.pipe(Object(T.a)(1),Object(D.a)(be)))).pipe(Object(k.a)((t,e)=>{let n=!1;return e.reduce((t,s,r)=>{if(t!==be)return t;if(s===be&&(n=!0),!n){if(!1===s)return s;if(r===e.length-1||_e(s))return s}return t},t)},be),Object(j.a)(t=>t!==be),Object(E.a)(t=>_e(t)?t:!0===t),Object(T.a)(1)))}let we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Ob(0,"router-outlet")},directives:function(){return[gn]},encapsulation:2}),t})();function Se(t,e=""){for(let n=0;n<t.length;n++){const s=t[n];Ce(s,Oe(e,s))}}function Ce(t,e){t.children&&Se(t.children,e)}function Oe(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Ee(t){const e=t.children&&t.children.map(Ee),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=we),n}function xe(t){return t.outlet||"primary"}function Te(t,e){const n=t.filter(t=>xe(t)===e);return n.push(...t.filter(t=>xe(t)!==e)),n}const De={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ke(t,e,n){var s;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},De):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||lt)(n,t,e);if(!r)return Object.assign({},De);const i={};ft(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(s=r.posParams)&&void 0!==s?s:{}}}function je(t,e,n,s,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ae(t,e,n)&&"primary"!==xe(n))}(t,n,s)){const r=new vt(e,function(t,e,n,s){const r={};r.primary=s,s._sourceSegment=t,s._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==xe(i)){const n=new vt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[xe(i)]=n}return r}(t,e,s,new vt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ae(t,e,n))}(t,n,s)){const i=new vt(t.segments,function(t,e,n,s,r,i){const o={};for(const a of s)if(Ae(t,n,a)&&!r[xe(a)]){const n=new vt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[xe(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,s,t.children,r));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new vt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ne(t,e,n,s){return!!(xe(t)===s||"primary"!==s&&Ae(e,n,t))&&("**"===t.path||ke(e,t,n).matched)}function Pe(t,e,n){return 0===e.length&&!t.children[n]}class Re{constructor(t){this.segmentGroup=t||null}}class Me{constructor(t){this.urlTree=t}}function Ie(t){return new p.a(e=>e.error(new Re(t)))}function Le(t){return new p.a(e=>e.error(new Me(t)))}function Ve(t){return new p.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Fe{constructor(t,e,n,s,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.x)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new vt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(Object(E.a)(t=>this.createUrlTree(Ue(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(A.a)(t=>{if(t instanceof Me)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Re)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(E.a)(e=>this.createUrlTree(Ue(e),t.queryParams,t.fragment))).pipe(Object(A.a)(t=>{if(t instanceof Re)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const s=t.segments.length>0?new vt([],{primary:t}):t;return new bt(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(E.a)(t=>new vt([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){const s=[];for(const r of Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return Object(i.a)(s).pipe(Object(N.a)(s=>{const r=n.children[s],i=Te(e,s);return this.expandSegmentGroup(t,i,r,s).pipe(Object(E.a)(t=>({segment:t,outlet:s})))}),Object(k.a)((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return s=>s.pipe(t?Object(j.a)((e,n)=>t(e,n,s)):I.a,Object(P.a)(1),n?Object(M.a)(e):Object(R.a)(()=>new v.a))}())}expandSegment(t,e,n,s,r,a){return Object(i.a)(n).pipe(Object(N.a)(i=>this.expandSegmentAgainstRoute(t,e,n,i,s,r,a).pipe(Object(A.a)(t=>{if(t instanceof Re)return Object(o.a)(null);throw t}))),Object(L.a)(t=>!!t),Object(A.a)((t,n)=>{if(t instanceof v.a||"EmptyError"===t.name){if(Pe(e,s,r))return Object(o.a)(new vt([],{}));throw new Re(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,s,r,i,o){return Ne(s,e,r,i)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i):Ie(e):Ie(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,s,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,s){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Le(r):this.lineralizeSegments(n,r).pipe(Object(V.a)(n=>{const r=new vt(n,{});return this.expandSegment(t,r,e,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=ke(e,s,r);if(!o)return Ie(e);const c=this.applyRedirectCommands(a,s.redirectTo,u);return s.redirectTo.startsWith("/")?Le(c):this.lineralizeSegments(s,c).pipe(Object(V.a)(s=>this.expandSegment(t,e,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,s,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(E.a)(t=>(n._loadedConfig=t,new vt(s,{})))):Object(o.a)(new vt(s,{}));const{matched:i,consumedSegments:a,lastChild:l}=ke(e,n,s);if(!i)return Ie(e);const u=s.slice(l);return this.getChildConfig(t,n,s).pipe(Object(V.a)(t=>{const s=t.module,i=t.routes,{segmentGroup:l,slicedSegments:c}=je(e,a,u,i),h=new vt(l.segments,l.children);if(0===c.length&&h.hasChildren())return this.expandChildren(s,i,h).pipe(Object(E.a)(t=>new vt(a,t)));if(0===i.length&&0===c.length)return Object(o.a)(new vt(a,{}));const d=xe(n)===r;return this.expandSegment(s,h,i,c,d?"primary":r,!0).pipe(Object(E.a)(t=>new vt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(V.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(E.a)(t=>(e._loadedConfig=t,t))):function(t){return new p.a(e=>e.error(at(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new me([],t))}runCanLoadGuards(t,e,n){const s=e.canLoad;if(!s||0===s.length)return Object(o.a)(!0);const r=s.map(s=>{const r=t.get(s);let i;if(function(t){return t&&ye(t.canLoad)}(r))i=r.canLoad(e,n);else{if(!ye(r))throw new Error("Invalid CanLoad guard");i=r(e,n)}return pt(i)});return Object(o.a)(r).pipe(ve(),Object(F.a)(t=>{if(!_e(t))return;const e=at(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(E.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return Object(o.a)(n);if(s.numberOfChildren>1||!s.children.primary)return Ve(t.redirectTo);s=s.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,s){const r=this.createSegmentGroup(t,e.root,n,s);return new bt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ft(t,(t,s)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[s]=e[r]}else n[s]=t}),n}createSegmentGroup(t,e,n,s){const r=this.createSegments(t,e.segments,n,s);let i={};return ft(e.children,(e,r)=>{i[r]=this.createSegmentGroup(t,e,n,s)}),new vt(r,i)}createSegments(t,e,n,s){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,s):this.findOrReturn(e,n))}findPosParam(t,e,n){const s=n[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let n=0;for(const s of e){if(s.path===t.path)return e.splice(n),s;n++}return t}}function Ue(t){const e={};for(const n of Object.keys(t.children)){const s=Ue(t.children[n]);(s.segments.length>0||s.hasChildren())&&(e[n]=s)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vt(t.segments.concat(e.segments),e.children)}return t}(new vt(t.segments,e))}class He{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ze{constructor(t,e){this.component=t,this.route=e}}function $e(t,e,n){const s=t._root;return Ye(s,e?e._root:null,n,[s.value])}function qe(t,e,n){const s=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(s?s.module.injector:n).get(t)}function Ye(t,e,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=$t(e);return t.children.forEach(t=>{!function(t,e,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!St(t.url,e.url);case"pathParamsOrQueryParamsChange":return!St(t.url,e.url)||!ut(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jt(t,e)||!ut(t.queryParams,e.queryParams);case"paramsChange":default:return!Jt(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new He(s)):(i.data=o.data,i._resolvedData=o._resolvedData),Ye(t,e,i.component?a?a.children:null:n,s,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ze(a.outlet.component,o))}else o&&Be(e,a,r),r.canActivateChecks.push(new He(s)),Ye(t,null,i.component?a?a.children:null:n,s,r)}(t,i[t.value.outlet],n,s.concat([t.value]),r),delete i[t.value.outlet]}),ft(i,(t,e)=>Be(t,n.getContext(e),r)),r}function Be(t,e,n){const s=$t(t),r=t.value;ft(s,(t,s)=>{Be(t,r.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new ze(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class We{}function Xe(t){return new p.a(e=>e.error(t))}class Ge{constructor(t,e,n,s,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=i}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new Xt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),s=new zt(n,e),r=new Gt(this.url,s);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Wt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const s=e.children[r],i=Te(t,r),o=this.processSegmentGroup(i,s,r);if(null===o)return null;n.push(...o)}const s=function(t){const e=[];for(const n of t){if(!Qe(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return s.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),s}processSegment(t,e,n,s){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,s);if(null!==t)return t}return Pe(e,n,s)?[]:null}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo||!Ne(t,e,n,s))return null;let r,i=[],o=[];if("**"===t.path){const s=n.length>0?dt(n).parameters:{};r=new Xt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(t),xe(t),t.component,t,Ke(e),Ze(e)+n.length,tn(t))}else{const s=ke(e,t,n);if(!s.matched)return null;i=s.consumedSegments,o=n.slice(s.lastChild),r=new Xt(i,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(t),xe(t),t.component,t,Ke(e),Ze(e)+i.length,tn(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=je(e,i,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new zt(r,t)]}if(0===a.length&&0===u.length)return[new zt(r,[])];const c=xe(t)===s,h=this.processSegment(a,l,u,c?"primary":s);return null===h?null:[new zt(r,h)]}}function Qe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Ke(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ze(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Je(t){return t.data||{}}function tn(t){return t.resolve||{}}function en(t){return Object(x.a)(e=>{const n=t(e);return n?Object(i.a)(n).pipe(Object(E.a)(()=>e)):Object(o.a)(e)})}class nn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const sn=new r.q("ROUTES");class rn{constructor(t,e,n,s){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(E.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new me(ht(s.injector.get(sn)).map(Ee),s)}))}loadModuleFactory(t){return"string"==typeof t?Object(i.a)(this.loader.load(t)):pt(t()).pipe(Object(V.a)(t=>t instanceof r.v?Object(o.a)(t):Object(i.a)(this.compiler.compileModuleAsync(t))))}}class on{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new an,this.attachRef=null}}class an{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new on,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ln{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function un(t){throw t}function cn(t,e,n){return e.parse("/")}function hn(t,e){return Object(o.a)(null)}let dn=(()=>{class t{constructor(t,e,n,s,i,o,l,u){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new O.a,this.errorHandler=un,this.malformedUriErrorHandler=cn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hn,afterPreactivation:hn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new nn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=i.get(r.x),this.console=i.get(r.Y);const c=i.get(r.z);this.isNgZoneEnabled=c instanceof r.z&&r.z.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new bt(new vt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rn(o,l,t=>this.triggerEvent(new Z(t)),t=>this.triggerEvent(new J(t))),this.routerState=Yt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Object(j.a)(t=>0!==t.id),Object(E.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(x.a)(t=>{let n=!1,s=!1;return Object(o.a)(t).pipe(Object(F.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(x.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(x.a)(t=>{const n=this.transitions.getValue();return e.next(new $(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?C.a:Promise.resolve(t)}),(s=this.ngModule.injector,r=this.configLoader,i=this.urlSerializer,a=this.config,Object(x.a)(t=>function(t,e,n,s,r){return new Fe(t,e,n,s,r).apply()}(s,r,i,t.extractedUrl,a).pipe(Object(E.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Object(F.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return Object(V.a)(i=>function(t,e,n,s,r="emptyOnly",i="legacy"){try{const a=new Ge(t,e,n,s,r,i).recognize();return null===a?Xe(new We):Object(o.a)(a)}catch(a){return Xe(a)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(Object(E.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(F.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var s,r,i,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:i,extras:a}=t,l=new $(n,this.serializeUrl(s),r,i);e.next(l);const u=Yt(s,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:s,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),C.a}),en(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),Object(F.a)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(E.a)(t=>Object.assign(Object.assign({},t),{guards:$e(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return Object(V.a)(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,s){return Object(i.a)(t).pipe(Object(V.a)(t=>function(t,e,n,s,r){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||0===i.length)return Object(o.a)(!0);const a=i.map(i=>{const o=qe(i,e,r);let a;if(function(t){return t&&ye(t.canDeactivate)}(o))a=pt(o.canDeactivate(t,e,n,s));else{if(!ye(o))throw new Error("Invalid CanDeactivate guard");a=pt(o(t,e,n,s))}return a.pipe(Object(L.a)())});return Object(o.a)(a).pipe(ve())}(t.component,t.route,n,e,s)),Object(L.a)(t=>!0!==t,!0))}(l,s,r,t).pipe(Object(V.a)(n=>n&&"boolean"==typeof n?function(t,e,n,s){return Object(i.a)(e).pipe(Object(N.a)(e=>Object(w.a)(function(t,e){return null!==t&&e&&e(new tt(t)),Object(o.a)(!0)}(e.route.parent,s),function(t,e){return null!==t&&e&&e(new nt(t)),Object(o.a)(!0)}(e.route,s),function(t,e,n){const s=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(S.a)(()=>{const r=e.guards.map(r=>{const i=qe(r,e.node,n);let o;if(function(t){return t&&ye(t.canActivateChild)}(i))o=pt(i.canActivateChild(s,t));else{if(!ye(i))throw new Error("Invalid CanActivateChild guard");o=pt(i(s,t))}return o.pipe(Object(L.a)())});return Object(o.a)(r).pipe(ve())}));return Object(o.a)(r).pipe(ve())}(t,e.path,n),function(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;if(!s||0===s.length)return Object(o.a)(!0);const r=s.map(s=>Object(S.a)(()=>{const r=qe(s,e,n);let i;if(function(t){return t&&ye(t.canActivate)}(r))i=pt(r.canActivate(e,t));else{if(!ye(r))throw new Error("Invalid CanActivate guard");i=pt(r(e,t))}return i.pipe(Object(L.a)())}));return Object(o.a)(r).pipe(ve())}(t,e.route,n))),Object(L.a)(t=>!0!==t,!0))}(s,a,t,e):Object(o.a)(n)),Object(E.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(F.a)(t=>{if(_e(t.guardsResult)){const e=at(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(j.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Y(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),en(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(F.a)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(x.a)(t=>{let n=!1;return Object(o.a)(t).pipe((s=this.paramsInheritanceStrategy,r=this.ngModule.injector,Object(V.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(o.a)(t);let a=0;return Object(i.a)(n).pipe(Object(N.a)(t=>function(t,e,n,s){return function(t,e,n,s){const r=Object.keys(t);if(0===r.length)return Object(o.a)({});const a={};return Object(i.a)(r).pipe(Object(V.a)(r=>function(t,e,n,s){const r=qe(t,e,s);return pt(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,s).pipe(Object(F.a)(t=>{a[r]=t}))),Object(P.a)(1),Object(V.a)(()=>Object.keys(a).length===r.length?Object(o.a)(a):C.a))}(t._resolve,t,e,s).pipe(Object(E.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Wt(t,n).resolve),null)))}(t.route,e,s,r)),Object(F.a)(()=>a++),Object(P.a)(1),Object(V.a)(e=>a===n.length?Object(o.a)(t):C.a))})),Object(F.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new Y(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var s,r}),Object(F.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),en(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),Object(E.a)(t=>{const e=function(t,e,n){const s=te(t,e._root,n?n._root:void 0);return new qt(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(F.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,a=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(E.a)(t=>(new pe(a,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(F.a)({next(){n=!0},complete(){n=!0}}),Object(U.a)(()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new Y(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(A.a)(n=>{if(s=!0,(r=n)&&r.ngNavigationCancelingError){const s=_e(n.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Y(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const s=new B(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var r;return C.a}));var r,a,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:s}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(s,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Se(t),this.config=t.map(Ee),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:s,fragment:r,queryParamsHandling:i,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let u=null;switch(i){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,s,r){if(0===n.length)return re(e.root,e.root,e,s,r);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oe(!0,0,t);let e=0,n=!1;const s=t.reduce((t,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const e={};return ft(s.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(s.segmentPath)return[...t,s.segmentPath]}return"string"!=typeof s?[...t,s]:0===r?(s.split("/").forEach((s,r)=>{0==r&&"."===s||(0==r&&""===s?n=!0:".."===s?e++:""!=s&&t.push(s))}),t):[...t,s]},[]);return new oe(n,e,s)}(n);if(i.toRoot())return re(e.root,new vt([],{}),e,s,r);const o=function(t,e,n){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ae(t,t===e.root,0)}const s=ne(t.commands[0])?0:1;return function(t,e,n){let s=t,r=e,i=n;for(;i>r;){if(i-=r,s=s.parent,!s)throw new Error("Invalid number of '../'");r=s.segments.length}return new ae(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?ue(o.segmentGroup,o.index,i.commands):le(o.segmentGroup,o.index,i.commands);return re(o.segmentGroup,a,e,s,r)}(a,this.currentUrlTree,t,u,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=_e(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(_e(t))return gt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return gt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const s=t[n];return null!=s&&(e[n]=s),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,s,r){const i=this.getTransition(),o="imperative"!==e&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;r?(l=r.resolve,u=r.reject,c=r.promise):c=new Promise((t,e)=>{l=t,u=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,s){const r=this.urlSerializer.serialize(t);s=s||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},s),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},s),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.M),r.Xb(Ct),r.Xb(an),r.Xb(s.h),r.Xb(r.r),r.Xb(r.w),r.Xb(r.i),r.Xb(void 0))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),fn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new O.a,this.subscription=t.events.subscribe(t=>{t instanceof q&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,s,r){if(0!==t||e||n||s||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:pn(this.skipLocationChange),replaceUrl:pn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:pn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(dn),r.Nb(Bt),r.Nb(s.i))},t.\u0275dir=r.Ib({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.ac("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Wb("href",e.href,r.vc),r.Bb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.yb]}),t})();function pn(t){return""===t||!!t}let gn=(()=>{class t{constructor(t,e,n,s,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.n,this.deactivateEvents=new r.n,this.name=s||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,r=new mn(t,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(an),r.Nb(r.O),r.Nb(r.j),r.Yb("name"),r.Nb(r.h))},t.\u0275dir=r.Ib({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class mn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Bt?this.route:t===an?this.childContexts:this.parent.get(t,e)}}class yn{}class _n{preload(t,e){return Object(o.a)(null)}}let bn=(()=>{class t{constructor(t,e,n,s,r){this.router=t,this.injector=s,this.preloadingStrategy=r,this.loader=new rn(e,n,e=>t.triggerEvent(new Z(e)),e=>t.triggerEvent(new J(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(j.a)(t=>t instanceof q),Object(N.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const s of e)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const t=s._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children));return Object(i.a)(n).pipe(Object(H.a)(),Object(E.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(V.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(dn),r.Xb(r.w),r.Xb(r.i),r.Xb(r.r),r.Xb(yn))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),vn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof $?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof q&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof rt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new rt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(dn),r.Xb(s.q),r.Xb(void 0))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const wn=new r.q("ROUTER_CONFIGURATION"),Sn=new r.q("ROUTER_FORROOT_GUARD"),Cn=[s.h,{provide:Ct,useClass:Ot},{provide:dn,useFactory:function(t,e,n,r,i,o,a,l={},u,c){const h=new dn(null,t,e,n,r,i,o,ht(a));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,h),l.enableTracing){const t=Object(s.v)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Ct,an,s.h,r.r,r.w,r.i,sn,wn,[class{},new r.A],[class{},new r.A]]},an,{provide:Bt,useFactory:function(t){return t.routerState.root},deps:[dn]},{provide:r.w,useClass:r.J},bn,_n,class{preload(t,e){return e().pipe(Object(A.a)(()=>Object(o.a)(null)))}},{provide:wn,useValue:{enableTracing:!1}}];function On(){return new r.y("Router",dn)}let En=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Cn,kn(e),{provide:Sn,useFactory:Dn,deps:[[dn,new r.A,new r.I]]},{provide:wn,useValue:n||{}},{provide:s.i,useFactory:Tn,deps:[s.p,[new r.p(s.a),new r.A],wn]},{provide:vn,useFactory:xn,deps:[dn,s.q,wn]},{provide:yn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:_n},{provide:r.y,multi:!0,useFactory:On},[jn,{provide:r.d,multi:!0,useFactory:An,deps:[jn]},{provide:Pn,useFactory:Nn,deps:[jn]},{provide:r.b,multi:!0,useExisting:Pn}]]}}static forChild(e){return{ngModule:t,providers:[kn(e)]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(Sn,8),r.Xb(dn,8))}}),t})();function xn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new vn(t,e,n)}function Tn(t,e,n={}){return n.useHash?new s.f(t,e):new s.o(t,e)}function Dn(t){return"guarded"}function kn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let jn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new O.a}appInitializer(){return this.injector.get(s.g,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(dn),s=this.injector.get(wn);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(wn),n=this.injector.get(bn),s=this.injector.get(vn),i=this.injector.get(dn),o=this.injector.get(r.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),s.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.r))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();function An(t){return t.appInitializer.bind(t)}function Nn(t){return t.bootstrapListener.bind(t)}const Pn=new r.q("Router Initializer")},"un/a":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t=-1){return e=>e.lift(new i(t,e))}class i{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new o(t,this.count,this.source))}}class o extends s.a{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("7o/Q");function r(){}var i=n("n6bG");function o(t,e,n){return function(s){return s.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends s.a{constructor(t,e,n,s){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=s||r,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},wCDk:function(t,e){},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(t=null){return e=>e.lift(new i(t))}class i{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends s.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("HDdC"),r=n("ngJS"),i=n("jZKg");function o(t,e){return e?Object(i.a)(t,e):new s.a(Object(r.a)(t))}},"z+Ro":function(t,e,n){"use strict";function s(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return s})},z6cu:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("HDdC");function r(t,e){return new s.a(e?n=>e.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return l});var s=n("7o/Q"),r=n("HDdC"),i=n("SeVD");class o extends s.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends s.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof r.a)return t.subscribe(e);let n;try{n=Object(i.a)(t)(e)}catch(s){e.error(s)}return n}}}]);